Archive for August, 2008

“GOTO” in PHP?

Tagged: PHP Date: 12th, August 2008

I have just been reading up meeting notes from PHP Dev team and I found few very interesting conclusions. One of them regards introducing GOTO in PHP (remember GOTO 10?).
There has been a lot of discussion on GOTO statements during the years most of them citing “Goto considered harmful” [uri]. Even with all those [...]

  • Leave Comment
  • Read Comments (0)

Can not change theme in AWN

Tagged: Ubuntu Date: 8th, August 2008

There is a bug in current version of AWN (Avant Window Navigator 0.3.1), theme manager is broken. After some time I found out that there is a very simple solution for this problem.
AWN doesn’t make permissions for config folder like it should, owner is root instead of you (the rightful owner). Quick fix is:

sudo chown [...]

  • Leave Comment
  • Read Comments (0)

Always fresh: Sql list of countires

Tagged: MySQL, Programming, Something Else Date: 5th, August 2008

Since my last post with updated list of countries in MySQL format was so well received I decided to go even further and write a parser script so you can always get fresh countries list.
Every time you download sql countries list it will be up to date for that very minute. This is because it [...]

  • Leave Comment
  • Read Comments (3)

Unrar recursively multiple archives (linux and mac)

Tagged: Database, Programming, Ubuntu Date: 1st, August 2008

It really is a drag when you download full season of your favorite show and see 20+ episodes in separate folders, every episode rared. It takes a bit of time to unpack one by one.
Here’s a little script that should help you with that (and with similar tasks). Download.
Install:

gunzip unrarr.gz
sudo cp unrarr /usr/bin/
sudo chmod +x [...]

  • Leave Comment
  • Read Comments (10)