Wednesday, February 13, 2008

Sun Tech Days 2007 in Hyderabad -- Open Source

Biggest ever developer conference in the history of India, held in Hyderabad International convention center (HITEX) the Sun Tech Days 2007. This was launched in satellite cities like Pune, Mumbai and Delhi. Across India, over 10,000 developers attended this event and more than 5000 from our city.
I was very much excited to attend the event and finally I got my first Sun Tech Day pass in my pocket.
Feb.21.2007 (Day 1)!!
0800 hrs
I felt happy after seeing the crowd and the great convention center. We got registered by paying 1125/- and there after we were in the coffee queue but unable to get at least one.
0930 hrs
We entered the main conference room which was marvelous. The hall was packed with plenty of young developers and students.

The event was started with a message from Jonathan Scwartz and an introduction from Bhaskar Pramanik, MD Sun Microsystems, India. This talk followed by Guest Speaker for the event, Ramalinga Raju, Chairman, Nasscom. He spoke about change management which went up to 45 mins. He presented on what the developers were missing on and what they should concentrate on. The final keynote of the day was Rich Green, Executive Vice President of Sun Inc. He gave a good foundation on why should we go for sun products and made Sun Tech days more lively!!

There were some cool Technical demos from Srikanth Ramakrishna, Simon Ritter, Carol McDonald, Rags and others on various Sun Technologies (Ajax, JSF, Solaris, Mp3 player and Sun Spots) after Keynote address. We also got to see how good the Open Solaris perform compared to others. This followed the actual talk track.
There were 4 tracks going on simultaneously, out of them 3 were related to Java Development and one to Solaris Development.

Sessions I have attended:

