February 20, 2008
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]){
die(”Some Informative Error Messgae Here”);
}
$match1 .= $match[1];
$match1 .= “&t=”;
$match1 .= $match[3];
return $match1;
}
Should work. Write yourself necessary things in the appr_curl_function()
No Comments » |
Drupal, PHP, Programming, cURL |
Permalink
Posted by p6
January 24, 2008
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.
No Comments » |
PHP, Programming, Wtf |
Permalink
Posted by p6
January 24, 2008
http://drupal.org/node/202638
Valid Reason so far as I can fathom. Unfortunate that Dub only had to get repeatedly dismissed and flamed at.
Dries is a great man, but really.. the proposition of open-source communities being under the fatherhood of benevolent dictators, especially ones with new startups and in the hands of legalities and venture capitalists..isn’t particularly an ideal proposition.
I’m all for democratization, personally. Looks like it’s not to be, however.
No Comments » |
Drupal, PHP, Programming |
Permalink
Posted by p6
January 24, 2008
Pretty lame, this.
http://www.hiveminds.co.uk/forum/node/3654
I knew of a certain Mr Pillai who supposedly made a lot of money out of cybersquatting (most notably on sydney2000.com, I think). Very very lame though. I don ‘t think this dude’s going to get away with the hijacking.
His track-record isn’t too great with the rest of the Drupal junta either. He’s been consistently writing half-baked, fallacious and lame stuff against Drupal for a while now as in here.
No Comments » |
Content Management, Drupal, PHP |
Permalink
Posted by p6
December 14, 2007
- Chronic mugging for exams.
- One superb outing at Hampi. Unfortunately, my ankle bore the brunt of much of the atrocities.
- [Old]Really taking to Typo3 stuff now. A workable YAML API. Spyc is simply superb, for all I bitch about it. Previously rigged up a workable JSON API. Just for the sake of being 1337 and no real aversion to XML. Ping me if you’d like to help.
- Latest Read: “Hibernate in Action”.
- Latest Read 2: “The Analysis of Mind” - Russell.
- Innovative screwup on a simple mundane GG install. wtf?! HCL sux0rs. Compiz rawks btw. Linux ftw when it comes gfx now k. And really, it isn’t all that crashy either.
- Advocacy: Narendra Modi and more.
No Comments » |
Content Management, JSON, PHP, Programming, Randomities, Typo3, YAML |
Permalink
Posted by p6
November 30, 2007
Was feeling a little Jobless =)
So this is a port of Industrial from Freecsstemplates.org. Works properly with most browsers for the most part. I couldn’t find a place for the search box and hence it’s missing. I think the logo has issues as well. Will fix them later. This is pretty usable the way it is.
Download Link: http://www.bas.org.in/files/industrial.zip
1 Comment |
CSS, Content Management, Drupal, PHP |
Permalink
Posted by p6