Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: rails

OSCON Sessions, Day 1

I went to 5 sessions today, and I was pleasantly surprised by most of them. CouchDB CouchDB is a distributed non-relational database written in Erlang. It is unique in that its main query interface is simply HTTP REST, and for every UPDATE, it simply creates a new version of the row. Additionally, you can request the entire history of a row very simply. Hypertable An open-source implementation of Google’s bigtable. Hypertable uses novel methods such as Bloom filters to significantly [...]

Pradipta’s Rolodex Epic Conclusion

If you don’t already know about Pradipta’s Rolodex, read up here Here’s the epic apology email from THE MAN HIMSELF!: Hi All, First of all I just wanted to say I apologize for the emails I sent. As of today I promise to stop the Email marketing campaigns. And I do believe it was a very…very..stupid mistake, this is the result of working late. Also, I am deeply amazed of how talented you guys are. I mean seriously all this [...]

How to make a Flash Line Chart in Rails using Ziya

Ziya is pretty cool, and the documentation is slowly starting to surface. I was annoyed that I couldn’t find a good example paste of how to make a line chart. Then I watched the screencast. It’s the first example he does, so I’m posting it here so those who can’t watch it can actually find out how to do it. I’m going to operate on the precondition that you’ve installed Ziya and included it in your controller properly. Do the [...]

Photoslice in Bluecloth and Mephisto

So, I found this today, and it is awesome. I wanted it in Bluecloth so I could use it in Mephisto. Here’s how. First, I needed to make it so I could still do normal images, but turn on coolness if I want. Here’s the goal I came up with for the grammar: [![](thumburl.jpg)](imageurl.jpg “Scrolly Text at top” “photoslice”) Here’s the first test, with a single image: And now a set with a namespace: I did it by simply modifying [...]

Site5 promo code for October

You can still get 13% off a new Site5 7.5TB/750GB/$7.50 Plan until November! These guys are a great rails host. Get this deal while it’s hot! Code: HALLOWEEN2007

Site5′s 5 dollar hosting deal gets better again

OK – I’m usually pretty critical in general, but this is the best hosting I’ve ever found, and it’s 3 times better than when I bought it, and it’s still the same price! So, you should click the image above and go sign up. These guys give you great support – I’ve contacted them numerous times and always had my problem solved within just a few minutes. I’ve noticed my site down once, and as soon as I emailed them, [...]

Flash Video Player for Mephisto

So I made this awesome filter for Mephisto that allows you to easily embed flash videos in your post. May require tweaking if using a non-standard URL root. It’s as simple as this: <macro:flash>/assets/2007/8/13/party.flv</macro:flash> Or, you can make it complicated: <macro:flash width=”640″ height=”480″>/assets/2007/8/13/party.flv</macro:flash> Which ends up like this: Installation Install it from your mephisto directory: ./script/plugin install -x https://modzer0.cs.uaf.edu/repos/hank/code/rails/mephisto/filtered_column_flash_video Voila! Firebreathing!

KLone – C on Rails!

Well, I was over at Debian Package of the Day when I noticed an article on KLone. It’s a little application framework that allows you to do XHTML templating in C! Then, you can compile it and send it off to any Linux machine (with a few dependencies of course) to run it. I got it, and it didn’t work for me at first. Then, for some reason, it started working. Here’s what I think did it: In Ubuntu, I [...]

Site5 Doubles $5 Deal!

I noticed today that Site5 has doubled their $5 deal! Now you get the following for only $5/month: 110 GB Storage 5 TB of bandwidth allowance per month 110 Domain Pointers Free Setup Ruby on Rails Friendly I am currently using this plan for this blog, and am extremely happy with it after coming over from Dreamhost. Sign up now!

Mephisto Comment Notification Mod

I wanted to be able to click a link in my email to see the comment it talked about. So, I modified Luke Redpath’s Comment Notification Plugin to give that to me. First, I had to do some script/console action: >> s = Site.find_first => #<Site:0xb747e014 @attributes={“current_theme_path”=>”wibbish-mephisto”,#… #… >> s.host=’www.ralree.info’ => “www.ralree.info” >> s.save => true >> quit Next, I did a small model modification: # app/models/article.rb, in the public section def full_external_link ["http://", site.host, full_permalink].join(“”) end And a slight [...]