Foolog: Mostly geek, tech, misc stuff

Blog - Foolog

Gitosis Rawks

It wasn't all that intimidating as I thought.

http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way

Here's a nicely explained tutorial on setting up Shared Git repos./me is increasingly tending towards Git Advocacy.

Prepopulate Views Filters with args

Assuming that the argument is a node ID, being sent (say from a panel, under most circumstances)

// grab nid from referring node
$args[0]=arg(1);
if(is_numeric(arg(1))){
$nid = arg(1); //node id
$term = taxonomy_node_get_terms_by_vocabulary($nid, 3); // 3 is the vid. Use your own Vocabualary ID!
$tids=key($term);
return $tids;
}

$args[1]=$tids;

"An upgrade to Hardy from Intrepid is not supported by this tool"

If you run into this (amongst others, while trying to update your packages), like I did for various reasons (pauses while upgrading?, et al). You need to:

sudo apt-get autoremove
sudo apt-get install -f

and update packages all over again and possible do partial upgrades (or full) depending upon what you are prompted with.

Long time no blog

February was the last I think. Quite a lot has changed since then

  • Moved the blog from WP unto this. Migration from WP -> Drupal6 proved to be a pain. But here we are, finally.
  • Lots of work. Although not a lot of money.
  • Quite a bit of Travel.
  • Misc funny things in life.

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]){

Another log entry.

  • Work: NP Disposed. New found contract with some dude in Bombay.
  • Desperately seeking to extend local portfolio.
  • More complications with the payments. Ak gives haath!
  • Trip to Om Shanti Dhama!

Concerts. Ahh

Yamini 2008 @ IIMB: Reached IIMB towards the end of the first piece (the first concert, rather) by Sowmya. "Kurrai Onrum Illai" was the last piece that was nearly done with as I got there. What followed was Shashank's brilliant concert. Amongst the most stunning flute virtuosoes ever, so far as I'm concerned. Truly, a remarkable rendition.The violinist accompanying shashank IMHO was below par and the the folks at the control-corners constantly fiddled around with the acoustics / settings (Not much in there too. Open-Air auditorium, it was.).  The concert included arbitrary ragas that I can't recall anymore, apart from "naLinakaMti" which stood out. The central piece was some RTP that I can't recall off. Things concluded with "Krishna nee begane baro" and "Baro Krishnayya" which were as usual the crowd's favourites. Shashank was seen off with a standing ovation. Things turned pathetic right after, I mean the next performer in Gaurav Majumdar. Not a single soul from the organization team to even introduce them on the stage and half the audience was riding so high after being mellowed down by Shashank's virtuosity that they took to catching 40 winks. But then again, to the few of us who did keep awake, Gaurav Majumdar's concert proved to be par-excellence. Raag Jog on the sitar being the start up item was particularly enthralling.

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!