|
|
2011年12月28日
摘要: Node.js参考http://nodejs.org/学习文档:http://cnodejs.org/api/http://cnodejs.org/cman/(中文手册)Node.js is a platform built onChrome's JavaScript runtimefor easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, per 阅读全文
2011年12月27日
摘要: jquery clueTip参考http://plugins.learningjquery.com/cluetip/OverviewThe clueTip plugin allows you to easily show a fancy tooltip when the user's mouse hovers over (or, optionally, clicks on) any element you designate in your script. If the element includes atitleattribute, its text becomes the hea 阅读全文
摘要: jquery fancybox参考http://fancyapps.com/fancybox/InstructionsDownload the plugin, unzip it, copy files and include fancyBox script and stylesheet in your document (you will need to make sure the css and js files are on your server, and adjust the paths in the script and link tag). Make sure you also l 阅读全文
摘要: optgroup标签 -- 代表分组选择项的类别名(此类别名不能选择)optgroup标签是成对出现的,以<optgroup>开始,以</optgroup>结束属性:Common-- 一般属性label-- 说明选择项引用网址:http://www.dreamdu.com/xhtml/tag_optgroup/<form action="dreamdu.php" method="post" id="dreamduform"> <label for="WebDesign"&g 阅读全文
2011年7月8日
摘要: 四 数据加载1. ExpressionExpression数据加载由ICriteria接口实现, ICriteria在程序中是无法直接构造的,必须通过ISession.CreateCriteria(type)来获得。ICriteria主要负责存储一组Expression对象和一组Order对象,当调用List执行查询时,ICriteria对Expression对象和Order对象进行组合以产生NHB内部的查询语句,然后交由DataLoader(数据加载器)来读取满足条件的记录。下面列出ICriteria接口中的一些常用方法:Add:加入条件表达式(Expression对象),此方法可多次调用以 阅读全文
2011年7月7日
摘要: 代码生成语言初设计#数据库相关代码#命令{dbhost,database(db),dbuser,dbpassword,namespace(ns),savepath(sp),gm,gd,ar}dbhost 127.0.0.1db test_data_basedbuser rootdbpassword 123456namespace PetShop.Modelsavepath "E:/project/my project/PetShop.Model"#生成实体类gm _all_gm usergm user,ordernamespace PetShop.DALsavepath & 阅读全文
2011年5月30日
摘要: C#情缘初识07年的毕业设计,我选择做一个博客系统。在技术方面,我使用了ASP.NET+MSSQL,而开发语言却选择了我熟悉的VB,也就是那个时候我知道了还有个C#程序设计语言,但由于完成毕业设计的时间短,对C#的了解只停留它是一门程序设计语言而已。07年年尾,干了几个月的ASP程序设计工作,萌发了创业的想法,于是闭门开发WEB项目,天真的以为能成就一帆事业。技术依旧ASP.NET+MSSQL,开发语言是VB。其实我整个开发过程基本还是延续了ASP的风格,所有代码还是写在ASPX页面里,至于为何选择ASP.NET就是因为看中了它的模板页以及运行效率高,安全性高。(毕业后没有人带,单枪匹马从事A 阅读全文
2011年2月16日
摘要: 来自:http://hi.baidu.com/eason_fun/blog/item/f2844a99af3258066e068c86.html最近新项目用PHP+MYSQL,N久没碰过这两玩意儿了,结果闹出不小的问题。某个数据库插入操作,echo出来的SQL直接copy到MYSQL Manager里面执行,worked~但在页面上就是不执行Insert操作,输出 Mysql_error() ,是一个1364的错误。查了半天,结果如下:MySQL 1364 错误提示:#1364 - Field "details" doesn't have a default value。大概意思是:detai 阅读全文
2010年12月22日
摘要: strtokchar *strtok(char *str, const char *sep);Example:[代码]备注:strtok() 会修改传递给它的第一个参数的内容,因此这个字符串在调用以后将是不安全的,无法按照原先的方式使用。如果需要保留原先的字符串,可以把它复制到一个缓冲区,并把这个缓冲区的地址传递给 strtok(),而不是传递原字符串。 阅读全文
2010年12月20日
摘要: bsearchvoid *bsearch(const void *key, const void *base, size_t n_elements, size_t el_size, int (*compare)(const void *, const void *));Example:[代码]http://files.cnblogs.com/bruceleeliya/bsearch.rar 阅读全文
摘要: qsortvoid qsort(void *base, size_t n_elements, size_t el_size, int (*compare)(const void *, const void *));Example:[代码]http://files.cnblogs.com/bruceleeliya/qsort.rar 阅读全文
2010年12月18日
摘要: C 动态分配内存malloc 和 freevoid *malloc(size_t size);void free(void *pointer);calloc 和 reallocvoid *calloc(size_t num_elements, size_t elements_size);void realloc(void *ptr, size_t new_size);[代码][代码] 阅读全文
摘要: C 常用字符串函数字符串长度size_t strlen(const char *string);不受限制的字符串函数char *strcpy(char *dst, const char *src);char *strcat(char *dst, const char *src);int strcmp(const char *s1, const char *s2);长度受限的字符串函数char *strncpy(char *dst, const char *src, size_t len);char *strncat(char *dst, const char *src, size_t 阅读全文
2010年12月13日
摘要: property_tree 是一个保存了多个属性值的树形数据结构,可以用类似路径的简单方式访问任意节点的属性,而且每个节点都可以用类似STL的风格遍历子节点。property_tree 特别适合于应用程序的配置数据处理,可以解析 xml, ini, json, info 四种格式的文本数据,使用它能够减轻自己开发配置管理的工作。以 XML 为例:[代码] 阅读全文
摘要: progress_display 可以在控制台上显示程序的执行进度,见图1-1图1-1example[代码] 阅读全文
2010年11月16日
摘要: ffmpeg build under MinGW使用 MinGW 编译 FFmpeg。这里使用的 FFmpeg 的最新版本。version 0.6.1(Oct 18, 2010) 步骤:1, 搭建 MinGW 的编译环境下载 mingw-get-inst-20101030.exe , 点击这里下载http://sourceforge.net/projects/mingw/files/。安装时选择如下安装过程中,需要联网。安装程序会去网上下载对应的程序。这一过程耗时较长,请耐心等候。安装成功后,执行安装目录中的 (C:\MinGW\msys\1.0\msys.bat), 程序会根据你当前的用户名 阅读全文
2010年11月5日
摘要: 1 被包含的文件位于当前目录下<!--#include file="foot.htm"-->2 被包含的文件不在当前目录下<!--#include virtual="../_SSI/foot.htm"--> 阅读全文
2010年7月27日
摘要: 话不多说,程序比较简单,直接上图.这个软件的代码完全参考 <Cocoa 入门 ---- 使用Objective-C>. 阅读全文
2010年7月14日
摘要: 什么是内核对象?参考这里:http://www.cnblogs.com/vivilisa/archive/2009/03/09/1407277.html使用命名对象来防止运行一个应用程序的多个实例代码如下:[代码] 阅读全文
2010年1月27日
摘要: 编码 前进、后退 按钮状态代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->privateint_current=0;privateint_min=0;privateint_max=99;privatevoidSetBtn_NextORPreviou... 阅读全文
|