I have a need in a bash shell to get the public ipaddress of a domain name. Here’s how to achieve it:
andrew@andrew:~$ dig +short A www.euperia.com
193.228.155.183
Cool huh?
I was recently caught out by a crontab running even after I had edited the crontab and commented out the line. I used VIM and edited the file followed by a :W command. This saved the file and so assumed that the cron was updated. However, it turns out [...] Continue Reading…
Windows developers using Subversion generally use TortoiseSVN to administer their repositories and when moving to Ubuntu Linux they find using the CLI (Command Line, Terminal, black box – whatever your phrase) alien.
However, there is a way to have a menu in the file manager for performing Subversion administration, just [...] Continue Reading…
Netbeans 7.0 Released
After what feels like a year Netbeans 7.0 is finally released. NetBeans IDE 7.0 introduces language support for development to the proposed Java SE 7 specification with the JDK 7 developer preview. The release also provides enhanced integration with the Oracle WebLogic server, as well as support for Oracle [...] Continue Reading…
kindle with Mindfield game on
Not exactly a hack, but did you know that you can use your Amazon Kindle to play a minesweeper game? Simply hold down the Alt and Shift key and press ‘m’ to activate the game.
You can also play a ‘connect 5′ [...] Continue Reading…
Christmas this year (2010) yielded a lovely surprise in the form of a new Amazon Kindle and I am very pleased with it. The quality of the screen is excellent and the gadget itself is very intuitive and easy to use. However, I have occasionally experiences times when [...] Continue Reading…
Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerators, such as Squid, which began life as a client-side cache, or Apache, which is primarily an origin server, Varnish was designed from the ground up as an HTTP accelerator.
Here’s how to set [...] Continue Reading…
Portsmouth Tilt Shifted
Here’s a picture of the dockyard at Portsmouth I took from the top of Spinnaker Tower. I’ve experimented with tilt shifting and think the result is pretty good.
Portsmouth Historic Dockyard as seen from Spinnaker Tower
Constraining resizable textareas
The new crop of web browsers such as Safari, Chrome(ium) and Firefox 4 allow the user to resize textareas by using a handle at the bottom right. It is possible to restrict the size that the user can resize the textarea to using css min/max width/heights.
textarea {
[...] Continue Reading…
When I upgraded my desktop to Ubuntu 10.04 (Lucid Lynx) I also upgraded my PHP version to 5.3. Apart from a few warnings with some deprecated functions (the main cuplrit being the ereg functions) all went well.
When using the Zend Tool command from the command line I started [...] Continue Reading…