WundrBar review

WundrBars were created to provide the same things as their powder counterpart, in a more convenient format.

Before you read this article, you should know that Queal contacted me to ask me if I wanted to review the WundrBars. Because I’m interested in trying out soylent-likes, I gladly accepted, and they sent me some (thanks Laurens!). I’ll try not to be biased though.

Jake review

Jake is a Soylent-like manufactured in the Netherlands (like many of them it seems!).
It’s the first one I bought because unlike most of their competitors you can order only one meal, which is perfect to try it out.

Shipping

It took about a month to arrive. At some point, after waiting a few weeks, I was so eager to try a Soylent-like that I ordered some from a competitor, and it actually arrived before.

WebRTC: the future of web games

At some point in JumpSuit‘s development I realized it was impossible to create the game we envisioned: WebSockets are just too slow, because they sit on top of TCP.

While it is possible to write moderately fast-paced games with them, such as the enormously successful Agar.io and Slither.io, if you need low-latency, WebSockets won’t cut it.

Queal

Soylent is something I’ve wanted to try for a while, but I only got around to it recently (mostly because I don’t live with my parents anymore).

Basically, it’s a powder you blend with water. And BAM, here is your meal.

Hoisting in JavaScript

This behavior can surprise beginners to JavaScript, and also, I admit, people like me who learned JavaScript by doing.
So what is hoisting about? Concisely put, it means that every variable declared in a scope is actually declared when entering the scope, no matter where you choose to put the declaration.

In the following examples I’m going to create a function to define a scope, but this can be applied to every scope, the global scope, a scope you define with { and }, etc.

SMS Watchdog

My mobile carrier offers access to an API that can send SMS to its users. With systemd’s timers, I have been able to make a script that warns me when the load on my server is too high!
Basically, timers work by stating a service repeatedly; which in turn starts a script in this case.
This shell script is responsible for checking the load and sending a SMS. Of course, you can have it send you a mail too. Or tweet it, or whatever - sky’s the limit.

The script

This shell script is in charge of checking the load average and sending a SMS if it’s too high.

Mon projet d’ISN : Mario Kombat

Lors de ma dernière année de lycée, dans le cadre de l’option ISN, j’ai réalisé en groupe un projet sur lequel nous avons été notés au Bac (j’ai eu 20/20). À la fin de l’année nous devons rendre un dossier papier, que voici. Je le poste ici car il y a des choses intéressantes dans ce projet (les trucs sur la reliabilité), et de plus il peut sans doute aider les futurs lycéens à s’en inspirer pour structurer leur dossier.

Par rapport au projet d’ISN, voilà les conseils que je peux donner:

A virtual webcam

There are a lot of fun things you can do with Linux. What I propose you today is to stream an arbitrary video as if it were your webcam and microphone output.

Some sort of disclaimer

Okay, so the draft of this blog post has been sitting on my hard drive for months now, and if I don’t post it yet, I’ll never post it. The reason I didn’t is because it is incomplete, as there’s a tiny something I don’t understand. I lost interest in this so I won’t look for the solution myself, but if you find it you’re welcome to share it with me! Anyway, let’s see this.

Privilege escalation with setuid

What are setuid and setgid?

When applied on executable (and shell scripts if it’s not disabled), setuid is a mechanism in UNIX systems to allow an user to execute a program with the owner’s permissions. Setguid is the same principle, but we get the group permission instead of the user’s.
If you want too know more about it or setgid (that we won’t use), read the Wikipedia article.

In this article we will create a C program we will run as a normal user, and thanks to setuid it will spawn for us a shell (as root!).

Hyphens in UNIX’s filenames

Today I discovered an interesting UNIX design flaw. UNIX deals badly with files starting with -. Let’s mess around!

Warning: do like me, create a new directory and cd into it.