Friday, March 11, 2011

First way of the cross in 2011

Today is the first friday of the 2011 Lenten season and will be having the "way of the cross" this evening.

Way of the cross is to make a spiritual pilgrimage of prayer, pausing at each depiction to meditate on the suffering of Jesus Christ, and the holiness of the resurrection. 
Such contemplation of Christ’s suffering may help people find their own way through difficult times in their lives. 

Hence people feel it as a precious prayer service.

The Fourteen Stations of the Cross are:
  1. Jesus is condemned to death
  2. Jesus is given his cross
  3. Jesus falls the first time
  4. Jesus meets His Mother
  5. Simon of Cyrene carries the cross
  6. Veronica wipes the face of Jesus
  7. Jesus falls the second time
  8. Jesus meets the daughters of Jerusalem
  9. Jesus falls the third time
  10. Jesus is stripped of His garments
  11. Crucifixion: Jesus is nailed to the cross
  12. Jesus dies on the cross
  13. Jesus' body is removed from the cross (Deposition or Lamentation)
  14. Jesus is laid in the tomb and covered in incense.


It is the time to take some resolutions for this lent to follow strictly and devotedly.
 
Ok friends, It is time for me to head to home and get ready for my way of cross, hope you all will have a nice and blessed weekend. :) 
  

My first steps @ Loyola

As I walked towards Loyola’s gates on one very ordinary evening of March, I turned back and realized that this was no such ordinary day, I realized that this is the very first time I walk through these gates wearing my Levi's T-shirt and jean pant which will be used no-more which I dint by that time.. ;).

Came here for an interview after my Entrance exam in which I got very bad rank.. :), and getting tensed whether I could get the seat in it as it is a pretty famous college.

My Brother and me were sitting side-by-side facing the interview board, one of the members of which was a kind-looking man with a beard, probably a Jesuit. It was he who asked me all the questions. I remember that I was given a puzzle to be solved, which I think I solved pretty easily, He dint know by that time I'm only good at maths .. ;). My principal asked few things and said u can leave.

One fine morning got a call from Loyola where I lost all my hopes about my admission and conveyed "Classes start from tomorrow onwards, please don't be late to tomorrow class", and phone hung up :) Got so angry on them for short notice .. :)
So calmly went to Loyola as a student, became Loyolite. :)

The Shocking news when I joined there was I was first Ranker among the students who got into Loyola. ;)

I also did not know how my life would be changed by my experiences at Loyola, and how that great college, would make me the me, that I am today.

Thanks to all my friends and Loyola.

Thursday, March 10, 2011

Happy Lent!

Hi Friends,

It is that time of year- Lent! Time to enter into the desert with Christ and His Church.
For those of you who are volunteering, it is a great time to unite your work even more with Jesus.

For those of you who are former volunteers, Lent is a great opportunity to enter into the spirit of simple living and solidarity that you experienced perhaps while volunteering.

God bless your Lent! Share your Lenten sacrifices and joys with me! Leave me a comment or follow me on Facebook or Twitter!

https://facebook.com/varra4u

Wednesday, March 9, 2011

CoreJava walk-in @ B'lore

Hi Friends,

Tejal here representing NET Employment, we are one of Top 10 Leading recruitment firm in India specialized in providing Software Professionals to the MNCs, to Domestic as well as International Clients.

I am forwarding the details of few urgent requirements we are currently catering to. Kindly go through it and let me know whether you would be interested in the same.

Company: Leading Investment Bank in Bangalore

Skill: We need candidates strictly with the below mentioned skills:

1) CoreJAVA ( JDBC, Multi-Threading, collections is a must ), J2EE (Jsp, servlets), Data Structures.
Database experience is essential

2) C++ ( datastructures, algorithms, multi-threading)
Database experience is essential

Experience: 2 yrs to 5 yrs
Job Location: Bangalore

Interview Date and Place: 12th Mar 2011, Chennai

Salary is not a concern.

In case interested, Do also forward following details along with your updated profile

Candidate Name:
Current Organisation:
Current Location:
Skills:
Total Experience:
Relevant exp:
Qualification:
DOB:
Current CTC:
Expected CTC:
Notice Period:

