Powered by glolg
Display Preferences Most Recent Entries Chatterbox Blog Links Site Statistics Category Tags About Me, Myself and Gilbert XML RSS Feed
Thursday, July 16, 2009 - 19:13 SGT
Posted By: Gilbert

- -
The Use Of A CS Degree

One of the questions I've been asked sporadically is "what's a degree in Computer Science good for"? People do have short memories; before the dot-com crash, nobody asked that because they knew the answer (like Economics). I do get requests to troubleshoot computer issues, even though most of these are easily solvable with a liberal dose of Google, so that should be at least part of the answer. Ever wonder why one runs into trouble copying huge-ass home videos? Try TeraCopy, after converting the filesystem to NTFS.

So let me introduce one of the possible uses of a CS degree.

Let us say that a guy wishes to read manga. There are plenty of websites that allow browsing, but clearly being able to save the images on one's hard disk is far more convenient than having to wait for them to load on demand.

One solution for the more determined is to simply right-click and save the image each time they load a new page, so that in the future they can just enjoy the comic at instant speed off their own hard disk. This is not that impractical, except in the case of certain sites, which go to quite some lengths to prevent that.

Use this site as an example in point. The first thing that a "saver" might notice is that the right-click functionality has been disabled. If the reader is savvy, he may then look at the HTML source to discover the URL for the image, only to discover that the image is loaded by JavaScript. This is not too much of a problem, and a sufficiently motivated reader might dig through a JavaScript console (like Google Chrome's built-in one) and get the image URL. Yay!

But this is just one image, and knowing the actual URL does not seemingly help to predict the URL of the next page. We might be satisfied with this and start clicking through the JavaScript console for every single page (or even resort to printscreen and stitching), but further analysis may well reveal that the site's developers have tried to obfuscate matters by splitting control variables and code throughout the page using multiple external .js files.

Knowing that, it is not hard to load the control variables and replicate the logic in Perl (with LWP::Simple), for instance. Then, since the URLs of the individual images are now known, it should be a simple matter to loop through them and save them to appropriate folders on one's local drive. All in theory, of course.

So now you know what a CS degree might be good for.



Got my eyes checked out for the first time in five years yesterday. Result:

Right eye, myopia -5.00 [+0.75] diopters/astigmatism -2.25 [+0.25] diopters (25 degrees)
Left eye, myopia -6.25 [+0.25] diopters/astigmatism -2.75 [+0.25] diopters (180 degrees)

A slight increase, but over such a long time I suppose it ain't too bad. Should be nice to return to crystal-clear sharpness with a new pair of lenses. Went to NUS for tennis in the evening, where we discovered that despite having nearly 20 courts, it's best to have a booking.

A few loose ends to tie up: I forgot to mention the go-getting financial planner who called my handphone almost immediately after my commencement, trying to get me to commit to a face-to-face no-obligation meeting. Not particularly eager for an awkward sit-in where one might find it hard to take one's leave, I requested for an e-mail correspondence, and haven't heard from her since. Well, let it not be said that I don't leave opportunities open.

On the commencement ceremonies: I noted that SoC students appear to be much more eager to burst balloons than FASS ones. Even accounting for the larger proportion of males, might there be other underlying reasons?

Came across a two-page spread (pages 28 & 29) in yesterday's Today paper that had not one, not two, but three especially thought-provoking articles. One: The Vatican actually praised Harry Potter and the Half-Blood Prince, and this coming after they slammed Real Madrid's spending! Two: The Episcopal church voted to accept homosexuals in all roles in their ministry, thus pissing off more conservative Anglicans, who can't see why they can't just stick to multiple divorces à la ex-head King Henry VIII, or stop at allowing (usually-black) slaves into the ministry.

Brownie point-scoring spree by the churches, and part of the long-term trend of the formerly unthinkable becoming mainstream, though of course staunch believers at different times - the anti-blacks-as-priests believer of a century ago, and the anti-gays-as-priests believer of today, must have been equally certain of their divinely-mandated stance...

The third article: A British investigation into what would most likely prompt the return of a lost (and otherwise empty) wallet:

  1. Baby photo
  2. Cute puppy photo
  3. Family photo
  4. Elderly couple photo
  5. Charity donation card
  6. Nothing (control item)


And *drum roll*...

Cute baby wins by a knockout! 88% (nearly nine out of ten) such wallets were returned, which is nothing short of amazing.

Cute puppy was next with 54%, then the family with 48%. Only 28% returned the wallet when the photo was of an old couple, which doesn't bode well for the seniors, but at least they were held in higher regard than givers to charity, which yielded just 20%. The control sample of empty wallets, in comparism, got 15%. Perhaps it was because charity cards probably don't have much sentimental value as compared to babies or puppies (and old people probably are sick and tired of each other already)?

[Ham's Note (paid advertising): My photo would ensure a 100% return rate. Would any readers be interested in an anti-item-loss Mr. Ham Sticker™ business venture?]

Video of the month, courtesy yiren:



comments (2) - email - share - print - direct link
trackbacks (7) - trackback url


Next: Pottering Along


Related Posts:
Mega Bonus Post
Just Justice
Restarts and Reviews
Your Command Is My Problem
Final Days In Italy

Back to top




2 comments


C.Wenhoo said...

Confucius say, virgin like balloon. One prick, all gone.


July 16, 2009 - 23:46 SGT     

gilbert said...



July 17, 2009 - 01:28 SGT     


7 trackbacks


Linkback by LwEi's World

....glys.com/favicon.ico'/bert's blogThe Use Of A CS Degree1 day agoinput type='hid...


July 18, 2009 - 11:30 SGT     

Trackback by Ejaculation Trainer

Ejaculation Trainer - [bert's blog]


May 18, 2014 - 04:05 SGT     

Trackback by Joseph Chinnock

Joseph Chinnock - [bert's blog]


June 27, 2014 - 20:33 SGT     

Trackback by Joseph Chinnock

Joseph Chinnock - [bert's blog]


July 8, 2014 - 11:02 SGT     

Trackback by visit the site

visit the site - [bert's blog]


August 6, 2014 - 01:41 SGT     

Trackback by Funny Videos

Funny Videos - [bert's blog]


October 8, 2014 - 09:55 SGT     

Trackback by sofas for short people

sofas for short people - [bert's blog]


October 16, 2014 - 10:24 SGT     


Copyright © 2006-2024 GLYS. All Rights Reserved.