Roberto Abraham Scaruffi

Monday, 5 March 2012


For comments or enquiries please contact webmaster@codeproject.com View online Monday, March 05, 2012

Welcome to this week's newsletter from The Code Project.
To ensure that future newsletters you receive from The Code Project aren't mistakenly blocked by antispam software, be sure to add the maillist.codeproject.com domain to your list of allowed senders.

Site News

For the authors out there, our new article submission wizard and updates to the article system are live! Post, upload and edit your articles on a single page, add uploads and images to your tips, edit your "edited" (and previously locked) articles and add alternative versions to existing articles. It dices, it slices, and it's definitely in beta. Read about the changes on my blog.
We are also currently working with a professor at Oregon State University to better understand what makes components reusable. In this (paid!) study, they would like you to identify up to 5 components on CodeProject.com that you have tried to use, and will ask you to describe whether it was easy or hard to use each. You would be able to do the study via an online interactive chat or a telephone, at your choice. As compensation, you would receive $10 for each component that you tell about (via PayPal).
If you've got a few minutes to spare, then you can read more about the study.
cheers,
Chris Maunder
Click here Windows 8 Metro Style Apps – Get Started Now!
Keep up on new technologies with the most comprehensive learning library for Microsoft developers. Visual Studio, SharePoint, SQL, plus Metro Style Apps and more for just $99.99. BONUS: Future releases at no charge when you subscribe now!
Click here WPF Application Assurance is Here!
Reduce risks associated with project development and deployment of your WPF applications. Automated UI testing with the new TestAdvantage for WPF (for HP QTP) ensures applications built with NetAdvantage for WPF are designed and optimized for success. Try It Today!
Click here The Intel® UltraBook™ - Not just another pretty laptop
Powered by Intel® Core™ processors, Ultrabook™ is a new category of ultra responsive, ultra sleek, and ultra stylish devices that are less than an inch thick and wake up in a flash. Read dev experiences with the UltraBook™ here!
Click here PowerBuilder 12.5 is here - Are you Ready to Rock?
PowerBuilder is an easy, fast, and cost-effective development tool for creating high-performance, data-driven business applications. Download your PowerBuilder 12.5 trial here!
Click here Write 10,000 lines of code in 10 minutes
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Visually stunning, easy to customize and ready to deploy. Download Now!
Click here Get your data to the glass—the easy way.
Building a well-designed data-rich application with multiple views can be quite a puzzle. Cocktail puts the pieces together and provides the most advanced end-to-end application framework for building XAML-based business applications. Download Now.

Weekly Poll Results

Do you obfuscate your code?

Survey period: 27 Feb 2012 to 5 Mar 2012
Protecting your code, for example .NET DLLs or client side Javascript, is important for some. Do you deliberately (as opposed to accidentally) obfuscate your code? Suggested by Collin Jasnoch
OptionVotes% 
No, we don't since there is no need47148.31471 votes, 48.31%
No, we don't because we don't care if others see the code20120.62201 votes, 20.62%
Yes, using commercial tools727.3872 votes, 7.38%
Yes, using free tools (or tools that come with, say, Visual Studio)11812.10118 votes, 12.10%
Yes, using our own in-house methods394.0039 votes, 4.00%
I don't know what obfuscating means.747.5974 votes, 7.59%
This week's survey: Do you obfuscate your code?

Most popular new articles
27 Feb 2012 - 5 Mar 2012

Latest Additions

90 articles overall. 33 new, 57 updated.

New articles added

Algorithms & Recipes

Android

ASP.NET

Collections

  • BitArray indexed List - Pinx
    List subclass for limited number of items and fast search [Unedited]
    .NET, Dev, collections

Design and Architecture

  • Understanding and Implementing Command Pattern in C# - Rahul Rajat Singh
    Understanding and Implementing Command Pattern in C#
    C#2.0
  • EHSDataCompliance Framework - shalindra2011
    This article is about limiting the amount of codes a developer has to write in the DAC layer
    C#, ASP.NET, Dev
  • Introduction to Pair Programming - Steve Smith
    Code Project Virtual Tech Summit Session: In this session, Steve introduces the practice of pair programming, describes some pros and cons of its usage by agile teams, and demonstrates some specific techniques that can make it very effective for those new to the practice
    All-Topics, Dev, QA

Document / View

Hardware Reviews

  • ZenBook UX31E - Follow up - Jon_Galloway
    I previously wrote about some initial impressions of a ZenBook UX31E I've been reviewing. I've been using it heavily since then and wanted to follow up on how it's been working for me.
    All-Topics, Ultrabook
  • ASUS Zenbook UX31E-DH52 - Curtis Rutland
    The Zenbook is one of the new Intel-inspired “Ultrabooks.”
    Dev, Ultrabook
  • Aspire S3 Ultrabook – First Impression Review‏ - javierandrescaceres
    Let’s talk about the Ultrabook, one of the latest Intel’s products
    All-Topics, Dev, Ultrabook

Internet / Network

Interviews

  • A Coder Interview With John D. Cook - The Code Project, John D. Cook
    Welcome to our continuing series of Code Project interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we talk to Code Project MVP, “math professor, programmer, consultant, manager, and statistician” John D. Cook.
    All-Topics

Product Showcase

Windows Communication Foundation

  • Aggregating Services with a RoutingService - m0sa
    Service aggregation of self hosted WCF services, using the builtin RoutingService .NET framework class [Unedited]
    C# (C#4.0), Visual-Studio (VS2008, VS2010), WCF, Architect, Dev, SOA

Articles updated

Algorithms & Recipes

ASP

ASP.NET

ASP.NET Controls

Audio and Video

  • MicroDVR - Simple Video Security Using Webcams - Osman Kalache
    A simple video-security application that allows video capture from PC webcams, detect motion, record videos on local storage using .NET 3.5, AForge and FFMpeg.
    C#, .NET3.5, Dev

Azure

  • Windows Azure File Backup Service - jeff00seattle
    Defining a Windows-Service to incrementally backup an assigned directory to Windows Azure Blob Storage using Blob REST based upon root directory change notifications to FileSystemWatcher. [Unedited]
    C#, Azure, Dev, Windows-service, file-system, Backup, Blob

C#

  • Efficient data entry through browser automation - Nicolas Dorier
    You will learn how to create a semi automated crawler, and automate browsing [Unedited]
    C#, .NET, Dev
  • How does it work in C#? - Part 1 - Mohammad A Rahman
    How does var, auto implemented properties and += or -= of events work in C# programming language. [Unedited]
    C# (C#3.0, C#4.0), .NET, Dev
  • Preprocessor Directives in C# - Sridhar Patnayak
    To explain Preprocessor directives in C# [Unedited]
    C#, ASP.NET, WebForms, C#3.5, WinForm
  • How does it work in Mono's C# compiler? - Mohammad A Rahman
    The Mono is an open source free programming language project. It has the implementation of Microsoft’s .NET framework based on the ECMA standards for C# language and Common Language Runtime (CLR). In this article, I will explore how does Mono C# compiler works. [Unedited]
    C#, .NET (Mono), compiler

