首页 > 其他
$(function(){})的执行过程分析
作者:zccst首先,$(function(){})是$(document).ready(function(){})的简写形式。在日常使用中,我们会把代码写到$(function(){})中,今天看看jQuery是如何做的(过程有点长)。1,看jQuery入口,结论是$(function(){})是...
分类:其他   时间:2014-05-26 01:54:07    收藏:0  评论:0  赞:0  阅读:450
Ubuntu下安装OpenCV
亲测,ubuntu 14.04 + OpenCV 2.471 编译环境 sudo apt-get install build-essential2 安装GTK环境 sudo apt-get install libgtk2.0-dev3 编译GTK程序时自动找出头文件及库文件位置 sudo apt-g...
分类:其他   时间:2014-05-26 01:54:29    收藏:0  评论:0  赞:0  阅读:346
修改VS类模板自动添加public修饰符和版权注释信息
在开发过程中,我们经常需要给类或接口添加public修饰符(默认没有)和一些相关的注释信息,这个工作是机械而枯燥的,而这个简单的需求其实是可以通过修改VS自带的类模板来实现的,下面是详细的修改步骤。 1,找到目录C:\Program Files (x86)\Microsoft Visual Stud...
分类:其他   时间:2014-05-26 01:55:55    收藏:0  评论:0  赞:0  阅读:388
poj3299
HumidexTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15974Accepted: 5811DescriptionAdapted from Wikipedia, the free encyclopediaThe humide....
分类:其他   时间:2014-05-26 01:57:00    收藏:0  评论:0  赞:0  阅读:391
管理者不应该做的事
1.责备让每个人明白出错的时候要承担责任,而不是责任他,出问题要帮他认识问题,并且给他提供解决办法,先了解来龙去脉,看看是哪里出了问题,是否能避免2.印象没有人会因为你的服装、你的车、你的财产、你的头衔或者你的成就而喜欢你。这些都是“东西”。人们可能会喜欢你的东西——但是这并不意味着他们喜欢你。建立...
分类:其他   时间:2014-05-26 01:57:21    收藏:0  评论:0  赞:0  阅读:379
注册验证
var user = $("user");var from1 = $("from1");var userCheck = $("userCheck");var reg = /^[a-zA-Z][a-zA-Z0-9]{5,15}$/;var pwdyi =$("pwdyi");var pawcheck ...
分类:其他   时间:2014-05-26 01:58:19    收藏:0  评论:0  赞:0  阅读:346
openSource clouds
学习当前较主流的开源云基础设施管理软件(openStack,cloudStack,openNebula,Eucalyptus)及paas/saas/iass于2014/05/241,
分类:其他   时间:2014-05-26 01:59:01    收藏:0  评论:0  赞:0  阅读:391
翻页加输入框
发表回复: BasePath = $oBasePath ; $oFCKeditor->Height = "500px"; // $oFCKeditor->ToolbarSet = "Basic"; ...
分类:其他   时间:2014-05-26 01:59:37    收藏:0  评论:0  赞:0  阅读:311
使用getopt函数对命令行短形参进行处理
今天,在看man 9 style时见到了用来处理命令行短形参getopt函数,很是诧异 —— 要知道,我处理命令行参数都是用手动的!于是我如获至宝,赶紧学习学习。getopt的原型被放在unistd.h中,它的原型是这样的:int getopt(int argc, char * const argv...
分类:其他   时间:2014-05-26 02:01:38    收藏:0  评论:0  赞:0  阅读:322
SurfaceView部分译
SurfaceView一、简述TheSurfaceViewis a special subclass of View that offers a dedicated drawing surface within the View hierarchy. The aim is to offer this...
分类:其他   时间:2014-05-26 02:02:00    收藏:0  评论:0  赞:0  阅读:473
CreateFont具体解释
CFont * f; f = new CFont; f->CreateFont(10, // nHeight 0, // nWidth 0, // nEscapement 0, // nOrientation FW_BOLD, // nWeight FALSE, // bItalic ...
分类:其他   时间:2014-05-26 02:02:28    收藏:0  评论:0  赞:0  阅读:409
线段交点模版
http://acm.hdu.edu.cn/showproblem.php?pid=1086跨立实验算法#include#include#include#includeusing namespace std;struct Point{ double x,y;} ;struct Line{ ...
分类:其他   时间:2014-05-26 02:11:07    收藏:0  评论:0  赞:0  阅读:282
Struts2 token禁止重复提交表单
如果服务器响应慢的情况下,用户会重复提交多个表单,这时候有两种设计思想:1.在客户端使用JS技术,禁止客户重复提交表单。但是这样会使一些不使用浏览器方式登陆的人比如使用底层通信来攻击你的服务器2.在服务器端进行验证Struts2设计了token标签来进行验证,在使用token时要注意,你点击两次之后...
分类:其他   时间:2014-05-26 02:10:37    收藏:0  评论:0  赞:0  阅读:341
activeMQ
ActiveMQ is the most popular and powerful open source Message Bus.ActiveMQ是一个完全支持JMS1.1和J2EE 1.4规范的JMS Provider实现,尽管JMS规范出台已经是很久的事情了,但是JMS在当今的J2EE应用中间...
分类:其他   时间:2014-05-26 02:12:25    收藏:0  评论:0  赞:0  阅读:419
ProjectEuler 005题
题目:2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that...
分类:其他   时间:2014-05-26 02:13:03    收藏:0  评论:0  赞:0  阅读:333
CUDA 并行编程简介
前言 并行就是让计算中相同或不同阶段的各个处理同时进行。目前有很多种实现并行的手段,如多核处理器,分布式系统等。本专题的文章将主要介绍使用 GPU 实现并行的方法。参考本专题文章前请务必搭建好 CUDA 开发平台,搭建方法可以参考上一篇文章。GPU 并行的优缺点 优点: 1. 显存具有更大...
分类:其他   时间:2014-05-26 02:13:45    收藏:0  评论:0  赞:0  阅读:402
定积分求面积
http://acm.hdu.edu.cn/showproblem.php?pid=1071#include#includeint main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--)...
分类:其他   时间:2014-05-26 02:15:03    收藏:0  评论:0  赞:0  阅读:363
ProjectEuler 006题
题目:The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + ...
分类:其他   时间:2014-05-26 02:15:24    收藏:0  评论:0  赞:0  阅读:343
Chrome小窥探
先介绍背景知识,一个网页连接所花的大概时间:没有本地缓存,相对较快的DNS lookup(50ms), TCP握手,SSL协商,以及一个较快服务器响应时间(100ms)和一次延迟(80ms,在美国国内的平均值): 50ms for DNS 80ms for TCP handshake (one RT...
分类:其他   时间:2014-05-26 02:17:05    收藏:0  评论:0  赞:0  阅读:370
ie浏览器的渲染原理
IE下载或者渲染顺序大致如下:IE下载的顺序是从上到下,渲染的顺序也是从上到下,下载和渲染是同时进行的。在渲染到页面的某一部分时,其上面的所有部分都已经下载完成(但并不是说所有相关联的元素都已经下载完。)在下载过程中,如果遇到某一标签是嵌入文件,并且文件是具有语义解释性的(例如:JS脚本,CSS样式...
分类:其他   时间:2014-05-26 02:16:43    收藏:0  评论:0  赞:0  阅读:334
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!