Posted on 03:58 Hrs,April 26th, 2009 by Rimpy

So Ubuntu 9.04 has been released and i am also going to give it a try. Just removed my OpenSUSE 11.1 and installed a fresh copy of ubuntu 9.04. This time it seems to me more sound with my hardware configurations. Yet i couldn’t find frequent crashes of FireFox and thus ubuntu. It seems to me more stable version now. Well i am not using ext4 yet. Actually waiting for ubuntu community to make more testes ;). My NVIDIA graphics are running smoothly. I am very happy to back to my OS. I hope this time i would never need to look back to other linux operating system becuase of frequent crashes. Believe me, I really don’t want to look back even:).

Thanks to ubuntu team and ubuntu community for their valuable contribution.

Posted on 10:13 Hrs,April 19th, 2009 by Rimpy

While learning ruby, i went through many resources to know about predefined variables. But i couldn’t understand them at first sight. Finally i understand them and also tried to create some examples based on my learning experience.
Pattern Matching Variables

  • $& : The string matched by the last successful pattern match. Thus, in /(like)_([a-z]*)/.match(’i_like_ruby_very_much’), $& will be set to “like_ruby”. It will be available for current scope only.
  • $+: The contents of the highest-numbered group matched in the last successful pattern match. Thus, in /(like)_([a-z]*)/.match(’i_like_ruby_very_much’), $+ will be set to “ruby”. This is the last matched group of pattern. In our case, “ruby” is matched by ([a-z]*). This variable is local to the current scope.
  • $`: The string preceding the match in the last successful pattern match. Thus, in /(like)_([a-z]*)/.match(’i_like_ruby_very_much’), $` will be set to “I_”. This variable is local to the current scope.
  • $’: The string following the match in the last successful pattern match. Thus, in our case /(like)_([a-z]*)/.match(’i_like_ruby_very_much’), ” $’ ” will be set to “_very_much”. This is local to the current scope.
  • $1 to $9: The contents of successive groups matched in the last successful pattern match. In /(like)_([a-z]*)/.match(’i_like_ruby_very_much’), $1 will be set to “like” and $2 to “ruby”. This variable is local to the current scope.
  • $~: An object that encapsulates the results of a successful pattern match. The variables $&, $`, $’, and $1 to $9 are all derived from $~. Assigning to $~ changes the values of these derived variables. Thus, in our case /(like)_([a-z]*)/.match(’i_like_ruby_very_much’), $~ will be set to “like_ruby”. This variable is local to the current scope.
Posted on 07:51 Hrs,April 19th, 2009 by Rimpy

If you are looking further to learn ruby than grab your copy from here . You could also win a copy from rubylearning.org

Posted on 03:42 Hrs,April 19th, 2009 by Rimpy

I would like to let you know about the ubuntu 9.04 release. Here’s a nice countdown:

Posted on 16:20 Hrs,March 30th, 2009 by Rimpy

While googling around ruby and mobile apps, I came across an exciting ruby framework designed for mobiles having different operating systems like iPhone, BlackBerry, Windows Mobile, Symbian and Android. Here is the conference about this frame work given by Adam Blum.

I am very much interested in this platform. Right now, i am struggling with ruby 1.9. I would also try to work with the community of rhodes. Click here for more information.

Posted on 13:33 Hrs,February 22nd, 2009 by Rimpy

I switched to ubuntu 8.10 64-bit desktop edition with high expectations. But it couldn’t make me so relaxed. No doubt, It is very good linux distribution, i have ever seen. But Because of frequent crashes of operating system and firefox. I decided to leave ubuntu.  I installed Ubuntu 8.10 on my AMD 64-bit processor with 2GB RAM and GIGABYTE M61PME-S2 mother board. It might be some hardware compatibility problem. What ever is this, But i don’t want to switch to windows. So i decided to try some other linux distribution. I decided to go for openSUSE 11.1. I am posting this post from opensuse 11.1. I am working on firefox from 3 hours. Yet i didn’t experience any crash. That’s great!!  Read the rest of this entry »

Posted on 13:50 Hrs,December 31st, 2008 by Rimpy

I setup my ubuntu box with svn server and symfony. Here i want to share simple steps to configure symfony and svn server. I will cover the svn access from file system. I am considering you had installed SVN server. If not than follow these instructions. Now let’s install symfony. I will follow the pear installation.

1
2
pear channel-discover pear.symfony-project.com
pear install symfony/symfony

So it will install symfony framework for you. Now we will configure svn with symfony for the access from file system.

  1. Login as a root.
  2. Create new user “svn” with some specific home directory say /home/svn.
  3. Create your project directory in your svn user. say /home/svn/new_project.
  4. Setup repository structure with “svnadmin create /home/svn/new_project”.
  5. Now browse your svn home with “cd /home/svn”
  6. Let’s set some permissions with “chown -R www-data new_project”.
  7. Then “chgrp -R subversion new_project”
  8. And “chmod -R g+rws new_project”
  9. Now suppose your project’s home directory is “/home/new_project/public_html” and user of your project is “new_project”. Now we will give access of svn directory to “new_project” user by editing /etc/group. assign svn to new_project group.
  10. Now login to the user “new_project” and make sure you have both groups with “id -a”. Now browse your projects directory. In my case it is “/home/new_project/public_html”
  11. Set an environment variable with “export SVN_DIR=/home/svn/new_project”
  12. Now Create directory structure of your repository for your project. To do so give “svn mkdir -m “initial structure” file:///$SVN_DIR/trunk file:///$SVN_DIR/tags file:///$SVN_DIR/branches”
  13. Now make sure you are in /home/new_project/public_html and give “symfony generate:project new_project” where “new_project” is the name of your project.
  14. Now give these two commands to clear cache and log “rm -rf cache/* , rm -rf log/*”.
  15. Now Import with “svn import -m “initial import” . file:///$SVN_DIR/trunk”.
  16. Now go to “/home/new_project” and move your project directory to public_html.original with “mv public_html public_html.original”.
  17. Give “svn co file:///$SVN_DIR/trunk public_html” command to create the working version of your project.
  18. Now browse your project directory with “cd public_html” and give “svn propedit svn:ignore cache”. It will open your default editor. put “*” and save that. similarly for log directory with “svn propedit svn:ignore log”, put “*” and save it. It will put your “cache” and “log” directory in the ignore list of svn server.
  19. Now give [ svn commit -m "added cache/ and log/ content in the ignore list" ] command to commit the ignorance list.

That’s all. It will setup your symfony svn controlled project. I hope it will help some body and save some time.

Posted on 07:16 Hrs,December 31st, 2008 by Rimpy

Well, i have recently started work on the Elgg. It is good flexible social networking engine. Building on Elgg is easy, and because the engine handles common web application and social functionality. It runs on Apache, PHP and MySQL - the same open source platform that the majority of web applications are written in. Elgg is compatible with enterprise technologies like the Zend Platform and any server environment that can run the Apache web server.

The architecture that Elgg uses, is very good and flexible, and it is easy to create and implement plugins in it.

It has also been awarded as best open source social networking platform 2008.

Elgg wins best open source social networking platform 2008.

Elgg wins best open source social networking platform 2008.

Posted on 17:45 Hrs,December 23rd, 2008 by Rimpy

I know, i am little late to post this. But i am quite happy with symfony new stable release. Symfony team did lot’s of improvements. I started development of “JOBEET” on my local server using day by day tutorial. Yet i completed my 5th day and new routing management just amazed me. I am in the favor of symfony + doctrine and symfony 1.2.1 is bundled with doctrine. Now i will use symfony 1.2.1 in my next projects. I will keep posting about my experience on symfony 1.2.1.
I would like to thank symfony team for such an excellent work.

Posted on 17:31 Hrs,October 16th, 2008 by Rimpy

Yesterday i was completed with “askeet” web application on my local server successfully. It was really great experience to work with symfony. Well personally i have experience of ruby on rails, CakePHP, CodeIgniter and now symfony also.

Exploring around symfony, I came to know about one more database layer “Doctrine”. I found excellent comments about doctrine database layer in symfony. And more over for the future release, Doctrine will be bundled with symfony as a default database layer.

I thought, it’s better to take a short try and it really amazed me. I just read about “Behaviours” one of the key feature of “Doctrine” and i fell in love with this. Curious about other features to give try.

Anyway, here’s a small tutorial to install doctrine 1.0.3 with symfony 1.1.

Browse the document root of your project and type following commands in you bash shell:

$ svn co http://svn.symfony-project.com/plugins/sfDoctrinePlugin/branches/1.1 plugins/sfDoctrinePlugin

It will fetch all required libraries of latest release of “Doctrine” and the version i got today is “Doctrine 1.0.3″. Yes, that’s what i said it will fetch all libraries of current release of “Doctrine”.  Thanks to “Jonathan H. Wage” who is maintaining svn branches with current release of “Doctrine” and much more.