Posterous theme by Cory Watilo

Cowism

Image003
If you think cows are useful only to farmers or milkmen? You need a crash course in economics. See what it means for these corporate biggies...

INFOSYSism

You have 1000 poor cows. You put them on a nice campus & send them one at a time to the US for milking.

WIPROism

GE has a cow. You take 49% of the milk.

DELLism

Intel has a Goat. Samsung has a Camel. Buy milk from both & sell it as Cow's milk.

IBMism

You have old stubborn cows. You sell them as pet dogs to innocent small businessmen.

MICROSOFTism

You have a cow. Force the world to buy milk from you. Spend a million dollars to feed poorer cows.

INTELism

Microsoft makes horse shoes. You nail them to your cows & wonder why they don't run fast.

SUNism

You have a bull. It doesn't give milk. You hate Microsoft.

ORACLEism

You have a cow. You don't know which side to milk, so you sell tools to help milk cows.

SAPism

You don't have a cow. You sell milking solutions for cows implemented by milking consultants.

APPLEism

You have a cow. You sell iMilk.

SONYism

You have a cow. You spend $50 mn to develop the world's thinnest milk.

CITIBANKism

Welcome to Citibank. If you have a cow, press 1. If you have a bull, press 2...stay on line if you'd like our customer care to milk it for you.

HPism

You don't know if what you have is a cow. You sell complete milking solutions through authorized resellers only.

GEism

You have a donkey. People think you have a 100-year old cow. If someone finds out, that's his imagination at work.

RELIANCEism

You don't yet have a cow. You sell empty cans to people for Rs. 501, because Dhirubhai wanted everyone to have milk.

TATAism

You have a very old cow. You re-brand it as TATA Indicow.

Installing Node.js on Windows 7

Thought to sum up what I did to make Node.js running on my Windows 7 box.

1) Install Cygwin using the following packages

·         devel -> gcc-g++

·         devel ->git

·         devel -> make

·         devel -> openssl

·         devel -> Pkg-config

·         devel -> zlib-devel

·         python -> python

2) Download Node.js zip source from here and extract to a location

3) Open Cygwin bash shell and change to directory to the Node.js source location you extracted in step 2

4) Configure the build by running the command $ ./configure

5) At this point I got following error

          Checking for function SSL_library_init   :  581704 [main] python 7968

D:\cygwin\bin\python.exe:

fatal error - unable to remap

\\?\D:\cygwin\lib\python2.6\lib-dynload\itertools.dll to same address as parent: 0x350000 != 0x3F0000

588187 [unknown (0x13DC)] python 5960 fork: child 7968 - died waiting for dll l oading, errno 11

not found

7) I tried running ‘rebaseall -v’ command and got error

        FixImage (/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll) failed with last error = 13

      The post here came as rescue.  Added -e '/\/sys-root\/mingw\/bin/d' at line# 110 in /bin/rebaseall file.

8) Now I am able to build Node.js

     ./configure

     make

     make install

9) To check run ‘node –version’ command

References

Node Wiki

Brev’s Blog

Cart5 - Shop with HTML5 way

Cart5 is just a proof of concept to show one of the possibilities to change the user experience of a typical shopping cart using the features of HTML5.

You can read about HTML5 specs at

 

1)   Web Hypertext Application Technology Working Group (WHATWG)

2)   W3C

 

This shopping cart primarily focuses on the Drag ‘n Drop feature in HTML5. It shows how Drag ‘n Drop can be used to enhance the shopping experience on your site.

 

Some HTML5 features explored in this sample application are

1) Drag 'n Drop

2) Document/CSS Selectors

3) Local Storage

 

The other new technologies/trends used in this application are

1)      ASP.NET MVC 3 Preview 1

2)      Document Database using RavenDB

3)      Razor View Engine

 

Watch the video to see how this application works (sorry no audio!! )

  

(download)

The source code (Cart.zip) is attached in this post.

 

 

Prerequisites for compiling and running the code on your machine

1)      Visual Studio 2010

2)      ASP.NET MVC 3 Preview 1

3)      RavenDB

 

 

 Getting started

1)      Install RavenDB

2)      Install ASP.NET MVC3 Preview 1

3)      You can import some product data into RavenDB from cart5.dump (attached in this post) file using RavenSmuggler utility e.g. > RavenSmuggler in http://localhost:8080 cart5.dump

Or you can start adding products by navigating to /Product/Create view in the application.

