Useful *nix command-line stuff

I'm capturing here a few hints and URLs to pages that contain useful *nix (Unix/Linux/etc) commands. Sometimes I forget a command that was once useful, so here I am capturing them for my long-term memory!

Linux Commands - A practical reference

Simple Commands

To do something with files in a directory, easy syntax:

$ for f in *.c; do cmd $f; done

I find this simpler than find *.c -exec cmd {} \;, which has the habit of including the file path (e.g. ./filename in the command).

@ 02:59 PM on January 18 | 0 Comments

Toaster Pop-up fix

No, this is a real toaster (the thing that makes bread slices nice and crispy).

I bought this cheap "SIMPEX" toaster from H&M in Ljubljana. Type 12415 1233 according to the label on the underside.

Anyway, the thing stopped popping (actually, it stopped staying down.. I had to manually hold it down to toast my bread this morning).

So I took it apart to see what was the matter..

Read More »
@ 04:56 PM on August 31 | 0 Comments

Just upgrade admin

I was looking for a way to write to my Chyrp blog from my droid phone.. and it seems that all I needed to do was upgrade my Chyrp admin pages as decsribed in the Chyrp Development blog

@ 03:30 PM on August 31 | 0 Comments

WHCMS does not support ""

I had an issue with WHCMS (the web host management system) not correctly identifying that unused "" domains where actually available.

Whatever "" domain I used, they would all fail with "Domain not available".

The solution is to edit the .../includes/whoisservers.php file and change the "" line to:||HTTPREQUEST-Domain not found

@ 09:45 PM on July 02 | 0 Comments

Disabling adverts on the Samsung Galaxy Y Pro (B5510)

Have a look at my latest post for some notes on how I edited my Samsung Galaxy Y Pro's "/etc/hosts" file, and blocked Google's adverts!

@ 05:11 PM on March 06 | 0 Comments

Postfix relaying using mail hosts based on "From" address

Have a look at my most recent page setting up postfix to use different mail relays based on the email's "From" address

@ 09:29 PM on March 02 | 0 Comments

Integrating svn with Nautilus

Finally! A plugin that lets you access all your favourite subversion commands that integrates with Nautilus. And that works!

I previously tried RabbitCVS but found that it totally sucked when I navigated into the Isis parent directory - it seemed to immediately recursively investigate all directories.

Anyway, after a serendipitous StackOverflow search, I found PagaVCS.

PagaVCS works really well, and it even has a version that installs on my Ubuntu 10.10 machine.

@ 06:16 PM on February 24 | 0 Comments

Apache Isis version 0.2.0-incubating Released

New Functionality

Have a look at the Release Notes for the full list, but a selected highlight list:

SQL/JDBC Database related

  • Persist and restore polymorphic classes
  • Allow users to override "isis_" table prefix

Other useful stuff

  • JSON viewer (for Restful Objects, up to v0.56).
  • New "onlinedemo" example to demonstrate combined html and json viewers as live example.

Other Improvements

After some internal discussion, we have revamped the Isis home page - hopefully it should now be more apparent what Isis is for, and how you can use it.

@ 01:10 PM on February 23 | 0 Comments

Tip: Hiding webapp port 8080 behind port 80

Use the Apache Webserver (httpd) to hide a webapp running on port 8080 behind port 80 (and even put it behind SSL).

I needed this when I found that a corporate firewall prevented access to my Isis webapp.

@ 06:19 PM on January 11 | 0 Comments

Apache Isis pages

Added Apache Isis Mini-pages, providing detailed content, in a hierarchical structure.

@ 02:51 PM on January 09 | 0 Comments

Apache Isis

I am a contributor to the Apache Isis project.

In particular, I have been working on the Isis SQL ObjectStore, to allow domain information to be saved to any database with JDBC drivers.

These pages will contain hints and techniques that I have picked up.

@ 03:37 PM on December 16 | 0 Comments