Thursday, April 30, 2009

Tips & insights for programmers

Here is the list of tips & insights compiled from StackOverFlow.

1. Never be afraid to say I don't know.Manage expectations, learn to say "no".But always give it a try before you say that.
2. Never stop learning.Accept your mistakes and take that just as a new learning opportunity
3. Ask for help sooner rather than later,know that you can't do everything by yourself.Don't take all the responsibility for a problem. Sometimes you can be furiously trying to solve a problem alone and carrying the problem on your back. Get other people involved, escalate, get other folks involved.
4. Learn to take backup
5. Assumption is the mother of all screw-ups. So never assume something which you are not sure of.
6. Estimates are always off by at least 50% either way.
7. First make it work, then make it better.
8. Always negotiate deadlines/deliverables.
9. Don't hesitate to do overtime IF the situation requires it
10.Underpromise and over deliver
11.Find the balance between being realistic and being positive.
12.Be confident in your skills
13.Listern patiently to others opinion. Especially when you talk to a client.
14.Share your skills - Help others and the community with the knowledge you've got.
15.Make sure you get proper recognition and appraisal for your good work.
16.Manage your time effectively
17.Don't give people what they ask for, give them what they need.
18.No matter where you are on the pecking order of a team or project, you CAN make a difference.
19.It's more important to manage people's perception of the problem than it is to fix it.
20.Never trust the data. Validate your inputs.
21."It works on my machine" doesn't cut it. It HAS to work for them, too.
22.Show your code to other people - and listen to their comments.& Look at other peoples code and talk to them about it.
23.If you can't figure out a problem then take a break and come back to it in 10 or 20 minutes - makes finding a solution so much easier.
24.Realize that specifications are going to change.
25.Never implement new features unless you have a written request ( mail is just fine )
26.Be prepared to reinvent yourself every five years.
27.Before you roll anything out TEST TEST TEST
28.Use Source Control
29.Communicate, communicate, communicate
30.You can never have enough clarification and detail with project requirements


Web Transition Chart



Read about it at ReadWriteWeb

Microsoft’s Vine = Facebook + Twitter

Today I came across a post  by Brier Dudley, about latest social networking site called Vine  by Microsoft. Still its under beta & if you want to be part of it, then sign up.

As per the post, Microsoft planning to provide Vine to Emergency Management Officials, which helps them to broadcast & receive information during a disaster or other major event.

See some of the screen shots of the site below.


Tuesday, April 28, 2009

Validating HTML Text Area for HTML tags using Javascript RegEx

The below code might help you with validation of certain HTML tags entered in a TextArea. (Click image to enlarge).



Tuesday, April 21, 2009

Many-Core Shift & the Next Era of Computing


I have been observing the developments in Processor Technologies, and now I am really excited with the Future of Computing with the shift from single core to many core processor technologies.


As you all know, Moore’s Law tells us that, the number of transistors on an integrated circuits (IC) doubles every two years. Now the so-called “many core shift” is happening. It’s not a thing of the future, it is here already and it will change our developers’ life as we know it today.

What’s the many core shift?

This evolution of doubling the number of transistors on an IC has reached its physical limits (clock speed, power consumption, etc.). Instead of building faster and more complex CPUs, the manufacturers started placing more CPUs, read cores, on a chip.

It all started 2006 with Intel’s dual cores, today you won’t find a single core desktop machine anymore.

High end consumer machines come with quad cores, and servers with 16 cores (packed as 4 quad cores). Starting 2006 with 2 cores, five to six years from now we will have between 32 and 128 cores machines.

What does it mean?

Well, it probably means that today’s software runs a bit faster. Not much, certainly not the 32 times faster a 64 core machine is supposed to be compared to dual core. Have a look at the following task manager of a 16 core machine:

Now look at your own desktop and count the open applications. Outlook, Word, PowerPoint, Internet Explorer, Acrobat Reader, Firefox, Visual Studio etc. All the applications utilize 1 to two cores and Most of today’s applications simply are not capable of utilizing these cores appropriately. Consequence: In order to utilize these cores we have to change the way we write our software!

You may ask, do we actually need that kind of processing power? And if so, how do we use it?

For the first question the answer is yes, it is needed for Games, Video Conversion, File Compression, Graphics etc.

And for second question we need to know that there is a concept called Multithreading.

And “Most developers have avoided multithreading altogether. And those who did do work on multithreading probably did it just for optimizations.” So, now is the time we need to have multithreading in the mainstream of application development.

And with that in mind Microsoft is developing Visual Studio 2010. And I believe it will open up new possibilities.

I am really excited to work on Visual Studio 2010 and want to utilize the multi-core.

Let me know what you think about all this.

Reference:

  1. http://www.intel.com/products/processor/index.htm
  2. http://www.digital-daily.com/cpu/new_core_conroe/index1.htm
  3. http://www.intel.com/products/desktop/processors/index.htm?iid=processors_body+dt_core

Monday, April 13, 2009

Want to know how to pronounce certain words?

I came across this wonderful site called Forvo where you can find the pronunciation of certain words and also you can add a word (your native language) and pronounce it.

Thursday, April 09, 2009

Using Winnovative HTML to PDF Converter in C# to generate PDF File

Steps:
1. Add wnvhtmlconvert.dll to Project Reference under Visual Studio

2. Import it into your code behind file "using Winnovative.WnvHtmlConvert;"

3. Add your PdfConverterKey into Web.Config

<add key="PdfConverterKey" value="your key here"/>

4. Write Below Code (Click to Expand)


And you are done.
Let me know if you have any questions

Sunday, April 05, 2009

India Advises the World at G20

Actually I dont have access to the TV (Idiot Box) so, lately i came across this Video on You Tube.
I thought to post it here and write something about it.

During G20 Summit Indian Prime Minister Dr. Manmohan Singh, advised the G20 Nations with 4 ways to tackle the Economic downturn. 

1. IMF & Asian Development Banks resources needs to be enhanced immediatly.
2. Industrialized Countries need to take toxic assets out of Financial System.
    [Toxic Assets an Example (from Yahoo Answers) : Let's say that Raj had a loan with ICICI Bank. The Loan is for Rs 200,000 for a house and Raj pays 6% interest. The house is collateral, meaning ICICI gets the house if Raj defaults. But this house was valued at Rs 275,000, so what is the worry?

So now ICICI Bank has "mortgage paper", which is an asset. They can sell the mortgage to anyone they wish. Raj will then be required to pay the purchaser, who will get the benefit of the 6% interest. It's an investment which may (or may not) make more money in the future. A good idea if ICICI needs money immediately.

But old Raj doesn't have the money to pay this mortgage. At the same time, the house value has greatly reduced to Rs 150,000. Raj still owes Rs 199,000.

If Raj defaults on this, ICICI Bank will only be able to recover a portion of their money back. The mortgage paper has now become illiquid (the house can't pay the mortgage). ICICI Bank is now unable to sell it. Why would somebody pay for an asset that guarantees you will lose money?

That mortgage has become a "toxic asset".]

3. Access of Funds needs to be restored to emerging economies like India.
4. Need to commit ourselves to keep protectionism away.



Pakistan diverts attention from Mumbai Attack Investigations

I doubt on whatever things are happening in Pakistan.People may be getting this question,recent Activities in Pakistan a way to divert attention from Mumbai Attack Investigations? 

It looks to me that, they are just diverting the attention of the world from Mumbai Attacks. First they delayed it saying they want proof and once proof submitted they told they are not considerable for further investigations & they sent 30 questions to India & when India answered, then they played the political games in pakistan, and later settled the matter without Pak military taking over the Govt. Then attack on Sri Lankan Cricketers to show that Pakistan is also a target of Terrorism. And if you look at the recent developments, suddenly the attacks in pakistan have increased. All this things make me conclude that they just want people to forget the Mumbai Attacks.

And here in India, we have Parlimentaty Elections and till the next govt forms there will not be any actions from India. And almost, most of the people have forgotten the Mumbai Attack.

Only God can save the our Country.