Click here to Skip to main content

Articles by Ivan Krivyakov (Articles: 16, Technical Blogs: 47, Tip/Trick: 1)

Articles: 16, Technical Blogs: 47, Tip/Trick: 1

RSS Feed

Average article rating: 4.62

Applications & Tools
General
Posted: 21 Oct 2006   Updated: 11 Feb 2007   Views: 56,016   Rating: 4.00/5    Votes: 10   Popularity: 4.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 380
How to write unit tests in C++ and run them in nUnit
Web Services
General
Posted: 19 Feb 2007   Updated: 19 Feb 2007   Views: 20,456   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.
Posted: 16 Apr 2011   Updated: 8 Jun 2011   Views: 21,199   Rating: 4.40/5    Votes: 4   Popularity: 2.56
Licence: The Apache License, Version 2.0      Bookmarked: 10   Downloaded: 1,131
A program that checks whether SOAP message conforms to WSDL
C#
Samples
Posted: 4 Sep 2008   Updated: 4 Sep 2008   Views: 19,980   Rating: 5.00/5    Votes: 15   Popularity: 5.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 191
C# arithmetic expressions compiled into 8086 machine code (yes, you can run it on Vista :-))
Posted: 11 Jul 2012   Updated: 14 Aug 2012   Views: 44,254   Rating: 4.88/5    Votes: 39   Popularity: 7.75
Licence: The Code Project Open License (CPOL)      Bookmarked: 144   Downloaded: 3,136
Self-installing windows service that monitors computer's WAN address and sends e-mail when it changes
.NET Framework
General
Posted: 30 Jul 2010   Updated: 30 Jul 2010   Views: 14,369   Rating: 4.43/5    Votes: 7   Popularity: 3.80
Licence: The Apache License, Version 2.0      Bookmarked: 25   Downloaded: 208
What serializer is the best for saving application state?
Posted: 11 Aug 2013   Updated: 11 Aug 2013   Views: 4,230   Rating: 4.87/5    Votes: 5   Popularity: 3.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
AppDomains are often recommended for loading plugins, but they do not allow to handle plugin failures in a safe manner
Windows Presentation Foundation
Controls
Posted: 20 Jun 2012   Updated: 21 Jun 2012   Views: 8,256   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 176
How to deal with a stubborn combo box that won't let you cancel invalid user selection
Posted: 19 May 2010   Updated: 19 Sep 2012   Views: 24,358   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: The Apache License, Version 2.0      Bookmarked: 23   Downloaded: 629
Many WPF controls can display arbitrary XAML inside them. How can I do that with my own controls?
Posted: 18 Oct 2012   Updated: 18 Oct 2012   Views: 5,549   Rating: 4.50/5    Votes: 4   Popularity: 2.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 222
How to host a WinForm control from another appdomain in a WPF application
Posted: 17 Sep 2012   Updated: 2 Dec 2012   Views: 23,297   Rating: 5.00/5    Votes: 23   Popularity: 6.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 970
This is an alternative for "Persist the Visual Tree when switching tabs in the WPF TabControl (optimized)".
Posted: 27 Dec 2012   Updated: 11 Mar 2014   Views: 29,219   Rating: 4.98/5    Votes: 21   Popularity: 6.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 50   Downloaded: 0
Baktun Shell is a demo app that hosts its child windows in separate processes.
Data Binding
Posted: 27 Feb 2011   Updated: 27 Feb 2011   Views: 21,490   Rating: 4.78/5    Votes: 8   Popularity: 4.29
Licence: The Apache License, Version 2.0      Bookmarked: 9   Downloaded: 564
ContextMenu's data context is not updated when its parent's data context changes
Posted: 10 Aug 2011   Updated: 27 Aug 2011   Views: 15,173   Rating: 4.85/5    Votes: 9   Popularity: 4.62
Licence: The Apache License, Version 2.0      Bookmarked: 28   Downloaded: 977
Value converter for WPF/Silverlight that supports arithmetic experssions.
Templates
Posted: 21 Aug 2012   Updated: 21 Aug 2012   Views: 18,989   Rating: 4.80/5    Votes: 7   Popularity: 4.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 563
How to properly create WPF Data Tempaltes in code
Internet / Network
Remoting
Posted: 17 Dec 2007   Updated: 17 Dec 2007   Views: 14,419   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.31

