自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Mina.Net实现的UDP多路广播

主要用于未确定主机地址的情况下,可以使用多路广播和服务端通信,下面是官方提供的DEMO。using System;using System.Net;using System.Net.Sockets;using System.Text;using Mina.Core.Session;using Mina.Filter.Codec;using Mina.Fil...

2016-04-29 13:19:00 206

转载 Mina.Net实现的断线重连

using Mina.Filter.Codec;using Mina.Filter.Codec.TextLine;using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Text;using Mina.Core.Session...

2016-04-29 13:16:00 298

转载 Mina.Net实现的UDP协议消息收发Demo

using Mina.Filter.Codec;using Mina.Filter.Codec.TextLine;using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Text;using Mina.Core.Session...

2016-04-29 13:15:00 143

转载 MySql 比Replace Into更适合的用法,外加SqlServer的方式。

Mysql:INSERT INTO `his_examine_result` (Mid,His_Examine_Mid, His_File_Mid, ResultType, His_Employee_Mid, His_Employee_Name, ExamineResult, ExamineItemName, ...

2016-04-28 10:37:00 455

转载 MySql【Insert Select Not Exist】判断记录再添加值的方案

INSERT INTO content ( detail, status, beginTime, endTime) SELECT @detail, 1, NULL, NULL FROM DUAL WHERE NOT EXISTS( ...

2016-04-13 16:12:00 340

转载 MySql中存储过程中的@变量总是无法执行,提示Parameter '@XXX' must be defined

一、情形:在.net调用Mysql时,比如如下的一句SQL,总是无法执行,可是在其它SQL客户端窗口中是能正确执行的。drop procedure if exists AddColumnUnlessExists;create procedure AddColumnUnlessExists(IN tableName tinytext,IN fieldName tinytex...

2016-04-10 10:53:00 937

转载 Go语言使用Beego的ORM插入Mysql后,时区不一致的解决方案

一、解决方案:方案一:orm.Debug = false orm.DefaultTimeLoc = time.UTC orm.RegisterDriver("mysql", orm.DRMySQL) orm.RegisterDataBase("default", "mysql", "root:LPET6Plus@tcp(127.0.0.1:18283)/lpet6...

2016-04-07 16:17:00 262

转载 Go语言中Path包用法

// pathpackage mainimport ( "fmt" "os" "path" "path/filepath")func main() { //Path操作 fmt.Println("Path操作-----------------") fmt.Println(path.Base("http://www.baidu.com...

2016-04-06 17:58:00 237

转载 C#(WPF和WinForm)在普通类中调用到主线程的方法,SynchronizationContext的用法。

一、SynchronizationContext类用法:1、对于WindowsFrom应用程序,如果想在某个类中,不方便使用到控件的Invoke方法时,可以使用WindowsBase.dll下的System.Thread.SynchronizationContext。namespace FormDispatcher{ public partial class F...

2016-04-01 09:57:00 397

空空如也

空空如也

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

TA关注的人

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