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-5c6dbdc9540e0020605905/]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-5c6dbdc9542d3184570075/]Chromium:[crayon-5c6dbdc9542da606031941/]Chrome: (You might have to create the 'plugins' dir - I did =\ )[crayon-5c6dbdc9542dd913022163/]Firefox:[crayon-5c6dbdc9542df174898944/]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