新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 13 下一页

2013年1月31日

摘要: PHP5.3或之前版本可以去pecl(http://pecl.php.net)下载xhprof扩展安装。但pecl上的版本不支持PHP5.4可以到github上的xhprof库中下载:https://github.com/facebook/xhprof下载后进行解压安装1 cd xhprof-master/extension/2 phpize3 ./configure --enable-xhprof4 make5 sudo make install更改php.ini1 [xhprof]2 extension=xhprof.so3 xhprof.output_dir="/documen 阅读全文

posted @ 2013-01-31 20:50 张贺 阅读(4787) 评论(0) 推荐(0) 编辑

摘要: 1 <?php 2 require_once 'custom/modules/Documents/views/view.edit.php'; 3 require_once 'modules/Documents/Document.php'; 4 /** 5 * Test Class 6 */ 7 class CustomDocumentsViewEditTest extends Sugar_PHPUnit_Framework_TestCase 8 { 9 public function provider()10 {11 return array(12 ... 阅读全文

posted @ 2013-01-31 16:51 张贺 阅读(1125) 评论(0) 推荐(0) 编辑

2012年12月5日

摘要: 一:列文件清单1. List(gdb) list line1,line2二:执行程序要想运行准备调试的程序,可使用run命令,在它后面可以跟随发给该程序的任何参数,包括标准输入和标准输出说明符()和外壳通配符(*、?、[、])在内。如果你使用不带参数的run命令,gdb就再次使用你给予前一条run命令的参数,这是很有用的。利用set args 命令就可以修改发送给程序的参数,而使用show args 命令就可以查看其缺省参数的列表。(gdb)set args –b –x(gdb) show argsbacktrace命令为堆栈提供向后跟踪功能。Backtrace 命令产生一张列表,包含着从最近 阅读全文

posted @ 2012-12-05 15:46 张贺 阅读(416) 评论(0) 推荐(0) 编辑

2012年10月29日

摘要: <html><head><script language="javascript">function cl(){ var xmlhttp; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("POST","ajax2.html",true); xmlhttp.setReq 阅读全文

posted @ 2012-10-29 16:52 张贺 阅读(5541) 评论(0) 推荐(0) 编辑

2012年10月17日

摘要: (1)/etc/profile全局(公有)配置,不管是哪个用户,登录时都会读取该文件。(2)/ect/bashrcUbuntu没有此文件,与之对应的是/ect/bash.bashrc它也是全局(公有)的,bash执行时,不管是何种方式,都会读取此文件。(3)~/.profile若bash是以login方式执行时,读取~/.bash_profile,若它不存在,则读取~/.bash_login,若前两者不存在,读取~/.profile。另外,图形模式登录时,此文件将被读取,即使存在~/.bash_profile和~/.bash_login。(4)~/.bash_login若bash是以login 阅读全文

posted @ 2012-10-17 20:15 张贺 阅读(4038) 评论(0) 推荐(0) 编辑

2012年10月13日

摘要: export LANG=en_USxdg-user-dirs-gtk-update 阅读全文

posted @ 2012-10-13 01:48 张贺 阅读(1297) 评论(0) 推荐(0) 编辑

2012年10月6日

摘要: 增加全局变量路径:修改/etc/profile文件,在文件中追加:GIT_HOME=/document/soft/gitPATH=$GIT_HOME/bin:$PATH即可将/document/soft/git/bin路径增加到环境变量中之后执行source /etc/profile使修改生效在进入系统后,系统会一次执行ubuntu:~/.bashrc文件/.bash_profile、/.bash_login、/.profile以此执行上面找到的文件,并且只执行最先找到的那个文件。修改~/.bash_login用于修改当前用户到环境变量信息备份:PHP_HOME=/document/soft/ 阅读全文

posted @ 2012-10-06 04:09 张贺 阅读(476) 评论(0) 推荐(0) 编辑

2012年9月26日

摘要: 首先下载最新版本的vim,下载地址:ftp://ftp.jp.vim.org/pub/vim/unix解压编译:1 ./configure --prefix=/usr/local/vim7 --with-x --enable-gui=gtk2 --with-features=big2 make3 make install当打开gvim时发现菜单栏会有乱码,解决方案1 cd /usr/local/vim7/share/vim/vim73/lang2 sudo ln -s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim必须将utf-8改成utf8才行。 阅读全文

posted @ 2012-09-26 01:05 张贺 阅读(335) 评论(0) 推荐(0) 编辑

2012年9月13日

摘要: 首先查看无线网卡驱动信息:/sbin/lspci确定是否有下列信息:03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)如果存在,则下载无线网卡驱动:rtl8192ce_linux_2.6.0005.1116.2010.tar.gz解压驱动压缩包并进入文件夹:makemake install重启系统即可reboot卸载驱动:进入解压后的文件夹:make uninstall 阅读全文

posted @ 2012-09-13 00:11 张贺 阅读(1662) 评论(0) 推荐(0) 编辑

2012年9月12日

摘要: linux下添加,删除,修改,查看用户和用户组1,创建组groupadd test增加一个test组2,修改组groupmod -n test2 test将test组的名子改成test23,删除组groupdel test2删除组test24,查看组a),查看当前登录用户所在的组groups,查看apacheuser所在组groups apac一,组操作1,创建组groupadd test增加一个test组2,修改组groupmod-n test2 test将test组的名子改成test23,删除组groupdeltest2删除组test24,查看组a),查看当前登录用户所在的组groups. 阅读全文

posted @ 2012-09-12 16:03 张贺 阅读(254) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 13 下一页