Подпишись на наш Twitter

Быть в курсе появления новых статей!

.NET

  1. Rollup Extension Method: Create Running Totals using LINQ to Objects — Recently, I had need for a new extension method for IEnumerable, which I call "Rollup". This extension method is sort of a cross between the Select and Aggregate extension methods. Like Select, when using this extension method you write a lambda expression to project the new value in a new collection. Unlike Select, in the projection lambda expression, you are passed the projected value for the immediately preceding element...
  2. LINQ: ToLookup vs ToDictionary — Some people are not sure of the difference between ToLookup vs ToDictionary LINQ methods...
  3. Architect 3 : Building Data Access Layer Using Microsoft Enterprise Library 4.1 — You have a Customer table with three fields: ID, LastName and FirstName. You are building a data access layer to retrieve all the records from the Customer table and return the result as a collection of Customer objects...
  4. Extension methods as default interface method implementations — One of my comments in the 2nd edition of the .NET Framework design guidelines (on page 164) was that you can use extension methods as a way of getting default implementations for interface methods. We've actually begun using these techniques here on my team...
  5. Tip 10 : Returning the first part of a string with delimiter — You have a string delimited by underscore such as 1stPart_2ndPart_3rdPart and want to return the first part of the string only...
  6. Windows PowerShell Quick Reference Guide Updated — Quick reference guide to commonly-used Windows PowerShell commands. For best results, open the file in Microsoft Word, print the contents to legal-sized paper (8 inches by 14 inches), and fold the resulting printout in half, making a four-page booklet...
  7. Enumerate Enum flags — produces a list of the selected flags in an enum that was built using [Flags]...

Web

  1. Handling Errors With jQuery.load — Attached to this post is a really simple (and ugly as I'm writing this quickly on a crowded train to Reading!) demo web site that we can use to walk through the options, so grab that, unzip it, and open it up. You'll notice I've actually created 4 JavaScript files, but only one is actually referenced in Default.aspx. As we progress through this post, you should uncomment only the script we are using (e.g. comment out A_NoHandling.js and uncomment B_NoHandlingWithLoadProgress)...
  2. Adding properties to an asp.net masterpage — You will need to add this line to your .aspx page in order to be able to access the property you just exposed...
  3. gwt-presenter, or “How to get excited about MVP” — I’m in week four of my Google Web Toolkit adventure and things are heating up nicely. I’ve already switched to IntelliJ and back to Eclipse at least once (not really counting the two times I switched in my head while I was laying in bed; let it not be said that being spoiled for choice is always a good thing)...
  4. SCREENCAST: Managing Browser History Using Client Script Without ScriptManager — ASP.NET Ajax has a great feature that helps make it easy to enable back/forward button and bookmarking support in your Ajax applications. However, most people think you need ASP.NET WebForms and the ScriptManager control to take advantage of this feature...
  5. 10 Brilliant CSS3 and jQuery Examples — CSS3 is getting a lot of attentions recently. Myself, as a front end developer, I'm absolutely in love with CSS3. Rounded corner, drop shadow and rotation couldn't be easier! The only drawback is, CSS3 standard is not fully implemented by most browsers and also, I believe you will get a lot of CSS validation errors as well. However, there are quite a lot of websites start using it already, for example, Twitter, it uses rounded border...
  6. Creating a Fancy menu using CSS3 and jQuery — Fancy menu was made popular by devthought, it is develop on top of the Mootools library. And later a jQuery version of this menu called lavalamp was made popular by Ganesh. This time I will show you how to achieve the same effect using the CSS3 new features...
  7. Built-in Charting Controls (VS 2010 and .NET 4 Series) — A little over 14 months ago I blogged about how Microsoft was making available a free download of charting controls for both ASP.NET 3.5 and Windows Forms 3.5...
  8. Consuming REST services using HttpClient — If you have a need to consume REST Services from .NET Framework based code, then you should really have look at the WCF Rest Starter Kit. There is a handy class called HttpClient that is, in my opinion, provides the best / cleanest way to consume REST services at the http level. Essentially, it gives you the ability to make http calls as easy...

Visual Studio

  1. VS 2010 / .NET 4 Release Candidate — Over the last few months we’ve been releasing interim builds to a small set of folks who have been helping us validate fixes and measure very large projects and solutions. The feedback from them has been extremely positive the last few weeks – which is why we are now opening up today’s build to a much wider set of people to people to try out...
  2. jQuery 1.4.1 Intellisense with Visual Studio — A few people have emailed me recently asking about the availability of a Visual Studio –vsdoc intellisense hint file for jQuery 1.4.1...

Development/Miscellaneous

  1. Using Google Docs to create a public form/survey/contact/etc page – The Soup to Nuts HowTo — Does you job involve collecting surveys and feedbacks? How do you do that? Do you send emails to your team, asking for reviews and manually enter into a sheet? or have a centralized excel sheet and ask everyone to update? – Now let me tell you, thats one sad way of doing., and I reckon.. even you will agree on that...
  2. Screencast: Using datamining with PowerPivot in Excel — I’m currently talking to a client who is very charmed by the possibilities of PowerPivot to analyze data, one thing led to another and we came to data mining .. I got thinking wouldn’t it be GREAT if we could use the Excel data mining add-in on PowerPivot data (with DAX at our disposal). After some sparring with Rob Collie I found a way! Which I am going to show to you today in this screencast...
  3. My Top Five Email Pet Peeves — I, like most of you, get a lot of email. We live in an email-centric culture. I don't mind it so much. It just seems like some folks still "don't get it." I've got some email pet peeves, I'm sure you do, too. Here are some of mine...
  4. Whiteboard Characters Answer ‘Why Windows Azure?"’ — MSDEV presents a video series where Bill Lodin uses a whiteboard to help illustrate why people should adopt Windows Azure. The series takes an interesting turn when the whiteboard’s personality emerges and it becomes a co-host...
  5. Where to Find your Windows Azure Billable Usage Info — This weekend I had someone email me asking me to blog about where to find the usage info used for billing because they were having a hard time finding it and figured others were having difficulty as well...
  6. Telling Your Website’s Story with Sketchboarding — On many projects to which design, development, and UX teams are assigned, the scope is myopic: project managers turn their blinders on and focus the attention of a team on one particular aspect of a system at any given time, instead of looking at the experience that that website or application delivers as a whole...
  7. The iPhone Obsession and Lying with Statistics — PPK over at the QuirksMode blog recently wrote a rant titled The iPhone Obsession where he berates developers for focusing on the building mobile sites that are targeted towards well on the iPhone. To make his point, he uses the following statistics...



Дата публикации: 16.02.2010 18:38

Ярлыки: .NET, Development, Visual Studio, Web