lamehacks

Stuff is fun

Author Archive

Azulejo Window Rotation

Sunday, February 6th, 2011

I implemented window rotation on azulejo. This is something that doesn’t come with Winsplit Revoltion, but anyone who used a tilling window manager will be familiar with it.
Azulejo does not maintain a layout (sometimes called algorithm or tilling mode mode) so I had to resource to a bit of improvisation.
(more…)

Introducing Azulejo – User friendly window tiling

Sunday, December 19th, 2010

Since my first contact with WNCK library, I’ve been willing to put together a proper solution for all my window tiling needs. After a bit of research I put together bunch of cool pieces of software and glue them together with python.
The result: a tinny application – less than 200 LoC so far – that runs on the background and listens to some defined keyboard shortcuts. Once such a keybind is pressed, it performs some user defined tilling operations.

This is still extremely experimental, yet usable. I tested it on gnome and fluxbox, appears to be working on both without any major problem. The project is hosted at bitbucket, you can   download the latest usable release here.

Usage

Run azulejo.py, it will bind the following keyboard shortcuts globally:

Super+2 – Tile last two windows side by side
Super+3 – Tile last three windows
Super+4 - two by two window tile
Super+h – move current window to the left half of the screen
Super+k - move current window to the right half of the screen

Please note, due to a bug, you might need to run azulejo.py twice the first time you use it.

Tiling windows on Gnome with wnck

Thursday, September 30th, 2010

After trying out a zillion linux  tilling tools, I came to the conclusion that none of them is quite what I want.  What I want is something like Winsplit Revolution. It offers powerful window management using the keyboard but does not stay on the way of those who still want to do stuff with their windows using a mouse like they always did.

I’ve been  playing around with wnck’s python bindings and it’s great fun. I managed to tile two windows side by side by running a small script. This is the most basic tiling operation and, in my opinion, it’s deadly useful.

(more…)

DIY – Computer screen rear view mirror

Wednesday, September 22nd, 2010

My spot at my workplace kind of sucks, a zillion people pass by and hang around right behind me all the time. Besides being a bit distracting, I was allways feeling like someone was looking over my shoulder. When I saw reflections on the shinny border of my screen, the idea of a rear view mirror came into my mind. I imedeatly google it and, as it turns out, such stuff exists and can be bought online.
All the waiting plus shipping and handling fees sort of turned me away from that option though.  So I decided to improvise a solution which turned out to work very well.

(more…)

Timesptamped Tarballs Nautilus script

Wednesday, September 15th, 2010

So, my tiny backup script work fine, but I wanted to be able to use it from nautilus’ context menu too. Nautilus scripts allows me to achieve exactly that.
This script will create a timestamped tarball containing select files. The name is composed by a timestamp and the name of the first selected file followed by “.tar.gz”. (more…)

perl sudoku revisited

Sunday, May 30th, 2010

My lame sudoku solving script can now be use in a more intuitive way through an html form. I kept it retro-compatible so the old url interface can still be used. I also implemented initial rule checking to prevent invalid puzzles from causing weird results.

Source is hosted at bitbucket.  Social code hosting is cool, from now on all my code bits will be pushed to bitbucket.

Javacus – A java abacus

Sunday, March 21st, 2010

I was in the middle of the process of making a toy abacus when my workshop got flooded, so I put together this lame electronic replacement (more…)

Back online at lamehacks.net

Wednesday, January 6th, 2010

Just like any cool website, this lame blog went through a domain move*. What can beat “I forgot to pay the domain name” in coolness? I’ll go with that!

Expect links to be broken and other malfunction, eventually I’ll fix them.

Beautify [Format] XML with PHP

Sunday, July 19th, 2009

There is a myriad of XML formating tools out there, some have reached a rather stable development state. Oddly enough, an XML file having elements with both content and child elements is all it takes for most  of them them [every single one i know of] to miserably fail.  Being that a basic XML feature, I decided to give it a go.

(more…)

How to make a slingshot

Friday, April 10th, 2009

This is an absolute classic. One of the oldest toys,  it’s also one of the oldest hunting weapons in use and a biblical object. I still have my old slingshot my father made me more than 20 years ago.  Slingshots have been used all over the world with minor variants. This is how they are made in south of Europe, in particular in Portugal where I was born. (more…)

. .

Entries (RSS) and Comments (RSS).