Posts

Showing posts from April, 2014

NoRouteToHostException: Cannot assign requested address

On socket
s.setReuseAddress(true);

check and set max number of file handles ulimit

sudo su
echo "1" >/proc/sys/net/ipv4/tcp_tw_reuse
echo "1" >/proc/sys/net/ipv4/tcp_tw_recycle

Other OS settings


Map lat/long

http://universimmedia.pagesperso-orange.fr/geo/loc.htm

HTML/CSS/JavaScript editor

http://jsbin.com/aqajoy/11/edit

Gradle

HowTo

To use the gradle daemon and make it faster since it doesn't have to spin up a JVM every time:

alias gradle='gradle --daemon'