跳到主要內容

發表文章

目前顯示的是有「OSX」標籤的文章

飛碟 FT-1000BS ViewPower in OSX

剛買了這台 UPS "飛碟 FT-1000BS",在 High Sierra 裝完 ViewPower v2.14 SP1 後, tomcat web 介面可以開啟但似乎沒有從 USB 收到任何 UPS 的資料。 查了一下 osx 的 log, 發現 ViewPower 安裝程式會偷偷用 sudo 下三行 command 但是失敗 "incorrect password attempt ;" /bin/cp -f -r /Applications/ViewPower2.15/UPSVendor.kext /System/Library/Extensions/ /bin/cp -f -r /Applications/ViewPower2.15/jre/libusb-1.0.0.dylib /System/Library/Extensions/ /bin/cp -f -r /Applications/ViewPower2.15/jre/ /Library/Java/Extensions 手動把 driver copy 到相關位置就好了,看來 ViewPower installer 是假設使用者會剛好用過 sudo 有 cache password? XDDD

Spotify Global Hot Key in OSX with Automator Script

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...

MAMP with macports

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..

Fix broken exFAT partition

不知道為什麼, 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. 心愛的資料就回來了~~

Juniper SSL VPN Client in Mavericks 10.9.4

在 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...