May 6, 2008

The Master and Margarita

I started writing a small review of this book on my Facebook `Books' application, but then realised I had a lot to say about it. And one of the small book-review applications on Facebook is not a good place for a book such as this. (Which is actually a sad indictment of all my other book reviews there. Have to get them out here sometime.)

I heard about this book some time back, while I was in Malaysia I guess, as part of a controversy--a Russian film adaptation had been made, and was being denounced by religious groups there as being demonic because it showed a witch on a broomstick (and other things). If they had read the book, they would have seen how ludicrous that is.

It's a very complex book, hard to describe. I wholeheartedly recommend it to everyone who loves to read, though. The editorial review on the book's Amazon.com page certainly does it a lot of justice.

Having read it a long time ago, I'm fuzzy on the plot details, but I do remember this: I found the book absolutely gripping, right from the first chapter. It's a story about Yeshua (Jesus Christ) in Jerusalem shortly after he was denounced by Judas Iscariot and brought before Pilates; the Master (a persecuted and marginalised writer in Soviet Russia), his faithful lover Margarita, and the Devil, Woland. That is certainly a wide-ranging story. And the plots are mixed in such a way that blurs the distinction between story and story-teller.

Bulgakov's imagination is certainly gripping. The characters and antics he dreams up are surreal and, at times, chilling. Woland comes to Moscow with his retinue of disguised demons; wreaks havoc on the Soviet literary establishment and high society; tempts Margarita with the promise of complete freedom from society's rules and boundaries; and in the process causes the Master and Margarita to be reunited, and their mutual story about Yeshua to be completed as they ride off, the Master healed after all his years in the wilderness, and Margarita finally at peace by his side.

Seriously. Read it. Update: read it with U2's Until the End of the World playing in the background.

Apr 30, 2008

Tabbing in Opera and Notepad++

Notepad++

I'll get to Opera in a bit. It took a quick read-through of the source code (hurrah for open source), but I've finally got Notepad++ tabbing set up exactly the way I like it. For the non-techies reading this, Notepad++ is a free and full-featured text editor for Windows which is meant to replace, and beat the hell out of, Windows Notepad. In fact it does such a good job that I'd rather use it than pretty much all the other editors I've ever used.

After recently being forced to install Ubuntu Linux on my laptop (and loving it), I missed N++ so much that I downloaded and started running it with Wine, a kind of environment which fools a Windows-only program into thinking that it's running in Windows. (I've used Wine before to play Windows games such as Diablo II.)

Anyway, a couple of things were bugging me about Notepad++. Firstly, its tabs couldn't be navigated using the standard Ctrl-PgUp and Ctrl-PgDn keys. The program author doesn't consider them as standard as Ctrl-Tab, and leaves it up to you to change the shortcuts. Well, this I did, but N++'s default tabbing settings also show a small `task list' of open documents whenever you try to switch among tabs. For some reason this task list doesn't automatically disappear under Wine as it would under Windows. You're forced to right-click on it to choose the tab you want.

So this was the situation. What I did was:


  1. Go to Settings > Shortcut Mapper... and, under the `Main menu' commands tab, changed the last two items's (`Switch to previous document' and `Switch to next document') shortcuts to Ctrl-PgUp and Ctrl-PgDn respectively. It's pretty easy--double-clicking on the command lets you choose a shortcut graphically.

  2. Go to Settings > Preferences... and, under the `MISC' tab, disable the `Document switcher (Ctrl+TAB)', which is what N++ calls the task list there.



That's it. With this setup, N++ has tabbing the way God (and Firefox) intended--with Ctrl-PgUp and Ctrl-PgDn.

Opera

Opera is the shiznit, if I may use the term. Particularly the latest beta version, currently 9.50. I, a long-time Firefox user, have been enjoying its speed, new `speed dial' feature, new `quick find', built-in Bittorrent downloading and IMAP-enabled email client which lets me access my Gmail. It really gets the job done, and then some. Everyone should seriously try it out. The only thing is, to a Firefox veteran like me, I can't live without my Ctrl-PgUp and Ctrl-PgDn.

