博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月3日

摘要: git 官网:http://git-scm.com/book自动发送邮件,配置:将一下配置加在服务器端的.gitconfig里[hooks] mailinglist = “mail列表用逗号隔开” envelopesender = "发信人mail地址" emailprefix = "[SCM] "----信件抬头 showrev = "git show -C %s; echo"--修改信息或者 showrev = "git rev-list -1 --pretty %s"简单信息ln -s /usr/share/ 阅读全文

posted @ 2012-07-03 18:09 Jerolin 阅读(240) 评论(0) 推荐(0)

2012年6月21日

摘要: 递归int length(const char *p){ if ( *p ='\0') return 0; return length(++p) + 1;} 阅读全文

posted @ 2012-06-21 21:44 Jerolin 阅读(184) 评论(0) 推荐(0)

2012年6月1日

摘要: 目的:建立linux开发环境,开发板NFS启动设备: 1. 主机 2. 虚拟机 3. 开发板 (Mini2440)及 相关连接线主机配置: 1. 将相连的物理网卡、虚拟网卡分别设置在相同的网段 2.关闭防火墙(貌似不关也可以)虚拟机配置: 1. 在 VMWare 的 Edit - Virtual Network Editor 中,将VMnet0 桥接到 D-Link无线网卡,将VMnet1 桥接到 Realtek有线网卡; 2. 虚拟机本身自带一个网卡,自己再从 VMWare 的 VM - Setting 中添加一个,设置第二2个虚拟网卡的 Network connectio... 阅读全文

posted @ 2012-06-01 00:58 Jerolin 阅读(371) 评论(0) 推荐(0)

2012年5月30日

摘要: 转载:http://blog.chinaunix.net/uid-10540984-id-3017242.html零宽断言的意思是(匹配宽度为零,满足一定的条件/断言) 我也不知道这个词语是那个王八蛋发明的,简直是太拗口了。零宽断言用于查找在某些内容(但并不包括这些内容)之前或之后的东西,也就是说它们像 \b ^ $ \< \> 这样的锚定作用,用于指定一个位置,这个位置应该满足一定的条件(即断言),因此它们也被称为零宽断言。断言用来声明一个应该为真的事实。正则表达式中只有当断言为真时才会继续进行匹配。其中零宽断言又分四种:1)先行断言 也叫零宽度正预测先行断言(?=exp) -- 阅读全文

posted @ 2012-05-30 14:37 Jerolin 阅读(779) 评论(0) 推荐(0)

2012年5月29日

摘要: 转载 NR is the number of the file, if there are two file as parameters, there will be just line count.FNR just is the number of the file.1、用某一文件的一个域替换另一个文件中的的特定域?http://bbs.chinaunix.net/forum/viewtopic.php?t=500015文件passwd:s2002408030068:x:527:527::/home/dz02/s2002408030068:/bin/pws2002408032819:x:52 阅读全文

posted @ 2012-05-29 00:20 Jerolin 阅读(1297) 评论(0) 推荐(0)

2011年12月30日

摘要: #!/bin/sh#This script is used to search apk with package name which is picked up from new app install log by adb logcat.packagename=`awk '/dat=package:/{for(n=0;n<=NF;n++)if($n~/^dat=package:/)print $n}' log| uniq |sed 's/dat=package://g'`rm -rf exl.txtfor a in $packagename do# ca 阅读全文

posted @ 2011-12-30 01:46 Jerolin 阅读(230) 评论(0) 推荐(0)

2011年12月9日

摘要: 转自 IBM develop worksMadhavan Srinivasan (masriniv@in.ibm.com), 开发人员, PowerPC Tools Development, IBM简介:通过重点分析使用信号处理程序捕获到的数据,您可以加速调试过程中耗时最多的一个步骤:寻找 bug。本文介绍了 Linux® 信号的背景知识,并给出了已在 PPC Linux 测试通过的示例,然后介绍如何设计自己的信号处理程序来输出信息,从而快速定位代码中有问题的部分。本文的标签: linux, 调试信号 就是软件中断,可以向正在执行的程序(进程)发送有关异步事件发生的信息。大部分硬件 阅读全文

posted @ 2011-12-09 20:46 Jerolin 阅读(372) 评论(0) 推荐(0)

摘要: 摘自 百度百科 元字符描述.点匹配任何单个字符。例如正则表达式r.t匹配这些字符串:rat、rut、r t,但是不匹配root。$匹配行结束符。例如正则表达式weasel$ 能够匹配字符串"He's a weasel"的末尾 但是不能匹配字符串"They are a bunch of weasels."^匹配一行的开始。例如正则表达式^When in能够匹配字符串"When in the course of human events"的开始,但是不能匹配"What and When in the"*匹配0或 阅读全文

posted @ 2011-12-09 20:44 Jerolin 阅读(178) 评论(0) 推荐(0)