Slashdot Mirror


User: piyo

piyo's activity in the archive.

Stories
0
Comments
4
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4

  1. Re:Wish list item on OpenSSH 3.5 Released · · Score: 1
    Nope there's an error.

    I tried narrowing it to just the first term where it is getting the remote file's size:

    $ ssh remotehost "ls -l | awk '/pr0n.tar.bz2/ {print $5};' "

    but it returns the whole line:

    -rw-r--r-- 1 user user 10121951 Oct 16 21:40 pr0n.tar.bz2

    Apparently gawk-3.1.0 doesn't work the way one expects when one uses it remotely. Maybe you want to try again, because I'm stumped.

  2. w3m + emacs-w3m = emacs + slashdot on GNU Emacs 21 · · Score: 1

    I read slashdot via emacs. On my NT box. Big woop. Here's
    how you do it.

    Do not use w3. That stuff is slow.

    Use w3m from http://www.w3m.org which is like lynx, but
    renders tables and integrates very well with emacs. This is
    not w3. Works very fast. Requires cygwin.

    Use emacs-w3m from http://emacs-w3m.namazu.org/.
    Actually, the cvs version fixes a lot of problems so use
    that. Requires cygwin just for fancy installation.

    Then when using emacs to read your precious slashdot, set
    emacs to scroll in that buffer just like internet explorer.
    space means scroll down, shift-space means scroll up:

    (add-hook 'w3m-mode-hook
    (function (lambda ()
    (define-key w3m-mode-map (read-kbd-macro "S-SPC")
    'w3m-scroll-down-or-previous-url))))

    And then, start searching for the next interesting,
    insightful, funny post at 2 or above:

    (defun my-isearch-slashdot-cream-of-the-crop ()
    "Pre-load the interactive search regular expression ring with a string
    that matches interesting posts."
    (interactive)
    (isearch-update-ring (concat "[2345], \\("
    ;-; (regexp-opt (list "Interesting" "Informative" "Insightful" "Funny"))
    "Funny\\|In\\(formative\\|sightful\\|teresting\\)"
    "\\)") 'regexp)
    (message "Loaded... Press C-s C-s for \"Slashdot Cream of the Crop\" search"))

    ---
    "Keeping slashdot alive with code posts."
    "You have been elisp'd."
    "Posting with \"code\" b/c slashdot doesn't like
    emacs regexps."
    ---

  3. color prompt on Windows 2000 CMD window on To Z Or Not To Z · · Score: 1

    Here's a setup example for your prompt on your windows 2000 box.

    red='%{\033[31m%}'
    grn='%{\033[32m%}'
    yel='%{\033[33m%}'
    cyn='%{\033[36m%}'
    whi='%{\033[37m%}'

    prmtWinTitle='%{\033]0;%D{%Y%m%d-%H%M%S%a} %~\007%}'
    prmtDate="${grn}%D{%m%d%a}-${grn}%D{%H:%M:%S}"
    prmtHistNum="${cyn}%2!"
    prmtHost="${whi}%m" # just in case you want to add it.

    prmtLft="${prmtHistNum}%(!.#.>) "
    prmtRgt="${yel}%60<...<%~ ${prmtDate} ${whi}%?"

    PROMPT=$(echo "${prmtWinTitle}${prmtLft}${whi}")
    RPROMPT=$(echo "${prmtRgt}${whi}")
    unset red grn yel cyn whi
    unset prmtWinTitle prmtDate prmtHistNum prmtHost prmtLft prmtRgt

    ---
    I'm still looking Zelda 2 disc version for the Famicom.

  4. We now need 2 mod chips... and mp3 playback on Playstation 2 Pix and Rollout · · Score: 1

    We now need 2 mod chips for localization lockouts. One for the games, another for the DVDs. Don't forget the mp3 playback... (^_^;)

    Back to reality... When was the last time you saw a tray-loading CD console? (Sega CD, perhaps?) Anyone still do that funky hand combination, wait-for-spin-and-switch (was it called the swap trick?) on your old school PlayStation to run copied/non-local games? It's hard to try that here, I guess.