Click here to Skip to main content

Articles by Ivan Krivyakov (Articles: 15, Technical Blogs: 40, Tip/Trick: 1)

Articles: 15, Technical Blogs: 40, Tip/Trick: 1

RSS Feed

Average article rating: 4.56

Applications & Tools

GenTestAsm: Run Your C++ Tests in nUnit
Posted: 21 Oct 2006   Updated: 11 Feb 2007   Views: 53,014   Rating: 4.00/5    Votes: 10   Popularity: 4.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 342
How to write unit tests in C++ and run them in nUnit

Web Services

WSE UNIX Kerberos Authentication: Getting Rid of Error WSE2351
Posted: 19 Feb 2007   Updated: 19 Feb 2007   Views: 19,364   Rating: 2.57/5    Votes: 3   Popularity: 1.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Using WSE to talk to a UNIX-based Kerberos-enabled web server.
Validating SOAP Message against WSDL
Posted: 16 Apr 2011   Updated: 8 Jun 2011   Views: 15,119   Rating: 4.25/5    Votes: 3   Popularity: 2.03
Licence: The Apache License, Version 2.0      Bookmarked: 7   Downloaded: 845
A program that checks whether SOAP message conforms to WSDL

C#

C# for MS-DOS: Expression trees compiled into 16-bit MS-DOS binary
Posted: 4 Sep 2008   Updated: 4 Sep 2008   Views: 18,250   Rating: 5.00/5    Votes: 15   Popularity: 5.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 157
C# arithmetic expressions compiled into 8086 machine code (yes, you can run it on Vista :-))
IP Watchdog: Simple Windows Service Written in C#
Posted: 11 Jul 2012   Updated: 14 Aug 2012   Views: 28,155   Rating: 4.86/5    Votes: 34   Popularity: 7.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 125   Downloaded: 1,960
Self-installing windows service that monitors computer's WAN address and sends e-mail when it changes

.NET Framework

Comparing .NET XML Serializers: Part One
Posted: 30 Jul 2010   Updated: 30 Jul 2010   Views: 12,129   Rating: 4.43/5    Votes: 7   Popularity: 3.80
Licence: The Apache License, Version 2.0      Bookmarked: 24   Downloaded: 171
What serializer is the best for saving application state?

Windows Presentation Foundation

The Perils of Canceling WPF ComboBox Selection
Posted: 20 Jun 2012   Updated: 21 Jun 2012   Views: 5,185   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 100
How to deal with a stubborn combo box that won't let you cancel invalid user selection
How to Embed Arbitrary Content in a WPF Control
Posted: 19 May 2010   Updated: 19 Sep 2012   Views: 17,479   Rating: 4.64/5    Votes: 9   Popularity: 4.41
Licence: The Apache License, Version 2.0      Bookmarked: 19   Downloaded: 448
Many WPF controls can display arbitrary XAML inside them. How can I do that with my own controls?
WPF: Hosting WinForms Control from Another AppDomain
Posted: 18 Oct 2012   Updated: 18 Oct 2012   Views: 3,098   Rating: 4.33/5    Votes: 3   Popularity: 2.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 108
How to host a WinForm control from another appdomain in a WPF application
WPF TabControl: Turning Off Tab Virtualization
Posted: 17 Sep 2012   Updated: 2 Dec 2012   Views: 12,143   Rating: 5.00/5    Votes: 15   Popularity: 5.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 26   Downloaded: 534
This is an alternative for "Persist the Visual Tree when switching tabs in the WPF TabControl (optimized)".
Baktun Shell: Hosting WPF Child Windows in Another Process
Posted: 27 Dec 2012   Updated: 27 Mar 2013   Views: 11,170   Rating: 4.92/5    Votes: 10   Popularity: 4.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 0
Baktun Shell is a demo app that hosts its child windows in separate processes.
WPF: ContextMenu Strikes Again. DataContext Not Updated
Posted: 27 Feb 2011   Updated: 27 Feb 2011   Views: 15,556   Rating: 4.71/5    Votes: 6   Popularity: 3.63
Licence: The Apache License, Version 2.0      Bookmarked: 8   Downloaded: 414
ContextMenu's data context is not updated when its parent's data context changes
MathConverter - How to Do Math in XAML
Posted: 10 Aug 2011   Updated: 27 Aug 2011   Views: 10,762   Rating: 4.85/5    Votes: 9   Popularity: 4.62
Licence: The Apache License, Version 2.0      Bookmarked: 25   Downloaded: 699
Value converter for WPF/Silverlight that supports arithmetic experssions.
Creating WPF Data Templates in Code: The Right Way
Posted: 21 Aug 2012   Updated: 21 Aug 2012   Views: 7,711   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 219
How to properly create WPF Data Tempaltes in code

