Copyright Information
Introduction
IPhone sdk uses objective-c as the development language. Xcode is the official development environment.
Objective-C was invented by Brad Cox and Tom Love in the early 1980s. The company was called Stepstone. In 1988, Steve Jobs left Apple and formed company NeXT. NeXT licensed objective-c from Stepstone. After the acquisition of NeXT by Apple in 1996, objective-c has since become the programming language on Mac.
Objective-C and Other Languages
Objective-C is an strict superset of C, meaning any C programs can be compiled by a objective-c compiler. On the other hand, most recent gcc compilers has support for objective-C and should be able to compile objective-C code.
Both being OO extension of C, C++ and objective-c are se...[more ]
How to unlock IPhone
How do I use tethering with an IPhone?
With an non-jailbroken iPhone 3G(s), follow these steps
Ran "defaults write com.apple.iTunes carrier-testing -bool TRUE"
Download , or
Double click the img file in your Mac file browser
Connect your iPhone with your Mac, and in iTunes, select Device->iPhone, in Summary pane, OPTION click Restore (press OPTION key when clicking restore button), and select the file in img disk image.
You are done. To use tethering, go to iPhone settings->general->network and enable tethering. An additional network interface will automatically show up on your Mac
How to sync up gmail contacts with iPhone?
Use more ">Google Sync
3 How do I enable root account
[AS]
Go->Utilities->Directory Utility->Edit menu->Enable root user
4 How do I mount an NTFS disk in read/write mode?
By default, mac mounts ntfs drives (such as your typical USB drive on windows) in read-only mode. To mount your USB in read/write mode, install NTFS-3g for Mac
5 How do I share my mac share?
System Preferences -> Share -> Then options -> Smb
6 How do I mount an nfs share?
mount nfsserver:/exported/path /local/mount/point
7 How do I enable Chinese input in leopard?
System preferences -> International -> input method -> chinese
8 How do I check out my system configuration?
Go -> Application -> Utilities -> System Profiler
9 How do I install firefox (or an application)?
Download the .dmg file, double click it and the disk image will be mounted to a Volume under /Volumes/. Copy firefox.app to /Applications/ directory, and unmount the firefox disk.
Go --> applications, look for firefox application, you could drag-drop it to your dock
10 How do I install latex?
port install tetex
11 How do I install dia?
port install dia
If you see gtk build error, and was instructed to "sudo ln -s libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib", do it, and then run "port install dia" again.
After installation, you should be able to run dia via "dia" command which is installed under /opt/local/bin. If you want to start dia from your applications list or drop it in your dock, then download http://freshmeat.net/redir/xdroplets/56631/url_homepage/xdroplets and drop it into your applications folder.
12 How do I enable firewall?
System Preferences -> Security -> Firewall
13 I've been using windows all the time, can I still use my windows messenger?
Download and install Microsoft messenger for Mac
14 What is a dmg file
dmg is short for disk-image. Many mac installation files are packaged in dmg format. To install a dmg file, double click it, and mac will mount it to a disk volume, then you can install application from within.
15 How do I change my itunes from Englist menu to non-english menu?
Go to Applications/iTunes.app/Contents/Resources, backup English.lproj to English.lproj.dist, and copy your language pack to override English.lproj.
16 I got this error: audit_log_user_command(): Connection refused
This is usually not a serious problem. You get this error because sudo could not find the auditd service which by default is not running on Mac https://bugzilla.redhat.com/show_bug.cgi?id=401201
17 How do I create dmg file from a CD?
Utilities -> Disk Utilities, click CD, then new image
18 How do I converter dmg file to ISO?
hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso [MH]
19 How do I execute an application in sandbox?
Use sandbox-exec command. All sandbox configs are in /usr/local/sandbox. For example, if you have this in a /usr/local/sandbox/demo.sb
(version 1)
(allow default)
(deny file-write*)
(deny network*)
and run sandbox-exec -f /usr/local/sandbox/demo.sb your-app-name, this means that the app can do anything but file-write and network communications
20 iPhoto Library size is huge, I removed all my pictures, but /User/MyName/Pictures/IPhoto Library is still 2 Gigabytes!
First check your Trash folder in IPhoto, make sure it's empty. If it's empty and "iPhoto Library" file is still huge, make sure you don't have any pictures left, and then remove "iPhoto Library" file. Restart iPhoto, a much smaller library file will be created.
21 What's Spaces for? How do I use it?
Here's my scenario:
To set up Spaces: (1) click on Spaces to setup your spaces. Right click (two-finger click) to enter setup interface, or (2) start your application, press fn+F8, then drag and drop your application into a specific space.
To go into different spaces, (1) Fn+F8, go to different spaces, or (2) start application from any space, trigger task list (four finger swing), click specific application to go to that space
This is specifically useful for virtual machines. For example, you could put VMware Fusion in a separate space, and put your VM into full screen mode, then you could have a full screen windows in one space, and a full screen OSX in another space. To switch, you could 4-finger swing, and click VMware Fusion icon, which will take you to that specific Space.
22 How do I use XCode auto completion?
The default key stroke to bring out auto completion list is Option+Esx. I have yet to figure out how to pop up auto completion list automatically.
23 How do I bring up inspector windows in interface builder?
Tools->inspector
24 How do snap a screenshop?
Command+shift+3. [TC]
25 How do I enable hibernate on Mac OS?
Use pmset command. Run the following to see if current setup "pmset -g", look for hibernationmode, it should be one of the following:
hibernatemode takes a bitfield argument defining SafeSleep behavior. Passing 0 disables SafeSleep alto-
gether, forcing the computer into a regular sleep.
1 (or 0001 bit 0) enables hibernation; causes OS X to write memory state to hibernation image at sleep time.
On wake (without bit 1 set) OS X will resume from the hibernation image. Bit 0 set (without bit 1 set)
causes OS X to write memory state and immediately hibernate at sleep time.
2 (or 0010 bit 1), in conjunction with bit 0, causes OS X to maintain system state in memory and leave sys-
tem power on until battery level drops below a near empty threshold (This enables quicker wakeup from
memory while battery power is available). Upon nearly emptying the battery, OS X shuts off all system
power and hibernates; on wake the system will resume from hibernation image, not from memory.
hibernatemode is set to 3 (binary 0011) by default on supported portables.
hibernatemode is set to 0 (binary 0000) by default on supported desktops.
Please note that hibernatefile may only point to a file located on the root volume.
For newer Mac systems, there's also the following options[MS] :
5 (0101) - Behaves as 1 but applicable only for modern Mac that uses "Secure virtual memory".
7 (0111) - Behaves as 3 but applicable only for modern Mac that uses "Secure virtual memory".
For example, "sudo pmset -a hibernatemode 5" or "sudo pmset -a hibernatemode 1" forces a windows-like hibernate every time you close your lid. Takes more time, but saves battery power. If you want to reset hibernate state, use "sudo pmset -a hibernatemode 3"
26 What is secure virtual memory?
Secure virtual memory encrypts virtual memory swap files. By default, this feature is disabled. To enable it, go to System Pref->Personal->Security.
27 How do I put eclipse in my dock?
Go to your eclipse diretory, drag and drop eclipse to the dock
28 VNC servers?
Try vine server.
29 iTunes chinese character problem?
Use 千千静听 , select all songs, right click, and change tags to UTF16.
30 How do I update my system?
Click system icon (the apple on our top left corner), select check update.
31 How do I print in black-and-white only?
Click print..., then click preview, select "Quality and media", then click "gray scale printing".
32 How do I batch resize image?
Use automator. Applications->Automator, on the left column, choose File and Finders, then pick Find Finder Items, drag it to right pane. Then drag Photos->Scale Photos to right side, run.
33 I cannot seem to access the hotel wifi with my Mac?
This might have been caused by the hotel wifi server asking for a confirmation for agreement or payment. This usually shows up on windows when you first connect to network, but not always so on Mac. This is usually only a problem with DHCP server refusing to allocate you an IP address. To confirm if it is the issue, run "ifconfig" and check your ip address. If it is 169.254.x.x, then your are not getting a valid IP from the DHCP server.
To work around this problem, run "tcpdump" from termical, look for broadcast packages, this usually contains your DHCP server address, for example, "192.168.2.1", "192.168.1.1", or "10.17.0.1", etc.
Then open "Settings->Network->Airport", or click airport icon on Mac top bar, then click network properties, then select Airport->Advanced. Set a static IP in your network. Use google public DNS (8.8.8.8, and 8.8.4.4) as your primary and secondary DNS servers, try to connect again.
34 My macbook cann't seem to get dhcp IP address properly. I kept getting 169.254 addresses
When macbook prompts you about accepting incoming traffic for configd and mDhcpd, answer yes
35 After upgrading to snow leopard, no sound?
Check your bluetooth settings, try disable it and see if that helps.
36 How do I verify sha1 hash?
/usr/bin/openssl sha1 /Users/test/Documents/1024SecUpd2003-03-03.dmg[APC]
References [APC] http://support.apple.com/kb/ht1652 [AS] http://support.apple.com/kb/HT1528 [MH] http://www.macosxhints.com/article.php?story=20040121135301830 [MS] http://macsimplelife.blogspot.com/2007/11/mac-os-x-hibernate-issue.html [TC] http://www.techiecorner.com/138/how-to-do-print-screen-in-mac-os-x/
Mandatory Access Control (MLS, DAC)
(search time: 13.052 msec)
Macon County, Alabama:
Check out what google has to say about
Macon County, Alabama
Total households 8950, total housing units: 10627
Population:24105, male 11075 female 13030
Races in Macon County, Alabama:
Black (84.64%) White/Non-Hispanic (13.82%) Hispanic (0.72%) Asian (0.38%): Asian-Other(0.34%) Chinese(0.03%)
Macedonia town, Alabama:
Check out what google has to say about Macedonia town, Alabama
Total households 114, total housing units: 141
Land area: 2.213776 square miles, water area 0.000000 miles
Latitude: NORTH 33.402421, longitude: EAST -88.23983
MAP
Population:291, male 140 female 151
Races in Macedonia town, Alabama:
Black (91.75%) White/Non-Hispanic (6.53%):
MaChis Lower Creek SDAISA, AL:
Check out what google has to say about MaChis Lower Creek SDAISA, AL
Total households 9581, total housing units: 11048
Population:24198, male 12098 female 12100
Races in MaChis Lower Creek SDAISA, AL:
White/Non-Hispanic (86.12%) Black (9.45%) Hispanic (1.44%) Asian (0.33%): Asian-Other(0.19%) Korean(0.05%) Japanese(0.05%) Chinese(0.04%) Hawaiian or Pacific Islander (0.02%)
Point MacKenzie CDP, Alaska:
Check out what google has to say about Point MacKenzie CDP, Alaska
Total households 39, total housing units: 98
Land area: 147.977940 square miles, water area 2.316055 miles
Latitude: NORTH 61.374982, longitude: WEST 149.91239
MAP
Population:111, male 62 female 49
Races in Point MacKenzie CDP, Alaska:
White/Non-Hispanic (91.89%) Asian (1.80%): Chinese(1.80%) Black (0.90%)
Tumacacori-Carmen CDP, Arizona:
Check out what google has to say about Tumacacori-Carmen CDP, Arizona
Total households 223, total housing units: 252
Land area: 6.213475 square miles, water area 0.000000 miles
Latitude: NORTH 31.561157, longitude: WEST 111.04781
MAP
Population:569, male 280 female 289
Races in Tumacacori-Carmen CDP, Arizona:
Hispanic (58.00%) White/Non-Hispanic (39.02%) Asian (1.58%): Chinese(1.05%) Asian-Other(0.35%) Korean(0.18%) Black (0.18%)
Cammack Village, Arkansas:
Check out what google has to say about Cammack Village, Arkansas
Total households 395, total housing units: 406
Land area: 0.287233 square miles, water area 0.000000 miles
Latitude: NORTH 34.779941, longitude: EAST -92.34693
MAP
Population:831, male 359 female 472
Races in Cammack Village, Arkansas:
White/Non-Hispanic (96.75%) Hispanic (1.44%) Black (0.96%) Asian (0.24%): Asian-Other(0.12%) Chinese(0.12%)
Smackover, Arkansas:
Check out what google has to say about Smackover, Arkansas
Total households 794, total housing units: 915
Land area: 4.249090 square miles, water area 0.000000 miles
Latitude: NORTH 33.361525, longitude: EAST -92.72785
MAP
Population:2005, male 962 female 1043
Races in Smackover, Arkansas:
White/Non-Hispanic (72.37%) Black (26.28%) Hispanic (0.25%) Hawaiian or Pacific Islander (0.05%) Asian (0.05%): Korean(0.05%)
Macdoel CDP, California:
Check out what google has to say about Macdoel CDP, California
Total households 37, total housing units: 44
Land area: 0.143259 square miles, water area 0.000000 miles
Latitude: NORTH 41.826675, longitude: WEST 122.00538
MAP
Population:140, male 78 female 62
Races in Macdoel CDP, California:
Hispanic (63.57%) White/Non-Hispanic (25.71%) Asian (5.71%): Asian-Other(5.71%)
Lake Mack-Forest Hills CDP, Florida:
Check out what google has to say about Lake Mack-Forest Hills CDP, Florida
Total households 396, total housing units: 485
Land area: 4.736822 square miles, water area 0.301645 miles
Latitude: NORTH 28.998876, longitude: EAST -81.42769
MAP
Population:989, male 499 female 490
Races in Lake Mack-Forest Hills CDP, Florida:
White/Non-Hispanic (93.23%) Hispanic (4.45%) Asian (0.61%): Asian-Other(0.61%) Black (0.10%)
Macclenny, Florida:
Check out what google has to say about Macclenny, Florida
Total households 1548, total housing units: 1644
Land area: 3.291089 square miles, water area 0.000000 miles
Latitude: NORTH 30.280921, longitude: EAST -82.12274
MAP
Population:4459, male 2120 female 2339
Races in Macclenny, Florida:
White/Non-Hispanic (74.12%) Black (21.87%) Hispanic (2.47%) Asian (0.67%): Asian-Other(0.54%) Japanese(0.11%) Chinese(0.02%) Hawaiian or Pacific Islander (0.07%)
Macon County, Georgia:
Check out what google has to say about Macon County, Georgia
Total households 4834, total housing units: 5495
Population:14074, male 6984 female 7090
Races in Macon County, Georgia:
Black (59.48%) White/Non-Hispanic (36.83%) Hispanic (2.59%) Asian (0.60%): Asian-Other(0.46%) Chinese(0.08%) Korean(0.04%) Japanese(0.02%) Hawaiian or Pacific Islander (0.05%)
Macon, Georgia:
Check out what google has to say about Macon, Georgia
Total households 38444, total housing units: 44341
Land area: 55.802393 square miles, water area 0.463338 miles
Latitude: NORTH 32.834839, longitude: EAST -83.65167
MAP
Population:97255, male 43141 female 54114
Races in Macon, Georgia:
Black (62.45%) White/Non-Hispanic (35.01%) Hispanic (1.20%) Asian (0.65%): Asian-Other(0.45%) Chinese(0.09%) Korean(0.06%) Japanese(0.04%) Hawaiian or Pacific Islander (0.03%)
(search time: -313.746 msec)
Mac (?). [Gael., son.] A prefix, in names of Scotch
origin, signifying son .
(search time: 310.423 msec)
MAC [ý,ýʿ,ʷʿ]
(search time: -263.732 msec)