Category Archives: Programming

Executing very large script on Microsoft SQL Server 2008 R2 fails

I was trying to execute very large .sql script in Microsoft SQL Server 2008 R2, that runs on Microsoft Windows Server 2008 R2. First I tried to copy/paste script into Microsoft SQL Server Management Studio. The server has plenty of … Continue reading

Posted in Databases, Programming | Tagged , , , | 1 Comment

Building OpenSSL with Visual Studio 2010 for x64 / Win64 causes error

Today I was trying to build the latest OpenSSL 1.0.1c with Visual Studio 2010. Following instructions form the INSTALL.W32, I was able to successfully build the 32-bit version. Trying the same with 64-bit (x64) version, again following the official instructions … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Did you know that IP addresses (IPv4) can be written in shorter representations?

Did you know that IPv4 addresses can be written in shorter representations, like IPv6 addresses? Everyone have seen form of IPv6 represented as “shorter form”: Example from IPv6: 2001::7334 ::1 :: You can use our free tool ipv6-literal.com to convert … Continue reading

Posted in Computers, OS, Programming | Tagged , , , , | Leave a comment

C# / .NET MessageBox is hidden behind the Form

Imagine calling the following C# code:MessageBox.Show(this, “Some text…”, “Title”, MessageBoxButtons.OKCancel); After executing this line, the Message Box is not visible, it seems like hidden behind your form, without input focus, mouse clicks cause default beeps, and it suddenly appears if … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

String.format in Java has weird rounding by default

I was participating in one of our Android projects, and while testing I discovered, that our program acted weird — app displayed one value, but acted like the value was different. The value was 1.45, and our Java Android app … Continue reading

Posted in Programming | Tagged , | 1 Comment

Visual Studio Form Editor: To prevent possible data loss before loading the designer, the following errors must be resolved

This is not the first time. I have seen this error message in the past (probably multiple times), and every time I look to this error and I do not understand, why it appeared and how to fix it. I … Continue reading

Posted in Programming | Tagged , , | 1 Comment

Your program is returning ErrorLevel 128 (exit code)

Here is a scenario: You have written a program; You run it; First line of the program never gets executed; ErrorLevel (exit code) 128 is returned. You search Google for solution, but nothing useful is found. This happened to me. … Continue reading

Posted in OS, Programming | Tagged , , | Leave a comment

How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and … Continue reading

Posted in Programming, Web | Tagged , , , | Leave a comment

Watch window shows ‘CXX0058: Error: overloaded operator not found’

If you add a Watch for std::vector using array subscript operator, like, myVector[5], then Visual Studio 2010 instead of showing value, will show the error: ‘CXX0058: Error: overloaded operator not found’. However when you cover std::vector with mouse, the tooltip … Continue reading

Posted in Programming | Tagged , , | Leave a comment

RegCopyTree fails with Access denied error (5) on Windows 7

MSDN documentation for RegCopyTree states that ‘The calling process must have KEY_CREATE_SUB_KEY access to the destination key’, however call fails on some keys with Access denied error (5) on Windows 7 Ultimate 64-bit. Changing desired access rights to KEY_ALL_ACCESS solves … Continue reading

Posted in OS, Programming | Tagged , , , | Leave a comment