Internet / Network

Remoting Proxy Support for Rhino Mocks
Posted: 17 Dec 2007   Updated: 17 Dec 2007   Views: 13,200   Rating: 4.89/5    Votes: 5   Popularity: 3.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 0
Rhino Mocks version 3.3 can mock any MarshalByRefObject.

Average blogs rating: 4.52

Combo & List Boxes

WPF: Context Menu on List Item [Technical Blog]
Posted: 12 May 2010   Updated: 12 May 2010   Views: 12,002   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Apache License, Version 2.0      Bookmarked: 5   Downloaded: 0
WPF: Context Menu on List Item

Grid & Data Controls

WPF: Passing Data to Sub-Views via DataContext Causes Trouble [Technical Blog]
Posted: 16 Dec 2010   Updated: 16 Dec 2010   Views: 6,805   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
WPF: Passing Data to Sub-Views via DataContext Causes Trouble
WPF Grid: Showing Tooltip over Empty Space [Technical Blog]
Posted: 28 Dec 2010   Updated: 28 Dec 2010   Views: 6,386   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
You can define a tooltip on a grid (or border), but it will show up only when the mouse hovers over space “occupied” by a grid item. Empty space will not generate the tooltip. E.g. The tooltip will show only when hovering over a small [...]

Tabs & Property Pages

Retrieve the LoaderException property for more information… [Technical Blog]
Posted: 29 Nov 2012   Updated: 29 Nov 2012   Views: 2,848   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Here’s the exception I received today: System.Reflection.ReflectionTypeLoadException. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Isn’t it lovely? Do the authors think I have a little leprechaun sitting on the user machi

Silverlight

Silverlight Clipping Fun [Technical Blog]
Posted: 10 Aug 2012   Updated: 10 Aug 2012   Views: 2,310   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
Silverlight's support for clipping is definitely inferior.

Trace and Logs

.NET: Exception stack trace has no frames above the catch point [Technical Blog]
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 4,857   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
I never thought about it, but it turns out that exception’s stack trace does not contain the full stack. Instead, it contains only frames between the point where the exception was thrown and the point it is caught. This is bad if exception is caught close to the point of throwing and logged: u

Mobile Development

Touches [Technical Blog]
Posted: 2 Feb 2013   Updated: 2 Feb 2013   Views: 3,503   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Some useful JavaScript code.

Database

Database proramming rant [Technical Blog]
Posted: 9 Aug 2010   Updated: 9 Aug 2010   Views: 5,820   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
After a long while I am back to dealing with databases directly from ADO.NET. Guys, this is ridiculous. Any serious library designed like that would be heckled. This is what I found (or rediscovered) in the course of one day:if your SqlConnection uses SQL Server local transaction, you must manually

C#

