Monday, April 16, 2007

Back to CODE!!

    Since i have moved to US my job profile and lifestyle has taken a giant leap. I come from an engineering background where the ultimate fantasy in life is to work on some exciting piece of code. Our sense of adventure is limited to trying out a new design pattern or some new framework. We just love sitting in that dingy corner with our giant LCD screen and a powerful PC and churn out line after line of code which we are not even sure if anyone would use it.



    Then i moved to the realm of professional services. Now suddenly i was out of that dark corner and talking directly to customers (i.e. people who actually use the piece of code). It was a earth shattering experience because now i was actually selling what i wrote. This tiny bit of exposure suddenly opened up a lot of doors and answered some questions that i had always wondered about but never found an answer too.



    The biggest pleasure an engineer/developer can ever get is when someone actually uses a feature he/she developed. This takes us to the next question, how does one develop something useful? The answer is customer feedback and this is possible only through customer interaction, direct customer interaction. Strangely a lot of companies do not believe in this concept. Generally the engineering team is fed inputs by a product manager who is supposed to understand customer needs and then translate them in a language engineers understand. Although this sounds promising but there are a lot of dependencies attached to it, like the ability of the PM to correctly capture requirements and then explain the same to the related engineer. Thats expecting a little too much from one person and even if it does work i don't think its a long term solution. Ideally i would like to

involve the respective developer in the requirement gathering process, this way s/he know exactly whats expected out of him/her.



    Well i had such a chance a few days back. As part of services i had to go to a client site, gather requirements , design a solution for them and implement it to. I think this is one opportunity you would kill for. So currently i am quite excited with the turn of events and looking forward to going BACK TO CODE...............





Powered by ScribeFire.

Wednesday, March 28, 2007

Windows service stuck in "starting" mode

   I have come across this scenario quite a few times. When you try to start a service some how windows screws up and comes back with an error saying that the service could not be started and the reason for the failure (as expected) is useless. The worst part is that after failure the service still stays in the 'starting' mode for quite some time and there is nothing that you can do to stop it, i mean there is no option to force stop the service.





   I am still trying to figure out some way to get the service to recover faster but can't seem to find any help, google is not helping me either. So the best solution for the moment is to wait till the service recovers on its own and then restart it or you reboot the OS itself (isn't that the universal fix for any problem on windows. ;))





Powered by ScribeFire.

Saturday, February 17, 2007

Linux on Business Desktop

I have always wanted to setup linux on my Business Desktop but was always scared to do it since there were so many dependencies on Windows systems primarily Outlook Exchange, Microsoft Office, connecting to WLANs and last but not the least .. TIME!

This article talks about similar issues and how this guy got around them. In short a good article to inspire you to take the plunge.

BTW incase you are wondering why one would want to move to Linux don't even bother reading this article.

WL 9 - configure node manager

Good link on how to configure the Weblogic 9 Node Manager.

Sunday, February 04, 2007

Monday, January 15, 2007

My first football game: Patriots Vs Chargers

so i did make it to Boston without much fuss (offcourse ignoring the fact that i missed my connecting flight to Boston from NYC and had to get to LeGuardia on my own and catch the next one) but overall it was fun. Emirates is a good airline with pretty good service.



Anyways i'm not going to go ga-ga about my trip in this blog, infact this blog is gonna be about the game of American football i saw yesterday. Before we start i have a little confession to make, prior to yesterday i had never seen a football game and actually never had cared about one. Now since i am in the USA where football happens to be the most popular sport i thought i might as well get a quick tutorial on it. So we got together at a friends place and he gave me some education about the game. Now time for another confession, once you get the hang of the game it can be very interesting.



