Behind the Scenes at the Museum

May 12, 2008

A genius quotation from Kate Atkinson’s book:

How can life be so sweet and so sad, all at the same time? How? Just out of my reach, there is understanding. Somewhere, just out of reach, hidden on a high shelf, under a floor board, there is a key. And what will the key open? Why, the Lost Property Cupboard, of course. The Lost Property Cupboard Theory of Life is a relatively recent development in my philosophical quest for understanding. It has come about, no doubt, because all this year, Kathleen and I have held the office of Lost Property Cupboard monitors, and every Thursday afternoon at four o’clock, we open up the Lost Property Cupboard. […] This is my Lost Property Cupboard Theory of the Afterlife: When we die, we are taken to a great Lost Property Cupboard, where all the things we have ever lost are being kept for us. Every hair grip, every button and pencil, every tooth, every earring and key, every pin (think how many there must be!), all the library books, all the cats that never came back, all the coins, all the watches which will still be keeping time for us; and perhaps, too, the other less tangible things: tempers, and patience; perhaps Patricia’s virginity would be there; religion (Kathleen has lost hers); meaning, innocence (mine); and oceans of time. […] On the lower shelf will be the dreams we forgot on waking, nestling against the days lost to melancholy thoughts. If they paid dividends, Patricia would be rich. And right down at the bottom of the cupboard, amongst the silk, and fluff, and feathers, the pencil shavings and hair swept up from hairdressers’ floors, that’s where you’ll find the lost memories. […] Then perhaps we can sign our names and take them home with us.

(4-4, ~10:00, fix it when I lay my hands on the book.)

Advertisements

Disorder

May 7, 2008

Sorry about the mess I currently made of this blog. I updated the Code section (aka. Magic) and had to create a separate post for every config file that was listed there. The news here is:

  • I’ve become maintainer of the KCharSelect widget/utility app in KDE. I haven’t done much besides bragging yet, but I have some bug fixes (before 4.1) and features in mind.
  • With a little luck (and a lot of free time if I find it), I will begin porting Filelight to KDE 4.

In other weakly related news:

  • Theme change. Opinions?
  • Blogroll updated. Forget common sense.
  • I won’t be home until Monday. I’m going to make an ass of myself again in front of the unbeatable Romanian contestants at the .Campion final round
  • I’ve been pondering whether I should finally get my own domain + paid hosting soon. I decided that it’s not yet the time, since except for a few gotchas (can only upload certain file types, can’t change CSS), I’ve been really happy with the WordPress.com service.

Now, if this post is not random, than I don’t know what is!


/etc/X11/xorg.conf

May 7, 2008
# /etc/X11/xorg.conf
#
# LOG:
# version 0.2 (2008 May 7)
# version 0.1 (?? ??, ??)
#
# NOTES:
# The touchpad acceleration options are still not ideal.
#

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "us"
EndSection

Section "InputDevice"
    Identifier    "Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "ZAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "InputDevice"
    Identifier    "Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/input/by-path/platform-i8042-serio-4-mouse"
    Option        "Protocol"        "auto-dev"
    Option        "LeftEdge"        "1400"
    Option        "RightEdge"        "5500"
    Option        "TopEdge"        "1700"
    Option        "BottomEdge"        "4400"
    Option        "FingerLow"        "25"
    Option        "FingerHigh"        "30"
    Option        "MaxTapTime"        "180"
    Option        "MaxTapMove"        "220"
    Option        "VertEdgeScroll"    "true"
    Option        "HorizEdgeScroll"    "true"
    Option        "VertScrollDelta"    "100"
    Option        "HorizScrollDelta"    "100"
    Option        "MinSpeed"        "0.1"
    Option        "MaxSpeed"        "0.5"
    Option        "AccelFactor"        "0.001"
    Option        "SHMConfig"        "on"
EndSection

Section "Device"
    Identifier    "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
    Driver        "ati"
    BusID        "PCI:1:5:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Modes        "1024x768"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Mouse"
    InputDevice    "Touchpad"
EndSection

An older version which worked with Beryl (but couldn’t suspend to disk):

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
    FontPath    "/usr/share/X11/fonts/misc"
    FontPath    "/usr/share/X11/fonts/cyrillic"
    FontPath    "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/Type1"
    FontPath    "/usr/share/X11/fonts/100dpi"
    FontPath    "/usr/share/X11/fonts/75dpi"
    FontPath    "/usr/share/fonts/X11/misc"
    # path to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load    "i2c"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "type1"
    Load    "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "us"
#    Option        "XkbOptions"    "lv3:ralt_switch"
EndSection

Section "InputDevice"
    Identifier    "Touchpad"
    Driver        "synaptics"
    Option        "Device"        "/dev/input/by-path/platform-i8042-serio-3-"
    Option        "Protocol"      "auto-dev"
    Option        "LeftEdge"      "1400"
    Option        "RightEdge"     "5500"
    Option        "TopEdge"       "1700"
    Option        "BottomEdge"    "4400"
    Option        "FingerLow"     "25"
    Option        "FingerHigh"    "30"
    Option        "MaxTapTime"    "180"
    Option        "MaxTapMove"    "220"
    Option        "VertEdgeScroll" "true"
    Option        "HorizEdgeScroll" "true"
    Option        "VertScrollDelta" "100"
    Option        "HorizScrollDelta" "100"
    Option        "MinSpeed"      "0.05"
    Option        "MaxSpeed"      "0.18"
    Option        "AccelFactor"   "0.0005"
    Option        "SHMConfig"     "on"