Opera has Ctrl-Tab tabbing with a task list by default--almost exactly the same as N++. Here's what I did to get back good-old Ctrl-PgUp & Ctrl-PgDn:


  1. Go to Tools > Preferences..., then the Advanced tab, and the Shortcuts list item on the left side.

  2. Make sure the Opera Standard keyboard setup is selected and then click the second Edit... button to edit the setup.

  3. Type `cycle' in the Quick find search box on top of the Edit Keyboard setup dialog. This shows the page (tab) cycling commands. Double-click shortcut (on the left) for Cycle to next page and change the shortcut to `PageDown ctrl'. Then change the Cycle to previous page shortcut to `PageUp ctrl'.

  4. Type `page left' in the search box and clear the shortcut for the Page left command. Really doubtful I'll ever need to scroll horizontally in screenfuls. If I ever do, I can worry about it later. Then type `page right' and clear the shortcut for the Page right command. We need to clear these because they would clash with our tabbing commands.

  5. Click OK to get back to the Preferences window.

  6. In the Advanced tab, click the `Tabs' item on the top left and under `When cycling through tabs with Ctrl+PageDown', select the `Cycle without showing list' option. This makes tabbing exactly like classic Firefox.



The reason I tackled both these programs here is there's a large similarity between what I had to do with each. Will try to put up screenshots later.

A Shoebox Budget

A recent Lifehacker article gave me the idea of turning my formerly-useless Nokia phone box into a repository of all my receipts:



This way I figure I can follow my dad's advice about reconciling my spending with my monthly bank statements, say, once in a blue moon when I have some free time.

I still have the Expensr webapp, but man it's hard to get back into the habit of using it every day!

Apr 29, 2008

Found in Response to a PC World Article

The article, 18 Features Windows Should Have (but Doesn't) elicited some less-than-reverent responses from readers:

zipzap said at Apr 29, 2008, 05:04: `Oh yea, MS really want to put more built in software... so they can get sued for being uncompetitive and monopolistic and all that rubbish.'

And at Apr 29, 2008, 05:59: `Things PC World should have but doesn't:

1) Brains
2) More Brains
3) A little more brains'

Fantastic.

Also, it's a little weird to see PC World so out of touch with its readship--nimble online blogs like Lifehacker often do a much better job at giving us the tips and tricks we need to get the most out of our PCs.

Apr 28, 2008

Hilarious Misuse of `Mullahs'

I found this hilarious new usage of the term `Mullahs' and couldn't resist putting it up here:

`Furthermore, I made the switch because developing Ruby on Rails applications on Windows is such a pain, and most developers know this, so they go out and buy Macs. Well my friends, you can save your mullahs and turn your stock standard Dell into a kick arse development environment for Rails. Just check out the screenshot of my desktop below.'

For those not in the know, mullahs are respected Islamic scholars who often give sermons at mosques. Basically the Muslim equivalent of clergymen. Now what this inadvertent author probably meant is `moolahs'. Lol.

Apr 23, 2008

The Monkey King ... er, The Forbidden Kingdom

VERY enjoyable movie. Jackie Chan and Jet Li together make movie magic--I just had to say it--and give the audiences a compelling show. Ironically, Chan and Li both come from this genre of action movies--chop-socky--but they had to do Western-style action movies to achieve Hollywood star power. And meanwhile, the genre was revived by such notables movies as Crouching Tiger, Hidden Dragon and House of Flying Daggers.

OK, now that I've had my say, the movie. The hero is the ordinary and likeable kid in Brooklyn (Boston?) obsessed with old kung fu movies, Jason Tripitikas (Michael Angarano, who perfected the ordinary-guy-forced-to-become-a-hero technique in Sky High, another enjoyable movie--sorry, now I've had my say :-). He frequents the old Chinese memorabilia shop around the corner always in the hope of finding another old kung fu classic.

