Latest Entries »

<html>

<head>

<script type=”text/javascript”>

function pri()

{

document.getElementById(“pr”).style.visibility=hidden;

window.print();

}

</script>

</head>

<body>

Test page for printing

<br>

<input type=”button” id=”pr” value=”Print” onclick=”pri()”>

</body>

</html>

This is sample coding to create two slide show in a same page

<html>
<head>
<script type=”text/javascript”>
<!–
var image1=new Image()
image1.src=”sample/images/black-berry.jpg”
var image2=new Image()
image2.src=”sample/images/i-Mate.jpg”
var image3=new Image()
image3.src=”sample/images/lg.jpg”
var test1=new Image()
test1.src=”sample/images/nokia1.jpg”
var test2=new Image()
test2.src=”sample/images/nokia2.jpg”
var test3=new Image()
test3.src=”sample/images/nokia1.jpg”
//–>
</script>
</head>
<body>
<img src=”sample/images/black-berry.jpg” name=”slide” width=”100″ height=”300″ />
<img src=”sample/images/nokia1.jpg” name=”slideshow” width=”100″ height=”300″ />
<script>
<!–
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval(“image”+step+”.src”)
document.images.slideshow.src=eval(“test”+step+”.src”)
if (step<3)
step++
else
step=1
//call function “slideit()” every 2.5 seconds
setTimeout(“slideit()”,2500)
}
slideit()
//–>
</script>
</body>
</html>

$ gedit mail.pl

add the following line in the file

$result=system(“mail -s \”hello\” xxx\@gmail.com < test.txt”);

$ perl mail.pl

It will send the mail with the subject hello and the content in test.txt file too xxx@gmail.com

Backuping a single table from a database

mysqldump -u -p database1 table_name > /home/backups/table_name.sql

Restoring the table into another database

mysql -u -p database2 < /home/backups/table_name.sql

Mercurial is not available in yum.

Building from source is easy, but requires an extra step:

# wget http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz
# tar xzf mercurial-1.3.1.tar.gz
# cd mercurial-1.3.1
# sudo make install

# export PYTHONPATH=/usr/local/lib/python2.4/site-packages

add to ~/.bash_profile

PYTHONPATH=/usr/local/lib/python2.4/site-packages
export PYTHONPATH

$ cd ~
$ cat .mysql_history

This is similar to .bash_history file that is logged for each user.
You can direct the history to another log file by using:

$ export MYSQL_HISTFILE=/home/webtest/dblog

Installing postgressql

$ sudo apt-get install postgresql

Installing pgadmin3

$ sudo apt-get install pgadmin3

To set password to the user postgres

$ sudo -u postgres psql postgres

postgres=# \password postgres

Create new user

$ sudo -u postgres createuser –superuser $USER

Set the password to the created user

$ sudo -u postgres psql

postgres=# \password $USER

Create database and go inside the database

$ createdb test

$ psql test

test=#


Logo for Kanimozhi

கட்டற்ற (தமிழ்க்) கணிமை கூடுதல் பற்றிய விவரம் அடங்கிய தளத்திற்கான logo உருவக்கப்பட்டுள்ளது.

LOGO:

வலைப்பக்கம்: http://kanimozhi.info/

Workshop at Delhi

Two days workshop was conducted in Acharya Narendra Dev College Govindpuri, Kalkaji, New Delhi 110019 about  Application of FOSS in Science Education & Research .. It was  jointly organized by NRCFOSS/AU with ANDC, New Delhi.

Here my experience on that……

On 10th April night we start from chennai by tamilnadu express at 10 p.m. It was a nice journey, this is the first time i travel in train a long time(33hours). 12th April Monday morning we reached Nizhamudin station by 8 o’clock. From there we went to NCERT Guest house by prepaid taxi, reached there by 11 o’clock and get ready to go the ANDC college.

we reached the college by 2 o’clock, after had our lunch we start work on the labs, till 6 o’clock we worked there and returned to guest house by 8 o’clock and went sleep by 10 o’clock(today travel tired so slept soon :-) )

The second day 13th April we went to ANDC college and setup the labs , evening around 5 o’clock we finished the work now the the labs are ready to workshop. we install ubuntu  in 4 labs, this ubuntu OS is customized by our people with the FOSS Tools.

The third day 14th April, this is the first day of workshop. Morning  9 o’clock the inauguration lots of people came, combined session was goes till lunch, after that there was a parallel session for the different department (Biology,Chemistry,Physics,Maths,Computer Science) peoples.

The fourth day 15th April, this day also started with the parallel session and we thought the customization also to the people in the FOSS Tools, they are really enjoyed to do the customization. After complete the parallel session certificate distribution. Then we people(NRCFOSS Team) went Delhi University South Campus to discuss about the next day session.

The fifth day 16th April, we went Delhi University South Campus, there was a session about FOSS history, philosophy and all. There also we taught the people to install ubuntu in their laptop. Some of them bring their own laptop, for others Delhi University South Campus provides the laptop. After complete the session we went Lotus Temple(great place i seen) and lajpat nagar for shopping but i cant buy anything because the time is around 8 o’clock we went there, the shops are closed one by one we did window shopping only  then we reached the guest by 10 o’clock and packed our things(next day morning have to leave from there so only :-( ).

The sixth day 17th April, we started from the guest house by 5 o’clock and reached airport by 6. This is the first time i travel in flight. After completed the checking we entered in the flight by 6.45 and settled to their place. The flight(Spice Jet) was started by 7.20 and we reached chennai airport by 9.55

Thats all…… I had a enjoable moments in those days….. :-)

Use RPM Package in Debian System

Install rpm packages in debina system:

First you have to install the alien package in your system

$sudo apt-get install alien

Convert the rpm package to deb

$sudo alien name_of_file.rpm

This will convert the rpm package to debian package , then using the following command you can install that package in your system

$sudo dpkg -i name_of_file.deb

Extract rpm file in debian system

To extract all of the files in a rpm package give the following command

$rpm2cpio package.rpm | cpio -dimv

Follow

Get every new post delivered to your Inbox.