January 2007
8 posts
3 tags
Long-Term Carpark
In GCL:
>>(cadr '(1 2 3))
2
Old and Busted:
irb(main):001:0> require 'carpark.rb'
=> true
irb(main):002:0> [1,2,3].cadr
NoMethodError: undefined method `cdr' for 1:Fixnum
from ./carpark.rb:17:in `send'
from ./carpark.rb:17:in `method_missing'
from (irb):2
irb(main):003:0> [1,2,3].cdar
=> 2
New and Working:
irb(main):001:0> require 'carpark.rb'
=>...
3 tags
Payday
Last week I went to Massachusetts for work, spending the majority of the week in Taunton (closer to Providence than Boston). I kind of got used to the work laptop I’m using for now (Dell Latitude 820, quite fast but the trackpad is too small). After returning to the normal office on Friday, I realized that my first week or two of pay would have gone through.
So the first thing I did...
3 tags
New Jersey
Last week I went on my first business trip ever (not bad for the second week at work), and my first trip anywhere on the Eastern Seaboard north of DC.
We left on Tuesday morning, when temperatures in Tampa had begun to climb towards the daily high of 80°F. (Tampa weather data from USF Meteorology) Getting out of the Newark airport, it was much cooler, with the temperature at 39°F and dropping...
2 tags
Mephisto Tag Cloud
Back when I used Typo, I enjoyed having the Tags sidebar module available to show that I only really write about three subjects on any regular basis. However, while Mephisto did come with tag support, I couldn’t make them different sizes, forcing users to actually read tiny numbers if they wanted to know which categories were bigger. So, (since you know how I roll), I had to figure out how...
3 tags
HTTPal - Ruby HTTP Client
HTTPal is a Ruby library that behaves more like a regular web browser than Net::HTTP does - it keeps state around between requests. This is incredibly useful for automating scripts that log in and perform actions on sites using cookied sessions, referer tracking, etc.
Usage
http://bonzoesc.net/provingground/cookie.php is a page that in the absence of a cookie, sets one and prints ‘hope...
2 tags
Workin'
I’m a workin’ stiff now – 40 hours/week, enough money to get me off a college student budget, and useful experience so far. Also there’s travel to northern (and therefore colder) places starting pretty much right away, so I get to see snow for the first time in a few years perhaps.
I’ve got some other stuff to show off, but there’s other posts for that.
3 tags
Setting default tags for arbitrary applications in...
I’ve been running wmii with the ruby-wmii configuration/script/event loop for a few months now, and just today decided to scratch an itch I’ve been having.
Basically, I keep a ‘1’ tag around with the floating model so I can overlap my web browser and IRC window (my IRC window needs to stay a fixed size because it’s shared between multiple machines using screen). ...
3 tags
Hackin' on Mephisto
If you’ve been watching this blog disturbingly closely, you may have noticed some improvements on my Mephisto install.
First of all, I fixed the tags from the Typo import by running this snippet in the Rails console:
Article.find_all.each do |a|
t = a.tag.gsub(/,(\w)/,', \1')
a.tag = t
a.save
end
By doing this, I was able to fix the tags page to actually allow (get this!)...