09 October 2015

Facebook Messenger and Android Marshmellow

Some early birds, enthusiasts and lucky people already use Android Marshmellow. As always when a new release of such a large project as OS is, we find at least some bugs or problems.

Users of Facebook Messenger application discovered that there are no chat heads anymore on the screen when they get a message. What is wrong? Bug?
I can't say it is a bug, it is a feature of new Android Marshmellow. Now, you can choose exactly how much access you want to grant to specific apps.
But while it’s worth it for the peace of mind, also be aware because apps can need permissions you might not expect.

In our case, the problem is in permission named Permit drawing over other apps. This permission is disabled for Facebook Messenger.
Solution is simple:
Open Settings -> Apps and click the gear icon on the top-right corner.
Then select Draw over other apps from the Advanced options.
Find Messenger in the list of installed apps and toggle on Permit drawing over other apps.

Android Marshmellow Permissions

How to test? Open Facebook Messenger and ask out your friend. A beer is waiting ...

15 September 2015

Disable Windows 10 Automatic Update

One of the most annoying "feature" on Windows 10 is Automatic Updates. Really.
There are sometimes bad updates that mess up your operating system. Some updates require you to reboot the computer, Many users get an unstable graphics driver which causes problems. Patch causes PC to crash repeatedly. Maybe you don't have enough internet data...
And last but not least - I don't have very fast internet access at home and some network hungry users notice every internet speed decrease. And then suddenly Windows starts to download a big update.
My keyboard doesn't let me write all dirty words you can hear at that time.

There are some solutions to this behaviour. For example, you can stop Windows Update Service. Or you can setup a metered connection and operating system will only automatically download and install updates classified as Priority.

In my opinion, the best solution to disable Automatic Windows Update is with small changes in Group Policy Editor. In Group Policy Editor, you can set that system will only notify you that updates are available.

Follow next steps:
1. Run gpedit.msc
2. Open: Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update
3. Change the Configure Automatic Updates setting to 2 – Notify for download and notify for install
4. Close Group Policy Editor and open Windows Updates. Click ‘Check for updates’ to get new configuration setting
5. Restart

Note: This solution will work on Windows 10 Education, Pro and Enterprise, but not on Windows 10 Home.

07 September 2015

Stop Autoplaying HTML5 Videos

HTML5 introduced an element for the playback of videos. One of the features is the ability to make the video autoplay when the webpage is loaded.

Here is an example of the code:
<video controls autoplay>
  <source src="kacnje.mp4" type="video/mp4">
  <source src="kacnje.ogg" type="video/ogg">
  Sorry - your browser does not support the video tag.

But autoplay is a bad idea in my opinion. The sound from the video can conflict with other sounds that user is listening, or if someone browsing in a quiet room and his speakers are set to high volume, or ... there are many disadvantages of using video autoplay.

How can user fights against website with video autoplay?

1. Mozilla Firefox
In the address field (where you normally type URL), enter about:config and press Enter. A warning appears and you have to press the scary button with "I'll be careful, I promise" label.
You will get a list of settings with a search field. In that search field, type autoplay and press Enter. This will find only one entry - media.autoplay.enabled. It will probably be set to True. As you expect, use double click to change the value to False.

Disable HTML autoplay in Firefox

The next time you visit a webpage with HTML5 autoplay video, the video box will appear, but the video won't start without your intervention.

2. Google Chrome
Chrome doesn't have this feature built-in. It is possible to prevent HTML5 videos to autoplay by installing the browser extension from Chrome Web Store. I can recommend Stop YouTube HTML5 AutoPlay (it should works with all websites, not just with YouTube).