Website Obesity

The other day, I stumbled upon an interesting talk by Maciej Cegłowski about the worrying trend of website obesity. I have to say, I fully agree with him. As it stands, the situation is getting quite ridiculous. Designers and web coders should stop the unnecessary bloat. Here’s the transcript of the talk:

Website Obesity

Protect Your Eyes From Computer Eye Strain

Internet has revolutionized our lives. It has changed the way we work, communicate and access information. But as we spend ever more time in front of shining computer and phone screens, our eyes pay the price. We are plagued with near-vision, eye strain and other problems. Allow me to introduce two tools, that can help in relieving the computer eye strain.

Eye excercizes with SafeEyes

We typically watch screens from very close distances, trying to read the tiny letters. That is the biggest culprit behind computer eye strain, because our eyes have simply not evolved for that. So, a collection of techniques called eye yoga were developed to battle eye fatigue. But as with anything, it is easy to forget about them, while you are concentrating on other stuff. Fear naught, SafeEyes comes to save the day. It’s a simple app, that sits in the taskbar and every once in a while reminds you to take a break, suggesting an eye yoga exercise. Kind of like EyeLeo for Mac. It is intelligent enough not to pop up while you are watching a movie. And you can skip a break, if you need to, so it is fairly unobtrusive.

Read more…

Automatically Setup Your Computer with Ansible Playbook

Setting up a computer can be a major annoyance. Being ‘the tech guy’, I still have vivid nightmares of spending every other weekend reinstalling friends’ and family members’ Windows boxes that have come to a crawl. Now, most of us know enough to backup the important data and that makes the process easier. (If you don’t have backups, go setup Nextcloud, Syncthing, or some other automatic system. Seriously, it’s gonna come back to bite you sooner or later.) But there is still the matter of installing and configuring all your software. Some people have tackled that by writing install scripts. However, there is a better way - Ansible playbook. Let me introduce Ansible. Ansible is a software for computer provisioning. In computing, provisioning means automated installation and configuration of software and services. Provisioning tools, such as Ansible, Chef and Puppet, help you cut down the setup time from hours to mere minutes. Their main advantage over custom scripts is that they are idempotent. That means they only makes the necessary changes. So, if a task fails (for example because ou forgot to connect your Ethernet cable, oops), you can just run it again without any worries. The reason I chose to use Ansible, is that the tasks are easily configurable using yaml files. It is also written in Python, which makes it easy to write your own module for it, in case of need. So what is Ansible playbook? It is the collection of yaml files, describing the tasks to be executed. You can find an introduction to its syntax in Ansible documentation. I will demonstrate how you can setup your computers using an Ansible playbook, using mine as an example. You can find it at my Gitlab page.

Read more…

Fix Steam Controller Issues in Linux

Last time I was praising Steam Controller for running smoothly in Ubuntu. Well, I must have jinxed it. As you might have noticed, after a recent update, it stopped working all together. The reason is, Valve have changed the protocol for wireless communication between the controller and the computer. Luckily, the fix is easy. You just have to edit the udev rules. So, open them with a text editor:

$ sudo nano /lib/udev/rules.d/99-steam-controller-perms.rules

and change them to the following:

# This rule is needed for basic functionality of the controller in Steam and
# keyboard/mouse emulation
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"

# This rule is necessary for gamepad emulation; make sure you
# replace 'pgriffais' with a group that the user that runs Steam belongs to
KERNEL=="uinput", MODE="0660", GROUP="pgriffais", OPTIONS+="static_node=uinput"

# Valve HID devices over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="28de", MODE="0666"

# Valve HID devices over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*28DE:*", MODE="0666"

# DualShock 4 over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666"

# DualShock 4 wireless adapter over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666"

# DualShock 4 Slim over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"

# DualShock 4 over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666"

# DualShock 4 Slim over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666"

Now, save them with Ctrl + x.

I wonder, how much of a problem would be to update the udev package along the Steam update. While the updated rules were mentioned in the change log, it did not say which file you were supposed to edit. And of course, not everybody reads changelogs. So this caused a headache to lot of users. Hopefully, Valve will handle updates better in the future.

Diggin’ in the Carts - History of Japanese Game Music

As a kid, I spent countless hours playing 8-bit games. Atari, Nintendo, Sega - had it all. And 8-bit music has had a special place in my heart ever since. Even now, I like to pop a song or two from my favorite games. Not just because of the nostalgia, but because of the special sound qualities of 8-bit, that you won’t find anywhere else. Some of soundtracks are true masterpieces, as evidenced by their being performed by orchestras all over the world. It is amazing how the composers could achieve such acoustic richness, given how little they had to work with.

