Friday, June 14, 2019

Installation of netsurf

Net-surf  is a lightweight browser with support of HTML4 and CSS2.1.
It is impossible to install net-surf from packages. So, the only way to use it on Ubuntu 18.04 is a compilation from sources. You need to download and extract the latest tar-ball from official web site .

I left here a short overview of the installation process.

Prepare your system:
sudo apt-get update
sudo apt-get upgrade

Install dependencies:
sudo apt-get install build-essential bison flex gperf libgtk2.0-dev libcurl4-openssl-dev libssl-dev libpng-dev libjpeg-dev libgtk2.0-dev

I have installed libcurl4-openssl-dev because I need in libcurl-dev which is shipping with packets:

  1. libcurl4-openssl-dev 7.58.0-2ubuntu3.7
  2. libcurl4-nss-dev 7.58.0-2ubuntu3.7
  3. libcurl4-gnutls-dev 7.58.0-2ubuntu3.7

List of dependencies.

Now the system is ready for installation:
cd netsurf-all-3.8
make
sudo make install

The application will be installed as /bin/netsurf-gtk . To execute you need to run netsurf-gtk.

By default javascript is disabled

Friday, May 31, 2019

Подборка статей прочитанных в мае

Data Science && ML

Почему каждый Data Scientist должен знать Dask
Описание python библиотеки для работы с массивами большого объема. Главная особенность данные могут свопится на диске. Пригодится когда требуется работать с датасетом значительно большим чем объем имеющейся оперативной памяти.

Clouds

Облачные сервисы для игры на слабых ПК, актуальные в 2019 году

Thursday, April 11, 2019

Terminal commands tips and tricks

Run the code in python or node.js

#: python -c "print 2+3"
#: nodejs -e "console.log(2+3)"

Launching a static web server in the current folder

#: python -m SimpleHTTPServer 8000

Work with the system clipboard

I use xsel utility to copy text in the system clipboard.
Copying the path of current folder with xsel:
#: pwd | xsel -b

To copy specific line and range of lines from a file:
#: sed -n '180p' file.txt | xsel -b
#: sed -n '180,182p' file.txt | xsel -b

Download collection of links

I use wget utility with i flag to download resources from the file one by one:
#: wget i <filepath>

Opening a image viewer from the console

#: gpicview <file path>
Where GPicView is a default image viewer in Lubuntu.

Terminal hot keys:

[Ctrl A] move to the beggining of the line

[Ctrl E] move to the end of the line

Tuesday, March 19, 2019

Sharing the internet connection in Ubuntu

My laptop is connected to wireless wifi and wired LAN networks. And I have internet connection on wifi network. So I wanted to share the internet from wifi connection to the computer connected to the laptop by LAN.
I have found some challange to do it on Ubuntu 18.04 so this is a reason why  I wanted to share my experience. I hope it will be usefull.

[Internet] <=> [wifi] <=[Laptop] => [lan] <=> [Wired network]

To open connections widget execute:
#: nm-connection-editor

My network interface in LAN network connected to 192.168.137.1

Lan connection settings

Wifi connection settings

Thursday, February 28, 2019

Python virtual environment in Ubuntu

Installation in ubuntu 18.04
sudo apt-get install virtualenv
Installation in ubuntu 14.04
sudo apt-get install python-virtualenv
Examples
Create new virtual environment with python version 2.7
#: virtualenv venv
Activate virtual environment
#: source venv/bin/activate
or
#: source venv/Scripts/activate

Use command deactivate to deactivate environment.