Mac 快速鍵 快捷鍵

Posted by: 邱小新 at 上午11:56:00

按鍵

WindowsAPPLE備註

(Window 鍵)

(Command 鍵)
某幾款 Apple 鍵盤還同時印有 Apple()標誌

快速鍵

WindowsAPPLE備註
Home Command + ← 移動游標到行首
End Command + → 移動游標到行尾
Alt + Tab Command + Tab 切換執行中程式視窗
.. .. ..

參考網址:http://support.apple.com/kb/HT1343?viewlocale=zh_TW

Mac 找不到 VMware 的 shared floders

Posted by: 邱小新 at 下午6:20:00
  • 當然一定要先裝 VMware Tools。
  • 按一下 Finder 選單,點擊 Preferences 開啟 Finder Preferences 視窗。
  • 也可以用快速鍵 Command+"," 或 Window鍵+","。
  • 在 General 頁面,打勾 connected servers,就可以在桌面看到 VMware Shared Floders 圖示。
  • 在 Sidebar 頁面,打勾 xxx's Mac,就可以在 Finder 看到 xxx's Mac,點擊 xxx's Mac 就可以看到 VMware Shared Floders。

Mac 安裝網路下載的 APP

Posted by: 邱小新 at 下午6:09:00

當要安裝從網路下載的 APP 時,MacOS 會回你一句 "xxx" can't be opened because it is from an unidentified developer. 這個是因為 Gatekeeper 在搞怪,只要把權限打開即可。

  • 打開 System Preferences
  • 點選 Security & Privacy
  • 點擊左下角的鑰匙頭,旁邊寫著 Click the lock to prevent further changes.
  • 打勾 Anywhere 即可

ipad 升級到 6.1.2 造成 Xcode 無法辨識

Posted by: 邱小新 at 晚上11:42:00

iPad 升級到 6.1.2,Xcode 卻無法辨識,Organizer 中顯示 The version of iOS on “xxxx’s iPad” is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.

解決方法很簡單,把 Xcode 升級到 4.6 就可以了。

使用自建憑證上傳 APP 到 ipad

Posted by: 邱小新 at 晚上11:15:00

憑證錯誤訊息

沒有憑證就發佈到 iphone 會出現錯誤訊息: Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains

修改 Code Signing

打開任一個 Xcode Project,在 Build Settings 頁面中找到 Code Signing 選項,Code Signing Identity 的子項目 Any iOS SDK,將它全改成 Don't Code Sign。

這時候發佈會出現 CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.1'

修改 SDKSettings.plist

打開終端機輸入 sudo /Applications/Xcode.app/Contents/MacOS/Xcode /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/SDKSettings.plist,輸入密碼,使用 root 權限來開啟 Xcode 修改 SDKSettings.plist 文件。

找出 Key 是 ENTITLEMENTS_REQUIRED 及 CODE_SIGNING_REQUIRED,把 Value 從 YES 改成 NO。

修改 Info.plist

打開終端機輸入 sudo /Applications/Xcode.app/Contents/MacOS/Xcode /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist,輸入密碼,使用 root 權限來開啟 Xcode 修改 Info.plist 文件。

找出 Value 是 XCiPhoneOSCodeSignContext 修改成 XCCodeSignContext,總共有三個地方在 DefaultProperties、RuntimeRequirements、OverrideProperties。

按右鍵使用 Add Row,新增二個 ROW,PROVISIONING_PROFILE_ALLOWED 值為 NO,PROVISIONING_PROFILE_REQUIRED 值為 NO。

這時候發佈會出現 No code signature found. 的錯誤視窗。

參考

Windows 最佳化 by VMware

Posted by: 邱小新 at 晚上9:48:00

VMware on Windows 7 最佳化

Posted by: 邱小新 at 晚上10:23:00

開啟 Disable memory page trimming

VM(選單列) → Settings... → 出現 Virtual Machine Settings 對話框 → Options(分頁) → Advanced → 打勾 Disable memory page trimming

