April 2010
1 post
Installing sphinx on mac osx with mysql installed...
wget http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
tar xzvf sphinx-0.9.8.1.tar.gz
cd sphinx-0.9.8.1/
./configure --with-mysql-libs=/opt/local/lib/mysql5/mysql/
--with-mysql-includes=/opt/local/include/mysql5/mysql/
make
sudo make install
September 2009
1 post
Duplicate Active Record with has_many...
old_model.find(old_model_id) new_model = MyModel.new(old_model.attributes) new_model.some_collection << old_model.some_collection.collect{|x| x.clone} new_model.save
August 2009
1 post
Rails DB Sharding & Replication - Data Fabric →
Data Fabric has been great so far with our new project requiring horizontal partitioning.
We created this rakefile modification to help with db:migrate / db:rollback: http://gist.github.com/176353
February 2009
2 posts
Flash, Rails 2.3, Rack, and SWFUpload →
This article was a tremendous help in getting swfupload to work correctly with rails 2.3 and acts_as_authenticated.
http://blog.programmableweb.com/2009/02/09/yahoos-y... →
Good to see microformats getting more visibility.
June 2008
1 post
T-SQL Update or Insert Logic
Greg’s Cool [Insert Clever Name] of the Day: T-SQL Update or Insert Logic -
February 2008
1 post
Looks like I might have to pick up the book: The...
http://www.railsjitsu.com/the-rails-way-meet-your-new-bible
January 2008
6 posts
Burning .dmg to disk - not enough space
I had a problem where i had a 580mb dmg and wanted to burn to 700mb CDR… For some reason, Disk Utility prevented me from burning saying that the disk size wasn’t big enough. I ran the following command on a folder with the .dmg file and it converted it to an .iso. Disk Utility then allowed me to burn to the same CD: hdiutil makehybrid -o isofilename folderwithdmg This should create...
Sun To Acquire MySQL →
Sun, please don’t screw this up…
3 tags
Pagination and Rails 2.0 →
Since pagination has been removed from the rails 2.0 core framework, will_pagination plugin looks like a great alternative: - http://errtheblog.com/posts/69-paginatin-christmas - http://agilewebdevelopment.com/plugins/will_paginate
2 tags
What's new in Rails 2.0 →
http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done
1 tag
Things i like about Ruby
Rails
4 tags
Installing mysql on leopard
- download and install mysql. do not run the preference or the startup packages.
(if you’ve already installed, right-click/remove the preference pane and run sudo rm -R /Library/StartupItems/MySQLCOM)
- put mysql in your path:
put this into your .bash_login
export PATH=”/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH” export ARCHFLAGS=”-arch i386″
- change root...
December 2007
2 posts
2 tags
Things I dislike about the Ruby programming...
Did some research on Cocoa and the new Ruby support in XCode over the holiday break. In general, I like Ruby’s simplicity and flexibility. But I do have some issues with aspects of the library implementation and a few object-oriented related design principals. I don’t plan to implement cocoa applications in objective-c, so using Ruby would serve as an easier way to get into Cocoa...
4 tags
AppleScript for Mail.app notifications with...
I tried GrowlMail on Leopard with no luck. This script will use Growl to show email notifications with the sender name and subject along with the image of the person if it exists in your address book. To install, make sure Growl 1.1.2 is installed and create a mail rule pointing to the following script. I saved the script to “~/Library/Scripts/Mail Scripts/Rule...