Sunday, November 13, 2016

Twitter mining for Demonitization India

Data Set - 300 tweets since UTC Nov 13 - 08:45:05 +0000 2016.

Top HashTags
#Demonitization, 184
#ModiFightsCorruption, 14
#demonitization, 9
#CurrencyCrisis, 8
#BlackMoney, 7
#DeMonitization, 5
#ATMs, 5
#ReadingMelas, 4
#blackMoneycleanup, 4

Thursday, July 21, 2016

Text clustering kmeans scikit learn

http://stackoverflow.com/questions/27889873/clustering-text-documents-using-scikit-learn-kmeans-in-python

Tuesday, June 21, 2016

Syntaxnet tensorflow on Mac


Install Cuda using: brew cask install cuda

Version : 5 for Cuda version 7.5
Move cudaNN lib to cuda lib
Move include/.hh to cuda folder

Patch: http://stackoverflow.com/questions/37804158/syntaxnet-bazel-test-failed

After running the first parse -
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Source ~/.bash_profile

Monday, May 23, 2016

Postgresql mac with spring boot


http://exponential.io/blog/2015/02/21/install-postgresql-on-mac-os-x-via-brew/

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  postgres -D /usr/local/var/postgres

https://marcinkubala.wordpress.com/2013/11/11/postgresql-on-os-x-mavericks/








*******************************************************

http://stackoverflow.com/questions/7975556/how-to-start-postgresql-server-on-mac-os-x
Starting and stopping server

The Homebrew package manager includes launchctl plists to start automatically. For more information run brew info postgres.
Start manually:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Stop manually:
pg_ctl -D /usr/local/var/postgres stop -s -m fast

What is the result of pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start?
What is the result of pg_ctl -D /usr/local/var/postgres status?
Are there any error messages in the server.log?
Make sure tcp localhost connections are enabled in pg_hba.conf:
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
Check the listen_addresses and port in postgresql.conf:
egrep 'listen|port' /usr/local/var/postgres/postgresql.conf
#listen_addresses = 'localhost'     # what IP address(es) to listen on;
#port = 5432                # (change requires restart)

Cleaning up
Postgres was most likely installed via HomebrewFinkMacPorts or the EnterpriseDB installer.
Check the output of the following commands to determine which package manager it was installed with:
brew && brew list|grep postgres
fink && fink list|grep postgres
port && port installed|grep postgres

Sunday, April 10, 2016

Reading File from resources folder

http://www.mkyong.com/java/java-read-a-file-from-resources-folder/
http://www.mkyong.com/java/java-getresourceasstream-in-static-method/