Cross browser parallel asynchronous XMLHttpRequests with timeout.

AsyncXMLHttpRequest is an extension of XMLHttpRequest with the following improvements:

Uniform behavior on multiple different browsers (Apple Safari, Google Chrome, Microsoft Internet Explorer, Mozilla Firefox and Opera).
Event handlers are called with the AsyncXMLHttpRequest object to which they apply as the first argument…

Delayed environment variable expansion and command extensions in CMD.EXE

If you want to use delayed environment variable expansion and command extensions in a batch script, here’s a batch script that functions as a useful cheat sheet for setting, detecting and using them:

@ECHO OFF
IF “%1″ == “TEST_EOF” (
GOTO :EOF
) ELSE IF “%1″ == “TEST_EXPANSION” (
SET extensions=enabled
IF “!extensions!”==”enabled” (
ECHO Delayed environment variable expansion = ON
) ELSE (
ECHO Delayed environment variable expansion = OFF
)
) ELSE IF “%1″ == “TEST_EXTENSIONS” (
:: CALL :label is not available if test extensions are disabled…

GNU which for Windows: which.cmd

I’ve implemented GNU which as a batch script for Windows. GNU which is a utility that is used to find which executable (or alias or shell function) is executed when entered on the shell prompt…