IT Technology Blog

IT technology blog, featuring the essence for you to read the article, is to learn IT technology blog first choice

Model View Presenter Pattern Implementation in ASP.NET

Download cSharpWebSite - 141.99 KB Introduction & Background Model View Presenter (MVP) is a design pattern used for web as well as windows application. It specially uses where the application has some user interface for interaction like winform for windows app and webform for web app. In this tutorial, I will show you how to implement MVP in web app as well as windows app. Another im

C# .NET Autoupdate Application Launcher

Download ArticleAutoUpdater - 284.84 KB Launcher/Updater Introduction When we develop web-based solutions, usually, we are in charge of updating the installations to use a current version. We fix some bugs, add a feature, make a patch, and deploy it so that our customers can continue using our software without interruption. But when we have clients installing our software, we still need to give

Aimee.NET - Faster Unit Tests and Refactoring the Documents Folder

Download AnalyzeTestResults - 591 B Download TestResult - 67.57 KB Introduction The code corresponding to this article is available on CodePlex here. Articles in this series: Aimee.NET - Refactoring Lucene.NET: Setting up the Project Aimee.NET - Faster Unit Tests and Refactoring the Documents Folder This is the second in a series of article on refactoring Lucene.NET to follow .NET be

Owner drawn text table control

Download BTable.zip - 115.81 KB Introduction This article describes a text table control with editing, checkboxes, cells merge, multiline and customizable appearance. Data binding is NOT supported. Here is a screenshot: Background In one of my projects I needed simple table/grid control for text with minimal edit functions but with word wrap and

Dynamic Font Size Using HTML and JavaScript

Download source code - 163.97 KB Introduction Many web pages can benefit from an ability for the user to change the font size dynamically. This article describes a method to build web pages that provide that functionality using HTML and JavaScript. Background Quite often, I find myself using the Ctrl-Plus shortcut (in Internet Explorer) to increase the size of a web page font. Unfortunately

Bike In City with Windows Phone 7

Download BikeInCitySource.zip - 759.15 KB Contents Contents Contents Introduction Background Architecture Data Model Using and emulating GPS GPS in emulator Computing distance on Earth’s surface Getting the data Getting information from the bike system Getting list of all stations Getting the details of a station Using Bing Maps Services Geocoding address Calculating Route Preparing t

XmlToXsd - A better schema generator

Source Download Xml2Xsd.zip - 5.07 KB Download Binary Xml2Xsd_bin.zip - 6.07 KB Introduction Frequently in line of business projects you need to generate complex schemas. This article outlines rapid prototyping of high quality/maintainable schema from sample xml such that derivative object models generate cleanly in all platforms.  Background There are many tools for creating a

Data linking with jQuery

Download Datalinking_Sample - 54.16 KB Data linking with jQuery Introduction What is jQuery Prerequisite Data linking One way linking Converters Two way linking Conclusion Feed back Introduction: Recently, Microsoft anounced three jQuery plugins as Official plugin. jQuery Client Templating Data linking Globalisation. In my last article, I discussed about the jQuery Templating.

POCO Entities Through RIA Services

Introduction The point of using plain old class objects (POCO) is to abstract your data from the Entity Framework v4 (EF4) .edmx files for the purposes of portability, testing, data security, data validation, and providing data services; further abstraction is placing the POCO classes in a DLL separate from the EDMX file. This article does just that by demonstrating how to generate plain old clas

A simple way to create word documents by template in java under windows platform

Download zzutils_codeblocks - 16.82 KB Download zzutils_eclipse - 4.72 KB Introduction Here have some open source projects which can create word documents in java, like apache poi, itext, etc. But use COM is a simple way to create word documents in java under windows platform. So I will show how to use JNI technology call windows COM in this article. Setup development environment 1. Downl

Elucidating all about Code Analysis in Visual C++

Introduction Every professional C++ programmer knows about the complexity levels of C++ programs, about the deeply buried bugs in code and difficult approach to find and resolve them. Even after compiling the code with highest warning levels, few bugs remain persistent in code. Thus, the need for a tool that can analyze the code in heuristic manner, i.e. by intelligently looking at surrounding co

Mapinfo Tab to ESRI Shapefile Converter

Download source files - 65.4 KB Introduction Mapinfo tab to ESRI shapefile converter can convert MapInfo vector tables to the ESRI shape format. It is implemented as a command line interface to IMUT.exe. Using the Code This is a code sample, and will only work with Universal Translator Imut files. char szExeFile[1024]; sprintf(szExeFile, "\"%s\\imut.exe\" CFGenerate " "MAPINFO SHA

Remote Control PCs

Download solution (VS 2005) - 1.53 MB Download solution (VS 2008) - 1.19 MB Introduction Here are two projects that work together to remote control PCs. This software only works for XP and above, and is very stable. The server can handle multiple clients, and each client can handle multiple connections to the same or different servers. The projects are a server and client pair. The server is

Adapting old code to new realities

Table of contents Introduction 1. Prerequisites 2. Transfer process 2.1 Removing the unnecessary code 2.2 Preprocessor and conditional compilation. 2.3 switch and goto operators 2.4 Time to gather stones 2.5 Preprocessor again and multiple inheritance 2.6 typedef operator 2.7. Pointer arithmetic 2.8 Function pointers 2.9 Isolation of the "problem code" 2.10 Changing compiler 2.11 Making it all wo

Single point construction of hierarchical objects in C++

Introduction As it is well known smart pointer with reference counting in C++ are responsible for sharing object pointer and managing its memory life cycle. When using smart pointers it is assumed that internal object pointer that is managed by the smart pointer is not accessible outside the smart pointer. Accessability of the internal object pointer outside the smart pointer may lead to an accid

MFC/C++ Helper Class for Window Resizing

Download source code - 153.22 KB Download demo - 75.8 KB Introduction In MFC, resizing or repositioning controls could be quite bothersome. If you are familiar with the .NET platform, things are much more simplified with the use of the Anchor and Dock properties of the Control class and design-time support for adding child controls to container controls. I tried to mimic some of th

View PDF files in C# using the Xpdf and muPDF library, Print PostScript.

Download code from SVN (Code Google)    Introduction  Xpdf is an Open Source library released under GPL license; they have an ActiveX with commercial license, but some time ago, before I knew about this commercial control, I wrote this wrapper library to render PDF files in C#.  Background The basic idea is create a preview of PDF files in C#. After looking at many places

Iterative Implementation of Recursively Enumerating Files and Sub Folders

Download source code of FileEnum - 55.6 KB Download demo of FileEnum - 35.14 KB Download source code of QuickOpenFiles - 122.32 KB Download demo of QuickOpenFiles - 62.96 KB The demo application, QuickOpenFiles. Introduction Microsoft provided a sample code for Listing Files in a Directory, but that example code cannot be used to list files in the sub-directory, so how can we do that? E

XLineCounter , count number of source code lines

Download XLineCounter_1.0_source.zip - 4.29 MB   Introduction XLineCounter is a open source C# program to analyze source code files and count number of source code line. It can count number of source line, comment line and blank line. Background Million of programmers work hard year after year, and write many source codes in C++, C#, VB or Delphi. Some times they want know how many line

C++0x Dynamic Message Passing

Download mp_object - 1.01 KBDownload main - 447 B IntroductionSometimes it is useful to have dynamic message passing as in Objective-C. The small header presented below allows any class to contain a dynamic message map that can be used to add methods dynamically to an object.BackgroundObjective-C is deemed more flexible than C++ because it allows a form of dynamic dispatch known as message pas