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

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags