用自己来爱你

{ Posted on 星期六, 七月 04, 2009 by Kaiser.XKw }
收到一份很有感触的MAIL,转成图片留下来: 我们常常说爱与被爱,很多时候都没有把焦点放在对方身上,不关注自己的行为,甚至放纵自己,这是一种任性、不负责、不成熟的表现... 因为爱你,我会好好照顾自己,因为爱你,我要提升自己... 希望我亲爱的宝贝也能这样...

将Windows 2003 SP2补丁整合到Windows Server 2003 CD

{ Posted on 星期六, 七月 04, 2009 by Kaiser.XKw }

安装服务器的时候,发现部分IBM的型号需要Windows 2003带SP2补丁,也为了方便后面安装系统,将SP2补丁整合到安装文件中

微軟提供的詳細步骤:

方法 1: 使用在 / integrate 开关

  1. 连接到网络驱动器或要创建 Windows Server 2003 安装文件夹的本地驱动器。 将此驱动器指定为驱动器 X。
  2. 创建在 Windows Server 2003 安装文件夹并创建 Service Pack 的文件夹。 要这样做,请按下列步骤操作:
    1. 单击 开始 ,单击 运行 ,键入 cmd ,然后单击 确定 。
    2. 在命令提示符下键入 mkdir X: \2k3CD\i386 ,然后按 Enter 键。
    3. 类型 mkdir X: \2k3SP2 ,然后按 Enter 键。
  3. 使用 Xcopy 命令行工具将该文件和子文件夹从 Windows Server 2003 安装 CD 复制到 X: \2k3CD\i386 文件夹。 要这样做,请按下列步骤操作:
    1. 插入 CD 驱动器或 DVD 驱动器,请将 Windows Server 2003 安装 CD。
    2. 在命令提示符下键入以下命令,然后按 Enter 键:
      xcopy / e i v CD-ROM_Drive: \ i 386 X: \2k3CD\i386
  4. 键入 退出 ,然后按 Enter 键。
  5. 立即下载到 X 的 Windows Server 2003 SP 2 网络安装软件包: \2k3SP2 文件夹。 若要下载 Windows Server 2003 SP 2 网络安装程序包,请访问下面的 Microsoft Web 站点: 请注意 如果操作系统使用的不是英语语言,您下载 Windows Server 2003 SP 2 网络安装软件包之前为英语更改语言。 更改语言 列表是页的中间。
  6. 单击 开始 ,单击 运行 ,键入 cmd ,然后单击 确定 。
  7. 类型 cd X: \2k3SP2 ,然后按 Enter 键。
  8. 类型 WindowsServer 2003-KB914961-SP 2-x 86-ENU.exe /integrate: X: \2k3CD ,然后按 Enter 键。 Windows Service Pack 2 安装向导将启动,并通知您 Windows Server 2003 SP 2 文件集成到 Windows Server 2003 安装文件夹。
  9. 按照 Windows Service Pack 2 安装向导。
  10. 当显示一个对话框,指示集成的安装完成,请单击 确定 。
  11. 键入 退出 ,然后按 Enter 键。
  12. 完成集成过程后,请到 Windows Server 2003 SP 2 运行就地升级。 若要为此,请单击 开始 ,单击 运行 ,类型 X: \2k3CD\i386\winnt32 ,然后单击 确定 。

方法 2: 使用 Update.exe 实用程序

  1. 请按照步骤 1 至 7 操作方法 1。
  2. 键入 WindowsServer 2003-KB914961-SP 2-x 86-ENU.exe –x ,然后按 ENTER 键。
  3. 当系统提示您时请确保在 X: \2k3SP2 文件夹作为目标文件夹为提取的文件列出并且然后单击 确定 以提取文件。
  4. 类型 X: \2k3SP2\i386\update\update / s: X: \2k3CD ,然后按 Enter 键。 Windows Service Pack 2 安装向导将启动,并通知您 Windows Server 2003 SP 2 文件集成到 Windows Server 2003 安装文件夹。
  5. 当显示一个对话框,指示集成的安装完成,请单击 确定 。
  6. 完成集成过程后,请到 Windows Server 2003 SP 2 运行就地升级。 若要为此,请单击 开始 ,单击 运行 ,类型 X: \2k3CD\i386\winnt32 ,然后单击 确定 。

勇敢的面对人生,我们应该要更精彩才对...

{ Posted on 星期四, 七月 02, 2009 by Kaiser.XKw }
澳年度青年天生无四肢: 用嘴打高尔夫 海上冲浪(图)

请设想从一出生就没有手臂,没有手臂去拥抱别人,没有双手去体验触摸,也不可以去牵手。从一出生就没有双腿又会是怎样的呢?不可以跳舞、走路、跑,甚至仅仅是靠双脚站立都不可以。现在把这些假设的场面放在一起-----没有双臂没有双腿。你会怎么做呢?这将对你每天的生活带来怎样的影响?

看看这位勇敢的年轻人,正常的我们是不是更应该更有信心面对生活,让自己的人生更加精彩?

  Nick Vujicic1982(尼克·武伊契奇)年出生于澳大利亚的墨尔本,没有任何医学方面的解释或警告,没有双手双腿的他来到这个世界。之前从未有过这样的怀孕,而且家族历史也从未预言过今天的情形,我们可以想象得到当时他的父母看到这个刚出生的小男孩时会是多么的震惊,只知道他就是世人所说的缺陷和不正常。没有手足并不是他父母所预料的。她们的儿子怎样才可以拥有快乐的正常生活?当他生活在世人都认为他是巨大残疾的世界中时,他该做些什么又该成为怎样的人呢?当时她们不知道而且也没有任何一个人知道,这个漂亮的无手足的小男孩有一天会通过他所有的足迹和对全世界生命的接触来激励鼓舞所有的人。
学习冲浪的nick
nick正在进行演讲
nick与一名女性的亲密照
  在Nick Vujicic的整个童年,他不仅仅要挑战学习和青春期,例如恃强凌弱、自尊;而且他还要与自卑和孤独作斗争,例如他会问为什么我与周围其他孩子不同,为什么我一出生就没有手足。他会想他的人生目标是什么,或者他根本就没有目标。经过许多挫折及内心感受,就像在学校的时候发生的一件事,在七岁的时候,Nick尝试了许多特殊设计的电子手臂和双腿,希望自己能和其他孩子有更多的相似之处。经过使用电子手臂的短短时间,Nick认识到即使他使用这些也改变不了别人对他凝视的眼神,并且这些设备对于他来说太深重了,对他的灵活造成严重的影响。   随着Nick的成长,他学会了怎样应付自身的不足而且开始自己做越来越多的事情,他开始适应他的生存环境,找到方法完成其他人必须要手足才可以完成的事情,就像刷牙、洗头、打电脑、游泳、做运动,其他更多的事情。随着时间的推移,Nick开始热爱他的生活环境并完成更伟大的事情。在七年级的时候,他被选为学校的主席,与学生会的其他人一起工作,处理地方慈善机构和残疾组织的各种事情。 www.6park.com   Nick人生旅途上的成功奋斗及他面对生活的勇气与热情,源于他的信念、他的家人、他的朋友,还有他生活中遇到的一直在他人生路上鼓励他的人。   毕业之后,Nick继续学习深造,他取得了会计和金融企划的双学士学位。19岁的时候,Nick开始实现他的梦想,那就是有能力通过自己充满动力的演讲和自己的亲身经历去鼓励其他人,给他们带去希望。“我找到了我存在的目的,当然那也是我的生活环境存在的目的…..为什么你们备受煎熬的目的。” Nick全心全意地相信在我们的生活中所遇到的任何我们努力奋斗的事情都有一个目的,而且面对这些事情的态度是可以战胜它们的唯一有效因素。   2005年Nick被授予“澳大利亚年度青年”的荣誉称号,这是一项很大的的荣誉,是对青年人才华和他对这个国家和社会做出的服务贡献及个人成就的肯定。这份荣誉仅授予真正可以鼓励、激励人们的人。 www.6park.com   现在,这个25岁的失去手足的年轻人所玩完成的事情要比很多年龄时他二倍的人还多。Nick现在频繁的来往于Brisbane, Australia to California, USA四地,既是一个国际公益组织的总裁,同时又有自己鼓励人心演讲的公司。自从Nick19岁第一次充满动力的演讲之后,他的足迹开始遍布全世界,与数十亿人分享他的故事、经历。为各行各业的人做演讲,有学生、教师、商界人士、翻译家及教堂会众,所有这些人。他也在世界各大电视节目中讲演他的故事。然而,Nick的这些演讲所收获的东西已经远远超出了鼓舞他人的目的,他有机会与几个领导人见面,包括副总统Kenya,仅仅是今年,Nick就会在20多个国家进行演讲。   “人们会问我:‘你怎么能笑呢?’”他说,“然后他们就会意识到‘如果现在有一个没有手足的青年能生活得比我有意义,会有一些比只看眼睛更有意义的事情’”。   Nick与他的听众分享远见与远大梦想的重要性,把他在世界各地的经历作为例子,他鼓励其他人要思索今后的前景并且要跳出现有的环境去展望未来。他与大家一起分享停止把阻碍看作是麻烦、困难,相反的应该把它们看作是自身成长并学习到更多的机会。他强调作为我们现处位置最为有利的工具——态度是多么的重要,并且说明我们所做的选择会对我们自己及周围的人产生多么深远的影响。Nick用他的人生来告诉我们完成梦想最关键的就是坚持不懈和选择拥抱失败,把它看作是一次学习的机会,而不是被失败和恐惧所打倒。   现在,Nick对他自身的残疾会有什么感觉呢?他接受并且拥抱它,就像有时他展示的“小诡计”那样,他会从现有的生活环境中寻找到乐趣。他用其特有的幽默、毅力和信念来面对挑战,这往往会深深鼓舞他身边那些要发展或定义自己视觉、观点的人去审视自己的前景。采用这些新的定义,Nick鼓励每个人勇于面对并改变生活,所以他们开始完成人生梦想的征程。通过自己人生的点点滴滴和令人难以置信的幽默与人们沟通的惊人能力,Nick深受孩子、少年和青年人的喜爱,Nick是真正的使人倍受鼓舞的演说家。