1200 hrs: Java EE 5 and GlassFish
The aim of the Java EE 5 was to make ease of development i.e. using POJOs, Annotations(@) and resource injection.The principle is: Don’t call us, we will call you! (Hollywood). The developer life becomes easy if we use Java EE 5. There are lot of features like JAX-WS-2.0, JAXB 2.0, EJB 3.0, JSF 1.2, JSP 2.1 and many more.
Facts: To read a simple XML file JAXB 1.0 takes 308 lines. If we compare it JAXB 2.0 takes 62 lines.Glass Fish is JAVA EE 5 reference implementation. It’s more than an App. Server provides – Tools, Plug in for eclipse, Documentation, SOA-BPEL Engine, Java DB (based on Derby, Focus on popular framework applications. They were encouraging developers to use Glassfish, report bugs to the community.

1300 hrs: Sun Java DB
Good news for all is Java DB comes with JSDK 6.0. It is Sun’s support distribution of Apache Derby. It was written in Pure Java. It is easy to use and zero maintenance. It is secured and complete relational engine.
We can run it in 2 ways: Embedded and Client/Server mode.It weighs less than 1MB – very portable, you can carry it in your stick. It is based on the following standards: SQL, Java, JDBC and supports J2ME. There are various tools available like ij and dblook.It has no architectural constraints and it is being tested up to 300 GB and 100 active connections.

Lunch time!! Had sumptuous lunch (Had 2 ice-creams)

We visited the stalls around there and had a great time with sun employees. I got a J2ME cap and sun-Solaris bag!

1500 hrs: Java Server Faces with Visual web pack-NetBeans
“JSF is a server side, user interface component framework for building java technology based web applications.”
It is the first user interface developed by Sun Java.JSF (MVC) is a standard and it has very strong AJAX support. I found NetBeans is the most suitable easy way to develop web applications esp. with JSF. Here the container gives a tree based components and its up to call which GUI to use. For example if we take JSP Renderer we can display in HTML. So it’s usable with and with out JSP. The architecture is clear that you would love to use with the AJAX frameworks.
Some Striking features in JSF 1.2Alignment with JSP technology – support for JSTL.Ease of use improvements in support for custom messages.Improves state saving behavior.You can get support from sun developer forums and Sun!!

1600 hrs: Using JRuby with Java
“A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.”
It’s a pure OO “scripting” language, Open source, interpreted, written in C. It supports single Inheritance, large collection of built in libraries and first class regular expression support. It’s fun and easy to use.
JRuby is 100% Java implementation of Ruby. It leverages best of JVM and Java platform. Java is not the only tool we could be using – we can code in JRuby, JavaScript, PHP and so on. Everything here is an object (Even 1).
Rails is a full stack framework for developing web applications which is based on MVC! Rails need what JRuby and the JVM can provide.
Coffee Break!! Grab a cup of coffee in Sun’s disposable one.

1700 hrs: EJB 3.0 and Java Persistence APIs
In simple words Persistence means saving your application’s data in Atomicity, Consistency, Isolation and Durability.
Today we have JDBC, JDO, Entity Beans, Hibernate, Toplink, iBatis and other ORMs.
The problems are different persistence technology have different emphasis, can be confusing if you are a novice, tedious to use and understand concepts, JavaSE can not use models created in Entity beans and no easy way to work with open source persistence engines.The goal of Java persistence is to Simplifying/Unifying persistence.
Its POJO based, supports rich domain modeling (Polymorphism and Inheritance), expanded query language and usable in JavaSE and JavaEE environments.
Mapping in EJB3.0 is so simple –we have to make use of Annotations like @Entity, @ Table, @Id, @ Remote, @ Stateful, @Remote …It supports all the entity relationships, frees from boiler plate coding and lot more!
Every one got Sun Laptop bag with Netbeans-Fullstack CD!

The Day 1 ended with Famous Bollywood Singer KK performance for the audience. He sang all his popular numbers and entertained the crowd.

Feb.22.2007 (Day 2)!!

0930 hrs
The attendance was exceptional! The hall was full on Day 2...surprised!!First keynote was by Jim Huges CTO of Solaris talked about OS futures. Jim spoke about the Horizontal Scaling, Vertical scaling challenges in the near future and what operating systems should do to address this. Vijay Anand, VP Oracle was the guest speaker. He spoke about the SOA, EJB3.0.Next Java Jacket Give-Away – A girl got this one for her singing talent!

1130 hrs: Java Scripting-one VM, many languages
The session was all about java scripting, which was included in Java SE 6.I skipped a session after lunch and was roaming around stalls.

1530 hrs: Fun with Sun SPOTs
-- Sun Small Programmable Object technology.

Inspiring Java developers to create a whole new breed of devices and technologies - and accelerating the growth of the "Internet of Things"
In 2003 researchers at Sun Labs began working on Wireless Sensor Networks. Over the course they wanted more powerful sensor devices that were easier to program. Existing products have lack of useful tools and inflexible hardware designs. Based on the experience with Java and with the KVM (both of which were invented in Sun Labs) and its use in cell phones, Sun thought that applying Java to development of the platform which would help us get past some of these limits.

In November of 2004, Sun Labs started project Sun SPOT to build own sensor hardware and to adapt a small, flexible Java Virtual Machine (Project Squawk) to the sensor platform.(-From sunspotworld)We got to see few demos which were amazing.

1630 hrs: Developing web 2.0 Application Using AJAX and Related Frameworks
What is AJAX - It's an acronym for Asynchronous JavaScript and XML.
AJAX uses JavaScript combined with xml to grab information from a server without refreshing the page; the main requirement is the web browser has the support for XMLHttpRequest object.
The term AJAX was coined by Jesse James Garrett in February 2005.Asynchronous communication replaces "synchronous request/response model."A user can continue to use the application while the client program requests information from the server in the background i.e. separation of displaying from data fetching.
Why AJAX? -- "Partial screen update" replaces the "click, wait, and refresh" user interaction modelOnly user interface elements that contain new information are updated (fast response), the rest of the user interface remains displayed without interruption (no loss of operational context)
• Intuitive and natural user interactionNo clicking requiredMouse movement is a sufficient event trigger
• Data-driven (as opposed to page-driven)UI is handled in the client while the server provides data
Frameworks Covered:

Icefaces -- Ajax version of JSF.
JMaki
Google web tool kit and many more.

Feb.23.2007 (Day 3)!!

NetBeans Day
The session started with installation of NetBeans and then moved on to the basics to creating web services.
One noticeable feature was that we can chat/see the other person’s editor through NetBeans. It was awesome and the demos were superb.

Overall it was a great experience for me and looking forward for another one :)

Thursday, May 31, 2007

INDUSTRIAL TOUR CUM EXCURSION – 30th May 05 to 4th June 05.

