Tag Archives: ruby

Quick Markaby note about conditional attributes

Say you want to set an option tag to selected only under certain conditions without the code getting really ugly. Do this!: I was messing around with the ternary operator in other ways inside the element, but none of them actually interpreted properly. I hope this helps someone else struggling with this issue…

Ruby to generate RSS feeds for sites that don’t offer them

There’s this site that has an equipment exchange I wanted to keep track of. Yet, it’s done with what seems to be a custom php file rather than vbulletin, so none of the usual RSS feeds from the site apply to it. So, I decided to make a scraper/feed-generator to get me the latest version [...]

OSCON Sessions, Day 2

Oh man, what a day. I attended quite a few talks, grabbed a lot of swag, and entered a few contests. I ended up buying the Arduino Starter Kit from MAKE so I can do some awesome embedded Ruby like I saw at FOSCON. It looks really fun – I can’t wait to try it [...]

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 [...]

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 [...]

DNS for bash

Today, I decided I wanted a network service that propagated variables and aliases to every login shell that subscribed to it. This is dangerous on a large scale, but perfectly acceptable on my small home network where everyone trusts everyone else. First, I got Camping installed, bringing back fond memories of Ruby development. I then [...]

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 [...]

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 [...]

Flash Chart Testing

I’m testing a flash chart plugin based on this.

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