nick是天生没有四肢
童年时的照片
被众人举起的nick
用嘴打高尔夫

一段有趣的Javascript

{ Posted on 星期四, 七月 02, 2009 by Kaiser.XKw }
Tags :

直接把这段javascript贴在地址栏,就可以看到图片全部出来乱跑。 ^_^

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[i].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3) *y4+y5}R++}setInterval('A()',5); void(0);

.NET牛人应该知道些什么! - What Great .NET Developers Ought To Know (More .NET Interview Questions)

{ Posted on 星期四, 七月 02, 2009 by Kaiser.XKw }

What Great .NET Developers Ought To Know (More .NET Interview Questions)

A while back, I posted a list of ASP.NET Interview Questions. Conventional wisdom was split, with about half the folks saying I was nuts and that it was a list of trivia. The others said basically "Ya, those are good. I'd probably have to look a few up." To me, that's the right response.

Certainly I wasn't trying to boil all of .NET Software Development down to a few simple "trivia" questions. However, I WAS trying to get folks thinking. I believe that really good ASP.NET (and for that matter, WinForms) is a little [read: lot] more than just draging a control onto a designer and hoping for the best. A good race driver knows his car - what it can do and what it can't.

So, here's another list...a greatly expanded list, for your consumption (with attribution). I wrote this on a plane last week on the way from Boise to Portland. I tried to take into consideration the concerns that my lists contain unreasonable trivia. I tried to make a list that was organized by section. If you've never down ASP.NET, you obviously won't know all the ASP.NET section. If you're an indenpendant consultant, you may never come upon some of these concepts. However, ever question here has come up more than once in the last 4 years of my time at Corillian. So, knowing groking these questions may not make you a good or bad developer, but it WILL save you time when problems arise. 

What Great .NET Developers Ought To Know

Everyone who writes code

  • Describe the difference between a Thread and a Process?
  • What is a Windows Service and how does its lifecycle differ from a "standard" EXE?
  • What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?
  • What is the difference between an EXE and a DLL?
  • What is strong-typing versus weak-typing? Which is preferred? Why?
  • Corillian's product is a "Component Container." Name at least 3 component containers that ship now with the Windows Server Family.
  • What is a PID? How is it useful when troubleshooting a system?
  • How many processes can listen on a single TCP/IP port?
  • What is the GAC? What problem does it solve?

Mid-Level .NET Developer

  • Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming.
  • Describe what an Interface is and how it’s different from a Class.
  • What is Reflection?
  • What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?
  • Are the type system represented by XmlSchema and the CLS isomorphic?
  • Conceptually, what is the difference between early-binding and late-binding?
  • Is using Assembly.Load a static reference or dynamic reference?
  • When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?
  • What is an Asssembly Qualified Name? Is it a filename? How is it different?
  • Is this valid? Assembly.Load("foo.dll");
  • How is a strongly-named assembly different from one that isn’t strongly-named?
  • Can DateTimes be null?
  • What is the JIT? What is NGEN? What are limitations and benefits of each?
  • How does the generational garbage collector in the .NET CLR manage object lifetime? What is non-deterministic finalization?
  • What is the difference between Finalize() and Dispose()?
  • How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
  • What does this useful command line do? tasklist /m "mscor*"
  • What is the difference between in-proc and out-of-proc?
  • What technology enables out-of-proc communication in .NET?
  • When you’re running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

