Archive for April, 2011

Add “th” (“nd”, “st”) to a number … painlessly – Part 2

So in the previous post I posted my recipe for adding rank suffixes to numbers.Sometimes - a simple problem can be frustratingly goofy to solve. I took a lazy shortcut by passing the number through mktime - then to date to do it for me.After analyzing what I came up...
Read More

Add “th” (“nd”, “st”) to a number … painlessly.

There's not enough out there about this trick - but you don't need a convoluted solution to add rank indicators to a number, so to add more noise to google search, here my variant is:[crayon-5c102bc9b1743773556569/]Make sure you visit part 2!Logical breakdown:First we get mod of $n against 10 - essentially...
Read More

libflashplayer.so – quickie for install.

Need a place to put it on debian/ubuntu?[crayon-5c102bc9b1900960910567/]Chromium:[crayon-5c102bc9b1906275408742/]Chrome: (You might have to create the 'plugins' dir - I did =\ )[crayon-5c102bc9b1908441092398/]Firefox:[crayon-5c102bc9b190a275661108/]Restart all instances of the browser/s and check it out.PS: Flash on 64-bit linux doesn't matter, you can put it in lib64/ if you -REALLY- want.. Subscribe in a reader...
Read More