EndSection

Section "InputDevice"
    Identifier    "Mouse"
    Driver        "mouse"
    Option        "Device"        "/dev/input/mice"
    Option        "ZAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "Device"
    Identifier    "ATI Technologies, Inc. Radeon Mobility 9100 U3 (R200 IGP)"
    Driver        "ati"
    Option        "DRI" "true"
    Option        "ColorTiling" "on"
    Option        "EnablePageFlip" "true"
    Option        "AccelMethod" "EXA"
    Option        "EXANoOffscreenPixmaps"
    Option        "RenderAccel" "true"
    Option        "AGPFastWrite" "on"
    BusID        "PCI:1:5:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
    HorizSync    28-51
    VertRefresh    43-60
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "ATI Technologies, Inc. Radeon Mobility 9100 U3 (R200 IGP)"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Depth        24
        Modes        "1024x768"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    Option        "AIGLX" "true"
    InputDevice    "Generic Keyboard"
    InputDevice    "Touchpad"        "SendCoreEvents"
    InputDevice    "Mouse"            "CorePointer"
EndSection

Section "DRI"
    Mode    0666
EndSection

/etc/network/interfaces

May 7, 2008

Censorship is so easy to forget!!

# /etc/network/interfaces
#
# LOG:
# version 0.3 (May 07, 2008)
# version 0.2 blessed be NetworkManager (?? ??, ??)
# version 0.1 a Windows-shared connection is NOT_A_GOOD_THING (tm) (?? ??, ??)
#
# TODO:
# WPA eventually
#

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

iface wlan0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid Wireless
wireless-key s:XXXXXXXXXXXXXXXXXXXXXXXX

auto wlan0

An older version:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
#iface eth0 inet static
#    address 192.168.2.2
#    netmask 255.255.255.0

auto wlan0
iface wlan0 inet static
    address 192.168.0.3
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1
    wireless-essid try
    wireless-key ####################
    wireless-mode Ad-Hoc

#iface wlan0 inet dhcp
#    wireless-essid wl600g
#    wireless-key ####################
#    wireless-mode Managed

/etc/apt/sources.list

May 7, 2008
# /etc/apt/sources.list
# version 0.2 (May 07, 2008)
# version 0.1 MD mirrors are infuriating (?? ??, ??)
# 

# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy main restricted universe multiverse
# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy-updates main restricted universe multiverse
# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy-backports main restricted universe multiverse
# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy-security main restricted universe multiverse

deb http://md.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://md.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://md.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse


/etc/bash.bashrc

May 7, 2008

I am proud of my aliases

See also this thread.

# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
#    PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}07"'
#    ;;
#*)
#    ;;
#esac

# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
    case " $(groups) " in *\ admin\ *)
    if [ -x /usr/bin/sudo ]; then
    cat <<-EOF
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
   
    EOF
    fi
    esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
    function command_not_found_handle {
                /usr/bin/python /usr/lib/command-not-found -- $1
                return $?
    }
fi

# EXIT:
alias grep="grep --color=auto"
alias ls='ls --color'
alias ll='ls -l'
alias l='ls -CF'
alias la='ls -A'
alias lla='ll -A'
alias dir='ls -ba'
alias lh='ll -h'

alias dh='df -h'
alias dhh='dh ~ / /media/big/'
alias md='mkdir'
alias c='clear'
alias p='pstree -pl'
alias j='jobs'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias e='editor'
alias v='view'
alias m='less -i'
alias a='cat'
alias h='history 30'
alias hh='history'

alias gh='history |grep ' # arg
alias ii='dpkg -l |grep -i' # arg
alias ir='ps aux |head -n 1 && ps aux |grep -i $1' # this one outputs some garbage at the end.
                                                   # can't find an easy way to avoid it.
# not as harmless as they look!
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

alias rmi='rm -i'
alias cpi='cp -i'
alias mvi='mv -i'

alias rmprog='rm -vf *.o *.e *.bak *~ *.out *.class *.gcov *.gcda *.gcno'

# alias xwpe='xwpe -font 9x15'
# when I used to use xwpe
# alias hibernate='kdesktop_lock --forcelock &  sudo hibernate'
# when I used to use swsusp2

alias push='pushd .'
alias pop='popd'
# any ideas for better names?

alias tpush='rm -f /tmp/pushed_pwd && pwd >/tmp/pushed_pwd && chmod a+rw /tmp/pushed_pwd'
alias tpop='cd "$(cat /tmp/pushed_pwd)"'

alias smbx='sudo mount -t smbfs -o username=exit //desktop/x$ /media/samba/'
alias unsmbx='sudo umount /media/samba/'

alias ase='apt-cache search'
alias ash='apt-cache show'

set -o noclobber

HISTSIZE=10000
HISTFILESIZE=10000

alias calc='bc -ql'
alias lg='lsof -n |grep -i ' # arg
alias ko='kfmclient openURL'
alias whatip='w3m -dump whatismyip.org'

LOGGED_IN_AT=$(date)
echo "Logged in at $LOGGED_IN_AT"

# /EXIT:

.vimrc

May 7, 2008
" .vimrc
" version 0.03 +-comments (May 07, 2008)
" version 0.02 added case stuff (May 12, 2007)
" version 0.01 first created on Apr 2, 2007.
"

set number
set cindent
set ignorecase
set hlsearch
set smartcase
set background=dark
syntax on
map <F9> <Esc>:w<CR>:make<CR>

" backspace=indent,eol,start is the default here, some greasy lizards screw
" this up.