{ yeah : 必须哒 } No place to place should record our youth?

11Aug/102

zend studio 7.0 7.1 License Key 注册码 注册机 激活码

Posted by ofeng

机子上的zendstudio是很久以前装的,懒得升级,今天打开突然说过期了,搜了注册码,测试可用

User Name:rdeasy

License Key:35656F58D5CF856CF58D5CF8

User Name:everyone

License Key:3B6B687AD1B53B6B87AD1B53

User Name:administrator

License Key:38B8B2A6D77D78B12A6D77D7

8Aug/100

在zend studio中推荐使用xdebug来查找效率问题

Posted by alacner

许久以前,可能我们都还在自己写一个时间处理机制来检查某段程序引起的效率问题,往往效率低下,虽然不乏也是一种方法,当然也有xhprof、Benchmark这些后期写的程序来帮助我们来分析,不过总归需要在程序上进行处理。都要在自己程序上留下痕迹。

但是,当我真正用上xdebug后,我发现,原来看效率还可以如此简单……当装上xdebug后,他会记录下访问每个页面的php的执行过程,在WinCacheGrind的帮助下,很轻松的你可以定位到问题函数,然后加以改进,继续执行下,马上你又能看到效率的结果,如:下面就是随便打开phpmyadmin的时候的执行过程:

tmpC42F

你可以清晰的看到哪些部分花了多少时间。是不是觉得很惊艳?对,就这么简单,去http://xdebug.org/下载xdebug,然后稍许花点时间看下manual,比如您可以这样添加在php.ini中:

[cc lang='bash']
[XDebug]
zend_extension_ts="D:\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\tmp"
[/cc]

附上wincachegrind下载地址:http://sourceforge.net/projects/wincachegrind/

8Aug/100

Zend Studio 7.2相关资源

Posted by alacner

Zend Studio 7.2官方下载链接:

http://downloads.zend.com/studio-eclipse/7.2.0/ZendStudio-7.2.0.tar.gz

注:需要先注册成为Zend会员,注册是免费的。

Zend Studio 7.2用户指南:

http://www.zend.com/topics/Zend-Studio-7-User-Guide-v7-2.pdf

在Eclipse上安装Zend Studio 7.x的教程:

http://www.zend.com/topics/Installing-Studio-v7x-Plugins.pdf

注:目前只提供了Zend Studio 7.1 for Eclipse,  并且只能在Eclipse 3.5.1上安装(Ubuntu 10.04自带的版本为3.5.2)。

Zend Studio Web Debugger安装指导:

http://www.zend.com/topics/Zend-Debugger-Installation-Guide.pdf

注:Web调试工具

Studio Browser Toobars安装指导:

http://www.zend.com/topics/Zend-Debugger-Toolbar-Installation-Guide.pdf

注:Web浏览器工具栏

Studio 7.x解决方案简介:

http://www.zend.com/topics/Zend-Solution-Brief-WEB.pdf

Zend Studio 7.x简介(数据表):

http://www.zend.com/topics/Zend-Studio-DS-0809-R1-EN-WEB.pdf

Zend Studio简介:

http://www.zend.com/en/products/studio/

Zend Studio的更新情况:

http://www.zend.com/en/products/studio/studio-whats-new

Zend Studio的特性:

http://www.zend.com/en/products/studio/features

Zend Studio的视频教程:

http://www.zend.com/en/products/studio/videos

用Zend Studio开发富Internet应用程序:

http://www.zend.com/en/products/studio/ria

Zend Studio网络研讨会:

http://www.zend.com/en/resources/webinars/development-tools

Zend Studio 7和PDT的对比:

http://www.zend.com/en/products/studio/comparison

Zend Studio 7和Zend Studio 5.5的对比:

http://www.zend.com/en/products/studio/compare-studio55

Zend Studio常见问题:

http://www.zend.com/en/products/studio/faq

8Aug/101

解决Zend Studio 7.2.x 代码提示功能无法使用的问题

Posted by alacner

Zend Studio 7.2.x 版本,我遇到了2次以上的严重的问题(传说是我按了不该按的快捷键,至今我未分析出我到底按了哪个快捷键,相当压抑)--Zend Studio针对PHP的代码补全提示功能(Content Assist)无法使用了,不管是当前可用的变量列表提示,还是PHP函数的自动提示都没有了,只有PHP的模板(通过Windows -> Preference->PHP->Editor->Templates 设置)提示。
开始我的解决方案比较暴力:关闭zend studio,将workspace改个别的名字,启动zend studio,默认会创建workspace,然后关闭zend sutdio,将workspace下的\.metadata\.plugins\org.eclipse.core.resources目录拷贝到新的workspace的对应目录,然后开启zend studio,过会儿等zend studio building完后刷新下项目即可。然后就可以不影响svn等其他配置的情况下恢复提示功能。

而后,有看到一个朋友也遇到了这个问题,提供了另外一个比我简单一些的解决方案,删除一个目录解决,哈哈,记录下,下次再遇到的时候试试。

删除":\Documents and Settings\\"目录下的"Zend/workspaces //.metadata/.plugins /org.eclipse.core.runtime/.settings/org.eclipse.dltk.ui.prefs" 解决了问题.

删除这个文件后,再重启会发现系统又生成了同名的文件。解决办法的:
C:\Documents and Settings\user\Zend\workspaces\DefaultWorkspace7\.metadata\.plugins\org.eclipse.core.runtime\.settings

