May 27 2010

Fixing Ruby no such file to load readline error in centOS

Does this error message look familar when you script/console?

$> script/console
Loading production environment (Rails 2.1.0)
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load — readline (LoadError)
from /usr/lib/ruby/1.8/irb/completion.rb:10
from /usr/lib/ruby/1.8/irb/init.rb:252:in `require’
from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules’
from /usr/lib/ruby/1.8/irb/init.rb:250:in `each’
from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules’
from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup’
from /usr/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/bin/irb:13
This happens when readline is somehow different than your current version of ruby or corrupted. The quick fix is [...]

April 19 2010

how to enable flash audio in ubuntu

source : http://ubuntuforums.org/showthread.php?t=789578
1. Backup (and then delete) your previous configuration files:
Code:
$ mkdir ~/pulse-backup && cp -r ~/.pulse ~/.asound* /etc/asound.conf /etc/pulse -t ~/pulse-backup/
$ rm -r ~/.pulse ~/.asound*
$ sudo rm /etc/asound.conf
2. Ensure you have the necessary PulseAudio libraries and configuration utilities installed:
Code:
$ sudo apt-get install libasound2-plugins padevchooser libsdl1.2debian-pulseaudio
3. Ensure the evil “libflashsupport” library is not installed:
Code:
$ [...]

April 02 2010

Installing mysql gem with MAMP already installed on Mac Os

export ARCHFLAGS=”-arch i386 -arch x86_64″ ;sudo gem install –no-rdoc –no-ri -v=2.7 mysql — –with-mysql-dir=/Applications/MAMP/Library/bin/mysql –with-mysql-config=/Applications/MAMP/Library/bin/mysql_config

March 16 2010

Install NetBeans on Ubuntu 8.10

Setup the Source Repository

deb http://za.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://za.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb http://za.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://za.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

To install NetBeans via the Ubuntu Package Manager, ensure that the correct repository is listed in the source listing file. NetBeans is found inf the universe repository and [...]

March 15 2010

Installing readline for ruby - for ubuntu

apt-get install libreadline5 libreadline5-dev
apt-get install libncurses5 libncurses5-dev

cd /usr/src/ruby-1.8.6-p368/ext/readline/
ruby extconf.rb
sudo make
sudo make install

done..

March 15 2010

Configuring Syslog for Rails

I was working on a Rails application recently that required the logs to be sent to remote log server. This blog is just a summary of the steps to get it working. I used Rails 2.0 and the development was done on Ubuntu.
The first thing was to get syslog-ng. Its more advanced than syslogd.
sudo apt-get [...]

March 14 2010

Installing Openssl on Ubuntu

If you have tried to install Mechanize or any gem that requires openssl on Ubuntu or Debian, you may have encountered the following error…
LoadError: no such file to load—openssl
despite the fact that you have installed openssl with “gem install libopenssl-ruby”.
Thanks to this thread, I found out that in order to install openssl, you have to [...]

February 18 2010

Remote Resolution of Git Conflicts

You are attempting to push when you experience a conflict:
[ksedgwic@lap2 bonsai-wiki]$ git push
To ssh://ikiwiki@git.bonsai.com/~/public_git/bonsai-wiki.git
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to ’ssh://ikiwiki@git.bonsai.com/~/public_git/bonsai-wiki.git’
First, see if the conflict can be automatically resolved:
[ksedgwic@lap2 bonsai-wiki]$ git pull
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: [...]

February 09 2010

Ruby on Rails simple tutorials

http://www.tutorialspoint.com/ruby-on-rails/index.htm

February 09 2010

Dave Matthews Band

http://216.178.38.116/index.cfm?fuseaction=music.artistalbums&artistid=5890852&albumid=14916961