var myApp = angular.module('myApp', []);//service style, probably the simplest onemyApp.service('helloWorldFromService', function() { this.sayHello...
分类:
其他好文 时间:
2014-07-10 11:35:35
阅读次数:
390
最近刚刚接手同事的OpenResty的项目,发现对mysql,redis的操作没有用连接池,故对此进行了改造。MYSQL主要是通过mysql_pool.lua 和 dbutil.lua 来封装对数据库的操作mysql_pool.lua: 1 module("mysql_pool", package....
分类:
数据库 时间:
2014-07-07 21:44:07
阅读次数:
591
If you use cookieless session ID and deploy them on Azure, you might get infinite loop when you query your web site, and browser would down. In this s...
分类:
其他好文 时间:
2014-07-07 21:29:24
阅读次数:
170
myeclipse6.0 下载地址。官方下载地址: http://www.myeclipseide.com/module-htmlpages-display-pid-4.html本地快速下载地址: http://www.rosebush.cn/blog/html/23/t-7423.html htt...
分类:
系统相关 时间:
2014-07-07 17:55:31
阅读次数:
194
今天要用yum安装软件,于是yum install ***,但是报错,错误如下:There was a problem importing one of the Python modules required to run yum. The error leading to this problem...
分类:
其他好文 时间:
2014-07-07 14:55:42
阅读次数:
350
HTML5在操作的过程中,很多朋友会遇到一个问题,那就是在播放本地文件的时候时常会有一些问题存在,使得HTML5才操作的过程中本地文件播放不流畅或者是不能够正常的播放。现在,我们就来看看HTML5如何播放本地文件。代码实例如下:Your browser can't support HTML5 Aud...
分类:
Web程序 时间:
2014-07-01 20:06:23
阅读次数:
194
环境:ubuntu 8.04内核版本:2.6.32.59-debug1、编写文件hello.c#include #include //printk/*写内核驱动的时候 必须加载这个头文件,作用是动态的将模块加载到内核中去,常用的宏定义如 MODULE_LICESENCE(),MODULE_AUT.....
分类:
系统相关 时间:
2014-07-01 19:30:08
阅读次数:
252
var browser={ versions:function(){ var u = navigator.userAgent, app = navigator.appVersion; return { trident: u.indexOf('Trident') > -1, //IE内核 presto...
分类:
编程语言 时间:
2014-06-30 21:32:45
阅读次数:
405
module.exports = function(grunt){ // 项目配置 grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { option...
分类:
其他好文 时间:
2014-06-30 15:24:10
阅读次数:
215
maven多module项目中,单元测试代码千万不能引入其他module的测试代码,否则在执行测试时就会出现NoClassDefFoundError: net/csdn/blog/chaijunkun/util/BaseTest。奇怪的是引入公共单元的src/main/java代码都能正常加载。本文详细介绍了重现问题的过程和解决办法。...
分类:
其他好文 时间:
2014-06-30 08:43:59
阅读次数:
715