Author Archive
For Windows DropBox users. Here is a simple way to share list of links for your Public folder. This script doesn’t show files in sub-directories.
1. Create a makefilelist.bat file with script to list all files in directory.
2. Use Scheduled Tasks to run the .bat file Daily or Weekly, etc as needed; depending on how often you update files in DropBox Public.
3. Share the list file with “Copy Public Link”.
4. Open Public Link in a browser. You know have a list of all public files that is up-to-date.
You can see an example and download the makefilelist.bat file here:
http://dl.dropbox.com/u/4355901/index.html
The instructions floating around are to place the --incognito switch (single – works fine for me) in your desktop shortcut. But sometimes you may be in an application like Tweek Deck, etc that links to webpages. These pages don’t launch in incognito if you only fix your desktop shortcut. Here is how to do both. Google Chrome is set as the default browser in this case.
(These instructions are based off of Windows XP)
Right-click on your Chrome shortcut. Choose Properties. Add -incognito to the end:
chrome.exe" --incognito
To launch all web shortcuts and links from your system:
Control Panel > Folder Options > File Types
Select the File Type URL:HyperText Transfer Protocol and choose Advanced
Select action open and edit.
Just like before add the switch to the end like this:
chrome.exe" --incognito -- "%1"
Edit: After more digging in Google I found this tip mentioned in Google Code Chromium issues (Comment 3).
How to search all files for a text string:
grep -lr string ./ > results.txt
-l will print only the path and file names of the matches.
Search all files of a certain name for a certain string:
grep -lr string ./ | grep filename
Yes, do specify ./ if you are doing all directories within current.
Find an replace a string in files:
Searching for a way to do this usually leads me to finding fancy scripts that don’t work right, are scary (create temp files, etc) or aren’t recursive. Just have backups at hand and test the following combination of find and sed before unleashing it, because it works great! You can test it by replacing sed with grep
find ./ -type f -exec sed -i ’s/string1/string2/’ {} \;
Within specific file names/extentions…
find ./ -iname \*.htm\* -exec sed -i 's/\-2005/\-2007/g' {} \;
Don’t forget to use escape \ as seen above. And if your strings contain forward slash / just use a different delimiter such as pipe | or escape it.
You can also install rpl, as shown in the source pdf, for even cleaner line of code for executing your find and replace.
(source and more info) A nice pdf to keep by your side.
Be careful when using the “I’m Feeling Lucky” search on Google. You do not get to see the result’s discription or what webpage you are about to visit and it could cause you some trouble. For example currently “zune windows theme” visits the download URL. So instead of a webpage you are instantly prompted to download a file.
New Google Insights for Search gives you a deeper analysis of keyword trends by region and time frame while also showing you what was popular and is becoming popular.
According to this a mapped Windows drive is a lot faster for transferring files than simply browsing to the share. Find your share under Network Places, right-click and select “Map Network Drive”.
Some other tips: put a $ at the end of your share name to hide it. Upgrade to SP3 to have multiple shares with different permissions on a folder.
