Posts

Showing posts from February, 2007

Snag movie audio tracks

Okay, watching movies in the workplace is a definite no-no, but they didn't say anything about listening to movies . But I'd rather do it offline, so I whipped up a little bookmarklet that will snag the .MP3 URL off the movies I chose. First off, select a movie from the list . Then list all the URLs in that page by using Javascript's document.links object. I noticed that the URI for the MP3 link is always the ninth, so just get the ninth URL: document.links[8].href . Using a regular expression, winnow the URL: document.links[8].href.replace(new RegExp('[?&=]','g'),' ').split(' ')[2] Drop in the javascript resource header, and voila! here's the bookmarklet that will grab audio track's URL for download. Right-click and bookmark the link. Or, drag and drop the link to the bookmarks toolbar.

Trivial desktop customization

I'm currently playing with Devil's Pie , a utility that matches windows and window events to a set of rules similar to Emacs' (yikes! :P) S-expressions. I installed Devil's Pie on my work desktop (running FC6), thus: $ sudo yum install devilspie (I have previously organized my desktop with four workspaces: for browsing, remote SSH sessions, remote desktop sessions, and other tasks.) I then created a configuration file: $ mkdir .devilspie && vi ~/.devilspie/workspaces.ds (debug) (if (is (application_name) "Firefox") (begin maximize (undecorate (set_workspace 1)))) (if (is (application_name) "Terminal") (begin maximize (undecorate (set_workspace 2)))) (if (matches (application_name) "^rdesktop.+") (begin center (maximize (set_workspace 3)))) and invoked Devil's Pie: devilspie -d ~/.devilspie/workspaces.ds & . The (debug) line in the configuration is, heh, for debugging purposes so Devil's Pie will print out ev...

'Sumuway, maging mapangahas, magtanong, makisangkot'

Sleek video of the Kabataan Party , a partylist candidate for the Philippines elections in May 2007.

QOTD: 'good riddance'?

Everything is far from being "broken" as you imply, and you will find that grass may not necessarily be greener on the other side -- just different flavours of the same weed. From the Fedora development mailing list , on Eric S. Raymond's switch to Ubuntu . ( Alan Cox has a more succinct reply .)

Info revolution, delivered by camels

Image
The actual Camel Bookmobile brings books to semi-nomadic people in Northeastern Kenya who live with the most minimal of possessions, suffering from chronic poverty and periodic drought. I visited the region during a period of drought and made several hours-long walks through the African bush with the bookmobile. I cannot describe how moving it was to see the people, particularly children, crowding around as the traveling librarians set up straw mats under an acacia tree and spread out the books. The excitement is palpable. Forget the OLPC for now, what the world's children needs is to be able to read. <sarcasm> I bet corrupt education officials and suppliers will cash in on this , if ever this type of project will be implemented in the Philippines. </sarcasm>

'Series of tubes'

Image
Look at all that fibre. From One Wilshire , a "carrier hotel" (an internet exchange) featured in NPR . I wonder what it would take to have something like this in the Philippines. Would the Philippine OpenIX fit the bill? From what I gathered from mailing list archives (needs registration to view archive), the exchange has been planned since October 2006. There are also efforts to encourage local carriers to join in . There is, of course, PhIX (Philippine Internet Exchange) , but I hear there are major problems with that (congestion, expensive local linking, among others).

Sticking out like a sore thumb

Image
Other weird statues at Haha.nu . Via Table of Malcontents .

More companies join OpenID bandwagon

Online identity verification system OpenID gains steam as prominent web companies adopt its use. Recently, AOL announced that it will implement the OpenID system for its 63 million subscribers. In the wake of that news, Digg 's Kevin Rose announced at a web conference in London that the popularity website will accept OpenID and become an OpenID provider. “We want to give people the freedom to move around online and this is a way to do it,” Rose said . Yahoo! and Microsoft have also become OpenID adopters. Users of OpenID can identify themselves using a URI that they own (a blog or home page, for example). They can then log on to OpenID-enabled sites without registering or opening a new account -- they only need to sign in once to an OpenID provider. This addresses the single sign-on problem that users encounter when signing up for various web services.solves Big-name web companies such as Google, Yahoo! and Microsoft has also addressed the SSO problem by implementing identity s...

CLI shortcuts, 7

(This is part of an ongoing series on Linux CLI shortcuts and hacks .) After editing .bashrc and .bash_profile , you can reload the values by running $ source ~/.bash_profile

A master at work

Read on and find out how writers like Neil Gaiman come up with those amazing and wonderful stories. Oh, yeah, big Gaiman fanboy here.

Behold what God hath wrought

Image
Way back in high school and early college, all I know of Lisp was that it stood for "Lots of irritating stupid parentheses".

But where's the swimsuit?

Image
Featured in the 2007 Sports Illustrated Swimsuit Edition . Via Gizmodo .

Clever Javascript hack

Go to Flickr.com, view any photostream. Clear the address bar, and type the following: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){ for(i=0; i-DIL; i++) { DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5 } R++ } setInterval('A()',5); void(0); Sit back, and marvel. Via Google Blogoscoped .

Google's master plan

Today, the web; tomorrow, the world ! Via Information Aesthetics .

Blogging via IM

to blog through GoogleTalk. Cool. Ack! The above should have read: Currently using IMified to blog through GoogleTalk. Cool. Apparently, IMified doesn't handle HTML tags. Oh, well...

Long night

I'm still here at the office, watching text scroll down (or is it up?) the monitor. Actually, I'm backing up the whole /var partition from one of the mail servers, to make way for a larger capacity disk. You're thinking, duh, LVM. But this server had been set up way before LVM became stable. I could not even back up to tape -- not yet, at least -- because I have to get this up and fast, while keeping the server live, so I'm doing it over (of all things) USB, and 1.1 at that. (Heh, fast. I've been at it since 5 PM, and I'm not nearly halfway done. *sigh* Such is life.)

Evolution of text

'Text is nonlinear...'

Bad-ass Millennium Falcon

Image
By Lego. Take a look, drool and weep: Oh, and it will only set you back US$500 .

Firefox 3 to support offline apps

Firefox's next major iteration will feature support for offline applications. This was revealed by Mozilla developer Robert O'Callahan . Callahan mentioned that the offline app support builds on a few "quasi-standard" APIs --- "WHATWG client-side storage, jar: URLs, and WHATWG online/offline sensing" -- and will incorporate a new API for "storing application pages in the 'offline cache'". "That's just a new 'rel' keyword for the element. So it should be pretty easy to add this to any browser," Callahan said. Google is among those perceived most likely to benefit from this development. "Although Mozilla is an open source organization, some of its top workers are employed by Google. So it's a very cozy relationship," Read/WriteWeb said . "The Mountain View company has a number of best-of-breed web apps -- and if it's not building them, it's acquiring them (YouTube, JotSpot, Writely, etc),...

Not nearly random

Image
But good enough for me, considering .

And then there were four...

Image
Please welcome Julian Emmanuel.