Grisson's .net

源码之前,了无秘密

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年11月1日

摘要: sudo nano /etc/apt/sources.listchange or cn to us.sudo apt-get update 阅读全文
posted @ 2008-11-01 08:20 海盗 阅读(149) 评论(0) 推荐(0) 编辑

摘要: I currently have both Java 5 and Java 6 installed on my machine and it’s very easy to switch between the two. Java 6 has some nice goodies such as JSR-223 and better jconsole that I like to use.... 阅读全文
posted @ 2008-11-01 08:17 海盗 阅读(290) 评论(0) 推荐(0) 编辑

2008年9月11日

摘要: The only time a variable appears "naked" -- without the $prefix -- is when declared or assigned, when unset, when exported, or in the special case of a variable representing a signal.Double quotes (".... 阅读全文
posted @ 2008-09-11 08:28 海盗 阅读(351) 评论(0) 推荐(0) 编辑

2008年9月7日

摘要: apt-get install scim-pinyinuse ctl+space to switch between different language 英文Locale下使用中文输入法. Please read thisAs usual, it doesn't work in my case. Still looking for solution. 阅读全文
posted @ 2008-09-07 10:02 海盗 阅读(270) 评论(0) 推荐(0) 编辑

2008年9月2日

摘要: http://www.cyberciti.biz/tips/understanding-unixlinux-file-system-part-i.htmlThis series is interesting. If anyone read these articles, please feel free to post your comments here.Thanks. 阅读全文
posted @ 2008-09-02 22:13 海盗 阅读(178) 评论(0) 推荐(0) 编辑

2008年8月31日

摘要: I just finished the Chapter 1 to 5. Be honestly speaking, it indeed doesn't need any develop background, except chapter 5. I think Chapter 5 is torturous for theperson, who doesn't have any develop ba... 阅读全文
posted @ 2008-08-31 22:40 海盗 阅读(228) 评论(0) 推荐(0) 编辑

摘要: Recently, I'm reading <<Linux Kernel in a nutshell>> by Greg Kroah-Hartman. Why do I choose this book? It is because one sentence in the preface attracts me,"No programming experience is n... 阅读全文
posted @ 2008-08-31 15:03 海盗 阅读(241) 评论(0) 推荐(0) 编辑

2008年3月8日

摘要: Finally, I got two days break after two incredibletough working weeks. But, there are some things which make me can not bendmymind to my projects. Hopefully, we can last out this rough time. 阅读全文
posted @ 2008-03-08 21:49 海盗 阅读(333) 评论(0) 推荐(0) 编辑

摘要: Recently, I felt hurt for my wrist. It even became worse and worse. Me shoulder also didn't feel well.My colleaguse told me "itwas so called "keyboard hand" and "mouse shoulder". They are common occup... 阅读全文
posted @ 2008-03-08 21:41 海盗 阅读(380) 评论(0) 推荐(0) 编辑

2008年3月2日

摘要: Question 1: How do they implement the ajax in ASP.net framework. Is it like what I thought? Every ajax call request a MVC URL.Question 2: How do they implement URL routing?Question 3: How do they do d... 阅读全文
posted @ 2008-03-02 22:58 海盗 阅读(244) 评论(0) 推荐(0) 编辑

摘要: I'm just aware of that I have this blog. I almost forget the username and password. I also doublt that I can log in even if I remember the password, because I did log in even browser my blog more than... 阅读全文
posted @ 2008-03-02 22:48 海盗 阅读(269) 评论(0) 推荐(0) 编辑

2006年11月21日

摘要: <script type="text/javascript" src="md5.js"></script>实现加密:<script type="text/javascript" >hash = hex_md5("input string");</script> 或者只要在<form onsubmit="pwd.value =hex_md5(pw... 阅读全文
posted @ 2006-11-21 13:42 海盗 阅读(833) 评论(0) 推荐(0) 编辑

2006年9月13日

摘要: 传统的web应用一般含有多个页面,用户在浏览时,浏览器地址框里的地址会随着页面的变动而更新。用户可以bookmark页面把网页地址收藏,之后通过收藏夹里的地址回到同个页面。用户在网站浏览时,也可以使用浏览器的向前/向后按钮来回访问多个网页。 然而,AJAX的web应用存在于单个页面中。用户在操作AJAX应用时,页面的内容会变,但浏览器地址框里的地址是不变的,用户也无法使用向前/向后按钮来往返于当前... 阅读全文
posted @ 2006-09-13 09:41 海盗 阅读(412) 评论(0) 推荐(0) 编辑

摘要: There are thousands of design resources on the web which can lead to an overwhelming experience when looking for inspiration or ideas, so I created a list of resources that I use on a regular basis. H... 阅读全文
posted @ 2006-09-13 09:32 海盗 阅读(392) 评论(0) 推荐(0) 编辑

2006年7月2日

摘要: 1、操作ACL操作ACL需要使用ActiveDs这个Com组件。在上篇文章的回复中Rock提到“很多ActiveDs.dll提供的功能是.net的AD访问组件不提供的”。ACL的操作就是这样。但是我在操作ACL的时候发现在2003上很正常的程序在2000下不能通过,报出“Security ID Structure is invalid”,中文是... 阅读全文
posted @ 2006-07-02 10:29 海盗 阅读(424) 评论(0) 推荐(0) 编辑

2006年6月25日

摘要: IE是现在Windows平台下用的最多的浏览器,但微软提供的IE是那么朴实,以至于毫无特色,那么如何用程序来修改IE,打造有自己的特色的IE呢?我经过思索,通过注册表找到了修改IE的方法,下面我向大家介绍一下这种方法。 首先我们来熟悉一下C#中修改注册表的方法与函数。在VC#中提供了Registry类、RegistryKey类来实现对注册表的操作。其中Registry类封装了注册表的七个基本主健:... 阅读全文
posted @ 2006-06-25 07:30 海盗 阅读(658) 评论(0) 推荐(0) 编辑

2006年6月8日

摘要: usingSystem;namespaceTest{classTest{intx=0;inty=x;//出错!因为在y在初始化时要保证x已经存在,所以只能用static给类的字段初始化publicvoidShow(){intx=0;inty=x+1;}publicstaticvoidMain(){}}}这个比较匪夷一点 阅读全文
posted @ 2006-06-08 17:55 海盗 阅读(738) 评论(0) 推荐(0) 编辑

摘要:  namespaceA{usingB;classA{publicstaticvoidMain(){B.BtestB=newB.B();testB.Show();}}}namespaceB{usingSystem;classB{publicvoidShow(){System.Console.WriteLine("Fromeb.b.show");}}}为什么这样就无法编译通过!是不是usin... 阅读全文
posted @ 2006-06-08 17:53 海盗 阅读(436) 评论(0) 推荐(0) 编辑

2006年2月19日

摘要: 好久没来了!最近在看Cassini的源码!这也算我在Augmentum的一大收获!这几个星期没白忙活!希望下个星期TraininProject顺利进行! 阅读全文
posted @ 2006-02-19 00:19 海盗 阅读(310) 评论(0) 推荐(0) 编辑

2006年1月26日

摘要: usingSystem;//usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;//usingSystem.Windows.Forms;//usingSystem.Data;usingSystem.Runtime.InteropServices;namespace智能象棋游戏{/**////<summa... 阅读全文
posted @ 2006-01-26 00:34 海盗 阅读(2997) 评论(1) 推荐(0) 编辑

2006年1月5日

摘要: 老师已经讲了好几遍了:在 ASP.NET 中 SqlConnection 打不开的主要原因是SQL server中用户的权限不对,要加入ASP.NET用于调试的账户!加账户!加账户!加账户!老师已经说了好几遍了吗!你就是不听吗!!好的老师带你上天堂,坏的老师带你住套房吗!! --张国志 阅读全文
posted @ 2006-01-05 01:58 海盗 阅读(478) 评论(1) 推荐(0) 编辑

2005年12月31日

摘要: 1.消除数据绑定控件的多重绑定 在绑定语句前加if (!Page.IsPostBck)语句,这样只有在第一次加载页面时,才进行绑定,页面回送时就不能再次绑定了. 在PreRender方法里绑定,PreRender事件发生在回送事件之后,在前面的事件(init,load,PostBackEvent)中处理完应该处理的事件后,在PreRender事件中绑定,这样能消除在多个回发事件中重复绑定控件,这个... 阅读全文
posted @ 2005-12-31 00:00 海盗 阅读(413) 评论(0) 推荐(0) 编辑

2005年12月27日

摘要: 检测死锁如果发生死锁了,我们怎么去检测具体发生死锁的是哪条SQL语句或存储过程?这时我们可以使用以下存储过程来检测,就可以查出引起死锁的进程和SQL语句。SQL Server自带的系统存储过程sp_who和sp_lock也可以用来查找阻塞和死锁, 但没有这里介绍的方法好用。usemastergocreateproceduresp_who_lockasbegindeclare@spidint,@bl... 阅读全文
posted @ 2005-12-27 01:20 海盗 阅读(1161) 评论(0) 推荐(0) 编辑

2005年11月18日

摘要: 1.<%=...%>与<%#... %>的区别: 答:<%=...%>是在程序执行时调用,<%#... %>是在DataBind()方法之后被调用2.控件接收哪些类型数据? 答:接收Bind的控件,一般有DropDownList,DataList,DataGrid,ListBox这些集合性质的控件,而被捆绑 的主要是ArrayList(数组),Ha... 阅读全文
posted @ 2005-11-18 02:17 海盗 阅读(405) 评论(0) 推荐(0) 编辑

2005年11月6日

摘要: This article guides you through the AJAX basics and gives you two simple hands-on examples to get you started. Contents[hide]1 What's AJAX? 2 Step 1 – say "Please!" or How to Make an HTTP Reques... 阅读全文
posted @ 2005-11-06 22:20 海盗 阅读(517) 评论(0) 推荐(0) 编辑