PHP vs Node.js vs Native Speed Comparison
A quick speed comparison between PHP, Node.js and native code. This is obviously an artificial benchmark. The code generates four random numbers between 0 and 100 and uses them as coordinates of two...
View ArticleConcurrent Tasks In JRuby
Sometimes you need to execute long running tasks (like database queries on multiple shards) concurrently. JRuby can easily make use of Java's built-in Executor class for this purpose.# Since...
View ArticleEncrypting Database Passwords In Ruby
Most web applications connect to a database, which means that they need to store the database password in a file. While that file should only be readable by the user running the application server,...
View ArticleTomcat SSL Hardening
If you are using SSL with your Java web application, and you are using Tomcat, the default configuration could be made more secure by by disallowing weak cipher suites. You can test your server...
View ArticleCompiling GnuPG on OS X
First make a directory to hold the compiled files:sudo mkdir /usr/local/gpg Create a text file /etc/paths.d/gpg with the following contents:/usr/local/gpg/bin Open a new terminal for the PATH changes...
View Article