Things You Aren't Allowed to See on Google Maps

29 בנובמבר 2008

Google Maps offers a satellite view or a street-level view of tons of locations around the world. You can look up landmarks like the Pyramids of Egypt or the Great Wall of China, as well as more personal places, like your ex’s house. However, for all of the places that Google Maps allows you to see, there are some that are off-limits, actually there are 51 "Prohibited" places. Check out the list here. I really enjoy reading point 23: "Iran: Late in 2007, an Iranian businessman tried to download Google Earth and got a message that said, "Thanks for...
תגיות:
אין תגובות

The WndProc & How To Disable (Ignore) Button Click Event

26 בנובמבר 2008

Intro So, the idea behind this post is to show you guys, how to disable the click event of a .NET button, but first thing first and lets start with a little review of the Control class. Every Button in .NET eventually inherits from a base class Control. The Control class has a virtual method defined: protected virtual void WndProc(ref Message m); .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0;...
תגיות: ,
2 תגובות

Answer: Test Private Methods

25 בנובמבר 2008

On my previous post I have asked a question: "Would you test a private method?" I got a good response from Chad Myers and would like to share it with you all: "Microsoft's opinion is in favor of testing private methods. In fact, they seem to encourage it with Private Accessors and various How To articles on MSDN. I wouldn't say that this is just my opinion (not to test private methods), it is generally a common-held opinion in the unit testing and, specifically, TDD circles. I won't take credit for this thought, but I will say that I do hold this...
תגיות:
3 תגובות

The File You Are Trying To Upload Exceeds The File Upload Size

The Problem We use TFS as an ALM tool in order to manage the entire development cycle. So far simple enough. The problem occurred wen I tried to attach a file to the work item. Here is what I got: The Solution Go to the TFS Server. Open the Internet Explorer, type the following address: http://<tfsserver>:8080/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?op=SetMaxAttachmentSize where <tfsserver> represents the name of the Team Foundation Server. This web service will enable us to change the limit of the file that we attach to a work item. Enter the maximum attachment size in bytes,...
תגיות: ,
אין תגובות

Requirements Management Using Visual Studio Team System

24 בנובמבר 2008

I have read a really good white paper from Microsoft that talks about Requirements Management using VSTS. I encourage you all to read it: Requirements Management with Visual Studio Team System White Paper Why should you read it? I will give you five (good) reasons to read it: It is only 30 pages with a lot of pictures. You will understand what a requirement is. You will understand requirements life cycle. The roadmap of requirement lifecycle in future versions of TFS. Some tips & tricks.
2 תגובות

Question: Test Private Methods

After reading Chad Myers post on Do not test private methods, I started thinking... I have always tested private, internal and public methods using one of the unit testing frameworks: NUnit, MBUnit, .NET Unit Testing Framework and others. Was I wrong? What do you think?
תגיות:
2 תגובות

Web Test & Different Builds

Some Background... I have a customer that uses Microsoft Load Test and Web Test tools in order to validate the performance for his web application. Web Tests and Load Tests get executed against each and every new build. A new build is published to a the web server (either an IIS or Tomcat) under the application name + the build number, for example: "rcm41020" So, the application name is rcm and the build is 41020. The Problem For each web test that we execute we need to change in the URL the application name: in this...
תגיות: , ,
תגובה אחת

Visual Studio Tip: Debug .NET Framework Source Code

23 בנובמבר 2008

Earlier this year, Microsoft announced that it would make the .NET Framework source code available to developers for debugging support. Here are some links that will help you getting started: http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx http://blogs.telerik.com/KevinBabcock/Posts/08-11-07/Visual_Studio_Tip_Debugging_Hints.aspx http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx Enjoy!
תגיות: , ,
אין תגובות

Debugging LINQ Queries

I encountered a nice article by Eric White that explains how to debug Linq queries. Sum it up for me, please Basically, lets say that you have this complex query:var uniqueWords = text .Split(' ', '.', ',') .Where(i => i != "") .Select(i => i.ToLower()) .GroupBy(i => i) .OrderByDescending(i => i.Count()) .Select(i => new { Word = i.Key, Count = i.Count() }) .Take(10); And, lets say you want to debug it, here is a trick that can help you...
תגיות: , ,
תגובה אחת

Back To Basics: Const Vs Readonly

One of my customers asked me a simple question: Customer: "Say Guy, what is the different between const and readonly fields? Guy: "Well, the differences are...ohmmm..." I had to go to the drawing board on try to remember the differences. I thought I'd share the results: Constants Here is what I found out about constants: Static by default (but you cannot write "static const"). Value is evaluated at compile time, thus it must have compilation-time value ("A"+"B" is OK, method calls is not OK). Cannot be changed at runtime. Can be used in attributes. Are copied into every...
תגיות: ,
3 תגובות