Archive for July, 2005

Failed experiment

Monday, July 18th, 2005

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.

links for 2005-07-16

Saturday, July 16th, 2005

Random things that please me

Saturday, July 16th, 2005

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…

links for 2005-07-13

Wednesday, July 13th, 2005

The “links for” posts

Tuesday, July 12th, 2005

So del.icio.us, the geekily ugly-cool bookmarking tool, has a pretty interesting automatic link-posting feature that I’ll be trying out for a few days. Alternatives like DailyDelicious and YADD require “hitting” the links to work properly, which seems rather inconvenient to me (even with cron jobs and all easily set up on laptop).

I’ll see how this goes before I decide to keep it or not.

links for 2005-07-12

Tuesday, July 12th, 2005

Comics These Weeks

Tuesday, July 12th, 2005

I’ve been working (somewhat), so the reading pile’s grown quite a bit. Slowly, slowly.


“Sharknife Volume 1” (Corey Lewis)
Manga-inspired madness about the mystical protector of “The Guandong Factory”, a restaurant infested with giant monsters in its walls. Sharknife seems to activate his powers by eating fortune cookies — “seems to”, because the art is so cluttered, I can barely tell what’s going on half the time. Lewis’ art has the same problem as Chris Bachalo’s recent work: too much going on, too little focus. On the other hand, the entire book’s very lively and rather amusing to watch (intentional choice of verb over “read”). Kinda bizarre and not taking itself very seriously at all. I guess I liked it.


“Batman & Superman: World’s Finest” (Karl Kesel, Dave Taylor)
It was fun reading the progression of the characters throughout the years (I especially enjoyed the bit where the four fake Supermen and Bat-Azrael showed up — I’m a sucker for replacement icons and even enjoyed the Spider-Clone saga), I guess. Otherwise, the story was a bit of a chore to get through, what with Kesel’s formulaic stories and disappointing ending, as well as Taylor’s inconsistent art (the front and back covers are amazing, but his work in the rest of the book looked jarringly ugly at times). I hope Trinity, Matt Wagner’s Superman/Batman/Wonder Woman graphic novel that I bought last week, is better than this.

Technorati Tags: ,

The new Javascript countdown timer

Saturday, July 9th, 2005

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