One day he finds an ancient staff of power in the store, and the elderly proprietor tells him that it's waiting for someone to return it to its rightful owner ... a mischievous deity known as the Monkey King. The Monkey King is probably the most interesting character in the movie, although he's absent for most of it. (Indeed I keep thinking of the movie as The Monkey King. Hence the accident-on-purpose title to this post.) The legend goes that he was imprisoned in stone after being tricked by the Bad Guy, who we'll come to in a bit.

Almost as if on cue, Jason gets into serious trouble with some of the neighbourhood thugs. Although the thugs do look like they could be from the cast of West Side Story, they are deadly serious for Jason, who is forced to run for his life, with the staff in his hands by accident.

He's cornered by the thugs, who're about to kill him, but the staff mystically transports him into ... The Forbidden Kingdom ... I guess, a faraway ancient China. He regains consciousness to find that some kindly villagers have taken him in, and finds soon enough that the villages and people of the kingdom are mightily oppressed by the armies of the Jade Warlord, who rules over the Kingdom in the absence of the Heavenly Emperor, and has imprisoned the Monkey King by tricking him into parting with his magical staff.

By chance, Jason is saved from some Imperial soldiers by Lu Yan (Chan), a vagabond who drinks wine all day and swaggers along until he's forced to fight, at which time you get to see some MAD skillz. Recognising the holy staff and taking Jason for a monk who is trying to return it to the Monkey King, Lu Yan takes Jason under his wing and teaches him the kung fu he will need to defend himself. They're joined by Golden Sparrow, a young maiden who has her own reasons to go along with them.

Along the way they meet The Silent Monk (Jet Li), who mistakes Jason for a thief and snatches the staff from him, leading to maybe one of the most anticipated fight scenes in movie history, between Chan and Li. Eventually they learn they're on the same side, and share a good laugh over Jason--`He's not even Chinese!'

Anyway, that's the setup, and these four characters are faced with the quest of returning the staff to Four Elements Mountain and freeing the Monkey King from his stone prison, where he's been for the past 500 years while the Jade Warlord terrorised the Kingdom unchecked.

Now, I won't talk about the quest itself--how Jason is trained by the two martial arts masters, how they survive a desert crossing to come to Four Elements Mountain, or how one of them is treacherously shot in the back by the White-Haired Bride (another staple of old martial arts cinema), and what Jason has to do to save that person. But it's all well worth watching, in the theatre if you can, with friends or a girlfriend (I think).

But I will talk about the Monkey King a bit. He is an unbeatable warrior with his mystic staff of power, and a mischievous spirit, always thumbing his nose at authority--especially the Jade Warlord, who is the Commander of the Imperial Army. This is what arouses the Warlord's hatred of him, and maybe what turns him evil. The motivations of the deities aren't examined in full--probably the movie would become an angst-ridden existential piece--but there's just enough there to leave you wondering what kind of politics they would have had in a heavenly imperial court. Hypothetically speaking, of course.

There's one thing I want to rant about. Apparently the consensus in reviews of the movie is `Great fight scenes, but too much filler'. To me, it was just the right amount and length. I've heard about, and been sceptical of, American audiences' apparent desire for `dumbing down' of movie plots, but this movie has an intriguing plot which makes you care about the characters, wonder about the life and times of the setting, and miss it when Jason gets back to New York, as he must in the end. If you don't know some backstory, how can you fill in the blanks in your head with interesting fantasy? That's part of what makes it fun. It's like these reviewers want a made-to-order story with exactly right amounts of setup and payoff, and no lingering anywhere, in case they're forced to think about a fantasy world (<Deity> forbid).

At one point, understandably, Jason's reaction to finding himself in ancient China is thinking it's a dream. There's a moment slightly after this where it's driven home to him how dangerous the dream is. Lu Yan for once sheds his humorous nature and says to Jason something like, `If you die in this realm, you will be found dead where you came from!' A dire warning in an otherwise light-hearted movie. The mix of light and heavy elements is right.

SPOILER WARNING: There is a spoiler (at least by my reckoning) in the comment below. Scroll down to see it.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Jan 31, 2008

Synchronicity

