Fixing css hover effect on touch devices

I had to write a page where a sub-menu was hidden until a user would hover over the parent of the sub-menu, unfortunately there is no such thing as :hover on touch devices, respectively it will de-trigger the hover when the users swaps from the parent to the sub-menu, so the sub-menu would remain inaccessible for the user.

Fortunately, there is a fix for it, simply add the property:

to your parent element and it will function as a regular hover on a device with keyboard and mouse.

As for an example, this is the ‘Developers’ tab on the http://get.libigot.org page:

The sub-list is hidden until the user hovers over the ‘Developers’ list-item element.

The real problem with Windows 8

So I got a new laptop 3 weeks ago, it’s a Lenovo Yoga 13(the i7 version with 8GB RAM and 256GB SSD). It comes with Windows 8 and I have to say, I can understand the bitching of people about Windows 8. The problem is not, that it would be unproductive to work with but rather that Microsoft does not explain enough how to really use it rightly. When you first start Windows 8 after the installation, you will get a little tutorial about how to use the new Windows. The problem with that tutorial is basically, that it only tells you about going in the edges of your screen with your mouse in order to do stuff. But really, that is not all you must know to use Windows 8, there are more things to explain than just that. For example, there is absolutely no explanation on how to close an app, so if a new user first launches an app and then tries to close it, he/she will get frustrated about it, because they don’t know how to close it. Therefore Microsoft really needs to improve the tutorial after the installation, so users will be not left in the dark when they first use Windows 8.

Windows 8 is not unproductive, people who say that didn’t use Windows 8 enough long, it’s actually faster, if you know how to use it. For example, if you want to launch an application in Windows 7 or XP you either click on an icon or go to the start menu and search for the application you want to open. Ok, so what’s wrong with that? Nothing but Windows 8 gives you the possibility to open the application faster, how? If you are in the modernUI screen, you simply start to write the name of the application with your keyboard and Windows 8 will automatically list the applications with the same name. This is faster, because not like in Windows 7 or XP, you don’t need  to press the Windows button or use the mouse, you can just start searching for the application. It’s faster, get over it.

Informations: If you need to check the weather on Windows 7 or XP, you need either a desktop mini-app(you know this ugly things usually on the left side of the screen) or you actually launch an application. In Windows 8, you don’t need to launch anything, because the modernUI gives you the possibility to watch the information you need directly from the tiles, really, that’s more intelligent than opening an application just to get the 50kbyte of information you really wanted.

Touch n’ Mouse: It is just our time, touch devices are nice and give older people the experience of learning faster an OS, also it feels much more natural if you are using touch instead of a mouse. Windows 8 is made for touch but using it with a mouse is also easy(if not you are just a unmotoric brick). I hope you know that you can actually scroll in a Windows 8 app by using your scroll wheel(really?!).

Conclusion: I do understand the piss of people who judge Windows 8 for not being much self explanatory but I don’t see how Windows 8 is unproductive in any way. It’s great, if you know how to use it. If you are a system administrator and need to update to Windows 8, you should take time to introduce your users to the OS, instead of just throwing the roll-out and be done, hurr durr…really Windows 8 is great and the features coming in Windows 8.1 will make it even a better experience, also think about that it is faster than Windows 7, even it might not be noticeable by all users.

Redmine up

After struggling around with gems all over the place and trying to rightly configure missing native extensions for them, Redmine is finally up again and running. I had some help from the guys on the #ruby irc channel, must say, they are very friendly.

Redmine down

Redmine is down. I’ve updated my server to ‘wheezy’ and by that I fucked up RubyOnDrunkenMonkeys or whatever…The gem manager fails on installing gems probably. I will either look for an alternative to Redmine or fix it in the coming days. I don’t want to lose Redmine as it is very well designed in terms of the user interface if you use a good looking theme. Well…lets see what happens :)

Fixing SIM locking/error on HTC 8x

The SIM on my HTC 8x would randomly lock/error, meaning that I would lose my connection to the carrier and therefore also the data connection. I read now on a random reddit post, that you can fix this issue by sticking some duct tape on the backside of the SIM(the side without the electronic sticking out). So if you stick that duct tape on it and the re-insert the SIM, you should be good to go and the random SIM lock/errors should stop. Note that it might be a little bit hard to push the SIM back in, because it is of course thicker than it was before.

WhatsApp on Windows Phone 8 isn’t bad, but…

it makes me feels bad. Why? Everyone knows WhatsApp, everyone uses it to communicate with friends. Guess what? Even Windows Phone has WhatsApp! Isn’t that cool, no?..or atleast it could be. WhatsApp for Windows Phone is programmed badly. Sometimes, you see toast-notifications about new messages and when you open the app, you just see no message being received…then, you close the app…repopen it and suddenly the messages appear you have seen in the toast-notifications. If that would be the only problem, fine but it is not. The WhatsApp team is too lazy for a simple change, which could let batteries drain less. WhatsApp on Windows Phone uses a background audio-stream, to let keep the WLAN signal stady, even when the phone is in standby/screen off. Earlier Windows Phone versions would automatically disconnect from the WLAN, when the screen was off for some amount of time, so WhatsApp tried to bypass that issue with their background audio-stream, fine!

No, it isn’t: Recent Windows Phone 8 versions let you turn off that auto-disconnect feature if you want, so basically now WhatsApp is unnecessarily consuming battery for it’s background audio-stream, which does not serve any purpose anymore. I sended them an email, saying that they could remove that audio-stream but the answer was more of a “We will look into it.” and nothing happend since more than 3 months. Now here comes my guess why they are not removing it: Windows Phone 7 does not have the feature which Windows Phone 8 got, therefore I think the WhatsApp team is too lazy for releasing two versions, one for the WP7 with that background audio-stream and a WP8 version without it. It would really please me, because my HTC 8x is already consuming so much battery, that it is empty in about 17 hours. Every step to let it consume less battery is great.

Thanks for reading.

Site change

After struggling around with coding my own website, I just found it too silly to not use a blogging-engine which already exists. My last site wasn’t that bad, its just that I didn’t like the fact, that it didn’t have any interface or so on for creating simple posts. WordPress suites this requirements more as good of course, so I went with it. Also, when using WordPress, it is much more simple to change the design, where it would go really fancy if you coded your own website, right? So there we go, I switched to WordPress, it’s fast and easy to use and allows me to concentrate on more important stuff.