Combo & List Boxes
Extending the List Control
Posted: 12 May 2010   Updated: 12 May 2010   Views: 16,635   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Apache License, Version 2.0      Bookmarked: 7   Downloaded: 0
WPF: Context Menu on List Item
Grid & Data Controls
General
Posted: 16 Dec 2010   Updated: 16 Dec 2010   Views: 8,156   Rating: 4.25/5    Votes: 3   Popularity: 2.07
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
WPF: Passing Data to Sub-Views via DataContext Causes Trouble
Grid controls
Posted: 28 Dec 2010   Updated: 28 Dec 2010   Views: 8,383   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
Tabs and Property Pages
Posted: 29 Nov 2012   Updated: 29 Nov 2012   Views: 7,202   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
General
Posted: 10 Aug 2012   Updated: 10 Aug 2012   Views: 3,016   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
Trace / Logs
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 5,687   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
General
Posted: 2 Feb 2013   Updated: 2 Feb 2013   Views: 4,138   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
SQL Server
Posted: 9 Aug 2010   Updated: 9 Aug 2010   Views: 6,449   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
Posted: 7 Sep 2013   Updated: 7 Sep 2013   Views: 2,037   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
All your databases belong to us
C#
General
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 3,238   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
PLinq and source IEnumerable thread safety
Posted: 6 Dec 2012   Updated: 6 Dec 2012   Views: 2,887   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
Serializing
Posted: 25 Jun 2010   Updated: 28 Jun 2010   Views: 6,618   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 5   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
General
Posted: 8 Feb 2011   Updated: 8 Feb 2011   Views: 8,900   Rating: 4.67/5    Votes: 3   Popularity: 2.23
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
IEnumerable: Lazy and Dangerous
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 4,024   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
General
Posted: 20 Apr 2013   Updated: 21 Apr 2013   Views: 4,245   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
Controls
Posted: 24 Dec 2010   Updated: 27 Dec 2010   Views: 6,985   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. [...]
Data Binding
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 3,205   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.
General
Posted: 10 Sep 2012   Updated: 10 Sep 2012   Views: 3,058   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.
XAML
Posted: 13 Aug 2010   Updated: 13 Aug 2010   Views: 6,996   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...
Exception Handling
General
Posted: 24 Jun 2013   Updated: 24 Jun 2013   Views: 3,499   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
How to handle exceptions in plugins hosted in an AppDomain
Game Development
General
Posted: 10 Sep 2012   Updated: 10 Sep 2012   Views: 3,620   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
General
Posted: 30 Dec 2012   Updated: 30 Dec 2012   Views: 3,188   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
Macros
Posted: 11 May 2010   Updated: 11 May 2010   Views: 10,145   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
General
Posted: 13 Jan 2013   Updated: 13 Jan 2013   Views: 8,244   Rating: 4.29/5    Votes: 7   Popularity: 3.66
Licence: The Apache License, Version 2.0      Bookmarked: 5   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
Threads
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 13,220   Rating: 4.57/5    Votes: 6   Popularity: 3.77
Licence: The Apache License, Version 2.0      Bookmarked: 9   Downloaded: 0
MessageBoxes and worker threads
Posted: 21 Jul 2011   Updated: 27 Jul 2011   Views: 16,634   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 9   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
General
Posted: 20 Sep 2012   Updated: 20 Sep 2012   Views: 6,659   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
General
Posted: 10 Dec 2012   Updated: 10 Dec 2012   Views: 3,175   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
General
Posted: 14 May 2010   Updated: 14 May 2010   Views: 3,369   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
Posted: 18 May 2010   Updated: 18 May 2010   Views: 5,744   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?
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 5,846   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
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 3,666   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
CSV: Carelessly Saved Values
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 3,487   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
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 7,430   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
Posted: 18 Apr 2011   Updated: 18 Apr 2011   Views: 4,162   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
WPF Bindings
Posted: 11 Feb 2012   Updated: 11 Feb 2012   Views: 7,050   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Prism 2.x Weirdness
Posted: 29 Nov 2012   Updated: 29 Nov 2012   Views: 2,935   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 [...]
Posted: 3 May 2013   Updated: 3 May 2013   Views: 4,060   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
SSRS production deployment
Posted: 4 May 2013   Updated: 4 May 2013   Views: 4,236   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
Part 2 of SSRS production deployment
Posted: 6 May 2013   Updated: 6 May 2013   Views: 5,492   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Apache License, Version 2.0      Bookmarked: 5   Downloaded: 0
Deploying reports
Posted: 8 Jun 2013   Updated: 8 Jun 2013   Views: 3,275   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Sending more than 4000 characters from CLR stored procedure
Posted: 8 Jun 2013   Updated: 8 Jun 2013   Views: 4,351   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
How to install a NuGet package in 19 easy steps
Posted: 26 Jun 2013   Updated: 26 Jun 2013   Views: 4,149   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
About DLL hell in JQuery
Posted: 3 Jul 2013   Updated: 3 Jul 2013   Views: 2,798   Rating: 1.00/5    Votes: 2   Popularity: 0.30
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
I would rather have the message honestly tell me what happened, and only then elaborate on a list of typical reasons.
Posted: 7 Sep 2013   Updated: 7 Sep 2013   Views: 2,223   Rating: 2.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
This post discusses why I would not recommend SSRS.
Reviews on Third Party Products and Tools
General
Posted: 14 Mar 2012   Updated: 14 Mar 2012   Views: 4,686   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
Posted: 9 May 2013   Updated: 9 May 2013   Views: 3,012   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
General
Posted: 29 Mar 2011   Updated: 29 Mar 2011   Views: 4,567   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
How WPF binding systems sometimes fail silently.
No reference articles have been posted.

Ivan Krivyakov
Technical Lead Thomson Reuters
United States United States
Ivan is a hands-on software architect/technical lead working for Thomson Reuters 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
Web04 | 2.8.140415.2 | Last Updated 18 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid