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
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