This is kind of a strange post. The thing is, I see or experience strange coincidences in my life often enough that I've given a name to the phenomenon--synchronicity. Of course, I'm hardly the guy who came up with the word or its meaning. Nor am I the only person who thinks that coincidences happen to them. But I do use the word to describe strange, chance-defying happenings or experiences that, oddly enough, happen surprisingly often--to me.

The reason I'm writing about this just now is that, well, something ... synchronicitous (is that a word?) ... happened just now. Well, it seems like that to me. See for yourself.

First, I was browsing through the BBC News site and happened to come across an interesting graphical illustration of how the US sub-prime crisis happened. I was interested because I'd recently been looking at graphing and charting, and how to make eye-catching charts to visualise a lot of data.

So anyway, the BBC's sub-prime crisis guide happened to use the US city of Cleveland as an example of how the mortgage crisis affected poorer urban populations. I was curious as to why they used Cleveland; but there's a good explanation in the page itself which I will give here, also because it happens to be an important part of why the crisis happened at all.


For many years, Cleveland was the sub-prime capital of America.

It was a poor, working class city, hit hard by the decline of manufacturing and sharply divided along racial lines.

Mortgage brokers focused their efforts by selling sub-prime mortgages in working class black areas where many people had achieved home ownership.

They told them that they could get cash by refinancing their homes, but often neglected to properly explain that the new sub-prime mortgages would "reset" after 2 years at double the interest rate.

The result was a wave of repossessions that blighted neighbourhoods across the city and the inner suburbs.

By late 2007, one in ten homes in Cleveland had been repossessed and Deutsche Bank Trust, acting on behalf of bondholders, was the largest property owner in the city.


So, enough about Cleveland. Not quite, as it turned out.

I then came across this, an article about a couple of books written by one William Cleveland, who is `[o]ne of the pioneers in developing guidelines for comprehensible data graphics'. (By the way, the site where I found the article, Pictures of Numbers, is a blog about charting and graphing with some very good articles, if anyone is interested.) It turns out that Prof. Cleveland developed something called lowess, a statistical technique used in scatter-plot charts.

Now, lowess is something I've been coming across in the mathematical software package, called R, that I've been using to make my charts.

And lastly, while finding the above article, I came across another article, by Stephen Dubner, a journalist and one of the authors of Freakonomics. (I haven't read it yet. Hear it's good though.) Anyway, Dubner's article, called `How's This for a Coincidence?', mentions that he was on a plane to Cleveland, where basketball star LeBron James plays for the Cavaliers (I don't know if that's still true). Dubner was blogging about an earlier post by his Freakonomics co-author, Steven Levitt, in which Levitt had asked the readers what LeBron James had in common with his (Levitt's) wife. They like doing the `have-in-common' thing from time to time.

How's that for synchronicity? (Sorry. Couldn't resist that last line.)

Synchronicity update: the Freakonomics blog has done it again, with their latest post: Levitt's `What Do Lolita and Freakonomics Have in Common?'

Synchronicity update 2: coincidentally, the above blog post talks about a chart of US students' SAT scores compared to their reading habits. I came across this chart a few days ago.

Jan 2, 2008

Life in the Cloud

OK, so suddenly I find myself with the urge to blog a bit about my changing computing habits. If reading techie stuff makes you want to tear out your own eyeballs and pin your eyesockets with two large needles, you should quit reading this now.

So. First off--the title. I'll explain it in a bit, but right now I just want to talk about what's behind it. Lately I've been moving a lot of my personal data online. I mean stuff that I'm used to keeping on my own computer, I'm uploading it for various reasons. For backup being just one of them.

Gmail--The Beginning of the End of an Era
It all started with Gmail of course, with its humongous 1 gigabyte of storage space. We quickly started using it to store our documents and such, a kind of freestyle file manager. And by now this has been going on for some time.

Google Docs
Then Google introduced Google Docs, the lightweight office suite which lives entirely on the web. It too stores files, albeit only documents, presentations and spreadsheets. But if you're whipping up a bare-bones document (assignment, proposal, whatever), and want to share it with friends and co-workers, it's excellent.

