Friday, November 25, 2011

ADSL QoS - Quality of Service setting for smoother web experience while P2P ongoing

using D-link DSL-2640B as reference:
-log in your ADSL modem
-click ADVANCED tab
-mouse over "Network Tools", click "Quality of Service". Just click OK for the prompt dialog
-click Add

Make this setting
-Traffic Class Name: my_web           (don use spacebar)
-Assign Classification Queue: wireless&Prece 1&Queue 1
-Protocol: TCP/UDP
-Destination Port Type: Single Port
-UDP/TCP Destination Port (port or port:port): 80
click Apply

-click Add   again
-Traffic Class Name: my_p2p           (don use spacebar)
-Assign Classification Queue: wireless&Prece 8&Queue 8
-Protocol: UDP
-Destination Port Type: Port Range
-UDP/TCP Destination Port (port or port:port): 1024:65530
click Apply

you might need to restart the router.
FYI, the web browsing is MORE responsive, but if P2P is heavy web still slow.

Friday, July 8, 2011

windows 7 search file name only

So you are one of the millions frustrated users out there who hate 7's search compared to XP's.
Try this in windows 7's Windows Explorer -Tools option - Folder Options - Search - (What to search) Click In indexed locations, search file names and ...

MSSQL 2005/2008 auto backup by task scheduler

IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'myDatabaseName')
BEGIN
   BACKUP DATABASE myDatabaseName TO DISK = 'C:\test\myDatabaseName.bak'
   WITH FORMAT, NAME = 'Auto backup by scheduler';
END
-- make sure there is MODIFY access for EVERYONE on the target folder
--repeat this command in Windows Task scheduler everyday / week:
--sqlcmd -S localhost\sqlexpress -E -i"C:\test\autoBackupScript.sql"

Tuesday, June 21, 2011

setup iis 6 unatended -- windows XP

http://support.microsoft.com/kb/309506

sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\setupiis.txt
setupiis.txt::

[Components]
iis_common = ON
iis_www = ON
iis_www_vdir_scripts = ON
iis_inetmgr = ON
fp_extensions = ON
iis_ftp = ON

repair windows files from CD "sfc /scannow" -- windows XP + 7

sfc /scannow 

Thursday, May 19, 2011

repair windows 7 boot

from "http://heiser.net/posts/3256"


  1. Reconfigure your BIOS to boot from the DVD first and then the Win7 drive
  2. Boot the machine from the Win7 DVD
  3. After the language select screen, choose "Repair your computer" from the lower left
  4. The system will not find any installations. This is okay, click the top radio button and hit Next
  5. You'll see a list of "System Recovery Options". Open up the Command Prompt
  6. Try typing the following commands in order: "bootrec /fixmbr", "bootrec /fixboot", "bootrec /rebuildbcd". If these complete successfully, go ahead and skip the next step. However, if any of these steps reports "Element cannot be found" you need to reconfigure the disk configuration.
  7. You're going to use DISKPART to make the Win7 partition active. You can type "HELP" for a list of commands or check out Microsoft's help page. Basically you select the drive first ("LIST DRIVES" and then "SELECT DRIVE [number]") and then the partition ("LIST PARTITION" and then "SELECT PARTITION [number]") where Win7 is installed. Then type "ACTIVE" to make the selected partition active. Once this is finished, repeat the previous step.
  8. With the bootloader now created, we need to let Win7 configure it. Restart and boot from the DVD again, and choose the same repair option as before. Now you should see your Win7 installation listed. Allow the installer to repair the system. You may have to repeat this step once or twice, but eventually the bootloader will be fixed and your machine will work again!

Monday, May 16, 2011

Uninstall Office 2003,2007,2010 suites if I cannot uninstall it from Control Panel

http://support.microsoft.com/kb/290301/en-us

and remove rgstrtn.lck :
http://support.microsoft.com/kb/927153

Monday, March 7, 2011

auditing for file access

auditing:
Administrative Tool-Local Security Settings-Local Policies-Audit Policy-Audit object access
rightclick file-Properties-Security-Advance-Auditing: Failed on "Delete"

this particular setting works for recording overridden and failure to delete the file.

Saturday, February 5, 2011

streamyx dialer

'only for bridge mode
'HOW TO CLOSE : ctrl + alt + del > process > wcscript
'Script to auto connect/disconnect until you get the ip within a range that specified by you.

TempFileName="c:\ips.txt" 'Any temporary location
IPInString = "218.208" 'String to search for
IPNumber = "218." 'Beginning of IP to search for.
ConnectionName = "StreamyX" 'the name of your StreamyX connection
UserName = "STREAMYX ID@streamyx" 'replace with your NETWORK ID
Password = "mypassword" 'replace with your NETWORK PASSWORD

'---------------------------------------------------------------------
sFlag = 0
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Set oFileSystem = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("WScript.Shell")
oShell.Run "%comspec% /c rasdial.exe " & ConnectionName & " /Disconnect"
Do While sFlag <> 1
oShell.Run "%comspec% /c rasdial.exe " & ConnectionName & " " & UserName & " " & Password,2,true
oShell.Run "%comspec% /c ipconfig.exe > " & TempFileName,2,true 'line 10
Set oFile = oFileSystem.OpenTextFile(TempFileName, ForReading)
'Search for IPs and check if in right domain
Do While oFile.AtEndOfStream <> True
sIPAddress = oFile.ReadLine 'Read line of temporary file
If Instr(sIPAddress,IPInString) <>0 then 'Find line start with IP Address
ColonPos = Instr(21,sIPAddress,":") 'Find position of colon
sIPAddress = Mid(sIPAddress,ColonPos+2) 'Extract IP portion
If Trim(Left(sIPAddress,Len(IPNumber))) = IPNumber then 'Check of right IP
sFlag = 1 'Found good IP so set flag
exit do
End If
End If
Loop 'Look for next IP
If sFlag = 0 then
oShell.Run "%comspec% /c rasdial.exe " & ConnectionName & " /Disconnect"
oShell.Run "ping.exe -n 3 127.0.0.1", 0, True
End If
Loop
If sFlag = 1 then 'Found good IP so process route table
oFile.Close
set oFile=nothing

'Delete temporary file.
oFileSystem.DeleteFile TempFileName,true

'Cleanup
set oTXTFile=nothing
set oFileSystem=nothing
set oShell = nothing

end if

Thursday, February 3, 2011

misc tools

backup & undelete
backup windows driver: drivermax.exe
no need installation: file_recovery.exe
Paragon Backup and Recovery Free
Rescue Kit 10 Free Edition
Macrium Reflect Free Edition
Drive Image XML

PartImage Is Not Ghost
Clonezilla
Easeus Todo Backup

http://www.file-recovery.net/
http://www.recovermyfiles.com/
partition-savepart

Multimedia
IrfanView - free image viewer, batch converter
Audacity - sound editor at sourceforge.net
Hanbrake - various video format free converter at handbrake.fr
phtofiltre.free.fr -  filter, cut, automate
sourceforge.net/projects/imageenlarger/  enlarge img & keep smoothness
www.shapecollage.com    join little photo to make one large

record screen play
www.repairvideo.com   fix undraggable video
Digital Video Repair : incomplete download fix

Crack
wifi-beini
ARPoison
ARPToxin

Torrent
deluge
thunder

Misc
IM: meebo.com
remote control: Teamviewer, RealVnc, Sharedview
unlocker
processMonitor
InSSIDer - wifi monitoring
find active-ipscan
Advanced Port Scanner
windirstat
filedatech
antivirus: Avira, Avast

wifi sharing - happy cny

scenario: Sony uses usb modem to surf net, wanna share it with Presario using wifi

sony netbook:
-wireless network properties-Wireless Networks tab-Add:
  your own SSID(eg:mywifi), Open, WEP, 5/13 digit passwd, Check ad hoc
  ip: 192.168.0.1
-Refresh wireless network list, connect your own SSID(eg:mywifi)
-install CCProxy - Options - Auto Detect choose the Digi ip; Account <-- Presario ip as allowed client

Presario:
-wifi property ip: 192.168.0.2
-refresh & connect to own SSID(eg:mywifi)
-firefox's Proxy set to 192.168.0.1 & port 880 (as in CCProxy)

robocopy - Robust File Copy Utility

robocopy "C:\orifolder" "c:\zzTarget" /S /E /NP
robocopy "C:\orifolder" "z:" /S /E /NP


copy only new files/modified files onto another folder. supports network drives too.

download at
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd

Tuesday, February 1, 2011

Firefox user agent

type this in Firefox's address bar:  about:config
general.useragent.override
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)"


your FF user agent could be unique enough for 3rd party tracking!!

Monday, January 31, 2011

Saturday, January 29, 2011

readonly all usb drives

   1. Launch    regedit

   2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

   3. You should see a key called StorageDevicePolicies. If it doesn't exist, create a new key with that name.

   4. In the StorageDevicePolicy key, create a REG_DWORD value called  WriteProtect.

   5. Set the data value of WriteProtect to 1.

   6. This value will make USB storage read only. To enable read/write over USB, set the value to 0.

   7. Exit the editor.

Thursday, January 27, 2011

hide unread email notification on welcome screen

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail]
"MessageExpiryDays"=dword:00000000

menushowdelay

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="150"


gives you a fast computer impression :)

hide user name on welcome screen

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]
"michael"=dword:00000000

to disable default windows share

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
"AutoShareWks"=dword:00000000
"AutoShareServer"=dword:00000000

Tuesday, January 25, 2011

regedit for CD burning cache folder location, and others

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"AppData"="C:\\Documents and Settings\\username\\Application Data"
"Cookies"="C:\\Documents and Settings\\username\\Cookies"
"Desktop"="C:\\Documents and Settings\\username\\Desktop"
"Favorites"="C:\\Documents and Settings\\username\\Favorites"
"NetHood"="C:\\Documents and Settings\\username\\NetHood"
"Personal"="C:\\Documents and Settings\\username\\My Documents"
"PrintHood"="C:\\Documents and Settings\\username\\PrintHood"
"Recent"="C:\\Documents and Settings\\username\\Recent"
"SendTo"="C:\\Documents and Settings\\username\\SendTo"
"Start Menu"="C:\\Documents and Settings\\username\\Start Menu"
"Templates"="C:\\Documents and Settings\\username\\Templates"
"Programs"="C:\\Documents and Settings\\username\\Start Menu\\Programs"
"Startup"="C:\\Documents and Settings\\username\\Start Menu\\Programs\\Startup"
"Local Settings"="C:\\Documents and Settings\\username\\Local Settings"
"Local AppData"="C:\\Documents and Settings\\username\\Local Settings\\Application Data"
"Cache"="C:\\Documents and Settings\\username\\Local Settings\\Temporary Internet Files"
"History"="C:\\Documents and Settings\\username\\Local Settings\\History"
"My Pictures"="C:\\Documents and Settings\\username\\My Documents\\My Pictures"
"Fonts"="C:\\WINDOWS\\Fonts"
"My Music"="C:\\Documents and Settings\\username\\My Documents\\My Music"
"CD Burning"="J:\\CD burning cache"
"My Video"="C:\\Documents and Settings\\username\\My Documents\\My Videos"
"Administrative Tools"=""

Sunday, January 23, 2011

gpedit.msc to turn off autoplay

run gpedit.msc

computer configuration-administrative templates-system: turn off autoplay -> Enabled


computer configuration-windows settings-security settings-Local policies-User rights assignment:Deny access to this computer from the network: add administrators

taskmgr

runas /user:administrator /savecred "ntsd -c qd taskmgr"

may change a running program's priority runned by other user
runas is only available for pro version of windows...