LDO current regulator for power LEDChallengeYou've got a power LED? Great! Build a flash light!What does the spec say? "Voltage: 3.6 .. 3.8 V, power 3...
分类:
其他好文 时间:
2015-09-04 16:55:16
阅读次数:
282
终于是找到原来在webform里面已经提供了htmlcontrol这样的控件,可以直接拿来用。以前一直在想mvc有htmlhelper,webform里面不能用,其实是webform里面已经有了。例子HtmlGenericControl htmlgeneric = new HtmlGenericCo...
分类:
Web程序 时间:
2015-09-04 16:52:20
阅读次数:
150
首先关于地址对齐的概念我不详述了,大家可以参考这篇文章:Avalon总线的地址对齐:Dynamic Addressing和Native Addressing。假设我们定制了一个外设,数据宽度是32位,地址是2位。如果我们想让地址线干点其他的事,而不是传地址,例如:1 if(cs&wr)2 begin...
分类:
其他好文 时间:
2015-09-04 16:52:29
阅读次数:
208
POJ1061青蛙的约会#include #include using namespace std;int gcd(long long m, long long n){ if(n == 0) return m; return gcd(n, m%n);}void Cal(lo...
分类:
其他好文 时间:
2015-09-04 16:53:10
阅读次数:
233
Programmed Adjustable PowerI just explored an easy scheme to design a high precision programmed adjustable power.In this scheme, there is no needs to ...
分类:
其他好文 时间:
2015-09-04 16:54:29
阅读次数:
174
Driving proportional valves from microcontrollerI am looking to drive a current regulated proportional (solenoid) valve that needs up to 85mA @ 24V fr...
分类:
其他好文 时间:
2015-09-04 16:51:51
阅读次数:
220
import java.io.File;import java.lang.reflect.Field;import java.util.Arrays; import javax.script.Invocable;import javax.script.ScriptEngine;import java...
分类:
编程语言 时间:
2015-09-04 16:53:07
阅读次数:
343
今天做了一个这样的项目,需要把Excel的数据导入到数据库,虽然以前也写过,但是忘记了,所以今天找到一个更好的,收集起来。下面是代码:protectedvoidbtnImport_Click(objectsender,EventArgse){if(FileUpload1.HasFile==false...
分类:
数据库 时间:
2015-09-04 16:51:44
阅读次数:
191
hdu4271 Find Black Hand 2012长春网络赛E题 最短编辑距离Find Black HandTime Limit : 5000/2000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission...
分类:
其他好文 时间:
2015-09-04 16:52:52
阅读次数:
158
package com.wyc.cn;/*** 单例设计模式* @author buyi* @date 2015-09-03* **/class SingLeton { private static SingLeton singLeton ; private SingLeton() { } p...
分类:
其他好文 时间:
2015-09-04 16:52:25
阅读次数:
152
http://openaphid.github.io/blog/2013/01/17/part-i-how-to-choose-a-javascript-engine-for-ios-and-android-apps/http://openaphid.github.io/blog/2013/01/1...
分类:
编程语言 时间:
2015-09-04 16:50:26
阅读次数:
152
postion 属性定义了一个元素在页面布局中的位置以及对周围元素的影响。该属性共有5个值:1. position: static2. position: inherit3. position: relative4. position: absolute5. position: fixed依次讲解这...
分类:
Web程序 时间:
2015-09-04 16:51:43
阅读次数:
155
续: 第1章 WCF基础(1)元数据交换服务有两种方案可以发布自己的元数据。一种是基于HTTP-GET协议提供元数据, 另一种则是后面将要讨论的使用专门的终结点的方式。WCF能够为服务自动提供基于HTTPGET的元数据,但需要显式地添加服务行为( Behavior)以支持这一功能。本书后面的章节会介...
分类:
其他好文 时间:
2015-09-04 16:52:50
阅读次数:
244
题目:两个含有n个元素的有序(非降序)整形数组a和b(数组a和b中都没有重复元素),求出其共同元素a = [0,1,2,3,4]b = [1,3,5,7,9]那么交集为{1,3}解法1:很简单,依次遍历vector commonValue1(vectora, vector b){ vector...
分类:
编程语言 时间:
2015-09-04 16:52:44
阅读次数:
259
前面我们所举的例子中都是单文档界面框架,也就是说这个窗口里面的客户区就是一个文档界面,可以编写程序在里面输入或者绘制文本和图形输出,但是不能有出现多个文档的情况。比如下面的UltraEdit就是一个典型的多...
参考:http://stackoverflow.com/questions/15349733/setimmediate-vs-nexttick setImmediate 在已在事件队列的I/O事件触发之后发生,process.nextTick在事件队列之前,并且在当前函数结束之后发生。 因此,如果你...
分类:
其他好文 时间:
2015-09-04 15:49:39
阅读次数:
130
阿里云传送门 优惠码: EI81X1 使用规则 适用订单:首次购买云服务器ECS、云数据库RDS、负载均衡SLB、开放存储服务OSS、内容分发网络CDN、开放缓存服务OCS 优惠折扣:享受原价9折优惠。 有效期: 至2015年12月。 ...
分类:
数据库 时间:
2015-09-04 15:49:47
阅读次数:
167