background preloader


Facebook Twitter


SandCastle. Create ActiveX in .NET Step by Step. Introduction At my job, I have had a project where I needed to deliver a solution for creating, distributing and running ActiveX controls written in .NET.

Create ActiveX in .NET Step by Step

This article summarizes all of it. Everything that is in this article can be found on the Web, but believe me this is not so easy;). Using the Code. OWIN and Katana.

Windows Services

Generics in the .NET Compact Framework - Welcome to Live Mesh! Parametric polymorphism (aka Generics) is one of the most interesting new features added to .NET CLR and languages in version 2.0 (Whidbey).

Generics in the .NET Compact Framework - Welcome to Live Mesh!

There are many good articles describing the feature and its’ implementation for the full .NET CLR. For those who interested in the design fundamentals of generics I’d strongly recommend the article by Don Syme and from Microsoft Research, who originally designed and implemented .NET generics. Bulk Insert into SQL CE 3.5 in C# Adding much data to a SQL CE database can be very slow.

Bulk Insert into SQL CE 3.5 in C#

If you try to for example add 10000 single records in one table with normal SQL INSERT command’s it would take at least 50 sec. So this could really use a performance boost. After some research I found this site: This really put into perspective the different ways you could do a bulk import with SQL CE. And in my project I decided to test the 3rd option with the ResultSet. SQL Compact 3rd party tools. This is an attempt at a comprehensive list of SQL Server Compact Microsoft and 3rd party tools, both commercial and non-commercial.

SQL Compact 3rd party tools

Please let me know if I have missed anything, and I will add it. Microsoft supplied tools SQL Server 2005 Management Studio Express SP2 (free, SQL CE 3.1)Link: SQL Server 2008 R2 Management Studio Express (free, SQL CE 3.5 SP2)Link: LINQ Challenges and SQL Server Compact Edition. Code, code and more code.: Re-implementing Expression for Compact Framework. How to detect and avoid memory and resources leaks in .NET applications. Rupreet/archive/2005/11/02/58873.aspx. There are some scenarios where need to check programmatically if the given file is a .NET assembly or not.


How do we do that? One way is to use reflection and try to load that file (assembly). If the assembly gets loaded, and doesn’t throw any exception, then yes, it’s a valid .NET assembly. If it’s not a valid file, then it’ll throw a “BadImageFormatException”. The idea of checking weather a file is assembly or not by loading it and checking if exception is thrown or not; doesn’t seem to be too clean way at least to me. The .NET File Format. Index Introduction The standards of the .NET format are public, you can find them on Microsoft and in your .NET SDK (look after "Partition II Metadata.doc"), but they are intended to be more like a reference, not really a guide.

The .NET File Format

So, the truth is that a description of the format can be useful. I mean, there's a huge difference between having the WinNT.h and having the full explanation of its structures and stuff. The documentation given by Microsoft has some explanations, but a lot of passages aren't very clear at all. Getting Started The only existing tool (at the moment) for viewing and editing the .NET format is my CFF Explorer. Building a .NET Disassembler (Part 1) There was a time, long ago, when I was in college, and thought it would be awesome to crack code.

Building a .NET Disassembler (Part 1)

This largely means digging into the bytes of an application, and seeing how it works, and possibly modifying the application code to suit your needs. Back in the days where just about everything was C/C++ or at least native code, this meant using a disassembler (like win32dasm for example) and strong assembly language skills. Reading PE format using data marshaling in .NET - Sergey Akopov. I recently picked up a book on IL by Serge Lidin titled Expert .NET 2.0 IL Assembler.

Reading PE format using data marshaling in .NET - Sergey Akopov

It is by far the most interesting book that I’ve read on .NET internals, which is actually fairly easy to follow thanks to the friendly nature of the managed environment and the awesomeness of the author. If you want to satisfy your curiosity about disassembling and generating IL code, this is the best book on the market. Anyway, the first couple of chapters in the book go over the Portable Executable (PE) format which is really vital in understanding how your compiler pieces together assemblies and how the loader is able to resolve dependencies and get everything into memory to get things executing. While going through the explanation of the PE format in the book is enough to understand the bare minimum, i decided to go hands-on and write a little PE parser. Before i throw down some code, I’d like to reference a few resources which will help in understanding the PE format better.

So, where do we begin? Peering Inside the PE: A Tour of the Win32 Portable Executable File Format. Matt Pietrek March 1994 Matt Pietrek is the author of Windows Internals (Addison-Wesley, 1993).

Peering Inside the PE: A Tour of the Win32 Portable Executable File Format

Peering Inside the PE: A Tour of the Win32 Portable Executable File Format. Matt Pietrek March 1994 Matt Pietrek is the author of Windows Internals (Addison-Wesley, 1993).

Peering Inside the PE: A Tour of the Win32 Portable Executable File Format

Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format. Long time ago, in a galaxy far away, I wrote one of my first articles for Microsoft Systems Journal (now MSDN® Magazine). The article, "Peering Inside the PE: A Tour of the Win32 Portable Executable File Format," turned out to be more popular than I had expected. To this day, I still hear from people (even within Microsoft) who use that article, which is still available from the MSDN Library. Unfortunately, the problem with articles is that they're static. Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format, Part 2. Ast month in Part 1 of this article, I began a comprehensive tour of Portable Executable (PE) files. I described the history of PE files and the data structures that make up the headers, including the section table. The PE headers and section table tell you what kind of code and data exists in the executable and where you should look to find it.

Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format. Calculating Metrics and Searching with a CodeDOM (Part 8) Introduction This article is about basic analysis of code in a CodeDOM, such as calculating metrics on it and searching it. Sources are included.