重命名:org.eclipse.dltk.ui.prefs.jackxiang.bak
重启zend 后又自动出现一个:org.eclipse.dltk.ui.prefs

可以提示了,ok!

特别注意:C:\Documents and Settings\user\Zend\workspaces\DefaultWorkspace

这个是zend 6版本的,没有那个文件!!! 7的目录是:DefaultWorkspace7 --》C:\Documents and Settings\user\Zend\workspaces\DefaultWorkspace7

20Jul/102

zend官方发布Zend Studio 7.2.1了

Posted by alacner

一个屡获大奖的专业 PHP 集成开发环境,具备功能强大的专业编辑工具和调试工具,支持PHP语法加亮显示,支持语 法自动填充功能,支持书签功能,支持语法自动缩排和代码复制功能,内置一个强大的PHP代码调试工具,支持本地和远程两种调试模式,支持多种高级调试功 能。

New! in Studio V7.2.1:
Software Updates:
* Zend Framework 1.10.6

Resolved Tickets:
* Ticket 187947 - The Zend Framework Example project is configured with the correct buildpath entries
* Ticket 187838 - If one of the parameters is a function call parameter, the hint tooltip now shows the right hint
* Ticket 188440 - The Processing Dirty Regions error is no longer triggered with java.lang.StackOverflowError exception
* Ticket 187975 - The Zend Framework Tool no longer fails with the error "No tokenizer support"
* Ticket 188418 - In ODBC, db2 related functions are now shown in PHP Language libraries
* Ticket 186867 - The Zend Tool error "A project profile was not found" no longer appears

Resolved Bugs:
* 30047 - In the Registration dialog, the "User Name / " section has been removed, with the "Order #" section remaining in its place
* 30155 - The Semantic analyzer no longer shows an error/warning for duplicate class constants
* 30046 - To help troubleshoot Zend Studio issues, you can now add a "showlocation" flag to the ZendStudio.ini (on Windows and Linux)

Homepage - http://www.zend.com/en/products/studio/

Size: 316 MB

下载:Zend Studio 7.2.1
下载:Zend Studio 7.2.1 (IBM 1)

18Jul/103

zend studio 7.2 常用快捷键

Posted by alacner

最近一直在用zend studio 7.2在开发,整理了下本人认为最为常用的几个快捷键,希望可以给后来者提供一点点帮助,我怀念vi的那个时期,可惜现在的类文件,函数太多了,光靠我的烂记性来写出函数和类方法就比较吃力了,o(︶︿︶)o 唉,只能借助强大的IDE来提高工作效率,多一些微操,让生活更美好~

OK,直接无废话进入正题:
F3 快速跳转到当前所指的函数,常量,方法,类的定义处,相当常用。当然还可以用Ctrl+鼠标左键
win+D 显示桌面(可切回来)
shift+end 此行第一个到最后一个
shift+home 此行最后一个到第一个

Ctrl+home 文件头
Ctrl+end 文件尾
Ctrl+1 快速修复(传说中最经典的快捷键)
Ctrl+M 编辑窗口最大化
Ctrl+N=新建
Ctrl+D: 删除当前行
Ctrl+Q 定位到最后编辑的地方(我的语录:这个定位的不是当前文本的,也是一个全局的,要留意)
Ctrl+L 定位在某行 (对于程序超过100的人就有福音了)
Ctrl+M 最大化当前的Edit或View (再按则反之)
Ctrl+/ 注释当前行,再按则取消注释
Ctrl+O 快速显示 OutLine
Ctrl+T 快速显示当前类的继承结构
Ctrl+W 关闭当前Editer
Ctrl+K 参照选中的Word快速定位到下一个
Ctrl+E 快速显示当前Editer的下拉列表(如果当前页面没有显示的用黑体)
Ctrl+F 查找(小提醒:你要是比较懒,可以在wrap search上打上勾,这样就可以循环查找了,要不然只能forward、backward)
Ctrl+H 全局查找,功能很丰富的,用的比较多

Ctrl+Shift+E 显示管理当前打开的所有的View的管理器(可以选择关闭,激活等操作)
Ctrl+Shift+X 把当前选中的文本全部变为大写
Ctrl+Shift+Y 把当前选中的文本全部变为小写
Ctrl+Shift+F 格式化当前代码
Ctrl+Shift+P 定位到对于的匹配符(譬如{}) (从前面定位后面时,光标要在匹配符里面,后面到前面,则反之)
Ctrl+Shift+R 查找资源 (此快捷键利用率甚高,如果你没用到,可能你得考虑下,为什么其他程序员都用到频率很高,你没用到的原因)
Ctrl+Shift+T 查找某个具体的类
Ctrl+Shift+G 查找某个函数、方法、常量等在哪些地方被调用了,刚好和F3相反。

Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)
Alt+↑ 当前行和上面一行交互位置(同上)
Alt+← 前一个编辑的页面
Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)

Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)
Shift+Ctrl+Enter 在当前行插入空行(原理同上条)

Shift+Alt+A  列编辑
Shift+Alt+R 重命名 (**慎重,改变所有workspace**,我当时以为改变一个文件,哈哈)

Ctrl+Alt+u svn的update
Ctrl+Alt+c svn的commit

最后带上,你忘记了快捷键怎么办?有一个汇总:Shift+Ctrl+l ,当然了,你也可以去Preferences -> General -> Keys里面慢慢翻……