Failed experiment

No more: the “links for” posts just weren’t entertaining enough, even by my low standards. Also, it hurts my addled brain to have to think of whether I really want this link I’m bookmarking to appear on my blog… Still, though, del.icio.us: best bookmarking service ever.

The “School Experience” goes well, in general, but given that it’s my last week here, I’ve given up on really preparing lesson plans or anything and settled on just making shit up in class. Hmm. Another failed experiment, perhaps.

Random things that please me

My favourite sitcom Scrubs finally got nominated for the Emmys — Best Comedy and Best Comedy Lead Actor for Zach Braff. Granted, the former is really only because heavyweights Friends, Sex and the City and Frasier have finally gone away, but it’s nice to see this smartly-written comedy finally get some attention it deserves. The latter nomination is probably an extension of Braff’s success in Garden State, but it’s a start. Pity John C. McGinley (the absurdly sarcastic Dr. Cox) didn’t get nominated in the supporting comedy actor category, instead losing out to hacks like Will and Grace‘s Sean Hayes. Seriously, what the hell is that?!

Other random thing: Baybeats tomorrow will actually feature Concave Scream, my favourite local band. Holy shit! I thought they’d disappeared years ago. I remember buying Erratic in JC, and I couldn’t get enough of their post-punk-tense-rock (or however you’d describe it — somewhat New Model Army, I say). After I got back from the US, Eek and I spent hours trying to locate their MP3s because I’d lost my original CD. Finally, I managed to order it again through mp3.com before it shut down, and also found their next album, Three, at Audiophile. Excellent stuff still.

Somewhat drained from the week, really. One has to take the random pleasing things as they show up…

The new Javascript countdown timer

I got a couple of requests for a version of the bond countdown timer that’d work with Blogger or any other non-self-hosted blogging system.

Here it is, with comments and all too. See, two years of teaching programming style haven’t gone down the drain. Much.

<script type=""text/javascript">

function formatAsMoney(mnt) {
    mnt -= 0;
    mnt = (Math.round(mnt*100))/100;
    return (mnt == Math.floor(mnt)) ? mnt + '.00'
              : ( (mnt*10 == Math.floor(mnt*10)) ?
                       mnt + '0' : mnt);
} // from http://www.rgagnon.com/jsdetails/js-0076.html

/*

Simple script that writes out a line of text with how many days
of bond left to go, and how much it's worth right now if paid up.
E.g. "1870 days and $496250.40 left to go". Extremely
depressing.

Variables to change:

enddate:
The end date of the bond, assuming a full (4/6/8-year) bond.

enddate_discount:
The end date of the bond assuming it's completed. Applies only
to those who serve full-time NS and have half of that counted
towards the bond (usually 10 months), or teachers whose NIE term
isn't counted unless they complete the bond.

startdate:
First day of work.

bond:
Bond value with interest and LD. Assumes a linear depreciation
of an already-compounded bond value with liquidated damages.
The amount signed on the contract can be used as a rough estimate.

OPTIONAL -- nowdate:
Change to a date in the future e.g.
nowdate = new Date("June 20, 2009");
to see how much to pay at that point of time.

*/

var enddate = new Date("June 20, 2011");
var enddate_discount = new Date("August 20, 2010");
// Uncomment this following line if end date is fixed:
// enddate_discount = enddate;
var startdate = new Date("June 20, 2005");
var bond = 500000;

var nowdate = new Date();
ms1 = enddate_discount - nowdate;
days = Math.floor(ms1 / 86400000); // from millisecs to days

document.write(days);
document.write(" days and ");

total = enddate - startdate;
ms2 = enddate - nowdate;
rem = formatAsMoney(ms2 / total * bond);

document.write("$");
document.write(rem);
document.write(" left to go");

</script>

To use, copy and paste the entire section into anywhere you want the words "x days and $y left to go" to show up, making sure to customise the variables for your own situation — bond value and the start and end dates. If there’s an error, let me know by email or on the comments.

Enjoy 🙂

The new countdown timer

Only tangentially related to this post, but interesting nonetheless, are various online responses to Szemeng’s letter to the ST forum about social mobility and the scholarships system in Singapore: two from From a Singapore Angle ([1], [2]), another from Zuco.

As possibly part of his statistic (that 75% of scholarship-holding Singaporean students at Stanford who don’t live in HDB flats), I feel that I should demonstrate how truly ungrateful I am for having had the chance to study overseas for free by being able to remind myself of how long more I’m bonded for. The new countdown timer on the sidebar shows exactly how many days I have left until my bond is up, and assuming a base value of $500,000 for the bond with interest (I think that’s what was stated on my contract, higher than usual because of NIE), how much I’d have to pay back if I broke it right this second.

