Posted by hank,
Sat Oct 06 15:20:00 UTC 2007
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.
Continue Reading
Tags: tutorial
Posted by hank,
Sat Sep 15 22:17:00 UTC 2007
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.
Continue Reading
Tags: tutorial
Posted by hank,
Mon Feb 26 00:29:00 UTC 2007
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 MephistoPlugins
module TagCloud
def size_tag(tag, largest = 2)
size = (Tag.find_by_name(tag).taggings(true).length + 18).to_f / 18
size = largest if size > largest
"<span style='font-size: #{size}em'><a href='/tags/#{tag}'>#{tag}</a></span>"
end
end
end
Holy crap that barely any code at all! So, the moral of the story is that it’s very easy to make the plugins once you figure out what to do.
Tags: tutorial
Posted by hardwarehank,
Sat Jan 13 08:21:07 UTC 2007
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:

Tags: tutorial