PLinq and source IEnumerable thread safety [Technical Blog]
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 2,526   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
PLinq and source IEnumerable thread safety
Object Factory in Unity 2.x [Technical Blog]
Posted: 6 Dec 2012   Updated: 6 Dec 2012   Views: 1,814   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
A couple of days ago I spent some time trying to find how to make Unity call a factory method when user requests an object. Then I forgot about it, and tried to Google it again. This stuff is surprisingly hard to find, especially given the fact that the method used in Unity 1.x (StaticFactoryExtensi

XML

Researching XML Serializers for .NET – Work in Progress [Technical Blog]
Posted: 25 Jun 2010   Updated: 28 Jun 2010   Views: 6,007   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
After a little discussion at work on which XML serializer for .NET to use, I decided to do a little research. The candidates were the regular XmlSerializer, the XAML serializer (XamlWriter / XamlReader) and the DataContractSerializer from WCF. Frankly, all of them suck in different ways...

.NET Framework

IEnumerable: Lazy and Dangerous [Technical Blog]
Posted: 8 Feb 2011   Updated: 8 Feb 2011   Views: 7,520   Rating: 4.67/5    Votes: 3   Popularity: 2.23
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
IEnumerable: Lazy and Dangerous
Visual Studio Extensibility [Technical Blog]
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 3,111   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
Just wrote a quick macro for Visual Studio that would replace with >, etc.

Windows Powershell

Scripting on Windows [Technical Blog]
Posted: 20 Apr 2013   Updated: 21 Apr 2013   Views: 3,038   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
Scripting on Windows

Windows Presentation Foundation

If your custom WPF control just would not show up [Technical Blog]
Posted: 24 Dec 2010   Updated: 27 Dec 2010   Views: 5,239   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
Story in a nutshell – my custom control was not visible. Reason: we defined default style for the control in our own resource dictionary, which was merged into application resources. It worked fine until we wanted to redefine the style locally in one of the controls. [...]
Binding does not a dependency property make [Technical Blog]
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 2,372   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
This simple trick stops the binding gremlins on their tracks, as only a dependency property can be their target.
WPF: Beware of zombie animations freezing your properties [Technical Blog]
Posted: 10 Sep 2012   Updated: 10 Sep 2012   Views: 2,353   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
Preventing zombie animations from freezing your properties.
WPF: Merged dictionary parser depends on XML attribute order [Technical Blog]
Posted: 13 Aug 2010   Updated: 13 Aug 2010   Views: 6,465   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 5   Downloaded: 0
Attribute order should not matter in XAML, but sometimes it does...

Game Development

Software Development: A Day in The Life (Long) [Technical Blog]
Posted: 10 Sep 2012   Updated: 10 Sep 2012   Views: 2,667   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
At times I feel that software development is much, much harder than it should be. Ridiculous crappy annoyances await you on every corner, some of them many years old. We all, including the tool vendors, never have time to do the job right, causing people to fall into the same traps over and over aga

Localisation

Is Turkish the only locale with unusual capitalization? [Technical Blog]
Posted: 30 Dec 2012   Updated: 30 Dec 2012   Views: 1,890   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Is Turkish the only locale with unusual capitalization?

Macros and Add-ins

Once more about macros in C# [Technical Blog]
Posted: 11 May 2010   Updated: 11 May 2010   Views: 8,791   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
I am writing a WPF app. In WPF they like very much all kinds of notifications about property changes. Thus, I’ve got a class with a bunch of properties similar to this:    class Person    {        void OnPropertyChanged(string propertyName)        {        …        }         public str

String handling

.NET: String Constants vs Static Readonly Fields [Technical Blog]
Posted: 13 Jan 2013   Updated: 13 Jan 2013   Views: 4,982   Rating: 4.33/5    Votes: 6   Popularity: 3.42
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
If there is even a remote possibility that your “constant” value might change in the next version, make it a readonly field.

Threads, Processes & IPC

MessageBoxes and worker threads [Technical Blog]
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 10,735   Rating: 4.85/5    Votes: 5   Popularity: 3.38
Licence: The Apache License, Version 2.0      Bookmarked: 9   Downloaded: 0
MessageBoxes and worker threads
BackgroundWorker and UI threads [Technical Blog]
Posted: 21 Jul 2011   Updated: 27 Jul 2011   Views: 13,923   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 8   Downloaded: 0
Popular belief (reinforced indirectly by MSDN) is that BackgroundWorker class will marshal the “progress” and “completed” events back to the calling thread. This turned out to be most certainly not true. A more restricted (and closer to reality) form of this belief is that if

Windows 8 Design

Windows 8 My Brain [Technical Blog]
Posted: 20 Sep 2012   Updated: 20 Sep 2012   Views: 4,690   Rating: 3.73/5    Votes: 7   Popularity: 3.04
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
A couple of weeks ago I have found time to download release version of Windows 8 from MSDN that was available since August 15th. I installed in a virtual machine and played with it a couple of times. I must tell you, I am impressed, and not in a good way. I’ve been using Windows [...]

Design and Architecture

Another Example for Object Factory [Technical Blog]
Posted: 10 Dec 2012   Updated: 10 Dec 2012   Views: 2,308   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
A closer to real life example for object factory.

Uncategorised Technical Blogs

C#: Trouble with Lambdas in For Loops [Technical Blog]
Posted: 14 May 2010   Updated: 14 May 2010   Views: 3,043   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
I had an interesting bug the other day. I wrote a foreach loop along these lines:foreach (var entry in controlsByName){    entry.Key.SomeEvent += (sender,args)=>{ProcessControlName(entry.Value);}}Looks innocent enough, right? There is a big catch here. In functional languages we are accustomed to th
T4 – Too Troublesome to Tackle? [Technical Blog]
Posted: 18 May 2010   Updated: 18 May 2010   Views: 5,047   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
T4 – Too Troublesome to Tackle?
TFS and the KISS principle [Technical Blog]
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 5,224   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
TFS and the KISS principle
CSV: Carelessly Saved Values [Technical Blog]
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 3,237   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
CSV: Carelessly Saved Values
One Hour Iteration, or How Much Agile is Too Much [Technical Blog]
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 3,103   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
One Hour Iteration, or How Much Agile is Too Much
Some anti-patterns I am experiencing first hand [Technical Blog]
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 6,697   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
Some anti-patterns I am experiencing first hand
WPF Bindings [Technical Blog]
Posted: 18 Apr 2011   Updated: 18 Apr 2011   Views: 3,661   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
WPF Bindings
Prism 2.x Weirdness [Technical Blog]
Posted: 11 Feb 2012   Updated: 11 Feb 2012   Views: 6,577   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Prism 2.x Weirdness
In GAC we Trust [Technical Blog]
Posted: 29 Nov 2012   Updated: 29 Nov 2012   Views: 2,016   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
I am writing a plugin-hosting WPF application. For variety of reasons I have to put plugin-ins into their own app domains. To name just a few: - plugin unload is required - each plugin has its own config file - plugins may be located anywhere on the disk I am having serious troubles due to [...]
SSRS Production Deployment, Part 1 [Technical Blog]
Posted: 3 May 2013   Updated: 3 May 2013   Views: 1,431   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
SSRS production deployment
SSRS Production Deployment: Part 2 [Technical Blog]
Posted: 4 May 2013   Updated: 4 May 2013   Views: 2,255   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
Part 2 of SSRS production deployment
SSRS Production Deployment: Part 3 [Technical Blog]
Posted: 6 May 2013   Updated: 6 May 2013   Views: 1,899   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Deploying reports

Reviews on Third Party Products and Tools

C# Namespaces and Backward Compatibility – Part 1 [Technical Blog]
Posted: 14 Mar 2012   Updated: 14 Mar 2012   Views: 2,806   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Namespaces are a great way to organize code. However, I recently found out that even putting your classes in a carefully organized namespace hierarchy will not shield you from name conflict problems as you move to newer versions of .NET framework or third party libraries. I ran into two rather unfor
Random Notes on MDX Filtering [Technical Blog]
Posted: 9 May 2013   Updated: 9 May 2013   Views: 1,794   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Random notes on MDX filtering

Average tips rating: 5.00

Programming Tips

Don’t Move or I Will Shoot Your Bindings [Tip/Trick]
Posted: 29 Mar 2011   Updated: 29 Mar 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
How WPF binding systems sometimes fail silently.

Ivan Krivyakov
Architect Sungard Consulting Services
United States United States
Member
Ivan is a hands-on software architect working for SunGard Consulting, in the New York City area. At present I am mostly building complex multi-threaded WPF application for the financial sector, but I am also interested in cloud computing, web development, mobile development, etc.
 
Please visit my web site: www.ikriv.com.


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 18 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid