|
Monday, March 24, 2003
New download 新的Microsoft CodeName ,我曾在CSDN纪录了一篇微软产品CodeName文章,但是Bink.nu最近有了新的更新。 详细的见:http://bink.nu/mscodes.htm XCharp有了最新的版本 最新的下载地址:http://www.resolvecorp.com/download.aspx
posted by ccBoy at 3/24/2003 09:32:01 PM
Saturday, March 22, 2003
丢失的痛苦前几天,在疏忽中奇迹般的搞丢了电脑包,当然也包括其中的笔记本电脑,我想也许你经历了就知道这是一种非常难忘的痛苦。你可以丢掉同样的一部新电脑,也可以丢掉同等价格的钱财,但是如果这是一部你主要工作时使用的电脑,而且使用时间超过6个月,那么这种丢失将非常的痛苦:
1.如果没有备份,那么这将是一场恶梦。想想你的记录、你的文档、你的项目、你的代码、你的网址、你网络世界上的标识。 2.丢失了一个熟悉的环境,之后的一个月无论你有无电脑,都将是一个痛苦的适应过程。 3.在装着新电脑的同时大骂盗贼,尽管你知道他可能根本不懂电脑。 4.重做你的工作、恢复你之前的记录、重新编写你的代码、花5倍的时间寻找你网络世界的资源列表。 5.连续的天天上网,试图找回之前你电脑中保存的代码或资源,但无论是否找到,你的感觉一样--焦虑,然后更加痛恨盗贼。 6.悄悄地加班,为丢失的资料和文档加班。 7.赔偿公司的损失,据我所知,一般公司配笔记本电脑给你,这次你赔偿的金额大约在900-1600美金。 8.连带损失。假如你的电脑包了还有你的手机电池和充电器、心爱的鼠标、128M小U盘、iPAQ(这下你惨了)、钥匙或钱包。 9.假如有钱包那么可能你的身份证、信用卡和一些现金都没有了。另外假如有钥匙,你需要飞快的回家,换去家门口的大锁。 10.也许你还会说不止这些,包中还有你三个月的报销凭证比如的士票、酒店住宿、飞机票、火车票和饮食发票...(惨了你真的惨了)
下面是我从中获得的教训:
1.注意备份,记得:尽快的将你的硬盘中的数据备份起来,对于一些常用的网络链接进行备份,因为有些链接丢了,就像和有些人失去联系一样,也许你再也找不到他了。 2.看好你的电脑包,特别是其中有常用的笔记本电脑。 3.不要在自己的电脑包中放入你的钱包和钥匙。 4.及时报销或是习惯不要将票证放在电脑包中,因为它是放电脑的。 5.不要惊慌,保持平静的心情。按步就搬的做完所有善后的工作,一天不行就多做几天。 6.坚持你的WebLog,记下你的心情。 7.不要忘了去当地的派出所或公安局报案。 8.回到家了记得拥抱你的亲人和小狗。 9.列出清单,尽快补充和采集丢失的信息或资源。 10.先恢复你的工作和状态,再恢复你网络世界的一切。
当然如果有你的朋友、你的同事的帮助我想你不会孤单。
posted by ccBoy at 3/22/2003 11:46:06 PM
Sunday, March 09, 2003
微软的工作开始细致起来现在如果你Download或成为微软的测试用户,微软会给你一个调查的机会看你是否进行了测试,同时给他们的工作提出建议,看来不错啊 Dear Qiang, During the past year, you downloaded 120-day trial version(s) of Microsoft(R) .NET connected software. That puts you in a unique position to help us improve our evaluation process. Our goal is to provide the most thorough evaluation environment possible. With your help, we believe we can achieve that goal. Please take a few minutes to complete a brief survey of your software evaluation by clicking the link below: http://email.microsoft.com/m/s.asp?HB8425341203X2290011X169322X To demonstrate our thanks, we'll provide you with information on Microsoft .NET connected software - the latest improvements and capabilities that can help you improve enterprise agility and meet your business challenges. You'll also be able to enter for a chance to win an Olympus C-3020 Zoom 3.3 megapixel camera! The information you provide will not be shared with any third parties or used for additional marketing without your consent. 但愿每个填写调查的人都中奖吧。似乎很久没有中奖了:)
posted by ccBoy at 3/9/2003 10:02:39 PM
Embedding resources Usually a bitmap will be embedded into your assembly automatically, just by being associated with a property of a Form using the designer. But there are many circumstances where you may want to embed a bitmap (or other resource) without associating it with any particular Form. You can do this in Visual Studio .NET by right clicking the project of interest and selecting the 'Add Existing Item' option. Navigate to your bitmap and selecting it will make it appear in your project details. Now select the bitmap and modify the 'Build' property to become 'Embed as resource'. Rebuild your project and then use the ILDAsm.exe utility to examine the manifest for your built assembly. You will now see that the bitmap has been added as a resource. To extract this resource at runtime is not obvious but only involves three steps:
// Get the assembly we are built into Assembly myAssembly = Assembly.GetAssembly(Type.GetType("MyNamespace.ThisClass")); // Get the resource stream containing the embedded resource Stream imageStream = myAssembly.GetManifestResourceStream("Example.bmp");
// Load the bitmap from the stream Bitmap pics = new Bitmap(imageStream);
The first line of code is used to get a reference to the assembly this code is built into. In your own code you should substitute the 'MyNamespace.ThisClass' string for the fully qualified name of the class the code is inside. The second line requests from the assembly a stream that contains the contents of the named resource. This name will need to match the name that appears when using the ILDAsm.exe utility. Visual Studio will create this name as the default namespace appended with the name of the file. If your code generates an exception at this point then double check the name you provide exactly matches that inside the manifest.
The last line of code is obvious and simply uses the Bitmap constructor that takes as input a Stream.
If you prefer to build your projects manually without Visual Studio then you can still use the same technique. Just use the /resource:Example.bmp option in your csc command to cause the bitmap to be embedded. In which case the name in the manifest will exactly match the resource filename rather than be modified by Visual Studio. System color changes Having written a new Control you now want it to be drawn in the correct colors depending on the current display settings. You can easily get hold of colors using the SystemColors class and other display values using SystemInformation. But you also need to be notified when these values change because the user has selected a different scheme or theme. Using the following code to hook into the event generated when this change occurs: -
public MyConstructor() { // Hook into system event for users preferences changes Microsoft.Win32.SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(OnPreferenceChanged); }
protected void OnPreferenceChanged(object sender, UserPreferenceChangedEventArgs e) { switch(e.Category) { case UserPreferenceCategory.Color: // Update my colors, brushes, pens etc... break } } form http://www.dotnetmagic.com/article_tipstricks.html
posted by ccBoy at 3/9/2003 09:34:11 PM
(Visual C++ .NET 2003 Top 10 Reasons)Microsoft Visual C++ .NET 2003, part of Visual Studio .NET Professional, Enterprise Developer and Enterprise Architect editions, is the latest version of Visual C++ built specifically for existing Visual C++ developers who demand the absolute best software development experience. In addition to providing more control, power, performance and code-security, Visual C++ .NET provides key enhancements that solve the most pressing challenges that Visual C++ developers face today. From all new compiler optimizations and features, dramatically increased ISO conformance, enhanced libraries, support for Microsoft .NET and XML Web Services, to the updated Integrated Development Environment, Visual C++ .NET delivers the top requested features to drive the next generation of C++ applications.
98% Conformance to the ISO C++ Standard Visual C++ .NET 2003 is Microsoft’s most conformant ISO C++ compiler ever, with new support for such Standard-defined features as Partial Template Specialization and Partial Ordering of Function Templates. With a multitude of new language features, you can easily build and use popular and modern community-written libraries including Boost, Blitz, and Loki. Advanced language features defined by the Standard enable developers with more powerful options for implementing common OO patterns and ultimately simplifying code while increasing its reusability.
New and Improved Compiler Optimizations The Visual C++ .NET 2003 compiler offers developers a range of new and improved compiler optimizations, including /G7 for generating optimized code for Intel Pentium IV and AMD Athlon processors. Also new is the ability to specifically optimize for processors supporting Streaming SIMD Extensions (both SSE and SSE2). Whole Program Optimization, which allows the compiler to perform optimizations using information on all modules in the program, is improved with new capabilities including Dead Parameter Removal. Compiling existing and new code with Visual C++ .NET 2003 often results in dramatic increases in application performance for very little cost.
New Windows Forms Designer Visual C++ .NET 2003 now includes support for creating Windows Forms using the same Rapid Application Development (RAD) techniques first introduced with Visual Basic .NET and Visual C#. Using control anchoring and docking, programmers can build resizable forms automatically without the need for complex resize code. The in-place menu editor enables developers to visually author menus directly from the Windows Forms Designer. And, simplified localization and accessibility expand the reach of your rich Windows-based applications.
Enhanced Buffer Security Checks More often developers are being called upon to ensure the security and integrity of the applications they write. Secure coding practices enable developers to mitigate many risks, but some problem code will always exist. Visual C++ .NET 2003 offers ‘/GS’, an improved compiler feature (now with an expanded repertoire of attack-thwarting abilities) that serves the developer as a ‘backup parachute’, catching some of the more common attacks against source code. /GS is not intended to be a silver-bullet in attaining secure applications, but it does help protect code and can make a bad situation less destructive.
Security Reviewed Libraries As part of Microsoft’s Trustworthy Computing Initiative, the STL, ATL, MFC, and CRT libraries that ship with Visual C++ .NET 2003 have undergone scrutinizing review to identify and reduce potential security flaws. Additionally, the MFC runtime and the C Runtime Library (CRT) are now compiled with /GS to increase their resistance against attack.
Target the new Microsoft .NET Framework 1.1 The .NET Framework 1.1 provides several enhancements over the .NET Framework 1.0 including better scalability and performance. Of all the languages enabled on the Microsoft .NET Framework, Visual C++ offers developers the easiest path forward and extremely powerful features for targeting the platform. Existing C++ code is easily recompiled for .NET without modification, and developers are able to immediately begin using the powerful .NET Framework classes with familiar C++ syntax.
Expanded Documentation with All New Code Examples Key areas of the Visual C++ and .NET Framework documentation are enhanced in Visual C++ .NET 2003 with additional information and code samples, ready to copy and paste into your own projects.
Revamped Compiler Diagnostics Visual C++ .NET 2003 simplifies previously complex compiler diagnostics and warnings to more discernable messages, referencing locations in your own code rather than the deep recesses of a template library. Also see improved and complete template-stack instantiation diagnostics with default-template arguments omitted for improved readability.
Improved Debugging Experience With Visual Studio .NET 2003, C++ debugging has never been easier or more powerful. Now enhanced with improved managed-code and cross-language debugging capabilities, the Visual Studio .NET debugger is second to none. The debugger is so useful that C++ application developers in mid product-cycle often begin using the tool on their project before upgrading the compiler itself (most Visual Studio .NET debugger features work against VC6-genereated applications).
Refined Integrated Development Environment (IDE) Microsoft’s award winning IDE is refined in Visual Studio .NET 2003 with improved C++ project system, IntelliSense, and resource-editor features. Fully integrated with other .NET languages, the Visual Studio .NET IDE provides C++ developers with a slew of the best-in-class code editors, resource-editors, integrated debugging tools, macro and add-in capabilities, and much more.
posted by ccBoy at 3/9/2003 09:21:54 PM
Saturday, March 08, 2003
Visual C++ & Herb Sutter & Stan Lippman C++ luminary Herb Sutter has joined Microsoft's Developer Platform and Evangelism Division as liaison to the C++ developer community. What does he plan do for you? What does he plan to do for C++? Our C++ Pro, Danny Kalev, interviewed Herb Sutter about his new job, the role of C++ in the .NET framework, and the current state of C++. Man, with Stan Lippman and Herb Sutter both on the MS C++ team, I am extremely excited about the future of this product!
I like this:
My job definitely includes giving direct input into the feature set for future releases of Visual C++, to make sure that the product has what the C++ community needs. Note that by "the C++ community," I mean everyone who works for or with C++, on all compilers and platforms?that includes in-the-trenches systems and application developers, developers of C++ community libraries like Boost and Loki, the C++ standards committee, C++ book and magazine authors, and anyone else plugged into C++.
and:
The other big part of my job is to see how we can better contribute to the global C++ community. That includes doing things like taking cool and useful libraries developed internally in places like Microsoft Research and contributing them for the community to use, whether that's by contributing them to community libraries or via MSDN or some other route.
I've never heard that. The short answer is that I don't take on jobs as PR stunts. Neither, I am sure, do people like Stan Lippman and Don Box. We're at Microsoft because we're excited about Microsoft's C++ direction and about .NET.
Q: Considering Microsoft's strong emphasis on C# these days, what is the role of C++ in their .NET Framework?
A: C++ continues to be the dominant language for most kinds of development on Windows. In the .NET world, C++ is still the best-performing language for most development work. The need for a flexible programming language that can handle everything from high-level abstraction to bit-twiddling, all unified within the same language, isn't going away anytime soon. Other useful programming languages, including C#, will continue to be useful for the kinds of things they're designed to do. I certainly hope that C# will be the destination of choice for a lot of today's Visual Basic application developers. That would be quite a step forward. For systems programming, C++ is still tough to beat despite all the naysayers' wishful thinking that C++ will just roll over and go away. Even in its first incarnation, Managed C++ is the best .NET programming language for creating efficient, performance-oriented applications, and Managed C++ will continue to be improved to increase its overlap with Standard C++.
For about six years now, certain vendors and many so-called industry experts have constantly predicted Java use to overtake C++ use "within two years." It always seems to be "within two years," for some reason. I first heard that kind of claim around 1996. Today, six years later, about 3 million of the approximately 9.5 million software developers worldwide use C++. Java still comes in a distant second or third at about 50 percent to 70 percent of the C++ developer numbers, depending on which study you look at.
posted by ccBoy at 3/8/2003 04:53:16 PM
Thursday, March 06, 2003
我的总理-朱镕基毫无疑问,他会影响许许多多的人,但不可能否认的是,我会被他深深的影响,超过任何人,甚至在报纸上看到他的平凡事迹是都会莫名的感动和沸腾,尽管是两个世界的人,但仍我庆幸我生于70年代,高兴见证于他的旗帜气质。 我拿了公司今天的《南方都市报》,因为报纸上有纪录他的文字和照片。我喜欢他,更敬佩他,我的总理-朱镕基
posted by ccBoy at 3/6/2003 09:12:09 PM
Wednesday, March 05, 2003
OS & .NET FrameworkHere are all the OS products that I currently know of that include the .NET Framework: Window XP Table PC Edition - V1.0 of the .NET Framework Window XP Service Pack 1 - V1.0 is an optional install as part of the service pack Windows Server 2003 - V1.1 of the framework is installed by default, however, according to Charles Cook, "The 64-bit version of Windows Server 2003 doesn't ship with the .NET Framework.". Can anyone confirm this? Updates from the comments:
Windows XP Media Center Edition - V1.0 of the .NET Framework 64 Bit Windows Server 2003 does NOT contain the .NET Framework
Window CE .NET 4.1 includes the beta framework Pocket PCs will soon ship with the framework
Windows Server 2003 我喜欢的Server的信息 I must admit, the Microsoft security push is more than just marketing mojo. Take a look at Windows Server 2003.
* There are over 20 services that are not started by default. * IIS isn't installed by default (a good thing). * When you install IIS, front page server extensions aren't installed by default. * IIS6 has been recompiled with the /GS switch to prevent many buffer overrun attacks. (ok, it makes me a little (uncomfortable to hear MS say "we've prevented buffer overruns that we don't even know are there!", but it's still better than no /GS) * Web sites run as Network Service by default (including ASP.NET web sites), and Network Service has pretty restricted permissions. * No network authentication for accounts with blank passwords. MS stopped production for 2 months and examining every single line of code, documented and fixed a bunch of threats.
I'm a huge MSFT fan, and I'm very excited about Windows Server 2003. But for it to be truly secure, to the point where I can use it in a Financial arena, it still needs an Security Expert to lock it down and really harden it. It's not completely locked down by default. This is why we need to be completely aware of what it does and doesn't. And certainly the same goes for Linux. Linux is fairly locked to start, but it depends on the distro.
Here's a just a few things to think about removing or locking down with a Windows Server 2003 default install. I want people to go into this with their eyes OPEN. We have extensive security lock down checklists, and a team of specialists (I'm mean that they live and breathe this), as everyone should have for every OS within their company.
This is only about 5% of the things that we do to truly lock down a Windows Server 2003 box for hosting a Web Application:
* Remove SMTP service * Remove Update Root Certificates * Disable Alerter * Disable Applicaiton Layer Gateway Service * Disable Automatic Updates (I'm surprised that someone let that go in enabled!) * Disable Computer Browser * Disable File Replication * Disable Help and Support * Disable Indexing * Disable Messenger * Disable Remote Registry * Disable Volume Shadow Copy * Disable Window Audio * Disable Windows Image Acquisition (what were they thinking for a Server OS?) * Disable Wireless Configuration No doubt, Windows Server 2003 ships more locked down than Windows 2000, but don't let yourself get lulled into a sense of security. You can't just install and go. Slammer was a perfect example that the software is only 1% of it, and the other 99% was knowing how to configure and update it. (from Scott Hanselman's )
无论MS做了些什么,也无论安全改善了什么,或许除了MS并不是所有人都会看在眼里放在心里。在看到下面的信息后我有些难过和无奈。
Dear Bill Gates Scoble has an entertaining piece on an alternative Linux strategy for Microsoft. I'd personally like a Linux sub-system on Windows, i.e like Interix or whatever it is called these days. No more Linux installation hassles, dual-booting, or worrying whether Linux will run on the laptop you're going to buy. One possible drawback: the GPL might mean they also have to supply the source code for Windows. But didn't I read somewhere that they're planning to do that anyway for half the world's population, because the Chinese government will only endorse an OS for which the source code is available? ( from Charles Cook's Weblog ) 我感到有些无奈,中国政府的某些行为过激了。政府采购已经离开了它原来的本意..(好了,原谅我,我们不谈政治)
我该暂时离开网络 下线了,晚安!
posted by ccBoy at 3/5/2003 12:48:46 AM
Monday, March 03, 2003
Windows Server 2003RTM - Release To Manufacturing AR - Authorized Replicator. A company that actually produces the Microsoft product: makes the physical CD from a master, prints the book, box or other things put in the package. GTM - Go To Market JDP - Joint Development Partner. The major partners doing development and testing on the software. IBM, HP and a few others are JDP's. Windows Server 2003 Build 3778, built last week and originally intended for Escrow and RTM, did not make it. A small flaw was found and the Microsoft development team together with JDP's decided to give it all a few more days (builds).
Current build to be targeted for Escrow is build 3780, finished this morning.
Since early this year "March 12, 2003" has been the date targeted as "RTM day" for Windows Server 2003, meaning that the code "on hand" that day really is delivered to manufacturing. Last week it was decided to postpone RTM and give the development and test-teams another week. The new RTM date for Windows Server 2003 is March 19, 2003.
This will not delay GTM activities or the official release of the product targeted to be April 24, 2003 when the products will be available in retail and OEM versions. But it will cause minor problems for AR's as the AR's will have one week less to produce the CD media that goes into the finished package.
The final build number of Windows Server 2003 is currently not known, but it might very well be "rounded off" to a higher and nicer looking number. This was the case of Windows XP when quite a few build numbers were "lost" as build 2600 was made.
Add search shortcuts to your IE In IE5.x you could lookup MS knowledge base articles quickly by typing: "MSKB q123455" without quotes in the address bar. In ie6 it is removed, but it is a feature! Which can be enabled in IE and not only for MS KB but any search site. save underneath text in regfile and merge it.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSKB] @="http://support.microsoft.com/?kbid=%s"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\AV] @="http://www.altavista.com/sites/search/web?q=%s"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\Ggl] @="http://www.google.com/search?q=%s"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSN] @="http://search.msn.com/results.asp?q=%s"
posted by ccBoy at 3/3/2003 02:00:01 PM
Saturday, March 01, 2003
C# / JAVA Socket ProgrammingBy Pramod AchuthanKutty This example demonstrates how a c# client application can establish itself in a socket connection with a java server application through TCP/IP connectivity.
The example involves the attributes:
C# client namespaces ---------------- 1.System 2.System.Net.Sockets 3.System.IO;
java packages -------------- 1.java.net 2.java.io Java server Application ------------------
import java.net.*; import java.io.*; public class java_server { public static void main(String h[]) { try { ServerSocket ss=new ServerSocket(1800); Socket s=ss.accept(); System.out.println("Client Accepted"); BufferedReader br=new BufferedReader(new InputStreamReader(s.getInputStream())); System.out.println(br.readLine()); PrintWriter wr=new PrintWriter(new OutputStreamWriter(s.getOutputStream()),true); wr.println("Welcome to Socket Programming"); }catch(Exception e){System.out.println(e);} } }
compile >javac java_server.java
C# client Application --------------------
using System; using System.Net.Sockets; using System.IO; class csharp_client { public static void Main(string[] args) { try{ TcpClient tc=new TcpClient("server",1800);// in the place of server, enter your java server's hostname or Ip Console.WriteLine("Server invoked"); NetworkStream ns=tc.GetStream(); StreamWriter sw=new StreamWriter(ns); sw.WriteLine("My name is Pramod.A"); sw.Flush(); StreamReader sr=new StreamReader(ns); Console.WriteLine(sr.ReadLine()); }catch(Exception e){Console.WriteLine(e);} }
} Compile using the command >csc /r:System.dll csharp_client.cs
After compilation, run the java server first >java java_server
Then run the c# client application >csharp_client
The java server receives the following message >Client Accepted >My name is Pramod.A
The c# client receives the following message >Server Invoked >Welcome to Socket Programming
This example demonstrates how a c# client can communicate with a java server or vice versa through its own TCP/IP implemented socket classes;
posted by ccBoy at 3/1/2003 06:56:44 PM
保护你的眼睛Windows XP is Microsoft's first operating system release to include system wide ClearType support. Use our updated ClearType Web interface to activate ClearType, and to tune your ClearType settings. 或使用下面的连接,第一激活你底ClearType,然后在第二步选择你喜欢的Style http://www.microsoft.com/windowsxp/pro/using/howto/customize/cleartype/tuner/default.asp http://www.microsoft.com/windowsxp/pro/using/howto/customize/cleartype/tuner/tunerstep2.asp Microsoft Visual Studio.NET Server Explorer Extensions for Active Directory http://download.microsoft.com/download/1/b/6/1b698bb3-24d1-497b-9c90-cc9430258f53/adse.msi
ASP.NET upload http://www.stardeveloper.com/articles/display.html?article=2003022601&page=1
WinForm DataGrid的立即打印
 但同样需要你定制一些,因为这种格式不符合中国的打印格式:)
很喜欢《无间道》,特别是周末看看,想一想有关生死、善恶的考虑,也许有时我们是不得不做某种选择,但也许我们依然要尊崇善恶的本性

posted by ccBoy at 3/1/2003 06:48:39 PM
|