stephenchu.com
STEPHEN CHU . com: Go to Ruby ! and ? method definition with TextMate CTags
http://www.stephenchu.com/2008/09/go-to-ruby-and-method-definition-with.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Friday, September 26, 2008. Method definition with TextMate CTags. If you are not yet using the TextMate CTags bundle. In your Ruby/Rails development, you are missing out big time. This bundle allows you to go to a method definition as easy as pointing your cursor at the method and hit a keyboard shortcut. It has served me well and I highly recommend it. And change Word Characters.
stephenchu.com
STEPHEN CHU . com: December 2008
http://www.stephenchu.com/2008_12_01_archive.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Monday, December 01, 2008. Speed up your MySQL data load. Perhaps you have some large datasets you would like to load into MySQL, such as a big text file generated from. That contains many sql INSERT statements. You can obviously populate your empty database by redirecting the content of this file into the. Command line like such:. Mysql -u root -p your database. Bulk insert buffer ...
stephenchu.com
STEPHEN CHU . com: params[:fu] #5 ) Update multiple models in update action atomically.
http://www.stephenchu.com/2008/03/paramsfu-5-update-multiple-models-in.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Thursday, March 27, 2008. Params[:fu] #5 ) Update multiple models in. Updating multiple models is hard? It sounds complicated, but with Rails it actually isn't, if you know how to take advantage of it. Knowing what you know about Rails params, let's take a look at today's topic: the. Ftext field :name %. Subscription 4 magazine id. Option value=102 IT Pro. Action" = "create",. Metho...
stephenchu.com
STEPHEN CHU . com: Launching apps in command line (Mac)
http://www.stephenchu.com/2008/06/launching-apps-in-command-line-mac.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Monday, June 09, 2008. Launching apps in command line (Mac). In most cases, to launch an application on a Mac is just a matter of using the awesome QuickSilver keyboard shortcut and type in what you want to open. But, sometimes it is useful to be able to launch/open an application in command line or terminal in a scripting context. So, instead of going through all the typing.
stephenchu.com
STEPHEN CHU . com: How to use GMail SMTP server to send emails in Rails ActionMailer
http://www.stephenchu.com/2006/06/how-to-use-gmail-smtp-server-to-send.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Thursday, June 22, 2006. How to use GMail SMTP server to send emails in Rails ActionMailer. Recently I had to use Ruby to send emails. I don't want to go through the hassle of setting up a mail server on my build box, and since I use GMail's hosted webmail service I am thinking I might be able to use their smtp mail server to do it. But we developers just obviously love options =).
stephenchu.com
STEPHEN CHU . com: June 2006
http://www.stephenchu.com/2006_06_01_archive.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Thursday, June 22, 2006. How to use GMail SMTP server to send emails in Rails ActionMailer. Recently I had to use Ruby to send emails. I don't want to go through the hassle of setting up a mail server on my build box, and since I use GMail's hosted webmail service I am thinking I might be able to use their smtp mail server to do it. But we developers just obviously love options =).
stephenchu.com
STEPHEN CHU . com: Rails composed_of validation
http://www.stephenchu.com/2008/05/rails-composedof-validation.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Wednesday, May 21, 2008. Rails composed of validation. ActiveRecord allows you to declaratively write validations (e.g. Models. In addition, the errors will be stored in the. Collection and be used by various view helpers and methods like. Wrapping a nice error CSS around the offending html form elements. But when you have a normal domain model object that is non-. As of Rails 2....
stephenchu.com
STEPHEN CHU . com: The last "D" in TDD means more than just "Development"
http://www.stephenchu.com/2007/12/last-d-in-tdd-means-more-than-just.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Tuesday, December 04, 2007. The last "D" in TDD means more than just "Development". When asked "Do you write tests? Other times you write the test, but you are too anxious to even run it and see it fails. And other times you want to jump into the actual code immediately when you see your new test fails, but failing for the unexpected reasons. It takes too long to write a test? Well,...
stephenchu.com
STEPHEN CHU . com: Format your data using Rails composed_of Value Objects
http://www.stephenchu.com/2008/01/format-your-data-using-rails-composedof.html
STEPHEN CHU . com. My thoughts on software development, open source, agile methodology, technology, and stuff that matters. Friday, January 11, 2008. Format your data using Rails composed of Value Objects. A requirement comes in as usual says, "I want prices to be formatted like '$2,000.00' on all rhtml's.". Your programming brain then associates the word "formatted" with "presentation". Afterall, the price column is simply stored in a decimal column in the database. And off you go, wrapping. In Ruby....
SOCIAL ENGAGEMENT