Thanks to antville.org
Saturday, 21. May 2016
Start 2 containers at once

Here is how you can start neo4j as well as scipy notebook.

vi docker-compose.yml

neo4j:
image: kbastani/docker-neo4j:latest
ports:
- "7474:7474"
- "1337:1337"
volumes:
- /opt/data

jupyterscipy:
image: jupyter/scipy-notebook
ports:
- "8888:8888"
links:
- neo4j:neo4j
volumes:
- .:/home/jovyan/work

docker-compose up -d

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


Tuesday, 9. February 2016
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

https://github.com/stanfordnlp/CoreNLP

2) from gensim.models import word2vec

https://github.com/piskvorky/gensim/

3) import divisi2

https://github.com/commonsense/divisi2

4) from sklearn.naive_bayes import MultinomialNB

https://github.com/scikit-learn/scikit-learn

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


Tuesday, 26. January 2016
Aurora Amazon rates

The cost of Aurora hosting per hour.

db.r3.large $0.290 (0.24 mysql)
db.r3.xlarge $0.580 (0.475 mysql)
db.r3.2xlarge $1.160 (0.945 mysql)
db.r3.4xlarge $2.320 (1.89 mysql)
db.r3.8xlarge $4.640 (3.78 mysql)

Mysql hosting starts with db.t2.micro at only $0.017 per hour.

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


Monday, 25. January 2016
connect to AWS

It is possible to use password to connect to AWS

1) change config file
sudo vi /etc/ssh/sshd_config

PermitRootLogin yes
PasswordAuthentication yes

2) restart
sudo service ssh restart

3) add a password
sudo passwd root

4) ssh without key
ssh root@xxx.com

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


Monday, 28. September 2015
Install percona extra backup tool innobackupex

Steps to install innobackupex on Ubuntu:

$ apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A

Add this to /etc/apt/sources.list, replacing VERSION precise with the name of your distribution:

deb http://repo.percona.com/apt precise main
deb-src http://repo.percona.com/apt precise main

Remember to update the local cache:
$ apt-get update

Now you can install Percona XtraBackup with:
$ apt-get install percona-xtrabackup

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


Backup mysql data using innobackup

BACKUP

innobackupex --user=USERNAME --password=PASSWORD --no-timestamp /data/backups/new_backup <--(PATH OF BACKUP)
innobackupex --apply-log /data/backups/new_backup

RESTORE

