自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(63)
  • 资源 (7)
  • 收藏
  • 关注

原创 Exception Handling - Part One

1. Do i need to create a new exception class ?    When faced with choosing the type of exception to throw, you can either use one written by someone else — the Java platform provides a lot of exce

2013-08-02 14:45:21 660

原创 c# how to make app use a specified configure file

//Main methodpublic static void Main(string[] args){ if(args != null && args.Length > 0) { string clientConfigFile = args[0]; if(!File.Exist

2016-09-24 02:08:03 346

转载 visual studio 2012 安装闪退

可能是.NET出了问题,VS2012的安装程序使用WPF,依赖于.NET。.NET配置出了问题以后,出现安装程序无法显示界面的情况。解决方法是:1.找到C:\Windows\Microsoft.NET.目录,在该目录下搜索"machine.config"文件。2.根据你的系统不同,machine.config文件的数量也不同。我有4个,分别在下面四个目录下a

2016-09-12 04:36:34 1629

转载 MIME [转自百度百科]

MIME(Multipurpose Internet Mail Extensions)多用途互联网邮件扩展类型。是设定某种扩展名的文件用一种应用程序来打开的方式类型,当该扩展名文件被访问的时候,浏览器会自动使用指定应用程序来打开。多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式。它是一个互联网标准,扩展了电子邮件标准,使其能够支持:非ASCII字符文本;非文本格式附件(二进制、

2015-08-05 02:10:03 503

转载 为什么要使用Base64?

Reference: http://www.cnblogs.com/wellsoho/archive/2009/12/09/1619924.html为什么要使用Base64?在设计这个编码的时候,我想设计人员最主要考虑了3个问题: 1.是否加密? 2.加密算法复杂程度和效率 3.如何处理传输?     加密是肯定的,但是加密的目的不是让用户发送非常安全的Em

2015-08-05 02:07:14 659

转载 Chang the default encoding of notepad

http://www.2cto.com/os/201205/132710.html改Windows记事本(notepad)默认编码为Unicode或UTF-8的方法 Windows记事本默认编码ANSI无法满足需求, 每次都得“另存为”然后选择编码方式。找到一解决方法如下:1. 新建一个txt文档,不输入任何内容。然后“另存为”,将编

2015-08-05 00:57:46 471

原创 svn+ssh

According to official document, svn+ssh is supposed to be somehow faster than apache+dav_svn, however based on my setup, it's slower.

2014-04-23 00:50:54 1276

原创 Apache+Subversion+TortoiseSVN

Key words: mod_dav_svn, apache, subversion, ssl, tortoisesvn

2014-04-23 00:16:16 1195

原创 Log4j on package level and how to test log entries produced by Log4j

1. Configure log4j on package levelWhen you want the logs for different package to be in different log files, you can configure log4j in package level.So Log4j can be configured on package level

2014-01-21 10:28:08 784

原创 Java coding style - Part One

1. Factory method should be stateless.State normally refers to the member variables of class. Stateless, more precisely, it means immutable.Factory is just to create objects, and one call shou

2013-08-05 11:28:09 588

转载 话说程序员的职业生涯

作者:IBM 软件集团大中华区总架构师  寇卫东 有一些年轻的程序员向我咨询,将来的路应该怎么走?俗话说,条条大路通罗马。不同的路都能走向成功。到底选哪条路,取决于自己的兴趣。可能有程序员会问:如果还没找到自己的兴趣怎么办?我的建议是多尝试,努力做,这是职业生涯的必经之路。当你积累了一定的技术和经验之后,就会面临多种选择。选择哪条路,因人而异。如果对某一种或几种技术非常感兴趣,并且能够持续钻研,经

2013-07-26 12:06:41 554

原创 Asp.net Post Sample

1. Post data pageDefault.aspx First Name: Last Name: Default.aspx.csusing System;using System.Collections.Generic;using System.Web;using System.Web.UI;usi

2013-01-24 23:59:12 489

原创 Singleton in Spring to avoid reinvent wheels

Sometimes you run into below piece of code which would call a object to do something, it costs some effort to actually construct the new object every time you invoke this caller method, so to avoid th

2012-02-29 19:30:17 407

原创 Pass parameters to server using hidden field

Infrastructure: freemarker + webwork + sitemesh + Jetty + Selenium  + JunitWe use the basic html control of in the page, which list down all the product types, and it dynamically load all the produ

2012-02-29 19:11:56 591

转载 Drag&Drop ListView

using System;using System.Drawing;using System.Windows.Forms;namespace Snip_DragNDrop{ public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.ListBox ListDragSource;

2011-12-06 13:29:27 730

原创 Create Excel report

private Application myExcel = null; private Workbook myWorkbook; public void CreateDailyReport() { string fileTemplate = "SSQLDailyReport.$d.$t.xls"; XmlText

2011-12-06 13:28:21 635

原创 多线程耗时操作及界面更新

要提高界面的响应特性,最好的办法莫过于使用多线程,并把呈现界面的线程独立出来。以前只有使用C++才能实现的多线程功能,现在在.Net框架下,所有的语言(包括VB)都可以使用了。不过,使用多线程比使用单一线程要麻烦得多,比如线程之间的同步问题,做得不好很容易出错,而有的时候这种错误要开发人员花上几个星期的时间才能找到。在Windows Form软件中使用多线程更是有一些限制。0. 在主程

2011-11-15 17:24:06 893

原创 Date/Time Utility tool

using System;using System.Collections;using Microsoft.Win32;namespace EQTG.General.BasicTypes{ /// /// Simple useful time based

2011-09-20 16:57:32 745

原创 .Net Trace Listener

1. Listener with configurationapp.config <add name="myListener" type="System.Diagnostics.TextWriterT

2011-09-20 16:50:47 587

原创 SQL Bulk-copy from Excel

class Program { static void Main(string[] args) { string excelPath = @"C:\Documents and Settings\lg39304\My

2011-09-20 14:40:43 574

转载 WMI ABC

WMI使用技巧集 很多的朋友对WMI可能见过但理解不深,我也是十分想了解关于WMI的知识,可一直找不对太合适的资料,在网上的一些资料不是有很多错误,就是讲解不清,我有空的时候将关于WMI的知识集中一下,放在这里便于大家学习。本贴会不断增加。1、 什么是WMIWMI是英

2011-09-19 10:18:42 487

转载 Parallel bulk copy and IDENTITY columns

Parallel bulk copy and IDENTITY columnsWhen you areusing parallel bulk copy, IDENTITY columns can cause a bottleneck. Asbcp reads in the

2011-09-19 10:18:00 511

转载 .Net framework 3.5 new features

.Net framework 3.5 new features: 1.  var x = 5; Complierwill decide: int x = 5;  2.  public int MyProperty { get; set; } No need

2011-09-19 10:17:32 673

转载 COM ABC

All calls made between managedand unmanaged code must negotiate the requirements imposed by each respectiveprogramming model. Managed and un

2011-09-19 10:16:26 654

转载 IIS 默认绑定 机械设置

默认的Endpoints 在第一章中创建ProductsSerice 服务时,你并未在web.config中设置任何端点和绑定信息。但是,当宿主环境(IIS)启动该服务时,IIS基于HTTP传输协议和虚拟文件的逻辑 地址(URL)自动创建了默认的端点。事实上,IIS调用了Se

2011-09-19 10:15:06 706

原创 Managed EE

Visual C++ Team Blog : Managed Debugger Expression EvaluatorManaged Debugger Expression Evaluator   Hi, my name is James Wang and I

2011-09-19 10:14:23 364

原创 Unix Shell -- VI

Vi command:x/X: delete current charactorctrl+u: cancel the last operationctrl+F/B: go to the page top/bottomk/l: movedd:

2011-09-19 10:13:19 503

原创 Unix shell

1. TITLE hello worldTimeverexitclsFC /N C:\Test\a.txt C:\Test\b.txtcomp /A /D C:\Test\a.txt C:\Test\b.txttree C:\Testa

2011-09-19 10:12:54 517

原创 [Sybase] Compiled objects

Compiled objects are created from source text, which are SQL statements thatdescribe and define the compiled object. When a compiled objec

2011-09-19 10:07:21 385

原创 T-SQL Tips 2

****************************************************************************Syntax to pass by name:    [exec | execute] procedure_name

2011-09-19 10:05:27 593

转载 SED 命令手册

SED 手册  Introduction  Sed(Stream EDitor)为 UNIX 系统上提供将编辑工作自动化的编辑器 , 使用者无需直接编辑资料。使用者可利用sed 所提供 20 多种不同的函数参数 , 组合(解 [1])它们完成不同的编辑动作。此外 ,

2011-09-19 10:04:33 754

原创 [Sybase] Foreigh Key/Index column

alter table SSQLquery drop constraint SSQLquery_1925867665 (queryName) REFERENCES SSQLqueryEx(queryName)alter table SSQLquery drop foreign

2011-09-19 10:04:08 503

原创 multi-threading batch updates, how to get unique identifiers

create procedure My_unique( @table_id int, @incr     int, @unique   int output) as/* * %W%    %D% * Get a block of incr

2011-09-19 10:01:14 454

原创 Iteration operation to records in temp table

create table DRMS..#firmAccounts (account varchar(25)) exec DRMS..fastGetAccount '/ACC_KL_FUT' select pd.*, p.quantity from DRMS..po

2011-09-19 09:59:45 329

原创 Cursor-Position&Trade

--step1create table tempdb..PositionTrade_pfa{0}(account varchar(25)) --step2create unique clustered index idxPositionTrade_pfa120

2011-09-19 09:59:25 380

原创 Database Development Standards

Database Development StandardsCodeReviewsQuickTipsFileExtensionsJoinsLockingand Optimisation TipsWritingdynamic sqlReferential

2011-09-19 09:57:46 762

原创 transaction -- save point

begin  tran tran1select @@trancountif exists(select 1 from version where trader = 'lg39304')update version set version = '2.0.40.1' wh

2011-09-19 09:57:00 495

原创 T-sql date/time format samples

Select CONVERT(varchar(100), GETDATE(), 0) as 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1) as 05/16/06Select CONVERT(var

2011-09-19 09:56:23 458

转载 SQL分区技术

SQL分区技术  你是否在千方百计优化SQL Server 数据库的性能?如果你的数据库中含有大量的表格,把这些表格分区放入独立的文件组可能会让你受益匪浅。SQL Server 2005引入的表分区技术,让用户能够把数据分散存放到不同的物理磁盘中,提高这些磁盘的并

2011-09-19 09:55:25 2365

转载 微软SQL Server事务隔离级别简介

微软SQL Server事务隔离级别简介数据库的事务隔离级别(TRANSACTION ISOLATION LEVEL)是一个数据库上很基本的一个概念。为什么会有事务隔离级别,SQL Server上实现了哪些事务隔离级别?事务隔离级别的前提是一个多用户、多进程、多线程的并发系统

2011-09-19 09:54:22 431

Practical .net in finance

Investment banking system implemented by .net

2010-08-31

微软SQL经典书籍, 深入MSSQL内幕

微软SQL经典书籍 深入MSSQL内幕

2009-10-29

局域网 第三层交换

局域网 第三层交换

2008-05-23

自己写 .net Framework

自己写 .net Framework

2008-05-23

Net本质论第1卷:公共语言运行库

Net本质论第1卷:公共语言运行库

2008-05-19

NUNIT-NET

经典的C#测试工具。

2007-09-29

空空如也

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

TA关注的人

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