Step by step guide to address Data Science problem

Varied skills are required for addressing any data problems, Let us see process to address any data problem.

Someone who is approaching a data representation problem might get stuck at many stages during analysis and if proper methodologi is not followed, the whole problem analysis might get screwed up.

Ben Fry’s dissertation on Computational Information Design (2004)  (freely available to download) , provides step by step approach to address this problem. He recommends following

  1. acquire – the matter of obtaining the data, whether from a file on a disk or from a source over a network.
  2. parse – providing some structure around what the data means, ordering it into categories.
  3. filter – removing all but the data of interest.
  4. mine – the application of methods from statistics or data mining, as a way to discern patterns or place the data in mathematical context.
  5. represent – determination of a simple representation, whether the data takes one of many shapes such as a bar graph, list, or tree.
  6. refine – improvements to the basic representation to make it clearer and more visually engaging.
  7. interact – the addition of methods for manipulating the data or controlling what features are visible

Here is graphical representation of the same

While working on any problem you need to move between stages as below

 

Critical skills to become Data Scientist

Firstly, its impossible to jot down skills needed by Data Scientist. You could have two Data Scientist with completely different skill sets. However, there are few qualities which are common between all expert Data Scientists.

This list is based on the great article here

Skill #1: Statistics.

Forget the debate between Python Vs R. First thing you need is basic understanding of statistics

Skill #2 :Data Munging – parsing, scraping, and formatting data .

This is where you need to decide on which tool you want to use. If have decided to use Python, this is where NumPy, SciPy, Pandas will come to your rescue.

Skill#3:Visualization

Visualization is not just plotting beautiful graphs. Its more on your critical thinking, imagination and finding inferences and sometimes letting machines to do the inference.

For Python stack, matplotlib and seaborn will be your tools.

Skill#4: Domain Expertise ( or at least working knowledge )

All of first three skills are required but for you to generate useful analytics, you need to have the domain expertise. You don’t need to be phd in that specific domain. In fact Data Scientist will keep working on different domains at different phases of his career, but he need to have domain knowledge on whatever data he is working on.

Most famous Venn Diagram for Data Science is as below

Data Science
Data Science

 

Data Science for Social Good

Job of management consultant is identify a solution which addresses the problem in best possible way considering all possible constraints. Data Science methodologies can be used to achieve this solution. But where does the best talent spending their hours ?

Mostly, to screen the target, identify his habits and predict his behaviour. Although none of the activities are less important by any means, however, there are some amazing solutions can be provided for real world problems. Lots of NGOs, world bodies such as world bank, UN are creating and freely sharing tons of data. That is where Data Science for social good comes into picture.

Here is talk by Drew Conway, CEO and founder of Alluvium on Data Science for Social good.

 

How to install adobe acrobat reader Ubuntu16.04

Adobe acrobar reader is very user friendly and if you are used to it, any alternative seems incomplete. If you are using Windows and Mac user, you can download Adobe acrobat reader for this link, however, if you are Ubuntu user, there is no download option.

However, this will not stop you from using your favorite pdf reader. Please follow below steps and you are all set.

  • Step#1 Install dependencies

sudo apt-get install gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 libatk-adaptor:i386 libgail-common:i386
  • Step#2 Install Adobe Reader

sudo add-apt-repository "deb http://archive.canonical.com/ precise partner" 
sudo apt-get update 
sudo apt-get install adobereader-en

If you are facing any issues with last command use following

sudo apt install adoberead-bin:i386
  • Step#3 Remove precise repository

sudo add-apt-repository -r "deb http://archive.canonical.com/ precise partner" 
sudo apt-get update

 

It take some time for installation. Here is the output.