service mysql stop
mkdir /tmp/mysql
mv /var/lib/mysql/* /tmp/mysql/
innobackupex --copy-back /data/backups/new_backup <--(PATH OF BACKUP WHERE IS STORED)
chown -R mysql: /var/lib/mysql
service mysql start

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


Friday, 4. September 2015
Tuning MySQL

Getting the shell script:
wget https://launchpadlibrarian.net/78745738/tuning-primer.sh

Running:
sh tuning-primer.sh

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


Tuesday, 1. September 2015
convert a rpm to deb

Here are simple steps to convert a rpm package to deb package and install.

sudo apt-get install alien

wget http://tinyurl.com/ptvn89k

sudo alien ibus-typing-booster-1.2.3-4.el7.noarch.rpm

sudo dpkg -i ibus-typing-booster_1.2.3-5_all.deb

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


Monday, 10. August 2015
upgrade ubuntu

Upgrade from 14.04 to 15.04 is a 2 step journey.

sudo nano /etc/update-manager/release-upgrades
change the value to normal

And then use this command twice!
sudo do-release-upgrade

You can check your ubuntu version:

lsb_release -a
Description: Ubuntu 15.04

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


Tuesday, 7. July 2015
Libre office on centOS

Here is how to install Libre office on centOS

64 bit
wget http://download.documentfoundation.org/libreoffice/stable/4.4.4/rpm/x86_64/LibreOffice_4.4.4_Linux_x86-64_rpm.tar.gz

32 bit
wget http://download.documentfoundation.org/libreoffice/stable/4.4.4/rpm/x86/LibreOffice_4.4.4_Linux_x86_rpm.tar.gz

tar xvf LibreOffice_4.4.4_Linux_x86_rpm.tar.gz

rpm -Uvh LibreOffice_4.4.4.3_Linux_x86_rpm/RPMS/*.rpm

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


Online for 8601 days
Last modified: 12/29/25, 8:42 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
March 2026
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031
December
Recent updates
easyphone features for senior citizens
Auto Answer This service lets an authorised user listen discreetly...
by shantanuo (12/29/25, 8:42 AM)
install ubuntu GUI on EC2
instance #!/bin/bash set -e echo "===> Switching to text mode...
by shantanuo (11/27/25, 3:43 AM)
Extract words Extract all incorrect
words in first.txt file and all correct ones in second.txt...
by shantanuo (10/13/24, 10:18 AM)
Remove hyperlink in LO writer
1) Select "Internet Link" from Character styles. 2) Right click...
by shantanuo (10/9/24, 8:09 AM)
Templates in LO writer 1)
File > Templates > Save as Template 2) Give it...
by shantanuo (10/9/24, 8:07 AM)
discretize continuous features You can
"discretize" or "bin" continuous features into categorical features. from sklearn.preprocessing...
by shantanuo (4/24/24, 9:33 AM)
User Defined Property You
can create User Defined Property in libreoffice writer. File – Properties...
by shantanuo (1/9/23, 8:52 AM)
Arranging Chapters in the Navigator
To use a custom paragraph style for a heading, choose...
by shantanuo (1/4/23, 8:26 AM)
Use focus mode using Android
phones Settings > Digital Wellbeing and parental controls. Tap your...
by shantanuo (1/1/23, 3:59 AM)
Embed Fonts in document If
you use a font that the recipient is unlike to...
by shantanuo (12/18/22, 10:07 AM)
Using Navigator in Writer To
open the Navigator, select View > Navigator, or press the...
by shantanuo (12/18/22, 10:06 AM)
More about hyphenation The settings
for Tools > Options > Language Settings > Writing Aids...
by shantanuo (12/18/22, 10:04 AM)
link or unlink template If
you are using Libre office then template changer extension is...
by shantanuo (12/16/22, 5:27 AM)
Finding Styles you can select
Edit > Find and Replace > Other Options > Paragraph...
by shantanuo (12/14/22, 7:17 AM)
regex in clac In LibreOffice
Calc, you can use function REGEX for e.g. Begins with...
by shantanuo (12/14/22, 4:40 AM)
Libre Calc tips Turn Off
Grid Lines If you want to turn off grid lines...
by shantanuo (12/13/22, 8:14 AM)
More about Styles You can
goto View - Styles and change "All Styles" to "Applied...
by shantanuo (12/13/22, 7:49 AM)
Page Break Before Every Chapter
If your chapter titles are using the "Heading 2" Style:...
by shantanuo (12/13/22, 6:36 AM)
View and print in different
color Displaying Color in LO but Printing as White Page...
by shantanuo (12/13/22, 6:26 AM)
Change Normal Template in Libreoffice
Writer 1) Open a new file and set your font;...
by shantanuo (12/12/22, 8:45 AM)
Short english words in Devanagari
The list of short english words written in Devanagari. #...
by shantanuo (10/5/22, 9:05 AM)
Card issuing banks CITI
Standard Chartered HSBC American Express HDFC ICICI AXIS INDUS IND Kotak...
by shantanuo (7/16/22, 4:46 AM)
Activate IAM Access To activate
the Activate IAM Access setting, you must log in to...
by shantanuo (7/12/22, 5:52 AM)
use cheat instead of man
wget https://github.com/cheat/cheat/releases/download/4.2.3/cheat-linux-arm64.gz gunzip cheat-linux-arm64.gz chmod 770 cheat-linux-arm64 ./cheat-linux-arm64 mv cheat-linux-arm64...
by shantanuo (7/4/22, 8:53 AM)
python module itertools list of
useful methods of itertools module. permutations combinations combinations_with_replacement zip_longest count...
by shantanuo (9/8/21, 7:50 AM)

RSS feed

Made with Antville
Helma Object Publisher