Problem running tomcat 5 in ubuntu 11.10 – java.lang.Exception: Socket bind failed: [22] Invalid argument
If when starting tomcat in ubuntu get the following error INFO: Loaded APR based Apache Tomcat Native library 1.1.19. Apr…
How To Disable IPv6 Under Ubuntu
1. Open the terminal and issue this command to check whether IPv6 is enabled or not: cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0: means…
Securing REST API calls using signatures
So, you have web client who want to call some rest service calls. How can you secure these calls? TRUST…
java how to split a string with a dot “.”
When you have in java a string like “domain.com” and you want to split it to an array like this…
Determine the iso 8859 code of a language
ISO-8859-1 – Latin 1 Western Europe and Americas: Afrikaans, Basque, Catalan, Danish, Dutch, English, Faeroese, Finnish, French, Galician, German, Icelandic,…
editor for crontab jobs
When you want to edit the crontab jobs and you want to select the editor to do with you must…
send mail during cron job for successful task
Recently I have setup a cronjob to automatically restore a mysql database. So I created a script like the following…
Http Authentication on PHP as CGI
When you want to secure some pages in a directory and want to use http authentication. (this popup with username…
Posting to a URL using java and jakarta commons HtppComponents
When you want to post some values to a specific URL using java you can use http components from http://hc.apache.org/httpclient-3.x/ …
JVM tuning for Liferay
Below is the jvm configuration of a tomcat server used to a liferay deployment installation Options for memory profiling -Dcom.sun.management.jmxremote…