So my first game was Patriots Vs Chargers. I being in Boston was supporting New England by default and boy what a game it was. The best part of the game was the 4th quater. The patriots were down 13-21 and from that they equalled the game with the help of a touchdown and 2 bonus points (now thats quite gutsy offcourse they didn't have much choice). The game now was well poised and New England made the first move by scoring a 3, 24-21 in favour of the patriots. Now San Diego on the counter-attack, they make it to 40 yards in quick time. With just 7 secs on the clock its now or never, steps in the Kicker and takes a good looking shot at the ball, it flys high, its going in, oh boy its close and it swings in the air..... and misses by a wisker...its.....out. Oh ......god.........what .........an.......unbelievable......victory for.... the...... patriots!!!!!



I would say an amazing game to start my rendezvous with football. what say??

Friday, December 22, 2006

Reload modules in Python environment

Problem:
You create a module and run it using the python interpreter. Now you modify this module and try to run it again, surprise surprise, the new changes are not reflected.

What really happens:
The python interpreter loads modules as and when they are used in a script. Once these modules are loaded they are cached in memory for reuse later. Now if you modify a pre-loaded module and try to run it, the interpreter does not bother loading it again as it already has a cached copy.

Solution:
One technique that i have used effectively for (indirectly) reloading the modules is to delete the module object from the cache. This forces the interpreter to reload the module when it executes the script again and you can test your new changes easily.

How its done:
The interpreter caches the module objects in a PyDictionary (a map) called the sys.modules. This map stores the module objects in the following format:
key : the fully qualified class/module name
value : the actual module object

The basic trick here is to delete the required object from this map and your jobs done.

Code:

if "<the fully qualified class/module name>" in sys.modules.keys():
    del(sys.modules["
<the fully qualified class/module name>"]

line 1 : test if the module exists in the cache
line 2 : actually remove the module from the map based on its key

eg.
Say, you want remove the module "com.test.testfile" from the cache.

if "com.test.testfile" in sys.modules.keys():
    del(sys.modules["com.test.testfile"]

Put these lines of code after the import statements or before you make a reference to your changed module, this ensures that the module is reloaded before execution.

There may be better ways of reloading modules but i found this most effective when working with a system which contains a lot of scripts.

Tuesday, December 05, 2006

bug tracking tool

right so the last 2 days i have been working on setting up a bug tracking tool for my boss. Some how i knew that one of these days the idea of acting smart was going to backfire. ;) ;) So here was my boss telling me how he was confident that i would help him out with setting up a bug tracking tool for his new project.

nways i got down to the task and did a bit of R&D on the different issue/bug tracking tools and here's what i found:

jira - if you have the cash, the best tool in the market

bugzilla - the king of open source and free tools, its heavily loaded but complex to setup, plus its written in perl

roundup - python based and quite good

But the ones i picked :

mantis - PHP based but simple to work with, its also called the unofficial 'light-weight' bugzilla

JTrac - Java based, not very impressive UI but ideal if your target audience is small. Best part is that its demo version is quite good. It has embedded jetty web-server and HSQLDB at the backend. You can be up and running in minutes, plus maintaining it is quite simple.

i'm sure you guessed what i used to impress my boss. Simple but working is still the flavour of the day. :)

Thursday, November 16, 2006

Wednesday, November 15, 2006

trekking spree over the weekend

My last weekend was quite an adventurous one.



On sat i went to bhimashankar. This was one place which was on my wish list for quite sometime coz i was under the impression that it was a nice place to go to. I mean so many people had spoken about it that i just wanted to check it out for my self. So on sat i did get there along with 2 of my office mates. It turns out that a lot of things said about bhimashankar is plain hype. The place is average considering its attractions viz. the shiva temple, the adjoining forest with its rich wildlife (although all i could see was hordes of butterflies and monkeys, thats it). Overall a nice place for a one day trip/picnic esp. during rainy seasons as the place would be covered with a thick blanket of green.



On sunday, i went trekking to kothaligad. This place is a long way from pune, infact its close to karjat and takes min 2/3 hrs to reach depending on the vehicle used. Since we took a (slow) bus, it took us, adding up all breaks and stops , approx 4 hrs to get there. But thats where the boring part ends. Getting on top of this fort comprises of one of the most amazing and strenous climbs. It takes on a avg 1-2 hrs to get on top of the fort. Excellent if you are trying to get that tummy in. At the end of the 2 hr climb my limbs were crying hoarse. There is not much to see in the for as such since it was just a storage house for food and water but the whole process of getting there is quite amazing. On the whole it was awesome fun and a welcome change from my routing lifestyle.



Looking forward to more trekking weekends from hence forth.

Thursday, September 07, 2006

How to interview?

    A good article on how to interview new candidates. Its much better that the numerous sites which give you a whole list of questions to ask right from whats 1+1 to what is cross-correlation. The basic idea is that you test a persons ability to solve problems,identify his approach, style of work, his eagerness to be discover new things, is he innovative, is he passionate about what he does, etc and not question him on hard facts which can be searched on the web in seconds.

    This article talks on similar lines. We want to recruit good enterprising personalities and not skill sets which will become obsolete in due time.  Its easy to find skill sets but a challenge to find talented people and a bigger challenge is to retain them.

    More on the retaining stuff in a future blog.

Tuesday, August 29, 2006

firsts

Firsts...

 Computer Game: Spacewar
 Registered Domain : symbolics.com

 ..... more later



Thursday, August 17, 2006

Metcalfe's Law




DEFINITION - Metcalfe's Law is expressed in two general ways:

1) The number of possible cross-connections in a network grow as the square of the number of computers in the network increases.

2) The community value of a network grows as the square of the number of its users increase.

The original statement from Robert M. Metcalfe, inventor of Ethernet, was apparently (according to one source):

"The power of the network increases exponentially by the number of computers connected to it. Therefore, every computer added to the network both uses it as a resource while adding resources in a spiral of increasing value and choice."

Metcalfe's Law is often cited as an explanation for the rapid growth of the Internet (or perhaps more especially for the World Wide Web on the Internet). Together, with Moore's Law about the rate at which computer power is accelerating, Metcalfe's Law can be used to explain the rising wave of information technology that we are riding into the 21st century.

India IT performance for the yr 05-06

