随笔分类 -  Cookbook

学习笔记
摘要:#先查看当前状态 mysql> show variables like 'general%'; + + + | Variable_name | Value | + + + | general_log | OFF | | general_log_file | /data/mysql/data/loca 阅读全文
posted @ 2017-08-16 13:49 peterpanzsy 阅读(241) 评论(0) 推荐(1)
摘要:方法上的装饰器: https://eastlakeside.gitbooks.io/interpy-zh/content/decorators/deco_class.html# 装饰器给类扩充功能 http://python3-cookbook.readthedocs.io/zh_CN/latest 阅读全文
posted @ 2017-05-27 17:05 peterpanzsy 阅读(172) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/snandy/archive/2012/11/13/2765381.html 用自带的 sudo apachectl -v sudo apachectl start sudo apachectl stop sudo apachectl restart w 阅读全文
posted @ 2017-05-08 15:20 peterpanzsy 阅读(233) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/51811fa24752 brew install python3 安装路径:/usr/local/Cellar 使用: 执行python3即可 配置到pycharm: https://segmentfault.com/q/1010000008505 阅读全文
posted @ 2017-05-06 15:56 peterpanzsy 阅读(1111) 评论(0) 推荐(0)
摘要:新建用户加sudo权限: You need run visudo and in the editor that it opens write: 阅读全文
posted @ 2017-03-09 15:18 peterpanzsy 阅读(127) 评论(0) 推荐(0)
摘要:https://taizilongxu.gitbooks.io/stackoverflow-about-python/content/16/README.html 1、也就是如果传可变对象,就是引用传递,比如列表 字典等;如果传不可变对象,字符串这种就是值传递; 2、引用传递进去如果直接令引用=一个 阅读全文
posted @ 2016-09-20 10:34 peterpanzsy 阅读(254) 评论(0) 推荐(0)
摘要:vim+python http://codingpy.com/article/vim-and-python-match-in-heaven/ vim+c++ http://jikaichen.com/2016/07/15/vim/ 有些插件安装是重合的。 批量注释及取消: http://be-evi 阅读全文
posted @ 2016-07-20 15:58 peterpanzsy 阅读(240) 评论(0) 推荐(0)
摘要:https://www.ibm.com/developerworks/cn/linux/l-cn-screen/ http://www.cnblogs.com/mchina/archive/2013/01/30/2880680.html http://unix.stackexchange.com/q 阅读全文
posted @ 2016-07-13 17:38 peterpanzsy 阅读(133) 评论(0) 推荐(0)
摘要:http://stackoverflow.com/questions/24342886/how-to-install-java-8-on-mac If you get the error "already installed", follow the instructions to unlink i 阅读全文
posted @ 2016-07-11 19:28 peterpanzsy 阅读(5222) 评论(0) 推荐(0)
摘要:pycharm安装和首次使用 http://blog.csdn.net/chenggong2dm/article/details/9365437 快捷键: 找文件、代码、引用相关 1、双击shift 在项目的所有目录进行查找 2、alt+f7 非常非常频繁使用的一个快捷键,可以帮你找到你的函数或者变 阅读全文
posted @ 2016-07-11 18:52 peterpanzsy 阅读(2956) 评论(0) 推荐(0)
摘要:http://lingbjxm.iteye.com/blog/2155833 重命名窗口:Fn F8 阅读全文
posted @ 2016-07-11 15:39 peterpanzsy 阅读(207) 评论(0) 推荐(0)
摘要:核心类:ZorkaAsyncThread.javaprotected BlockingQueue submitQueue; /*** Processes single item from submit queue (if any).*/public void runCycle() {try {T o... 阅读全文
posted @ 2015-06-23 11:07 peterpanzsy 阅读(311) 评论(0) 推荐(0)
摘要:zorka中插桩流程概述1、在SpyDefinition中配置插桩属性,将SpyDefinition实例提交给插桩引擎。2、SpyDefinition实例中包含了插桩探针probes,probe插入到方法中,对方法的执行进行监控。方法的插入阶段主要包括三个:开始阶段(entry),返回阶段(retu... 阅读全文
posted @ 2015-06-23 11:01 peterpanzsy 阅读(753) 评论(0) 推荐(0)
摘要:一、beanshell基础知识从应用程序中调用BeanShell创建一个BeanShell的解释器(interpreter)用eval()和source()命令可以对一个字符串求值和运行一个脚本文件使用set()方法可以给一个对象传入一个变量的参考使用get()方法可以重新得到一个变量的结果二、在b... 阅读全文
posted @ 2015-06-23 10:56 peterpanzsy 阅读(554) 评论(0) 推荐(0)
摘要:主要用到三方面技术:beanshell来实现可扩展:告诉zorkaAgent插桩的具体需求,包括插桩的方法和值、插桩的时机、插桩追踪记录方式等。Instrument来通过代理的方式访问JVM,实现在类加载的时候访问类字节码。ASM字节码操纵框架,用于实现真正底层的类字节码的修改。一、beanshel... 阅读全文
posted @ 2015-06-23 10:50 peterpanzsy 阅读(1099) 评论(0) 推荐(0)
摘要:TheLanguage levelsetting sets which features the code assistance in the editor should support. For example, if you're using JDK 1.7 but want your code... 阅读全文
posted @ 2015-04-20 20:38 peterpanzsy 阅读(473) 评论(0) 推荐(0)
摘要:git tag https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E6%89%93%E6%A0%87%E7%AD%BE git tag:查看所有tag git tag -l 'v2.1.2.20170111.*' git tag xx:打t 阅读全文
posted @ 2015-04-13 15:55 peterpanzsy 阅读(276) 评论(0) 推荐(0)
摘要:刷新http://datatables.net/reference/api/ajax.reload() 阅读全文
posted @ 2015-04-13 10:59 peterpanzsy 阅读(240) 评论(0) 推荐(0)
摘要:字符串连接时的效率:StringBuilder>StringBuffer>String区别:StringBuilder效率最高,但是不是线程安全的,适用于单线程。多线程用StringBuffer,线程安全。http://java-er.com/blog/java-stringbuffer-strin... 阅读全文
posted @ 2015-03-26 11:14 peterpanzsy 阅读(151) 评论(0) 推荐(0)
摘要:可能遇到的问题:tomcat7启动报错 java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilterhttp://nvry.iteye.com/blog/1726163解决方法:在Tomacat7的conte... 阅读全文
posted @ 2015-03-14 12:13 peterpanzsy 阅读(975) 评论(0) 推荐(0)