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.
Cool JS implementation of CouchDB
This really is super cool B-)
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'
HABTM and JOINS == Painful
This is terribly useful:
http://teknoid.wordpress.com/2008/08/06/habtm-and-join-trickery-with-cakephp/
Useless, but...
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.0Finally! I should be ready to upgrade most of my sites right away. First pleasing news of the day!
Y! ID Scanner with PHP.
Thou artless earth-vexing pigeon-egg!
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.