Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

Archive for 2004-04

Next Entries »

emacs clipboard cut and paste, done right!

;; ~/.emacs ;;
(global-unset-key [(control v)]) ;;use page-down
(global-set-key   [(control v)]
    'clipboard-yank)
(global-unset-key [(control shift v)]) ;;use page-up
(global-set-key   [(control shift v)]
    'clipboard-yank)
(global-unset-key [(control shift c)])
(global-set-key   [(control shift c)]
    'clipboard-kill-ring-save)
(global-unset-key [(control shift x)])
(global-set-key   [(control shift x)]
    'clipboard-kill-region)

I figured this out after reading HP’s essay on useability, where he mentions that “Emacs is basically the last remaining X application that insists on having cut and paste that doesn’t work correctly.”

A while back, I vowed to switch from emacs to another editor. Silly me. That could never happen.

Hal Canary | Computers & Code | 2004-04-05 00:50:23 UTC
Permanent Link |
Comments Off (but feel free to email)

Photography

Hal Canary | Photos | 2004-04-04 15:03:19 UTC
Permanent Link |
Comments Off (but feel free to email)

Book Review: Linux Firewalls

[book cover]

I’ve been using Ziegler’s Linux Firewalls (2nd Edition) to teach myself iptables syntax. I’m not sure that it’s the best book for getting started building firewalls and routers, bcause it advocates really compliated rulesets.

[]

There are some basic facts about the way iptables works that aren’t explained well. One of them is the diagram on the left. Everyone always draws it funny. The way I draw it, all packes travel downward.

Compare the giant scripts in Ziegler to Rusty’s Really Quick Guide To Packet Filtering

When I was done confguring my router, I had a 61 line iptables script that blocked most ports, did SNAT and DNAT. I didn’t feel the need to, for example, DROP packets on the OUTPUT chain.

Ziegler could use a chapter on troubleshooting with tcpdump and other tools.

Hal Canary | Books | 2004-04-02 15:07:43 UTC
Permanent Link |
Comments Off (but feel free to email)

Next Entries »

Copyright 1997-2012 by Hal Canary.
mailto: halcanary at gmail dot com
http://halcanary.org