Mozilla Bespin Looks Interesting February 13th, 2009 at 12:58am by Chris

Iceweasel on Debian Lenny wouldn’t start August 9th, 2008 at 10:37pm by Chris

I just did a clean install of Lenny AMD64 and had issues getting Iceweasel to start. No output from the command line, just a blank screen and no Iceweasel process. I did a strace /usr/bin/iceweasel and after a zillion meaningless lines I found the jackpot. My ~/.mozilla folder was owned by root! How or why, I’m not sure.

Just chown -R your_user:your_user ~/.mozilla and you should be fixed!

Piece of Cake August 8th, 2008 at 6:38pm by Chris

It’s always easy for someone else to do it – just ask this guy:

“In need of a web programmer to complete a project that is 3/4 completed. Its not complex and it involves attaching a website to a replicator script that is already pre-molded, changing some text on some already made web pages and integrating a merchant account that we have for e-commerce. If you are local to the Greenville, SC upstate area and have a basic understanding of this type work send us an email and we will contact you asap.”

Nice. From http://greenville.craigslist.org/web/787188287.html if you’re interested.

Neat-o Transparent PNG Trick February 22nd, 2008 at 6:47pm by Chris

I’m not exactly sure what this is yet, but the transparent png trick is pretty dang cool. Make sure you resize your browser window once the page is loaded, then watch the vines.

http://silverbackapp.com/

A Rake Task for Faker February 2nd, 2008 at 11:16pm by Chris

Need to insert some fake data in your development database? Grab the Faker gem and drop this into lib/tasks/fake_data.rb. Customize it for your model(s) and execute with rake db:development:fake_data.

namespace :db do
  namespace :development do
    desc "Create records in the development database."
    task :fake_data => :environment do
      require 'faker'
 
      100.times do
        c = Client.create(
          :first_name => Faker::Name.first_name,
          :last_name => Faker::Name.last_name,
          :middle_initial => ("A".."Z").to_a.rand, 
          :ss_number => 99999999 + rand(999999999 - 99999999), 
          :date_of_birth => Time.now - (rand(12000)).days) 
      end
    end
  end
end

I’m sure there’s more optimization to be done, but it works for me!

UPDATE: I added a few extra lines for data outside of faker.