Charts, Graphs and Images

  • ASP .NET Plotter (HTML5, C# and Plot'N'Roll) - Akram El Assas
    Nowadays, There are a plenty of Javascript charting libraries. Justly, this article aims to show you how you can integrate Javascript charting libraries in ASP .NET and build custom charting user controls depending on your flavor and your needs. [Unedited]
    C#, XML, CSS, XHTML, ASP.NET, jQuery, Design

CodeProject FAQs

COM / COM+

  • COM in C++ - xriyax
    create COM with no ATL, just C++ [Unedited]
    C++ (VC10.0), Windows, COM

Database

Design and Architecture

  • Aspect Oriented Programming Using C# and PostSharp - Reza Ahmadi
    This article discusses basic concepts in AOP and uses PostSharp to implement AOP concepts in a C# application.
    Windows, .NET
  • SOLIDify your software design concepts through SOLID - Mahmud Hasan
    When you design your software, you always should think in object oriented way. To improve this thinking process with accuracy you always should observe how objects are created and managed in the real world. Along with this if you have knowledge about design principles, you will rock. [Unedited]
    C#, .NET, All-Topics, Architect, Dev, Design, architecture

Desktop Gadgets

Files and Folders

GDI+

  • Graphical BinaryTrees - Mojtaba Hosseini
    A graphical binary tree. Features: add, remove, or search for a node. Recursive algorithm is been used [Unedited]
    C#, Windows, .NET, GDI, GDI+, Architect, Dev, Recursive, C#3.5, Threading, threads, Forms, keypress, Algorithms, GUI, c#)

Hardware & System

Hardware Reviews

Libraries

  • g2log: An efficient asynchronous logger using C++11 - KjellKod.cc
    Don't let slow disk access bog your logger down. By using the g2log asynchronous logger you will remove the wait bottlenecks while it has the reliability of a *traditional* logging library. [Unedited]
    C++, Windows, Linux, Dev, Threading, C++0x
  • Simple Injector - The .NET Junkie
    The easiest Inversion of Control framework in town.
    C#3.0, .NET3.5, Architect, Dev, .NET4

LINQ

  • Using LINQ Queries - Jovan Popovic
    In this article are placed explanations of the most important LINQ queries [Unedited]
    C#, LINQ

Mobile Development

  • Texture Atlas Maker - ed welch
    A utility to create texture atlases for 2D OpenGL games [Unedited]
    C++, Java, Mobile (iPhone, Android), OpenGL

PHP

  • Token Manager - VectorX
    The Token Manager allows web developers to program PHP, HTML, CSS and JavaScript into tokens that can be used throughout WordPress. [Unedited]
    Javascript, CSS, HTML, Windows, Linux, PHP, Architect, Dev, Web-Development, Application, Framework, tools

Programming Tips

Third Party Products and Tools

Tree Controls

Windows Communication Foundation

Windows Phone 7

  • Stop Watch application for Windows Phone 7 - Vivek Pandey (V)
    Stop Watch application for Windows Phone 7 [Unedited]
    C#, .NET, Mobile (Windows-Phone-7), XAML, Dev, Design
  • Snail Run For Windows Phone - Marcelo Ricardo de Oliveira
    Learn how to integrate Silverlight and XNA for Windows Phone in the same application [Unedited]
    C#4.0, Windows-Phone-7, XNA4.0
  • Leaderboard for Windows Phone 7 XNA Game - BillLange1968
    Solution for creating a Leaderboard for a Windows Phone 7 (WP7) XNA game [Unedited]
    C#, XML, SQL, HTML, .NET, Mobile (Windows-Phone-7), ASP.NET, SQL-Server, ADO.NET, Game

Windows Presentation Foundation

New Tips and Tricks added

Database

  • Best Practices to tune up T-SQL and SP - Drew Rhoades
    I can't imagine that a correlated subquery is your best answer here:SELECT name FROM teacher WHERE EXISTS (SELECT 1 FROM student WHERE teacher.teacher_id = student.teacher_id)Instead, how about an INNER JOIN?SELECT DISTINCT teacher.nameFROM teacher INNER JOIN student ... [Unedited]
    SQL-Server
  • Getting a list of SQL Server modules to refresh - PIEBALDconsult
    Here it is wrapped in a procedure:CREATE PROCEDURE [dbo].[RefeshAllModules]ASBEGIN DECLARE @Name NVARCHAR(128) DECLARE @Stmt NVARCHAR(128) DECLARE ModuleList CURSOR FOR WITH cte AS ( SELECT DISTINCT lft.referenced_id [object_id] , 0 [Rank] FROM... [Unedited]
    SQL-Server, CTE

LINQ

Programming Tips

Tips and Tricks updated

.NET Framework

  • String to byte conversion using .NET encoders (8bit 1-on-1) - Tieske8
    Fast conversion between strings and byte arrays, while bypassing the codepage limitations [Unedited]
    C#, VB.NET, Windows, .NET, string, convert
  • Counting lines in a string - Andreas Gieriet
    Great analysis!I found out that Regex can be accelerated by a factor of about two.Instead of new Regex(@"\n", RegexOptions.Compiled|RegexOptions.Multiline);you can speed up by using:new Regex(@"^.*?$", RegexOptions.Compiled|RegexOptions.Multiline);But admittedly, nothing beats... [Unedited]
    C#, .NET

ASP.NET

  • YouTube Top 100: HTML5/ASP.NET Video Player - DrABELL
    YouTube All Time Top100 extended statistics in HTML5/ASP.NET Video Player (Feb 2012) [Unedited]
    Javascript, ASP.NET, WebForms, Video, Web-Development, CSS3, RIA, HTML5

C#

Programming Tips

Windows Presentation Foundation

New Technical Blogs added

C#

Design and Architecture

  • Software Architecture Cheat Blog 1: Design Principles - Shahriar Iqbal Chowdhury
    This blog series will gather a summary of all the software architecture design principles under one roof. [Unedited]
    All-Topics
  • EnterpriseIntegration-Camel - GanesanSenthilvel
    The purpose of a "patterns" book is not to advocate new techniques that the authors have invented, but rather to document existing best practices within a particular field. By doing this, the authors of a patterns book hope to spread knowledge of best practices and promote a vocabulary for discussin [Unedited]
    All-Topics

Java

Reviews on Third Party Products and Tools

  • ReadLine on Binary Stream - Omar Al Zabir
    When you are reading data from a binary stream, like NetworkStream or FileStream and you need to read both binary chunks as well as read one text line at a time, you are on your own as BinaryReader nor Stream supports ReadLine. You can use StreamReader to do ReadLine, but it does not allow you [...] [Unedited]
    C#

Site & Server Management

  • SQL SERVER – Identifying guest User using Policy Based Management - pinaldave
    If you are following my recent blog posts, you may have noticed that I’ve been writing a lot about Guest User in SQL Server. Here are all the blog posts which I have written on this subject: SQL SERVER – Disable Guest Account – Serious Security Issue SQL SERVER – Force Removing User from Database – [Unedited]
    C++, Windows

Uncategorised Technical Blogs

  • Ripple, the utility that saves you from your personal NuGet hell - Artem Smirnov
    codeproject Managing your dependencies with NuGet can be just fine.Unless you want some of these be compiled locally.For example, imagine that you have a complicated dependency graph, and you've just modified a source of one of the assemblies. Or you just want the freshest bits from the source c [Unedited]
    All-Topics

Windows Communication Foundation

  • Under the hood Part 2 : C++ WinRT Component DLL & C# Metro application - kishore Gaddam
    We have developed a C++ WinRT Component DLL & C#.NET application in the post here Under the hood Part 1 : C++ WinRT Component DLL & C#.NET Metro application The important point here is that the  C# application is accessing the C++ WinRT component through RCW mechanism. The same application can be de [Unedited]
    C#, Metro, WinRT

Work Issues

Technical Blogs updated

C#

  • From Untestable to Testable Console App - Felice Pollano
    In this post I will show how to make testable something that ( at least me ) usuallyleft as untested. I’m talking about the preparing phase of a console app, the checkingarguments error reporting and so on. That logic is usually so simple that any goodcow boy programmer would probably leave [Unedited]
    All-Topics

Java

Threads, Processes & IPC

  • ReaderWriterLock FTW! - StevenLJackson1
    Describes the .NET ReaderWriterLock object and how to use it effectively to create a thread safe Singleton. [Unedited]
    C#, Windows, .NET, Dev, Threading, multithreading, Singleton

Windows Presentation Foundation

XML

  • XML serialization using Generics - Rui Jarimba
    Serialize/deserialize your objects using generics. Customize settings like indentation, encoding, namespaces and others. [Unedited]
    C#, XML, Windows, .NET, Dev