Povolební smutek

Z výsledků voleb je mi smutno a úzko. Na Hradě teď bude člověk, který se proslavil svým hrubiánstvím, člověk, který lže, je obklopen korupcí, očerňuje a pomlouvá svého protikandidáta, nejedná čestně.  Tohle není prezident, kterého bych si vážil, tohle je prezident za kterého se stydím! Je mi smutno z toho, že dalších pět let budu …

Javascript math. LOL

How much is 77.9 – 70? Usually it is 7.9. Right? But not so in Javascript. In Javascript it is 7.900000000000006. Funny as hell 🙂 You can “fix” this by calling .toFixed() on the result number, but it does not fix the cause. As far as I know you can’t fix it, it is part of …

Bug in Google Docs or a scary feature?

Today (15.8.2012) I’ve created new document in Google Drive and wanted to share it with a colleague of mine. I typed his address and before I hit the ‘Finish’ button I noticed that his email address changed to his (I did not know) gmail account. I was not aware that he was using Google, and …

6 days in Beijing (part 3)

Rat race As one CouchSurfer put it: “I don’t think there is many happy people in China. It is very hard to follow one’s dream, only a few people can afford it. Most people know only hard work.” I’ve met some students, both in Haiyang and Beijing, and they told me that during their studies …

6 days in Beijing (part 2)

Food There are small stall almost on every street, everything is fresh (or at least it looks so :)) and prepared just in front of your eyes. We ate on street very often or in some low cost restaurants. The hygiene there is sometimes quite “dirty”, but the food tastes great. My colleagues warned me …

Pictures from Haiyang, China

Haiyang in China is what locals call “city in developement”, but I would argue it is one of those infamous ghost towns. There is lot of high-rise buildings where nobody lives. Some of these empty houses shine at night with bright colors, it looks like Las Vegas. The lights are beautiful and weird at the …

Dotless stack overflow exception

We have following .less snipet. It was no problem for the old dotLess compiler, but the new one (v 1.2.2) has problem in the .anonymousPersonImage class declaration. It results in Stack Overflow exception and dotLess stops working. Solution is to avoid having same names for mixins and classes. .personImage() { float: left; margin: 0px 4px …