Qt learning curve journal, part I

The goal – to create a cross platform application infrastructure for Linux, Windows and Mac that will serve as the basis for future cross platform application. I first thought of using wxwidgets but noticed that there were problems getting it to compile on Mountain Lion OS/X. In addition, Qt seemed more equipped to handle to …

Continue reading ‘Qt learning curve journal, part I’ »

Recursively remove specific filename in Linux

The trick is to use the find command with the -exec or -execdir parameter. I needed to remove all the files named serials_dev.db3 from multiple backup directories. The following did the job: find . -type f -name "serials_dev.db3" -exec rm -f {} ; Here are the relevant parts from the find man page: -exec command …

Continue reading ‘Recursively remove specific filename in Linux’ »

Writing a GIMP plugin

The first thing mentioned in the GIMP developer plugin tutorial is that gimptool-2.0 is required to to install a plugin, however it does not mention where this tool is available. A search provided this site which explained it is part of the gimp development library. On Ubuntu just issue: sudo apt-get install libgimp2.0-dev

ssh – automatic remote login

Since I don’t do this often enough to remember – here’s the procedure summarized (for Linux and OS/X, on Windows use putty): me@here is username me at ip/hostname here user@there is username user at ip/hostname there me@here$ cd me@here$ ssh-keygen -t rsa press return a few times, don’t enter passphrase. This will create a public/private …

Continue reading ‘ssh – automatic remote login’ »

Calculating Hebrew Holidays

hebcal is a nice utility that compiles on all major platforms and calculates the Hebrew holidays using a perpetual calendar. iconv is an amazing piece of work that can convert between zillions of encoding formats and is also available for all major platforms. By default, just running hebcal displays the current year’s Hebrew holidays in …

Continue reading ‘Calculating Hebrew Holidays’ »

Ubuntu – Accessing sqlite3 from Lua

I thought this would be trivial but ended up fighting with various solutions until I found one that worked without requiring additional configurations. So first you might need to install the sqlite3 development libraries (which are needed to compile the Lua sqlite3 connector): sudo apt-get install libsqlite3-dev install luarocks if you don’t have it sudo …

Continue reading ‘Ubuntu – Accessing sqlite3 from Lua’ »