Rails Forum
Ruby Forge
Ruby on Rails
Ruby Language
Ruby Doc
Ruby Wiki
Working with Rails
Rails Wiki
Redhill Rails
Bryan on Rails
hikikomori Rails blog
what are we ? we are what we experience. And some more. I bring together here, collective experiences from different parts of life..
Wednesday, October 10, 2007
Wednesday, August 22, 2007
Controllers dont respond when...
I had this problem when the server is running nice and fine, but the controllers wont respond. Look at this post http://railsforum.com/viewtopic.php?pid=36358.
And then I realized the reason for the problem, quite by chance actually, but I found that the current location while launching the server program did matter.
When I start the server from the application-root directory (.../railsapp/sampleApp/ ) using ./script/server it always works fine.
However, if I start the server from .../railsapp/sampleApp/script using ./server it doesnt work.
I think the trick is that from application-root it seems all the application components and directories etc.
Its not a big thing, though I now wish that it was documented properly somewhere.
cheers
raghav..
And then I realized the reason for the problem, quite by chance actually, but I found that the current location while launching the server program did matter.
When I start the server from the application-root directory (.../railsapp/sampleApp/ ) using ./script/server it always works fine.
However, if I start the server from .../railsapp/sampleApp/script using ./server it doesnt work.
I think the trick is that from application-root it seems all the application components and directories etc.
Its not a big thing, though I now wish that it was documented properly somewhere.
cheers
raghav..
Saturday, August 11, 2007
Catching up...with rails
Well, I have been reading and experimenting a lot with rails past days.. but didnt really take time out to report anything significant...
First things first, I am deeply interested in this thing now... I am getting more and more into this with each new experiment I come across.
As I mentioned, I have had my experience with web programming, (with Java, J2EE in 2001-2) but that was very different. I was a novice to IT industry in more than one ways... and if I compare what we had to do at that time to make one servlet run on a given app server, current effort looks minuscule. Its just so much more simple.. easy.. I like it.
In the meantime, I have been working on different technologies, really far away from the web world. But, after my brush with ruby, I am actively thinking of getting into more web based app development.
In the days that passed by, I have tried to follow a few tutorials which were really nice starters for me. I list them here...
And then, I got hold of some books on ruby on rails...
Agile web development with rails 2nd Edition, is a masterpiece for rails starters. May be I liked it more given my background in programming, but I have to say, it just such a nice book... I really have to give the writer guys full marks for putting across such a nice book. Great work guys.. keep it up.
First things first, I am deeply interested in this thing now... I am getting more and more into this with each new experiment I come across.
As I mentioned, I have had my experience with web programming, (with Java, J2EE in 2001-2) but that was very different. I was a novice to IT industry in more than one ways... and if I compare what we had to do at that time to make one servlet run on a given app server, current effort looks minuscule. Its just so much more simple.. easy.. I like it.
In the meantime, I have been working on different technologies, really far away from the web world. But, after my brush with ruby, I am actively thinking of getting into more web based app development.
In the days that passed by, I have tried to follow a few tutorials which were really nice starters for me. I list them here...
- links courtesy Ruby on Rails site (www.rubyonrails.org). These tutorials might be old in time, but they are still excellent starts for ruby on rails
And then, I got hold of some books on ruby on rails...
Agile web development with rails 2nd Edition, is a masterpiece for rails starters. May be I liked it more given my background in programming, but I have to say, it just such a nice book... I really have to give the writer guys full marks for putting across such a nice book. Great work guys.. keep it up.
Sunday, July 29, 2007
Making the fonts look better on Ubuntu
Hi,
Just found a better way of rendering fonts on Ubuntu..
I was looking for making the fonts look better on my Feisty Fawn. While searching, I hit this - http://jaganath.wordpress.com/2006/07/16/ubuntu-install-log-6-finally-os-x-like-font-rendering-in-linux/
The following page suggests some tips/packages to be installed for better rendering.
http://ubuntuforums.org/showpost.php?p=1041769&postcount=1
However, I must warn that, after installing the attached files, the system will be BROKEN. Not because what he is suggesting is incorrect in any way, rather just because in Feisty fawn the same packages are
sudo apt-get install libcairo2 libcairo2-dev libfreetype6 libfreetype6-dev libxft2
And, lest I forget to mention, run the following command...
sudo dpkg-reconfigure fontconfig-config
Hope that its useful. AND, I must say, the suggestion for the fonts settings work excellently.. absolutely great.
have fun
raghav..
Just found a better way of rendering fonts on Ubuntu..
I was looking for making the fonts look better on my Feisty Fawn. While searching, I hit this - http://jaganath.wordpress.com/2006/07/16/ubuntu-install-log-6-finally-os-x-like-font-rendering-in-linux/
The following page suggests some tips/packages to be installed for better rendering.
http://ubuntuforums.org/showpost.php?p=1041769&postcount=1
However, I must warn that, after installing the attached files, the system will be BROKEN. Not because what he is suggesting is incorrect in any way, rather just because in Feisty fawn the same packages are
- available in the repositories
- available in newer versions.
sudo apt-get install libcairo2 libcairo2-dev libfreetype6 libfreetype6-dev libxft2
And, lest I forget to mention, run the following command...
sudo dpkg-reconfigure fontconfig-config
Hope that its useful. AND, I must say, the suggestion for the fonts settings work excellently.. absolutely great.
have fun
raghav..
Thursday, July 12, 2007
Introduction to Rails
Well,
I have worked with C, C++, Java and shell scripts in past. And I never really was looking for learning another programming language till I met Mr Marcel Canclini. Marcel as we all call him, is an ardent Apple fan and been playing around with ruby on rails for a few months now.
I intend to make this a record of what I experience with ruby on a regular basis and how I progress...
I have worked with C, C++, Java and shell scripts in past. And I never really was looking for learning another programming language till I met Mr Marcel Canclini. Marcel as we all call him, is an ardent Apple fan and been playing around with ruby on rails for a few months now.
I intend to make this a record of what I experience with ruby on a regular basis and how I progress...
Order for installing ruby gems locally
For installing ruby on rails basic framework when u dont have access to internet, you could follow the following order of installing gems...
Install Ruby
Install RubyGems
Install different gems
Also found some more info on installation of rails when internet connection is actually available. Here's the source of info, the rails wiki site
Install Ruby
Install RubyGems
Install different gems
Also found some more info on installation of rails when internet connection is actually available. Here's the source of info, the rails wiki site
- Installing Ruby
sudo apt-get install ruby irb ri rdoc ruby1.8-dev build-essential- Installing Ruby Gems
sudo apt-get install rubygems- Installing Rails
sudo gem install rails -y- Installing MySql
sudo apt-get install libmysql-ruby mysql-server libmysqlclient15-devsudo gem install mysql
Wednesday, July 11, 2007
Ubuntu Feisty Fawn installation on my HP 6710b
As I mentioned in earlier posts, I have had a tough time getting Ubuntu to install on my HP 6710b. Here I try to list the various sources I referred to, and steps I did to get it working ...
I must mention, most of my experience was guided from this page, Unfortunately, it did not work exactly for me, so I thought the need to write my experience.
Other posts which contributed to my knowledge/experience are
hth
regards
raghav..
I must mention, most of my experience was guided from this page, Unfortunately, it did not work exactly for me, so I thought the need to write my experience.
Other posts which contributed to my knowledge/experience are
- http://ubuntuforums.org/showthread.php?t=488332
- http://ubuntuforums.org/showthread.php?t=452697
- http://ubuntuforums.org/showthread.php?t=421588
- http://ubuntuforums.org/showthread.php?t=494601
- Download and burn the alternate CD for Feisty. The Live CD does not work, and thus breaks the promise of "works out of the box" for this model.
- While you boot your system with the alternate CD, enter some extra boot parameters
- Press F6 to get to the options screen
- In the starting enter break=top
- Towards the end of the boot parameters, enter irqpoll, acpi=off noacpi pnpbios=off
- After this, your system should boot normally.
- Now, the text based installer (remember its the alternate CD not Live CD), will install the OS onto your system. However, when it comes to installing/configuring x server, the system bump you to a command prompt.
- At this point, I ran the following (after making sure that I have the network connectivity - at this point ethernet already works)
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo echo piix >> /etc/initramfs-tools/modules
- sudo update-initramfs -u
- At this point Reboot your system. Since Grub is already installed, you should normally see a boot menu. Choose Ubuntu from there. DO NOT choose Windows for any reason whatsoever.
- After reboot, you have a working Ubuntu system minus X server. Log in as usual, in the text mode.
- Perform this
sudo apt-get install xserver-xorg-video-intel - Now, take backup of your xorg.conf using
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bkp- Launch the reconfigure command for xserver configuration using
sudo dpkg-reconfigure xserver-xorg - And, then take the pain of configuring everything manually.. not automatically. Among, the following steps, I am not sure about the sequence of some.. but more or less, gives you an idea of what comes across..
Be careful, not all options work good with default values, though most of them do.- Do not choose to do an auto-detect for your screen. NO.
- Choose manually everything that you can for your screen. It asks you for a level of configuration that you want to do, and gives options like Simple, Intermediate, Advanced... there choose Simple.
- Choose a screen size (15" I think)
- Choose Resolution.. Careful to choose the widescreen resolutions
- Decide on memory to be allocated. I chose 256MB
- Choose color Depth : I chose 24 bit
- Towards the end, it would ask you to write the configuration to disk, obviously choose yes.
- it would exit without trying to start x.
- Now, just type at command line, startx, should work.
- Once you are in x session, install the driver suggested at intel X3100 Drivers post , Do the configuration as suggested in the post. It works.
- The X server configuration is done now, the system can be rebooted, and would automatically go into x mode.
- Lest I forget, Go to the Grub menu (/boot/grub/menu.lst) and update the windows vista boot point description. Both normal boot point and recovery boot point have same label by default. If you boot into recovery mode by mistake, the MBR is overwritten.... :(
hth
regards
raghav..
Subscribe to:
Posts (Atom)