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];
Wednesday, October 3, 2012
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 {} \;
Tuesday, June 7, 2011
Install PHP on IIS7
1. Run PHP window installer.
2. inetmgr
3. Handler Mappings
> Add Script Map...
- Request path = *.php
- Executable = ...\php5isapi.dll
- Name = PHP-ISAPI
> OK
> OK
4. ISAPI and CGI Restrictions
> Add...
- ISAPI or CGI path = ...\php5isapi.dll
- Description = PHP
- Allow extension path to execute = checked
> OK (may exist already)
5. Default Document
> Add...
- Name = index.php
> OK
6. Restart IIS
Monday, September 20, 2010
MySQL problem after upgrade to Mac OS 10.6 #2
Mac OS version:
10.6.4
Problem:
phpMyAdmin show following error after login
"Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."
Solution:
In folder "/etc"
Recreate "php.ini" from "php.ini.default"
- sudo cp php.ini.default php.ini
- sudo chmod 777 php.ini
- edit /etc/php.ini (using what ever editor)
-> session:auto_start = 1
-> session:save_path = /tmp
-> mysql.default_socket = /tmp/mysql.sock (x2)
- sudo chmod 444 php.ini
Restart apache
Saturday, August 28, 2010
MySQL problem after upgrade to Mac OS 10.6
Mac OS version:
10.6.3
Problem:
MySQL server not started
Solution:
Create a symbolic link named "mysql"
In folder "/usr/local"
Point to "/usr/local/mysql-5.1.42-osx10.5-x86_64"
Restart computer
Subscribe to:
Posts (Atom)