Bangalore – Srirangapatna - Mysore

30th May 2005


We all were at the Secunderabad Railway Station by 6:00 pm. We were delighted to see our faculty members Mr. Raghunath Acharya Sir, Mr. Shradhanand Sir and our placement madam Mrs. Lalitha accompanied by some juniors and parents of some of our classmates. The train was at right time and departed from station at 6:40 pm. It took almost an hour for us to adjust in the train. In the train some of my classmates were playing cards, chatting, listening to music, etc. Sweta and I were busy in collecting money from our classmates. Most of them were slept by 1:00 am.

31st May 2005


We arrived in Bangalore at around 7:15 am. I was very much tensed about the hotel that we booked. We had to wait for some time at the station, finally the person arrived at station and took all of us to the hotel by name Anmol Residency by 7:45 am. I did not expect that we would get the hotel of such a good standard which has television as well as telephone in each room. The facilities in the hotel were satisfying. Totally we booked 11 rooms for 44 members, including our faculty Mr. Satish Chandra Sir. I shared the room with Prem, Amit, Naveen and Ganesh. Everybody washed themselves and was ready by 10:00 am with their breakfast done. We had arranged the bus for our traveling in and around Bangalore.

All of us left for ISKCON (International Society of Krishna Consciousness) - Sri Radha Krishna-Chandra Temple and reached there by 11:30 am. The founder of the temple is A.C. Bhaktivedanta Swami Prabhupada. It was written there that on each and every step everyone should chant “Hare Krishna Hare Krishna Krishna Krishna Hare Hare Hare Rama Hare Rama Rama Rama Hare Hare”. The paintings on the ceilings were awesome. The temple also had the shopping center, food court and a theatre which runs only the movies of Lord Krishna. It was almost 12:45 pm when we left from there. Then we went for lunch at Shri Shiva Shakti restaurant and finished by 2:00 pm.

The next place we covered was Visweshwara Industrial and Technological Museum, which had an entry ticket Rs 15 per head. The museum had the exhibits from the fields of Mathematics, Physics, Biotechnology, Astronomy, Networking, etc. There was a model of the first flight invented by Wright Brothers. It was a three floor museum with a 3-D theater on the top floor. The museum was worth seeing.

Mathematics – Pythagoras Theorem, Logic Gates, Conversions from one system to another, etc
Physics- Optics, Jet Engine, Aircraft Engine, 4-stroke Engine, etc
Biotechnology- DNA (Deoxyribonucleic acid), etc
Networking- Satellite Communication, etc

Near by the museum we saw a structure which looks like a cabinet that was totally black. In that we found a division of SUN and we all felt in love by seeing that construction. We were in the museum till 4:30 pm. Lal Bagh was our next destination which had entry ticket of Rs.5 per head. It was 5:30 pm when we reached there. We took few snaps near the entrance. As we thought of getting into the main garden, the rain started coming down heavily and we were forced to go into the bus. Some of my friends got drenched. We returned to our hotel at around 7:00 pm. Then took rest for about an hour and then went for dinner at Indraprastha Vegetarian Restaurant. We bought a cake for our classmate Swetha Singh and went to her room at exactly 0:00 am and celebrated her Birthday there and also took some photographs.

1st June 2005

The first place we were supposed to cover was Electronic City, which was almost an hour journey from our hotel. We reached there at 11:15 am. We tried for an appointment with INFOSYS but could not get it. But we were happy that they took our College Brochure and said that they will inform in 2 to 3 days. Next at 12:15 pm we went to VIDEOCON, where we saw the manufacturing of transformers which are used in television and UPS.

In the afternoon we had an appointment with SASKEN Technologies, a 16 year old company which works every second. All of us got the visitors pass and then they took us to the Craig Barrett Auditorium where Mr. Balaji, the HR personnel, an IIM-A graduate delivered the lecture on SASKEN for about an hour. In his lecture he said these things:-

Initially it was named as SAS with the motto “Unleashing Indian Creativity”, but as the years went by it changed its name to SASKEN. The first half SAS stands for Silicon Automated System and the remaining half KEN means “Wisdom” in Japanese language.
SASKEN provides solution to Fortune 500 companies like Motorola, Texas Instruments, etc. Its competitors are Wipro, Hughes Software, etc. The 80% of revenues are from service division. And its subsidiary is SASKEN Network Engineering Company. The campus was splendid. We were there till 4:00 pm.

