swfupload这个库应该是很多很多人都在用,uploadify是其中的优化的漂亮的一个版本,虽然现在已经是版本号到了3了,但还是有很多人还在用着2。然而2一直有一个问题,如果你使用buttonText就是乱码,如果你使用buttonImage,那个image出来的效率就很低。
于是网上针对2有着一系列的更改和优化,大家都是认为那个encodeURI和escape惹的祸。于是觉得,如果设置buttonText : escape('中文'),是不是就好了吗?然而,这还是too young too simple了。
然后就有很多人改了fla文件,重编译成swf,于是世界就清静了。
我找了一份可以用的,直接下载即可。
uploadify-v2.1.4-www.7es.cn.rar
附件文件名还带有网址,我就不改了,反正解压下来还能用。如果中文还是乱码,那就:escape('中文') 吧(用buttonImage出来太慢了)
 
 
 以下内容纯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  
 
    - 
 
 
Flutter | 评论:0
 | 阅读:29962
Submitted by gouki on 2015, November 19, 1:05 AM
 相信很多朋友在升级到OSX EI Capitan后发现proxychains无效了。随便你设置什么代理 ,都无法用来上网。
经过多次测试,发现程序没问题,然后到了官网后,发现有一个issue里也提到了这个问题,最后确认是SIP的问题,于是重启电脑,按cmd+R进入恢复模式,打开终端输入:csrutil disable,然后重启,一切OK~
对于开发人员来说,csrutil还是disable吧。比如brew 也有这个问题。
 
Tags: proxychains4, brew
Flutter | 评论:0
 | 阅读:26502