command prompt here windows xp

  1. Start Regedit
  2. Go to HKEY_CLASSES_ROOT\Directory\shell
  3. Create a new key called Command
  4. Give it the value of the name you want to appear in the Explorer. Something like Open Command
  5. Under this create a new key called command
  6. Give it a value of cmd.exe /k “cd %1”
  7. Now when you are in the Explorer, right click on a folder, select Open DOS Box, and a command prompt will open to the selected directory.

Thread Local Context Pattern

aka Thread Local Global Variables

class RequestContextHolder {
	private static ThreadLocal threadLocal = new ThreadLocal();
	public static Map get() {
		return (Map)threadLocal.get();
	public static void set(Map context) {
	public static void clearContext() {
		threadLocal.set(null); }

class FrontController
	public void handleReqeuest(HttpRequst request.....) {
		try {
			Map requestContext = buildRequestContext(request);
			RequestContextHolder.set(requestContext); .....
			Response response = handleRequest(request);
		} finally {