Update Ur profile Now, Do not hold Urself, and Grab the Opportunity !!!
Also looking forward to references from your end.
"One reference from your end would make somebody"s career".!!


Thanks & Regards,

Tejal,
Net Employment Services Pvt Ltd.
tejal@nemps.com

Tuesday, March 8, 2011

Installng YUM in Fedora .. !

Walk-in @ Cisco

Hi
We are conducting Walk-in for Protocol Test Engineers in CHENNAI & BANGALORE with the below mentioned skills to be based in Banglore
Interested candidates can meet us& who are not interested, please refer your friends.
Mode Permanent Employee of CISCO Systems
Qualification A full-time degree in B.E./ B.Tech/ MCA/ M.E./ M.Tech
Experience 2 -5 years
Work Location Bangalore

Date 12 Mar 2011
Time 10.00 – 1.00 PM

Venue : CHENNAI

Cisco Systems ( India ) Private Ltd
230 A ; ASV Sun Tech Park
Mettukuppam ; Okkiyam Thuraipakkam
Chennai – 600 096.
Land Mark : Next to AKDR Golf Village

Contact Person: Mahesh Boopathy.S

Venue : BANGALORE

Cisco Systems ( India ) Private Ltd
SEZ, Cessna Business Park
Sarjapur - Marathahalli Outer Ring Road
Bangalore - 560 103
India

Contact Person: Milee / Rashmi

Note:


• Written Test alone will be conducted on this day and the further Level of interviews will happen on the following Week, based on the assessment results.
• Please carry a print out of this letter(For entry as ID )
• Test Duration : 1 Hour
• Pls carry a copy of your resume
• Candidates who have been interviewed in the last 6 months need not apply
Job Description


o This is an exciting opportunity to work with Cutting Edge Mobile Packet Core Technologies.

o Strong working/hands-on experience in any one or many of the following Protocols/domain areas preferred:

o Wireless Packet Core Technologies like CDMA-PDSN/HA, UMTS- SGSN/GGSN, WIMAX- ASNGw, LTE – PGw, SGw, MME

o GTP, CAMEL, SS7, A10/A11, DIAMETER, AAA, IPsec, H.323, SRTP, NAT, IPv4/IPv6, TCP Optimization, VRRP/HSRP, S1-AP/NAS, SCTP, RANAP, MAP, MobileIP, SimpleIP, ProxyMIP

o Deep Packet Inspection – Charging/Bandwidth Control/Redirection

o Strong working knowledge of 3GPP/3GPP2 Spec/RFCs/IETF interpretation and analysis.

o Working Knowledge of any Scripting language like TCL/PERL/Python would be an added advantage.

o Excellent exposure to all QA Testing Methodologies like functional, scaling, longevity, performance, soak, negative, regression and conformance testing

o Ability to multitask and solve complex problems

o Excellent Team player skills
Regards
Mahesh Boopathy.S

SSH Log in With out password ... !

Your aim

You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script.

How to do it

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:
a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa): 
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):
a@A:~> ssh b@B mkdir -p .ssh
b@B's password: 
Finally append a's new public key to b@B:~/.ssh/authorized_keys and enter b's password one last time:
a@A:~> cat ~/.ssh/id_rsa.pub | ssh b@B 'cat >> ~/.ssh/authorized_keys'
b@B's password: 
From now on you can log into B as b from A as a without password:
a@A:~> ssh b@B hostname
B
A note from one of our readers: Depending on your version of SSH you might also have to do the following changes:
  • Put the public key in .ssh/authorized_keys2
  • Change the permissions of .ssh to 700
  • Change the permissions of .ssh/authorized_keys2 to 640

Friday, February 25, 2011

Describe Concepts in Comments!

