show code js

顯示具有 mac 標籤的文章。 顯示所有文章
顯示具有 mac 標籤的文章。 顯示所有文章

2012年9月12日 星期三

open svn function on mac


  • Open Function

sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/svn /usr/bin/svn


  • Checkout

mkdir svn_project
cd svn_project
svn checkout http://domain/svn/trunk
ls.....
svn_project/trunk/ code .......

2012年9月9日 星期日

mac disable double .filename and .ds_store


Open terminal and command below to disable.
If you want enable them, use reverse like true => false or false => true
  • Disable .DS_Store 
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

  • Disable Apple Double (.filename) 
export COPYFILE_DISABLE=true

2011年6月16日 星期四

Mac Ports

1.下載並安裝 MACPORTS http://www.macports.org/
2.更新 PORT TREE ,進入系統>工具然後開啟TERMINAL,執行 $updating the ports tree
3.搜尋程式 指令 $ port search app_name
4.確認已安裝的程式 指令 $ port installed
5.安裝程式 指令 $ sudo port install app_name
6.移除程式 指令 $ sudo port uninstall app_name 或 $ sudo port -f uninstall installed 將所有已安裝的APP全部移除
7.可使用 指令 $ man port 來查詢 PORT可用指令

例:安裝PHP5,目前是5.3.6
使用指令 $ port search php5
使用指令 $ port install php5
安裝或移除的過程中,可能會要求輸入密碼以驗證MAC的所有權

2010年9月25日 星期六

Install iPhone SDK


雖然OS X還只有10.6不過,因為不開發iOS4.x的App所以沒差



呵呵,加上總於找到舊的SDK,不然就得升級到iOS4.1,少了不少麻煩
一路建置開發環境,竟然花掉了快一週的時間,
但總歸一句,網路真是好物阿

2010年9月23日 星期四

My Apple Mac Snow Leopard in VMware

1.run vmware
2.click [new virtual machine] for create a mac profile
3.choose [typical] and [next]
4.choose [installer disc image file (iso):] and click [browse] iso file of [darwin300 for VM.iso], click [next]
5.set [vt] on in bios
6.choose [other] at [guest operating system],at version is [freebsd 64-bit] and click [next]
7.set [virtual machine name], [location] use default and click [next]
8.set [maximum disk size (gb):] and click [next]
9.check all of information and click [finish]
10.modify profile
a.remove floopy and disable in bios
b.modify ram size up to 512 or more
11.open explorer
a.goto [C:\Users\yuan\Documents\Virtual Machines\(mac)]
b.open and edit vm profile[mac.vmx]
c.find [guestOS = "freebsd-64"] modify to [guestOS = "darwin10-64"]
d.add below
ich7m.present = "TRUE"
smc.present = "FALSE"
keyboard.vusb.enable = "TRUE"
mouse.vusb.enable = "TRUE"
monitor.virtual_exec = "hardware"
monitor.virtual_mmu = "software"
paevm="true"
e.close and save
12.open (mac)vm file and modify [cd/dvd(ide)] and mount [darwin300 for VM.iso]
13.run (mac)vm to ready install mac
14.right click (mac)vm and click [settings], check [connected] and [browse] iso of mac
15.install mac
a.set language
b.at welcome click [continue]
c.at license click [agree]
d.click [utility] and click [disk utility]
(1)choose new disk
(2)erase and set a disk name
(3)quit [disk utility]
e.select disk and click [continue]
f.click [install]
16.power on bios, modify to start at hdd
17.when restart os will insert [darwin300 for VM.iso] iso before ***
18.run mac and configuration
a.set region
b.set keyboard and click [continue]
c.select [don not transfer my information now] and click [continue]
d.set your apple id and password and click [continue]
e.confirm your information and click [continue]
f.select answer for questions and click [continue]
g.create account and click [continue]
h.click [continue] at [try mobileme free]
i.click [go] at [thank you] to finish
19.finish
20.run os in vmware , can use snapshot to create a restore stat when you happen a error after install anything or modify config for