Nothing has happened lately that I want to write a whole blog post about, but there are a few small things I feel like touching on.
I got to see Richard Dawkins at my university the other day! Here are some things:
The ole’ family dog, my hairy sister from another mother, Anja, has terminal cancer. Hard to believe! Apparently it’s a very aggressive type of cancer. The vet removed a massive tumor from her spleen, and while there weren’t signs of other cancer, it’s exceedingly likely that there are microtumors somewhere inside her. She has 2-6 months left.
It’s weird. I mean, the other dogs I’ve had die on me over the years did so either due to traffic accidents, or pretty much without warning one day:
Anja, on the other hand? I have a two-month warning. That’s really weird. She’s still alive and doing well at the moment, but I also know her time is very short.
I’m going to miss her.
Still hacking on lulzbot! It’s still a piece of crap! But it was a basic weather function now, which is cool! It’s powered by YQL. In particular, it pulls data from queries like this:
select * from weather.woeid where w in (select woeid from geo.places where text="Fairbanks, AK" limit 1)
Honestly, YQL strikes me as a little weird. But, it works, and I was able to scramble that bit up there together really easily to make a query that easily grabs me exactly what I want with a pretty general query! What’s more, I’m using this nifty library at the recommendation of someone from #node.js, which makes it REAL easy. I’m really glad I got to avoid trying to probe NOAA’s APIs. Thanks, recommender!
Also neat is that I’m using unicode for the output of the bot. So, for example:
19:19 < jesusabdroolah> !wx 99775
19:19 < lulzbot> Fairbanks, AK:
19:19 < lulzbot> Now: ☁☁☁(Cloudy), 68 (F)
19:19 < lulzbot> Today: ☔(Showers), 67/55 (F)
19:19 < lulzbot> Tomorrow: ☔(Showers), 65/54 (F)
(The weird squiggles that are getting eaten somewhere between my markdown and your html are clouds and umbrellas. I also use a sun for better weather. Things have been dreary here lately!)
Yesterday, I forgot to write about Mutt! I don’t normally use it, but the other day I learned that, using it, you can fire off emails with a single command! This makes emailing files to myself over SSH way easier. So, now, instead of ssh -XY and using firefox/gmail, I can do this:
echo "File attached." | mutt -s'That stupid file' -a file.m josh.holbrook@gmail.com
And less than two seconds later, bam in my inbox! It’s pretty awesome that I can do this, imo. :D