4)      Open the CartFive.sln in Visual Studio 2010 to compile and run the application.

I have tested it on Firefox 4 beta 5 and Chrome 6. I had tried it on IE 9 Preview 4 but, didnt work well.

I am not so good at creativity so you may find the UI very rudimentary.

some UI elements are taken from html5demos.com and jQuery Tools

I hope you like the concept.

 

 

Any feedback/appreciation/criticism are welcome.

UPDATE (11/1/2010): The complete source is also available on GitHub at http://github.com/ajaywhiz/Cart5. Fork it!!

 

 

Click here to download:
Cart5.zip (1.04 MB)

Click here to download:
cart5.dump (1 KB)

 

Who said that?

It was the first day of a school in USA and a new Indian student named Chandrasekhar Subramanian entered the fourth grade.

The teacher said, "Let's begin by reviewing some American History. Who said 'Give me Liberty , or give me Death'?"

She saw a sea of blank faces, except for Chandrasekhar, who had his hand up:?'Patrick Henry, 1775'he said.

'Very good! Who said 'Government of the People, by the People, for the People, shall not perish from the Earth?''

Again, no response except from Chandrasekhar. 'Abraham Lincoln, 1863' said Chandrasekhar.

The teacher snapped at the class, 'Class, you should be ashamed. Chandrasekhar, who is new to our country, knows more about our history than you do.'

She heard someone whisper: 'F___ the Indians,'

'Who said that?' she demanded. Chandrasekhar put his hand up. 'General Custer, 1862.'

At that point, a student in the back said, 'I'm gonna puke.'

The teacher glares around and asks 'All right! Now, who said that?' Again, Chandrasekhar says, 'George Bush to the Japanese Prime Minister, 1991.'

Now furious, another student yells, 'Oh yeah? Suck this!'

Chandrasekhar jumps out of his chair waving his hand and shouts to the teacher, 'Bill Clinton, to Monica Lewinsky,1997'

Now with almost mob hysteria someone said 'You little shit. If you say anything else, I'll kill you.' Chandrasekhar frantically yells at the top of his voice, ' Michael Jackson to the child witnesses testifying against him, 2004.'

The teacher fainted. And as the class gathered around the teacher on the floor, someone said, 'Oh shit, we're screwed!' And Chandrasekhar said quietly, 'I think it was Lehmann Brothers, November 4th, 2008'.

50 Interesting Facts


1. If you are right handed, you will tend to chew your food on your right side. If you are left handed, you will tend to chew your food on your left side.

2. If you stop getting thirsty, you need to drink more water. For when a human body is dehydrated, its thirst mechanism shuts off.

3. Chewing gum while peeling onions will keep you from crying.

4. Your tongue is germ free only if it is pink. If it is white there is a thin film of bacteria on it.

5. The Mercedes-Benz motto is “Das Beste oder Nichts” meaning “the best or nothing”.

6. The Titanic was the first ship to use the SOS signal.

7. The pupil of the eye expands as much as 45 percent when a person looks at something pleasing.

8. The average person who stops smoking requires one hour less sleep a night.

9. Laughing lowers levels of stress hormones and strengthens the immune system. Six-year-olds laugh an average of 300 times a day. Adults only laugh 15 to 100 times a day.

10. The roar that we hear when we place a seashell next to our ear is not the ocean, but rather the sound of blood surging through the veins in the ear.

11. Dalmatians are born without spots.

12. Bats always turn left when exiting a cave.

13. The ‘v’ in the name of a court case does not stand for ‘versus’, but for ‘and’ (in civil proceedings) or ‘against’ (in criminal proceedings).

14. Men’s shirts have the buttons on the right, but women’s shirts have the buttons on the left.

15. The owl is the only bird to drop its upper eyelid to wink. All other birds raise their lower eyelids.

16. The reason honey is so easy to digest is that it’s already been digested by a bee.

17. Roosters cannot crow if they cannot extend their necks.

18. The color blue has a calming effect. It causes the brain to release calming hormones.

19. Every time you sneeze some of your brain cells die.

20. Your left lung is smaller than your right lung to make room for your heart.

21. The verb “cleave” is the only English word with two synonyms which are antonyms of each other: adhere and separate.

22. When you blush, the lining of your stomach also turns red.

23. When hippos are upset, their sweat turns red.

24. The first Harley Davidson motorcycle was built in 1903, and used a tomato can for a carburetor.

25. The lion that roars in the MGM logo is named Volney.