It’s common knowledge that commenting your code is a must.
But that’s where the wrong interpretations come. “// incrementing i” above “i++” is one extreme example of useless comments, but what can be often observed is “shallow commenting” – i.e. comments describing what exactly is done, but not why. In other words programmers may forget to document the concepts and ideas behind the code.
For example, imagine you see ClientDocumentIndexer and DocumentIndexer. What’s the difference? The code may have comments explaning what happens when sending the documents to the search engine, but there is nothing about the difference between the two. Same goes for things like DownloadRecord and DownloadLog. And for millions of examples throughout thousands of codebases. The comments in these classes fail to communicate their business purpose. Then there is the FooListenerBuilderFactory – yes, I know all these patterns, but it still doesn’t make sense without an explanation why each of them is required.
Sometimes there is sufficient explanation about these concepts in some intranet document. There’s just no link between the code and the description. Adding a link will most likely be sufficient for the reader to understand what’s the purpose of a given class or method.
What if there is no spec/document? Then you’d have to write that “document” in the code. Don’t be verbose – just outline the reason for the class existence, and how it fits into the program flow. Each piece of code should make sense to someone that is not familiar with all the business requirements.
Sounding obvious? Well, if it was, you wouldn’t be seeing code that is hard to understand out of context.
To summarize:
  • document the concepts and ideas of a class, not (just) how it functions internally
  • if relevant, explain the reason for a class existence and how it differs from similar classes
  • document the context of a class – how it fits into the program flow
  • link requirements documents, if such exist

Wednesday, February 9, 2011

How to Handle Project Configuration

Every web project needs some environment-specific configurations. Database credentials, root url, smtp settings, to name a few. It’s a recurring question on stackoverflow, and I’ve seen a lot of variations on the topic, and here I’ll describe the one that I think is best.
  • put all such properties in a .properties file (for example application.properties)
  • have that application.properties sitting outside the web application. It is not bundled with the build
  • provide a command-line option that indicates where that file is located. For example -Dconfig.location=/home/you/config
  • on application startup (in a ServletContextListener usually) load the file and put it in a map. Can be java.util.Properties or a HashMap
  • for spring users – use <context:property-placeholder-configurer location="file://${config.location}/application.properties" . Other frameworks will likely have some mechanism for loading such global properties
  • hold a skeleton properties file in the SCM repository. It should contain all properties, but their values are irrelevant – they will change on each environment
  • the ops team is likely to benefit from versioning different environment configurations (production, qa, stage), so a separate /config folder/subproject can be created and all environment-specific properties can be stored there. When adding a property developers should go and update all files accordingly
  • properties that are not dependent on the environment, but are still global for the project, can be stored within the project (src/main/resources for maven), and committed to SCM. They can be merged with the external properties on startup (merged in memory, that is)
  • most of the externalizable properties can have reasonable defaults – the smtp server of the company, the database driver, etc. They can be placed in a application-defeault.properties within the project, and the external file can override them. This is just an option – if you are going to have a file committed in the repository with those reasonable defaults, and each environment to use that file as a basis, it’s virtually the same
Developers can easily run their projects that way. Ops can easily deploy builds on different environments. The build remains environment-agnostic.

Thursday, January 20, 2011

Why thread priority rarely matters

Overview

Its is tempting to use the Thread.setPriority() option in Java. However for many applications this is more a comment for the developer than something which will make a measurable difference. esp. with multi-core systems.

Why it usually doesn't matter

If you have plenty of free CPU, every thread which can run will run. The OS has no reason not to run a low priority thread or process when it has free resources. If your system is close to 100% of CPU on every core, the OS has to make a choice as to how much time each thread or process gets on the CPU and it is likely to give favour to higher priority threads over lower priority threads, (many OSes ignore the hint) and other factors are likely to matter as well.
This priority only extends to raw CPU. Threads compete equally for CPU cache, heap space, CPU to memory bandwidth, file cache, disk IO, network IO and everything else. If any of these resource are in competition, they are all equal.
To set a high priority on Windows you need to be an administrator and on Linux you need to be root to set the priority of a thread. Different Implementations and OSes can ignore this hint.

Summary

If your application is heavily CPU bound, using every core, not using any other system resources significantly like IO or memory and your OS doesn't ignore the hint, the thread priority might make a difference. If in doubt, I wouldn't bother setting it because someone might think it does something. ;)