If anyone else wants to use it, here’s the pluggable PHP code to put in your HTML. The two end dates are for those who’ve completed NS — I’m assuming 10 months of it counted towards the bond, although is only the case if the bond is completed.

<?php
$end_date_break = "20 June 2011 00:01";
$end_date_endure = "20 August 2010 00:01";
$start_date = "20 June 2005 00:01";
$bond = 500000;

$seconds = strtotime($end_date_endure) - strtotime("now");
$hours = $seconds / 3600;
$days = floor($hours / 24);
echo $days . " days and \$";
$total = strtotime($end_date_break) - strtotime($start_date);
$seconds2 = strtotime($end_date_break) - strtotime("now");
$remaining = $seconds2 / $total * $bond;
echo number_format($remaining, 2, '.', ',') . " away from freedom\n";
?>

The depressingly large debt I seem to have signed myself into aside, it’s mildly amusing to keep refreshing the page to see the bond value go down by a few cents. Edit: Stupid blogging software, "smartening" all the damn quotes. Gah!

Actually, the real reason I thought about coding that little snippet up? A good friend is moving on from being bonded to hopefully much greener pastures. Good luck, you.

Edjamacating the Edjamacators

So the one(ish — I didn’t have any classes last Tuesday and Thursday) week in NIE is over, and I’ve been bored out of my mind so much that I’ve racked up 3MB of GPRS usage surfing the web, checking email and using instant messaging (AIM/ICQ/MSN) services on the cellphone while in class. The instructors seem nice enough and really do teach rather well, but they don’t seem to have very much interesting subject matter to work with.

Next stop: four-week “Teaching Experience” in school. The Teacher Training Unit apparently decided it’d be amusing to post me to the school my dad teaches at. Very funny, guys. Can’t complain, though… free ride to work in the morning, and it’s only a few bus stops away, anyway, so I can rush home quickly. Since we look nothing alike, my dad and I have decided not to tell anyone about the connection (though it’d seem mighty suspicious for anyone noticing me driving my dad’s car off every now and then).

Nothing worth complaining about. Ask me again in a month (fuckin’ flag day for NIE orientation?! Fuck!).

Werk, werk

Update on life:

  • ORD tomorrow (!!!), brought forward from the 24th. The countdown timer’s gone, having served its function, but…
  • Work starts Monday, and the even more depressingly long work-off-the-bond countdown begins. The length of this one’s too intimidating to make a countdown timer for it.
  • Took a secondary-level Math test for future NIE Math teachers — passed, thankfully, but I’m sure barely so. How the hell did I know all this stuff 9 years ago?
  • By passing the test, I don’t have to go for the Math “content upgrading module” next week — wah, like Army like that. Pass already get two days off. Can’t complain, really, who else starts work with two paid days of break?
  • Week after that, month-long attachment in schools. This could mean trouble.
  • Way too much poker on weekends. Quote: “We’ve been playing poker like everyday!!!” — i.e., every time we meet up on weekends — “No lah, we didn’t play Sunday through Thursday…” Oh, my brain hurts.
  • Uhhh… not much else, really. This is why I don’t mention the personal life much, it bores even me.

I’m sure there’ll be more nonsense coming up.

Just one more thing I need to mention…

ORD loh!!!!!

Hello morning

How to tell when poker night’s gone on for way too long: while driving home, I saw quite a number of people doing their morning jogs. Not nearly as bad as in my final quarter at school, when the fast food morning staff recognised my group at the drive-through because we’d always be programming till dawn then getting hungry, but… close enough.

Two more weeks of this nonsensical life-schedule before I go to “school” (or work, loosely defined), though. Making the most out of it, I suppose.

Some Darth goodness

Darth Vader Made Me Cry
A wonderful little tale about how evil the Imperial Dark Lord truly is.

I quite enjoyed ROTS. Peter David has a review that neatly summarises what I liked about Episode III (and, true to form, quotes Python on that one amusingly Holy Grail-esque bit). He also writes about how Episode IV matches up from the end of Episode III here, which makes me sorely want to rush out and buy the DVD box set. Argh.

Instead of packing

No, not going home yet — stopping over in Korea for five days before finally making it back to Singapore on Monday. I do leave from SFO in about eight hours, though, and I’m tired of packing so I’ll blog a little.

What’s gone on since the last post:

Went with Tansuwan to Castle Rock State Park in the South Bay for a 4.7 mile hike. Reading the description on the page before we left, we were told the hike was “moderate” and that “a trekking pole (or two) is definitely recommended.” Trekking poles? Two trekking poles?! Also, “If you stop and sit on this rock, or any other, be careful not to fall off the side of the hill!” Woo! Fun!

