03 2013 档案

摘要:use auctionvar colls = db.getCollectionNames();for(var i = 0; i < colls.length; i++){ if(/user_apps_grab_gid_[a-f0-9]*$/.test(colls[i])){ print(colls[i]); //db.auction.drop(colls[i]); db.runCommand({"drop" : colls[i]}); }} 阅读全文
posted @ 2013-03-31 14:35 Arliang 阅读(1193) 评论(0) 推荐(0)
摘要:#转发需要两个模块LoadModuleproxy_modulemodules/mod_proxy.soLoadModuleproxy_http_modulemodules/mod_proxy_http.so######appache server proxy 500错误 阅读全文
posted @ 2013-03-29 10:10 Arliang 阅读(227) 评论(0) 推荐(0)
摘要:在windows下可以进入相应的主题,但最近用linux的时候无法进入,提示出错就是这样的链接↓|usr_07.txt|使用 shift + k 无法进入,提示错误:! man 'usr_07.txt'No manual entry for usr_07.txtshell returned 1Press ENTER or type command to continueLinux下默认是用man -s的,看:help K即可找到解决方案set keywordprg=:help 阅读全文
posted @ 2013-03-27 09:36 Arliang 阅读(703) 评论(0) 推荐(0)
摘要:var memcache = require('memcache') , http = require('http') , url = require('url') , qs = require('querystring') , memsettings = { port: 2000, host: '10.6.0.6' } , httpsettings = { port: 3000 } , cacheObject = {} , httpserver , client , requestHandler;client = 阅读全文
posted @ 2013-03-25 19:47 Arliang 阅读(2481) 评论(0) 推荐(1)
摘要:var arr = [ {id:1}, {id:2}, {id:1}];/*unique(arr, 'id'); //->[{id: 1}, {id: 2}];unique([1,2,2,2,3,3,4]); //->[1,2,3,4];unique(arr, function(item){ return item.id;}); //->[{id: 1}, {id: 2}];*/function unique(array, filter){ var tmpObject = {hasStored: {}, uniqueArray: []}, i, fun; if 阅读全文
posted @ 2013-03-15 10:23 Arliang 阅读(332) 评论(0) 推荐(0)
摘要:看一段简单的getScript$.getScript( 'http://open.web.meitu.com/sources/xiuxiu.js', function(){ console.log('xxx'); })脚本是加载了,但console.log('xxx');不执行看了文档http://api.jquery.com/jQuery.getScript/临时解决方案,用complete$.getScript("ajax/test.js").done(function(script, textStatus) { cons 阅读全文
posted @ 2013-03-05 13:38 Arliang 阅读(7194) 评论(2) 推荐(1)