在逛codeproject网站的时候,突然看到一篇文章:How to write plugin in Jquery.如果对E文好的同学 ,可以看上面的连接。现在我把上面网站的及结合自己的想法写这篇文章。希望能得到大牛们的支持和谅解。。。大鸟飞过。。。欢迎拍装。来源:【1】How to write p...
分类:
Web程序 时间:
2014-07-16 19:29:39
阅读次数:
254
今天老大让我录入一大批数据,我的第一个想法就是用inser来一条条插入,或者用C#代码读取Excel然后再插入到数据库,经过老大的介绍。我才知道,还有用sql脚本导入数据的方法。呵呵,真的是长知识了。其实代码很简单BULK INSERT cartemp FROM 'd:\1.txt'WITH(FIE...
分类:
数据库 时间:
2014-07-16 19:27:57
阅读次数:
478
Response.Write的生成HTML代码,你会发现Response.Write方法生成的代码是写到了HTML代码的最开始,即标签之前。此 时,所有的 HTML对象都还没有生成,如果要想使用HTML内的对象,并与之交互,就会出现“找不到对象”的错误。因此,笔者推荐一个更加符合CodeBehind...
分类:
其他好文 时间:
2014-07-13 20:56:50
阅读次数:
191
上一篇 说了些堆的建立及其相关操作,这里看下用堆来解决数据量较大的时候,查找最小的k个数的情况。这里会用到上一篇中的函数。
我们先生存1千万个随机数,写到文件中:
import random
def randData():
with open('randint.txt', 'w') as fd:
for i in range(1, 10000000):
fd.write('%...
分类:
其他好文 时间:
2014-07-13 18:51:05
阅读次数:
261
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
/**
* Defin...
分类:
其他好文 时间:
2014-07-13 15:50:25
阅读次数:
158
Design an algorithm and write code to find the first common ancestory of two nodes in a binary tree. Avoid storing additional nodes in data structure....
分类:
其他好文 时间:
2014-07-13 13:24:21
阅读次数:
279
添加分片 useadmin //添加分片节点,每个分片都是一个副本集【allowLocal:true仅仅开发时才将分片配置到本地,生产时不能这样】 db.runCommand({addshard:"localhost:9335",allowLocal:true}) db.runCommand({ad...
分类:
数据库 时间:
2014-07-13 00:28:16
阅读次数:
570
iOS的数据存储是iOS应用开发的重要知识点:关于这方面知识,网上有很多介绍,但对于代码层次的使用方式并未有系统全面介绍。此文章针对iOS稍熟悉的童鞋,需要对CoreData的原理有一定的了解。目前存储方式大概有以下几种:NSKeyedArchiver 适用简单数据加密NSUserDefaults 适用配置参数Write 文件操作,同 NSKeyedArchiver SQLite3 操作较...
分类:
移动开发 时间:
2014-07-12 17:38:30
阅读次数:
380
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()...
分类:
其他好文 时间:
2014-07-12 17:37:13
阅读次数:
139
一:mmc的命令如下:
1:对mmc读操作
mmc read addr blk# cnt
2:对mmc写操作
mmc write addr blk# cnt
3:对mmc擦除操作
mmc erase blk# cnt
4:重新搜索mmc设备
mmc rescan
5:列出mmc的分区
mmc part - li...
分类:
移动开发 时间:
2014-07-12 17:36:39
阅读次数:
328