Blogs

Events and BinaryFormatter serialization in .NET

Serialization in .NET world is not straightforward. For years we've been told to use XmlSerializer, but it has its limitations. It is unable to serialize anything but the public properties/fields, it cannot deal with interfaces in most of the circumstances (specific collection interfaces being the only notable exception) etc.

Topic: 

Source code highlighting in Drupal

It is nice to be able to blog about software. For instance, a few years ago I wrote an article about web development using C++. I still get a comment or two about it almost every week, despite the fact that not a single line of code has been written for the project, unfortunately. However, if I ever took the initiative and started working on it, I would, no doubt, write some interesting progress reports here as well. As things go, it would be very neat to show off some code in the process.

Topic: 

Code generation in Visual Studio

I have never suspected that Microsoft had this built-in, but it appears to be the case. Code generator called T4, which targets both C# or VB.NET, is built into your copy of Visual Studio and is available as you read this article. Basically, all you need is to add a new file to your solution with the extension .tt, and that's it, besides from actually writing the code for the template.

Restore window location in WPF

For years I was server-oriented developer, quite often writing code for Unix environment and helping others to do so. However I never mind doing occasional user-oriented application or two. Lately I've been doing a lot of .NET GUI development using WPF (Windows Presentation Framework). A small task seems to come up quite often. If you have a GUI application, you usually want it to start in the same state it was left it when used last time. In particular this is true regarding its position and size.

Topic: 

Clever spammers

There is no doubt - spammers are becoming cleverer every day. I've added CAPTCHA verification to my site in order to prevent spam comments from being submitted. It really helped - previously I used to remove about 10-20 of them on daily basis, offering everything from child pornography to grey mortgages. However, even after the new safety measures have been introduced, I still get a couple of comments a week, which were created by spammers. Somehow they manage to break CAPTCHA. In addition, they texts are quite long, compared to the traditional "go-to-this-web-site-and-buy-stuff" ads.

Topic: 

New software

Great new piece of software, recently discovered by me - Foxit PDF Reader. Just a few advantages over the standard Acrobat Reader: it's faster, simpler and, most important, it allows you to save data in PDF forms! Yes, the so much desired feature, that is not available in the free version of Acrobat is readily usable in Foxit absolutely free of charge.

Topic: 

Drupal modules

I like Drupal a lot. It's a great system, easy to set up and use, and the most important thing, there are plenty of modules, which provide additional functionality. However, every time the Drupal development team release a new major version, the module authors have to change their modules in order to adopt to the new platform. This is a major drawback, because it is a considerable obstacle for those, wishing to migrate to the new version.