Friday, May 30, 2008

1.     class Node:

2.         def __init__(self,value):

3.             self.data = value

4.             self.next = 0

5.            

6.     class List:

7.         def __init__(self):

8.             self.firstNode = Node(0)

9.            

10.      def __ShowNodeData(self,aNode):

11.          if aNode.next != 0:

12.             print aNode.data

13.             self.__ShowNodeData(aNode.next)

14.         

15.      def Dump(self):

16.          self.__ShowNodeData(self.firstNode)

17.         

18.      def InsertAfter(self,aNode,aNewNode):

19.          aNewNode.next = aNode.next

20.          aNode.next = aNewNode

21.     

22.      def InsertBeginning(self,aNewNode):

23.          aNewNode.next = self.firstNode

24.          self.firstNode = aNewNode   

25.     

26.  nodeA = Node("A")

27.  nodeB = Node("B")

28.  nodeC = Node("C")

29.  nodeD = Node("D")

30.   

31.  aList = List()

32.   

33.  aList.InsertBeginning(nodeB)

34.  aList.InsertAfter(nodeB,nodeD)

35.  aList.InsertAfter(nodeD,nodeC)

36.  aList.InsertAfter(nodeC,nodeA)

37.   

38.  aList.Dump()

 

Monday, May 26, 2008

Just be Confident.

 

Wednesday, May 21, 2008

Selfcontrol

 

Visualize

 

proactive

 

Act

 

 



 

DELETE

'Data for Script

'Cat display in advertisers tab for pub

CatDisplayAdvertiserTabPub_strPubId=K138

CatDisplayAdvertiserTabPub_strAdvIdJoin=21000000000160196

CatDisplayAdvertiserTabPub_strAdvIdApproved=21000000000138121

CatDisplayAdvertiserTabPub_strAdvIdPending=21000000000011300

CatDisplayAdvertiserTabPub_strIdDeactivated=21000000000008541

 

'Modify layout of informational links on tabular advertiser display

ModifyLayoutInfoLinks_strJoinAdv=All State Motor Club

ModifyLayoutInfoLinks_strApprovedAdv=ActiveMusician.com

ModifyLayoutInfoLinks_strPendingAdv=Test Client

ModifyLayoutInfoLinks_strDeclinedAdv=A1211210267

ModifyLayoutInfoLinks_strDeactivatedAdv=Northern Tool & Equipment

ModifyLayoutInfoLinks_strPubId=K138

 



 

Tuesday, May 20, 2008

You have to be your own look out.

Sunday, May 18, 2008

What is the thinking behind the action?

 

For in every problem lies an opportunity.

 



 

Friday, May 16, 2008

FW: QTP Questionnaire

Hi All,

 

I was just going through some of the quizzes of QTP and I just came across some really good questions. I just collected them down in a document. Let’s do some mental exercise (I know it is tuff today as it is FridayJ). Just go through these questions.

 

Don’t take either the help of answers I am attaching or Google Help! Give it your best shot first.

 

 

Regards,

Wednesday, May 14, 2008

Always ask your self what is the objective?

 

When being taught something never argue with the teacher. Go home study what was told and do research on the topics taugh.

 

 

Money is an amorphous abstraction. Its about the confidence that people have in it.

 

www.conceptlearner.com

www.wikilearning.com

 

Everything is a process. Manage the process.

 

 

After a meeting has been done, follow up on the points that have been discussed. Send people emails.

 

Tuesday, May 13, 2008

Just Chill

Right techonlgy for the right situation.

 

You better be training,

or someone else is training to kick your ass.

 

 

Today python app.

 

Be Angry.

Be an agent of change.

 

FW: Clipboard Hack Problem - Shocking news about CTRL+C

Hi All,  

 

 

Title: Clipboard Hack Problem - Shocking news about CTRL+C

Ctrl+C may be the most important work we do everyday. But it's not a very safe thing to do. Read on to know why. What happens when you press Ctrl+C while you are online. We do copy various data by Ctrl + C for pasting elsewhere. This copied data is stored in clipboard and is accessible from the net by a combination of Javascripts and ASP. This is called clipboard hack problem.

Just try this:

1.        Copy any text by Ctrl + C

2.        Click the Link: http://www.sourcecodesworld.com/special/clipboard.asp

3.        You will see the text you copied was accessed by this web page.

