in

SDT Community Server

SDT Forums, Blogs, Photos server.

Floating Heart

No description is bad.

November 2006 - Posts

  • [转贴] 用KMS Server激活Vista Business

    系统安装步骤:
    1. 安装Vista RTM的Business版(用序列号YFKBB-PQJJV-G996G-VWGXY-2V3X8,必须使用这个序列号~)。其他版本不可以连接KMS服务器。
    2. 配置好网络。
    3. 关闭UAC。
    ===============================
    这里或者用下面的方法:
    1. 打开控制面板
    2. 在“User Account and Family settings(用户帐户与家庭设置)”中点击”Add or remove user account”
    3. 选中某一个用户帐户,如Guest。
    4. 在该用户帐户的属性页中,点击”Go to the main User Account page”链接。
    5. 在”Make changes to your user account” 页中,点击”Change security settings” 链接,以更改安全设置
    6. 在”Turn on User Account Control (UAC) to make your computer more secure”页中,去除”Use User Account Control (UAC) to help protect your computer”项的选择,然后按“Ok”按钮。
    7. 您需要重新启动系统。
    8. 要重新启动UAC功能,同样进行此过程,选中”Use User Account Control (UAC) to help protect your computer”项并重启系统即可。===============================   
    4. 按Win键+R,执行如下命令:slmgr.vbs -skms (服务器地址)
    例如:slmgr.vbs -skms yourserver.com:1688
    观察对话框中的信息,查看是否成功。
    5. 进入计算机属性,按联机方式激活。
    6. 激活成功之后可以开启UAC,也可以继续关闭。


    其他说明:
    1. KMS服务器适合各种语言的Vista。
    2. 可以用于激活Business版和Enterprise。其他版本不支持KMS激活。
    3. 激活之后的PC可以断开网络使用,但是180天之内必须再次链接到KMS服务器,不然会恢复到未激活状态。
    4. 可以重复使用Step4来更换KMS服务器地址。


    自己配置服务器:
    我提供的是一个VMWare镜像文件,里面是Vista KMS服务器的全部内容,并且已经连接过了超过25台PC,可以无须连入多台PC激活Vista. 本镜像文件可以在VMWare Workstation 5.5或VMWare Server1.0或更高版本上运行.
    仅供有经验的管理员使用, 你可以用于配置你的内部网络或者公开的网络,供任何人激活用, 但是不可以将本镜像传播到CCF和DRL之外, 或向外人提及本镜像的来源.
    使用的方法不难,下载解压之后,用VMWare打开镜像,尽量不要修改硬件配置(修改太多会导致激活失效),如果VMWare提示要求重新生成UUID,也请选择Always Keep. 可以将VM的网卡Bridge到你的局域网供局域网内的PC激活,也可以建立一条Host only的连接仅供你的PC激活. KMS Server启动之后,无须任何操作即可接受其他PC的网络激活请求,KMS已经以Service的形式运转了,保持开机即可.
    愿意提供公开服务器的朋友,请跟贴,我会把你的服务器信息收集在顶楼的帖子里,方便大家检索.
    最后说一句,此镜像仅供有经验的管理员使用,菜鸟就不要用了(去用别人的服务器更方便),我不对此镜像提供技术支持,如有问题请跟贴,大家可以讨论交流,PM我询问问题的一律不回答了.

    Posted Nov 29 2006, 06:29 PM by wicky with no comments
    Filed under:
  • 女人其实嫁谁都后悔

    女人其实嫁谁都后悔男人总是强调自己的“梦想”,女人择男也有个人条件。比如男的要有前途、要成熟、要疼自己……嫁给哪种男人比较好?让我们一个个看过来:


    嫁给有钱的男人

    食有鱼,出有车,豪华别墅,锦衣丽服,暗香弥漫,这种日子应该很不错的吧?可是,男人挣钱需要时间和精力,有钱的男人不是锱铢必较的商人,就是忙于应酬的权贵。商人的脑子里充满利益,每天算计投入和产出,缺乏温馨。许多年前的那个江州司马早已看透了这种男人的本质——重利轻别离。

    权贵男人的脑子里充满关系,每天衡量着该和谁近,该和谁远,缺乏柔情。有钱的男人往往没时间,会将女人冷落一边。嫁给这种男人的女人,等于嫁给电视机,嫁给美容院,要忍受长久的精神上的空虚,空有一份表面上的华丽,内心的苦涩有谁知道?


    嫁给帅哥

    显然是自取灭亡。帅哥就算有心一生只爱你一人,也顶不住别的女人不管不顾的爱心奉献。帅哥长的帅,艳遇来的快,快的叫你斩不尽杀不绝,春风吹又生,然后你的婚姻就成了一场你方唱罢我登场的闹剧。

    嫁给有闲的男人

    每天都有人陪伴,他事情很少,记性好,你的生日,你们的结婚纪念日,他都会记得一清二楚。他每天按时回家,还做得一手好菜,愿意陪你逛商场,很会教育孩子。你每天生活在他的包围之中,应该了无遗憾了吧?不,这种男人往往能力有限,没有很多的钱,你必须千辛万苦和他一起打拼,才能获得一份温饱生活。看到别的女人养尊处优,年过四十依然面容姣美,十指纤纤,而你年纪轻轻,已经皮肤粗糙,玉手变形,就会不甘心——别人怎么能嫁个“钻石男人”,自己怎么嫁了个破铜烂铁?


    嫁给会说甜言蜜语的男人

    你的心情会格外舒畅,这种男人聪明心细,善于发现女人的美。你换了一个发型,换了一件衣服,甚至换了一种牌子的口红,他都会及时发现,并马上赞美。他会别出心裁地夸奖你透明的耳垂,夸奖你浑圆的脚踝,你会在这种被人欣赏的感觉中陶醉——因为有些美你自己都未发现。可是,你应该清醒一下,这种男人也很善于发现除了你之外的其他女人的美。他会把甜言蜜语说给很多女人听,你甚至都不知道你是第几个听到他甜言蜜语的人。这种男人很危险,一不小心就会在外面竖起几面“彩旗”,在情感上与别人“分一杯羹”,你会内心充满痛苦和耻辱的。


    嫁给朴实的男人

    你尽管可以放心,他对你忠心耿耿,毫无二心,对身边擦肩而过的美女绝对可以目不斜视。可是,这种男人往往迟钝得可怕,你换了一双新款的鞋子一周了,他都没有发现;你问他涂粉色指甲油好还是浅紫色指甲油好,他通常会一脸茫然。嫁给这种缺乏情趣的男人,你会觉得自己的女性之美形同虚设。


    嫁给才子

    这事怎么说呢?先把才子分为出人头地怀才不遇两种。前者的各种翘楚有徐志摩、郁达夫,他们的爱情婚姻都轰动一时,可是结果不甚美妙。才子佳人的组合太旖旎,就会折福。怀才不遇的才子最好别嫁,嫁了也是陪他一起谴责上苍无眼、小人当道、时运不济。怀才不遇者都有股怨气,怨的久了、深了,人也就阴暗了。

    嫁给专业人士

    好象不错,比如律师医生,婚后遇到什么事情都有人护航。这类人较有素质,一般不会发生秀才遇见兵有理说不清的悲剧。可他们通常都很忙,半夜要出诊,假期不见人,而且可能不浪漫,有一种严谨的职业病,把你一个人困在婚姻里哀嚎。


    嫁给教师

    他们很难有升迁机会,不大会给你惊喜。其工作方式就是从低年级向高年级爬,然后直线下跌,周而复始,乐此不疲。他们的优点是每年会有三个月可以做家庭妇男,并且免费为子女做家庭教师。


    你也许会说,嫁给既有钱又有闲,既有情趣又有忠贞不渝的男人,肯定不会后悔。是这样的,但是,世间没有这么完美的男人。即使有,我们也配不上——因为我们自身不够完美。因此,嫁给谁都后悔,我们只能守着一份凡俗的婚姻,谁都不能幸免——因为我们都是有缺点的人。这很无奈,但这就是生活。也许谁都不嫁不后悔。但前提是你受得了形影相吊。
    Posted Nov 28 2006, 12:35 PM by wicky with no comments
    Filed under:
  • How to Force an Update Detection of the AutoUpdate Client

    How to Force an Update Detection of the AutoUpdate Client
        Date: 08 Feb 2003 ~ Author: Scott Korman Scott Korman 

    During normal operations, the Automatic Update client will check-in to the SUS Server every 17 to 22 hours to detect approved updates. It is possible to force the detection process.
    Steps
    1 Stop the "Automatic Updates" Service
    2 Check that the "AUState" registry value, located at:
    HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\
    is set to "2"
    3 Delete the "LastWaitTimeout" registry value, located at:
    HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\
    4 Start the "Automatic Updates" Service.
     
    The Automatic Update client will begin the update detection process in approximately 10 minutes.
    If an admin-priv user is logged on they will be presented with the option to install any updates that downloaded, otherwise the computer will wait for the next scheduled install time.


     

    Posted Nov 23 2006, 03:59 PM by wicky with no comments
    Filed under:
  • Open Source PDF Libraries in C#

    Open Source PDF Libraries in C#



    iTextSharp

    iTextSharp is a library that allows you to generate PDF files on the fly.

    Go To iTextSharp

    SharpPDF

    SharpPDF is a C# library that implements different objects for the creation of PDF documents with few steps. It is created for .NET framework 1.1 and it can create 100% compatible PDF

    Go To SharpPDF

    Report.NET

    Report.NET is a powerful library that will help you to generate PDF documents in a simple and flexible manner. The document can be created with data that have been retrieved from any ADO.NET data set.

    Go To Report.NET

    ASP.NET FO PDF

    FO PDF is similar to ASP.NET Server Controls, written in C#

    Go To ASP.NET FO PDF

    PDFsharp

    PDFsharp is a C# library that easily creates PDF documents on the fly. The same GDI+ like drawing routines can be used to create PDF documents, draw on the screen, or send output to any printer. PDFsharp can also modify, merge, and split existing PDF files or incorporate pages from existing PDF files into new PDF documents.

    Go To PDFsharp

    PDF Clown

    PDF Clown is a C# 2.0 library for reading, manipulating and writing PDF files, with multiple abstraction layers to satisfy different programming styles: from the lower level (PDF object model) to the higher (PDF document structure and content streaming). Its primary target platform is GNU/Linux, but thanks to the Mono project it?s virtually platform-agnostic.

    Go To PDF Clown

  • Error: The constructor to deserialize an object of type 'XXX' was not found.

    You implement ISerializable interface.

    using System.Runtime.Serialization;

    [Serializable]
    class YourClassName { ... }

    You MUST wrote in your derived class this protected constructor for deserialization without any implementation.

    protected YourClassName(SerializationInfo info, StreamingContext context)
                :base(info,context){}

    Now you can serialize and deserialize your collection.

     

  • 2006BT语录

    1.人的一生就象在拉屎,有时你已经很努力了可出来的只是一个屁.
        
    2.小时侯,我家里很穷,没钱买自行车,我只好每天打的上学。初中的时候,因为我成绩太突出,学校领导留我多读了两年。初中毕业后,高中的校长觉得我很有前途,就多收了我三万。高三的时候,班主任认为我已经有独立生存的能力,于是让我退了学。
        
    3.某鲜花店的广告:今日本店的玫瑰售价最为低廉,甚至可以买几朵送给太太。
        
    4.我和超人的唯一区别是把内裤穿在里面了!
        
    5.避孕的效果:不成功,便成“人”。

    6.我不是随便的人!但随便起来就不是人!
        
    7.虽然你是暴牙!别自悲,暴牙很好!暴牙可以刨地瓜,下雨可以遮下巴,喝茶可以隔茶渣,野餐可以当刀叉,你说暴牙是不是顶呱呱!
        
    8.家庭顺治、生活康熙、人品雍正、事业乾隆、万事嘉庆、前途道光、财富咸丰、内外同治、千秋光绪、万众宣统!
        
    9.我是一颗葱,站在风雨中,谁敢拿我沾大酱,X他老祖宗!走过南~闯过北~厕所后面喝过水,火车道上压过腿,还和傻子亲过嘴。上过山、打过虎~少林寺上练过武,左青龙,右白虎,常拿克林顿当二百五,还拿释迦摩尼喂老虎!金字塔上跳过舞,耶稣头上打过鼓.
     
    10.我身在江湖,江湖却没有关于我的传说!
        
        
    11.关于丁字裤:以前,脱下内裤看屁股;现在,拔开屁股看内裤……
        
    12.走别人的路,让别人无路可走!
        
    13.我就像一只趴在玻璃上的苍蝇,前途一片光明,而我却找不到出路.
        
    14.浑人落魄江湖行,东西南北分不清。撞到墙角浑不觉,躺在地上数星星!
        
    15.聽說女人如衣服,兄弟如手足。回想起來,我竟然七手八腳的裸奔了19年!
        
    16.什么是压力
        老婆孩子是压力
        什么是动力
        老婆孩子就是动力
        
    7.宿舍的弟兄决定对张舍监实施以下惩罚:
        让其抱着贴满老中医广告的电线杆,饱含热泪充满深情的大声呐喊:我的病终于有救了啊!
        
    18.插人家洞的是插头,有洞被人家插的是插座!
        
    19.三过女厕所而不入!
        
    20.我,论智商,10个脑筋急转弯马上能答对8个;论学识,10岁时,我已经读了8年的书;论文才,10分钟内,我可以口述一篇美文,照录下来,最多改8个字,就可以拿去发表;论记忆力,10个电话号码只报一遍我就能记住8个;论耐力,上午10点钟的尿,我可以坚持到第二天晚上8点才撤......
        
    21.老鼠从不浪费晚上的时间,而我们人类却浪费了每天的三分之一
        
    22.“什么叫乐观派的人?”“这个……就像茶壶一样,屁股都烧得红红的,他还有心情吹口哨!”
        
    23.宁愿相信世间有鬼,也不相信男人那张破嘴!
        
    24.现在最“损”人的一句话是:“你真TMD是个小日本”
        
    25.没有人值得你流泪,值得你流泪的人不会让你流泪!
        
    26.故意学习,故意工作,故意生活,故意活得像个人!
        
    27.放下你大学生的架子,找碗饭吃先!
        
    28.没什么事不要找我,有事更不用找我!
    Posted Nov 05 2006, 03:30 PM by wicky with 1 comment(s)
    Filed under:
  • Upgrade WSS with SP2 to run with ASP.Net 2.0

    http://support.microsoft.com/kb/894903

    You receive a "The Windows SharePoint Services virtual server has not been configured for use with ASP.NET 2.0.xxxxx.0" error message when you connect to the home page of a Windows SharePoint Services Web site

    function loadTOCNode(){}
    Article ID : 894903
    Last Review : September 7, 2006
    Revision : 3.4

    SYMPTOMS

    loadTOCNode(1, 'symptoms');
    Consider the following scenario. You install Microsoft Windows SharePoint Services on a server. Microsoft Internet Information Services (IIS) 6.0 is configured for use with Microsoft ASP.NET 2.0 on that server. When you connect to the home page of a Windows SharePoint Services Web site, you receive the following error message:
    The Windows SharePoint Services virtual server has not been configured for use with ASP.NET 2.0.xxxxx.0. For more information, please refer to Knowledge Base article 894903 at http://go.microsoft.com/fwlink/?linkid=42660.
    Note that the xxxxx in ASP.NET 2.0.xxxxx.0 indicates the version of ASP.NET 2.0 that you are running.

    CAUSE

    loadTOCNode(1, 'cause');
    ASP.NET 2.0 implements a new security change that helps lock down security for a virtual server in IIS 6.0. In earlier versions of ASP.NET, code runs at the trust level that is assigned to it. The trust level is determined by the code access security policy file. The Wss_minimaltrust.config file is an example of a code access security policy file that is specified in the Web.config file.

    The new security change in ASP.NET 2.0 restricts the permissions of Web pages, Web parts, and controls to the intersection between the ASP.NET PermissionSet and the trust level at which the code runs. In this configuration, the ASP.NET PermissionSet is a declarative representation of a PermissionSet instance. By default, Windows SharePoint Services gives only minimal privileges to the ASP.NET PermissionSet. The security change that is implemented in ASP.NET 2.0 causes some code to run with reduced privileges. For example, code from assemblies in the global assembly cache previously ran at a full-trust level. When you configure the virtual server in IIS 6.0 to use ASP.NET 2.0, the code runs with the privileges that are assigned to the ASP.NET PermissionSet. The lockdown is incompatible with Windows SharePoint Services. Therefore, the lockdown must be disabled in the Web.config file.

    ASP.NET 2.0 also includes a new capability called event validation. Event validation monitors callbacks to the ASP.NET infrastructure to make sure that the source of a callback equals the control target. Some Windows SharePoint Services pages use callbacks that are not associated with a particular control. Callbacks that are not associated with a particular control can cause page execution errors. Therefore, Windows SharePoint Services 2.0 is not compatible with the ASP.NET 2.0 event validation capability. When you configure a Windows SharePoint Services-extended Web application on a server that has ASP.NET 2.0 installed, you must turn off ASP.NET 2.0 event validation.

    RESOLUTION

    loadTOCNode(1, 'resolution');
    Use the Windows SharePoint Services Stsadm.exe command-line tool to update the settings in the Web.config file. To do this, use the following command:
    stsadm -o upgrade -forceupgrade -url http://URLOftheVirtualServer
    The command updates the Web.config file that is located in the root folder of the virtual server. For example, the command updates the Web.config file that is located in the Drive:\Inetpub\Wwwroot folder. The upgrade operation makes the following changes:
    The command adds the processRequestInApplicationTrust attribute to the following trust tag:
    <trust level="WSS_Minimal" originUrl="" />
    After you run the command, the trust tag appears as follows:
    <trust level="WSS_Minimal" originUrl="" processRequestInApplicationTrust="false" />
    The command adds the following element under the pages tag:
    <namespaces> <remove namespace="System.Web.UI.WebControls.WebParts" /> </namespaces>
    The command adds anenableEventValidation attribute to the <pages> tag, where the original tag is as follows:
    <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false"> </pages>
    After the attribute has been added, the tag is as follows:
    <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" enableEventValidation="false"> <namespaces> <remove namespace="System.Web.UI.WebControls.WebParts" /> </namespaces> </pages>

    MORE INFORMATION

    loadTOCNode(1, 'moreinformation');
    If you change the version of ASP.NET that the virtual server uses from ASP.NET 2.0 to ASP.NET 1.1, you must use the Stsadm.exe command-line tool to update the settings in the Web.config file. To do this, use the following command:
    stsadm -o upgrade -forceupgrade -url http://URLOftheVirtualServer
    The command removes the elements that were previously added to the Web.config file. That is, the following changes are made to the Web.config file:
    The command removes the processRequestInApplicationTrust attribute from the following trust tag:
    <trust level="WSS_Minimal" originUrl="" processRequestInApplicationTrust="false" />
    After you run the command, the trust tag appears as follows:
    <trust level="WSS_Minimal" originUrl="" />
    The command removes the following element that is under the pages tag:
    <namespaces> <remove namespace="System.Web.UI.WebControls.WebParts" /> </namespaces>
    If you do not run the command after you configure the virtual server to use ASP.NET 1.1, you receive the following error message:
    Server Error in '/' Application.
    Or, if the CustomErrors feature is enabled, you receive the following error message:
    Unrecognized attribute 'processRequestInApplicationTrust'.

    Source Error:
    Line 66:     <compilation batch="false" debug="false" />
    Line 67:     <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
    Line 68:     <trust level="WSS_Medium" originUrl="" processRequestInApplicationTrust="true"/>
    Line 69:     <machineKey validationKey="A4CE4E781E8FCF0763F6D8309BB2394532B29E2DA9DD555F" decryptionKey="2AF183D38F95610298659AB9E30B9B1B4AC6A6D362D8D5F7" validation="SHA1" />
    Line 70:   </system.web>
    Source File: c:\inetpub\wwwroot\web.config    Line: 68

    REFERENCES

    loadTOCNode(1, 'references');
    For more information about the Stsadm.exe command-line tool, see the "Command-Line Operations" topic, the "Command-Line Parameters" topic, and the Command-Line-Properties" topic in the "Reference" chapter of the Microsoft Windows SharePoint Services Administrator's Guide. To obtain the Microsoft Windows SharePoint Services Administrator's Guide, visit the following Microsoft Web site:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=a637eff6-8224-4b19-a6a4-3e33fa13d230&displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=a637eff6-8224-4b19-a6a4-3e33fa13d230&displaylang=en)

    APPLIES TO
    Microsoft Windows SharePoint Services
    Keywords: 
    kberrmsg kbtshoot kbprb kbconfig KB894903
    Posted Nov 02 2006, 03:41 PM by wicky with no comments
    Filed under:
Copyright SDT, 2006-2009. All rights reserved.