Sunday, November 4, 2007

A Fresh Dev Env Should Be a Good Thing

In Happy Land, a fresh development environment isn't a scary thing. You install whatever programs are required (which are documented in some central location, of course), then check out and run the latest code from trunk. I mean, it's compiling happily, since no one is breaking the build, right? (They would have to bring in donuts, or suffer The Cow of Shame, or something, if they had broken the build. That's how things are in Happy Land.)

Of course, many folks don't get hired by Happy Land, Inc. For a painful, demoralizing example of this fact, check out this set of emails. (I found this via the blog post The F5 Key is Not a Build Process on Coding Horror.)

0 comments:

Saturday, November 3, 2007

New Camera: Canon PowerShot SD1000

Fall Leaves Next to Virgina Mason

This photo here is the view from my apartment window. The fall colors up here in Seattle really do seem more vibrant and varied than in California.

This summer, I went on a camping and backpacking trip at Lake Tahoe. Alaska Airlines messed up my checked baggage, shipping my stuff up to Alaska for several days. When my bags finally got to me, my camera — which I bought in 2002 and had been very happy with — no longer worked. :(

So I finally bought a new camera: a Canon PowerShot SD1000, to replace my dead Canon*. PowerShot S230. I definitely recommend the Digital Elph cameras to anyone who just wants a good point-and-shoot camera.

* Every time I typo Canon as Cannon, it makes me think of Gannon, which Wikipedia will tell you is "misspelling of Ganon, a villain from The Legend of Zelda series of video games by Nintendo." But then in the article, it says it really was spelled Gannon in the first video game — which is precisely the one I think of when I remember Gannon and his cold, heartless laugh when you died.

0 comments:

Friday, November 2, 2007

Client-Side Protections Can't Save You From Firebug

I keep a long list of inactive holds for library books. When I eventually do want to check out some popular book, I've moved up in the queue considerably. For many of my inactive holds, I'll be first in line as soon as I activate the hold.

So I wanted to active one of these holds today. I logged in to the Seattle Public Library website and went to select today's date from the "change status" drop-down menu. Ack! The 30th was the only available date for November, which is a bug so far as I can tell.

But then I remember the power of Firebug! I opened up the extension's console, added a new <option value="2">2</option> to the date selection menu, and submitted the change. And voilà! I now have an active hold on this book.

If this is indeed just a bug in the options displayed, then Firebug let me work around their problem. On the other hand, perhaps they've changed their policy about activating holds. Or something. In that case, their server-side code is obviously not enforcing the same rules that are evident on the client's side of things.

Moral of the story: Server-side code must enforce all your business rules and validations. Server-side code is your most important line of defense; client-side protections fall prey to modifications by tools like Firebug. This doesn't mean abandon all client-side validations; they have their place. But that place is not to ensure the integrity of the data in your database.

Secondary moral: Keep Firebug handy to have your way with troublesome websites. :)

0 comments:

Friday, October 26, 2007

Paying for Free Things

Free software is pretty much all I use on my computers, with the exception of the OS itself in the case of my Windows laptop. I use free services online. But sometimes I'm so pleased by some piece of software — it's so above-and-beyond what you'd expect from a free utility, or it's made my life much more simple/enjoyable — that I want to donate a bit of money to its creator to say "thank you" and "keep up the good work!"

Below are the programs (and one person) that I have given money to when I didn't have to:

Trillian
Before there was GaimPidgin, there was Trillian. (Or at least, I knew only of Trillian in my pre-Linux days.) I was pleased enough with having multi-protocol chat capabilities to send them a few dollars. When they later came out with a Pro version, they grandfathered in anyone who had ever donated $1 or more as a "thank you" for early support.
Flickr
This one isn't a donation, but rather a voluntary upgrade to premium service that was actually worth it. Once you hit 200 photos on Flickr, you can't browse to your older photos; you must have a direct link if you still want to access them. I hit the 200-photo limit pretty quickly, foresaw myself continuing to use Flickr heavily, liked the service, and thus gave them $25/year for unlimited photos.
Peter S. Beagle
Not software. :) Author of The Last Unicorn, which I was first introduced to in animated film format as a kid, then later in the original book form as a high schooler. (I've never seen it in hat form.) He's supposedly getting screwed out of quite a bit of money that his publisher's been making, thus the donation.
IPA Unicode "Keyboard"
Useful website for copy-pasting real Unicode characters when you're typing IPA pronunciations. 'Cause I know you're, like, always typing IPA pronunciations. ;)
Firebug
If you do any sort of web development and you don't know what Firebug is, run, do not walk, to http://www.getfirebug.com/ and get yourself some sweet, sweet Firebuggin'. You'll thank me later. (Note: I haven't actually donated to Joe Hewitt, the creator of Firebug, yet. He doesn't have a PayPal donations button on his site, so I'm emailing him directly asking if he'd like some money. :))
NPR (or more specifically, KUOW, my local affiliate)
I like listening to NPR and the local public radio shows when I'm driving. They have interesting discussions of fairly diverse topics (not just politics, but all sorts of stuff). When they interview people, they ask good questions — you know, the ones you're yelling at the radio. They ask those questions, but respectfully at the same time (rather than in a hostile know-it-all way, like some shows). So I figure I should support my local public radio station. (Added May 7th.)

So what things have you paid for, that you didn't have to (or could have gotten away with not)? What made it worthwhile?

0 comments:

Saturday, October 13, 2007

Saturday House project: Tagmindr

Last Saturday, I went to my first Saturday House meetup — that is, a bunch of geeky types all hanging out and coding and such. Last week, they organized themselves to create a new project, dubbed Tagmindr.

Tagmindr asks for your del.icio.us username and creates an RSS feed for you, including only bookmarks that have been tagged with "tagmindr". But del.icio.us already offers RSS feeds per user and tag, you say? True. What makes Tagmindr cool is that it also looks for a tag of the format "remind:YYYY-MM-DD", and only puts items into your feed once that date comes around. Essentially, Tagmindr is a time caspule or reminder system for your bookmarks. Rather than relying on some generic "to-read" tag, you can now create more specific reminders that will automatically come to you.

The project was written in Python using the Django framework, neither of which I knew. Plus I was very tired from only getting a few hours of sleep, so I didn't really contribute much directly. I did shoulder-surf and help debug, but I ended up not writing much code myself. In any case, it was still fun being in that environment — it felt very much like our "coding parties" back in college. (I would have gone to today's Saturday House, except I stayed up until 5 am last night and thus slept in quite late. Heh.)

