#-*-coding:cp936-*-defn1(n):n=['apple','dog','cat','mimi']n.append(b)printnprint'T出的是:',n.pop(0)printnif__name__=='__main__':b=raw_input('b:')n1(b)
分类:
其他好文 时间:
2014-12-10 22:38:33
阅读次数:
180
刚刚开始接触akka,网上找了2个简单示例,并在公司运营机器上尝试,踩了一些坑,在此记录。1. 本地hello world 1 [torstan@sparkb5-i ~/akka_example/hello_world]$ cat src/helloWorld.scala 2 package ou....
分类:
其他好文 时间:
2014-12-10 19:23:21
阅读次数:
245
获取栏目名:{$CAT[catname]}或{$catname}获取父栏目名:{$CATEGORYS[$CAT[parentid]][catname]}获取同级栏目列表:{pc:content action="category" catid="$parentid"} {loop $data $...
分类:
Web程序 时间:
2014-12-10 14:05:22
阅读次数:
186
今天遇到一个开线程太多将虚拟内存耗尽的问题
我的应用程序的pid是2558,查看此时的状态:
root@Storage:/proc/2558# cat status
Name: sonia
State: S (sleeping)
Tgid: 2558
Pid: 2558
PPid: 2335
TracerPid: 0
Uid: 0...
分类:
编程语言 时间:
2014-12-09 19:39:40
阅读次数:
979
JFinal的框架我24号的一篇博文写到过,它优秀的地方在精简代码上,那么有两处源码是我觉得是值得我们要好好解析一下,一处是初始化加载—servlet跳转,另一处是DB+ActiveRecord的映射。那么DB映射相对比较简单,我们这次就先来看看。首先我们看看代码,还是之前我写过的 dog与cat的...
分类:
其他好文 时间:
2014-12-09 17:13:32
阅读次数:
771
processor: 23:超线程技术的虚拟逻辑核第24个 vendor_id : GenuineIntel :CPU制造商 cpu family : 6 :CPU产品系列代号 model : 44 :CPU属于其系列中的哪一代号 model name : Intel(R) Xeon(R) CPU ? ? ? ...
分类:
其他好文 时间:
2014-12-09 12:35:16
阅读次数:
190
应公司要求在 Vsphere client部署备用网站,以便备用,不要问为什么有虚拟化任性。
环境centos6.5 直接用yum安装环境,新机器做下初始话一个脚本公司同事写的:
#!/bin/bash
# Program:
# system_init_shell
# History:
# Release:
# 1.1
cat
+-------...
分类:
Web程序 时间:
2014-12-09 12:19:16
阅读次数:
273
Description
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.
The warehouse has N rooms. The i-th room contains J...
分类:
其他好文 时间:
2014-12-09 12:16:19
阅读次数:
173
[java]varreCat=newRegExp("cat","gi");//RegExp构造函数可以带一个或两个参数,第一个参数描述需要进行匹配的模式字符串,第二个参数指定了额外的处理命令varreCat=/cat/gi;//使用Perl风格的语法i:执行对大小写不敏感的匹配g:执行全局匹配(查找...
分类:
Web程序 时间:
2014-12-09 10:29:30
阅读次数:
218
linux cat,tac,more,less,head,tail,cut,sort,uniq,wc,tr命令的使用
cat:连接并显示,比如:[root@localhost~]#cat/tmp/sort.test
111
324
567
324
890
890
567
abc加上选项-n会显示行号:[root@localhost~]#cat-n/tmp/sort.test
1111
2324
3567
4324
5890
6890
7567
8abc加上-E选项会显示行尾符$:(linux中行尾符是$)root@localhost~]#cat-E/tmp..
分类:
系统相关 时间:
2014-12-09 01:57:25
阅读次数:
272