Our boy continues to be quite the fun addition to the family. He can run around playing fetch all day. He also likes to fight with Little Buddy (a.k.a. our Roomba). I think we should teach him to ride it around.
Thanks to this TidBITS article, I was tipped off to find this Mac OS X Hint about how you can rebuild the Launch Services database that determines which applications show up in your “Open With” contextual menu. My Open With had a huge amount of cruft accumulated over time with Classic apps, apps on my backup hard drive, and an annoying number of image droplets in the Photoshop/Samples/Droplets folder.
So I rebuilt my Launch Services database to make my Open With much cleaner and faster. Here’s how I did it.
Eject my backup hard drive so that the database doesn’t include duplicate copies of all my applications.
Archive the Photoshop/Samples/Droplets/ folder (right click, Create Archive, then delete the folder).
Add the following line to my ~\.profile so typing the lsregister command is easier. (alias ... should all be on one line)
# make launch services register easy to find
alias lsregister='/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/
LaunchServices.framework/Support/lsregister'
Save a description of the old database (out of curiosity, not necessary).
lsregister -dump | less > lsregDumpOld.txt
Rebuild the database. (all on one line)
lsregister -kill -r -f -domain system -domain system
-domain user "/Applications"
Save a description of the new database (again just curious).
lsregister -dump | less > lsregDumpNew2.txt
The new database is now about 1 MB, down from the original 6 MB. There sure was a lot of junk in there!
I can hear up to 17.1kHz. Steve can only hear up to 14.7kHz. So I win
this round. Although maybe that means he can save more disc space and
compress his MP3s a little more?
If you want to perform your own test, you can use Python on Windows as
follows:
from winsound import Beep
Beep(14000, 1000)
14000 is the frequency 14kHz and 1000 is beep duration 1000ms (1
second). Crank up the frequency until you can’t hear it.
Update: alternate MATLAB one-liner for doing the same:
Update 2: Paul says he can hear up to 16.9kHz well but also claims to faintly hear 18-20kHz. I think that means he wins, because I cannot hear above 17.1kHz at all. He said he used headphones whereas I used crappy laptop speakers, so I consider that cheating a little.
Update 3: So apparently, the results are very dependent on the speakers being used. I tested Amanda at home using the Bose speakers and she can hear up to 17.5kHz. Funny thing: with these speakers, I can hear up to about 18.4kHz. Not sure what to make of that except that I’m winning again.
Woah, I just randomly double-clicked a word while reading an article nytimes.com and it popped up a definition/theauraus with information on that word. Seems to work while reading articles, but not on the front page.
It is actually more than just a dictionary. For example, go read about Led Zeppelin finally doing digital downloads and when you click Zeppelin, it gives a short bio on the band. Says it’s powered by Answers.com.
Hack the iPhone is the best site that collects iPhone hacks, how-to’s, and downloads. Installer.app is a package manager that lets you install, update, and uninstall a great variety of 3rd party iPhone software. Awesome. Finally, iFuntastic lets you change your icons, backgrounds, and install apps.
Suppose you are using Subversion to manage your code and find that you’d like to include revision information within a file. You might read this and think it won’t work, but do not be dismayed. You really wanted to look at Keyword Substitution in the Subversion book.
There you will find that enabling substution on a file is rather easy. Say you have some code in Spam.py and you’re running TortiseSVN. Then, the basic process is:
Add a property svn:keywords with value Date Revision Author HeadURL Id
Put a keyword in the file where you want it to expand the thing — I put $Id$ in the docstring of Spam.py. Id is a summary which, after checking in, expanded to "$Id: Spam.py 513 2007-10-10 23:10:30Z username $".
On Mac OS X, Hex Fiend handles editing of binary files beautifully.
On occasion, I also need to munge around with large hex files on
Windows. Today, I found the XVI32 hex editor — it does the
job nicely, letting me delete out segments and re-save the result. It
probably wouldn’t work as well with extremely huge files because it does
everything in-memory, but for 300MB files, it works great.
In the never-ending search for commuting content, I stumbled upon listening to words. It has a decent collection of interesting video and audio lectures available for free. Give it a listen.
A CSS framework that “gives you a solid CSS foundation to build your project on top of, with an easy-to-use grid, sensible typography, and even a stylesheet for printing.” Check it out. By the way, Google Code is starting to host some great stuff lately …
Sometimes it is nice to be able to send huge files to people over the web without hosting a server. pando and YouSendIt are both good solutions for doing that. Pando gives 1GB free while YouSendIt gives 2GB.
I love the tagline “A really fast dictionary … fast like a ninja.” ninja words really is litening fast with instant results that show up in your browser window without reloading.
I was having trouble mounting, reading, or writing to an external USB hard drive on my Mac. Trouble was it is formatted with NTFS and I didn’t want to reformat. Solution: install macfuse and ntfs-3g then go to Terminal and type
diskutil list | grep Windows_NTFS
to find your NTFS disk matching /dev/disks, then mount the disk
Check out my good friend Steve Hoelzer’s Master’s thesis on reducing blocking artifacts in DCT-coded images (like highly-compressed JPEGs). I enjoyed the clear and concise executive summary.
Last weekend, I became a proud double-uncle when my brother’s family grew from 2 to 4 overnight! Ashley Nicole and Lindsey Grace were born at 12:30 in St. Louis on January 12, 2006.
Now there’s a way to put video back to my TiVo from my Mac. The
interface for turning it on is hidden until you either command-click the
TiVo preference pane or type defaults write com.tivo.desktop FileVideo
-dict-add VideoUIEnabled -bool true into Terminal (this feature is
also known as “TiVoToComeback”).