So, after I fixed the two screen problem I was having with my Ubuntu setup, I started getting an odd flickering.

This flickering didn’t affect the whole screen, rather it seemed to be something to do with window repainting, and it became even worse after I updated to 14.04.

I run a slightly non-traditional configuration, in that I run Gnome2 fallback rather than Gnome3 or Unity, therefore this probably won’t effect a lot of people, and is probably why it persists.

After a bit of digging, I discovered that this is actually a compiz issue. Here’s a summary of the fix:

Fixing the flicker

  • Install the compiz settings manager: apt-get install compizconfig-settings-manager
  • Scroll down to “Workarounds” in the “Utility” section:

compiz-1

  • Select “Force full screen redraws (buffer swap) on repaint”:

compiz-2

Once this is done, your windows should repaint as normal.

HTML Sanitisation is pretty important where user input is concerned, not doing so can easily let your users do some pretty funky things to your site.

The latest versions of the Known engine support a hook to call a sanitisation plugin when outputting bodies of text. The hook is called automatically whenever autop is called, but you can call it yourself if you want to.

Anyway, it would be remiss of me if I didn’t implement something that listened to this hook, so here’s a Known html sanitiser powered by HTML Purifier.

Check out the plugin, install and activate it in the usual way. Enjoy!

» Visit the project on Github...

A client asked me to poke around on App.net, a social networking and microblogging platform, which also serves as a reference implementation of their API.

Since the best way to understand an API is to start using it, and since I try my best to be a good Open Source citizen, I put together a basic stub of a Known plugin for it.

This plugin provides basic syndication support for status messages and long form posts, and serves as a useful starting point for more exciting integrations.

Anyway, have a play, comments and pull requests to the usual places!

» Visit the project on Github...