Aug 22
open terminal
sudo sh
killall Finder
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
Why? I’ve found sometimes certain applications require root to run/install. Office 2004 and an HP Officejet software are two examples.
UPDATE: Realize this may bork your login/session after this and you are likely going to want to reboot.
Tagged with: app • finder • install • OSX • root • sudo
Jan 29
All the Agile folks would say if you run/create your tests you might not even get this far. However, that’s not always reality for me.
1. ‘tail -f /development.log’
If you are on OSX, the above is easy.
On Windows, I’d suggest looking at Cygwin and getting tail working. It’s worth it.
a) open terminal.
b) Clear the screen before you reattempt what is broken. (Use Apple + K on OSX)
c) Stop tail right after getting the error (CTRL + C)
d) Look for the first line that is not normal Rails and debug output. See next area.
2. Skip all the fluff and go for Ruby errors. You will learn to see “stacktraces” and errors in Ruby/Rails after a little practice.
They will look something akin to this:
1)An error
2)The file that the error occurred in…
3)the line number/and problem code…
4)A sample of the code at and around the error.
…
5) A bunch of code that was run prior to this happening.
3. Did you recently change the file in question? If so, revert what you did?
4. Use logger.debug to print out something right before the error to see if your code is making it that far.
Tagged with: 101 • coding • Rails • troubleshooting
Dec 18
There are several ways out there to install RMagick: via ports, package installer, etc. My advice: before you even start working on these.
1. Install ALL updates from Apple for your OSX.
2. Update XCode to the latest downloadable version.
Doing the above will save you a whole weekend and avoid weird errors like this:
.libs/libMagick.dylib must have a ‘:’ between its file names
H