以前为了偷懒和共用,所以我一直是有一根mini displayport to VGA的转换头(话说我曾经买了两个,然后严神送了我一个)。接在显示 器上的时候,总感觉糊糊的,色彩也有问题,但其他人都在说显示器不错啊,色彩还行啊。总感觉他们在忽悠 我
直到我用了minidP to DP。效果真心两样的。(可惜这玩意没法截图)
因此,如果你的显示器支持DVI,就用DVI,一个个的来吧,比如,能支持HDMI的尽量用HDMI,不能支持的看dP,DP没有的就DVI了。如果只有VGA接口的,那你也别报怨了。
显示器买了两年了,却因为一根39的线,焕发了比180的转接口更好的效果,人还是要换个角度想想问题的
jetbrains公司一直是我最喜欢的IDE软件公司之一,他们的各类软件都是基于idea进行开发,比如我们常见的phpstorm/webstorm等,然而最新的版本里面,不能输入中文标点了。嗯,mac版是这样的,这主要是他内置的jdk有点小问题。网上有很多教程,还是很方便的。
比如这里:
http://mtons.com/content/11.htm
- IntelliJ IDEA 15 和 WebStorm 11 内置 JDK 1.8 的版本,但是这个版本存在中文标点输入以后自动被转换成英文(半角)的 Bug。
-
- 经试验,使用 JDK 8u45 可以正常输入中文标点,具体如下:
-
- 下载安装 JDK 8u45;
- 重启IntelliJ IDEA;
- 选择 JDK :按 CMD + Shift + A,输入 JDK,选择 Switch IDE boot JDk… 可以选择新安装的JDK 8u45;
下载后,按cmd+shift+a会出来这个界面:
然后选择jdk 8u45的版本。由于我已经选择过了,所以就不会再有了。。。
大致就这样,选择完后会自动重启IDE,于是你就可以开心的输入中文标点了。【注意看上面的红字,因此,其他版本不一定支持中文输入】
以下内容纯COPY
原文来自:http://hiraku.tw/2015/09/3969/
- 前兩天 OS X El Capitan 出了 GM Candidate,所以就升級上去了,雖然外觀上 El Capitan 跟 Yosemite 看起來差不多,但是我裝的不少東西馬上就不能用了,這邊列一下目前遇到的問題跟解決方法,如果後面陸續遇到更多會持續補充。
-
- 首先最重要的是,El Capitan 增加了一個叫做 System Integrity Protection (簡稱 SIP ,或稱 rootless, 在 iOS 9 裡面也有) 的保護機制,SIP 最主要功能就是防止對系統程式的 code injection,還有使用未被 Apple 認可的 kext。
-
- 但是要關閉 SIP 也不難,只要進去 Recovery Mode (開機按著 Command + R 直接進入,千萬不要用按著 option 的方式選擇,否則會找不到 csrutil 的指令),用終端機輸入
-
- csrutil disable
- 之後重新開機,就可以關閉 SIP 了。若有使用到以下說明要關閉 SIP 的軟體,就必須按照上述方法操作,才能正常使用該軟體之功能。而開啟 SIP 也很簡單,輸入
-
- csrutil enable
- 特別要注意的是,csrutil 的設定實際上是在 NVRAM 中設定參數,所以當你重置 NVRAM (開機按住 command + option + P + R) 之後,SIP 會變回開啟狀態,所以要再重新關閉一次,切記切記!
-
-
-
- 而以下就是我目前遇到在 El Capitan 必須特別留意的軟體:
-
- TotalFinder:必須在 1.7.1 以上,並且關閉 SIP。 (1.7.1 beta 載點)
- XtraFinder:官網下載最新版,並且關閉 SIP。
- Bartender:必須在 1.3.2 版以上(如果你無法升級,試著開啟 beta 版檢查),暫時關閉 SIP (成功安裝後可以再次開啟)
- Homebrew:如果出現無法編譯的問題,就去下載 Xcode 7,開啟並安裝 command line tools 之後就能解決
- iStat Menus:必須在 5.11 版以上 (5.11 beta 載點),但因為在 5.11 之後,iStat Menus 的每個元件並不是分開的,而是整個合併為一大塊元件,所以目前不能把其他項目放置在 iStat Menus 元件的中間(例如:以前可以 RAM → Spotlight → CPU 這樣穿插放,但現在不行,iStat Menus 的項目必須連續。)如果要改各個項目的順序,要在 iStat Menus 裡面的設定改,不能直接在 menubar 拖曳。
- Sequel Pro:如果用 SSH 連接的話會出錯,去抓 Nightly Builds 就可以了
- theos:iOS 9 SDK 跟 theos 裡面的 header 似乎有些問題,如果有問題的話去用 iOS 8.4 的 SDK 或者抓 Xcode 6.4 回來編譯。(目前測試如果用到 Springboard 跟 UIKit2.h 的 header 好像會出錯)
- Parallels Desktop:必須在 PD 10 (含) 以上
- Fantastical 2:如果不能用下載 beta 看看(載點)(感謝 @katerjacob 補充)
- CleanMyMac 3:必須在 3.1 beta 以上
- 以上就是目前遇到的問題,但我覺得除了 iStat Menus 不能照以前的方法用之外(其實原因是因為 menucracker 失效了),其他不是太大問題。而 GM 版本雖然不是最終版本(這次是 GM Candidate,跟去年一樣,有可能會有 GM2、GM3),但是穩定性還算 OK(大家都知道,OS X 要真正穩定必須等到 10.x.2 之後…),所以如果有開發者帳號的,也可以考慮趕緊備份資料,準備上來 El Capitan 了!
所幸,上述程序我几乎都不用。除了homebrew/parallels desktop。。。这两个的问题我已经解决了。黑黑
如果你们有遇到或者要用上述程序的,先做好心里准备
本文是使用代理后提交时出现的BUG,本来是重复的,已删除 ,做个纪念。
不知道是数据太大了,还是什么其他原因:
XML/HTML代码
- [ERROR] 2015/11/19 01:22:08 parse response header: bufio: buffer full POST neatstudio.com:80/admin/admincp.php?job=article
- HTTP/1.1 200 OK
- Date: Wed, 18 Nov 2015 17:22:08 GMT
- Server: Apache/2.2.22 (Debian)
- X-Powered-By: PHP/5.4.41-0+deb7u1
- Set-Cookie: cid=17; expires=Fri, 18-Dec-2015 17:22:08 GMT
- Set-Cookie: title=brew+upgrade%E4%B8%8D%E8%83%BD%E5%8D%87%E7%BA%A7go+1.5.1%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88; expires=Fri, 18-Dec-2015 17:22:08 GMT
- Set-Cookie: description=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT
- [ERROR] 2015/11/19 01:22:19 parse response header: bufio: buffer full POST neatstudio.com:80/admin/admincp.php?job=article
- HTTP/1.1 200 OK
- Date: Wed, 18 Nov 2015 17:22:18 GMT
- Server: Apache/2.2.22 (Debian)
- X-Powered-By: PHP/5.4.41-0+deb7u1
- Set-Cookie: cid=17; expires=Fri, 18-Dec-2015 17:22:19 GMT
- Set-Cookie: title=brew+upgrade%E4%B8%8D%E8%83%BD%E5%8D%87%E7%BA%A7go+1.5.1%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88; expires=Fri, 18-Dec-2015 17:22:19 GMT
- Set-Cookie: description=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT
估计是标题中有特殊字符?还是其他的呢?
或者是内容太多了吧?
在brew upgrade的时候,出错信息如下:
XML/HTML代码
- brew upgrade
- ==> Upgrading 1 outdated package, with result:
- go 1.5.1
- ==> Upgrading go
- ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz
- ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz
- ==> ./make.bash --no-clean
- ==> ./make.bash --no-clean
- ==> Cloning https://go.googlesource.com/tools.git
- Cloning into '/Library/Caches/Homebrew/go--gotools--git'...
- fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
- Error: Failed to download resource "go--gotools"
- Failure while executing: git clone https://go.googlesource.com/tools.git /Library/Caches/Homebrew/go--gotools--git
于是我想到,可以使用proxychains4来进行访问(之前已经安装 goagentx + cow [with shadowsocks] ),然而:
XML/HTML代码
- proxychains4 brew upgrade
- [proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf
- [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib
- ==> Upgrading 1 outdated package, with result:
- go 1.5.1
- ==> Upgrading go
- ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz
- ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz
- ==> ./make.bash --no-clean
- Last 15 lines from /Users/xiaojianliang/Library/Logs/Homebrew/go/01.make.bash:
- text/template
- go/doc
- go/build
- cmd/go
- fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)
-
- runtime stack:
- runtime.throw(0x3e9855)
- /usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff390 sp=0x7fff5fbff360
- runtime.goenvs()
- /usr/local/go/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff3a8 sp=0x7fff5fbff390
- runtime.schedinit()
- /usr/local/go/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff3d0 sp=0x7fff5fbff3a8
- runtime.rt0_go(0x7fff5fbff408, 0x4, 0x7fff5fbff408, 0x0, 0x0, 0x4, 0x7fff5fbff670, 0x7fff5fbff6c6, 0x7fff5fbff6cc, 0x7fff5fbff6cf, ...)
- /usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff3d8 sp=0x7fff5fbff3d0
-
- READ THIS: https://git.io/brew-troubleshooting
-
- These open issues may also help:
- Homebrew goes ahead with installation after warning dev tools aren't installed https://github.com/Homebrew/homebrew/issues/19580
这回倒好,还没有到git clone,就直接出错了。看来proxychains和golang不兼容,怎么办?于是干脆我直接先clone一下看看:
XML/HTML代码
- :~$ proxychains4 git clone https://go.googlesource.com/tools.git /Library/Caches/Homebrew/go--gotools--git
- [proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf
- [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib
- Cloning into '/Library/Caches/Homebrew/go--gotools--git'...
- remote: Counting objects: 827, done
- remote: Finding sources: 100% (12/12)
- remote: Total 14355 (delta 9764), reused 14348 (delta 9764)
- Receiving objects: 100% (14355/14355), 8.98 MiB | 119.00 KiB/s, done.
- Resolving deltas: 100% (9764/9764), done.
- Checking connectivity... done.
果然OK了。那么我再直接试一下upgrade吧?
XML/HTML代码
- brew upgrade
- ==> Upgrading 1 outdated package, with result:
- go 1.5.1
- ==> Upgrading go
- ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz
- ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz
- ==> ./make.bash --no-clean
- ==> ./make.bash --no-clean
- ==> Cloning https://go.googlesource.com/tools.git
- Updating /Library/Caches/Homebrew/go--gotools--git
- ==> Checking out revision d02228d1857b9f49cd0252788516ff5584266eb6
- ==> go build
- ==> go build
- ==> Caveats
- As of go 1.2, a valid GOPATH is required to use the `go get` command:
- https://golang.org/doc/code.html#GOPATH
-
- You may wish to add the GOROOT-based install location to your PATH:
- export PATH=$PATH:/usr/local/opt/go/libexec/bin
- ==> Summary
-
苹果相关 | 评论:0
| 阅读:27026