Saturday, July 22, 2006

Friday, July 21, 2006

Monday, July 17, 2006

FVWM Fun!

Terminal Menu List

When I find that I'm frequently doing something like opening a terminal, then sshing into a specific machine, I'll usually add it to my terminal quick menu.

Key T           A       M       Menu MenuTermList
DestroyMenu MenuTermList
AddToMenu MenuTermList
+ "Terminal" Exec exec urxvt
+ "chibox" Exec exec urxvt -e ssh chibox
+ "joelapenna.com" Exec exec urxvt -e ssh joelapenna.com
+ "dexter" Exec exec urxvt -e ssh -fN dexter
+ "Python" Exec exec urxvt -e python2.4-ipython

I used to have Key T dedicated to opening a terminal window. I changed it up so that I am presented with a menu of different terminals I can start. This is so I can do something like: Alt+T,t and start a regular xterm; or Alt+T,p and start an ipython session. Say I wanted to add another menu option to the pop-up, opening a root window for example:

+ "Root" Exec exec urxvt -e su -

VIM keybindings

I use vim, so I'm used to the hjkl keybindings for fvwm too.

key h A M GotoPage -1p +0p
key j A M GotoPage +0p +1p
key k A M GotoPage +0p -1p
key l A M GotoPage +1p +0p

This says move down with j, left with l, h with right, and up with k.

Koolade man alt+tab

DestroyFunc WindowListFunc
AddToFunc   WindowListFunc
+ I WindowShade False
+ I Iconify off
+ I FlipFocus

Don't move the mouse cursor when I alt+tab to a window. I like my cursors moving around without my permission about as much as I like my kool-ade wearing tights. WindowListFunc is the function that deals with responding to an alt+tab selection.

Because using a mouse is so 1999

Key V           A       CM      FuncPasteXBuffer
DestroyFunc FuncPasteXBuffer
AddToFunc FuncPasteXBuffer
+ I Current (!HasPointer) WarpToWindow 50 50
+ I FakeClick press 2 wait 10 release 2

Fake a middle click via keypress. Press middle button, wait 1/10th of a second, release middle button.

Pretty Wallpapers

Colorset 10 TiledPixmap $[fvwm_wp]0.png
Colorset 11 TiledPixmap $[fvwm_wp]1.png

DestroyModuleConfig FvwmBacker: *
AddToFunc StartFunction I Module FvwmBacker

*FvwmBacker: RetainPixmap
*FvwmBacker: Command (Desk 0, Page * 0) Colorset 10
*FvwmBacker: Command (Desk 0, Page * 1) Colorset 11

I can't make up my mind about which wallpaper I want to use, so instead I have two wallpapers. One for the top row of my desktop and another for the bottom row. The Colorset lines allow fvwm to keep the pixmap of the background in memory so that its just a bitflip to show the wallpaper when you cange pages instead of a reload. . . . MUCH FASTER.

Saturday, July 15, 2006

Title: Snippets

Since I missed the past few weeks:

  • Choke, by Chuck Palahniuk: Pretty cool idea, gets a little screwy about 2/3s in but redeems itself at the end.

  • Upgraded to Ubuntu Edgy, now my laptops broken

  • Went to Hong Kong

  • Ate some really really salty bad Hakka food

  • Tried squid eyeballs

  • Got puked on

  • Went to Luxy, Room 18, B1 and 9%. Room 18 and Luxy the first time were the best times out since I got back.

  • Spent a night at work. (Ugh, so busy)

Wednesday, July 5, 2006

Hong Kong

It had been 30 days and my time was up in Taiwan. Time to head someplace new: Hong Kong. The trip was planned by one of my coworkers, Ray who along with Bill and Abe; accompanied me to the land of good Dim Sum, bad night life (well, the kind that we found) and sore feet. And some other things.

If you go to Hong Kong, it does not matter how many people you have. I would suggest that you do not under any circumstances take a taxi cab to your hostel. It costs about 90 USD and takes ninety-seven years.

We stayed on Hong Kong Island in Causeway Bay at Hong Kong Hostel. Our four bed room actually consisted of three beds and a cot so that was unfortunate. Luckily people were drunk enough that sleeping on it was not a problem.

When we got to the hostel, the attendant asked us if there was anything we were interested in doing that night. He suggested some area points randomly over there where we could watch Football. None of us were entirely excited about that prospect and one of us exclaimed that that was true. Instead, he asked the attendant if he knew of any places for dancing, "you know, girls music..." Now in most circumstances we're accustomed that could probably be a good description of a club. I don't think this is what the attendant interpreted our compatratiot's decription to mean and unbeknownnst to us we were soon on our way to (as per the corse when I'm traveling) the red light district.

When we arrived it was all too apaprent to us where we had found ourselves. We dropped into the most reputable bar we could find and started asking poeple and were directed to Wan Chan (XXX).

This place was pretty cool. Take a full city block, all four sides and have sit on a hill so that each side seems to sink lower and lower towards the bottom. We spent the majority of our time in a "Braziilian" place where I sucked down a few pretty decent mohjito.

Then it was decided that "we" were done with that place and it was time to find a club. When we found a place as per the usual people were apprehensive about going in. When I decided to break the "should we, we shouldn't" debate I approached the entryway and enter but I was far too uncool for them. In any case most of us (me at the peopel, others at the lack of dance clubs.) were ready to call quits on the evening.


Sleep


I woke up around 9am and spent the next few hours trying to get myself a VISA for mainland China so that when I go I'll be able to get in without worry. This didn't happen because I didn't have the right documentation although I did get to see 4 different China Travel Services offices.

I spent the rest of the pre-lunch-after-failed-visa-attempt time walking around without aim. My feet weren't even hurting yet at this point.

to be continued . . .