02 2014 档案
修改OPENSUSE 桌面快速搜索快捷键
摘要: 阅读全文
posted @ 2014-02-27 23:06 c3tc3tc3t 阅读(392) 评论(0) 推荐(0)
npm link 命令解析
摘要:文字转的对开发者而言,这算是最有价值的命令。假设我们开发了一个模块叫 test ,然后我们在 test-example 里引用这个模块 ,每次 test 模块的变动我们都需要反映到 test-example 模块里。不要担心,有了 npm link 命令一切变的非常容易。首先我们需要把 test 链接到全局模式下:cd ~/work/node/test # 进入test模块目录npm link # 创建链接到$PREFIX/lib/node_modules那么 test 的模块将被链接到 $PREFIX/lib/node_modules 下,就像我的机器上 $PREFIX 指到 /usr/lo 阅读全文
posted @ 2014-02-27 18:39 c3tc3tc3t 阅读(15679) 评论(0) 推荐(1)
xampp安装步骤及启动
摘要:1 chmod 755 xampp-linux-*-installer.run2sudo ./xampp-linux-*-installer.run启动停止3sudo /opt/lampp/lampp start4sudo /opt/lampp/lampp stop测试http://localhostapache不能启动查看日志tail -2 /opt/lampp/logs/error_log 阅读全文
posted @ 2014-02-24 22:47 c3tc3tc3t 阅读(362) 评论(0) 推荐(0)
underscore javascript工具库支持seajs模块化
摘要:underscore是一个很有用的js工具库,但是好像默认不支持seajs模块化新建一个文件例如叫做xx.js 谈后,键入define(function(require,exports,module) { 这里将underscore源代码复制进来});这样在使使用时var _ = require('lib/xx');console.info(_.VERSION);就可以了, 阅读全文
posted @ 2014-02-20 13:13 c3tc3tc3t 阅读(228) 评论(0) 推荐(0)
opensuse install oracle 11gR2 Error in invoking target 'agent nmhs' of makefile '../ins_emagent.mk'
摘要:转自http://blog.csdn.net/ly5156/article/details/6647563遭遇Error in invoking target 'agent nmhs' of makefile '/home/oracle_11/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk'.解决过程vi $ORACLE_HOME/sysman/lib/ins_emagent.mkSearch for the line$(MK_EMAGENT_NMECTL)Change it to:$(MK_EM 阅读全文
posted @ 2014-02-14 23:16 c3tc3tc3t 阅读(599) 评论(0) 推荐(0)
opensuse 安装oracle 界面乱码
摘要:执行.runInstall时,出现界面乱码exportLANG=en_USexportLC_ALL=en_US终端里 执行这两句。用英文界面安装再执行 .runInstall 阅读全文
posted @ 2014-02-14 22:20 c3tc3tc3t 阅读(313) 评论(0) 推荐(0)
晒张桌面
摘要: 阅读全文
posted @ 2014-02-12 11:00 c3tc3tc3t 阅读(373) 评论(4) 推荐(0)
东拼西凑 vim配置-更新
摘要:"============================================================="============================================================="" Vim基本配置""==============... 阅读全文
posted @ 2014-02-10 20:11 c3tc3tc3t 阅读(757) 评论(0) 推荐(0)
oh-my-zsh
摘要:oh-my-zsh 是一个广受欢迎的 zsh 配置库,在它的 github 主页https://github.com/robbyrussell/oh-my-zsh/ 阅读全文
posted @ 2014-02-10 09:38 c3tc3tc3t 阅读(231) 评论(0) 推荐(0)
Python的静态方法和类成员方法都可以被类或实例访问,两者概念不容易理清,但还是有区别的
摘要:转:http://www.cnblogs.com/2gua/Python的静态方法和类成员方法都可以被类或实例访问,两者概念不容易理清,但还是有区别的:1)静态方法无需传入self参数,类成员方法需传入代表本类的cls参数;2)从第1条,静态方法是无法访问实例变量的,而类成员方法也同样无法访问实例变量,但可以访问类变量;3)静态方法有点像函数工具库的作用,而类成员方法则更接近类似Java面向对象概念中的静态方法。实现静态方法和类方法的两种方式一、在Python 2.3及之前,用staticmethod和classmethod类型对象包装实现例子如下(注意print里的说明):class MyC 阅读全文
posted @ 2014-02-09 15:18 c3tc3tc3t 阅读(1010) 评论(0) 推荐(0)
org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.
摘要:今天报了这个异常,这是页面报的org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.控制台报18:52:35,859 ERROR SqlExceptionHelper:147 - Cannot delete or update a parent row: a foreign key constraint fails (`zl_cms`.`t_chann 阅读全文
posted @ 2014-02-07 18:59 c3tc3tc3t 阅读(32659) 评论(0) 推荐(0)
Column 'orders' in order clause is ambiguous
摘要:今天报了这个错误 原因是。当使用sql查询语句,使用了join查表。但是这个orders没指定是哪张表的字段 ,发生在自关联情况 阅读全文
posted @ 2014-02-05 13:56 c3tc3tc3t 阅读(715) 评论(0) 推荐(0)
opensuse13.1 安装chrome报 error while loading shared libraries:libudev.so.0:cannot open shared object file:no file or directory
摘要:1 opensuse13.1 安装chrome时 先用rpm -ivh --test **.rpm 测试安装 安装上缺少的文件2 但是安装测试通过 却不能启动 原因 缺少一个文件 libudev.so.0 将这个安装上sudo zypper in libudev.so.03 就可以启动了 阅读全文
posted @ 2014-02-02 20:49 c3tc3tc3t 阅读(1539) 评论(0) 推荐(0)
python中函数参数传递的几种方法
摘要:转自 http://www.douban.com/note/13413855/Python中函数参数的传递是通过“赋值”来传递的。但这条规则只回答了函数参数传递的“战略问题”,并没有回答“战术问题”,也就说没有回答怎么赋值的问题。函数参数的使用可以分为两个方面,一是函数参数如何定义,二是函数在调用时的参数如何解析的。而后者又是由前者决定的。函数参数的定义有四种形式: 1. F(arg1,arg2,...) 2. F(arg2=,arg3=...) 3. F(*arg1) 4. F(**arg1)第1 种方式是最“传统”的方式:一个函数可以定义不限个数参数,参数(形式参数)放在跟在函数名后面的小 阅读全文
posted @ 2014-02-01 21:56 c3tc3tc3t 阅读(4122) 评论(0) 推荐(0)