Indian software and backoffice industry generated $23.6 bln in fiscal 2005-2006 by ZDNet's ZDNet Research -- India's software and backoffice services industry recorded 33% growth in export revenue to $23.6 bln in the year to March 2006. This included $6.3 bln from services like call centres, payroll processing, claims management and high-end financial analytics. Including the domestic market, the sector expanded 31% on year to $29.6 bln. Overall software and services [...]

Monday, August 14, 2006

Life vs. Blogs....v2

Well if you remember my earlier blog on life vs blogs, i had said that blogs don't let to edit things once blogged. Although this was true for first generation blogs, now days all blogger sites allow editing. I guess they realised that we being humans are so error prone that we always need that second chance. So much for comparison between life and blogs. :-(

Monday, July 24, 2006

Future of Networking: Human Area Network (HAN)

   The biggest challenges with wireless n/wing is that in multi-user scenarios its performance is quite abysmal, in fact the performance is inversely proportional to the no. of users i.e. as the no. of users increases the performance goes down. So how does one counter this limitation? Do we move back to wired commnunication? Didn't we just patronize wireless because wired n/ws are cumbursome to setup and manage plus the sight of zillions of cables is quite overwhelming. Also wired n/wing doesn't sound too well when we talk of 'Ubiquitous computing'.

   Okay here's a hint, imagine if we could simulate wired communication with the only difference that the medium (i.e. the cables) is dynamic in its type of material (i.e. wood, water, pads, etc.) or is the user of the n/w itself (i.e. our body). Research is going on towards developing devices which could be connected simply by touching them or keeping them on a table or on a mat. This is the principle behind HAN or Human Area Network. Infact they are all set to launch prototypes. For a through understanding go thought the following site:  redtacton

Sunday, July 23, 2006

few wi-fi related keywords

Wi-Fi - Wireless Fidelity (fidelity - accuracy of signal reproduction)

IEEE - Institute of Electrical and Electronics Engineers

IEEE 802.11 - IEEE standard for Wi-Fi or Wireless LAN (802 - founded in feb, 1980; 11 - 11th working group)

CSMA - Carrier Sense Multiple Access (senses the if the carrier is free for transmission and only then transmits data, reduces effective data rates to ~50% of max. capacity of standard)

Security:

1. WEP - Wired Equivalent Privacy, first attempt at secure wireless n/wing, good against casual snooping

2. WPA - Wi-Fi Protected Access, 2nd generation system to overcome the flaws of WEP

My rendezvous with Wireless technologies

    I have always been intrigued with wireless networking and luckily my interests have always been well fed by unintentional events. e.g. i recently bought a compaq laptop (my first ever) which had wifi and bluetooth by default. Being a traditional desktop user these technologies were quite foreign to me and like a true rigid being i avoided adopting these technologies. But for how long??? Fortunately peer pressure forced me to take the plunge and this is what i was able to conjure:

   Not very surprisingly the first technology i embraced was 'Bluetooth'. Actually I am not sure why this was my first choice, may be coz blue is my favourate colour or maybe coz its the latest buzzword in mobile phones. I think later was more motivating. Well i got a friend's mobile phone which was bluetooth enabled and setup a quick n/w and transferred data between my laptop and his mobile phone. Its that simple! With this done i took a step forward and checked out all info on the net. Bluetooth is a promising technology but i was quite disappointed by its distance limitation, althought the idea of a cableless desktop is quite cool i.e. using bluetooth or infrared devices to replace the data and control buses in computers. Nways i moved on the Wi-fi.

   Now Wi-Fi was the real thriller. It did not have any distance limitations (offcourse using repeaters) and was more user-friendly or shall i say more networking friendly. What i mean here is, u could actually buy wi-fi components and setup a wireless network at home.
   My first experience with Wi-Fi was when i used my laptop for surfing in a wi-fi zone. The idea of comfortably sitting on a couch, drinking coffee and surfing was a real treat.
   My second experience was more meaningful and satisfying. Basically i wanted to backup a lot of data from my desktop to my laptop. After evaluating a lot of options i was particularly attracted towards the idea of setting up my own wireless n/w at home. So i went out shopping and bought a wireless usb adapter by linksys for my desktop. After struggling with it for 2 days i was finally able to setup an adhoc n/w and voila!!! Although this might have been the most expensive option but it was truly the most awesome one, worth every penny i spent.

LESSON LEARNT: 90% of the times we refuse to embrace a new technology because of our  Laziness and not because of its demerits, so get up and get going!!

Wednesday, July 12, 2006

Italians won!!

I know this is a bit late but THE ITALIANS WON THE WORLD CUP!!!!!!!!!!  HURRAHHHHHH.......... and the Germans came 3rd HHUUUUURRRAAAAAAHHHHHHH !!!!

Friday, July 07, 2006

FIFA WC 06

ok i know its been a long time since my last blog but u can't blame me for it. Blame the WC. Its been one of the best tournaments so far and if you saw the Germany Vs Italy game, phew..... can't imagine i have to wait another 4 yrs for this event to take place again. Nways there is still the final to be played and i got my eyes and heart set on the Azzuries. Go Italy go......