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 these addresses to long form. The result is: 2001:0000:0000:0000:0000:0000:0000:7334 0000:0000:0000:0000:0000:0000:0000:0001 0000:0000:0000:0000:0000:0000:0000:0000 What admins / programmers …

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 you click Alt or F10 key. It turns out I had a custom drawing routine …

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 displayed 1.4 instead of 1.5. The source looked something like: double d = 1.45; String …