网上找了一堆资料学习一下,了解这些,有助于规化程序结构,优化代码;使用gcc编译出来的程序,用size可以查看程序结构和大小,如
1: #size hello 2: Text data bss dec hex filename 3: 778 200 4 982 3D6 hello...
分类:
其他好文 时间:
2014-05-26 10:07:17
阅读次数:
289
解决方案:1.在对应的模板中, 为每个POST的form添加一行代码:{% csrf_token
%}。 如下所示: {% csrf_token %} {{ form.as_table }} 2.在对应的views.py中, 使用
django.templa...
分类:
其他好文 时间:
2014-05-26 10:03:05
阅读次数:
276
The concept of STL is based on a separation of
data and operations. The data is managed by container classes, and the
operations are defined by config...
分类:
其他好文 时间:
2014-05-26 09:43:55
阅读次数:
288
变量定义(variables):local: time or _time instance:
@time class: @@time global $time数据类型(data types)Numeric String Symbol Boolean
Array Hashvariabl...
分类:
其他好文 时间:
2014-05-26 09:39:54
阅读次数:
217
AJAX = 异步JavaScript和XML(Asynchronous JavaScript and
XML)jQuery load() 方法是简单但强大的AJAX方法load()
方法从服务器加载数据,并把返回的数据放入被选元素中语法:$(selector).load(URL,data,call...
分类:
Web程序 时间:
2014-05-26 07:59:44
阅读次数:
312
一、手动本机备份cd /usr/local/mysql/data #
进入到数据据目录下mysqldump -uroot -p123456 -R dbname | gzip > dbnameyyyyymmdd.bak #
压缩备份 二、每天定时备份1、备份脚本#!/...
分类:
数据库 时间:
2014-05-26 07:22:17
阅读次数:
339
1、JavaEE应用的分层模型 A、Domain Object B、Data Access
Object C、Service D、Controller E、Performance E--->D--->C--->B--->A--->DataBase2、ORM(Object
Relation Mappi...
分类:
编程语言 时间:
2014-05-26 07:07:35
阅读次数:
356
1 using System; 2 using System.Collections.Generic;
3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6
using System.Linq; ....
分类:
编程语言 时间:
2014-05-26 07:01:59
阅读次数:
261
#include#include#include#include using namespace
std;template class joseph{ struct node { T data; node * next; node():next(...
分类:
编程语言 时间:
2014-05-26 06:44:29
阅读次数:
390
value列12345将这个查询结果显示成以逗号隔开的一个字符串1,2,3,4,5只需要用mysql内置的一个函数
GOURP_CONCAT 就行了SELECT GOURP_CONCAT(VALUE) FORM TB
分类:
其他好文 时间:
2014-05-24 13:53:48
阅读次数:
243