================================================================================
Helpful Computer.
================================================================================
( Computers can be of some use. )
================================================================================
02/27/2012 20:41:48
Property ‘anchorPoint’ cannot be found in forward class object ‘CALayer *’
You need to
#import <QuartzCore/QuartzCore.h>
So that you get the CALayer class header where anchorPoint is defined.
--------------------------------------------------------------------------------
02/10/2012 22:40:52
Clear the current line in Terminal
control-A to go to the beginning of the line
control-K to clear the whole line
--------------------------------------------------------------------------------
10/17/2011 21:44:00
Code Sign error: The identity ‘iPhone Distribution: <Your Company Name>’ doesn’t match any identity in any profile
This could be due to several things.
If you do have the iPhone Distribution: <Your Company Name> certificate and private key in your Keychain, ensure that it’s only in one of your keychains, not in login and System at the same time.
Go into Xcode’s Organizer and click on “Developer Profile” under the “Library” heading on the left panel. There, you should see however many Developer Identities. In the bottom half, ensure that the provisioning profile that you use for Distribution for Your Company is there. If it’s not, re-download it from your developer provisioning portal and double-click to add it to Xcode.
It seems that Xcode will sometimes delete those provisioning profiles from the Developer Profile section, even if you still have them in your Provisioning Profiles section. This could be due to having multiple identities and switching between them when the automatic provisioning happens (when you sign in to Xcode with your Apple ID).
--------------------------------------------------------------------------------
10/13/2011 17:08:58
Have your full path displayed in Finder
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
--------------------------------------------------------------------------------
10/13/2011 17:08:28
Code Sign error: Provisioning profile ‘<UUID>’ can’t be found.
--------------------------------------------------------------------------------
09/21/2011 13:32:54
Make a symlink
ln -s real fake
that will create a file called “fake” that points to the file called “real”.
--------------------------------------------------------------------------------
09/08/2011 21:50:00
Start apache and serve web from OS X
do these steps to setup apache: http://foundationphp.com/tutorials/php_leopard.php
then whenever you want to serve a page, go to /Library/Webserver/Documents and make a symbolic link from there to the directory you want to serve.
sudo ln -s /path/to/servable/stuff name
then you can open http://localhost/name in your browser.
--------------------------------------------------------------------------------
09/07/2011 20:33:31
Start a local webserver
--------------------------------------------------------------------------------
08/23/2011 20:09:44
Reload a launchctl plist file
sudo launchctl unload -w /Library/LaunchDaemons/org.jenkins-ci.plist
then edit the plist in question
sudo launchctl load -w /Library/LaunchDaemons/org.jenkins-ci.plist
--------------------------------------------------------------------------------
07/23/2011 13:43:50
How to get the current Unix timestamp (number of seconds since 1970)
--------------------------------------------------------------------------------
================================================================================