自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(64)
  • 收藏
  • 关注

转载 Delete all tables on sqlserver

/* Drop all non-system stored procs */DECLARE @name VARCHAR(128)DECLARE @SQL VARCHAR(254)SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY...

2014-07-25 15:41:00 305

转载 PostSharp 应用小结

PostSharp 使用IL静态注入实现AOP,下面例子对登录操作进行静态注入,使用Web application ,记录每次登录PostSharp的使用方法很简单,将自定义的属性LoggerTrace直接加在需要注册的方法上就可以(事件是特殊的方法)using System;using System.Collections.Generic;using Syst...

2014-07-10 16:36:00 390

转载 HttpPostedFile 获取当前页面提交的文件

Asp.net WebForm 获取当前页面提交的所有文件的方法Context.Request.Files Context.Request.Files.GetMultiple(Context.Request.Files.Keys[0]); 获取文件属性和保存文件for (int i = 0; i < Context.Request.Files...

2014-04-23 18:06:00 406

转载 Click Button to Export Excel Asp.net C#

public void ExportExcel(string excelLocation) { try { Byte[] fileBytes = File.ReadAllBytes(excelLocation); Response.Clear(); Re...

2014-04-03 10:37:00 112

转载 Refresh Excel (asp.net,C#)

#region NameSpaceusing System;using System.Linq;using System.Collections.Generic;using System.Web.UI.WebControls;using System.Transactions;using VAU.Dao;using VAU.Dto;using VAU....

2014-04-02 16:20:00 126

转载 ExcelHelper

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.IO; //Fileusing System.Diagnostics;//Process...

2014-04-02 15:37:00 90

转载 推送技术 --SignalR

推送技术,又名反向AJAX,指的是一种基于Internet,将由中心或发布者发出消息传输给用户的技术。与之相对的是拉取(参见AJAX),这种情况下请求是由用户或客户端主动发起的。推送技术常常用于消息的订阅,电子邮件同样可以是一个推送系统HTTP 服务器推送HTTP 服务器推送(又称HTTP流)是一种由Web服务器向浏览器传输数据的机制。这种机制可以通过多种方法实现...

2014-03-28 14:06:00 86

转载 软件解耦

软件解耦做事情要想事半功倍,就要高处着眼,触摸到事情的脉络。当今流行着各种眼花缭乱的软件框架,不管是struts,还是spring,hibernate,还是.net,还是各种前端UI框架,其设计的核心思想是:1、尽可能减少代码耦合,如果发现代码耦合,就要采取解耦技术;2、各种解耦技术的核心是:(a)使用外部的配置文件,将各种框架内部的组件进行文本型的配置;(b)用户通...

2014-03-28 10:24:00 283

转载 xrBarCode 条形码的密度设置

xrBarCode 是devexpress (asp.net) 一个用于打印条形码的空间,默认的xrBarCode属性 Module=2 如果要是条形码的线变得细一些,需要将属性AutoModule 设置为FalseAutoModule=False然后才能设置 ModuleMudule=1  具体查看:https...

2014-03-21 14:16:00 1119

转载 Javascript 中方法的重写

在Javascript 中,如果要重新按钮的原有绑定的事件,可以经现有的事件的方法名称与原来名称相同,既可以重新旧的方法。比如<input type="image"onclick="javascript: if(!ValidnControl()){ return false; };" ---------原有的 旧事件上绑定的方法src="../../Img/s...

2014-03-03 17:10:00 331

转载 raspberryPI 电源不足引起usb wifi模块 出现的问题

ERROR::dwc_otg_hcd_urb_enqueue:515: Not connectedRunning/etc/init.d/networkingrestartisdeprecatedbecauseitmaynotenableagainsomeinterfacesFailed to bring up wlan0.Running /...

2014-02-22 19:59:00 308

转载 SQLServer将文件下所有的txt内容导入到数据库表

使用场景: 比如将 C:\Test\ 目录下的所有 txt文件内容 导入到 Table_1 中/***** Step 1 开启 xp_cmdshell Use MasterGOEXEC master.dbo.sp_configure 'show advanced options', 1RECONFIGURE WITH OVERRIDEGOEXEC ...

2014-02-19 17:19:00 389

转载 BarTender 打印条形码

Step 1: Install BarTender 10.1Step 2: Choose a version --- Enterprise AutomationStep3: Start a new BarTenderStep4: Choose blank templateStep5: Choose printer...

2014-02-12 10:06:00 148

转载 C# 反射

反射 提供了对程序集,模块和类型的对象,可以使用反射动态创建类型的实例,或从现有的对象提供获取类型并调用其方法或访问其字段和属性。如果代码中使用了属性,可以利用反射对他们进行访问。反射的性能损失主要来源于比较类型,遍历成员,调用成员三种情形,其中比较类型耗时最小,调用成员耗时最多,所以尽量减少采用成员动态调用等反射方式可以提高应用程序性能。除此之外,采取后期绑定,避免将反射方法放到循...

2014-02-11 14:31:00 89

转载 windows7 配置opencv for python开发环境

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...

2014-01-14 11:42:00 67

转载 修改visual studio Temporary ASP.NET Files.

localpath : c:\windows\Microsoft.NET\Framework\%FrameworkInstallLocation%\Temporary ASP.NET Files.修改<system.web> <compilation tempDirectory="d:\TempASP.NETFiles\">...

2013-12-25 13:22:00 129

转载 RPI 超声波模块,

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 ...

2013-12-12 22:21:00 690

转载 Visual Studio 2013 Web Editor Features - Publishing

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  h...

2013-12-10 13:03:00 78

转载 RPI operate 7,8,9,11,25 pins

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...

2013-11-24 21:45:00 65

转载 Configure Git in debian

Configure Git for Get or Update github project1: install Gitwajig install git2:Configure gitgit --version 查看git版本git config --global 本用户的配置全局git config --system 配置系统的...

2013-11-24 13:32:00 67

转载 sqlserver query time

back Data time10000 0.00 100000 0.03 1000000 0.34 10000000 5.50 20000000 >11.427G---2000 0000 line data转载于:https://www.cnblogs.com/2zhyi/p/...

2013-11-19 17:42:00 86

转载 RPi Text to Speech (Speech Synthesis)

Why use Text to Speech?It’s very easy add to your program - just output a string to the speech function instead of the screen. You don’t need an expensive/complicated LCD or monitor for your pr...

2013-11-17 22:16:00 289

转载 SQL Joins with C# LINQ

There are Different Types of SQL Joins which are used to query data from more than one tables. In this article, I would like to share how joins work in LINQ. LINQ has a JOIN query operator that p...

2013-11-15 10:09:00 143

转载 search or reseed identity columns in sqlserver 2008

//SeachDBCC CHECKIDENT ('AD_EmailType') --AD_EmailType : table name//ChangeDBCC CHECKIDENT('AD_EmailType', RESEED,4) 转载于:https://www.cnblogs.com/2zhyi/p/3423257.html

2013-11-14 14:29:00 71

转载 安装 python RPI.GPIO

$sudo apt-get update$sudo apt-get install python-dev$sudo apt-get install python-rpi.gpio安装:rpio- 监控和操作 GPIO 的命令行工具rpio-curses- 终端窗口中拥有图形用户界面的 rpio$ sudo apt-get install ...

2013-11-10 09:05:00 2456

转载 ASP.NET WebForm 回传机制

为什么每个WebForm.aspx都必须包含在form之中<form id="form1" runat="server"> //html</form>在asp.net WebForm中,点击一个提交按钮提交数据采用的post方式, 这种方式会将<form></form>中所有包含name属性的元素提交到服...

2013-11-07 10:01:00 3156

转载 金蝶K3-“你没有权限查看、使用该资料”

解决方法: 选中供应商---属性---状态--》Use转载于:https://www.cnblogs.com/2zhyi/p/3406262.html

2013-11-04 13:18:00 2046

转载 Serial port programming

This is a step-by-step guide to using the serial port from a program running under Linux; it was written for theRaspberry Pi serial portwith theRaspbianWheezydistribution. However, the same c...

2013-11-03 19:53:00 241

转载 Python Packaging

sudo apt-get install python-dev转载于:https://www.cnblogs.com/2zhyi/p/3404988.html

2013-11-03 15:39:00 132

转载 RPI config tightVNCServer

Log in to your Pi and install the Tight VNC Package$ sudo apt-get install tightvncserverNext Run TightVNC Server which will prompt you to enter a Password and an optional View Only Pas...

2013-11-03 14:47:00 95

转载 树莓派:Uncompressing Linux...done, booting the kernel

如果引起Uncompressing Linux...done, booting the kernel 是因为修改 /boot/cmdline.txt我的是因为修改cmdline.txt引起的dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcbl...

2013-11-03 10:33:00 193

转载 wajig

wajig是一个简单的软件包管理前端,和apt-get类似,但功能更多,它把apt-get、dpkg等Debian系统下的软件包管理工具都集成在一起,只用一个wajig命令就能完成各种复杂的管理工作。wajig是要额外安装的软件,同时需要python支持。base系统自带的软件包管理工具还是apt-get。用apt-get install wajig即可安装wajig。它还有一个Gn...

2013-11-03 09:40:00 79

转载 RPI pySerial 安装

环境:通过ssh连接RPI(debian)来显示操作RPI1:下载安装pySerial (需要连网)easy_install pyserial安装之后就可以检验是否可以导入serialsudo python import serialpi@raspberrypi:~$ sudo pythonPython 2.7.3 (defaul...

2013-11-02 15:04:00 286

转载 asp.net中使用 UpdatePanel 回传导致js 失效解决办法

<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <input src="../../../images/ico/ico_delete.gif" onload="reBindDatepicker()" style="display: none" id...

2013-10-14 17:48:00 145

转载 当天时间查询例子

     查询当前时间,在后台的处理程序是在:当天时间上加一天作为结束的查询时间,例如 2012-07-01:00:00 到 2012-07-02:00:00 ,stockOutTo.Value.AddDays(1)     //Stock-in-from var stockOutFrom = GetFormatDate(this.txtSearchStockOut...

2013-10-10 10:36:00 68

转载 RaspberryPI 常用命令

1: debian系统如何查看服务开启状态service --status-all~ $ which service/usr/sbin/service~ $ /usr/sbin/service --status-all2:查看已安装包dpkg -ldpkg -s package_name 3:用 lsusb 命令查看USB设备列表lsusb4:...

2013-10-02 16:22:00 249

转载 RaspberryPI 使用 USB摄像头上传图片

器材:USB 摄像头300万像素 USB 摄像头 树莓派亲测可用 免驱动(168块钱 http://item.taobao.com/item.htm?spm=a1z02.1.5864393.d4908585.MOVO92&id=20650207132)1:刚装好的系统,首先更新系统sudo apt-get update2: 安装vim编辑器(nano...

2013-10-02 14:59:00 140

转载 RaspberryPI 配置无线上网

器材:USB无线网卡EDUP USB无线网卡 树莓派 PCduino 免驱动 EP-N8508GS(36块钱,http://item.taobao.com/item.htm?spm=a1z02.1.5864393.d4908585.bmFeMv&id=22921464431)1:编辑 /etc/network/interfacessudo nano /etc...

2013-10-02 14:41:00 64

转载 RaspberryPI 串口模块 USB转TTL模块 PL2303

器材:USB转TTL模块 (淘宝一般10钱左右,http://detail.tmall.com/item.htm?spm=a230r.1.14.26.EcPcYQ&id=27066524652&ad_id=&am_id=&cm_id=140105335569ed55e27b&pm_id=)RPI 引脚分布图:...

2013-10-02 13:52:00 157

转载 SecureCRT 终端使用serial

背景:使用serial 是因为使用Pl2303 连接 RaspberryPI使用securecrt 6.7.0 进行配置:1:菜单--》选项--》全局配置2:全局配置--》常规--》默认会话--》点击“编辑默认设置”3:编辑默认设置--》连接--》选择协议终端是“Serial” --》点击串行--》进...

2013-09-29 13:40:00 1497

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除