Quote from -- modacular Open up the Automator Application (Applications/Automator.app) Create a new document ( ⌘N) and choose the "Service" type for your document. On the "Service receives selected" item in the top side of the window select "no input" from the dropdown. Search for "Run Applescript" from the searchbar on the left side of the window. Drag the "Run Applescript" item in the main window area . Delete the (* Your script goes here *) line and paste this instead: tell application "Spotify" to p laypause Save your script (File > Save or ⌘S) and give it a meaningful name like Spotify PlayPause :D Go to System Preferences > Keyboard > Shortcuts and select Services from the left column. Scroll down to the General Section and find your Spotify PlayPause item. Click the ad...
Install macports Howto MAMP with php54 After that, composer still will using system default php 5.3 So, we have use port swith to php54 sudo port select php --set php54 Then, composer can using the correct php54 with required extensions..
不知道為什麼, Mac 裡的 disk partition 突然變灰色 mount 不起來了。 Disk Utility Repair 也無效 先用 testdisk Analyse, partition 裡的檔案都還在 再來用 fsck_exfat -d disk1s2 ** Rechecking main boot region. Main boot region needs to be updated. Update? 輸入 "Yes" ** Rechecking alternate boot region. ** The volume P302 was repaired successfully. 心愛的資料就回來了~~
在 Mac 上要 VPN 回公司的話,須要以下的東西.... 1. Apple 的 Java 6 (裝 Oracle 最新的 Java 7 u65會有 error) 2. Safari 奇怪的是我一直以為 JavaAppletPlugin.plugin 預設裝好OS就會有了,但最後發現要裝 Java for OS X 2014-001 才會出現。 接著要 reset 大部分人會裝的 Oracle Java 7 ... Java for OS X 2014-001: How to re-enable the Apple-provided Java SE 6 web plug-in and Web Start features # sudo mkdir -p /Library/Internet\ Plug-Ins/disabled # sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled # sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin #sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws 如果要切回 Java 7 的話... # sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws /usr/bin/javaws # Re-enable the Java 7 applet plug-in by downloading and reinstalling the latest version of Oracle Java 7 JRE 這樣就可以用 Sa...