I’ve been insanely busy lately. So no blog entry this week.

## Of Colorspaces and Image Compression (Part III)

November 11, 2014Last week, we continued on color spaces, and we showed—although handwavingly—that we’re not very good at seeing color differences in hue and saturation, and that we’re only good at seeing difference in brightness. In this last part, we’ll have a look at how JPEG exploits that for image compression.

## Of Colorspaces and Image Compression (Part II)

November 4, 2014Last week we discussed briefly how we can represent color using either RGB or a colorspace that’s more easily amenable to decimation by a psychovisual model.

This week, we’ll have a look at just how tolerant the human visual system is to color (hue/saturation) variations.

## Of Colorspaces and Image Compression (Part I)

October 28, 2014The art of lossy compression consists almost entirely in choosing a representation for your data in which you can easily figure out what data to destroy. That is, if you’re compressing sound, you must transform the waveform into a domain where you can apply a psychoacoustic model that will guide decimation, that is, the deletion of part of the information, part of the information that won’t be heard missing. If you’re rather compressing images—that will be our topic today—you must have a good psychovisual model that will help you choose what information to destroy in your image

The model can be very sophisticated—and therefore computationally expensive—or merely a good approximation of what’s going on in the observers’ eyes (and mind).

But let’s start with the beginning: representing color

## The wireless keyboard, again (part deux)

October 21, 2014For last week’s entry, I wrote a small script to monitor my wireless keyboard’s activity, logging keys, and mode changes. This week, let’s have a look at the data we can grab, and what we can do with it.

So, after grabbing keyboard activity for a bit more than a week (from `2014-10-12 22:47:31.059636` to `2014-10-20 08:45:06.733120`), we’re ready to preprocess the logs and extract useful information.

## The wireless keyboard, again.

October 14, 2014So, again, I got a Bluetooth keyboard. This time, I’m pleased with the fact that it will, in principle, never need to have its batteries changed. It’s solar. I got the Logitech K760.

So of course, I set out to test it a good while before concluding whether or not it would be charged enough to keep up with me. But how much typing do I do in a day? Well, let’s find out!

## Pruning Collatz, somewhatz

October 7, 2014I’ve visited the Collatz conjecture a couple of times before. I’ve played with the problem a bit more to understand how attractors work in the Collatz problem.

So what is the Collatz conjecture? The conjecture is that the function

Always reaches one. But the catch is, nobody actually figured out how to prove this. It *seems* to be true, since for all the ever tried the function eventually reached 1. While it is very difficult to show that it reaches 1 every time, it’s been observed that there are chains, let’s call them *attractors*, such what when you reach a number within that chain, you go quickly to 1. One special case is the powers-of-two attractor: whenever you reach a power of two, it’s a downward spiral to 1. Can we somehow use this to speed up tests?