26. Google is actually the common name for a number with a million zeros.

27. Switching letters is called spoonerism. For example, saying jag of Flapan, instead of flag of Japan.

28. It cost 7 million dollars to build the Titanic and 200 million to make a film about it.

29. The attachment of the human skin to muscles is what causes dimples.

30. There are 1,792 steps to the top of the Eiffel Tower.

31. The sound you hear when you crack your knuckles is actually the sound of nitrogen gas bubbles bursting.

32. Human hair and fingernails continue to grow after death.

33. It takes about 20 seconds for a red blood cell to circle the whole body.

34. The plastic things on the end of shoelaces are called aglets.

35. Most soccer players run 7 miles in a game.

36. The only part of the body that has no blood supply is the cornea in the eye. It takes in oxygen directly from the air.

37. Every day 200 million couples make love, 400,000 babies are born, and 140,000 people die.

38. In most watch advertisements the time displayed on the watch is 10:10 because then the arms frame the brand of the watch (and make it look like it
is smiling).

39. Colgate faced big obstacle marketing toothpaste in Spanish speaking countries. Colgate translates into the command “go hang yourself.”

40. The only 2 animals that can see behind itself without turning its head are the rabbit and the parrot.

41. Intelligent people have more zinc and copper in their hair.

42. The average person laughs 13 times a day.

43. Do you know the names of the three wise monkeys? They are:Mizaru(See no evil), Mikazaru(Hear no evil), and Mazaru(Speak no evil)

44. Women blink nearly twice as much as men.

45. German Shepherds bite humans more than any other breed of dog.

46. Large kangaroos cover more than 30 feet with each jump.

47. Whip makes a cracking sound because its tip moves faster than the speed of sound.

48. Two animal rights protesters were protesting at the cruelty of sending pigs to a slaughterhouse in Bonn. Suddenly the pigs, all two thousand of them, escaped through a broken fence and stampeded, trampling the two hapless protesters to death.

49. If a statue in the park of a person on a horse has both front legs in the air, the person died in battle; if the horse has one front leg in the air, the person died as a result of wounds received in battle; if the horse has all four legs on the ground, the person died of natural cause.

50. The human heart creates enough pressure while pumping to squirt blood 30 feet!!

Running TFS 2008 and 2010 build service on same machine

Click here to download:
Microsoft.TeamFoundation2008.Build.targets (66 KB)

I had a TFS 2008 build service configured on a machine. Everything seemed to be working fine until I installed TFS 2010 build service on the same machine. I started getting following error

 

TF21007: No build was found with the URI vstfs:///Build/Build/1012. Either the URI does not exist, or <user> does not have permission to access it.

 

When I open the buildlog.txt I found that there is some error in Task “GetBuildProperties” which is defined in Microsoft.TeamFoundation.Build.targets file.

 

The error message was

 

Task "GetBuildProperties"

  GetBuildProperties TeamFoundationServerUrl="http://<buildserver>:8080/" BuildUri="vstfs:///Build/Build/18149"

C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(376,15): error MSB4131: The "Reason" parameter is not supported by the "GetBuildProperties" task. Verify the parameter exists on the task, and it is a gettable public instance property.

Done executing task "GetBuildProperties".

 

TFS 2010 build service updates Microsoft.TeamFoundation.Build.targets which is not compatible with TFS 2008.

 

Now, to have both versions running on the same machine I copied the TFS 2008 Microsoft.TeamFoundation.Build.targets file and  saved it as Microsoft.TeamFoundation2008.Build.targets in msbuild directory. I also changed my TFBuild.proj file to use this target file

 

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation2008.Build.targets" />

 

Now when I do a build, voilà! It works….

 

Publish azure cloud package when you build

Right now it’s a two step process to publish your windows azure cloud package

First you need to build and then select the publish option

 

Image001

 

I didn’t find any way to automate both the tasks at one go.

I looked at the  ‘Microsoft.CloudService.targets” file there I found a target entry

 

<Target  Name="CorePublish"  DependsOnTargets="Build">

 

So, to publish your azure package you can even do it from command prompt by running the following command

 

C:\> msbuild /t:CorePublish <projectname>.ccproj

 

This is what I did to automate publish through msbuild

 

Open the cloud service project file (.ccproj) in any text editor e.g. notpad

 

Add “CorePublish” as DefaultTargets

 

<Project ToolsVersion="3.5" DefaultTargets="Build;CorePublish" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">