Windows features you didn’t know existed: clip

May 5, 2007
CLIP

Description:
    Redirects output of command line tools to the Windows clipboard.
    This text output can then be pasted into other programs.

Parameter List:
    /?                  Displays this help message.

Examples:
    DIR | CLIP          Places a copy of the current directory
                        listing into the Windows clipboard.

    CLIP < README.TXT   Places a copy of the text from readme.txt
                        on to the Windows clipboard.

Python tricks: “Press Enter to exit” on unhandled exception

May 5, 2007

When I write Python scripts on Windows, I often write a main() function, and when it throws an exception I don't handle, the console window closes immediately before giving me a chance to look at the traceback.

Read the rest of this entry »


Writing matrix-style scripts

May 5, 2007

I like to write what I call “matrix-style scripts” – those are scripts that work in a command line window, get a few parameters at first and then just start running, filling the screen with text as they go along, like in The Matrix (or in Hollywood productions in general).

Read the rest of this entry »


Magic values on the MSVCRT debug heap

May 3, 2007

I’d always had a feeling that the MSVCRT heap (malloc, free, new, delete) don’t just call the Win32 heap-management functions, but do some work of their own. So I investigated…
Read the rest of this entry »


void hexdump(const void * buf, size_t size)

May 3, 2007

Photo gallery on a restricted server

May 2, 2007

In this post, I’ll take you through my latest personal project – building a dynamic photo gallery. (The gallery existed before, but it was static HTML created by long nights of copying and pasting in Notepad.)
Read the rest of this entry »


The Zero Flag has been set

May 1, 2007
Yoni @ ALSA!, 2007-05-01 16:13 :
what's the best name for a blog:
1. the most significant bit
2. the zero flag
3. the code segment

Yoni2, 2007-05-01 16:13 :
oh

Yoni2, 2007-05-01 16:13 :
my

Yoni2, 2007-05-01 16:13 :
god

Yoni2, 2007-05-01 16:13 :
don't tell me you're one of them now

The Most Significant Bit was turned down due to originality issues.
The Code Segment just wasn’t cool enough.
So we’re left with The Zero Flag
Or possibly also: the zero flag?

On the topic of blog software selection: I chose WordPress because that’s what Skywing chose, but I’m too cheap to host it myself.