2 comments:

Monday, October 8, 2007

Passing Out at the Optometrist's

Just a Routine Eye Exam

I went to the optometrist before work today to get a new prescription for my glasses, since it's beginning to get difficult to read fine print far away again. It's been one or two years since my last prescription, so this isn't all that unexpected.

My eyes have deteriorated just a bit — I seem to always go in for new prescriptions when my eyes have gotten -0.25 diopters worse. So now my right eye is -5.50 and my left is -5.75. My left eye also seems to be developing a slight astigmatism, which I hadn't known about before.

Glaucoma Testing Fun

Then it was time for the beloved glaucoma test. By which I mean, I hate the test where they blow a puff of air at your eyes. Always makes me nervous in anticipation, then I jump back when it happens. Sometimes we have to repeat the test in the same eye because I blink and jump back before they get the reading they needed.

I asked the doctor (assistant doctor?), Mauricio, if he was going to do the air-puff version of the glaucoma test, and he smiled and said no, they have another type of test for glaucoma that doesn't involve the puff of air. It involves eye drops instead — which I'm also not so thrilled about, but I'm just squeamish and overly protective of my eyes in general. (This is why I don't wear contacts; I can't even touch my eyes.)

So after a couple of tries, he gets the drops in my eyes. The drops stain my eyes (yellow, judging by the color of the drops themselves) and numb them. He brings one of the machine gizmos up to my face and says he needs to get very close to my eyes, hence the numbing agent. I ask Mauricio if "very close" means a chance of actually touching my eyes, to which he says yes. I sorta freak out calmly, by which I mean I hyperventilate and squeeze my knees with my hands while holding very, very still so as to reduce the risk of him bumping into my eyes and minimizing the time needed for the test.

It was over soon — maybe one minute, two? — and he sat back down at the computer to type up the results. He was busy saying something about the pressure in my eyes looking good when suddenly I noticed a headache coming on. Within a few seconds it grew much worse, so I closed my eyes and leaned back in the exam chair. I mentioned, "Um, I have a really bad headache all of a sudden."

And Not-So-Fun Adverse Reactions

The next thing I remember is waking up feeling very confused. My arms felt very heavy, like I'd had way too much to drink. My left hand was clutching the kleenex I'd used to dab the excess eye drops from my eyes, and it wasn't really feeling like unclenching. Someone was holding my right hand (in retrospect, I believe they were actually taking my pulse). I opened my eyes and looked around at the three doctors in the room with me.

