随笔分类 - web
摘要:http://geek.warmsheep.com/post/2014-04-07/40061445312
阅读全文
摘要:官方文档:http://gearman.org/getting-started/安装方法和示例都有,可以详细看一下。Gearman是一个分发任务的程序框架,可以用在各种场合,与Hadoop相比,Gearman更偏向于任务分发功能。它的任务分布非常简单,简单得可以只需要用脚本即可完成。Gearman最...
阅读全文
摘要:http://tool.css-js.com/在进行前端的时候,可以参考百度性能监控中心给出的意见:http://developer.baidu.com/apm/index
阅读全文
摘要:function date2str(x, y) { var z = { M : x.getMonth() + 1, d : x.getDate(), h : x.getHours(), m : x.getMinutes(), s : x.getSeconds() }; y = y.repl...
阅读全文
摘要:http://ionicframework.com/之前用过app.js,相比ionic,真是弱爆了!http://learn.ionicframework.com/formulas/上面的链接有许多进阶的例子,可以学习一下
阅读全文
摘要:Redis的应用http://www.redis.cn/commands.htmlhttp://www.cnblogs.com/ikodota/archive/2012/03/05/php_redis_cn.htmlhttp://redis.readthedocs.org/en/latest/ind...
阅读全文
摘要:参数文章:http://angularjs.cn/A0qFangularjs中Post使用的是json的交互方法,一般服务器还没达到这个阶段,我们可以用回传统的&参数的方法: var myApp = angular.module('app',[]); myApp.config(function($h...
阅读全文
摘要:移动开发工具http://www.csdn.net/article/2014-04-17/2819378-10-mobile-application-development-tools原型设计工具https://www.fluidui.com/基于angularJS的移动UI库http://mobi...
阅读全文
摘要:angular学习资源angularjs库:https://developers.google.com/speed/libraries/devguide?hl=zh-CN#angularjsangularjs学习教程:http://www.apjs.net/#dir2https://docs.ang...
阅读全文
摘要:http://www.oschina.net/translate/jquery-plugins-to-take-your-website-to-another-level
阅读全文
摘要:IP Addresses of Google Global Cachewww.kookle.co.nrBulgaria 93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6 93.123.23.7 93.123...
阅读全文
摘要:/** * 发送HTTP请求方法,目前只支持CURL发送请求 * @param string $url 请求URL * @param array $params 请求参数 * @param string $method 请求方法GET/POST ...
阅读全文
摘要:将pureftpd.passwd文件的内容转换成sql语句,导入到mysqlpureftp.passwd格式::::::::::::::::::
阅读全文
摘要:bootstrap中文文档:http://www.bootcss.com/免费的bootstrap模板:http://bootswatch.com/
阅读全文
摘要:php读ini文件有很方便的pares_ini_file,但是写回去却没有,这里写一个:function write_ini_file($assoc_arr, $path, $has_sections = FALSE) { $content = ""; if ($has_sections...
阅读全文
摘要:file_get_contents在连接不上的时候会提示Connection refused,有时候会带来不便;另外,curl的性能比file_get_contents高,所以用curl重写file_get_contentsfunction _file_get_contents($s) { $...
阅读全文
摘要:在 conf文件server块里面加上:add_header 'Access-Control-Allow-Origin' "$http_origin";add_header 'Access-Control-Allow-Credentials' 'true';add_header 'Access-Co...
阅读全文
摘要:server { listen *:80; server_name www.mydomain.com *.mydomain.com; root /var/www/www.mydomain.com/web; if ($http_host != "www.mydomain.com") { rewrite ^ http://www.mydomain.com$request_uri permanent; } index index.php index.html; location = /...
阅读全文
摘要:从Thinkphp里面抽离出来的数据库模块,感觉挺好用common.php' . $label . htmlspecialchars($output, ENT_QUOTES) . ''; } else { $output = $label . print_r($var, true); } } else { ob_start(); var_dump($var); $output = ob_get_clean(); if (!extension_loaded('xdebug')) { ...
阅读全文
摘要:protected function getRs($id) { $db = new mysqli(C("DB_HOST"), C("DB_USER"), C("DB_PWD"), C("DB_NAME"), C("DB_PORT")); if (mysqli_connect_errno()) throw_exception(mysqli_connect_error()); $sql = "call `room_match`.`wsKocMatchLoadResultHeader`($i
阅读全文