等同於修改虛擬機的 .vmx 文件,修改 MemTrimRate = "0"。

在此功能啟用時,VMware 會將一些虛擬機未使用的記憶體交給主機,而將虛擬機記憶體保存在硬碟交換文件中。但是這樣做,雖然可以讓主機獲得更多記憶體,同時卻導致硬體性能的下降。如果當 VM Suspend 時,卻發現主機整個卡住,硬碟瘋狂的運轉,持續十分鐘以上,把此功能打勾試試。

開啟 Fit all virtual machine memory into reserved host ram

Edit(選單列) → Preferences → 出現 Preferences 對話框 → Memory → Advanced → 選取 Fit all virtual machine memory into reserved host ram

等同於修改 C:/ProgramData/VMware/VMware Workstation/config.ini 文件,修改 prefvmx.minVmMemPct = "100"。

如果這個參數是 100 的話,當虛擬機啟動時,VMware 會將該虛擬機的全部記憶體都使用實體記憶體,而不 swap 到檔案系統上;如果這個參數是 50 的話,VMware會將該虛擬機的部份記憶體 swap 到檔案系統上,部份使用實體記憶體。要高效能的話,就設為 100 吧。

開啟 prefvmx.useRecommendedLockedMemSize

修改 C:/ProgramData/VMware/VMware Workstation/config.ini 文件,修改prefvmx.useRecommendedLockedMemSize = "TRUE"。

不詳

取消 mainMem.useNamedFile

修改虛擬機的 .vmx 文件,加入 mainMem.useNamedFile = "FALSE"。

沒此參數前虛擬機執行時會在本機產生 .vmem 的文件。虛擬機上的記憶體讀寫等於在本機 .vmem 文件讀寫,也就造成虛擬機執行時,硬碟常常運轉不停。但有得必有失,加上這個參數後 Suspend 虛擬機速度就會慢很多,突然斷電就更難保證數據的完整性。

當虛擬機啟動時,VMware 會把部份的虛擬機記憶體存在檔案系統上,以檔案形式存在,這是因為 VMware 使用了 mmap(記憶體映射)的方式來管理虛擬機記憶體。藉由修改 mainMem.useNamedFile,VMware 會將這個檔案由 VM 所在的目錄,改放到主機暫存目錄下,這個異動可能對效能有小小地幫助,特別是暫存目錄是 ramdisk 時,但要注意有可能發生空間不足的問題。

取消 sched.mem.pshare.enable

修改虛擬機的 .vmx 文件,加入 sched.mem.pshare.enable = "FALSE"。

停用 memory sharing 後,VM 將不會分享通用記憶體block,VM 也將停止比對記憶體block。強制關閉虛擬機的虛擬記憶體管理分享裝置,需要較高的主系統資源,但提供比較快的虛擬環境。

取消 MemAllowAutoScaleDown

修改虛擬機的 .vmx 文件,加入 MemAllowAutoScaleDown = "FALSE"。

這個參數設定成 "TRUE" 時,如果虛擬機設定需要 2GB 的記憶體,但實際上主機卻提供給虛擬機的記憶體不到 2GB,虛擬機在啟動時會自動調整縮小記憶體到足夠啟動的範圍。


Windows XP 的 config.ini 放在 C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstationg。


以上是修改 VMware 的設定,當然在 windows 7 下也要做一些微調,才能使 vmware 跑起來很順,原文 vmware 提供,有空在來做整理。

線上電視台

Posted by: 邱小新 at 下午2:00:00

sopcast 頻道源

Posted by: 邱小新 at 上午11:06:00 in
  • http://channel.sopcast.com/gchlxml
  • http://channel.sopcast.com/chlist.xml
SOP
  • 台視
    sop://211.152.36.38:3912/12921
  • 三立台灣台
    sop://60.12.164.67:3912/11266
威達
  • 台視
    rtmp://203.217.99.60:1935/live/live3_1
  • 中視
    rtmp://203.217.99.60:1935/live/live4_1
  • 華視
    rtmp://203.217.99.60:1935/live/live11_1
  • 民視
    rtmp://61.67.123.93/live/ftv_1200k.stream
  • 公視
    rtmp://203.217.99.60:1935/live/live8_1
  • 大愛
    rtmp://203.217.99.60:1935/live/live5_1
  • 壹電視綜合
    rtmp://203.217.99.60:1935/live/live19_1
  • 壹電視新聞
    rtmp://203.217.99.60:1935/live/live20_1
  • 東森新聞
    rtmp://203.217.99.60:1935/live/live1_1
  • 東森財經新聞
    rtmp://203.217.99.60:1935/live/live2_1
  • 博斯無限
    rtmp://203.217.99.60:1935/live/live10_1
  • 博斯高球
    rtmp://203.217.99.60:1935/live/live7_1
  • 博斯網球
    rtmp://203.217.99.60:1935/live/live9_1
  • LUXE.TV 奢華頻道
    rtmp://203.217.99.60:1935/live/live12_1
  • ??
    rtmp://203.217.99.60:1935/live/live5_1
  • ??
    rtmp://203.217.99.60:1935/live/live6_1

cydia 軟體

Posted by: 邱小新 at 上午10:57:00
免費
  • FullForce(1.3.5) free
    讓 iphone 的軟體強制轉成 ipad 模式
  • NCSettings(1.7.1) free
    在通知介面顯示開關
  • Killbackground(1.3.1-7) free
    一次刪光背景程式
  • Software Update Killer
  • SwipeSelection
  • XBMC-iOS
  • xGPS
  • IAPFree
  • StatusBarCustomClock4
    用來變更狀態欄時間顯示字串,可以顯示日期,星期幾,剩餘記憶體。改變完格式要重開機才有效。
    添加源 http://hitoriblog.com/apt/
  • iCleaner
    清除iOS不必要的檔案
要錢
  • Barrel(1.6.4-1) $2.99
    主要是做翻頁特效
  • DisplayOut(1.6.9) $2.99
    主要是讓沒有輸出效果的軟體強制輸出
  • Infinidock(2.0.3-1) $1.99
    讓 dock 可以放更多的 icon
  • AllMail(1.4-35) $1.50
    一鍵刪除所有郵件
  • Location Spoofer
  • PdaNet
  • RetinaPad
  • iFile

cydia 軟體源

Posted by: 邱小新 at 上午10:50:00
  • Duowan 多玩中文源 http://yuan.duowan.com/
  • 第一中文源 http://apt.178.com/
  • 瘋狂機器猫 http://cydia.crazydoraemon.com/
  • teamXBMC http://mirrors.xbmc.org/apt/ios/
  • BiteYourApple http://repo.biteyourapple.net/
  • xSellize http://cydia.xsellize.com/
  • ZodTTD & MacCiti http://cydia.zodttd.com/repo/cydia/
  • i4Tips - Tips for all iDevices http://cydia.i4tips.com/
  • insanelyi Repository http://repo.insanelyi.com/
  • BigBoss http://apt.thebigboss.org/repofiles/cydia/
  • ModMyi.com http://apt.modmyi.com/

Mac OS 自建証書

Posted by: 邱小新 at 下午2:13:00 in
  • 「Finder」選單 → 前往 → 應用程式,出現 Finder 視窗,在應用程式內找一個「工具程式」資料夾,內有一個「鑰匙圈存取」的 app,雙擊執行。

  • 「鑰匙圈存取」選單 → 憑證輔助程式 → 製作憑證。

  • 「覆蓋預設值」打勾,然後一直按繼續都不用變更,最後一步按「製作」鈕就完成了。

  • 最後按下「完成」鈕,就會在「鑰匙圈存取」視窗看到新建立的憑證。