摘要: 现假设有一系列产品我们需要使用软件控制其运作,我们可以通过向设备发送各种指令来达到此要求,首先由于产品种类较多,而且有些产品是纵向升级的,升级之后的产品基本上保持原有功能基础上加了些新功能,基于此要求,我们在设计相应类时,可以使用继承的方法,通信基类使用抽象类不允许直接实例化,仅提供一般串口操作的方法,比如发送指令及关串口等操作(初始化串口及打开串口操作在构造函数中完成),这样有任何产品只要从这个...
阅读全文
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [ <!ELEMENT a (#PCDATA | table)* > ]>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<title>纯CSS下拉菜单,兼容IE和FF</title>
<style type="text/css">
body {color:#fff;}
#wrapper {color:#000;}
.red {color:#c00;}
#info {margin-top:20px;}
#info h1 {font-size:3em; text-align:center; font-family: georgia, "times new roman", serif;}
#head {height:145px; border:0;}
#positioner {clear:both; position:relative; left:1px; z-index:100;}
#ads {position:relative; z-index:10;}
.menu {display:none;}
#noniemenu {position:absolute;}
#noniemenu .holder ul {padding:0; margin:0;}
#noniemenu .holder ul li {list-style-type: none;}
#noniemenu .holder li {}
#noniemenu .holder li ul {display: none;}
#noniemenu .holder li:hover > ul#a3 {display:block; position:absolute; left:105px; margin-top:-20px; border:1px solid #000;}
#noniemenu .holder .bold {font-weight:bold;}
#noniemenu .holder {
color:#fff;
width:104px;
height:18px;
display:block;
overflow:hidden;
float:left;
border:1px solid #000;
margin-right:1px;
font-size:10px;
}
#noniemenu .holder:hover {
height:auto;
}
#noniemenu a.outer, #noniemenu a.outer:visited {
color:#fff;
width:104px;
line-height:18px;
display:block;
background:#e09222;
text-align:center;
text-decoration:none;
font-family: verdana, arial, sans-serif;
}
#noniemenu a.outer:hover {
background:#697210;
overflow:visible;
}
#noniemenu div.open {display:none;}
#noniemenu a.inner, #noniemenu a.inner:visited {
display:block;
width:104px;
height:18px;
line-height:18px;
border-bottom:1px solid #000;
text-decoration:none;
color:#000;
background:#eee;
text-align:center;
}
#noniemenu a.second {font-weight:bold;}
#noniemenu a.inner:hover {
background:#add;
}
</style>
<!--[if lte IE 6]>
<style type="text/css">
body {margin-top:-8px;}
#head {height:147px;}
#noniemenu {display:none;}
.menu {display:block; position:absolute;}
.menu a.outer, .menu a.outer:visited {
color:#fff;
width:104px;
height:18px;
display:block;
background:#e09222;
border:1px solid #000;
margin-right:1px;
text-align:center;
float:left;
text-decoration:none;
font-family: verdana, arial, sans-serif;
font-size:10px;
line-height:18px;
overflow:hidden;
}
.menu a.outer:hover {
background:#697210;
overflow:visible;
}
.menu a.outer:hover table.first {
display:block;
background:#eee;
border-collapse:collapse;
}
.menu a.inner, .menu a.inner:visited {
display:block;
width:102px;
height:18px;
border-bottom:1px solid #000;
text-decoration:none;
color:#000;
font-family: verdana, arial, sans-serif;
font-size:10px;
text-align:center;
}
.menu a.inner:hover {
background:#add;
}
.menu a.outer table.first a.second {
height:18px;
line-height:18px;
overflow:hidden;
font-weight:bold;
}
.menu a.outer table.first a.second:hover {
position:relative;
overflow:visible;
}
.menu a.outer table.first a.second:hover table {
position:absolute;
top:-2px;
left:102px;
border-collapse:collapse;
background:#eee;
border:1px solid #000;
font-weight:normal
}
</style>
<![endif]-->
<!--[if lte IE 6]>
<style>
#ads {display:none;}
#adsie {clear:both; text-align:center; width:750px; margin-top:10px;}
</style>
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="head">
<div id="positioner">
<div class="menu">
<a class="outer" href="../menu/index.html">DEMOS
<table class="first"><tr><td>
<a class="inner" href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a>
<a class="inner" href="../menu/embed.html" title="Wrapping text around images">wrapping text</a>
<a class="inner" href="../menu/form.html" title="Styling forms">styled form</a>
<a class="inner" href="../menu/nodots.html" title="Removing active/focus borders">active focus</a>
<a class="inner second" href="../menu/hover_click.html" title="Hover/click with no active/focus borders">HOVER/CLICK >
<table><tr><td>
<a class="inner" href="../menu/form.html" title="Styling forms">styled form</a>
<a class="inner" href="../menu/nodots.html" title="Removing active/focus borders">active focus</a>
<a class="inner" href="../menu/hover_click.html" title="Hover/click with no active/focus borders">hover/click</a>
</td></tr></table>
</a>
<a class="inner" href="../menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</a>
<a class="inner" href="../menu/old_master.html" title="Image Map for detailed information">image map</a>
<a class="inner" href="../menu/bodies.html" title="fun with background images">fun backgrounds</a>
<a class="inner" href="../menu/fade_scroll.html" title="fade-out scrolling">fade scrolling</a>
<a class="inner" href="../menu/em_images.html" title="em size images compared">em sized images</a>
</td></tr></table>
</a>
<a class="outer" href="index.html">MENUS
<table class="first"><tr><td>
<a class="inner" href="spies.html" title="a coded list of spies">spies menu</a>
<a class="inner" href="vertical.html" title="a horizontal vertical menu">vertical menu</a>
<a class="inner" href="expand.html" title="an enlarging unordered list">enlarging list</a>
<a class="inner" href="enlarge.html" title="an unordered list with link images">link images</a>
<a class="inner" href="cross.html" title="non-rectangular links">non-rectangular</a>
<a class="inner" href="jigsaw.html" title="jigsaw links">jigsaw links</a>
<a class="inner" href="circles.html" title="circular links">circular links</a>
</td></tr></table>
</a>
<a class="outer" href="../layouts/index.html">LAYOUTS
<table class="first"><tr><td>
<a class="inner" href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a>
<a class="inner" href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a>
<a class="inner" href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a>
<a class="inner" href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a>
<a class="inner" href="../layouts/minimum.html" title="A simple minimum width layout">minimum width</a>
</td></tr></table>
</a>
<a class="outer" href="../boxes/index.html">BOXES
<table class="first"><tr><td>
<a class="inner" href="../boxes/scrollbars.html" title="Left scroll bars">left scroll</a>
<a class="inner" href="../boxes/floatfix.html" title="IE6 3px float fix">IE6 3px fix</a>
<a class="inner" href="../boxes/snazzy.html" title="Snazzy borders">snazzy borders</a>
<a class="inner" href="../boxes/krazy.html" title="Krazy Korners">krazy korners</a>
<a class="inner" href="../boxes/outside.html" title="Percentage PLUS pixels">% PLUS pixels</a>
<a class="inner" href="../boxes/minwidth.html" title="min-width for IE">IE min-width</a>
<a class="inner" href="../boxes/minheight.html" title="min-height for IE">IE min-height</a>
</td></tr></table>
</a>
<a class="outer" href="../mozilla/index.html">MOZILLA
<table class="first"><tr><td>
<a class="inner" href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</a>
<a class="inner" href="../mozilla/cascade.html" title="A cascading menu">cascading menu</a>
<a class="inner" href="../mozilla/content.html" title="Using contentquot;>contentlt;/a>
<a class="inner" href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</a>
<a class="inner" href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</a>
<a class="inner" href="../mozilla/snooker.html" title="Snooker cue">snooker cue</a>
<a class="inner" href="../mozilla/target.html" title="Target Practise">target practise</a>
<a class="inner" href="../mozilla/splittext.html" title="Two tone headings">two tone headings</a>
<a class="inner" href="../mozilla/shadow_text.html" title="Shadow text">shadow text</a>
</td></tr></table>
</a>
<a class="outer" href="../ie/index.html">EXPLORER
<table class="first"><tr><td>
<a class="inner" href="../ie/exampleone.html" title="Example one">example one</a>
<a class="inner" href="../ie/weft.html" title="Weft fonts">weft fonts</a>
<a class="inner" href="../ie/exampletwo.html" title="Vertical align">vertical align</a>
</td></tr></table>
</a>
<a class="outer" href="../opacty/index.html">OPACITY
<table class="first"><tr><td>
<a class="inner" href="../opacty/colours.html" title="colour wheel">opaque colours</a>
<a class="inner" href="../opacty/picturemenu.html" title="a menu using opacity">opaque menu</a>
<a class="inner" href="../opacty/png.html" title="partial opacity">partial opacity</a>
<a class="inner" href="../opacty/png2.html" title="partial opacity II">partial opacity II</a>
</td></tr></table>
</a>
</div>
<div id="noniemenu">
<div class="holder">
<ul>
<li><a class="outer" href="../menu/index.html">DEMOS</a></li>
<li><a class="inner" href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li>
<li><a class="inner" href="../menu/embed.html" title="Wrapping text around images">wrapping text</a></li>
<li><a class="inner" href="../menu/form.html" title="Styling forms">styled form</a></li>
<li><a class="inner" href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></li>
<li><a class="inner second" href="../menu/hover_click.html" title="Hover/click with no active/focus borders">HOVER/CLICK ></a>
<ul id="a3">
<li><a class="inner" href="../menu/form.html" title="Styling forms">styled form</a></li>
<li><a class="inner" href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></li>
<li><a class="inner" href="../menu/hover_click.html" title="Hover/click with no active/focus borders">hover/click</a></li>
</ul>
</li>
<li><a class="inner" href="../menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</a></li>
<li><a class="inner" href="../menu/old_master.html" title="Image Map for detailed information">image map</a></li>
<li><a class="inner" href="../menu/bodies.html" title="fun with background images">fun backgrounds</a></li>
<li><a class="inner" href="../menu/fade_scroll.html" title="fade-out scrolling">fade scrolling</a></li>
<li><a class="inner" href="../menu/em_images.html" title="em size images compared">em sized images</a></li>
</ul>
</div>
<div class="holder">
<ul>
<li><a class="outer" href="index.html">MENUS</a></li>
<li><a class="inner" href="spies.html" title="a coded list of spies">spies menu</a></li>
<li><a class="inner" href="vertical.html" title="a horizontal vertical menu">vertical menu</a></li>
<li><a class="inner" href="expand.html" title="an enlarging unordered list">enlarging list</a></li>
<li><a class="inner" href="enlarge.html" title="an unordered list with link images">link images</a></li>
<li><a class="inner" href="cross.html" title="non-rectangular links">non-rectangular</a></li>
<li><a class="inner" href="jigsaw.html" title="jigsaw links">jigsaw links</a></li>
<li><a class="inner" href="circles.html" title="circular links">circular links</a></li>
</ul>
</div>
<div class="holder">
<ul>
<li><a class="outer" href="../layouts/index.html">LAYOUTS</a></li>
<li><a class="inner" href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></li>
<li><a class="inner" href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a></li>
<li><a class="inner" href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a></li>
<li><a class="inner" href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a></li>
<li><a class="inner" href="../layouts/minimum.html" title="A simple minimum width layout">minimum width</a></li>
</ul>
</div>
<div class="holder">
<ul>
<li><a class="outer" href="../boxes/index.html">BOXES</a></li>
<li><a class="inner" href="../boxes/scrollbars.html" title="Left scroll bars">left scroll</a></li>
<li><a class="inner" href="../boxes/floatfix.html" title="IE6 3px float fix">IE6 3px fix</a></li>
<li><a class="inner" href="../boxes/snazzy.html" title="Snazzy borders">snazzy borders</a></li>
<li><a class="inner" href="../boxes/krazy.html" title="Krazy Korners">krazy korners</a></li>
<li><a class="inner" href="../boxes/outside.html" title="Percentage PLUS pixels">% PLUS pixels</a></li>
<li><a class="inner" href="../boxes/minwidth.html" title="min-width for IE">IE min-width</a></li>
<li><a class="inner" href="../boxes/minheight.html" title="min-height for IE">IE min-height</a></li>
</ul>
</div>
<div class="holder">
<ul>
<li><a class="outer" href="../mozilla/index.html">MOZILLA</a></li>
<li><a class="inner" href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</a></li>
<li><a class="inner" href="../mozilla/cascade.html" title="A cascading menu">cascading menu</a></li>
<li><a class="inner" href="../mozilla/content.html" title="Using contentquot;>contentlt;/a></li>
<li><a class="inner" href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</a></li>
<li><a class="inner" href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</a></li>
<li><a class="inner" href="../mozilla/snooker.html" title="Snooker cue">snooker cue</a></li>
<li><a class="inner" href="../mozilla/target.html" title="Target Practise">target practise</a></li>
<li><a class="inner" href="../mozilla/splittext.html" title="Two tone headings">two tone headings</a></li>
<li><a class="inner" href="../mozilla/shadow_text.html" title="Shadow text">shadow text</a></li>
</ul>
</div>
<div class="holder">
<ul>
<li><a class="outer" href="../ie/index.html">EXPLORER</a></li>
<li><a class="inner" href="../ie/exampleone.html" title="Example one">example one</a></li>
<li><a class="inner" href="../ie/weft.html" title="Weft fonts">weft fonts</a></li>
<li><a class="inner" href="../ie/exampletwo.html" title="Vertical align">vertical align</a></li>
</ul>
</div>
<div class="holder">
<ul>
<li><a class="outer" href="../opacty/index.html">OPACITY</a></li>
<li><a class="inner" href="../opacty/colours.html" title="colour wheel">opaque colours</a></li>
<li><a class="inner" href="../opacty/picturemenu.html" title="a menu using opacity">opaque menu</a></li>
<li><a class="inner" href="../opacty/png.html" title="partial opacity">partial opacity</a></li>
<li><a class="inner" href="../opacty/png2.html" title="partial opacity II">partial opacity II</a></li>
</ul>
</div>
</div>
</div>
</div> <!-- end of head -->
<div id="info">
<h2>DROP DOWN FUN</h2>
<h1>NO JAVASCRIPT</h1>
<h1>JUST CSS!!!</h1>
<h1 class="red">NOW WITH CASCADE</h1>
</div>
</div>
</body>
</html>
摘要: usingSystem;usingSystem.IO.Ports;usingSystem.Threading;namespaceTripodDemo{publicclassSerialTripo:IDisposable{privateobjectobjComm=newobject();privateSerialPortcom;privatebooldisposed=false;SerialPort...
阅读全文
在安装VS2008/2005(我机器上安装的VS2008)时会默认把SQL SERVER Express 2005安装上,默认安装时并没有打开远程连接及SA用户登陆功能
1.无法使用SA用户登陆解决方案
解决方法如下,打Microsoft Sql Server Management Studio Express,以windows验证方式登陆,打开服务器属性窗口(在数据库服务器图标上点右键选"属性"),选择"安全性"选项,界面如下所示

服务器验证方式选择SQL SERVERTT和windows验证方式,确认
然后再到"安全性-登陆名"处设置SA用户属性,界面如下

设置密码

启用SA用户
2.无法在其他机器连接SQL 2005 EXPRESS解决方案
在SQL SERVER菜单组中找到SQL Server Surface Area Configuration程序
点击"Surface Area Configuration For Service And Connection",启用"local and remote connections"
重启SQL服务
3.无法新建登陆用户,错误如下所示

还不知怎么处理,敬请高手解答
With this simple change in place, you can now change your TextFormatter templates to support local times. For example, I created a template that shows several timezones in different formats:
Timestamp: {timestamp}
Timestamp local: {timestamp(local)}
Timestamp F: {timestamp(F)}
Timestamp local:F {timestamp(local:F)}
Once the Logging Application Block does its magic over my log message, I get a nicely formatted text message that looks like this:
Timestamp: 1/23/2006 2:24:18 AM
Timestamp local: 1/22/2006 6:24:18 PM
Timestamp F: Monday, January 23, 2006 2:24:18 AM
Timestamp local:F Sunday, January 22, 2006 6:24:18 PM
Looks pretty useful to me. Again, sorry that we couldn't make it work that way after a fresh install, but don't be afraid to crack open the source code to make these kinds of changes - after all, that's the reason we give it to you!
http://blogs.msdn.com/tomholl/archive/2006/01/22/516055.aspx
微软提供免费网盘,可作外链,可用迅雷。很好的存储地方。拥有1G的空间,单个文件限制大小为50MB,支持外链(需要传到Public folders里面),支持迅雷下载。经过我本人测试,下载速度还是蛮快的,能达到180k每秒..不过跟其他国内的网盘对比起来,微软这个还是很不错的,国内像live-share、mofile之类的,速度又慢、又不支持外链、还不能用下载工具下载,而且微软这个应该是很稳定的,不会轻易倒闭吧。所以如果你经常想跟别人分享文件,或者需要较大的空间来存放文件,那就赶快注册一个来用吧
所以如果你经常想跟别人分享文件,或者需要较大的空间来存放文件,那就赶快注册一个来用吧。
注册方法:
现在只要进入Live Skydrive 主页(http://skydrive.live.com/),用自己hotmail、MSN 或Live 帐号登录之后,就可以看到系统的注册提示了,接受协议之后立马即可开通Windows Live Skydrive 服务。无需对账户信息做任何设置。
某些人可能会看到:“你所在的地区不能使用此服务”的提示,此时只要输入如下网址:http://skydrive.live.com/home.aspx?mkt=en-us就可以开通服务了,然后退出,重新登陆就是简体中文界面的了。。
没有live帐号的话,在登陆的页面左边有注册的选项,使用你平时的email地址就可以注册一个live帐号,之后就可以登陆并使用Windows Live Folders了。进去之后分三栏,Personal folders、Shared folders和Public folders,只有传到最右边Public folders里的文件才能外链,如果你是想分享文件,就传这里面。Personal folders可以放一些你自己的东西,而Shared folders可以只和朋友分享文件,你可以酌情选择使用。
上传完文件之后它会显示出来,直接点击之后,右边有Download、Send a link、Rename和Delete四个选项。可以用下载工具(如迅雷)直接点Download来下载文件,想给别人分享的话,外链的地址也是 Download右键属性即可获得,文件名后面的?download可以去掉,不影响下载。
摘要: 项目中经常需要使用到对软件发生错误的日志记录,关于此,很多公司及组织已经做了很多工作,比如可以使用Microsoft提供的Microsoft Enterprise Library January 2006(最新版为2007APril,但是个人现在习惯于使用2006版,版 本为2.0)中的日志记录模块或是开源项目NLOG等,这些东东一般来说功能都比较强大,但是上手可能并不是那么容易,其实一般来说我们...
阅读全文
微软2007年5月份正式发布了其IE Developer Toolbar最终正式版,支持IE6/7。微软开发者工具条可以让开发人员更为方便的分析网页结构,调整包括CSS在内的各种特定元素,帮助开发者更好地创建Web应用。
微软此次发布的1.0版相较Beta 3测试版并无新鲜元素加入,按照微软的说法,1.0版本主要改善了可靠性更适合作为一个正式版本来发布。
IEDeveloperToolbar特性如下:
-浏览和修改Web页的文档对象模型(DOM)。
-通过多种技术方式定位、选定Web页上的特定元素。
-禁止或激活IE设置。
-查看HTML对象的类名、ID,以及类似链接路径、tab顺序、快捷键等细节。
-描绘表格、单元格、图片或选定标签的轮廓。
-显示图片象素、大小、路径、替代文字等。
-即时重定义浏览器窗口大小到800x600或自定义大小。
-清空浏览器缓存和cookie,被清除项可从所有对象或给定域中选择。
-直接访问关联W3C规范参考、IE开发组blog或其他来源。
-显示设计时标尺,帮助对齐对象。
安装之后,在IE工具栏上有一个箭头一样的图标,当浏览网页时,可以使用它来分析网页的页面结构
官方网站地址:
http://www.microsoft.com/downloads/details.aspx?FamilyId=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
程序使用VS2008开发,框架使用.Net 2.0,是在别人的Blog的基础上修改而来的,主要原因在使用原BLOG程序时发布网站后无法使用,后来自已在其原来的基础上换了编缉器为FckEditor,先上几张图
源码:
/Files/chenzz/cs_blog.zip (老版)
/Files/chenzz/cs_blogV1.0.1215.0.zip (12.15号修改)去除了对程序集System.Web.Extensions的引用,因为使用些程序集需要安装微软的相应安装包
所以在此去除,以方便一般环境的正常使用(主要修改文件有Web.config,MasterPage.master,bob5_admin/execsql.aspx)