it all flows together

scott barber blog

Archive for October, 2006

Monday
Oct 30,2006

During RubyConf I had a chance to sit next to John Long of RadintCMS fame. He’s a cool guy and Radiant is awesome for simple websites. I’m using Radiant for a few of my customers simple websites.

Not to be outdone in the coding arena, here are my important contributions to RadiantCMS. I call this collection of code “Inappropriate Text Filters.”

Markdown? Textile? You got nothing on me:

Filter #1: piglatin_filter.rb
class PigLatinFilter < TextFilter::Base
register 'PigLatin'
def filter(text)
text.split.collect{|word| pig(word)}.join(" ")
end
def pig(word)
leadingCap = word =~ /^A-Z/
word.downcase!
res = case word
when /^aeiouy/
word+"way"
when /^([^aeiouy]+)(.*)/
$2+$1+"ay"
else
word
end
leadingCap ? res.capitalize : res
end
end

Filter #2: crypt_filter.rb
class CryptoFilter < TextFilter::Base
register 'Crypto'
def filter(text)
text.crypt("da_salt_")
end
end

Filter #3: reverse_filter.rb
class ReverseFilter < TextFilter::Base
register 'Reverse'
def filter(text)
text.split.collect{|word| word.reverse!}.join(" ")
end
end

VMWare issues with Edgy Eft

Monday
Oct 30,2006

Is your VMWare Workstation broken after your Edgy Eft upgrade?
Errors with libpng12.so.0?

Short answer:
sudo apt-get remove libdbus-1-2

Long answer:
VMTN Discussion Forums: edgy eft libpng12.so.0 …

Tuesday
Oct 24,2006

With the release yesterday of FF 2.0 I thought I’d celebrate by creating an OpenSearch format search engine plugin for it. It allows you to search the scriptures on lds.org from within Firefox.

Click Here To Install It.

Disclaimer: Only Works with the new Firefox 2.0

Fixed Hpricot tag!

Friday
Oct 20,2006

Yay! I _why fixed the ticket I opened with Hpricot:

#14 (Tag parsing funky-ness, or how I learned to stop worrying and love the malformed tag) on Hpricot

Off To RubyConf

Thursday
Oct 19,2006

The plane leaves for Denver bright and early at 6:04. See you there!

Flash 9 for Linux!

Thursday
Oct 19,2006

Flash Player 9 is out in beta for Linux:
Adobe Labs - Downloads: Flash Player 9 Update

For those of you running Ubuntu Dapper the following will get you there:

sudo apt-get install libc6 libx11-6 libxext6 libxt6 libfreetype6 libfontconfig1 libgtk2.0-0 libglib2.0-0 libasound2-dev libssl-dev libasound2 libssl0.9.8

Nice Framework

Wednesday
Oct 18,2006

Yes! Exactly what I’m looking for:
A nice framework for ruby command-line apps!

Building Console Apps with SimpleConsole « t0fuu’s blog

Killer FF extension

Tuesday
Oct 17,2006

Nice little Firefox addon that I really want to use. The googlew cache and wayback machine links are killer.

From the web page, “Changes the default error page from basically having a reload button to
having the following choices: a google cache, an archival snapshot from
the wayback machine, a ping, a trace route, and a whois lookup.
Updated: version 0.2 adds a coralize feature.”

roachfiend.com » ErrorZilla - Useful error pages for Firefox

Finally - Give me the DDT

Thursday
Oct 12,2006

The World Heath Organization has lifted the DDT ban!

Townhall.com::Hooray for DDT’s life-saving comeback::By John Stossel

Meta


Blogroll


Twitter


My del.icio.us


RSS My last.fm