Archive

Archive for the ‘Random Talk’ Category

S3 Bucketname & CName Mapping Chaos

October 25th, 2012 Comments off

In S3, there are two ways to access a resource, namely

s3.amazonws.com/bucketname/key

OR

bucketname.s3.amazonws.com/key

A bucketname can mixed with upper and lower case, so when the bucketname becomes part of the domain name (which naturally case insensitive), what happened?

Read more…

Share
Categories: AWS, Random Talk Tags:

How to monitor/trace Windows Network Activity

October 18th, 2010 Comments off

Sometimes you really need to know what is going on under the hook of windows network stack, why DNS is not resolving, why you always get 404 etc. Windows actually provides a very powerful infrastructure to allow trace through

What you need: Read more…

Share
Categories: Random Talk, Tech, windbg Tags:

Windows 7 RTM Auto Login Setup

December 24th, 2009 Comments off

I am not sure why there are so many WRONG post about setting auto login, but here the correct one.

I tested this one in RTM windows 7.

1. Use Win+R and put in "netplwiz".

2. In the user account window, uncheck the box as below:

image

That is it.

Share
Categories: Random Talk Tags:

Diplomatic incident —This is a true story from the Japanese Embassy in U.S.A. !!!

July 11th, 2009 Comments off
Diplomatic incident —This is a true story from the Japanese Embassy in U.S.A. !!!
A few days ago, Prime Minister Mori was given some Basic English conversation training before he visits Washington and meets president Barack Obama… The instructor told Mori Prime Minister, when you shake hand with President Obama, please say “how r u”. Then Mr. Obama should say, “I am fine, and you?”
…Now you should say “me too”.. Afterwards we, translators, will do the work for you.”

It looks quite simple, but the truth is…

When Mori met Obama , he mistakenly said “who r u?” (Instead of “How r u?”.)

Mr. Obama was a bit shocked but still managed to react with humor:
“Well, I’m Michelle’s husband, ha-ha…”

Then Mori replied “me too, ha-ha.. .”.
Then there was a long silence in the meeting

Share
Categories: Random Talk Tags:

ADO.Net Entity framework Table Per Type mapping

June 29th, 2009 Comments off

Good reading from here

Share
Categories: ADO.Net, Random Talk Tags:

A good read on hybrid ASP.Net technologies

June 26th, 2009 Comments off

Want to mix MVC+Service+Entities framework+Linq+ Dynamic data in your project?

Here is the read.

Share
Categories: Random Talk Tags:

Scott Hanselman’s 2007 Ultimate Developer and Power Users Tool List for Windows

May 18th, 2009 Comments off
Categories: Random Talk Tags:

LINQPad: A Lightweight SQL Studio Replacement for LINQ Developer

March 27th, 2009 Comments off

Are you those people like me occasionally need try-and-error in order to figure a relative complicated LINQ statement?linqpadlogo

Are you those people like me love to have a interactive LINQ shell to evaluate ideas quick ? Then here you go!

 

LINQPad lets you interactively query SQL databases in a modern query language:LINQ.  Kiss goodbye to SQL Management Studio!

LINQPad supports everything in C# 3.0 and Framework 3.5:

  • LINQ to SQL
  • LINQ to Objects
  • LINQ to XML

 

For basic features it is free, and it only costs $7 bucks to get the Auto-completion, which is a must have IMHO. And the best part is you can even run code snippet in the editor!

image

 

Nice table views :)

 

Technorati Tags:
Share
Categories: Linq, Random Talk Tags: , ,

Different thinking styles

March 21st, 2009 Comments off

A good lawyer friend and me drove to a petrol station to refill. my friend tried to open the car door, and it seemed to stuck. He kept trying for another 30 seconds and felt pretty pissed. Certainly, it happens first time. I then suggested him to low down the window a bit, and open the door again (since the car is convertable), and he got the car door opened by following the suggestion.
Everything was not ammusing so far, I went into the shop while my friend was refilling and cleaning up the front screen of the car. Here is the conversation between me and shopkeeper.

SK: Good day! What is the job of your friend.
Me: lawyer.
SK: You?
Me: Engineer.
SK: No wonder he couldn’t open the door of a nice car!
(I shocked and started to laugh)
SK pointed at my friend and he was wiping the front screen of the car.
SK: Look! Lawyer doesn’t know how to clean up front screen of a car! He wiped up to down instead of left-right, it leaves couples of verticle marks on your front screen instead of a horizontal one.
I started to laugh…. it is true, and I always do it form left to right since I know it is better even I won’t think of the reason.

Thoughts: That is true, as an engineer, we tends to think why a thing should work like X, for a lawyer, like my friend, he is trained to think a thing should always work like X since it should. Nothing wrong with both ways, but I do appreciate my engineering thinking style most of the monents. Engineers creates tools as tools, lawyer can use languages as tools. Right and software engineers can use computer languages as tools as well. Both are about creativity, but obviously in different ways :)

Share
Categories: Random Talk Tags:

A story of a (almost) Microsoft Cleaner

March 21st, 2009 Comments off

I just come across the story in one of my email, it is def a nice read and worth thoughts…

An unemployed man goes to apply for a job with Microsoft as a janitor. The manager there arranges for him to take an aptitude test (Section: Floors, sweeping and cleaning).

After the test, the manager says, “You will be employed at minimum wage. Let me have your e-mail address, so that I can send you a form to complete and tell you where to report for work on your first day.” Taken aback, the man protests that he has neither a computer nor an e-mail address. To this the MS manager replies, “Well, then, that means that you virtually don’t exist and can therefore hardly expect to be employed.”

Stunned, the man leaves. Not knowing where to turn and having only $10 in his wallet, he decides to buy a 25 lb. flat of tomatoes at the supermarket. Within less than two hours, he sells all the tomatoes individually at 100% profit.

Repeating the process several times more that day, he ends up with almost $100 before going to sleep that night.

And thus it dawns on him that he could quite easily make a living selling tomatoes. Getting up early every day and going to bed late, he multiplies his profits quickly. After a short time he acquires a cart to transport several dozen boxes of tomatoes, only to have to trade it in again so that he can buy a pick-up truck to support his expanding business.

By the end of the second year, he is the owner of a fleet of pick-up trucks and manages a staff of a hundred former unemployed people, all selling tomatoes. Planning for the future of his wife and children, he decides to buy some life insurance. Consulting with an insurance adviser, he picks an insurance plan. At the end of the telephone conversation, the adviser asks him for his e-mail address in order to send the final documents electronically.

When the man replies that he has no e-mail, the adviser is stunned, “What, you don’t have e-mail? How on earth have you managed to amass such wealth without the Internet, e-mail and e-commerce? Just imagine where you would be now, if you had been connected to the internet from the very start!”
After a moment of thought, the tomato millionaire replied, “Why, of course! I would be a floor cleaner at Microsoft!”

Moral of this story:

Seeing that you got this story via e-mail, you’re probably closer to becoming a janitor than you are to becoming a millionaire.

Share
Categories: Random Talk Tags: , ,