80 karma · joined Mar 3, 2009 (17y ago) · 75 submissions
comment 12y ago · link · parent
comment 14y ago · link · parent
Edit: I know I can customize the word style using $WORDCHARS, or 'autoload select-word-style'; my problem is that I'm used to having the capability to use two different word styles at once.
I'm looking through the command list in zshzle(1), and I'm a bit confused about the differences between backward-delete-word and backward-kill-word. Some short experiments I did failed to notice any differences (foo/bar/baz M-x backward-delete-word deletes foo/bar/baz). There's also vi-backward-kill-word which deletes 'baz', then '/', then 'bar', then '/', then 'foo'. I want a key to delete 'baz', then 'bar/', then 'foo', and I've no idea how to get it...
comment 14y ago · link · parent
The little itch that drove me crazy was command-line editing: in bash (and all readline apps) when I have
command long/path/to/some/file
I can press Alt-Backspace to delete 'file', or I can press Ctrl-W to delete 'long/path/to/some/file'.I tried various hacks to make zsh do the same, then gave up.
comment 14y ago · link · parent
comment 14y ago · link · parent
And you can't just subtract the shared memory numbers, because different sets of pages are shared between different sets of processes, and top doesn't give enough information to figure out what's actually happening where.
Running the pmaps tool on all pids and summing the Pss number is perhaps the closest you can get to the actual memory use.
comment 14y ago · link · parent
comment 14y ago · link · parent
So cat("filename with spaces in it") will fail, but cat("'filename with spaces in it') ought to succeed.
It's a neat experiment, but using this module in production would not be a great idea.
comment 14y ago · link · parent
I was making a map of the level on a piece of paper, and bungled it up (the rooms that were supposed to be adjacent appeared on two completely opposite sides of the paper or something like that). The obvious next step was to write a Python script to take a description of the map (room X: exit north leads to room Y, exit south leads to room Z, etc.) and produce a map (in ASCII art; I didn't want to spend too much time on superfluous graphics).
It was more exciting to write that script and see the map it generated than it was to play the game itself.
I may be weird.
comment 14y ago · link · parent
I'm not denying that grep was buggy (there's a link to grep's bug tracker to a bug that was closed more than a year ago), but I'm surprised at the magnitude of the slowdown.
comment 14y ago · link · parent
* coloured prompt
* tab-completion
* persistent history
Here's mine: http://mg.pov.lt/pythonrccomment 15y ago · link · parent
Now I'm someone who hates having to wait unnecessarily, and considers even 1 or 2 seconds of application startup time to be unacceptably slow (hence Chromium instead of Firefox). For me the expensive Intel SSD was worth the money.