Surprised! I know you are because i was also surprised to see it. Do not keep sensitive data (like passwords, credit card numbers, PIN etc.) in the clipboard while surfing the web. It is extremely easy to extract the text stored in the clipboard to steal your sensitive information. Forward this information to as many friends as you can, to save them from online frauds!

 

It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.

 

How Cipboard Hack is done?

The Clipboard hack is done by the following Source Code:

<script language="JavaScript">

var content = clipboardData.getData("Text");

alert(content);

</script>

How to safeguard yourself from Clipboard Hack Problem?

To avoid clipboard hack problem, do the following:

1.        Go to internet options->security.

2.        Press custom level.

3.        In the security settings, select disable under Allow paste operations via script.

Now the contents of your clipboard are safe.

Interestingly, this hack works only on internet explorer, and not on Mozilla Firefox browser. Please forward this article to as many friends as you can to make them aware of this issue with CTRL+C.

 

Interview

The language of interviews

 

When I interview someone, I usually let them use the language of their choice with between C, C++, C# and Java. There are several reasons for that:

  • I want them to be comfortable.  It's already hard enough to be in an interview, much less being forced to use a syntax or an API they are not familiar with.  Of course, I don't pay too much attention to syntactic details or making sure they use the right method name as long as the logic of what they write is sound.
     
  • It's not that I have something against Ruby or other fourth generation languages, but I found that these languages work at a level of abstraction that is a little too high to give me a meaningful insight on the candidate for a forty-five minute interview.  There are plenty of very interesting problems that are hard to solve even in Ruby or Python (and actually, it's quite likely this is the kind of problem that the candidate will be struggling with if she gets hired), but formulating the question and writing the solution would take several hours.

The real challenge is therefore to find a problem that is very easy to express and which solution in one of the languages mentioned above will give me enough information on this candidate to formulate a verdict.

Interestingly, the choice that the candidate makes already reveals a few things on their abilities.  I found that typically, C/C++ people tend to be very comfortable with low-level algorithmic questions ("pointers and recursion", to quote Joel) but fare very poorly as soon as we "move up the stack" (object-oriented design, design patterns, enterprise frameworks, etc...).  Conversely, Java/C# people are more comfortable with these concepts but get easily stumped on "tight memory" types of questions.

Of course, great candidates excel at both, which brings me to my next point.

Good developers are born good.  Their brain is wired a certain way and they can chew on any CS concept thrown in their direction and spit it out with a bow tie.  Most of these developers then go to school and move from the "gem in the rough" state to that of a "pure diamond".  School accelerates and expands their knowledge.  Of course, there is hardly anything they learned in school that they couldn't have learned by themselves, but the formal process of learning, reading book and listening to teachers saves them years and years of work.  It also expands their minds to concepts they would probably never have encountered in their professional career.

With that in mind, I find Joel's obsession on pointers and recursion quite baffling.

There are two important facts to keep in mind about pointers and recursion:

  1. They are important concepts and any serious developer should probably be comfortable with them.
  2. You will hardly ever use any of these concepts for today's typical programming jobs.

How's that for a paradox?  How do you interview for this?

Well, it's actually very easy to do a quick check on pointers and recursion, even in Java, but it's equally important to spend most of your interviewing time on other areas that are more relevant to the job the person will be asked to do. 

One of my friends pointed out that what we are seeing today is a more distinct separation between "system programmers" (kernel, device drivers, etc...  which require C/C++ and pointer juggling) and "application programmers" (for which pretty much any programming language will do, including Visual Basic).  What's really puzzling is that Joel's company produces a bug-tracking software, and it's hard to imagine why you would need an army of superstar programmers .  A few selected senior tech leads and designers?  Sure.  But an entire team of them...  doubtful.

As for Joel's reference to Paul Graham's vastly over-hyped essay "Beating the Averages", I am still trying to decide which of the following two quotes is the most ridiculous:

  • His start-up had an edge over its competitors because of the implementation language they chose.
  • Because of this choice, they were able to implement features that their competitors couldn't.

Actually, I'll call that a tie:  both claims are equally preposterous.

Paul Graham has been a dinosaur for a long time and his disturbing elitist stance ("if you don't know Lisp, you're an idiot") oozes from every paragraph of every single programming essay he has ever authored.  So far, Joel had managed to remain reasonably objective and interesting in his posts, but his extremely narrow background (Microsoft technologies in C/C++ and bug-tracking software) is beginning to take a toll on his objectivity and I find that most of his writings are more and more missing the big picture.  I hope he'll turn around soon and open up to modern programming topics, because frankly, I am having as much fun using Ruby on Rails or Eclipse and EJB3 today as I did writing Copper list based demos on my Amiga fifteen years ago or coding floppy disk drivers in 6502 on my beloved Apple ][ twenty years ago (gasp).



 

Monday, May 12, 2008

“Cheap Elbonian outsourcing companies suck because they are cheap outsourcing companies, not because they’re Elbonians” - Scott Adams

 



 

Friday, May 9, 2008

Think

As you think, so shall you become.

Thursday, May 8, 2008

Me, Myself and I

Wednesday, May 7, 2008

QA Snippet - 3 : Cause and Effect Diagram

 

Follow up on things, don’t forget. Don’t keep it pending, otherwise people are like how come you didn’t bring this up earlier. A statute of limitations becomes imposed on the issue.

Note in a conference call or meeting always note down the points that you are going to. This way they are easy to remember and you don’t risk forgetting.

 

Saturday, May 3, 2008

GTD - Getting Things Done.

Don't think, act now. Get the wheels in motion.

Friday, May 2, 2008

Management

Make a decision, or the decision makes you.

 

Learning

If you want to pass cheat, If you want to learn research.



 

Thursday, May 1, 2008

Useful tips to Avoid Procrastination

Procrastination can lead to many problems — tests failed, weight gained, relationships weakened.

But you can change your ways.

Procrastination is the art of keeping up with yesterday. ~Don Marquis

 

Here are some tips and steps to get you going!

Steps

  • Look at the effects of procrastination versus not procrastinating. What rewards lie ahead if you get it done? What are the effects if you continue to put it off? Which situation has better effects? Chances are, you will benefit more in the long term from facing the task head on.
    • Count how much time you spend on activities procrastinating. You may be shocked by the amount of time wasted simply watching TV.
  • Set reasonable goals. Plan your goals carefully, allowing enough time to complete them.
  • Break the task down into smaller parts. How can you approach it step by step? If you can concentrate on achieving one goal at a time, the task may become less of a burden.
  • Get started whether you "feel" like it or not. Going from doing nothing to doing something is often the hardest part of overcoming procrastination. Once you start, it will be easier to continue.
  • Ask for help. You don't always have to do it alone.
  • Don't expect perfection. No one is perfect. It's better to try your best than to do nothing at all.
  • Reward yourself. The reward that lies at the end of a long road to a goal may be great, but while you're on the way, it may not always be enough to motivate you. Remind yourself-with a break, a movie, some kind of treat you like-that you are making successful progress.
  • Don't let yourself be distracted - by taking control and saying "no" to picking up the guitar, playing a DVD or texting your friends, you build confidence in your ability.
  • Other time traps to avoid: saying yes when you don't have the time, studying when you're tired or in a distracting location, not thinking ahead, not curbing your social time, and finally, taking on too many tasks and projects.

Tips

  • You may want to take a course in time management.
  • Several books have been written on procrastination. Here are the titles: "Procrastination: Why You Do It, What to Do About It" by Jane B. Burka, Lenora M., Ph.D. Yuen, "The Now Habit: A Strategic Program for Overcoming Procrastination and Enjoying Guilt-Free Play" by Neil Fiore and for students, "Beat Procrastination and Make the Grade : A Life-Saving Guide for Students" by Linda Sapadin, Jack Maguire. These are highly recommended.
  • Of course, not everyone enjoys reading - a very good audio CD/cassette is, "Make Your Mind Work for You : New Mind Power Techniques to Improve Memory, Beat Procrastination and More" by Joan Minninger.
  • If you hate to read and begin to procrastinate think of it this way. If you have to read a 276 page book divide it into the amount of time you have. If you have about 2 weeks, reading about 21 pages a day is much less overwhelming.
  • Just start working.

 

 

Stocks

When trading stocks for the short term at least wait for a 3% gain.

 

Software Management

An important thing in IT is to have great team work. This means sometimes we must accomadate or make other team members feel at ease.

Manage the process. Don’t let the process manage you.

--

1

Dream.

Follow the dream.

Management

Every process is improved when you start to measure it.

Motivation

Find me people who are poor, smart, hungry and have no emotions.

Personal

Every day there needs to be knowledge update of technolgy. The best time to do this is between 10:00 pm and 12:00 am.