Technologies

I will mostly write about following

Java, J2EE, GWT(Google Web Toolkit), HTML, Javascript, Linux, MacOS, Queue, Docker, Cloud hosting, Auto Scaling, Web, Ad Serving etc.

.profile is ignored when terminal is started in MAC-OSX

One fine day suddenly all environment variables that I have set inside .profile file of my machine stopped getting declared when machine is restarted.

It turns out that if you have .bash_profile or .bash_login file then .profile file will be ignored by bash.

So you need to make use of either .profile or .bash_profile not both of them, if you are using bash.

mac  OSX 

bind MySql to multiple ipaddress

If you are looking to bind MySql Service with multiple ip address on given machine. Then you cannot do it selectively. When I say selectively, if there are 5 network cards (IP Addresses) to given machine and you want to allow connections to be made only from 3 network cards (IP Addresses). Then you cannot configure MySql service to bind selective IP addresses. What you can do is either you can bind it with single ip address or all the IP addresses available on the machine. [Read More]

Mysql 5.5 is not accessible remotely.

I recently installed MySql 5.5 and tried to access it from remote machine. But it was not accessible. I had added remote user for the remote machine from which I was trying to access the DB. But it was failing to connect, I even tried to connect it through telnet. Then I found that by default mysql is only bound to serve localhost requests only. If you need to access it remotely you need to make changes in my. [Read More]

MySql Datafiles are getting corrupted on Mac-OSX abrupt shutdown

I have consistently faced this issue of MySql data files getting corrupted when my machine is rebooted abruptly. This has resulted into repetitive work that I have to do to rebuild the data. I tried to google for the solution and see if somebody else has seen this issue. But it seems this the way it will work, as MySql data files are not closed properly which results into corrupt database in case your machine gets abruptly restarted. [Read More]
mysql  mac  OSX 

Open link in new Tab / Window (Html Anchor tag)

To Open respective page pointed by hyperlink in new tab or window one need to make use of target attribute for more details refer. As per below description following configuration will help you to control where a respective link will be displayed. Value Description _blank Opens the linked document in a new window or tab _self Opens the linked document in the same frame as it was clicked (this is default) _parent Opens the linked document in the parent frame _top Opens the linked document in the full body of the window framename pens the linked document in a named frame Sometimes you have to open a link inside new tab e. [Read More]

Run eclipse on remote ubuntu 13.10 server using x11

To run eclipse from on remote ubuntu 13.10 server using x11 on local machine. Prerequisites: I am assuming JDK and Eclipse is already installed. In addition to that you need to install few libraries on remote server. Run the following command to install those libraries on remote server. $ sudo apt-get install libgtk2.0-0:i386 libxxf86vm1:i386 libsm6:i386 lib32stdc++6 libxtst6 Once above libraries are install open another terminal and connect remote server through ssh with -X option [Read More]

UBUNTU 13.4 LD_LIBRARY_PATH is not set from /etc/environment

For some reason LD_LIBRARY_PATH value is not getting set through /etc/environment. All other variables are getting initialized properly when it is been set through /etc/environment. After searching for the solution I came to know after UBUNTU 9.04 release you are not able to set LD_LIBRARY_PATH from $HOME/.profile, /etc/profile, nor /etc/environment refer documentation Run following command and restart the machine to workaround the issue. echo STARTUP=\"/usr/bin/env LD_LIBRARY_PATH=\${LD_LIBRARY_PATH} \${STARTUP}\" | sudo tee /etc/X11/Xsession. [Read More]

Install ZeroMQ on ubuntu with Java Binding

First install all required tools to build zeromq library sudo apt-get install libtool autoconf automake uuid-dev build-essential pkg-config Once you have required tools install download zeromq source code and make a build #Download latest zermoq source code http://zeromq.org/area:download #I tried it with zeromq-3.2.4.tar.gz (http://download.zeromq.org/zeromq-3.2.4.tar.gz) $ zeromq-3.2.4.tar.gz $ tar -zxvf zeromq-3.2.4.tar.gz $ cd zeromq-3.2.4 $ ./configure $ make $ sudo make install $ cd ../ This will install zeromq libraries at location /usr/local/lib you may like to set this path with LD_LIBRARY_PATH so that the libraries will be used at the time of execution. [Read More]

Install Eclipse Maven plugin and import maven project

With new versions of Eclipse old m2e plugins have become absolute now you need to install eclipse plugins from eclipse market place. Follow below steps to install m2e plugins along with required GWT plugins. I have tried below steps with Eclipse (Kepler) Install GWT eclipse plugin Help -> Eclipse Marketplace. Search with string GWT install Google Plugin for eclipse 4.3. Install maven plugin open Eclipse Marketplace and search for m2e-wtp look for Maven Integration for Eclipse WTP Juno (1. [Read More]