Use MySQL utf8mb4 if you want full Unicode support

MySQL’s utf8 is broken

MySQL really made a mess here. What they are calling utf8 really isn’t. Hidden away in the MySQL manual we can read this:

“The character set named utf8 uses a maximum of three bytes per character and contains only BMP characters.”

Loosely translated: MySQL utf8 is broken. Don’t use it.

MySQL-logo

Continue reading

Fixed: rhc setup giving cannot load such file — dl/import (LoadError)

openshift

Issue

When I tried to install the Openshift Client Tools all seemed well until I tried to run rhc-setup:

C:\Windows\System32>rhc setup
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError)
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `'
Continue reading

Skype pushing bloatware

In a previous blog post I complained that Microsoft is allowing deceptive adds (the kind that drives our grandparents crazy) in Skype. This seems strange as one would expect Microsoft to protect it’s good name.

However it seems Microsoft could still do worse. So they didn’t give up and changed the Skype installer to install bloatware. And Yes, MSN and Bing plugins are just that, bloatware. My Skype told me that there was an update so I ran it and look what the Setup screen is showing me:

Skype-bloatware

Yes that’s right. To enable or disable two options I get half of a checkbox. Thank you guys! It seems I’m not the only one that noticed this as there is a slew of threads on this on the Skype community forums. Here is just a sample, there are many, many pages of threads about this issue:
Continue reading

Microsoft, why allow these deceptive ads??

Microsoft, Skype is your platform. You are the one who decides which adds get to be shown…

So why oh why do you allow deceptive and abusive adds like the one in this sreenshot?
These adds are tricking people into believing there Windows computer has problems that aren’t really there. These adds are bad for the reputation of Windows. That other companies don’t care about this I understand, but I would have expected Microsoft itself to be more protective of it’s own good name.

Please stop allowing adds like these!

Skype-deceptive-add

SEE ALSO: Oracle turns Java into malware!

I joined a startup

It’s been a while since I last posted here. That’s because I’ve been very, very busy. I joined a startup company mid december and things have been very hectic.

The company is named Brautschloss (which is German for ‘Bride Palace’) and we are organizing a bridal fair where bridal stores can purchase the dresses for in their store from the various brands.

logo-brautschloss-black-compact

Continue reading

Max. bytes in a UTF-8 char?

4.

There are a maximum of 4 bytes in a single UTF-8 encoded unicode character.

And this is how the encoding scheme works in a nutshell.

Bits of code point First code point Last code point Bytes in sequence Byte 1 Byte 2 Byte 3 Byte 4
7 U+0000 U+007F 1 0xxxxxxx      
11 U+0080 U+07FF 2 110xxxxx 10xxxxxx    
16 U+0800 U+FFFF 3 1110xxxx 10xxxxxx 10xxxxxx  
21 U+10000 U+1FFFFF 4 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx

Source: Wikipedia (also confusingly showing 6 possible bytes when truly 4 is the maximum)

Wait, I heard there could be 6?

No.
You heard wrong.

Continue reading