摘要: selecta.namecolumnname,c.nameastypename,casewhena.is_nullable=0then'NotNull'else'Null'endasnullable,a.*fromsys.columnsa,sys.objectsb,sys.typescwherea.... 阅读全文
posted @ 2014-05-30 14:28 erictanghu 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/tjvictor/article/details/4360030在SQL Server 中插入一条数据使用Insert语句,但是如果想要批量插入一堆数据的话,循环使用Insert不仅效率低,而且会导致SQL一系统性能问题。下面介绍SQL Server支... 阅读全文
posted @ 2014-05-30 14:23 erictanghu 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/dflying/archive/2006/04/17/377276.html本文翻译整理自Carlos Aguilar Mares的blog文章:Microsoft.Web.Administration in IIS 7。请注意本文的内容均基于Wi... 阅读全文
posted @ 2014-05-30 14:19 erictanghu 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/Aiooioo/archive/2011/05/30/cs-iis.html在.Net中我们可以使用内置的类DirectoryEntry来承载IIS服务器中的任何网站,虚拟路径或应用程序池对象,例如:DirectoryEntry ent = new... 阅读全文
posted @ 2014-05-30 14:18 erictanghu 阅读(823) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.knowsky.com/534237.htmlMicrosoft自WindowsVista一起发布了IIS 7.0,这个已经是去年的话题了,随后,由.NET开发的Web程序便逐步从IIS 6.0过渡到IIS 7.0上了。IIS 7.0提供了很多比上一版本更多的新特性,包括... 阅读全文
posted @ 2014-05-30 14:17 erictanghu 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.sina.com.cn/s/blog_6a1837e901011167.htmlexeclp(从PATH 环境变量中查找文件并执行) 相关函数: fork,execl,execle,execv,execve,execvp 表头文件: #include ... 阅读全文
posted @ 2014-05-30 14:14 erictanghu 阅读(2964) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/hnrainll/archive/2011/07/23/2114854.html1、简介在Linux中,并不存在exec()函数,exec指的是一组函数,一共有6个,分别是:#include extern char **environ;int ex... 阅读全文
posted @ 2014-05-30 14:13 erictanghu 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/worfdream/articles/1956449.htmlJSON(JavaScript Object Notation) 是一种轻量级的数据交换格式,采用完全独立于语言的文本格式,是理想的数据交换格式。同时,JSON是 JavaScript ... 阅读全文
posted @ 2014-05-30 14:11 erictanghu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: C#端的WebService接口接收json格式数据,处理后以json格式返回resultusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Service... 阅读全文
posted @ 2014-05-30 14:09 erictanghu 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/milkmap/archive/2011/08/23/2150641.html摘要: “我有一堆标注,不规则的散落在地图的各个地方,我想把它们展示在一个最佳视野中,怎么办呢?”一位API爱好者咨询道。-----------------------... 阅读全文
posted @ 2014-05-30 14:02 erictanghu 阅读(281) 评论(0) 推荐(0) 编辑
摘要: http://api.map.baidu.com/lbsapi/getpoint/index.html可以很方便的通过标记取得经纬度坐标也可以输入经纬度坐标获得地图标记 阅读全文
posted @ 2014-05-30 14:00 erictanghu 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 思路是用加密程序 对硬盘号,cpu号和MAC号取出字符串并加密 产生一个序列号每次程序启动后重新产生这个序列号并比对,如果一致则验证通过using System;using System.Collections.Generic;using System.IO;using System.Managem... 阅读全文
posted @ 2014-05-30 13:56 erictanghu 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 要做一个视频无缝切换的程序,所谓无缝就是在一个视频结束时立即开始另一个视频,中间不要有切换的黑屏实现思路是放两个wmp播放控件,其中每个时刻只有一个在播放,另外一个处于暂停状态,并隐藏当一个视频播放完后,切换显示另一个视频,同时这个视频隐藏起来并加载下一段视频,视频加载完成后(wmp会有事件通知)暂... 阅读全文
posted @ 2014-05-30 13:52 erictanghu 阅读(2966) 评论(0) 推荐(0) 编辑
摘要: 1.基础类TransferFiles,client和server都需要using System;using System.Collections.Generic;using System.Text;using System.Net;using System.Net.Sockets;using Sys... 阅读全文
posted @ 2014-05-30 13:44 erictanghu 阅读(11008) 评论(2) 推荐(3) 编辑
摘要: 1.http://docs.seleniumhq.org/ 下载seleium包2.新建一个C#项目,比如控制台,引用seleium包中的dllusing System;using System.Collections.Generic;using System.Text;using OpenQA.S... 阅读全文
posted @ 2014-05-30 13:39 erictanghu 阅读(652) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le... 阅读全文
posted @ 2014-05-30 01:22 erictanghu 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for singly-linked list. ... 阅读全文
posted @ 2014-05-30 01:22 erictanghu 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth... 阅读全文
posted @ 2014-05-30 01:22 erictanghu 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for binary tree * struct TreeNode { ... 阅读全文
posted @ 2014-05-30 01:22 erictanghu 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree./** * Definitio... 阅读全文
posted @ 2014-05-30 01:22 erictanghu 阅读(121) 评论(0) 推荐(0) 编辑