nonb.cn
写点寂寞
http://www.nonb.cn/admin
执行时间 0.0017 赣ICP备09011268号.
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-15.html
分类 NoSQL 文章(7) 篇. 原文地址:http:/ ubuntuforums.org/archive/index.php/t-1715866.html. Hey guys, I've been a long time lurker but this is my first post! So sockstat. ropes@ropes: $ sockstat -p 27017 USER PROCESS PID PROTO SOURCE ADDRESS FOREIGN ADDRESS STATEI'm really confused, it seems like the socket isn't bound at all but Mongo still can't bind to the port, so there's some type of ghost binding? I'm able to launch it now. you rock! 阅读(3988) 评论(0) 分类: NoSQL. Querys = array(name= shian);. Querys = array(numbe...
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-10.html
分类 懒得分类 文章(7) 篇. 另外,今天看到一当节目“我是传奇”中有个叫小灿的“姑娘”. 阅读(2742) 评论(0) 分类: 懒得分类. 编辑 sshd config 文件 (文件所在路径 /etc/ssh/ ). 以root 权限重启SSH,命令 /etc/init.d/sshd restart. 阅读(3855) 评论(0) 分类: 懒得分类. 阅读(3269) 评论(0) 分类: 懒得分类. 阅读(3490) 评论(3) 分类: 懒得分类. 阅读(2967) 评论(1) 分类: 懒得分类. 1 在命令模式使用下面的快捷键 CTRL q,小写的q就可以了. 阅读(2980) 评论(0) 分类: 懒得分类. 阅读(3148) 评论(0) 分类: 懒得分类. 执行时间 0.0362 赣ICP备09011268号.
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-9.html
分类 转载 文章(5) 篇. Svn checkout path path是 服务器. 例如 svn checkout svn:/ 192.168.1.1/pro/domain. 例如 svn add test.php(添加test.php). Svn add *.php(添加当前目录下所有的php文件). Svn commit -m “LogMessage“ [-N] [- no-unlock] PATH(如果选择了保持锁,就使用–no-unlock开关). 例如 svn commit -m “add test file for my test“ test.php. Svn lock -m “LockMessage“ [- force] PATH. 例如 svn lock -m “lock test file“ test.php. Svn update -r m path. Svn update -r 200 test.php(将版本库中的文件test.php还原到版本200). Svn update test.php(更新,于版本库同步。 简写 svn (del, remove, rm).
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-13.html
分类 Linux/架构,部署 文章(14) 篇. Expires 1h; } log format access '$remote addr - $remote user [$time local] $request ' '$status $body bytes sent $http referer ' '$http user agent $http x forwarded for'; access log /data1/logs/access.log access; }. 阅读(2847) 评论(0) 分类: Linux/架构,部署. Awk '{print }' log file sort uniq wc -l. Grep /index.php log file wc -l. Awk '{ S[]} END {for (a in S) print a,S[a]}' log file. Awk '{ S[]} END {for (a in S) print S[a],a}' log file sort -n. 15 列出传输时间超过 30 秒的文件. 阅读(5540) 评论(0) 分类: python.
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-16.html
分类 Node.js 文章(2) 篇. 阅读(8096) 评论(2) 分类: Node.js. Nodejs 写本文的时候我采用的版本是0.4.5, Win用户需要自行编译node.exe npm 类似Ruby中的RubyGems, node.js包依赖管理工具 express 类似Ruby中的Sinatra, 一个简单的Web框架 markdown.js node.js中的markdown解析器, 什么是markdown? 用过GitHub的朋友应该知道,readme.md文件 prettify.js google-code-prettify, 提供在线的语法高亮支持,支持语法包括C-like, Java, Python, shell等大多数语言. 如果在使用/configure时报错 Node.js could not configure a cxx comiler! Yum groupinstall Development Tools”. 将以上代码存为hello.js,然后使用node hello.js运行,在控制台上按住ctrl键,会出现下划线直接点击。 Npm install $ node ...
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-18.html
分类 python 文章(3) 篇. Fzxawang@fzxamatoMacBook-Pro $ python bonus.py 0.01 10 20 10 0.01 10 20 10 第1个人拿到红包为:0.18, 余额:19.82 第2个人拿到红包为:2.05, 余额:17.77 第3个人拿到红包为:5.27, 余额:12.50 第4个人拿到红包为:0.90, 余额:11.60 第5个人拿到红包为:0.35, 余额:11.25 第6个人拿到红包为:1.77, 余额:9.48 第7个人拿到红包为:2.31, 余额:7.17 第8个人拿到红包为:0.75, 余额:6.42 第9个人拿到红包为:6.24, 余额:0.18 第10个人拿到红包为:0.18, 余额:0.00. 阅读(4163) 评论(1) 分类: objective-c. 注意这个方法getopt.getopt(args, options[, long options]). 阅读(2940) 评论(0) 分类: Linux/架构,部署. 阅读(2469) 评论(1) 分类: PHP.
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-12.html
分类 数据库优化 文章(4) 篇. SELECT * FROM `table` ORDER BY RAND() LIMIT 5. 一个15万余条的库,查询5条数据,居然要8秒以上 查看官方手册,也说rand()放在ORDER BY 子句中会被执行多次,自然效率及很低。 You cannot use a column with RAND() values in an ORDER BY clause, because ORDER BY would evaluate the column multiple times. SELECT * FROM `table` AS t1 JOIN (SELECT ROUND(RAND() * (SELECT MAX(id) FROM `table`) AS id) AS t2 WHERE t1.id = t2.id ORDER BY t1.id ASC LIMIT 5;. SELECT * FROM `table` WHERE id = (SELECT FLOOR( MAX(id) * RAND() FROM `table` ) ORDER BY id LIMIT 1;.
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-5.html
分类 PHP 文章(34) 篇. P3P Platform for Privacy Preferences 正是一种可以提供这种个人隐私保护策略,并且正在被越来越多的技术人员接受的新技术。 举个例子,进入药店,店员彬彬有礼的笑脸相迎 “尊敬的XX,欢迎您第X次光临本店,上次您在 我们这里购买XX药品,本店对这种病又进了一些疗效突出的新药,需要我带路吗 ”尽管店员微笑服务,但大家是否有一种隐私被窥探的感觉 在家中,我们可以 放下厚厚的窗帘,但是在网上,我们早已在不知不觉中把自己出卖。 两个域名www.a.php和www.b.php. Header('P3P: CP=CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR');. Setcookie(test1, $ GET['id'], time() 3600, /);. Echo $ COOKIE['test1'];. Script src=http:/ www.a.com/a setcookie.php? Php # include这两个文件之一 ...
nonb.cn
写点寂寞
http://www.nonb.cn/category/index-11.html
分类 前端开发HTML5/JS 文章(33) 篇. Http:/ m1.auto.itc.cn/frontend/fzxa/demo/pager.html. Use strict; /* * Fzxa.Pager分页类 * * @create 2013-05 @fzxa * @editor [@editor] [yy-mm-dd H:i:s] * @version v1.0 $Id: fzxa.pager.js 68 2013-05-13 08:22:05Z zhenwang $ */ (function(Fzxa){ var Fzxa = Fzxa? Index = parseInt(index.replace('javascript:/ ', ' ) ; self. onclick(index) } return false; }; } }; } Fzxa.Pager = function(id){ var pager = new Pager(id); return pager; }; })(Fzxa); / end pager.js. 阅读(4565) 评论(0) 分类: PHP. GET[ 'j...