The 1000-mile elevation change was definitely tiring, but the weather was great. Here’s a small selection of pictures:

View from the path
View of the hills from the path

Blue hills
Blue hills, great day

Large freakin rock
Must I really climb up there

Not much else, really — more weekend ridiculousness in various bars and clubs around the city, some sightseeing and general wandering around the city. On the way to the MOMA with some friends, we passed by some storm troopers outside the Sony Metreon.

Storm Troopers
Can I see your ticket, please

Ah, and there was Vegas, of course. I may have been back from there for more than 30 hours by now, but I’m still not certain I’ve fully recovered from the weekend. This trip was with the drawgroup (most of it, anyway), so things didn’t bode well for my liver from the very start. My last two trips were relatively sane, considering the company: once with JC friends, the types who are substantially less likely to develop serious alcoholism problems than those I went with this time, and another time with family.

This time, there was an unreasonable amount of gambling, and an equally unreasonable amount of drinking. I ended up down a little at the blackjack tables, but what I lost more than paid for the free drinks. I think I averaged about ten drinks a night, not that I could really count by the end of each night. And by “end of the night” I actually mean “8am in the morning”, which was when we tried to stumble back to the suite at the New Frontier hotel without getting hit by cars or puking all over the morning joggers. Who the hell goes to Vegas to jog in the morning on the strip?

So that’s all I have for this (part of the) trip. I realised that I actually started blogging on stupidchicken.com a few days before I left here after graduation to go back to NS. Feels nothing like that now, of course (ORD loh!!!, almost), but I’m sure I’ll miss all these crazy drunkard friends all over again after I go.

Sitting around and taking up space

Uh, hello, I’m still alive. And I still have internet, as my friends who keep seeing me online and asking “why the hell are you online so much while on holiday?!” can attest to.

I’ve been in San Francisco for close to two weeks now, and apart from spending a lot of money, I really haven’t accomplished very much in terms of real travelling, but that’s alright — I think I deserve a sit-around-and-do-nothing kind of holiday. Even if I did pay over a thousand dollars of airfare to sit around and do nothing (except take up space) in Toru and Sasank’s apartment.

More interesting activities:

  • Snow Patrol and Embrace in concert at the Warfield. Very enjoyable, even if I got my ticket kindof late and ended up nearly as far back from the stage as humanly possible. Snow Patrol’s excellent live rendition of Run definitely made up for that, though.
  • Bright Eyes and The Faint in concert at the Concourse Exhibition Centre. Bright Eyes was pretty decent (they mostly played from Digital Ash, the less popular of their two new albums), but The Faint was just ridiculous. Infectious energy, catchy tunes, clever animations, great performance. Definitely overshadowed the main act, in my opinion.
  • San Francisco International Film Festival: Caught three movies at the AMC Kabuki in Japantown: Phil the Alien, Boxers and Ballerinas and Mad Hot Ballroom.
    • Phil the Alien was stupid but amusing — think Napoleon Dynamite but lower budget. I did laugh out loud a couple of times, but I can’t remember about what.
    • Boxers and Ballerinas was a documentary on Cuban youth boxers and, well, ballerinas; more specifically, it was an examination into the contrast between those who stayed in Cuba and those who’d defected. Interesting for its subject matter, but not so much the actual delivery, I thought.
    • Mad Hot Ballroom, however, I thoroughly enjoyed from start to finish. Partly because it’s about ballroom dance, partly because it’s about schoolkids and teachers, but mostly because it’s so well-made. It’s one of those movies where I suffered from the Grinning-Like-An-Idiot syndrome throughout the entire movie. I hope it makes its way to Singapore, I definitely want to see it again.
  • Went to a SF Giants game courtesy of Jess’ company tickets (I’m not sure how you get free tickets after you quit, but let’s not question that), which unfortunately got rained on. Giants won, at least.
  • Visited campus for a day, crashing at Joakim’s little Rains apartment (a situation I’m not altogether unfamiliar with, crashing at Rains). Just in time to see the prospective freshmen show up on campus for ProFro weekend. They’re so… small. I felt like I’d step on a couple if I wasn’t careful. And they’re class of 2009?! When the fuck did the numbers go up so quickly?!
  • The best part about being here, of course, is just meeting up with friends from college times. It’s good to see everyone again after a prolonged absence, especially also since I doubt I’ll ever be able to do this again (or at least, bum around on holiday for so long).

Otherwise, the food’s good (though expensive, now that I’m earning in Sing$), the drinks are cheap (hence making my friends into semi-alcoholics on weekends, it seems), the weather’s alternately craptacular and fantastic, the futon I’m crashing on is very comfortable, we’re going to Vegas next weekend, and I’m with some of the best friends that a lost anti-social international student could’ve asked for in college.

Good times.