« May 2010 | Main | October 2010 »

August 29, 2010

Treadmill

I have a new treadmill. The plan is to make it into a walking workstation and get healthier. Sitting all day is just not cutting it.

Apparently, getting this this for $199 was a good bargain. Web prices range from $700 - $900, though, I imagine that has more to do with scarcity than value.

side view:

back view:

MT, why are my thumbnails the same size as the image?

Posted by Matt at 09:46 PM | Comments (0)

Why's this like that? - 1

as seen in ~/.bashrc file

export HISTCONTROL=ignoredups
HISTFILESIZE=100000000
HISTSIZE=1000000

HISTCONTROL is used so that repeat commands do not clog up your .bash_history
HISTFILESIZE is how large your .bash_history will become, someday
HISTSIZE is how many entries you want. Set it huge and don't ever lose anything.

If you ever overrun these settings, I'd be amazed.

Posted by Matt at 09:32 PM | Comments (0)

August 08, 2010

Why's this like that? - 0


moggio:~$ cat .Xmodmap
remove Lock = Caps_Lock
keycode 9 = Caps_Lock
keycode 66 = Escape
add Lock = Caps_Lock

What does this do?
This switches the caps lock key and the escape key on a standard US keyboard in Linux.

What is the motivation?
I use vim for my text editing. The escape key is way more useful than caps lock so having it right under my pinky is a win.

How do I make it happen?
One way is just on the command line:

moggio:~$ xmodmap ~/.Xmodmap

another way is in your bashrc file, if you use bash shell and would like it happen when you login to X.

moggio:~$ cat .bashrc | tail -n 13 | head -n 1
if [[ -e ~/.Xmodmap ]]; then xmodmap ~/.Xmodmap; fi

Note you do not need it on the 13th line from the end. Put it wherever you'd like.

Posted by Matt at 09:49 PM | Comments (0)