Head First C# - Source Code. Why doesn’t MEF support open-generics for exports? Because MEF is not type based. Update: We’ve posted an extension for doing open generics in MEF contrib. Read about it here: I get this question all the time. Recently it popped it’s head on the forums in this thread (which I referred to in my last post) In that thread, Andrew was asking why the following does not work? Open-generic support in MEF Contrib. A while ago I said it couldn’t be done, at least without hacky string parsing. Folks weren’t happy and they let us know it including Oren. Our team know the power that open-generic support brings to systems, but at the time there was no clean way to implement it in MEF.

Then a bunch of time passed, and we actually added some APIs to MEF which suddenly made achieving support a reality (thanks to Wes for pointing the path), and not in the hacky string-parsing way I had described. Managed Extensibility Framework - Understanding ContractBasedImportDefinition & GetExports. May 3, 2011 at 9:35 AM Edited May 3, 2011 at 12:29 PM Hi, Математическая библиотека для .NET. Нарастающий итог - сравнение производительности - Microsoft Russia ISV Team. Среднеквадратичное приближение функций. Энциклопедия Turbo Pascal. Главы 5-8. Math - Non-linear regression in C# Linear Regression with Math.NET Numerics - Christoph Rüegg. Прогнозирование финансовых временных рядов. Введение. 2.4 Методы прогнозной экстраполяции - Основы экономического прогнозирования - Монографии - Российская Академия Естествознания.

При формировании прогнозов с помощью экстраполяции обычно исходят из статистически складывающихся тенденций изменения тех или иных количественных характеристик объекта. .NET - Localization using Resource file.

Image Analyzing

ЕСИА. Using the OPTION (RECOMPILE) option for a statement - Kimberly L. Tripp. I started this series with the post titled: Little Bobby Tables, SQL Injection and EXECUTE AS. I then moved to discussing some of the differences with the post titled: EXEC and sp_executesql – how are they different? Today, I want to address a few of the comments as well as continue with a few tips and tricks using these commands. First off – could we have helped the performance of the sp_executesql statement? Yes… If we know that a statement returns a varying amount of data (based on the parameters supplied) then we can use the SQL Server 2005 feature WITH RECOMPILE to tell SQL Server that the statement being executed should have it's own plan created and that prior plans (if they exist) should not reuse the statement.

Chris Tacke - Not all Custom Attributes are created equal.


Demo Europe: VCs Get Their Pick Of Hungry Start-ups. Матричные фильтры обработки изображений. How to Add Custom Configuration Settings for an (ASP).NET Application. Serialization. POCO Proxies Part 2: Serializing POCO Proxies. General Topics. PM & Patterns. How Proxy Server serves FTP clients? C# Delegates, Anonymous Methods, and Lambda Expressions – O My! Iis6 - Certificates: Cannot find the certificate and private key for decryption Error when sign. .NET interop marshaling made easier. Mastering C# structs - C. Passing Managed Structures With Strings To Unmanaged Code Part 2 « limbioliong.

Набор полезных утилит и библиотек мира .NET. Mifare для разработчиков, Техническая документация. Chained null checks and the Maybe monad at C# - Using dynamic objects in codedom created LINQ queries. Implementing Dynamic Interfaces. Studio Styles - Visual Studio color schemes. Open-Generics Support in MEF– Building a simple sample - Ariel's Remote Data Center.

Damn Cool Algorithms: Cardinality Estimation. MEF vs. Unity in composite application (Prism) CavityServiceLocation - cavity - Provides XML configuration assistance for IoC providers - Tools and utilities for .NET. StructureMap — краткий справочник для работы (1/3) IoC libraries compared. .Net 4.0: Configuring MEF with Linq to Xml.

Ruby on Rails

.Net & Excel. MultiThreading. SerialPort. BinaryFormatter vs. Manual Serializing. Documentation:introduction [ - Public platform independent Near Field Communication (NFC) library] Йет эназер говноблог (лайт вершн) - Про копирование Mifare Classic и нехороших людей. Пишем свой сервис авто-обновлений.

Введение в Windows Server AppFabric. Hosting Services вместе с BizTalk и Service Bus / Блог компании Microsoft. Движок Azopho для создания галерей фотографий - Гайдар Магдануров. Convert C# to VB.NET - A free code conversion tool. Сайт поддержки сервис-инженеров и пользователей Контрольно-Кассовых Машин. MathML 2.0 installation in web browser. MathML Samples. Хеширование. Пепелсбей.net.

Design, Build and Release » Getting JQuery and WCF to talk (part one of two) Dreamsongs.

DSL and EF

F# ASP.Net & MVC. Objects Have Not Failed. FreeCssTemplates. Creating Custom Action for WIX Written in Managed Code without Votive. Loading the WCF configuration from different files on the client side - Pablo M. Cibraro (aka Cibrax) Gis. WPF.