摘要: ERROR::dwc_otg_hcd_urb_enqueue:515: Not connectedRunning/etc/init.d/networkingrestartisdeprecatedbecauseitmaynotenableagainsomeinterfacesFailed to bring up wlan0.Running /etc/init.d/networking restart is deprecated because it may not re-enable以上提示,是因为电源电压不足导致 阅读全文
posted @ 2014-02-22 19:59 shzy2012 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 使用场景: 比如将 C:\Test\ 目录下的所有 txt文件内容 导入到 Table_1 中/***** Step 1 开启 xp_cmdshell Use MasterGOEXEC master.dbo.sp_configure 'show advanced options', 1RECONFIGURE WITH OVERRIDEGOEXEC master.dbo.sp_configure 'xp_cmdshell', 1RECONFIGURE WITH OVERRIDEGO*******/ --定义临时表,用于存放获取的文件名称CREATE TABLE # 阅读全文
posted @ 2014-02-19 17:19 shzy2012 阅读(7916) 评论(0) 推荐(0) 编辑
摘要: Step 1: Install BarTender 10.1Step 2: Choose a version --- Enterprise AutomationStep3: Start a new BarTenderStep4: Choose blank templateStep5: Choose printer 阅读全文
posted @ 2014-02-12 10:06 shzy2012 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 反射 提供了对程序集,模块和类型的对象,可以使用反射动态创建类型的实例,或从现有的对象提供获取类型并调用其方法或访问其字段和属性。如果代码中使用了属性,可以利用反射对他们进行访问。反射的性能损失主要来源于比较类型,遍历成员,调用成员三种情形,其中比较类型耗时最小,调用成员耗时最多,所以尽量减少采用成员动态调用等反射方式可以提高应用程序性能。除此之外,采取后期绑定,避免将反射方法放到循环内产生放大效应等办法均可以提升反射性能using Loger;using System;using System.Data;using System.Reflection;namespace Module1{ . 阅读全文
posted @ 2014-02-11 14:31 shzy2012 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1: 安装:OpenCV-2.2.0-win32-vs2010.exe ---C:\OpenCV2.2python-2.7.5.msi --C:\Python27matplotlib-1.3.0.win32-py2.7.exe2: 执行将 C:\OpenCV2.2\Python2.7\Lib\site-packages 下的 cv.lib和cv.pyd 复制到C:\Python27\Lib\site-packages 下面或者在代码中添加import syssys.path.append("C:\OpenCV2.2\Python2.7\Lib\site-packages") 阅读全文
posted @ 2014-01-14 11:42 shzy2012 阅读(280) 评论(0) 推荐(0) 编辑
摘要: localpath : c:\windows\Microsoft.NET\Framework\%FrameworkInstallLocation%\Temporary ASP.NET Files.修改 ... 阅读全文
posted @ 2013-12-25 13:22 shzy2012 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 方法一.直接打开WIN7 Activation点击"点击验证"(推荐); 方法二.在"运行"里输入 slmgr.vbs -dli 并回车; 方法二.在"运行"里输入 slmgr.vbs -xpr 并回车; 方法二.在"运行"里输入 winver 并回车; 方法四.在"运行"里输入 slmgr.vbs -dlv 并回车; 方法五.右键我的电脑属性 查看是否处于激活状态. 阅读全文
posted @ 2013-12-12 22:49 shzy2012 阅读(792) 评论(0) 推荐(0) 编辑
摘要: LEDs, buzzers and switches are the most common items people attempt to interface to their Raspberry Pi’s. Something I found in eBay that is a little bit different is an ultrasonic measurement module. This allows you to measure the distance to the nearest wall or solid object. The modules are easy to 阅读全文
posted @ 2013-12-12 22:21 shzy2012 阅读(294) 评论(0) 推荐(0) 编辑
摘要: vidio : http://www.asp.net/visual-studio/overview/2013/visual-studio-2013-web-editor-features-publishinghttp://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx配置:下载:web deploy http://www.iis.net/downloads/microsoft/web-deploy开启: Web Management Service 在Web project 右键 , Public Web SiteProfil. 阅读全文
posted @ 2013-12-10 13:03 shzy2012 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1: Code#importimport RPi.GPIO as gpioimport timeimport sys# golbal defineled_port_list = [7,8,9,11,25]# define def -----Begindef led_init(): gpio.setmode(gpio.BCM) for port in led_port_list: gpio.setup(port,gpio.OUT,initial=gpio.LOW) def led_start(): while True: if raw_i... 阅读全文
posted @ 2013-11-24 21:45 shzy2012 阅读(206) 评论(0) 推荐(0) 编辑