Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Friday, December 16, 2011

An error occurred while dispatching a duplicated socket: this handle is now leaked in the process

The error kept coming up in the System event logs on Microsoft Windows Small Business Server (SBS) 2011.

To fix this, change maxPendingAccepts from 2 to 10 in SMSvcHost.exe.config

<net.tcp maxPendingAccepts="10" ... >

Refs
http://blogs.msdn.com/b/andreal/archive/2009/04/05/net-tcp-ip-port-sharing.aspx

Sunday, July 31, 2011

New Brower Session on IE8/IE9 and Google Chrome

IE8 or IE9 (Microsoft Internet Explorer)
Use -nomerge switch when running IE.

Google Chrome (V12.0.742.124)

  • Use Ctrl + Shift + N to bring up a new Chrome window in the Incognito mode (private browsing). However, any subsequent window opened up this way will share the same session.
  • Use --user-data-dir switch with different profile locations when running Chrome. A bit awkward but can be mitigated by using shortcuts. However, each session will its own config and cache. For example,

google-chrome --user-data-dir=/home/tom/chrome-profiles/1
google-chrome --user-data-dir=/home/tom/chrome-profiles/2
google-chrome --user-data-dir=/home/tom/chrome-profiles/3

Refs
http://superuser.com/questions/690/new-browser-session-on-firefox-and-google-chrome

Tuesday, April 5, 2011

Linux equivalent to robocopy

robocopy /s src dest
rsync -av src/ dest

robocopy /mir src dest
rsync -av --delete src/ dest

robocopy /mir /z src dest     (restartable mode)
rsync -avhP --delete --append src/ dest

robocopy /mir src/sub1 dest/sub1

rsync -av --delete src/sub1/ dest/sub1
or
rsync -av --delete src/sub1 dest

From rsync command help:-

A trailing slash on the source can be used to avoid creating an additional directory level at the destination.

-a, --archive      archive mode; equals -rlptgoD

    --append       append data onto shorter files
-h                 output numbers in a human-readable format
-P                 same as --partial --progress
    --partial      keep partially transferred files
    --progress     show progress during transfer
-v, --verbose      increase verbosity
    --delete       delete extraneous files from destination dirs

-r, --recursive    recurse into directories
-l, --links        copy symlinks as symlinks
-p, --perms        preserve permissions
-t, --times        preserve modification times
-g, --group        preserve group
-o, --owner        preserve owner (super-user only)
-D                 same as --devices --specials
    --devices      preserve device files (super-user only)
    --specials     preserve special files


See also
rsync to NAS (Windows SMB)