Update /etc/php.ini
extension=php_pdo_mysql.dll
pdo_mysql.default_socket=/tmp/mysql.sock
Thursday, January 2, 2014
Tuesday, April 30, 2013
Enable Apache for OSX Mountain Lion
To enable
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
To disable
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
To disable
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
Monday, December 10, 2012
Wednesday, October 3, 2012
Create XCode Project
1. New a project from "Empty Application"
2. Update AppDelegate.h
- update "window" property as IBOutlet
3. Create AppWindow
- New a xib named "AppWindow.xib"
- Change the class of "File's Owner" to UIApplication
- Add an object to "Objects" and change its class to "App Delegate"
- Point "File's Owner" outlet named "delegate" to "App Delegate"
- Point "App Delegate" outlet named "window" to "Window"
4. Point "Main Interface" to AppWindow in target setting
5. Update AppDelegate.m
- remove code to alloc/init window
6. Create MainViewController
- New a class from UIViewController with xib named "MainViewController"
- Do something in the xib, say add a button
7. Update AppDelegate.m
- load MainViewController in AppDelegate
MainViewController *vc = [[MainViewController alloc...
[self.window setRootViewController:vc];
2. Update AppDelegate.h
- update "window" property as IBOutlet
3. Create AppWindow
- New a xib named "AppWindow.xib"
- Change the class of "File's Owner" to UIApplication
- Add an object to "Objects" and change its class to "App Delegate"
- Point "File's Owner" outlet named "delegate" to "App Delegate"
- Point "App Delegate" outlet named "window" to "Window"
4. Point "Main Interface" to AppWindow in target setting
5. Update AppDelegate.m
- remove code to alloc/init window
6. Create MainViewController
- New a class from UIViewController with xib named "MainViewController"
- Do something in the xib, say add a button
7. Update AppDelegate.m
- load MainViewController in AppDelegate
MainViewController *vc = [[MainViewController alloc...
[self.window setRootViewController:vc];
Tuesday, August 14, 2012
Sunday, August 12, 2012
Tuesday, August 2, 2011
Batch Update File/Directory Right
sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;
Subscribe to:
Posts (Atom)