After SASKEN, we all went to Shiva temple where we worshipped Lord Ganesha and Lord Shiva which were almost 15 feet and 40 feet tall respectively. Then we visited Barah Jyothir Ling Yatra at the same temple, which had an entry fee of Rs 10/-. The last place we covered that day was the Bull temple. We saw a huge figure of Lord Ganesha and a Bull. By the time we reached hotel, it was 6:45 pm. We all slept around 0.00 am, to get up around 5:30 am.

2nd June 2005


We started for Srirangapatna at 7:30 am. On the way we had a halt for breakfast. We reached Srirangapatna at around 12:00 noon. Firstly, we went to Gumbuz where the tombs of Tippu Sultan and his parents could be seen. While going to Tippu’s summer palace we saw his tabulet. We reached Tippu’s summer palace which had an entry ticket of Rs.5 per head. It was a small museum consisting of the drawings of his seven sons, the furniture, the coins of that time, the dresses, the weapons, etc. We were here for half an hour. The third place we covered at Srirangapatna was Sri Ranganatha Swamy Temple. Then at around 1:30 pm we reached Mysore and went for lunch at Hotel Siddhartha. After lunch, we went to Mysore Palace which was fantabulous, which had an entry fee of Rs 20/-.. The construction of palace was completed in the year 1912. The main building is of massive grey granite, three storeyed, and dominated by a five storeyed tower covered by a gilded dome. The tower is about 145 feet high from the ground to the golden flag on its summit. On the ground floor, is the impressive elephant gate. Immediately to the south is the beautiful Kalyana Mantapa or the marriage pavilion. On the first floor, still facing east, is the great Durbar hall. Divan-e-Am, measuring 4.25 m by 12.80 m. On the same floor, towards the south is a daintily decorated private Durbar hall, called Ambavilasa, the Diwan-e-Khas. The second floor has several rooms and large halls on the sides. The Kalyanamantapa or the marriage pavilion, in the ground floor, is a beauty to look at. The star attraction of the Mysore palace is the traditional ceremonial golden throne. The paintings on the walls were eye catching. We all were in the place till 5:15 pm. We had to take few snaps from outside the palace as the camera is not allowed in the palace.

Next we went to St. Philomena’s church where we can speak volumes about the construction. After that we went to Brindavan Garden which had an entry fee of Rs15/-.. As we reached there it started raining that made us more enjoyable. The garden is having many types of fountains like Russian fountain, Globe fountain, North Bank fountain and Crown fountain and also the marble statue of Radhakrishna. The illuminated sight of the garden was splendid. The sight of the river Cauvery was breath-taking. Then we saw the musical fountain there. It runs from 7:00 pm to 7:50 pm. At 8:30 pm we left for Bangalore. On the way to Bangalore we had dinner at around 10:00 pm and reached Bangalore at 1:15 am.

3rd June 2005


As we arrived late from Mysore everybody got up late. Today we had to go to IISc (Indian Institute of Science) by 2:30 pm. Mean while we three of our friends went to Vidhan soudha which was superb. We also saw the High court. We reached IISC by 2:00 pm. We went to SERC (Supercomputer Education and Research Centre) block which consists of four floors. Two persons divided our batch into two and showed the entire SERC block. The ground floor consists of super computers of IBM (International Business Machine) Regatta, SGI (Silicon Graphics Interface) and also PARAM 10000. The configuration of Supercomputer was 1000 TB Hard Disk, 256 GB Main Memory and consists of 32 processors. The temperature needed to maintain these computers should be between 18 and 25 C. The Supercomputers were very huge like the size of an almirah. We had a good time in IISc. The campus is very big and was marvelous.

The first floor lab was meant for browsing, the second floor lab was for PhD students and the third floor lab was for M.Tech students.

On all the floors from second onwards we find the systems of IBM, SGI, SUN, APPLE, HP, etc with different flavors of operating systems like UNIX, LINUX, MACINTOSH, SUN SOLARIS, WINDOWS, etc. We were in the campus till 4:00 pm and then returned to our hotel.