$ sudo apt-get install gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 libatk-adaptor:i386 libgail-common:i386
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
libasound2:i386 libatk-bridge2.0-0:i386 libatk1.0-0:i386 libatspi2.0-0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386
libcairo2:i386 libcanberra-gtk0:i386 libcanberra0:i386 libcomerr2:i386 libcups2:i386 libdatrie1:i386 libdbus-1-3:i386 libexpat1:i386 libffi6:i386
libfontconfig1:i386 libfreetype6:i386 libgail18:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgmp10:i386 libgnutls30:i386 libgraphite2-3:i386
libgssapi-krb5-2:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libhogweed4:i386 libidn11:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386
libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libltdl7:i386 libnettle6:i386 libogg0:i386 libp11-kit0:i386
libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpixman-1-0:i386 libpng12-0:i386 libsystemd0:i386 libtasn1-6:i386
libtdb1:i386 libthai0:i386 libtiff5:i386 libvorbis0a:i386 libvorbisfile3:i386 libx11-6:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386
libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386
libxrandr2:i386 libxrender1:i386 zlib1g:i386
Suggested packages:
murrine-themes:i386 libasound2-plugins:i386 libcanberra-pulse:i386 gnutls-bin:i386 krb5-doc:i386 krb5-user:i386 librsvg2-common:i386 gvfs:i386
The following NEW packages will be installed:
gtk2-engines-murrine:i386 libasound2:i386 libatk-adaptor:i386 libatk-bridge2.0-0:i386 libatk1.0-0:i386 libatspi2.0-0:i386 libavahi-client3:i386
libavahi-common-data:i386 libavahi-common3:i386 libcairo2:i386 libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libcanberra0:i386 libcomerr2:i386
libcups2:i386 libdatrie1:i386 libdbus-1-3:i386 libexpat1:i386 libffi6:i386 libfontconfig1:i386 libfreetype6:i386 libgail-common:i386
libgail18:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgmp10:i386 libgnutls30:i386 libgraphite2-3:i386 libgssapi-krb5-2:i386 libgtk2.0-0:i386
libharfbuzz0b:i386 libhogweed4:i386 libidn11:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libk5crypto3:i386 libkeyutils1:i386
libkrb5-3:i386 libkrb5support0:i386 libltdl7:i386 libnettle6:i386 libogg0:i386 libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386
libpangoft2-1.0-0:i386 libpixman-1-0:i386 libpng12-0:i386 libsystemd0:i386 libtasn1-6:i386 libtdb1:i386 libthai0:i386 libtiff5:i386
libvorbis0a:i386 libvorbisfile3:i386 libx11-6:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386 libxcomposite1:i386
libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386
zlib1g:i386
0 upgraded, 72 newly installed, 0 to remove and 98 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 33.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libsystemd0 i386 229-4ubuntu21.2 [222 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main i386 libjbig0 i386 2.1-3.1+deb.sury.org~xenial+1 [26.9 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxau6 i386 1:1.0.8-1 [8,352 B]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxdmcp6 i386 1:1.1.2-1.1 [11.4 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxcb1 i386 1.11.1-1ubuntu1 [44.1 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libx11-6 i386 2:1.6.3-1ubuntu2 [592 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxext6 i386 2:1.3.3-1 [31.6 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libjpeg-turbo8 i386 1.4.2-0ubuntu3 [117 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libogg0 i386 1.3.2-1 [16.2 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxcomposite1 i386 1:0.4.4-1 [7,594 B]
Get:11 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxdamage1 i386 1:1.1.4-2 [6,812 B]
Get:12 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxfixes3 i386 1:5.0.1-2 [11.4 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxinerama1 i386 2:1.1.3-1 [7,900 B]
Get:14 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libcomerr2 i386 1.42.13-1ubuntu1 [65.9 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 zlib1g i386 1:1.2.8.dfsg-2ubuntu4.1 [52.1 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libexpat1 i386 2.1.0-7ubuntu0.16.04.3 [74.1 kB] 
Get:17 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libffi6 i386 3.2.1-4 [17.0 kB] 
Get:18 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libgmp10 i386 2:6.1.0+dfsg-2 [246 kB] 
Get:19 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libnettle6 i386 3.2-1ubuntu0.16.04.1 [110 kB] 
Get:20 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libhogweed4 i386 3.2-1ubuntu0.16.04.1 [137 kB] 
Get:21 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libidn11 i386 1.32-3ubuntu1.2 [47.9 kB] 
Get:22 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libp11-kit0 i386 0.23.2-5~ubuntu16.04.1 [109 kB] 
Get:23 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libtasn1-6 i386 4.7-3ubuntu0.16.04.3 [45.8 kB] 
Get:24 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgnutls30 i386 3.4.10-4ubuntu1.4 [569 kB] 
Get:25 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpng12-0 i386 1.2.54-1ubuntu1 [122 kB] 
Get:26 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libdbus-1-3 i386 1.10.6-1ubuntu3.3 [173 kB] 
Get:27 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libglib2.0-0 i386 2.48.2-0ubuntu1 [1,185 kB] 
Get:28 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libkrb5support0 i386 1.13.2+dfsg-5ubuntu2 [32.5 kB] 
Get:29 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libk5crypto3 i386 1.13.2+dfsg-5ubuntu2 [83.4 kB] 
Get:30 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libkeyutils1 i386 1.5.9-8ubuntu1 [10.2 kB] 
Get:31 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libkrb5-3 i386 1.13.2+dfsg-5ubuntu2 [297 kB] 
Get:32 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgssapi-krb5-2 i386 1.13.2+dfsg-5ubuntu2 [130 kB] 
Get:33 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libfreetype6 i386 2.6.1-0.1ubuntu2.3 [330 kB] 
Get:34 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libfontconfig1 i386 2.11.94-0ubuntu1.1 [140 kB] 
Get:35 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpixman-1-0 i386 0.33.6-1 [237 kB] 
Get:36 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxcb-render0 i386 1.11.1-1ubuntu1 [12.2 kB] 
Get:37 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxcb-shm0 i386 1.11.1-1ubuntu1 [5,754 B] 
Get:38 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxrender1 i386 1:0.9.9-0ubuntu1 [19.2 kB] 
Get:39 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libcairo2 i386 1.14.6-1 [613 kB] 
Get:40 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libjpeg8 i386 8c-2ubuntu8 [2,188 B] 
Get:41 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libtiff5 i386 4.0.6-1ubuntu0.4 [159 kB] 
Get:42 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgdk-pixbuf2.0-0 i386 2.32.2-1ubuntu1.4 [169 kB] 
Get:43 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libatk1.0-0 i386 2.18.0-1 [57.5 kB] 
Get:44 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libavahi-common-data i386 0.6.32~rc+dfsg-1ubuntu2.2 [21.5 kB] 
Get:45 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libavahi-common3 i386 0.6.32~rc+dfsg-1ubuntu2.2 [23.5 kB] 
Get:46 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libavahi-client3 i386 0.6.32~rc+dfsg-1ubuntu2.2 [27.1 kB] 
Get:47 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libcups2 i386 2.1.3-4ubuntu0.4 [212 kB] 
Get:48 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libdatrie1 i386 0.2.10-2 [18.8 kB] 
Get:49 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libthai0 i386 0.1.24-2 [18.5 kB] 
Get:50 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpango-1.0-0 i386 1.38.1-1 [154 kB] 
Get:51 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgraphite2-3 i386 1.3.10-0ubuntu0.16.04.1 [74.6 kB] 
Get:52 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libharfbuzz0b i386 1.0.1-1ubuntu0.1 [148 kB] 
Get:53 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpangoft2-1.0-0 i386 1.38.1-1 [36.5 kB] 
Get:54 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpangocairo-1.0-0 i386 1.38.1-1 [22.5 kB] 
Get:55 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libxcursor1 i386 1:1.1.14-1ubuntu0.16.04.1 [21.9 kB] 
Get:56 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxi6 i386 2:1.7.6-1 [31.3 kB] 
Get:57 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxrandr2 i386 2:1.5.0-1 [19.1 kB] 
Get:58 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgtk2.0-0 i386 2.24.30-1ubuntu1.16.04.2 [1,904 kB] 
Get:59 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 gtk2-engines-murrine i386 0.98.2-0ubuntu2.2 [94.2 kB] 
Get:60 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libasound2 i386 1.1.0-0ubuntu1 [370 kB] 
Get:61 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libatspi2.0-0 i386 2.18.3-4ubuntu1 [60.9 kB] 
Get:62 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libatk-bridge2.0-0 i386 2.18.1-2ubuntu1 [58.1 kB] 
Get:63 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgail18 i386 2.24.30-1ubuntu1.16.04.2 [15.1 kB] 
Get:64 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libgail-common i386 2.24.30-1ubuntu1.16.04.2 [125 kB] 
Get:65 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libatk-adaptor i386 2.18.1-2ubuntu1 [11.1 kB] 
Get:66 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libltdl7 i386 2.4.6-0.1 [40.0 kB] 
Get:67 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libtdb1 i386 1.3.8-2 [42.5 kB] 
Get:68 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libvorbis0a i386 1.3.5-3ubuntu0.2 [85.8 kB] 
Get:69 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libvorbisfile3 i386 1.3.5-3ubuntu0.2 [18.9 kB] 
Get:70 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libcanberra0 i386 0.30-2.1ubuntu1 [37.6 kB] 
Get:71 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libcanberra-gtk0 i386 0.30-2.1ubuntu1 [8,184 B] 
Get:72 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libcanberra-gtk-module i386 0.30-2.1ubuntu1 [9,714 B] 
Fetched 10.1 MB in 59s (170 kB/s) 
Extracting templates from packages: 100%
Selecting previously unselected package libsystemd0:i386.
(Reading database ... 317757 files and directories currently installed.)
Preparing to unpack .../libsystemd0_229-4ubuntu21.2_i386.deb ...
Unpacking libsystemd0:i386 (229-4ubuntu21.2) ...
Selecting previously unselected package libxau6:i386.
Preparing to unpack .../libxau6_1%3a1.0.8-1_i386.deb ...
Unpacking libxau6:i386 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:i386.
Preparing to unpack .../libxdmcp6_1%3a1.1.2-1.1_i386.deb ...
Unpacking libxdmcp6:i386 (1:1.1.2-1.1) ...
Selecting previously unselected package libxcb1:i386.
Preparing to unpack .../libxcb1_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb1:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libx11-6:i386.
Preparing to unpack .../libx11-6_2%3a1.6.3-1ubuntu2_i386.deb ...
Unpacking libx11-6:i386 (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libxext6:i386.
Preparing to unpack .../libxext6_2%3a1.3.3-1_i386.deb ...
Unpacking libxext6:i386 (2:1.3.3-1) ...
Selecting previously unselected package libjpeg-turbo8:i386.
Preparing to unpack .../libjpeg-turbo8_1.4.2-0ubuntu3_i386.deb ...
Unpacking libjpeg-turbo8:i386 (1.4.2-0ubuntu3) ...
Selecting previously unselected package libogg0:i386.
Preparing to unpack .../libogg0_1.3.2-1_i386.deb ...
Unpacking libogg0:i386 (1.3.2-1) ...
Selecting previously unselected package libxcomposite1:i386.
Preparing to unpack .../libxcomposite1_1%3a0.4.4-1_i386.deb ...
Unpacking libxcomposite1:i386 (1:0.4.4-1) ...
Selecting previously unselected package libxdamage1:i386.
Preparing to unpack .../libxdamage1_1%3a1.1.4-2_i386.deb ...
Unpacking libxdamage1:i386 (1:1.1.4-2) ...
Selecting previously unselected package libxfixes3:i386.
Preparing to unpack .../libxfixes3_1%3a5.0.1-2_i386.deb ...
Unpacking libxfixes3:i386 (1:5.0.1-2) ...
Selecting previously unselected package libxinerama1:i386.
Preparing to unpack .../libxinerama1_2%3a1.1.3-1_i386.deb ...
Unpacking libxinerama1:i386 (2:1.1.3-1) ...
Selecting previously unselected package libcomerr2:i386.
Preparing to unpack .../libcomerr2_1.42.13-1ubuntu1_i386.deb ...
Unpacking libcomerr2:i386 (1.42.13-1ubuntu1) ...
Selecting previously unselected package zlib1g:i386.
Preparing to unpack .../zlib1g_1%3a1.2.8.dfsg-2ubuntu4.1_i386.deb ...
Unpacking zlib1g:i386 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package libexpat1:i386.
Preparing to unpack .../libexpat1_2.1.0-7ubuntu0.16.04.3_i386.deb ...
Unpacking libexpat1:i386 (2.1.0-7ubuntu0.16.04.3) ...
Selecting previously unselected package libffi6:i386.
Preparing to unpack .../libffi6_3.2.1-4_i386.deb ...
Unpacking libffi6:i386 (3.2.1-4) ...
Selecting previously unselected package libgmp10:i386.
Preparing to unpack .../libgmp10_2%3a6.1.0+dfsg-2_i386.deb ...
Unpacking libgmp10:i386 (2:6.1.0+dfsg-2) ...
Selecting previously unselected package libnettle6:i386.
Preparing to unpack .../libnettle6_3.2-1ubuntu0.16.04.1_i386.deb ...
Unpacking libnettle6:i386 (3.2-1ubuntu0.16.04.1) ...
Selecting previously unselected package libhogweed4:i386.
Preparing to unpack .../libhogweed4_3.2-1ubuntu0.16.04.1_i386.deb ...
Unpacking libhogweed4:i386 (3.2-1ubuntu0.16.04.1) ...
Selecting previously unselected package libidn11:i386.
Preparing to unpack .../libidn11_1.32-3ubuntu1.2_i386.deb ...
Unpacking libidn11:i386 (1.32-3ubuntu1.2) ...
Selecting previously unselected package libp11-kit0:i386.
Preparing to unpack .../libp11-kit0_0.23.2-5~ubuntu16.04.1_i386.deb ...
Unpacking libp11-kit0:i386 (0.23.2-5~ubuntu16.04.1) ...
Selecting previously unselected package libtasn1-6:i386.
Preparing to unpack .../libtasn1-6_4.7-3ubuntu0.16.04.3_i386.deb ...
Unpacking libtasn1-6:i386 (4.7-3ubuntu0.16.04.3) ...
Selecting previously unselected package libgnutls30:i386.
Preparing to unpack .../libgnutls30_3.4.10-4ubuntu1.4_i386.deb ...
Unpacking libgnutls30:i386 (3.4.10-4ubuntu1.4) ...
Selecting previously unselected package libpng12-0:i386.
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1) ...
Selecting previously unselected package libdbus-1-3:i386.
Preparing to unpack .../libdbus-1-3_1.10.6-1ubuntu3.3_i386.deb ...
Unpacking libdbus-1-3:i386 (1.10.6-1ubuntu3.3) ...
Selecting previously unselected package libglib2.0-0:i386.
Preparing to unpack .../libglib2.0-0_2.48.2-0ubuntu1_i386.deb ...
Unpacking libglib2.0-0:i386 (2.48.2-0ubuntu1) ...
Selecting previously unselected package libkrb5support0:i386.
Preparing to unpack .../libkrb5support0_1.13.2+dfsg-5ubuntu2_i386.deb ...
Unpacking libkrb5support0:i386 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libk5crypto3:i386.
Preparing to unpack .../libk5crypto3_1.13.2+dfsg-5ubuntu2_i386.deb ...
Unpacking libk5crypto3:i386 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkeyutils1:i386.
Preparing to unpack .../libkeyutils1_1.5.9-8ubuntu1_i386.deb ...
Unpacking libkeyutils1:i386 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:i386.
Preparing to unpack .../libkrb5-3_1.13.2+dfsg-5ubuntu2_i386.deb ...
Unpacking libkrb5-3:i386 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libgssapi-krb5-2:i386.
Preparing to unpack .../libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2_i386.deb ...
Unpacking libgssapi-krb5-2:i386 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libfreetype6:i386.
Preparing to unpack .../libfreetype6_2.6.1-0.1ubuntu2.3_i386.deb ...
Unpacking libfreetype6:i386 (2.6.1-0.1ubuntu2.3) ...
Selecting previously unselected package libfontconfig1:i386.
Preparing to unpack .../libfontconfig1_2.11.94-0ubuntu1.1_i386.deb ...
Unpacking libfontconfig1:i386 (2.11.94-0ubuntu1.1) ...
Selecting previously unselected package libpixman-1-0:i386.
Preparing to unpack .../libpixman-1-0_0.33.6-1_i386.deb ...
Unpacking libpixman-1-0:i386 (0.33.6-1) ...
Selecting previously unselected package libxcb-render0:i386.
Preparing to unpack .../libxcb-render0_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-render0:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxcb-shm0:i386.
Preparing to unpack .../libxcb-shm0_1.11.1-1ubuntu1_i386.deb ...
Unpacking libxcb-shm0:i386 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxrender1:i386.
Preparing to unpack .../libxrender1_1%3a0.9.9-0ubuntu1_i386.deb ...
Unpacking libxrender1:i386 (1:0.9.9-0ubuntu1) ...
Selecting previously unselected package libcairo2:i386.
Preparing to unpack .../libcairo2_1.14.6-1_i386.deb ...
Unpacking libcairo2:i386 (1.14.6-1) ...
Selecting previously unselected package libjpeg8:i386.
Preparing to unpack .../libjpeg8_8c-2ubuntu8_i386.deb ...
Unpacking libjpeg8:i386 (8c-2ubuntu8) ...
Selecting previously unselected package libjbig0:i386.
Preparing to unpack .../libjbig0_2.1-3.1+deb.sury.org~xenial+1_i386.deb ...
Unpacking libjbig0:i386 (2.1-3.1+deb.sury.org~xenial+1) ...
Selecting previously unselected package libtiff5:i386.
Preparing to unpack .../libtiff5_4.0.6-1ubuntu0.4_i386.deb ...
Unpacking libtiff5:i386 (4.0.6-1ubuntu0.4) ...
Selecting previously unselected package libgdk-pixbuf2.0-0:i386.
Preparing to unpack .../libgdk-pixbuf2.0-0_2.32.2-1ubuntu1.4_i386.deb ...
Unpacking libgdk-pixbuf2.0-0:i386 (2.32.2-1ubuntu1.4) ...
Selecting previously unselected package libatk1.0-0:i386.
Preparing to unpack .../libatk1.0-0_2.18.0-1_i386.deb ...
Unpacking libatk1.0-0:i386 (2.18.0-1) ...
Selecting previously unselected package libavahi-common-data:i386.
Preparing to unpack .../libavahi-common-data_0.6.32~rc+dfsg-1ubuntu2.2_i386.deb ...
Unpacking libavahi-common-data:i386 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Selecting previously unselected package libavahi-common3:i386.
Preparing to unpack .../libavahi-common3_0.6.32~rc+dfsg-1ubuntu2.2_i386.deb ...
Unpacking libavahi-common3:i386 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Selecting previously unselected package libavahi-client3:i386.
Preparing to unpack .../libavahi-client3_0.6.32~rc+dfsg-1ubuntu2.2_i386.deb ...
Unpacking libavahi-client3:i386 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Selecting previously unselected package libcups2:i386.
Preparing to unpack .../libcups2_2.1.3-4ubuntu0.4_i386.deb ...
Unpacking libcups2:i386 (2.1.3-4ubuntu0.4) ...
Selecting previously unselected package libdatrie1:i386.
Preparing to unpack .../libdatrie1_0.2.10-2_i386.deb ...
Unpacking libdatrie1:i386 (0.2.10-2) ...
Selecting previously unselected package libthai0:i386.
Preparing to unpack .../libthai0_0.1.24-2_i386.deb ...
Unpacking libthai0:i386 (0.1.24-2) ...
Selecting previously unselected package libpango-1.0-0:i386.
Preparing to unpack .../libpango-1.0-0_1.38.1-1_i386.deb ...
Unpacking libpango-1.0-0:i386 (1.38.1-1) ...
Selecting previously unselected package libgraphite2-3:i386.
Preparing to unpack .../libgraphite2-3_1.3.10-0ubuntu0.16.04.1_i386.deb ...
Unpacking libgraphite2-3:i386 (1.3.10-0ubuntu0.16.04.1) ...
Selecting previously unselected package libharfbuzz0b:i386.
Preparing to unpack .../libharfbuzz0b_1.0.1-1ubuntu0.1_i386.deb ...
Unpacking libharfbuzz0b:i386 (1.0.1-1ubuntu0.1) ...
Selecting previously unselected package libpangoft2-1.0-0:i386.
Preparing to unpack .../libpangoft2-1.0-0_1.38.1-1_i386.deb ...
Unpacking libpangoft2-1.0-0:i386 (1.38.1-1) ...
Selecting previously unselected package libpangocairo-1.0-0:i386.
Preparing to unpack .../libpangocairo-1.0-0_1.38.1-1_i386.deb ...
Unpacking libpangocairo-1.0-0:i386 (1.38.1-1) ...
Selecting previously unselected package libxcursor1:i386.
Preparing to unpack .../libxcursor1_1%3a1.1.14-1ubuntu0.16.04.1_i386.deb ...
Unpacking libxcursor1:i386 (1:1.1.14-1ubuntu0.16.04.1) ...
Selecting previously unselected package libxi6:i386.
Preparing to unpack .../libxi6_2%3a1.7.6-1_i386.deb ...
Unpacking libxi6:i386 (2:1.7.6-1) ...
Selecting previously unselected package libxrandr2:i386.
Preparing to unpack .../libxrandr2_2%3a1.5.0-1_i386.deb ...
Unpacking libxrandr2:i386 (2:1.5.0-1) ...
Selecting previously unselected package libgtk2.0-0:i386.
Preparing to unpack .../libgtk2.0-0_2.24.30-1ubuntu1.16.04.2_i386.deb ...
Unpacking libgtk2.0-0:i386 (2.24.30-1ubuntu1.16.04.2) ...
Selecting previously unselected package gtk2-engines-murrine:i386.
Preparing to unpack .../gtk2-engines-murrine_0.98.2-0ubuntu2.2_i386.deb ...
Unpacking gtk2-engines-murrine:i386 (0.98.2-0ubuntu2.2) ...
Selecting previously unselected package libasound2:i386.
Preparing to unpack .../libasound2_1.1.0-0ubuntu1_i386.deb ...
Unpacking libasound2:i386 (1.1.0-0ubuntu1) ...
Selecting previously unselected package libatspi2.0-0:i386.
Preparing to unpack .../libatspi2.0-0_2.18.3-4ubuntu1_i386.deb ...
Unpacking libatspi2.0-0:i386 (2.18.3-4ubuntu1) ...
Selecting previously unselected package libatk-bridge2.0-0:i386.
Preparing to unpack .../libatk-bridge2.0-0_2.18.1-2ubuntu1_i386.deb ...
Unpacking libatk-bridge2.0-0:i386 (2.18.1-2ubuntu1) ...
Selecting previously unselected package libgail18:i386.
Preparing to unpack .../libgail18_2.24.30-1ubuntu1.16.04.2_i386.deb ...
Unpacking libgail18:i386 (2.24.30-1ubuntu1.16.04.2) ...
Selecting previously unselected package libgail-common:i386.
Preparing to unpack .../libgail-common_2.24.30-1ubuntu1.16.04.2_i386.deb ...
Unpacking libgail-common:i386 (2.24.30-1ubuntu1.16.04.2) ...
Selecting previously unselected package libatk-adaptor:i386.
Preparing to unpack .../libatk-adaptor_2.18.1-2ubuntu1_i386.deb ...
Unpacking libatk-adaptor:i386 (2.18.1-2ubuntu1) ...
Selecting previously unselected package libltdl7:i386.
Preparing to unpack .../libltdl7_2.4.6-0.1_i386.deb ...
Unpacking libltdl7:i386 (2.4.6-0.1) ...
Selecting previously unselected package libtdb1:i386.
Preparing to unpack .../libtdb1_1.3.8-2_i386.deb ...
Unpacking libtdb1:i386 (1.3.8-2) ...
Selecting previously unselected package libvorbis0a:i386.
Preparing to unpack .../libvorbis0a_1.3.5-3ubuntu0.2_i386.deb ...
Unpacking libvorbis0a:i386 (1.3.5-3ubuntu0.2) ...
Selecting previously unselected package libvorbisfile3:i386.
Preparing to unpack .../libvorbisfile3_1.3.5-3ubuntu0.2_i386.deb ...
Unpacking libvorbisfile3:i386 (1.3.5-3ubuntu0.2) ...
Selecting previously unselected package libcanberra0:i386.
Preparing to unpack .../libcanberra0_0.30-2.1ubuntu1_i386.deb ...
Unpacking libcanberra0:i386 (0.30-2.1ubuntu1) ...
Selecting previously unselected package libcanberra-gtk0:i386.
Preparing to unpack .../libcanberra-gtk0_0.30-2.1ubuntu1_i386.deb ...
Unpacking libcanberra-gtk0:i386 (0.30-2.1ubuntu1) ...
Selecting previously unselected package libcanberra-gtk-module:i386.
Preparing to unpack .../libcanberra-gtk-module_0.30-2.1ubuntu1_i386.deb ...
Unpacking libcanberra-gtk-module:i386 (0.30-2.1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...
Setting up libsystemd0:i386 (229-4ubuntu21.2) ...
Setting up libxau6:i386 (1:1.0.8-1) ...
Setting up libxdmcp6:i386 (1:1.1.2-1.1) ...
Setting up libxcb1:i386 (1.11.1-1ubuntu1) ...
Setting up libx11-6:i386 (2:1.6.3-1ubuntu2) ...
Setting up libxext6:i386 (2:1.3.3-1) ...
Setting up libjpeg-turbo8:i386 (1.4.2-0ubuntu3) ...
Setting up libogg0:i386 (1.3.2-1) ...
Setting up libxcomposite1:i386 (1:0.4.4-1) ...
Setting up libxdamage1:i386 (1:1.1.4-2) ...
Setting up libxfixes3:i386 (1:5.0.1-2) ...
Setting up libxinerama1:i386 (2:1.1.3-1) ...
Setting up libcomerr2:i386 (1.42.13-1ubuntu1) ...
Setting up zlib1g:i386 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libexpat1:i386 (2.1.0-7ubuntu0.16.04.3) ...
Setting up libffi6:i386 (3.2.1-4) ...
Setting up libgmp10:i386 (2:6.1.0+dfsg-2) ...
Setting up libnettle6:i386 (3.2-1ubuntu0.16.04.1) ...
Setting up libhogweed4:i386 (3.2-1ubuntu0.16.04.1) ...
Setting up libidn11:i386 (1.32-3ubuntu1.2) ...
Setting up libp11-kit0:i386 (0.23.2-5~ubuntu16.04.1) ...
Setting up libtasn1-6:i386 (4.7-3ubuntu0.16.04.3) ...
Setting up libgnutls30:i386 (3.4.10-4ubuntu1.4) ...
Setting up libpng12-0:i386 (1.2.54-1ubuntu1) ...
Setting up libdbus-1-3:i386 (1.10.6-1ubuntu3.3) ...
Setting up libglib2.0-0:i386 (2.48.2-0ubuntu1) ...
Setting up libkrb5support0:i386 (1.13.2+dfsg-5ubuntu2) ...
Setting up libk5crypto3:i386 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkeyutils1:i386 (1.5.9-8ubuntu1) ...
Setting up libkrb5-3:i386 (1.13.2+dfsg-5ubuntu2) ...
Setting up libgssapi-krb5-2:i386 (1.13.2+dfsg-5ubuntu2) ...
Setting up libfreetype6:i386 (2.6.1-0.1ubuntu2.3) ...
Setting up libfontconfig1:i386 (2.11.94-0ubuntu1.1) ...
Setting up libpixman-1-0:i386 (0.33.6-1) ...
Setting up libxcb-render0:i386 (1.11.1-1ubuntu1) ...
Setting up libxcb-shm0:i386 (1.11.1-1ubuntu1) ...
Setting up libxrender1:i386 (1:0.9.9-0ubuntu1) ...
Setting up libcairo2:i386 (1.14.6-1) ...
Setting up libjpeg8:i386 (8c-2ubuntu8) ...
Setting up libjbig0:i386 (2.1-3.1+deb.sury.org~xenial+1) ...
Setting up libtiff5:i386 (4.0.6-1ubuntu0.4) ...
Setting up libgdk-pixbuf2.0-0:i386 (2.32.2-1ubuntu1.4) ...
Setting up libatk1.0-0:i386 (2.18.0-1) ...
Setting up libavahi-common-data:i386 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Setting up libavahi-common3:i386 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Setting up libavahi-client3:i386 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Setting up libcups2:i386 (2.1.3-4ubuntu0.4) ...
Setting up libdatrie1:i386 (0.2.10-2) ...
Setting up libthai0:i386 (0.1.24-2) ...
Setting up libpango-1.0-0:i386 (1.38.1-1) ...
Setting up libgraphite2-3:i386 (1.3.10-0ubuntu0.16.04.1) ...
Setting up libharfbuzz0b:i386 (1.0.1-1ubuntu0.1) ...
Setting up libpangoft2-1.0-0:i386 (1.38.1-1) ...
Setting up libpangocairo-1.0-0:i386 (1.38.1-1) ...
Setting up libxcursor1:i386 (1:1.1.14-1ubuntu0.16.04.1) ...
Setting up libxi6:i386 (2:1.7.6-1) ...
Setting up libxrandr2:i386 (2:1.5.0-1) ...
Setting up libgtk2.0-0:i386 (2.24.30-1ubuntu1.16.04.2) ...
Setting up gtk2-engines-murrine:i386 (0.98.2-0ubuntu2.2) ...
Setting up libasound2:i386 (1.1.0-0ubuntu1) ...
Setting up libatspi2.0-0:i386 (2.18.3-4ubuntu1) ...
Setting up libatk-bridge2.0-0:i386 (2.18.1-2ubuntu1) ...
Setting up libgail18:i386 (2.24.30-1ubuntu1.16.04.2) ...
Setting up libgail-common:i386 (2.24.30-1ubuntu1.16.04.2) ...
Setting up libatk-adaptor:i386 (2.18.1-2ubuntu1) ...
Setting up libltdl7:i386 (2.4.6-0.1) ...
Setting up libtdb1:i386 (1.3.8-2) ...
Setting up libvorbis0a:i386 (1.3.5-3ubuntu0.2) ...
Setting up libvorbisfile3:i386 (1.3.5-3ubuntu0.2) ...
Setting up libcanberra0:i386 (0.30-2.1ubuntu1) ...
Setting up libcanberra-gtk0:i386 (0.30-2.1ubuntu1) ...
Setting up libcanberra-gtk-module:i386 (0.30-2.1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...

 

$sudo add-apt-repository "deb http://archive.canonical.com/ precise partner" 
$ sudo apt-get update 
Hit:1 https://deb.nodesource.com/node_4.x xenial InRelease
Hit:2 https://download.sublimetext.com apt/stable/ InRelease
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial InRelease 
Hit:5 http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial InRelease 
Get:6 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] 
Ign:7 http://dl.google.com/linux/webdesigner/deb stable InRelease 
Ign:8 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial InRelease 
Hit:9 http://dl.google.com/linux/chrome/deb stable Release 
Hit:11 http://ppa.launchpad.net/libreoffice/libreoffice-5-4/ubuntu xenial InRelease 
Get:12 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] 
Hit:13 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease 
Hit:14 http://dl.google.com/linux/webdesigner/deb stable Release 
Hit:16 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease 
Hit:17 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial InRelease 
Hit:18 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease 
Hit:19 http://ppa.launchpad.net/yktooo/ppa/ubuntu xenial InRelease 
Ign:20 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial Release 
Ign:21 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 Packages 
Ign:22 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main i386 Packages 
Ign:23 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main all Packages 
Ign:24 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en_IN 
Ign:25 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en 
Ign:26 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 DEP-11 Metadata 
Ign:27 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main DEP-11 64x64 Icons 
Ign:21 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 Packages 
Ign:22 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main i386 Packages 
Ign:23 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main all Packages 
Ign:24 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en_IN 
Ign:25 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en 
Ign:26 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 DEP-11 Metadata 
Ign:27 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main DEP-11 64x64 Icons 
Ign:21 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 Packages 
Ign:22 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main i386 Packages 
Ign:23 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main all Packages 
Ign:24 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en_IN 
Ign:25 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en 
Ign:26 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 DEP-11 Metadata 
Ign:27 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main DEP-11 64x64 Icons 
Ign:21 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 Packages 
Hit:28 http://packages.microsoft.com/repos/vscode stable InRelease 
Ign:22 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main i386 Packages 
Get:29 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] 
Ign:30 http://archive.canonical.com precise InRelease 
Ign:23 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main all Packages 
Get:31 http://archive.canonical.com precise Release [8,180 B] 
Get:32 http://archive.canonical.com precise Release.gpg [181 B] 
Ign:24 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en_IN 
Get:33 http://archive.canonical.com precise/partner amd64 Packages [6,913 B] 
Ign:25 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en 
Get:34 http://archive.canonical.com precise/partner i386 Packages [7,795 B] 
Get:35 http://archive.canonical.com precise/partner Translation-en [4,440 B] 
Ign:26 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 DEP-11 Metadata 
Ign:27 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main DEP-11 64x64 Icons 
Hit:36 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease 
Ign:21 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 Packages 
Ign:22 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main i386 Packages 
Ign:23 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main all Packages 
Ign:24 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en_IN 
Ign:25 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en 
Ign:26 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 DEP-11 Metadata 
Ign:27 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main DEP-11 64x64 Icons 
Err:21 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 Packages 
404 Not Found
Ign:22 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main i386 Packages 
Ign:23 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main all Packages 
Ign:24 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en_IN 
Ign:25 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main Translation-en 
Ign:26 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main amd64 DEP-11 Metadata 
Ign:27 http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial/main DEP-11 64x64 Icons 
Fetched 350 kB in 36s (9,607 B/s) 
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://archive.canonical.com/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
E: Failed to fetch http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

$ sudo apt-get install adobereader-enu
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Note, selecting 'acroread-bin:i386' instead of 'adobereader-enu'
The following additional packages will be installed:
cpp-5 g++-5 gcc-5 gcc-5-base gcc-5-base:i386 libasan2 libatomic1 libcc1-0 libcilkrts5 libgcc-5-dev libgfortran3 libgomp1 libice6:i386
libicu55:i386 libitm1 liblsan0 libmpx0 libpango1.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libquadmath0 libsm6:i386 libstdc++-5-dev
libstdc++6 libstdc++6:i386 libtsan0 libubsan0 libxft2:i386 libxml2:i386 libxt6:i386
Suggested packages:
libldap2:i386 libgnome-speech7:i386 gcc-5-locales g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-5-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg libstdc++-5-doc
Recommended packages:
xml-core:i386
The following NEW packages will be installed:
acroread-bin:i386 gcc-5-base:i386 libice6:i386 libicu55:i386 libpango1.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libsm6:i386
libstdc++6:i386 libxft2:i386 libxml2:i386 libxt6:i386
The following packages will be upgraded:
cpp-5 g++-5 gcc-5 gcc-5-base libasan2 libatomic1 libcc1-0 libcilkrts5 libgcc-5-dev libgfortran3 libgomp1 libitm1 liblsan0 libmpx0 libquadmath0
libstdc++-5-dev libstdc++6 libtsan0 libubsan0
19 upgraded, 12 newly installed, 0 to remove and 79 not upgraded.
Need to get 69.6 MB/99.3 MB of archives.
After this operation, 178 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main i386 libxml2 i386 2.9.4-1+deb.sury.org~xenial+2 [952 kB] 
Get:2 http://archive.canonical.com precise/partner i386 acroread-bin i386 9.5.5-1precise1 [60.1 MB] 
Get:3 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libice6 i386 2:1.0.9-1 [38.2 kB] 
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libsm6 i386 2:1.2.2-1 [14.8 kB] 
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxft2 i386 2.3.2-1 [35.5 kB] 
Get:6 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpangox-1.0-0 i386 0.0.2-5 [43.3 kB] 
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 gcc-5-base i386 5.4.0-6ubuntu1~16.04.10 [17.3 kB] 
Get:8 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libstdc++6 i386 5.4.0-6ubuntu1~16.04.10 [418 kB] 
Get:9 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 libicu55 i386 55.1-7ubuntu0.4 [7,753 kB] 
Get:10 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpangoxft-1.0-0 i386 1.38.1-1 [15.9 kB] 
Get:11 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libpango1.0-0 i386 1.38.1-1 [3,458 B] 
Get:12 http://in.archive.ubuntu.com/ubuntu xenial/main i386 libxt6 i386 1:1.1.5-0ubuntu1 [164 kB] 
Fetched 69.6 MB in 17min 31s (66.1 kB/s) 
Extracting templates from packages: 100%
Selecting previously unselected package libice6:i386.
(Reading database ... 317967 files and directories currently installed.)
Preparing to unpack .../libice6_2%3a1.0.9-1_i386.deb ...
Unpacking libice6:i386 (2:1.0.9-1) ...
Selecting previously unselected package libsm6:i386.
Preparing to unpack .../libsm6_2%3a1.2.2-1_i386.deb ...
Unpacking libsm6:i386 (2:1.2.2-1) ...
Selecting previously unselected package libxft2:i386.
Preparing to unpack .../libxft2_2.3.2-1_i386.deb ...
Unpacking libxft2:i386 (2.3.2-1) ...
Selecting previously unselected package libpangox-1.0-0:i386.
Preparing to unpack .../libpangox-1.0-0_0.0.2-5_i386.deb ...
Unpacking libpangox-1.0-0:i386 (0.0.2-5) ...
Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../liblsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libtsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libcc1-0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking g++-5 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libgfortran3_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgfortran3:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package gcc-5-base:i386.
Preparing to unpack .../gcc-5-base_5.4.0-6ubuntu1~16.04.10_i386.deb ...
Unpacking gcc-5-base:i386 (5.4.0-6ubuntu1~16.04.10) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc-5-base:i386 (5.4.0-6ubuntu1~16.04.10) ...
(Reading database ... 317984 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.10_i386.deb ...
Unpacking libstdc++6:i386 (5.4.0-6ubuntu1~16.04.10) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libstdc++6:i386 (5.4.0-6ubuntu1~16.04.10) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Selecting previously unselected package libicu55:i386.
(Reading database ... 317988 files and directories currently installed.)
Preparing to unpack .../libicu55_55.1-7ubuntu0.4_i386.deb ...
Unpacking libicu55:i386 (55.1-7ubuntu0.4) ...
Selecting previously unselected package libxml2:i386.
Preparing to unpack .../libxml2_2.9.4-1+deb.sury.org~xenial+2_i386.deb ...
Unpacking libxml2:i386 (2.9.4-1+deb.sury.org~xenial+2) ...
Selecting previously unselected package libpangoxft-1.0-0:i386.
Preparing to unpack .../libpangoxft-1.0-0_1.38.1-1_i386.deb ...
Unpacking libpangoxft-1.0-0:i386 (1.38.1-1) ...
Selecting previously unselected package libpango1.0-0:i386.
Preparing to unpack .../libpango1.0-0_1.38.1-1_i386.deb ...
Unpacking libpango1.0-0:i386 (1.38.1-1) ...
Selecting previously unselected package libxt6:i386.
Preparing to unpack .../libxt6_1%3a1.1.5-0ubuntu1_i386.deb ...
Unpacking libxt6:i386 (1:1.1.5-0ubuntu1) ...
Selecting previously unselected package acroread-bin:i386.
Preparing to unpack .../acroread-bin_9.5.5-1precise1_i386.deb ...
Unpacking acroread-bin:i386 (9.5.5-1precise1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libice6:i386 (2:1.0.9-1) ...
Setting up libsm6:i386 (2:1.2.2-1) ...
Setting up libxft2:i386 (2.3.2-1) ...
Setting up libpangox-1.0-0:i386 (0.0.2-5) ...
Setting up libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up cpp-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up g++-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgfortran3:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libicu55:i386 (55.1-7ubuntu0.4) ...
Setting up libxml2:i386 (2.9.4-1+deb.sury.org~xenial+2) ...
Setting up libpangoxft-1.0-0:i386 (1.38.1-1) ...
Setting up libpango1.0-0:i386 (1.38.1-1) ...
Setting up libxt6:i386 (1:1.1.5-0ubuntu1) ...
Setting up acroread-bin:i386 (9.5.5-1precise1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...

 

 

How to add points to timeseries graph to show buy-sell signal – matplotlib

While doing time series analysis, you can show buy/sell signal on the ghraph itself.

Following is the script for doing the same.

While working on this code, I wasted quite a lot of time on below error.

Traceback (most recent call last):
File "timeseries_simple_with_pointer.py", line 35, in <module>
plt.scatter(df.loc[df['SMA20'] >1400.0 , 'Date'],df.loc[df['SMA20'] >1400.0, 'Close Price'], label='skitscat', color='red', s=25, marker="<")
File "/usr/local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 3378, in scatter
edgecolors=edgecolors, data=data, **kwargs)
File "/usr/local/lib/python3.6/site-packages/matplotlib/__init__.py", line 1717, in inner
return func(ax, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 4023, in scatter
offsets = np.column_stack([x, y])
File "/usr/local/lib/python3.6/site-packages/numpy/lib/shape_base.py", line 369, in column_stack
return _nx.concatenate(arrays, 1)
TypeError: invalid type promotion

On further research I found that matplotlib scatter plot does not support pandas series and the scatter plot output needs to be converted into list so I had to use .values to make it work.

Output of my strategy using SMA 5 and SMAA12

As you can see, in range bound market it creates a lot of whipsaw, however, it was able to capture a very good bull run.

I tried using larger duration SMA to see another strategy. Second time, I tried with SAM20 and SMA100 and here is the output

As expected, longer duration SMA strategy provides lesser number of signals, lesser whipsaw’s.

This result does not mean you need to use higher duration SMA. I am planning to run this logic for approx 200 securities, will update this post with the feedabck later.

How to plot simple and Candlestick chart using Python – pandas matplotlib

Pandas and Matplotlib can be used to plot various types of graphs. Simple timeseries plot and candlestick are basic graphs used by technical analyst for identifying the trend.

Simple time Series Chart using Python – pandas matplotlib

Here is the simplest graph. It uses close price of HDFCBANK for last 24 months to plot normal graph

Here is the sample output

Candlestick chart using Python – pandas matplotlib

As per this link, module matplotlib.finance is deprecated in 2.0 and has been moved to a module called mpl_finance. This is still working when I have motplotlib version 2.1.2. This may stop working in any future releases, however, you can use mpl_finance module to use this feature. Please note that mpl_finance is no longer maintained.

 

Here is the output

Candlestick chart with SMA overlay using Python – pandas matplotlib

here is the output

How to find Python module version

There are multiple ways to find python module version however when you have installed multiple python versions itself, checking and remembering which version is used where could be troublesome task.

There is simple solution. Just login to python inteactive environment for required python version and import modules

$ python3.6
Python 3.6.4 (default, Jan 13 2018, 12:02:51) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.__version__
'1.14.0'
>>> import matplotlib
>>> matplotlib.__version__
'2.1.2'
>>>

Here is output for python 2.7

$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
np.>>> np.__version__
'1.13.0'
>>> import matplotlib
>>> matplotlib.__version__
'2.0.2'
>>>

There are other way to get versions of all installed modules

# This gives output for python2.7.X
pip freeze > reqs.txt
# This gives output for python3.5.X
pip3 freeze > reqs3.txt
#This gives output for python3.6.X
python3.6 -m pip freeze > reqs3.6.txt

 

How to convert daily time series data into weekly and monthly using pandas and python

While working with stock market data, sometime we would like to change our time window of reference. Generally daily prices are available at stock exchenges. Let us see how to conert daily prices into weekly and monthly prices.

You can download daily prices from NSE from this link. We will downoad daily prices for last 24 months. Here is the sample file with which we will work

15-06-2016-TO-14-06-2018HDFCBANKALLN

Please refer to below program to convert daily prices into weekly. Comments in the program will help you understand the logic behind each line.

 

Once you understand daily to weekly, only small modification is needed to convert this into monthly OHLC data. Here is the script

 

Here are the output files for your reference.

Monthly_OHLC Weekly_OHLC

Weekly_OHLC

I wasted some time to find ‘Open Price’ for weekly and monthly data. I tried some complex pandas queries and then realized same can be achieved by simply using aggregate function and Open Price:first.

Please do let me know your feedback.

Bar plots in Matplotlib – Data Visualization using Python

Matplotlib can be used to draw simple as well as complex bar plots. In this article we will see how to draw bar plots along with available options.

Here is an example of simple bar plot with available options.

Output of this script

Horizontal Bar plot

Output

Stacked bar plot

Output

bar plot with multiple data series

Output