Google Notebook
Now we also have Google Notebook, which allows you to manage any textual info you might want to save for later use. These include bookmarks, and regular notes wherein you can keep stuff you've written but aren't sure what to do with it, stuff you need to remember, like an itinerary, or stuff you can't afford to forget, like your passwords. And of course, all of these are available from any web browser that can go online. I've found it very useful to have access to these notes both when I'm at home and at work.

Google Reader
I'm also using Google Reader, which just seems to be getting more and more powerful every few months. At this point I'm hard pressed to decide which is my favourite Google web app--Gmail or GReader. But I digress. If you're not a heavy (and I mean prolific) web surfer, you're probably not sure what exactly Google Reader is. A site that lets you read books, maybe?

Nope. It's a site which collects articles from websites you specify, and shows all new articles in bold highlighting. It actually shows all articles within its own page. This is incredibly useful because it saves you from having to hop around among a dozen different sites that you like. Instead you stay in Google Reader and read one article after another, skimming past the ones that don't interest you and digging down into the ones that do.

Once you pass over and read an article, it's changed back to non-highlighted. So you can always easily tell which articles you've read and which are new. You can `star' articles, like in Gmail, to keep them in a special folder in case you want to look at them later. You can `share' articles, which adds a link to the article on an automatic `blog' GReader creates for you, and which your friends can access once you give them its address.

I'll admit I'm a moderately fast reader, but GReader literally lets me read or skim through thousands of articles every month, no joke. So if you're someone who has to or wants to keep track of some kind of news, GReader will give you a considerable boost. And these days, keeping track of any kind of news is a snap thanks to search engines like Google automatically giving you continuously updated feeds of the search results. For example here's a feed on news about Jamie Lynn Spears. If you add this feed to GReader, it'll show the news headlines, and short summaries, as items almost as soon as they're posted onto the web. (Tip: don't do it, for your own sanity.)

Once you start using GReader and learning more about feeds and just how many kinds of information they can track, you'll be well on your way to becoming a true web guru.

Flickr
Now owned by Yahoo, and still offering a boatload of free storage space for photos, Flickr is probably the best photo storage site on the web. I've been uploading photos to it left and right. The only limitation for the free service is that you can upload a maximum of 100 MB each calendar month. Shouldn't be a problem for the occasional uploader.

Honourable mention: Google's Picasa Web Albums, a slick photo sharing app that lets you do one thing for free that Flickr doesn't: organise photos into albums. Free Flickr lets you create a maximum of 3 `sets', which are its equivalent of albums. But you can get around that by `tagging' all photos which would go into the same album with a common tag, and then doing a search for that tag.

OK, that is a bit cumbersome. So why do I recommend Flickr over Picasa Web? Because the latter has an absolute storage limit of 1 gigabyte, which feels rather irksome in these days of unlimited storage. But then again, who's going to use up a gigabyte of storage, right? Hmm....

Expensr
Last but not least, a gem among web apps. If you've ever had to manage money, you might have found yourself asking, Where did all the money go? Expensr tries to answer exactly this question, by making you keep track of all your expenses. It's free and it's fully on the web--once again, you can access it from any device with a proper web browser. (Forget the PC--I've heard people are using their Wiis to surf these days.)

If you take a few minutes to sign up and set up the accounts, you'll be rewarded in just a few days with a day-to-day visual analysis of your spending habits--as a pie chart showing where the money goes, and a bar chart showing how much goes each day. The site is new, but it looks promising. Some of the community-based features are intriguing. You can `tag' yourself as `in my twenties', `in my thirties', `in college', `renting', `a smoker', and so on and compare yourself anonymously to others in these categories.

The Cloud
Now, you might be getting a sense of how much you can put online just for the sheer convenience of it. Nowadays this data space is being called the cloud, and cloud computing seems to be headed for the big time, with Google and a select few others poised to be in the epicentre. And given the quality of their web offerings, I feel pretty good about that.