Archive for the ‘Programming’ Category

“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)

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)

Up to date sql list of countries – 31-07-2008

Tagged: MySQL, Programming Date: 31st, July 2008

Just collected list of countries and formatted it into MySQL form… well nothing much but I bet it will be useful to someone out there. Well enjoy: Countries List SQL download

Even fresher SQL Countries list… here.

  • Leave Comment
  • Read Comments (4)

Recursively add files to CVS

Tagged: Programming Date: 4th, April 2008

Linux shell command, recursive cvs add:

cvs -qn update | grep -v CVS | xargs cvs add

or even

find . -type d -print | grep -v CVS | xargs cvs add
find . -type f -print | grep -v CVS | xargs cvs add

  • Leave Comment
  • Read Comments (1)