In the evening along with my friends I went to Burma bazaar and did some shopping. Then went to Brigade road around 8:30 pm and purchased a watch for my sister and came back to majestic around 10 pm. We went to Andhra hotel were we had a nice meal.

4th June 2005

I got up at 6:45 am and then packed my luggage as we had to check out the hotel by 8:30 am. After checking out, we went to WIPRO Technologies at Electronic city. We reached their by 10:30 am. We were lead by Mr. Surendranath of Operation team. He showed us all the campus. The campus even had a amphitheater which is used for plays. He took all of us to the conference hall by name Indian Ocean. There he showed us the power point slide show that was about WIPRO. On of the interesting things we found there was, each and every department is named by something related to water. For example, we saw the departments by name Dolphin, Pearl, Indian Ocean, Bay of Bengal, etc. It is PCMM level 5 and ISO 14001 certified. In this campus there are about 43 conferences hall with approximately 7000 employees.

Then at 1:00 pm we arrived at “The Forum” the shopping mall. We got time till 3:30 pm.
My school mate, Harika who helped me out regarding accommodation and boarding came to forum at 1:20 pm along with her friend. We went to Accenture where she works for it. I got a visitor pass and she shown me all the spots in and around the campus. We had a coffee in the cafeteria and came back to “The Forum” at 3pm. I went to Apple show room where I operated Laptop and I-pod. Finally went to station and got settled by 4:15 pm. The train departed at exact time 5:00 pm. At around 8:30 pm we all had the dinner in the train, which was manageable. We played cards in the train till 1:00 am and I slept at 4 am.

We reached Secunderabad the next day at 5:45 am. The overall journey was victorious.

Finally I would like to thank Mr. Satish Chandra Sir, who was very friendly with us every time, Harika - who helped us in all the way and also would like to thank the Principal and Placement department for making the tour successful.

~ Prem & Kranthi

Tuesday, April 10, 2007

Version Control Procedure with Tortoise

1.PURPOSE
The purpose of this document is to describe the version control procedure for documentation.
The main concepts that are addressed in this document are:

Tree structure
Code in a CVS repository can be thought of as a tree. The tree shape is not based on the directory structure of the code, but rather on the versions of the code.
Trunk
As code gets modified and is committed back to the repository, it adds another revision to extend the tree. If no branches are specified when checking out working directories, the tree simply grows in a line along the main trunk of the tree.
Tags
A tag can be used to name a particular revision of the code. This tag can later be used to compare different revisions, to go back to an earlier version, or to specify a place to create a branch.
Branches
Branches allow different development paths to be tried. They can be created from the main trunk, or from other branches.

2.ACTIVITY DESCRIPTIONS

2.1 REPOSITORY CREATION (ONE TIME ACTIVITY)
1. Created an empty folder and name it. (ex:- SVN/Mysierra)
2. Right click on the folder and select the option from TortoiseSVN, create
repository.
3. Select FSFS for my repository option.

2.2 IMPORTING A REPOSITORY (ONE TIME ACTIVITY)

1.Create a new folder and name it. ( For example: LeaveAppln.)
2.Created following folders Trunk, Branches and Tags under LeaveAppln.
3.Copied the whole code (Project code along with the initial structure) in Trunk folder.
4.Right click on the LeaveAppln and import the code in the SVN/Mysierra.

2.3 INITIAL SETUP OF TORTOISE SVN

1.Obtain the latest approved copy of the TortoiseSVN software.
2.Install the software on your PC and re-start. To verify the installation, you should see ‘SVN Checkout…’ and ‘TortoiseSVN’ as new options in any Windows Explorer window.
3.Create a directory on your PC’s hard drive in which you’d like to store your version-controlled documentation. It is recommended (though not required) that you create only a high-level directory and allow the subdirectories to mirror those of the TortoiseSVN repository.
Ex: C:\My Documents\TortoiseSVN Documentation\
4.Browse to the directory that you created and create a local working copy of the version-controlled documentation repository by right-clicking and selecting SVN Checkout.
5.Browse to the SVN directory you’d like to check documentation (see Appendix I) out of in the ‘URL of repository:’ field, clicking on the … button next to the field if necessary. See Appendix I for a list of TortoiseSVN directories.
6.Click ‘Ok’ button and you’ll see a dialog noting the download of documents to your PC.

