Notes

Notes

Submitted by ormiret on Sat, 17/02/2007 - 14:38.

These are notes that I keep for myself to remember how to do something when I come to do it again. If you spot any errors in here, or have a better way to do something: let me know.

( categories: )

Gallerygen

Submitted by ormiret on Mon, 28/07/2014 - 00:17.

I sat down to try and catch up with processing photos then got somewhat distracted and wrote a primitive static gallery generation system (thing). This might be why things take a long time to get off my TODO list.

gallerygen takes a CSV (like this one) with filenames for the images that should make up each row in the gallery. It resizes the images as needed and builds an HTML page to display them.

I made an example gallery from my photos from Berlin last summer.

( categories: )

Google filter

Submitted by ormiret on Sun, 02/01/2011 - 02:07.

My method of naming things is to use a random word generator to come up with something I like the sound of. Some of the words it generates already exist though so I made a script to filter input to only the lines (which in my use case are words from the random word generator) that get no results from google.

( categories: )

Sending simulated keyboard or mouse events to an X window

Submitted by ormiret on Thu, 24/06/2010 - 11:40.

Every so often I feel compelled to interact with a GUI app from the command line, either to automate something repetitive or because I want the control to come from something other than the mouse/keyboard actually connected to the computer running the app. I know there are ways to do this but I can never remember enough detail to find them quickly so I'm making a note here in the hopes I can find it quickly next time I decide that keyboard events need scripting.

The tool to do this is xvkbd with something along the lines of:

xvkbd -text "[keys you want to send]"  
( categories: )

Calibration for touchscreen on X61 running Ubuntu 10.04 (Lucid Lynx)

Submitted by ormiret on Tue, 18/05/2010 - 12:07.

First part of calibrating the touchscreen is getting the X and Y values the touchscreen is returning for the top left and bottom right of the screen. This is done by running

xinput test 'Serial Wacom Tablet touch' 

Then touching those two points of the screen and noting the output. a[0] is the x value and a[1] the y value.

For my screen the top left comes up as (48,86) and the bottom right as (931,946).

( categories: )

Switch off desktop icons in gnome

Submitted by ormiret on Thu, 10/07/2008 - 16:30.

I've never liked having things on my desktop, so I want to tell nautilus not to put anything there. In true gnome fashion there doesn't seem to be any way to set such an option from the various dialogs that I thought to look in. There is an option though. Using gconf-editor you can set app/nautilus/preferences/show_desktop to false and the icons go away.

( categories: )

Multiple monitors with xrandr

Submitted by ormiret on Mon, 14/01/2008 - 13:36.

This way is a lot easier than the messing with xorg.conf I used to have to do for presentations and works well enough that I can add another monitor to my laptop whenever one is available (without even restarting X!).

I needed to make two change to the xorg.conf I got as default in Ubuntu Gutsy: change from the i810 driver to the intel one, and add a line to increase the maximum size of the two displays. This makes the Section "Screen" look like:

( categories: )

My Systems

Submitted by ormiret on Sat, 08/09/2007 - 00:19.

Systems currently in use

( categories: )

Power info

Submitted by ormiret on Sat, 11/08/2007 - 01:47.

I've stopped using a panel, and the thing that I missed most about it was the info on the state of my laptops battery, so I wrote a script to display this information using libnotify:

( categories: )

Beryl emacs toggle

Submitted by ormiret on Sat, 30/06/2007 - 02:31.

I've hacked up a little script to toggle emacs. It is very hacked together and there are a load of things I can think of to fix/improve.

( categories: )
Syndicate content