Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: tutorial

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

Hacking a WRT54G v8 With DD-WRT

So, last month sometime, BrainSlayer got DD-WRT working on version 8 of the WRT54G. Now this was great news to me when I read it since I’ve been wanting to get rid of the crappy LinkSys management from the beginning. Some of the procedure worked, and some of it didn’t for me. Do not try this if you don’t know exactly what you’re getting into.

Fulltext Indexing Wikipedia with Sphinx

So, earlier this year, I decided it would be cool to mirror Wikipedia. So, I successfully set up a local copy on my system, and it’s been just sitting there ever since. But lately, I’ve been interested in fulltext indexing offered by various indexing engines, and Sphinx has looked especially tasty. So, I figured I’d sit down and try it today. I pointed it at my 16GB of Wikipedia text in my MySQL database.

How to make a Mephisto Plugin

So, I figured I might as well provide a quick tutorial on how to make Mephisto Plugins currently. Many of the old plugins are broken, so there needs to be a resurgence of plugin development. Here’s the basic structure of the Tag Cloud plugin: mephisto_tag_cloud – init.rb README – lib – mephisto_plugins – tag_cloud.rb As you can see, the structure is very simple. Here’s my code for init.rb Liquid::Template.register_filter(MephistoPlugins::TagCloud) That’s it! No require or anything! Next, I edited lib/mephisto_plugins/tag_cloud.rb: module [...]

Doomsday Clock Tutorial

I decided today that I need to make a tutorial to build your own doomsday clock. After seeing this picture, I felt it was necessary: