Submitted by gouki on 2015, August 31, 10:55 AM
最近收到一封邮件,大意是,phpanywhere已经改名为codeanywhere了,我看了一下邮件中提及的博客日期,发现贴子地址是:http://www.neatstudio.com/show-1305-1.shtml ,已经是N年前的事情了。
邮件中提及:As you may have heard we have changed our name to Codeanywhere a couple of years back and now we have an issue. Namely we lost the domain phpanywhere.net and know all your link lead to nowhere.
为了以防万一,我查了一下百科:
https://en.wikipedia.org/wiki/Codeanywhere
- History[edit]
- In 2009 PHPanywhere (the predecessor of Codeanywhere) was launched, which was a web-based FTP client and text editor, designed for PHP.[4] That project stayed idle until May 22, 2013 when the founders launched Codeanywhere.
-
- Codeanywhere raised $600,000 from World Wide Web Hosting on July 15, 2013 when Ben Welch-Bolen became a board member.[5] In August of 2014 Codeanywhere was accepted in Techstars’s Fall Boston Class.[6] In 2014, as part of the TechCrunch Disrupt NY Conference, the audience voted Codeanywhere the best company in Startup Alley.[1]
so,phpanywhere确实是codeanywhere的前身。。。于是顺手改掉了那篇博客,顺便说一下,codeanywhere很早就在ipad上面有APP了,而且我还用过,只是居然真的不知道它就是phpanywhere....
Linux | 评论:2
| 阅读:19368
Submitted by gouki on 2015, August 14, 9:38 AM
说实话,最近有很多关于墙的消息,好象要出国已经变得越来越难了,早上@三马 分享了一篇简书文章,介绍墙和翻墙缘由的,结果发了一分钟就被墙了!是啊,现在已经不再提怎么爬梯子了,很多人都认命了。周围有不少技术人员已经开始用百度、bing来搜索了(不得不说,360、soso什么的还是没有深入到技术人员的心里)
我呢,不知道从什么时候起,我习惯了用google(现在都没有在想以前没有google的时候,我是怎么搜索的),当然到现在为止我还是在用google,甚至我也认为,一个没有办法时刻用上google的人应该也不是一个好程序员(当然,我本来就不是)。
最近上海电信在对国外出口做限制,因为不知道是超售还是封锁,我这里就不发表意见,但带来的问题是,原来仅剩的几个还能访问的国外站点,现在也变得越来越慢了。比如github,作为一名PHP程序员,composer这个工具既给我们带来了快乐,也给我们带来了无尽的悲伤,一个composer update,你已经无法想象你要等多久了。
发完牢骚也说说我自己是怎么用的吧,自建VPN是肯定不用说的,那都是备用的,毕竟在手机上用shadowsocks还是不太方便,平时在网页端已经是switchyomega + goagentx + shadowsocks 了。前两天有人推荐了proxychain4,现在在命令行用它来更新composer 感觉也快了很多。
最后补一句,为了能够稳定的打开网页,我已经备了4个shadowsocks的服务器(这是多大代价的投入啊!!!!!)
BTW:updated 2019-11-26,所有的梯子都断了。。。。。哎。
Misc | 评论:3
| 阅读:19206
Submitted by gouki on 2015, August 13, 5:16 PM
BUG提醒工具其实有很多,比如可以在有BUG的时候发封邮件到你的常用邮箱,这样你的手机上(邮件APP)就会收到一条提醒。或者有短信SP通道的话,你也可以有类似处理。当然还有monolog,支持php-console插件,可以发送到你的chrome上面,我在这里再换个小方式,利用pubu.im这个IM工具(或者说。。。。说不出来)来做提醒
流程很简单
1、去pubu.im测试一个帐户。。这不用我多说吧
2、下载MAC客户端登录,自己添加自己为一个机器人,相当于自己和自己聊天,如果你的消息不算隐私,你可以直接用现成的:小布 这个通道
3、在聊天界面选择插件,点击更多,打开网页,添加“incoming”插件,生成一个URL,选择你刚才聊天组
4、根据提示信息在你的APP里写上一段测试代码,POST方式的,可以用curl/file_get_contents/Requests/guzzle等,工具实在太多,不想多说
5、测试通过后,可以尝试自己用set_error_handle,自己处理出错信息,在出错信息前进行判断:
if(debug_mode){ //send report }
6、你会发现 右上角弹了一个小窗,就是你刚才的测试标题!
----EOF---
就这样,你在工作的时候不需要打开手机,电脑上会直接有提醒哦~~~而且因为是聊天记录,你还可以往前翻,到底是什么BUG,嗯,再也不用客户端开发人员和你说,XXX接口出错了。。。因为他一出错你就收到,然后你就可以在他没有和你提的时候悄悄的改掉,等他提出来有BUG的时候,你说,在哪里?一定是你访问的姿势不对,不信你试试
哈哈
Tags: bug
PHP | 评论:1
| 阅读:21671
Submitted by gouki on 2015, August 10, 2:29 PM
这是一篇backup的文章。起因是我的命令行下的gdb出现了:
XML/HTML代码
- Starting program: /usr/local/Cellar/php56/5.6.9/bin/php /server/yii hprose
- Unable to find Mach task port for process-id 30717: (os/kern) failure (0x5).
- (please check gdb is codesigned - see taskgated(8))
于是google了一下,发现也有人在问类似的问题:
XML/HTML代码
- Because I need a Python-enabled gdb, I installed another version via
-
- brew tap homebrew/dupes
- brew install gdb
- I want to use this gdb with Eclipse CDT, where I entered the path to the binary in the Debugging settings. However, launching a program for debugging fails with the following message:
-
- Error in final launch sequence
- Failed to execute MI command:
- -exec-run
- Error message from debugger back end:
- Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8))
- Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8))
- What does "codesigned" mean in this context? How can I get this gdbrunning?
有一个5个点赞的,我发现无效:
XML/HTML代码
- t would seem you need to sign the executable. See these links for more information. You should be able to get away with self signing if you don't plan on redistributing that version of gdb.
-
- https://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
-
- https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man1/codesign.1.html
-
- Alternatively, you could disable code signing on your system, although this presents a security risk. To do so try running sudo spctl --master-disable in the Terminal.
24人点赞的看上去不错:
XML/HTML代码
- I.1 Codesigning the Debugger
-
- The Darwin Kernel requires the debugger to have special permissions before it is allowed to control other processes. These permissions are granted by codesigning the GDB executable. Without these permissions, the debugger will report error messages such as:
-
- Starting program: /x/y/foo
- Unable to find Mach task port for process-id 28885: (os/kern) failure (0x5).
- (please check gdb is codesigned - see taskgated(8))
- Codesigning requires a certificate. The following procedure explains how to create one:
-
- Start the Keychain Access application (in /Applications/Utilities/Keychain Access.app)
- Select the Keychain Access -> Certificate Assistant -> Create a Certificate... menu
- Then:
- Choose a name for the new certificate (this procedure will use "gdb-cert" as an example)
- Set "Identity Type" to "Self Signed Root"
- Set "Certificate Type" to "Code Signing"
- Activate the "Let me override defaults" option
- Click several times on "Continue" until the "Specify a Location For The Certificate" screen appears, then set "Keychain" to "System"
- Click on "Continue" until the certificate is created
- Finally, in the view, double-click on the new certificate, and set "When using this certificate" to "Always Trust"
- Exit the Keychain Access application and restart the computer (this is unfortunately required)
- Once a certificate has been created, the debugger can be codesigned as follow. In a Terminal, run the following command...
-
- codesign -f -s "gdb-cert" <gnat_install_prefix>/bin/gdb
- ... where "gdb-cert" should be replaced by the actual certificate name chosen above, and should be replaced by the location where you installed GNAT.
- source: https://gcc.gnu.org/onlinedocs/gcc-4.8.1/gnat_ugn_unw/Codesigning-the-Debugger.html
这个4人点赞的简洁明了:
XML/HTML代码
- I made gdb work on OSX 10.9 without codesigning this way (described here):
-
- Install gdb with macports. (may be you can skip it)
-
- sudo nano /System/Library/LaunchDaemons/com.apple.taskgated.plist
- change option string from -s to -sp at line 22, col 27.
-
- reboot the computer.
-
- Use gdb
然而这都没有什么卵用,这时候一个2人点赞的说了一个重点:
XML/HTML代码
- It's a very old topic, but I am adding a response, because out of many available instructions, only one contained just the right steps to make a self-signed debugger work.
-
- You have to create a self-signed root certificate and then sign the gdb executable with it, but many people complained that it did not work for them. Neither did it for me until I stumbled upon this link.
-
- The key point missing in other manuals is that you have to restart your computer for the changes to take effect. Once I did that, everything worked as intended.
-
- I hope, this will help others.
是的,他在have to restart上加粗了!!!
最后一个回复表示使用了4人点赞的那个建议,并表示他就是这么完成的!原文来自:http://stackoverflow.com/questions/13913818/how-to-get-a-codesigned-gdb-on-osx
Linux | 评论:0
| 阅读:19936