Thanks to
Extract words from Marathi wikipedia

1) Download the polyglot pickled marathi model
mv 12FI1xV polyglot-mt.pkl

2) Extract all the words from the embedding

from polyglot.mapping import Embedding
with open('myfile.txt', 'w') as fx:
for i in embeddings.vocabulary:

3) Download the wordlist:

... Link (0 comments) ... Comment

Custom slack command

Here are 5 steps to add any API to your slack channel.

A) Click on "Build" button on App Directory page of slack.
B) choose "Make a Custom Integration" button
C) select Slash Commands
D) Create a new command called /dest2 and add the URL mentioned above
E) Choose GET Method and save the command.

... Link (0 comments) ... Comment

stack bookmarklet

This bookmarklet will help to quickly access stack pages linking to current page

stack link

... Link (0 comments) ... Comment

RSS extension for chrome

RSS Subscription Extension (by Google) is a must have chrome extension if you read RSS feeds.
When you click on RSS feed icon, you will get only "Bloglines" and "My Yahoo" sites. But you can add more sites if you click on "Mange" option. For e.g. add feedspot with the following URL...

... Link (0 comments) ... Comment

use putty for presentation

Config - Change settings... - Window - Colours - Use system colours
Config - Change settings... - Window - Appearance - Change... - 12 point

... Link (0 comments) ... Comment

linguistics using Python

These are the 4 libraries apart from standard library nltk are useful to analyze natural languages using python.

1) from corenlp import StanfordCoreNLP

2) from gensim.models import word2vec

3) import divisi2

4) from sklearn.naive_bayes import MultinomialNB

... Link (0 comments) ... Comment

Type Marathi on Ubuntu

Here are the steps to install Marathi input method for Ubuntu.

sudo apt-get install ibus
sudo apt-get install ibus-m17n ( this package contains tables for Indic languages)
sudo apt-get install ibus-qt4 (if you are using KDE desktop)
sudo apt-get install ibus-gtk (if you are using GNOME desktop)
sudo apt-get install im-config

... Link (0 comments) ... Comment

connect to remote windows server

You need to go to start - run and type this command:

This will start Remote Desktop connection wizard that will allow you to connect to remote windows server.

... Link (0 comments) ... Comment

Adding swap

The following example will add 1 GB of swap file to your Linux system.

dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
chmod 600 /root/myswapfile
mkswap /root/myswapfile
swapon /root/myswapfile

... Link (0 comments) ... Comment

scrolling in screen

We can not scroll up or down while working in screen mode. Press Ctrl-a, Esc to enter copy mode, then use standard navigation keys. Adding the following to ~/.screenrc will solve this issue.
termcapinfo xterm|xterms|xs|rxvt ti@:te@

or add this to /etc/screenrc
defscrollback 1024

hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "

As a quick tip, name your screen windows using Ctrl-a A

... Link (0 comments) ... Comment

Online for 6050 days
Last modified: 3/17/19 3:22 PM
Youre not logged in ... Login
... Home
... Tags

March 2019
Recent updates
python itertools module from itertools
import groupby s = 'abcccccbba' for w, v in groupby(s):...
by shantanuo (3/17/19 3:22 PM)
audio visual modules for Machine
Learning Here is the list of some of the modules...
by shantanuo (3/16/19 1:08 PM)
google module module for google
search !pip install google from googlesearch import search for url...
by shantanuo (1/8/19 10:38 AM)
Python date and time from
datetime import datetime date_string = "21 June, 2018" date_object =...
by shantanuo (12/26/18 12:14 PM)
Infer types in pandas This
will return the mixed datatypes but this can be slow....
by shantanuo (12/16/18 3:50 PM)
Extract words from Marathi wikipedia
1) Download the polyglot pickled marathi model wget mv...
by shantanuo (11/4/18 10:06 AM)
Google Input tools Google suddenly
stopped download of Input Tools package without giving any reason....
by shantanuo (9/10/18 7:44 AM)
Python objects and methods Here
are important python objects and their methods int __mul__, __add__,...
by shantanuo (8/18/18 3:11 PM)
JSON to DF Here is
how to read a JSON file into pandas dataframe. import...
by shantanuo (8/8/18 1:12 PM)
managing servers using python Fabric
is a high level Python library designed to execute shell...
by shantanuo (8/4/18 10:01 AM)
backup mysql users It is
easy to backup mysql users - wget; perl pt-show-grants
by shantanuo (5/20/18 3:42 PM)
About python 1 everything is
an object (class instances) 2 methods depends upon class of...
by shantanuo (5/20/18 2:52 PM)
mysql and shell command date
-d"-1 day ago" +'%b%d' equals to mysql -Bse"select date_format(date(date_add(now() ,...
by shantanuo (5/16/18 7:47 AM)
Preserving comments in Stored Procedure
You can write multi line comments in a stored procedure...
by shantanuo (5/12/18 12:56 PM)
Custom slack command Here are
5 steps to add any API to your slack channel....
by shantanuo (4/25/18 6:59 AM)
stack bookmarklet This bookmarklet will
help to quickly access stack pages linking to current page...
by shantanuo (1/10/18 10:47 AM)
Manage S3 like rsync ####
create bucket aws s3 mb s3://johntest123/ #### rsync all files...
by shantanuo (12/22/17 12:04 PM)
apache docker container issues If
apache docker container does not start then make these changes......
by shantanuo (11/10/17 3:00 PM)
Install aws client on centos
If pip is not installed, then the following command will...
by shantanuo (10/26/17 9:51 AM)
Managing Amazon keys Use this
command to convert private key to public key. ssh-keygen -y...
by shantanuo (10/9/17 7:04 AM)
percona utility We can re-create
mysql users using the percona utility. wget chmod 777...
by shantanuo (9/6/17 8:22 AM)
mail merge separate file per
record Microsoft Word has an excellent feature called Mail-Merge. If...
by shantanuo (7/6/17 12:09 PM)
find dead processes The 8th
column of ps aux command will list the status of...
by shantanuo (5/28/17 7:39 AM)
Amazon Web Services Here are
some of the important Amazon products to use. cloudTrail...
by shantanuo (5/10/17 11:35 AM)
Self signed security certificate
openssl genrsa -out 1024 openssl req -new -key
by shantanuo (1/16/17 8:02 AM)

RSS feed

Made with Antville
Helma Object Publisher