•October 14, 2010 •
1 Comment
I’ve taken a recent plunge into Solaris again. As I rediscover the differences between standard linux distros, I found this one handy.
To get the total directory size of the current directory:
du -h | tail -1
Typically, grep is used in a situation like this… but on Solaris grep is a lil’ different.
Posted in Solaris
•October 13, 2010 •
Leave a Comment
One unique feature of javascript, in contrast to other languages, is the ability
to have dynamic method calls (without getting hackish).
Although this can be handy in many situations, it is often used with
javascript libraries such as jQuery to dynamically call a method on a referenced
element.
Continue reading ‘Dynamic method calls with javascript’
Posted in JavaScript
•October 12, 2010 •
16 Comments
I found myself in another familiar time where I needed a PHP class and didn’t want to re-invent the wheel. Initial searches for PHP ANSI terminal coloring either resulted in snippets, or classes that didn’t fit the par.
Thankfully, I can always turn to the wonderful perl repository CPAN. Being native to perl, it is very convenient to have this resource either for great ideas or direct ports. This time its going to be a direct port (with minor modifications) of a module I’m already familiar with: Term::ANSIColor.
Continue reading ‘PHP port of Term::ANSIColor’
Posted in PHP