Programming

My experiments with productivity.

KDE -> Ratpoison -> Awesome

KDE is great to flaunt (esp to your friends on shiny Winedwhores 7 junk), but too bulky for my liking. Htop reported that I was using approximately 350MB of memory consistently (no Nepomuk *)) and this sounded ridiculous enough to warrant a full-scale switch to Ratpoison.

[8:32:32 am] * pavan_ just switched over to Ratpoison from KDE.
[8:33:20 am] Quit SandGorgon has left this server (Ping timeout: 265 seconds).
[8:35:51 am] [10 minutes pass]
[8:35:59 am] * pavan_ just switched back.

Why most frameworks suck

You might call me cynical, but this is a ranty (and nothing new) list of complaints + FUDs against most web development / application frameworks. Seems like this is also a natural point of transition for believers in another (new) faith, that of self-help (albeit more self deception and vanity all the same).

You fit the bill, rather than the bill fitting you
So many times, it seems that the problem is with MVC as a concept itself. The inherently flat flavor most frameworks put MVC in action to makes it that much more difficult for large codebases. It can't be helped feeling that adopting an MVC design is in many cases, squeezing yourself into a car rather than walking into one.

Useful Drupal Upgrade Snippet

Long time no post. Been really caught up: Tons of work, travel, Acads. Anyway, I happened to be upgrading some old Drupal sites from 5.x -> 6.x. Here's a little SQL snippet to disable all non-core modules first.

UPDATE `system` SET `status` = 0
WHERE `name` != 'system' AND `name` !='block' AND `name` !='node' AND `name` !='user' AND `name` !='watchdog' AND `name` !='filter' AND `name` !='upload' AND `name` !='tracker' AND `name` !='throttle' AND `name` !='taxonomy' AND `name` !='statistics' AND `name` !='search' AND `name` !='profile' AND `name` !='poll' AND `name` !='ping' AND `name` !='path' AND `name` !='menu'

Useless, but...

Somebody wanted this.
function ripper($url) { $page = appr_curl_function($url); if ($page === false) { die("Something wack happened"); } preg_match('/watch_fullscreen\?video_id=(.*?)&l=(.*?)+&t=(.*?)&/', $page, $match); $match1 = "http://www.youtube.com/get_video?video_id="; if(!$match[1]){

Drupal 6 Released!

http://drupal.org/drupal-6.0
Finally! I should be ready to upgrade most of my sites right away. First pleasing news of the day!

Y! ID Scanner with PHP.

Old. Miss the Old YaJew! Days. Not Multisock. Used to work, atleast. -> http://www.bas.org.in/files/php.idscanner.phps Disclaimer: People who hate nefarious stuff please turn away. I was still a Juvenile Delinquent then.

Thou artless earth-vexing pigeon-egg!

Finally, a programming language I can actually like!
http://shakespearelang.sourceforge.net/
There 's always something in the universe that you can get good at. I've heard of somebody who composed palindromic poems in Sanskrit and somebody who came up with a programming language with the code syntax being completely in whitespaces. I guess this endeavor deserves to make it to that list too. Much in the same context, One more thing that comes to my mind are Kasper's (The Typo3 Man) PHPoems. I'm too lazy to find the links. Go look up google and read 'em up sometime.