it all flows together

scott barber blog

Archive for the ‘coding’ Category

Tuesday
Jan 23,2007

I just ran across an alternative to Pound / Pen for Mongrel balancing…
PLB.

Mtn West Ruby Conf

Tuesday
Jan 23,2007

Just registered for the Mountain West Ruby Conference to be held back in SLC, UT in March. See you there.

FUSE on OSX

Friday
Jan 12,2007

One of the coolest things about Linux is the whole FUSE concept. I used SSHfs all the time on my ubuntu box to connect to development servers and write code locally. Now that I use OSX I’ve been searching for something like this to no avail. Thanks to google and some passionate engineers it’s now working.

I can imagine a slew of Rails developers using this to have textmate edit files over ssh directly without the scp/sftp workaround.

Thursday
Jan 11,2007

Apple iPhone: Will it run Ruby? Leopard will have it

Once again I’ve falled in love my MythTV. I’ve been running it for about 5 months solid now. no reboots, or big issues to deal with. A few recent tweaks: Added my ROM collection over a remote share for MythGame. New favorite mythtv theme: blootube. I transcode any new recordings to XviD (with commercial skip) and then move them to my NAS video share for future viewing.

Recent change of heart: Fav Desktop OS -> OSX. Still really love Ubuntu for servers, etc.

This time of year I love living in Arizona. Did you get snow recently? Gee… that’s too bad. I think we’re looking at 68 today. LOL!

Street Cred

Friday
Nov 17,2006

Working on some street cred in the community. See me at: Working With Rails: People

It’s like MySpace for Rails folks :)

Hey - I almost presented during the lighting talks in RubyConf.

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

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

HAML and Cheese, baby

Thursday
Sep 14,2006

Very interesting concept. I’m wondering what the reaction will be from other Rails developers and the core team. I’m excited to try it out on my next project…
Unspace - HAML: HTML Abstraction Markup Language

Rock On

Wednesday
Sep 13,2006

IT people “twice as likely” to wear heavy metal t-shirt as other people

Meta


Blogroll


Twitter


My del.icio.us


RSS My last.fm