Blogs

SVN Client Commands

1). svn --help: List Subversion commands
2). svn h : Same as Help
3). svn ? : Same as Help
4). svn help : Same as Help
5). svn add filename/directory : Add a file or directory to Subversion "Change Management" CM control.
6). svn blame filename : Show file contents with revisions annotated with author information.
7). svn praise filename : Show file contents with revisions annotated with author information.
8). svn annotate filename : Show file contents with revisions annotated with author information.

Remote Server MySQL Connection

1). Open the my.cnf configuration file of MySQL of your Remote Server:
2). Comment the line :
#bind-address= 127.0.0.1
3). Now create a User :
Command:
CREATE USER 'username'@'ipaddress' IDENTIFIED BY 'password';

4). Now grant the permission to user:
Command:
GRANT ON *.* to 'username'@'ipaddress';

5). Now connect to your remote server mysql using the following command:
Command:

Creating Virtual Host in Ubutnu

Steps to Create Virtual Host in Ubuntu:
----------------------------------------
1). Open the hosts file:
Command:
-------
sudo gedit /etc/hosts

2). Now create an entry for your virtual host:
Code:
-----
127.0.1.1    yourhost.com

3). Now open the your 000-default file:
Code:
-----
sudo gedit /etc/apache2/sites-enabled/000-default

SVN Importanct Commands

1). The examples used in this appendix assume that you have svn, the Subversion command-line client, and svnadmin, the administrative tool, ready to go on a Unix-like operating system.

2). Subversion stores all versioned data in a central repository. To begin, create a new repository:
Code:
----------
$ cd /var/svn
$ svnadmin create repos
$ ls repos
conf/ dav/ db/ format hooks/ locks/ README.txt

Creating Local SVN Repository (Home Repository)

In this tutorial I will explain how to create a local Subversion (SVN) repository, intended for a single user. I assume that you already know the benefits of keeping track of old revision of projects or important documents such as a resume or a thesis you have been writing. Subversion offers you a very convenient yet strong method to do so, and the easiest way to do so with Subversion (SVN) is to create a local, home, repository intended for a single user – you.



Drupal Form API Short Notes

1). Creating Forms : Constructing a textfield form element:
Code:
------
$form['foo'] = array(
'#type' => 'textfield',
'#title' => t('bar'),
'#default_value' => t('foo'),
'#size' => 60,
'#maxlength' => 64,
'#description' => t('baz'),
);
?>

Note : 'foo' is the name of the form.

2). For submit:
Code:
------
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
?>

Pages