Linux-to-Windows Program Replacements
For the past couple of weeks, I’ve been using the Windows 7 beta. A shocker, I know, but I’ve been able to find replacements for most of the software I use everyday in Linux. The biggest hangups I’ve...
View ArticleMake Windows Act Like Linux
As I use Win7 more and more, there are things that I notice it doesn’t do that linux did do. Virtual desktops, certain programs minimizing to the systray, clipboard history. Small things, things that...
View ArticleA Method for CSS Variables
Jay Salvat at nettuts has written an article on adding variables to your css files. I like the approach, which includes caching the results, though the code presented is not 100% secure, as commenter...
View ArticlePHP Templating: Variable Date
In building a template system, you may want some way to inject date info using a timestamp (perhaps generated through mktime() ) and date(). But you don’t want the format to be dependent on the...
View ArticleConky Transparency Fix for KDE4
I love the feeling of power that comes from doing something that google couldn’t help with In this case, I’ve spent the past couple days messing with Conky (yes, it is as addicting as they say). A...
View Article“Selective Top” Bash Script
In my daily work on linux, I constantly have several tabs open in my console app for various CLI activites. Normally, when I log in to a session, Yakuake auto-starts and I immediately open four tabs in...
View ArticlePHP Socket Implementation and Webpage Downloader
This post reveals two handy PHP constructs I’ve been using for a while now: a Socket class and a webpage-downloading function. The files: Socket.php (highlighted; plaintext) webpage.php (highlighted;...
View ArticleBash rpad, lpad, and “center-pad”
One thing it seems bash has no tool for is padding strings. If you want to left-pad a number (say, 3) with zeros to a certain “string width” (say, 5 characters wide), you could do: $ echo `printf...
View ArticleSVN setup
Recently I set up an SVN repository in the hopes that maybe I can show off some of my programming work to potential clients (or maybe just other people who are interested). I ran into sufficient...
View ArticlePython: urllib2 handlers
Python is a great language, with a good community (see Freenode irc channel #python) — but its modules can have lousy documentation at times. One place where I find the documentation lacking is in the...
View Article