September 2010
15 posts
2 tags
Rails + SQL Server 2000 on Windows XP
Obviously they are not a perfect match, but somehow I need to get this done.
I did this on Windows XP with SQL Server 2000 (PE) Service Pack 4.
Install Ruby 1.9.2-p0
Install DevKit
Install rails gem install --version 2.3.9 rails
Install ruby-odbc gem install ruby-odbc --platform=ruby
Install activerecord-sqlserver-adapter gem install --version 2.3.10 activerecord-sqlserver-adapter
Create an...
1 tag
Dave Newman: Leaving .net →
We are, as software developers, in various states of alone-ness. A company I worked at once had been operating for years under the assumption that it was OK for software to take months to integrate and deploy; they had never heard of continuous integration. They thought it was normal to rewrite…
1 tag
Measuring complexity of Ruby 1.9 code with... →
metric_abc is a tool that can help you find bad code in your Ruby 1.9 projects. It is much simplier cousin of Flog, but does the job in absence of Flog in Ruby 1.9 world.
1 tag
Ruby-based regular expression editor →
Rubular is a Ruby-based regular expression editor. It’s a handy way to test regular expressions as you write them.
1 tag
Code Readability: Quick, Millions or Billions? →
Ruby allows underscores to be inserted into numbers between any two digits. The underscores are purely cosmetic and do not affect the value of the number. This feature allows a developer to use underscores as an accountant might use commas.
3193490646 # standard representation of a number in ruby
3_193_490_646 # same value, much more readable
One less excuse for order of magnitude...
1 tag
1 tag
Understanding and Applying Polymorphism in PHP →
In object oriented programming, polymorphism is a powerful and fundamental tool. It can be used to create a more organic flow in your application. This tutorial will describe the general concept of polymorphism, and how it can easily be deployed in PHP.
1 tag
Live your life in such a way that when your feet hit the floor in the morning,...
1 tag
Git: How to checkout a tracked remote branch
git checkout --track -b <local branch> <remote>/<tracked branch>
1 tag
How to disable CakePHP to update the 'modified'...
Set modified to false in your data array
$data['Item']['id'] = 2;
$data['Item']['name'] = "Foo";
$data['Item']['modified'] = false;
$this->Item->save($data);
1 tag
When running a single test unit
always include the test directory
ruby -Itest test/unit/category_test.rb
1 tag
How to list all users in my Linux system
perhaps someone knew a better way than this, for now just simply type cat /etc/passwd
1 tag
How to clear bash history →
1 tag
How to change default shell in Ubuntu →
1 tag
How to activate font anti-aliasing on NetBeans
Add -J-Dswing.aatext=true to netbeans_default_options
to your /usr/local/netbeans-6.8/etc/netbeans.conf file