- 博客(14)
- 收藏
- 关注
原创 不重复建立文件夹的方法类
using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;public class FolderNameHelper{ private List nameList; public FolderNameHelper(TreeNode pare
2008-01-05 17:57:00 818
原创 多次未占用重新排序方法
private int messageIndex = -1; private static Dictionary indexMap; private static int GetAvailableAlertIndex() { if (indexMap == null) {
2008-01-05 17:51:00 517
原创 自己用c#写的保存文件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.IO;using System.Windows.Forms;public class SaveHelper { public static bool IsValidF
2008-01-05 17:48:00 1298
原创 c#处理转义字符的方法
private static string ChangeString(string inputStr) { StringBuilder retVal = new StringBuilder(); if(inputStr != String.Empty) { inp
2007-11-09 17:22:00 2194
原创 c#中out与ref的用法与区别
c#中out与ref的用法与区别1、out必须在函数体内初始化,在外面初始化没意义。也就是说,out型的参数在函数体内不能得到外面传进来的初始值。2、ref必段在函数体外初始化。3、两都在函数体的任何修改都将影响到外面。例:using System;namespace ConsoleApplication1{ class C { public static void reffun(ref str
2007-11-03 16:03:00 693
原创 编译每个project有效localize的方法
public sealed class NewCulture { private static CultureInfo uiCultureInfo; private NewCulture() { } [CultureSetter] public static CultureInfo UICultureInfo
2007-11-03 14:55:00 509
原创 自己写了一个用c#判断文件名是否有效的方法
private bool IsValidFileName(string fileName) { System.Diagnostics.Debug.Assert(fileName != null); bool isValid = true; try {
2007-11-03 14:46:00 1750
原创 关于linux学习总结
1,设置manine name: CONFIGURE_THIS_MACHINE machinename2.远程登录软件 VNC viewer and server, 这个软件可以支持windows/linux之间的远程连接3. NTFS Mount 可以用linux 客户端去登陆windows server4.加挂linux系统通过samba 共享出来的目录加挂命令: mount
2006-10-10 11:19:00 904
原创 Kerberos Part 2
If you just finished reading part 1, take a break. Kick back on a natural for a bit and let Kerberos sink in. Perhaps re-read the article if things are a bit fuzzy. Just a suggestion.If you feel comfo
2006-08-17 10:28:00 1045
原创 Kerberos Part 1
Ed. Note: This is a reprint, with some slight updates of a series that we started many years ago. Over the next few weeks well update all of the existing parts, and maybe even finish the series!Apple
2006-08-17 10:24:00 1040
原创 KDC
Simple krb5.ini: [libdefaults] default_realm = DOMAIN.COM dns_lookup_kdc = true dns_lookup_realm = true [realms] DOMAIN.COM = { kdc = ADSERVER.DOMAIN.COM default_domain = DOMAIN.COM
2006-08-17 10:23:00 1048
原创 关于Java的内存泄漏
主要问题出现在以下几个方面:1、static class 和 static variables. 这些对象会停留在application运行时的内存中,所以要尽量少使用。2、在不需要的时候没有释放对象。3、在不需要的时候没有释放资源。
2006-04-07 11:53:00 853
原创 简单的Web Service 客户端测试
服务器端(java axis):web service:http://localhost:8090/axis/SunsoTest.jwswsdl:http://localhost:8090/axis/SunsoTest.jws?wsdlservice的方法finishTask,参数为accountName、taskTypeaxis 客户端测试1:http://localhost
2006-01-14 13:42:00 1176 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人