Yesterday I got stuck with an application which had been required to show frequently updated data in a grid. Standard WinForm's DataGridView turned out to be too slow whatever approaches I tried.

Finally SourceGrid's DataGrid did the trick. This library implements three types of grids:


  • Grid - an unbound grid for small datasets;
  • DataGrid - control which can be binded to a DataTable;
  • ArrayGrid - ultra-fast grid backed with an Array.

So after a day spent on testing the library and developing with it, my application is ready. The customer applauds. And I am looking forward to use these controls in my future development.

Did you know that you can easily add controls to the Visual Stuido's toolbox? The algorithm is following:


  1. Start Visual Studio.
  2. Open toolbox.
  3. Open Windows Explorer and find the assembly which contains controls you want to add.
  4. Drag the assembly to VS toolbox.
  5. Enjoy coding with your newly added controls. :)


Drag'n'roll, baby!

Pinal Dave posted a great compilation of MS SQL questions frequently asked during job interviews. This is a must-have reading if you develop using Microsoft's RDBMS.

Link to the PDF - http://blog.sqlauthority.com/2007/04/21/sql-server-interview-questions-and-answers-complete-list-download/.

Good luck with the next interview! ;-)

Never Trust Path.Combine()

Posted by Humanier | 3:30 PM | , | 0 comments »

After spending half an hour trying to find out why path to an input file is built incorrectly, I realized that Path.Combine simply doesn't work as expected. Eventually I ended up writing my own code to the same stuff like in old good C++ times. :)


For Those Who Were Kids In 80th

Posted by Humanier | 1:05 PM | 0 comments »

If you were kid back in 80th, than most probably you know what ZX Spectrum means. :) You can find an emulator of this platform written in JavaScript and loaded with tons of great oldies at http://jsspeccy.zxdemo.org/.

Enjoy!




I know it's 21st century. Java and .NET rule the world. But one day you might got stuck with a piece of legacy code C++ code written in Visual Studio 6.0. And sometimes you end up debugging it in its native environment because converting the code to modern versions of runtime is too complex.

In this case you will be disappointed by VC6 abilities to watch contents of C++ strings (std::basic_string, MFC/WTL CString, BSTR, _bstr_t, CComBSTR, char*, WCHAR*). Most probably you'll have to either dump strings to a log file or print to a console of some kind.

But there's a wonderful plugin for Visual Studio 6 called XDebug. It was written by Eugene Ivakhiv. The plugin completely reinvents viewing of string variables' contents in VC6. You can find it here - http://www.codeguru.com/cpp/v-s/devstudio_macros/debugging/print.php/c5989/.

Recently I found a great chart explaining what new features HTML5 brings to us.


The image is clickable.


Net worth

Posted by Humanier | 2:57 AM | | 0 comments »

Click to enlarge the picture.

From Humanier

After copying few databases from another computer to newly installed computer I tried to attach them to the local SQL server. Bad luck! The server saw them as read-only databases.

Finally the issue was resolved by giving SQL server account full permissions to the databases files.