Category Archives: GNU/Linux

PostgreSQL grants on all tables

As much as I love PostgreSQL, its system of managing user privileges is a pain in the ass. PostgreSQL has no equivalent to MySQL’s method of granting a privilege on all of the tables in a database, including tables that … Continue reading

Posted in GNU/Linux

If Plasma dies, here’s what to do

Every now and then, the Plasma desktop in KDE 4 crashes on me. Usually, it restarts itself. Sometimes, it doesn’t. If you’re cursed with the latter scenario, there’s an easy solution. Note: As avocadohead kindly mentioned in the comments, KDE … Continue reading

Posted in GNU/Linux Tagged

Matching Printable Characters

Who doesn’t love regular expressions? They’re fucking awesome. I use’em at least 10 times per day. Sometimes, there’re restrictions on what patterns you can use. I wanted to change a regex for validating passwords. Originally, it allowed letters, numbers, and … Continue reading

Posted in Coding, GNU/Linux, Uncategorized Tagged

Displaying Your ViM Colour Scheme

I posted this mostly because I’m always forgetting it, and also because it’s a pain in the ass to search for on Google. I usually try “:echo g:colorscheme”, which fails miserably. If you’re playing around with colour schemes in ViM … Continue reading

Posted in GNU/Linux Tagged ,

When Gnome and Firefox Are Dead Slow

I’ve had Ubuntu Karmic Koala installed on my MacBook Pro Core2Duo for 2-3 weeks now. Almost everything’s been working perfectly. However, whenever I’d start a second Gnome session and run Firefox, the machine would slow to a crawl, and X’s … Continue reading

Posted in GNU/Linux Tagged ,

Copying Between GNU Screen buffers

GNU Screen is one of those tools that makes you think “How the %&@# did I live without this for so long?!” If you work on command lines regularly, GNU Screen is a must. In my desktop environment, I run … Continue reading

Posted in GNU/Linux Tagged

Linux Mint Is Weird

I have a MacBook Pro. I bought it back in 2007 when I was living in Australia. It’s awesome. I love it, especially the keyboard. Unfortunately, Mac OS X has pissed me off way too many times. So I jumped … Continue reading

Posted in GNU/Linux Tagged

Idiosynchracy With Apache Rewrites

Did you know that it’s not possible to apply an Apache rewrite condition to multiple rewrite rules? I thought this would work, but requests from every IP address were being redirected: RewriteCond %{REMOTE_ADDR} ^10.0.10.10$ RewriteRule ^uploads/(.*)$ /wp-content/uploads/$1 RewriteRule (.*) http://deadorange.com/blog$1 … Continue reading

Posted in GNU/Linux Tagged ,

Importing large WordPress blogs

I just finished importing a WordPress blog with >1500 posts into a different WordPress blog. Importing the posts succeeded, but the last few steps at the end failed, like recalculating how many posts are in each category. This happened because … Continue reading

Posted in GNU/Linux Tagged , ,

Ruby in Etch

As some of you may know, Ruby and Debian’s ways of packaging software go together like Darwin and religious zealots…as in, they don’t. So how should you install Ruby when using Debian Stable? How do you stay up-to-date with new … Continue reading

Posted in Coding, GNU/Linux Tagged , ,