Category: Apple
Automatically update locate DB in OS X
Pretty straightforward, simply add the following in your .bash_profile: alias locate=’if [ $((`date +%s`-`eval $(stat -s /var/db/locate.database); echo $st_mtime`)) -gt 3600 ]; then echo “locate: db is too old!”>/dev/stderr; sudo /usr/libexec/locate.updatedb; fi; locate -i’ Note: Run source ~/.bash_profile to reload.
Subclipse Error in Eclipse: “Failed to load JavaHL Library”
Just in case you get the error above with Eclipse when accessing an SVN repository via Subclipse on OS X Lion, do the following: 1. Install MacPorts (make sure you have Xcode and the command line tools). 2. Run the following in terminal: sudo port install subversion-javahlbindings
Eclipse error when adding Python Lib on OS X Lion
When I tried creating my first PyDev project in Eclipse on OS X Lion, I was asked to configure my interpreter as it was not listed. And when I did the “Auto Config” option, it came be with the following error: “Error: Python stdlib not found It seems that the Python /Lib folder (which contains…
Show hidden files on OS X Lion
To enable hidden files/folders in finder windows: Open Finder Open the Utilities folder Open a terminal window Copy and paste the following line in: 1 defaults write com.apple.Finder AppleShowAllFiles YES Press return Now hold ‘alt’ on the keyboard and right click on the Finder icon Click on Relaunch
App/File Manager for iPhone, iPad and iPod
Adding this for archival purposes (so I can refer to it in the future). I’ve used it and it works great and what’s nice about it is it’s a stand-alone, no-need-to-install, app. http://www.i-funbox.com/ Go get it!
iPhone 4 fix when “Home” button not working
I purchased my iPhone 4 around July of 2010, so it’s almost 2 years old. It’s been rock-solid until about a month ago when the “Home” button was working intermittently (i.e. pressing it didn’t activate the phone); tried hard-resetting many times, doing restores, etc., without success. What fixed it was merely: 1. Get a dust…