.

Debugging Your BlackBerry Application’s Server Code with Visual Studio

June 1, 2009. Posted by Jorge

This is how you debug the .NET server code that handles your BlackBerry application’s requests. You can set breakpoints in the server page or module and have them hit when the BlackBerry simulator makes a request to the server. The steps below use my end-to-end BlackBerry application as an example.

  1. Open the solution with Visual Studio and set the web application, KowledgeBase.Web.UI in this case, as the startup project.

    startup-project

  2. Open the web project’s properties, Web tab. Set the handler (BBHandler.ashx) as the start page.

    start-page1 start-page2

  3. Set breakpoints in the handler’s code and start the debugger

    set-breakpoint start-debugging

  4. Browse to the handler page. See how the breakpoint is hit. Press F5 to go past the breakpoints and allow the ProcessRequest function to return. Now the debugger is attached and you can move on to the BlackBerry project.

    browse-to-handler at-breakpoint

  5. Start the BlackBerry MDS simulator.

    mds-sim

  6. Start debugging your BlackBerry project in your favorite IDE. Make sure the BlackBerry application is pointing to your server project's URL. You can grab this URL from your browser's address bar, since VS pointed the browser to it.

    bb-options

  7. Now you can exercise the functionality that talks to the server. You should be able to step through the server code once you hit the first breakpoint in it.
   E-mail   Permalink    Comments(0)   Trackback

Why Prices at the Supermarket Are Not Dropping. Four Reasons to Be Cynical

May 3, 2009. Posted by Jorge

A post on the Consumer Reports Money & Shopping Blog focuses on the fact that after the economic slowdown, while commodities costs sunk, prices at the supermarket and the pump did not drop as quickly, and prices of some goods actually kept rising.

According to different experts, there are at least four arguments companies use to justify their reluctance to drop prices:

Fear of a price war. Rather than production costs, prices are dictated by what the competition charges. Price wars ensue when competitors lower their prices. And the fear of tumbling profits because a price war makes stores keep their prices unchanged.

Manufacturers do not want to disappoint you. Since manufacturers think the bonanza will not last, it does not make sense to drop prices now and risk creating tension with the customers down the road, when prices will be hiked again.

You would not appreciate it. While people feel great pain from price increases, they tend to be less appreciative of price decreases. If companies are not sure that the decreases are going to last, it does not make sense for them to drop prices.

It is your turn to help. Companies not always burden the consumers with their extra costs. Keeping prices high is a way to recoup lost profits for companies whose price hikes were not enough to fully cover their own costs.

After reading these explanations, is there reason to shout conspiracy?

   E-mail   Permalink    Comments(0)   Trackback