在网上搜了下,grunt这方面的教程挺少的,来去都是一些被频繁转载的文章。唉,首先我们在全局环境中安装grunt-init。npm install -g
grunt-init来看看官方的文档,举几个例子,看看grunt-init是如何使用的:1、使用grunt-init--help来获取程序帮助以及...
分类:
其他好文 时间:
2014-05-16 19:27:51
阅读次数:
334
cur =
self.conn.cursor(MySQLdb.cursors.DictCursor)加上MySQLdb.cursors.DictCursor可以返回字典结构{列名:值}class
MYSQL(): def __init__(self,host,user,pwd,db): ...
分类:
数据库 时间:
2014-05-16 19:18:34
阅读次数:
419
RootViewController *rootVC=[[RootViewController
alloc] init] SignInViewController *signVC = [[SignInViewController alloc]init];
//如果在这里指定ta...
分类:
移动开发 时间:
2014-05-16 07:02:10
阅读次数:
396
环境:物理机,ubuntu12.04设备:mini2440开发板,USB转串口线一根,网线一根目标:物理主机开启nfs服务,在mini2440中能够成功挂载主机的共享目录一.安装并配置nfs服务1.使用命令安装: sudoapt-get
install nfs-kernel-server2. 使用命...
分类:
其他好文 时间:
2014-05-15 16:11:34
阅读次数:
431
1.安装
pymysql,地址:https://code.google.com/p/pymysql/2.安装django 然后执行django-admin.py
startproject mysite3.在project的__init__.py中加如下面的语句 try: import py...
分类:
数据库 时间:
2014-05-15 15:31:20
阅读次数:
337
一、Android系统构架
Android系统从底向上一共分了4层,每一层都把底层实现封装,并暴露调用接口给上一层。Linux内核(Linux Kernel)Android运行在linux
kernel 2.6之上,但是把linux内受GNU协议约束的部分做了取代,这样在Android的程序可以用....
分类:
移动开发 时间:
2014-05-15 15:21:50
阅读次数:
410
问题描述:RPC(Remote Procedure
Call)远程程序调用:如果要给另一个节点发信息:可以简单写成:call(Msg,Node) -> {server,Node}!{self(),Msg},
receive {ok,Res} -> Resend.ser...
分类:
Web程序 时间:
2014-05-14 13:24:12
阅读次数:
450
基本定制型C.__init__(self[, arg1, ...])
构造器(带一些可选的参数)C.__new__(self[, arg1, ...])
构造器(带一些可选的参数);通常用在设置不变数据类型的子类。C.__del__(self) 解构器C.__str__(self) 可打印的字符输出...
分类:
编程语言 时间:
2014-05-14 12:26:48
阅读次数:
435
/proc/sys/vm/drop_caches(since Linux 2.6.16)Writing
to this file causes the kernel to drop clean caches,dentries and inodes from
memory, causing that ...
分类:
系统相关 时间:
2014-05-14 08:54:16
阅读次数:
331
NAMEtput, reset - initialize a terminal or
query terminfo databaseSYNOPSIS tput [-Ttype] capname [parms ... ] tput [-Ttype]
init tpu...
分类:
系统相关 时间:
2014-05-14 08:51:13
阅读次数:
601