Senior Developers/Architects

  • What’s wrong with a line like this? DateTime.Parse(myString);
  • What are PDBs? Where must they be located for debugging to work?
  • What is cyclomatic complexity and why is it important?
  • Write a standard lock() plus “double check” to create a critical section around a variable access.
  • What is FullTrust? Do GAC’ed assemblies have FullTrust?
  • What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?
  • What does this do? gacutil /l | find /i "Corillian"
  • What does this do? sn -t foo.dll
  • What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
  • Contrast OOP and SOA. What are tenets of each?
  • How does the XmlSerializer work? What ACL permissions does a process using it require?
  • Why is catch(Exception) almost always a bad idea?
  • What is the difference between Debug.Write and Trace.Write? When should each be used?
  • What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
  • Does JITting occur per-assembly or per-method? How does this affect the working set?
  • Contrast the use of an abstract base class against an interface?
  • What is the difference between a.Equals(b) and a == b?
  • In the context of a comparison, what is object identity versus object equivalence?
  • How would one do a deep copy in .NET?
  • Explain current thinking around IClonable.
  • What is boxing?
  • Is string a value type or a reference type?
  • What is the significance of the "PropertySpecified" pattern used by the XmlSerializer? What problem does it attempt to solve?
  • Why are out parameters a bad idea in .NET? Are they?
  • Can attributes be placed on specific parameters to a method? Why is this useful?

C# Component Developers

  • Juxtapose the use of override with new. What is shadowing?
  • Explain the use of virtual, sealed, override, and abstract.
  • Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d
  • Explain the differences between public, protected, private and internal.
  • What benefit do you get from using a Primary Interop Assembly (PIA)?
  • By what mechanism does NUnit know what methods to test?
  • What is the difference between: catch(Exception e){throw e;} and catch(Exception e){throw;}
  • What is the difference between typeof(foo) and myFoo.GetType()?
  • Explain what’s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?
  • What is this? Can this be used within a static method?

ASP.NET (UI) Developers

  • Describe how a browser-based Form POST becomes a Server-Side event like Button1_OnClick.
  • What is a PostBack?
  • What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState?
  • What is the <machinekey> element and what two ASP.NET technologies is it used for?
  • What three Session State providers are available in ASP.NET 1.1? What are the pros and cons of each?
  • What is Web Gardening? How would using it affect a design?
  • Given one ASP.NET application, how many application objects does it have on a single proc box? A dual? A dual with Web Gardening enabled? How would this affect a design?
  • Are threads reused in ASP.NET between reqeusts? Does every HttpRequest get its own thread? Should you use Thread Local storage with ASP.NET?
  • Is the [ThreadStatic] attribute useful in ASP.NET? Are there side effects? Good or bad?
  • Give an example of how using an HttpHandler could simplify an existing design that serves Check Images from an .aspx page.
  • What kinds of events can an HttpModule subscribe to? What influence can they have on an implementation? What can be done without recompiling the ASP.NET Application?
  • Describe ways to present an arbitrary endpoint (URL) and route requests to that endpoint to ASP.NET.
  • Explain how cookies work. Give an example of Cookie abuse.
  • Explain the importance of HttpRequest.ValidateInput()?
  • What kind of data is passed via HTTP Headers?
  • Juxtapose the HTTP verbs GET and POST. What is HEAD?
  • Name and describe at least a half dozen HTTP Status Codes and what they express to the requesting client.
  • How does if-not-modified-since work? How can it be programmatically implemented with ASP.NET?
    Explain <@OutputCache%> and the usage of VaryByParam, VaryByHeader.
  • How does VaryByCustom work?
  • How would one implement ASP.NET HTML output caching, caching outgoing versions of pages generated via all values of q= except where q=5 (as in http://localhost/page.aspx?q=5)?

Developers using XML

  • What is the purpose of XML Namespaces?
  • When is the DOM appropriate for use? When is it not? Are there size limitations?
  • What is the WS-I Basic Profile and why is it important?
  • Write a small XML document that uses a default namespace and a qualified (prefixed) namespace. Include elements from both namespace.
  • What is the one fundamental difference between Elements and Attributes?
  • What is the difference between Well-Formed XML and Valid XML?
  • How would you validate XML using .NET?
  • Why is this almost always a bad idea? When is it a good idea? myXmlDocument.SelectNodes("//mynode");
  • Describe the difference between pull-style parsers (XmlReader) and eventing-readers (Sax)
  • What is the difference between XPathDocument and XmlDocument? Describe situations where one should be used over the other.
  • What is the difference between an XML "Fragment" and an XML "Document."
  • What does it meant to say “the canonical” form of XML?
  • Why is the XML InfoSet specification different from the Xml DOM? What does the InfoSet attempt to solve?
  • Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why?
  • Does System.Xml support DTDs? How?
  • Can any XML Schema be represented as an object graph? Vice versa?