Aricent visit in my school

After a long span, i am writing my new post which is not techy in fact.
This is regarding my experience as a student coordinator on arrival of Aricent.
I had so many talks with the Aricent HR since the months of April-May and till now. But due to some reasons or other the things were not getting into shape. Finally, i somehow managed to invite it for recruitment in our campus on 13th Nov., 09. In the long run, the recruitment team arrived at our school in the morning at 09:00am. We had each and every sort of arrangements for that day. After a small talk, there started the pre-placement talk. Thereafter, there was a written exam (1 and half an hour) for which we sat and 14 qualified for the next round among 25. Then, there was a group discussion round for two teams of 7 students each. This was not an elimination round but the marks mattered in the last round that was interview, which lasted upto 7:30pm. Students were waiting for the results curiously. Finally, that time came when the HR announced 10 names of my friends who qualified for Aricent. I saw whole lot of crowd in a deep ocean of delight; but they didn’t know that the person who got immense pleasure from all that, was myself.
When this process was over, we made a warm see off with everyone in the team.

So, it was all about my experience..i hope it continues further.

Advertisements

Command line mp3 player in Linux

This post is after about a month long hibernation from my blog.
I made my mind up to listen songs as i usually do (it contributes to my hobby). In fact, i was suffering with a headburst headache, so i thought songs might be the stress buster and good entertainer too. What striked my mind was why couldn’t i play the tracks on command line rather playing’em in traditional RhythmBox or Amarok etc. The way i thought, the way i found…some googling let me find such a tool named mpg123, which is nothing but a command line player cum MPEG streamer.
Installation on Ubuntu/Debian: sudo apt-get install mpg123
Installation on RedHat/Fedora/Cent OS: For this, we have to first enable the rpmforge repo and try
yum install mpg123
and you are done.

Go to the shell; Move into your songs folder; and type in mpg123 * as below:
neeraj@nee-pc:/media/LEISURE/fun/songs$ mpg123 *
Just press Ctrl+C , if you want to switch onto the next song in the folder.
Have a glimpse of the mpg123 on my UbuntuBox:

mpg123

Play files on the shell itself

Type man mpg123 and you will see what else can you do with this versatile thing.
Thanks GNU.
!!

Movie of the week : Konchem Ishtam Konchem Kashtam

Konchem Ishtam Konchem Kashtam is a typical family entertainer which has been carved in the lines of Siddharth’s previous movie “Bommarillu”, but has a different concept of storyline.  I am not a kind of Kuchh Kuchh Hota hai like movie’s watcher but this movie has something worth watching. The feel of the movie is same as Bommarillu (the first ever South Indian Movie in Telugu, i watched), but the story, screenplay and the direction look different in an innovative way. This whole movie revolves around Siddharth and his love Tamannah and the kind of circumstances they face from their elders, after falling in love. After Vishal-Shekhar, it’s Shankar-Ehsaan-Loy composing for a Telugu movie. They don’t unleash their full potential here, but it’s still an enjoyable album. The song egire egire reminds me youth oriented songs in chartbusters such as RDB and Yuva.

A still is here:

egire egire from KIKK

egire egire from KIKK

A total of 7.5 is there from my side for this movie out of 10 which makes it My movie of the week!!

proftpd: A unique ftp server on my UbuntuBox

This was basically a novice step by me to setup an ftp server locally, but i succeed! Proftpd is the professional FTP daemon. It can be found in Synaptic package of Ubuntu or can be downloaded via apt-get. Just install it and use standalone server.

Launch it through console (see manual pages for documentation):

neeraj@nee-pc:~$ proftpd

and check through your browser whether it’s running or not. Type ftp://localhost/ in the address bar and assign username and password (the same you use to login into your system)there in the dialoguebox. You must see a window like this:

Local file transfer protocol
Local file transfer protocol

I tried to access it on other computer on my LAN through my ip:

ftp://192.168.*.*

and it was working perfectly fine. So..are you gaming to set up your own ftp?? what say??

The Google India Women In Engineering Award 2010

Hello Googlers!
I am pleased to inform you about The Google India Women In Engineering Award 2010‘. This is an initiative launched by Google India in 2007-2008 with an objective of recognizing and rewarding deserving women students in the field of Computer Science In this third edition of our awards, we welcome applications from female students pursuing Bachelors, Masters and PhD in computer science, who meet the eligibility criteria. Applications are open from15th Sept ’09 to 31st Oct ’09. A group of most deserving students will be chosen form the applicant pool and the award recipients will receive a sum of INR 100,000 each.Highlights of the last years awards can be found on the website.
Feel free to share this within your friends network.
For any questions, please write in to ind-diversity@google.com
I wish i would be from Venus! 🙂

Turned my Ubuntu’s desktop as Fedora’s!

I always had a willing to turn my desktop as fedora’s desktop. In my UbuntuBox, the desktop doesn’t show the computer’s icon, the Home folder or the trash. But now, all are there in one go. Have a look:

All icons

All icons

What say?? All you have to do is to install Ubuntu Tweak. Launch it from Applications-> System Tools-> Ubuntu Tweak.

Tweak your Ubuntu

Tweak your Ubuntu

Go under the tab Desktop->Icons and do whatever you want. That’s it! It has so many other features, explore as much as you can! Cool na! 🙂

LAMP installation on Ubuntu 9.04

Last night, i was thinking of configuring LAMP on my UbuntuBox. LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. (Sometimes Perl or Python is used instead of PHP.) Because the platform has four layers, LAMP is sometimes referred to as a LAMP stack. Stacks can be built on different operating systems. Developers that use these tools with a Windows operating system instead of Linux are said to be using WAMP; with a Macintosh system, MAMP; and with a Solaris system, SAMP.

I tried the following and got success:

