Category Archives: Software

Creating a Java Applet in 2013

Creating applets used to be easy somewhere in the distant past. Now it’s a bit more complicated … You need so sign the applet. There’s no way around that, if you don’t want 3 warning popups. (and unsigned code will … Continue reading

Posted in Software | Leave a comment

Create Ftp User Restricted to Home Directory on Ubuntu

After googling for some time, this is simplest solution that I found for creating a user that is limited to the home directory and has only ftp access on Ubuntu. Do as root: Update: the previous solution involved using vsftpd.chroot_list … Continue reading

Posted in Software | Leave a comment

ElasticSearch Color Search

For the color search on Pattern Design(a great platform for vector designs), I recently created a color search query powered by Elasticsearch. Try it, it works great. In the schema mapping the average color is stored as an integer averageColor … Continue reading

Posted in Software | 5 Comments

Grails ClassNotFoundException: DefaultSecurityConfig running from IntelliJ

If you run into a “ClassNotFoundException: DefaultSecurityConfig” running Grails tests from IntelliJ IDEA, with the stacktrace below java.lang.RuntimeException: java.lang.ClassNotFoundException: DefaultSecurityConfig at SpringSecurityCoreGrailsPlugin$_closure1.doCall(SpringSecurityCoreGrailsPlugin.groovy:151) (… snip …) Caused by: java.lang.ClassNotFoundException: DefaultSecurityConfig … 61 more | Error Error generating web.xml file then try … Continue reading

Posted in Software | 1 Comment

PHP – ping server and log the result

Here’s a small usefull PHP script that gets data from an url, checks if it’s what you expect it to be, and logs the result (the current time, and the retrieved content if there’s an error). Best used with a … Continue reading

Posted in Software | 2 Comments