Oct 102014
 

Every restart your Mac and have it boot up only to open all the last Safari windows you had just opened? This feature – introduced a few operating systems ago – is something I personally don’t like at all. Perhaps I’m a “power user” but I often find that I open so many browser windows in the course of my work that I don’t really want them to all re-open

Ostensibly, Safari appears to have a preference to turn this off or on, here:

However in my version of Safari (7.0.6 on Mac OS X 10.9.5), this preference appears to not actually work at all. (annoying)

So here’s how to go into your system defaults and turn it off for real:

defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool false
Apr 152009
 

Under almost all circumstances, you can just go to “About this Mac” or use the system profiler. However, very rarely I am accessing a machine remotely using SSH where I don’t also have the ability to Remote Desktop or VNC to the machine. In these cases, you can get the exact version number of Mac OS X like this:

system_profiler SPSoftwareDataType

On my mac, it returns:

Software:
System Software Overview:
System Version: Mac OS X 10.5.7 (9J61)
Kernel Version: Darwin 9.7.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: Fleetwood’s Mac
User Name: jason (jason)
Time since boot: 2 days 23:57
Mar 072009
 

First, isntall MySQL package installer from

http://dev.mysql.com/downloads/mysql/5.1.html#downloads

DON’T DOWNLOAD THE 64-BIT VERSION!!!
You must download the 32-bit version even if you have a 64-bit machine.

Then I was able to run this. Note: it is important to give the gem installer the -with-mysql-config flag, and point it to the file mysql_config inside the bin/ directory

sudo gem install mysql – -with-mysql-config=/usr/local/mysql/bin/mysql_config

UPDATE: Me thinks the 64-bit version now works with Snow Leopard 10.6 (haven’t tested under 10.5). But you have to set the flags to use 64-bit:

Prior to Leopard:
sudo gem install mysql – -with-mysql-dir=/usr/local/mysql

Leopard on a PPC machine:
sudo env ARCHFLAGS=”-arch ppc” gem install mysql – -with-mysql-config=/usr/local/mysql/bin/mysql_config

Leopard on an Intel machine:
sudo env ARCHFLAGS=”-arch i386″ gem install mysql – -with-mysql-config=/usr/local/mysql/bin/mysql_config

Snow Leopard (only on Intel):
sudo env ARCHFLAGS=”-arch x86_64″ gem install mysql – -with-mysql-config=/usr/local/mysql/bin/mysql_config

If you don’t run this with the right architecture RCHFLAGS, you get this when you try to launch your app:

unitialized constant MysqlCompat::MysqlRes

http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html
http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard
http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard

I had a real hard time with this one on a recent Snow Leopard upgrade, be sure to rebuild all your port installs too:
http://trac.macports.org/wiki/Migration

And finally do this:

cd /tmp
wget http://www.tmtm.org/en/ruby/mysql/ruby-mysql-0.2.6.tar.gz
tar xvfz ruby-mysql-0.2.6.tar.gz
cd ruby-mysql-0.2.6
sudo ruby install.rb
Dec 042005
 

How does enable/disable File Access Control List on a volume affect whether or not you can “Use Standard POSIX behavior” or “Inherit from parent” when configuring a sharepoint (on that volume) in the AFP protocol configuration.

When ACL is enabled on a volume, the options when configuring a AFP sharepoint on the volume for Use Standard POSIX behavior or Inherit from parent are greyed out, indicating the ACL will be used to determine inheritance.

This does not apply to SMB (Windows sharing), FTP, NFS sharing.

Dec 172004
 
Key What it does
C boot from optical drive drive (CD or DVD) drive
N boot from NetBoot image
T target disk mode, computer acts as a firewire hard drive and can be connected to another computer, allowing you to run diagnostics
X “X-Ray” key (resets startup disk selection)
Command-S Single User mode
Command-V Verbose Mode
Shift safe boot mode
Option key boot choice mode (also known as boot into open firmware), displays available boot hard drives and give you a choice of which one to boot from
Cmd-Option-O-F open firmware mode, lets you see what the current firmware is
Cmd-Option-P-R reset parameter RAM
Cmd-Option-Shift-Delete bypass internal hard drive
Mouse button eject removable media
Apr 102004
 

ADDRESS BOOKs DATA FILES

~/Library/Application Support/AddressBook/

ABPerson.skIndex
AddressBook.data
AddressBook.data.beforesave
AddressBook.data.previous
Images

~/Library/Preferences

com.apple.AddressBook.plist

Address Book will exhibit funny behavior if you start messing with its data files. Sometimes it will start up with an error message Data base is corrupted. (I have seen this happen when I move over the four files in Application Support/AddressBook) and sometimes it will launch and immediately quit (I have seen this happen if you delete the four files in AddressBook but leave the AddresssBook folder intact)

The best way is to use the built-in Backup and Restore which will create a single file containing all the data, move the file over, and then Restore from backup (all done in Address Book except for moving the file itself).

If Address Book launches and does not find a AddressBook folder in ~/Application Support and also does not find a plist file in Preferences, it will create both and populate the default data which contains only one record – Apples own address in Cuptertino.

Apr 102004
 

~/Library/Safari/
Bookmarks.plist
Downloads.plist
Form Values
History.plist
Icons

– copying over these items to the new ~/Library/Safari folder seems to work

Dec 032002
 

– Rendezvous. threatening to networking community because it’s putting techs out of work.
– think about how this is changing the face of technology professionals.

– File Permissions

– How to share files over two or more small computers.
OS 10.2 Jaguar introduces full implementaiton of multipline users. Unfortunately, there is something sharply counter-intiuative about how it is implemented.

When you create a second user on an OS X system, OS X create a new user folder (in /Users) for that user and creates default folder for that user listed below.

– Documents
– Pictures
– Music

Each person who logs in to the computer gets their own set of preferences, destkop picture, and place to save their files. In fact, you can log in to your computer from another OS X mac anywhere in the world, if your mac is connected to a static IP address. In other words, User A can access any of User A’s files from a remote computer with User A’s password. User A cannot access anything in User B’s folder because the finder won’t let you go “back” to the list of users. In theory, you could set the

Unfortunately, this system makes it hard to use in a small office where two or three users want to be able to share files quickly. There are methods to set file permisions to allow User A to access User B’s folder, but in the Finder when you’re logged in as User A you can’t see the folder structures of the other users on the system.

There is a Shared (/Users/Shared) folder which is shared by everybody using the system. However, this shared folder is not an effective way for a small office to network because

STICKY ISSUE – STICKY BIT

Because of the limitations imposed by (1) the inability for User A to access anything in User B