Wednesday, February 11, 2009

svn server setup tutorial in fedora core 9

1. First you should Create a SVN Repository
svnadmin create /svnrepos
2. Then Create a SVN User
vi /svnrepos/conf/svnserve.conf

In that file add these three lines below:

anon-access = none
auth-access = write
password-db = passwd

Create a password file:

vi /svnrepos/conf/passwd

In that file add a line for your user:

# add users in the format : user = password
tony = mypassword

3. Now Import Your Project
(assuming you’ve put your project files in /projects/mytestproj)
svn import /projects/mytestproj file:///svnrepos/mytestproj

4. Start the SVN Server as Daemon, Lets Ahead
svnserve -d

now you have a SVN server running with one project named mytestproj.
Try checking it out of the repository:svn co svn://192.168.0.2/svnrepos/mytestproj

Reference Taken from:
http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/


windows ruby installation tutorial in minutes

Just Follow The Steps for Windows Users

Installing GEM
Step 1.
Install ruby: ruby186-26.exe [you should have to get it from net, search google]
From command prompt

Step 2.

gem install rails --remote --include-dependencies

Step 3.
gem install rake --remote


Working with RoR with Example

to create the project framework with mysql server
rails cookbook -d mysql
to run the ruby serverruby script/server

to create ruby controller fileruby script/generate controller ControllerName

to create model fileruby script/generate model ModelName

scaffloding the projectruby script/generate scaffold Book title:string description:test

migrating the database from ruby script to mysql database serverrake db:migrate


Cool you are ready to start coding already....

Handy JQuery Tools for cool site applications

In this link you can find a lot of handy JQuery tools for website or web applications which lead your site to standard platform.

Here is the link JQuery Handy Tools

Hope life would get easier.

Search Suggestion Tutorial : Ajax Google Suggest Link

Wonderful tool for search suggestion tutorial in phphacks.com

Go through this link: Click Here

Puzzles from Microsoft

Get the File and you will find a set of puzzles and answers as well. Some puzzles has no answer yet. Try to solve them ASAP.

To get this Click Here

Some useful links for Starting Ruby on Rails

Here are some links for getting touch with Ruby on Rails

For Begginers: Click Here

For Novice: See Here

For All: Find Here

Installing Ruby on Rails in Linux

First find the tar package from this link
Click Here to get rubygems-1.8.6.tar.gz

Then follow these commands

tar xzf ruby-1.8.6.tar.gz
cd ruby-1.8.6
./configure
make
make test
sudo make install

Blackberry which are not bought from Grameenphone Center are capable to access EDGE Internet

This article is for those people who did not buy blackberry set from Grameen Phone Customer care. I brought a Blackberry 8820 UK Orange from UK. Then unlocked the set using unlocking code. It took around 5000 tk to unlock. However, after I unlocked the set, I did not get EDGE internet connection using the set. Then I called their 24 hour customer care service to know how can I find the connection. I phoned them to inform that I have a blackberry set to be connected, for this, I submit a handset connection message to you guys and replied that my handset is not recognised. Whatever this is a common problem which I faced previously. But in response of calling them, they took time to confirm me and finally confirmed that the blackberries which are not bought from their customer care center is not currently capable to have their edge connection!!! I can have only use the voice and sms service from them if I continue to use my blackberry. what a sad news they gave with a fancy manner!! Whatever, without accessing internet, blackberry is alike dead!!

Then I went my own way, and finally got internet connection into it.
  1. Unlock your handset if it is locked
  2. Go Settings -> Advance Options -> TCP
  3. In TCP settings write "gpinternet" in APN field and just save.
  4. If you dont have any http or socket browser like opera 4 or something like that, then please add that application some how, say you can add that application downloading from your desktop PC and load that into your blackberry using your blackberry application loader software.
  5. From opera mini, go the settings section and find the network settings there. Select "Socket" connection and save.

Thats it, now your blackberry handset is ready to access Grameenphone Internet. Enjoy with your blackberry.

Note: I did not test with its Enterprise Server yet currently but you can simply surf the net using your handset now. Go and Bingo!!!

Thanks

How to find String pattern in files

Here's how you can find a string pattern inside files in any dir
Lets assume we want to search a string pattern "multiple" in all php files in a directory.

Then:
grep -l "multiple" *.php

Here, -l means that output will be shown in a list naming the filenames which contain the string pattern.

Enjoy.

BlackBerry internet activation

Blackberry devices are dependent on its service providers. So, when someone bring the device somewherein where its provider's range is down. So, no internet in the device as well. To solve the problem, here is a quick solution.

Go Options -> Advanced Options -> TCP

There you will see like following, and edit them s well:
APN : ENTER the APN for your current service provider
username: Service provider's username,
most cases Leave Blank
password:
Service provider's password, most cases Leave Blank

Note: you must have an internet package from your current service provider.
Example of having Grameenphone P2 Internet Package


APN : gpinternet
username:
Leave Blank
password:
Leave Blank

Enjoy...