Software Development
Tuesday, April 28, 2009
Wednesday, March 04, 2009
How to load a specific version of gem
For some reason if you want to use specific version of gem installed on your system:
require 'rubygems'
gem 'activesupport', '=1.4.2'
require 'active_support'
require 'rubygems'
gem 'activesupport', '=1.4.2'
require 'active_support'
Friday, February 27, 2009
How to check if CRON service is running
You can make sure the cron service is running by running 'sudo /sbin/service crond restart'.
Thursday, February 05, 2009
Thursday, January 01, 2009
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
This error is caused if mod_ssl is not installed. On Cent OS : sudo yum install mod_ssl to get SSL working.
Tuesday, December 30, 2008
Getting MySQL to work with Rails 2.2.2 on Mac OS 10.5.6
Weird errors: dlsym(0x256ee10, Init_mysql): symbol not found - /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
It turned out I had installed the x86_64 version of MySQL and it does not work with Ruby.
[BLATANT COPY/PASTE BEGIN]
0. In Terminal: ls -l /usr/local ## Showed that mysql was pointing to a PowerPC version instead of i686
1. EXPORT ALL DATABASES FROM CURRENT MYSQL
2. Downloaded MySQL 5.1.30 (I am on OS X 10.4.11 so I used Mac OS X 10.4 (x86))
3. Ran installation package (be sure to see the README first about stopping current server, etc)
4. In Terminal: sudo gem uninstall mysql
5. In Terminal: sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
6. Started up my app's script/server
[BLATANT COPY/PASTE END]
Source: RailsForum
It turned out I had installed the x86_64 version of MySQL and it does not work with Ruby.
[BLATANT COPY/PASTE BEGIN]
0. In Terminal: ls -l /usr/local ## Showed that mysql was pointing to a PowerPC version instead of i686
1. EXPORT ALL DATABASES FROM CURRENT MYSQL
2. Downloaded MySQL 5.1.30 (I am on OS X 10.4.11 so I used Mac OS X 10.4 (x86))
3. Ran installation package (be sure to see the README first about stopping current server, etc)
4. In Terminal: sudo gem uninstall mysql
5. In Terminal: sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
6. Started up my app's script/server
[BLATANT COPY/PASTE END]
Source: RailsForum
Saturday, December 20, 2008
Captcha in Rails 2.1.2
Simple Captcha plugin by Sur Max works great. Few things that has made life easier:
1. You can now install the RMagick on Linux and Mac OS X using gem install rmagick.
2. Just follow the readme file that comes with the plugin and things will work fine.
It still is in SVN repository. It's ok, just install it.
1. You can now install the RMagick on Linux and Mac OS X using gem install rmagick.
2. Just follow the readme file that comes with the plugin and things will work fine.
It still is in SVN repository. It's ok, just install it.
Subscribe to:
Posts (Atom)