Open terminal and typed:

neeraj@nee-pc:~$ sudo apt-get install lamp-server^

The total size downloaded was 43 mb approx and took about 20 minutes.
let us see, whether the installation succeeded??
open Firefox and type http://localhost/ . If the browser displays "It Works", means the installation is successful.

PHP test:

type in the terminal the following

neeraj@nee-pc:~$ sudo gedit /var/www/testphp.php

and type in the following code:

<?phpinfo();?>

Save and close the file and restart Apache by:

neeraj@nee-pc:~$ sudo /etc/init.d/apache2 restart

Open the browser and put http://localhost/testphp.php in the addressbar, hit enter and if you see the following, php has been successfully installed.

php info
php info

Next is the turn of MySQL:

MySQL has to be bound with the localhost so type in the following to check whether the bind-address is 127.0.0.1?

neeraj@nee-pc:~$ gksudo gedit /etc/mysql/my.cnf

I also installed phpMyAdmin which is optional:

open terminal and type

neeraj@nee-pc:~$ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

After this type in:

neeraj@nee-pc:~$ sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

type in http://localhost/phpMyAdmin in the addressbar of your browser and you get the following homepage:

phpMyAdmin
phpMyAdmin

Log in with the MySQL accoun and you are done. I forgot the password and hence tried the following:

sudo dpkg-reconfigure mysql-server-5.0

to reset the MySQL Password.

Now, everything’s peachy. 🙂

neeraj@nee-pc:~$ gksudo gedit /etc/mysql/my.cnf

Artha – Open Thesaurus

Although Ubuntu and several other Linux Distros provide it’s own dictionary which connects online to give you the results. Meanwhile i was thinking of something like Wordweb in windows. I found one mail regarding the same ..i managed somehow to install Artha on my UbuntuBox..it works good..and i love it…

The open dictionary
The open dictionary

Running Servlets! Tomcat and JDK configs.

Though this post is worthless for a developer who is in touch of these at priori, but it matters much for the newbies who do it without any help and succeed. That newbie is of course, i am!
Well.. past a week, Ritu (one of 2nd yrs.) asked me about the problem she was facing with the Java servlets and mapping. As i was aware of running only simple Java programs (of cors, without any help of apache), i made some permanent changes in the system environment path variable so that she might not face any problem with the paths of the servlet or java codes. For mapping purpose, i was unable to instruct her anything because it was quite a new thing for me (Goddamnit… 😦 i never tried these things even on my UbuntuBox). Yesterday, i was pinged by Amit (another 2nd yr. guy) for more or less the same problem. So, i thought that it would be better if i somehow do it myself on my box and then on others. After such a long time, i prepared myself to boot windows and do the things as required. I uninstalled the previous JDK and downloaded the fresh one from Sun’s site. I already had Tomcat 5.5.20 downloaded from DC++ when i was in BHU (Thanks to IT-BHU guys..they share whole lot of things whether you require it or not), though never used before purposefully. If you don’t have, download it from Tomcat’s site.
I installed Java Development Kit followed by Tomcat with its default settings. Started the server manually, and tested it by typing http://localhost:8080 (i used firefox…i feel people get stuck when they try it on Internet Explorer, without changing the port 8080 to 80. Microsoft itself has it’s IIS). The index page was shown, i felt a bit relaxed as apache was running successfully.
I also explored the documentation a bit.
Thereafter a bunch of tragic things persistently came to bother me. Let’s chuck them off and see some easy steps to make the things work:

a) I turned on servlet reloading, by editing install_dir/conf/context.xml and changed

    <Context>

to

    <Context reloadable="true">

b) Enabled the invoker servlet which lets us run servlets without first making changes to our Web application’s deployment descriptor (i.e., the WEB-INF/web.xml file)
To enable the invoker servlet, uncommented the following servlet and servlet-mapping elements in install_dir/conf/web.xml.

    <servlet>
        <servlet-name>invoker</servlet-name>
        <servlet-class>
          org.apache.catalina.servlets.InvokerServlet
        </servlet-class>
        ...
    </servlet>
    ...
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>

c) Created a Development directory in C:, where i could write all the servlet codes and compile them sideways.

d) Then arrived a situation when i had to set the CLASSPATH in a batch file named autoexec.bat in C: drive itself (where the development directory lies). OMG! i edited this file with the following approximately 20 times when i got success:

set CLASSPATH=.;
C:\Servlets+JSP;
install_dir\common\lib\servlet-api.jar;
install_dir\common\lib\jsp-api.jar

I Googled to find out this link which says these lines should be in one line. Servlets+JSP is the directory i had just created.
i saved the autoexec.bat file there in C, and put a sample servlet code in the development directory. Compiled it with javac, only to find some errors which said that javax.servlet.blah blah is not found.
I was seriously not enjoying the thing as it was turning bad to worse after doing any changes anywhere. As a newbie..i uninstalled the jdk, reinstalled it with no changes, but compilation failure was a must. I left no stone unturned last night around 3 am to serve the purpose but, in vain before i slept. Today, in the evening, i was trying my luck to do the same thing. Did everyting well with keeping my mind cool, and edited the autoexec.bat file once again with a slight change of spacing between the semicolon (;) and the next path. Saved it, and tried to compile the servlet code once again, i was amazed to see that the code was compiled successfully leaving the .class file there in the development directory.

e) and then came the final step of running the servlet in the browser. Before doing this i placed this .class files into the folder install_dir/webapps/ROOT/WEB-INF/classes. This is a need. put http://localhost:8080/servlet/HelloServlet in the browser’s address bar, hit enter and saw the servlet running in my browser with a big Hello.

This was certainly one of the best experiences i ever had on my PC as i have heard people finding it very difficult to do what i have done in less than two days.
Whole credit goes to my juniors…!