When I heard from my brother about a Diggin’ in the Carts, a documentary series by Red Bull Music Academy, that covers the history of Japanese game music, I was overjoyed. It features numerous interviews with the composers, giving a unique insight into how some of the most iconic game songs came to light, with a sprinkle of comments by musicians and electronic producers from around the world, who talk about the impact that Japanese game music had on their works. If you are a fan of the 8-bit sound or retro gaming, this is a must-see. As an added bonus, you can turn off the subtitles to get some quality Japanese practice. You can find the whole series on the following page:

Diggin’ in the Carts

Using Steam Controller in Ubuntu

I have recently picked up the Steam controller. With it, I can finally enjoy some of the platformers that have been sitting in my Steam library for ages (such as Never Alone and Feist). Why Steam controller? The reason is twofold. Firstly, it seems to be one of best gamepads around according to the reviews. Secondly, it was also supposed to run out of the box on Linux. Well, that might be the case if you connect it by USB (I have not tried that). But in order to run it in wireless mode, you have to manually install the drivers. Hopefully, they will be automatically downloaded when you install Steam in future releases, but for now, you have to run this command.

$ sudo apt install steam-devices

Or in OpenSuse:

$ sudo zypper install steam-controller

When the installation completes, just fire up Steam in the Big Picture Mode and add your controller. A bit more work that I would have hoped for, but still simple enough. I might sum up my impressions in another blog post. Now I am off to play some games.

Trouble after update

Edit: If you are experiencing problems with your Steam controller after a recent update, check out this blog post.

Autostart Linux Applications in One Command

Usually, when I am done working on the computer, I just suspend it. Thanks to that, I can easily pick up where I left off. But sometimes, I have to swallow the pill and turn it off (for example to preserve charge while traveling). In such cases, you can autostart Linux apps to quickly setup your work environment and get back to being productive. Fortunately, you can easily set this up in desktop environments adhering to Freedesktop standards. These include Gnome and KDE, among others. You just need to copy the .desktop files of your favorite programs from /usr/share/applications/ to the autostart directory. For instance your browser, password manager or a roll-down terminal. If you only want it to start for yourself, copy it to $HOME/.config/autostart. However, for system-wide configuration, the directory is /etc/xdg/autostart. As a result, you don’t have to waste time starting up the same 5 applications every time you reboot. And you can set everything up using just command line. So you can even use it is part of your computer installation script. If you are looking for other ways to automize tedious tasks, check out this guide to automatically configure your computer with Ansible.

Impacts and Ethics of Eating Meat

The health benefits of vegan diet over a balanced omnivorous one have been largely disproved by nutritional research. Since then, the argument has shifted to the negative environmental impact of producing meat. Recently, media has been swarming with articles such as Mean is horrible on Washington Post, or Tax meat and dairy to cut emissions and save lives, study urges on The Guardian. Their authors cherry-pick arguments to support their position, that eating meat (especially beef) is detrimental to the environment. Meanwhile, they ignore any downsides of growing crops. On the latest episode of Revolution Health Radio, Diana Rogers presents a more complete picture of the situation. In the process, she dispels the notion that growing crops is the only environmentally and ethically feasible way of producing food. Listen to it here:

Impacts and Ethics of Eating Meat

20th Anniversary of Diablo

Diablo was my favorite game as a kid. I remember the captivating gloomy, haunted atmosphere, that kept you incessantly on your toes, as if it were yesterday. It is hard to believe that twenty years have come by. Yesterday, Blizzard have announced that they have something special in store for the 20th Diablo anniversary. In the upcoming patch of Diablo 3, they will have recreated the original Diablo campaign. And to make the experience as authentic as possible, characters will only be able to move in 8 directions (instead of 360 degrees). Also, a special grainy filter will be applied to graphics.

Original Diablo remade in Diablo

Perhaps it is time to finally buy Diablo 3?

Use Pi-Hole to Block Ads with Raspberry Pi

We live surrounded by ads. Not only in the physical space, but also in the virtual reality of Internet. They don’t just consume a lot of bandwidth and are very obstructive, they usually also unethically track you. While I understand, that content creators need the means to make ends meet, I believe there are better ways to accomplish that, such as Patreon. Now, there are plenty of ways to get rid of ads on traditional computers. For example, browser extensions, such as Privacy Badger and uBlock Origin, or proxys, such as Privoxy). However, on mobile devices, the situation is far less ideal. One way to tackle the problem, is to filter out ads for your whole network. Welcome to Pi-Hole. It is a DNS server for Raspberry Pi, that keeps a blacklist of advertising sites and serves an empty response instead of them, saving both your bandwidth and your sanity.


As you can see on its website, Pi-Hole’s installation process is very easy. Once you have your Raspberry Pi set up, connect to it via SSH. Then run the following command to download Pi-Hole:

Read more…