If you use resharper with Visual Studio 2008, you may have noticed that it keeps suggesting you use implicitly typed local variable declaration i.e. the var keyword. To me, it is a bit annoying.
You can actually find why people think it should exist in the first place:http://resharper.blogspot.com/2008/03/varification-using-implicitly-typed.html
There are some valid points, but I am not convinced. I think it is less readable in most of the case. I can’t agree with Ilya that it induces better...
Posted By:Changhong Fu
|
9/8/2008 6:24 AM
| 0 Comments |
|
|
I received a confusing error from MS Build on Friday. I assumed that it was a GDR version issue for the top level message: Now, we have the situation with our Business Intelligence system where we have 2 solutions. One for Visual Studio 2005 projects that consist solely of the Business Intelligence Package bits, and a 2008 solution which consists of everything else that is needed to build our solution. We do plan to move everything over to 2008, but we are currently targeting SQL Server 2005....
Finally,
I have a blog set up! This one will be permanent. I will be posting articles on encryption, data transfer, working with web clients and more C# and VB based tutorials over the next few weeks, so stay with me as I make this long overdue transition back to blogging...
I had this problem today. It looks very simple, but actually took me a while to find a solution. The problem is: I have a Winforms DataGridView, and its first column is an unbound CheckBox column which is used to select/unselect a row. I want to hook up the check/uncheck event so that I can execute some logic after a row is selected or unselected. As this is Winforms, there is no way I can hook up an event from a control’s child element. But, it is quite obvious that we can hook up DataGridView’s...
Just watched this episode for the first time (all of them are to me since I've just started catching up). An interesting episode, but sort of silly, really. I enjoyed it the political debate between the "terrorist" and Apollo in the microcosm sense. Two guys talking about the notion of freedom (a term very close and dear to my heart) and government. Pretty interesting. However, in the larger context, it is a stupid thing to be debating. Here you are, the last 47K humans in the universe (as far...
I finally got a chance to run NDepend against a code base I'd written and I gotta tell you, it was an eye opening experience. First of all, I'd recommend spending some time reading about static code metrics first. Patrick Cauldwell's book is a good resource to start with. He has a chapter about static code analysis and he explains it at a high level in a very simple way. The NDepend website also has some excellent resources on understanding your NDepend analysis output. they have screen casts,...
I was trying format my dropdown list to should the decimal numbers as pecentange. But the MSDN article is not completed.
It turned out that {0:P2} is what I'm looking for. Here is the full list regarding the string format:
Data Formatting for DataTextFormatString
Format String
Description
{0:Cn}
Currency. Displays numeric values in currency format with a leading dollar sign; n indicates the number of decimal...
Environment files in source control are a big No No. Environment files are a big No No anywhere. Period. Except one place - where they are used. You should ONLY maintain ONE local environment file. You should only store in source that one file that is needed to run the code locally. If you have a config.DEV, config.TEST, config.PROD, etc. YOU ARE WRONG! Stop this, you are causing yourself more pain! Every time you update one value, you have to update it in several places. You are violating DRY...
Recently Oren posted about how Tools Matter. I agree completely (110%!). I remember a time when we didn't have automated builds and most assuredly didn't have automated deployments either. I remember how long it took to get an environment set up. Our testers would ask us to put the latest code in an environment and it would literally take over an hour sometimes to get the environment updated because we would deploy first to a DEV environment and then a TEST environment for them. Then we would...
The Redskins/Giants game aside, we’re now less than 30 minutes away from the beginning of the NFL season! Of course, its really just an exercise to see who will lose the Superbowl to the Atlanta Falcons, but still…we have so many storylines and drama that this will be an excellent season of “As The NFL Turns”. So week one…what are we going to see… Falcons over Lions The Falcons put the past behind them and start with their new look…well, everything. Lions, still the same look. Jaguars over...
I recently posted on How To Receive Configuration Updates without restarting a .NET Windows Service. For some reason it never showed up in Google Reader. I guessed the reader maybe missed it for some reason. Perhaps it was something in the naming of my post. Like I mentioned in the article, it is possible to update the configuration and not have to restart the service. I was interested in learning how when I saw that log4net was doing it. I didn't take quite the same path they did, but I was...
"Good morning everybody, you're tuned to Computers 2K8 on sports radio 850 The Buzz" and so began today's show as we do every Sunday morning from 8am - 10am here in Raleigh, NC. You can download the show from the show's website or you can listen do us live as we stream the show across the web. Here a few of the topics discussed on this week's show... Need Money For College? We had Ben Kaplan, a leading expert on college scholarships, admissions, financial aid, etc., on the show as a call-in interview...
This post is part of a series called Ignite Your Life. For background info on the series, please refer to previous posts on introducing the series and The 5 R's (where you can find links to the other posts in this series). I’ve been fighting with how to start this post…some witty anecdote, some deep insight, some metaphor that drives the point home. But none of those are formalizing so let me just be blunt: You need relationships in your life for it to be successful. Out of all the ideas and concepts...
A couple of us had a discussion concerning navigating code.
When I develop, I navigate by references which is probably why some feel that I lack organization in the ordering of my methods within a given class. I could be accused of being OCD on many things like lining up skittles by color and quantity (I eat them accordingly). However, I do not care in what order my methods fall nor what region. I generally do not use regions either.
She on the other hand navigates by physical placement...
While performing an update to some code originally written for CRM 3.0 which I was upgrading to 4.0 and using the new 2007 version of the web services, I found myself getting an unusual error during one of the callouts. The code created a new custom entity from the data in an existing entity. This code was orginally written by another party and I"m not sure why they didn't use the mapping features in CRM to do this but it was coded manually.
The entity with typecode '8' was not found in the Metadata...
I have started doing some preliminary planning/design work for a new web-based project. This project is extremely important for our organization since it will be the foundation for a portal that we will build in the future. In addition, this application will not only going to be used by our employees but also by some of our customers and partners. Our customers/partners will also have the option to integrate our application into their portals. That means the application will be used in many ways...
Posted By:Ahsan Alam
|
9/7/2008 12:46 AM
| 0 Comments |
|
|
Michael Washington on Silverlight Desktop for DNN, Corey Schuman with Play/Paus button, Shawn Wildermuth on Project Rosetta, Koen Zwikstra on disposing of objects, Mike Snow on Full-screen mode and creating shadows, and Ken with XAML on demand.
Shawn Wildermuth uploaded a new version of the code for his SL2/Data Services article on MSDN.
Shawn also announed the addition of my friend Erik Mork to the staff of Silverlight Tour... now that's advantageous for all involved, and congratulations...
After being into the software development career for more than a year now, I feel I understand what is expected from a "Software Developer". There are a lot of things that need to be done, and they need to be done with care.
Read More...
For those of you who attended my talk or for any other interested parties, I have uploaded my slide deck from my MVP Theatre presentation at Tech.Ed Australia 2008 to my sky drive here: There is not too much to this deck as the presentation was mainly demos. If you are just after the links to the tools I demonstrated I have included them below: MDX Studio BIDS Helper Analysis Services Stored Procedure (ASSP) project PowerSSAS (which unfortunately only got a brief mention) And here are the links...
Our application shows custom HTML confirm message box, that we wanted to locate in the middle of the browser window.
If I would start from the scratch, I would use Ajax Control Toolkit ModalPopup
However, because the proprietary code to show div has been already written, I wanted just to set vertical position of the div.
I've created a function based on code from AlwaysVisibleControlExtender.js.
Initially it didn't work, because common.JS getClientBounds : function() returned 0 clientHeight...
It's well known that JavaScript is similar to C++/C#, but doesn't required explicit declaration of the variables.
However, it worth to read specification(e.g. http://jennifermadden.com/javascript/variables.html ) to understand subtle differences.
I didn't know, that a variable implicitly declared within a function is a global variable.
For example,
function foo() {
g= 17;//it's global, will be visible outside the function after the function will be executed
var x =...