set the http_proxy system variable as
set http_proxy=http://proxy.mj.com:8080
instead of
set http_proxy=proxy.mj.com:8080
November 4, 2009
FAQ: Ruby GEM error: ERROR: While executing gem … (URI::InvalidURIError)
September 30, 2009
processTame
import os
import sys
import win32process
import win32api
import subprocess
import win32con
def setpriority(pid=None,priority=1):
priorityclasses = [win32process.IDLE_PRIORITY_CLASS,
win32process.BELOW_NORMAL_PRIORITY_CLASS,
win32process.NORMAL_PRIORITY_CLASS,
win32process.ABOVE_NORMAL_PRIORITY_CLASS,
win32process.HIGH_PRIORITY_CLASS,
win32process.REALTIME_PRIORITY_CLASS]
if pid == None:
pid = win32api.GetCurrentProcessId()
handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
win32process.SetPriorityClass(handle, priorityclasses[priority])
if (len(sys.argv) == 0):
print("usage: processtame.exe ")
else:
if (os.path.exists(sys.argv[1])):
app = subprocess.Popen(sys.argv[1])
pid = app.pid
setpriority(pid, 0)
app.wait()
September 10, 2009
Searching Machine & User in OU
users: dsquery user -name “username”
Computers: dsquery computer -name “computername”
August 7, 2009
MultiBoot WinXP and Linux using Grub.
If winxp is installed on second drive and linux is installed on first drive then add/update the following entries in the /boot/grup/menu.lst file
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader +1
June 4, 2007
search for a string in files in folder
By using the following VBSCript one can search for a string in a file.