it seems like a good idea, but I block the light sensor all the time and it’s pretty annoying… here’s where you go turn that off…
to turn off or get better control of the backlit keyboard, use Lab Tick.
it seems like a good idea, but I block the light sensor all the time and it’s pretty annoying… here’s where you go turn that off…
to turn off or get better control of the backlit keyboard, use Lab Tick.
If you have a Mac with a FrontRow remote, by default any remote will work with your Mac. I was setting up my security preferences on my new Mac and saw that you can pair your Mac with just 1 remote, pretty neat.
I actually haven’t even opened my remote coz I’m just gonna use the one from Sherry’s MacBook.
Technorati Tags: apple, MacBook Air
Sorry for the lack of updates and daily photos, I’ve been busy with work, new puppy, and then the holiday. I got back to San Francisco and decided I’ve had enough unpaid employment (well, paid with equity that is pretty much worth nothing until proven otherwise), so I updated my resume and started a series of interviews with the a number of startups in and around SF. After sorting through a lot of bullshit, strange business models, or just stupidity in general, I found a startup I really like: Context Optional. I am starting next Tue. The founders are really chilled and the work is really exciting. We work with some of the top brands to use social applications for promotions in social networks. You can read more about what we do here. So you can look forward to new and cool Facebook and Open Social apps by me. I will continue to be using RoR and RFacebook, and probably also something like Shindig and Caja for OpenSocial.
I will move into a background role at OnMyList, we have yet to figure out what to do with it. We plan to keep the site running coz we do have people who are really into the site. I had a great time doing OML, learned a shit load of stuff, and worked with some awesome people.
We’re launching a new Facebook app soon at OnMyList, and we need to pre-populate hundreds of celebrity images, so instead of doing it manually I wrote a cute little rake task to do them all. Took me a little while to figure this out, the trick is to do a class_eval to add the required fields to make attachment_fu happy. This works pretty sweet, the images are resized and uploaded to Amazon S3.
Thought I’ll blog it hoping someone out there will find this useful. 🙂
desc 'adding celebs' task :add_celebs => :environment do dir = '/tmp/celeb_images' Dir.foreach(dir) do |img| path = File.join(dir, img) if File.file?(path) f = File.new(path, "r") (class < < f; self; end).class_eval do alias local_path path define_method(:original_filename) {img} define_method(:content_type) {"image/jpeg"} define_method(:size) { File.size(path) } end u = User.new u.celeb_name = File.basename(img, '.jpg').titleize u.picture = Picture.new u.picture.uploaded_data = f u.save! p "added user #{u.celeb_name}" end end end |
Technorati Tags: attachment_fu, rails, rake task, RoR, ruby, rubyonrails
It’s 2008! oh yeah! 2007 sucked so 2008 is gonna be badass… Haven’t blogged for a while coz been busy with work and then xmas/family stuff, went to Minnesota and even drove up to Duluth, kindda liked it up there… Didn’t do much of anything except snowboarding… 🙂
Happy new year!