The primary doctor, Dr. Kelly, said that this wasn't an unheard-of reaction (although not common, either, or they wouldn't still be using those eye drops!) to the fluorescein (the dye) and/or proparacaine (the anesthetic) in the eye drops. For most people, he said, they felt back to normal within 10–15 minutes. Very occasionally, people's nausea would lead to them throw up, so he showed me where the trash can was but told me not to worry about it too much. The woman doctor gave me a cup of water, which helped my very dry mouth and made me a little more alert. They helped me get out of my fleece zip-up, since I'd broken out in a cold sweat. I asked someone to fish my cell phone out of the fleece pocket and call Gaurav (my manager) to let him know I wouldn't be in on time. Some talking went on — I don't remember clearly — and then they turned down the lights for me and let me rest in peace.

(I heard Dr. Kelly out in the hall talking to Mauricio, who sounded understandably upset and concerned. [CYA? Heh.] He had apparently not known about this possible side effect. Dr. Kelly said something about not needing to give it to younger adults; my memory is, uh, a bit hazy and they were talking out in the hallway, but my impression was that he was saying younger people were more likely to have this reaction? I'm not sure... Anyhow.)

After the promised recovery time of 10–15 minutes had come and gone, the doctors asked how I was feeling. About the same level of abysmal, I told them. (Me: "Ugh, meh." Doctor: "What?" Me: "Um, not any better.") Soon, the nausea got the better of me and I threw up in the previously-pointed-out trash can. I felt a little better, but not much, so I climbed back in the exam chair and rested some more. When Dr. Kelly came in to check on me and I told him I'd thrown up, he said something along the lines of "Oh, geez," like I was reacting unusually badly, even for having this unusual bad reaction in the first place. He said that would be the low point of my feeling bad, and that I should feel better soon. He checked my pulse again, was satisfied, and let me rest some more.

I started feeling cold, so I draped my fleece over me and dozed off. The headache never really got any better, my limbs still felt heavy and difficult to use, and then the nausea came back and I threw up a second time. About two hours after the beginning of my eye drop reaction, I finally felt well enough to stand up and wander into the hallway, looking for Dr. Kelly, Mauricio, or the woman doctor (whose name I never caught).

I found Dr. Kelly and reported my status — still very crappy-feeling, but wanting to go home and lay down in my own bed. I asked if anyone would be able to give me a ride home, just two blocks down the street, since walking even that distance didn't sound like much fun at the time. He went off to ask around. But I'd forgotten that, insurance-ly speaking, the office couldn't let an employee drive me home in their personal car. They offered me a taxi, but the waiting for the taxi would take longer than just walking home, and it felt lame to take a taxi for two blocks even if I was feeling that bad.

I declined the taxi and said I'd walk after all, which they okayed so long as I wasn't feeling dizzy. Which I wasn't... But just walking from the exam room to the reception desk brought on the headache much worse, so I slunk off to a back room with a gurney, pillow, and thin blanket to rest some more. A while later, I wasn't feeling any better, and was actually shivering. All I could think about was getting back to my warm apartment and my own comfy bed. (My apartment's gotten warm since the cold weather has set in, because the steam pipes deliver warmth to the apartments above me even when my own heater is turned off.)

I tracked down the woman doctor and told her I'd take her up on that taxi after all. But when I went downstairs to meet the taxi, it wasn't there. I could see my apartment building from where I was standing. My legs were shaking and my head hurt. I just wanted to get home, dammit, so I gave up on the taxi and walked the two blocks home. (I did call the optometrist office when I got home, to let them know I hadn't disappeared on them.) I crawled into bed, where I dozed off and on for the next many hours.

Researching the Reaction

While I was still at the doctor's office, Forrest called several times on my cell phone to check up on me. He was also googling about what information I had passed along to him. He was concerned that he couldn't find much online about this supposedly "not unheard-of" reaction to the eye drops. At his suggestion, I called my primary physician's office at Virginia Mason for a second opinion. The nurse there taking patients' calls said that, so long as my pulse was okay and the headache had abated in 24–48 hours, I should be medically okay. Not at all a happy camper, but okay.

It wasn't until 12 hours after the eye drops that I could finally sit or stand for more than a minute before the headache forced me to lay down again. (The headache isn't responding to ibuprofen, but laying down makes it much more manageable.) Once I could sit at the computer, I googled fluorescein and proparacaine for myself. Like Forrest said, there wasn't much talk about such bad reaction to eyes drops.

What I experienced (with all durations of symptoms being estimates):

  • losing consciousness (lasted a few minutes? I'm not sure; I wasn't quite there at the time ;))
  • nausea (lasted 1-2 hours)
  • vomiting (twice, about an hour into it)
  • bad headache (lasted 14 hours and counting :()
  • sweating (lasted 1 hour)
  • chills and shivering (started 1 hour into it, lasted 1 hour)
  • muscle rigidity (lasted 1-2 hours; like when I had too much caffeine, back in high school)
  • light sensitivity (lasted 1 hour)
  • dry mouth (lasted 2 hours)
  • tiredness (sleeping on and off for the past 12 hours; however, this was partially to escape the nasty headache)
  • paleness (lasted 2? hours; the doctors commented that I looked pale)

On three different medical websites, I did find some mention of some of these reactions. WebMD talks about the following "severe" rare side effects:

  • low energy
  • excessive sweating
  • abnormal nervous system function affecting mental alertness

Medscape warns about these rare adverse effects:

  • CNS depression
  • fatigue
  • hyperhidrosis (aka excessive sweating)
  • pallor

Drugs.com (heh, original name) lists these adverse reactions also lists "CNS: stimulation followed by depression" among the adverse reactions.

Decent overlap with my actual reactions, eh?

And Still Without New Glasses!

So yeah, that was what I did today instead of going in to work. :( Thankfully, Gaurav is not a slave-driver; he was concerned about me and told me to take the day off, or work from home if I felt better by mid-day. Dr. Kelly said he was glad to hear I wasn't going to lose my job or anything. (I hope he was just kidding around; it would suck to have a job where you got fired for such things happening to you!)

And after all that, I still need to go back in and actually pick out my new frames and get the prescription for new lenses filled. Ah well, such is life sometimes. At least everything but the headache has cleared up.

And how was your case of the Mondays? ;)

5 comments:

Sunday, September 16, 2007

Finance Blogs I Read

In my blogroll over in the sidebar, I have several finance blogs listed. I read their posts via Bloglines, usually all at the same time. So I have a fairly poor handle on which blog is which.

Thus this post, describing each one briefly. If I get confused about how they're distinct, I can come back to this post and remind myself. :)

Get Rich Slowly
Written by JD. He writes about his personal experiences with his finances. Readers sometimes write in with questions, which JD answers himself then asks others to give their own opinions in the comments. JD also reviews finance magazines and books.
I Will Teach You To Be Rich
Written by Ramit Sethi, also the co-founder of PBwiki. He interviews finance-related people. He also occasionally does surveys of his readers, then analyzes the results.
Money Smart Life
Written by Ben. This guy is one of the reasons I got myself an American Express Blue Cash credit card.
My Two Dollars
Written by David. He has good, practical tips from his personal experience.
The Simple Dollar
Written by Trent Hamm. In April 2006, he experienced what he calls "a complete financial meltdown." After he educated himself on personal finance and got his stuff in order, he started his blog. Trent sometimes writes book reviews, ending each with a "Buy or Don't Buy" conclusion, which is quite helpful.
Well Heeled
Written by "Wanda". She seems the least hard-core of the bunch, but she's still a good source for seeing what someone more like me is going through. (She says of herself, "On the plus side, I’ve started saving for retirement and I don’t carry a balance on my credit card. On the minus side, I love dining out and generally have a hard time abiding by a budget.") Her blog is more of a description of her financial journeys than the advice-oriented blogs discussed above.

2 comments:

Saturday, September 8, 2007

OED! Woot!

When I went to Cal Poly, I had free access to the OED (that is, Oxford English Dictionary, to all you layfolk ;)). But when I graduated, I lost access via my Cal Poly login credentials. Sad panda.

But lo! The Seattle public library also has free access to the OED. Huzzah!

Yes, I am such a language weenie linguistics-phile that renewed access to the OED warrants a blog post. :)

2 comments:

Friday, September 7, 2007

Visiting Family & Obopay

I'm stopping by my apartment to pick up some last-minute almost-forgotten items, then I'm driving down to the SeaTac airport. I'm visiting my family this weekend (the Squirts will both be back from college for the weekend), then doing a big meet-n-greet with the Obopay folks down in Redwood City.

So that's what I'm up to for the next couple days. :)

0 comments:

Wednesday, September 5, 2007

Robert Frost Meets xkcd

I've always liked Robert Frost. So when the most excellent web comic xkcd spoofed Frost's "Fire and Ice," I just had to share. For those who don't know the poem, I've quoted it below:

  1. Some say the world will end in fire,
  2. Some say in ice.
  3. From what I’ve tasted of desire
  4. I hold with those who favor fire.
  5. But if it had to perish twice,
  6. I think I know enough of hate
  7. To know that for destruction ice
  8. Is also great
  9. And would suffice.

0 comments: