Cool stuff

Sep. 4th, 2003 02:57 am
avram: (Default)
[personal profile] avram
Ah, before I go to sleep, I forgot to note two cool things that happened today:

While putting on my watch, I found myself tightening the band to the fifth hole inward. I’d been using the fourth for the past few years, and originally used the third when I first got this band.

And on my way out of the apartment, I found a bag of fresh tomatoes hanging off our doorknob, presumably a gift from our landlord (who keeps a garden in the back yard). Mmmm. Not quite as flavorful as they could be, but there’s still a taste to garden-fresh tomatoes that you just don’t get from supermarkets.

(Oh, crap, RadioParadise has redesigned their website, so now I have to rewrite the screen-scraper I cobbled together to grab the current song for sticking in the Music field.)

Oh, and I learned a new Perl function today: sprintf. Here’s how to use sprintf format a numeric value as a dollar amount:

$dollar = sprintf "%.2f", $number

I learned this while writing a script to figure out when the per-cup cost (rounded to the nearest cent) of coffee refills at Ground hits 25¢. (Answer: With the 101st cup.)
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

March 2026

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags