Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Use rsync to delete mass files quickly in Linux

Yesterday I encountered an issue to delete many log files in my Linux workstation, there were around 100,000 files to be deleted. These are log files and they grow very fast, and we need to delete them frequently. Usually we would use rm -rf * to delete these files, but we may need to wait for a relative long time if there are too many files. So we must adopt some unusual way. Fortunately, we can use rsync to delete mass files in one shot.1. Install rsyncyum install rsync2. Create a new empty foldermkdir /tmp/test3. Use rsync to delete target folderrsync --delete-before -a -H -v --progress --s...

14,178 0       DEMO RSYNC DELETE FILE


  Cross Browser HTML5 Drag and Drop

HTML5 Drag and Drop has been talked about a lot lately, but it’s hard to find really useful information about implementing it across multiple browsers.Mozilla, Apple and Microsoft all have pages describing how to use it, but their examples seem to work only in their particular browser (Apple’s example doesn’t even work in their own! Updated, Jan. 11, 2009: Although I have not been able to get this example working on Safari 2.0.4 and 3.1.2 for OS X and 4.0.4 for Windows, I have received word that it works on Safari 4.0.4 on OS X). Rem...

501,013 0       HTML5 DRAG AND DROP DEMO SOURCE CODE CR