2.4READING DOCUMENTS

1.Browse to the location on your PC in which you’re storing TortoiseSVN documentation using Windows Explorer.
2.Right-click within Windows Explorer and select ‘SVN Update’; this will ensure you have the latest version of all documentation within a directory. You may also select a single document and check it for updates as well.
3.Double-click on the document you’d like to read to open the document in read-only mode.

Note that you should make no changes to these documents as they will not be saved.

2.5 MODIFYING DOCUMENTS

1.Browse to the location on your PC in which you’re storing TortoiseSVN documentation using Windows Explorer.
2.Right-click within Windows Explorer and select ‘SVN Update’; this will ensure you have the latest version of all documentation within a directory. You may also select a single document and check it for updates as well.
3.Right-click within Windows Explorer and select TortoiseSVN-->Get lock… This will ensure you “lock” the document within the repository so that it’s clearly indicated to all TortoiseSVN users that the document is being updated and prevents other users from doing anything other than reading it.
4.A ‘Lock Files’ dialog box will appear, prompting you to enter a message describing why you are locking the file. Enter a short but descriptive message and click ‘OK’.
5.Looking into the directory on your PC that contains TortoiseSVN files, you will now see a lock on the file you have gotten a lock for. Double-click on the file to open and make modifications as you would any other document.
6.Once your modifications to the file are complete, right-click on the file and select ‘SVN Commit…’ to commit your modified file to the version-controlled TortoiseSVN repository.
7.Once again, a dialog box will appear, prompting you to enter a message describing why you are committing the file. Enter a short but descriptive message and click ‘OK’.
8.Finally, note whether or not a copy of the updated file is automatically synched with the appropriate OPLC directory (see Appendix I). If not, make a copy to ensure that non-ODS Systems Analysis staff have access to the latest versions of the documentation.

2.6 COMMON WORK FLOW

For best results, you should use the following steps as a guideline when working with SVN. On a given day when you want to work on your project,

1.Check out a working copy from the repository. (Or, if you already have a working copy, run an "update" on your working copy.)
2.Make your changes, additions, etc. (write code!) Make sure that notify SVN of any new files or name/location changes of files.
3.Do an "Update" in your working copy. If there are others working on the code at the same time, and they commit changes to the repository, this will download those changes to your local copy. If there are conflicts (i.e. someone has changed something that conflicts with your local changes) you will be alerted and asked to fix those conflicts before you commit.
4.Commit your changes to the repository. Make sure you write an informative comment about your changes.
5.Delete your working copy. (optional)

Tuesday, September 12, 2006

Men Of Honor


This military drama was based on the true story of Carl Maxie Brashear (January 19, 1931 - July 25, 2006) who was the first African-American to serve as a diver in the United States Navy (early 1950's). Brashear was born to a poor farming family, and joined the Navy in hopes of bettering himself.

When he was leaving his home town, his father says “never come back my son” and gave him a radio as a token of love.

Initially Carl joined as a cook in Navy and after two years he got an opportunity to join diving school. He first encountered Master Chief Billy a gruff and tyrannical diving instructor who holds absolute sway over his charges. At that time the people had the racial discrimination between whites and blacks.

Brashear proved himself as a diver by rescuing a fellow student. Unfortunately, due to the prevailing racism of the commanding officer, the student who fled in the face of danger is awarded a medal for his heroic actions.

One day Billy broke Carl’s radio and at that moment also Carl was very patient.

Billy hates Brashear only because of his color, but Brashear's talent and determination slowly changed his attitude. He assembled the broken radio and gave back to Carl.

Carl faced many more challenges both mentally and physically. He sacrificed his leg in saving his colleagues lives. The U.S Navy asked Brashear to quit, at that time Billy motivated Brashear and said him to join Navy again. He took 4 weeks of training from Billy.

Finally Brashear proved himself to be fit in the court by wearing the clothes of a diver which weighs over 240 pounds and walked 12 steps.

There after he continued to work in the Navy for 9 more years.

Tagline: History is made by those who break the rules.

The lessons I learnt from the movie...

1. One should be very patient and deterministic to achieve the goal.

2. One must convert the difficulties in to opportunities with attitude and core values through perseverance.