10.28.04
Post From Code Library
测试测试,介个东西还是挺好用的,Code Library for .NET
我会努力做一只快乐孤独的小猪:饥来吃饭,困来即眠!
Google推出的新的对本地文件进行search的工具,不但可以用filetype搜索Word、Excel、PowerPoint之类
而且还支持Outlook的邮件、AIM的聊天记录,以及IE的Cache和历史记录,有意思。
Google Desktop Search是在电脑Idle的时候进行search,装了一下貌似不错,呵呵
Updated:原来的代理脚本有问题,开着代理不能用Google Desktop Search,现在已经改过了,呵呵
挺好使的,http://www.csharpfriends.com/Demos/color_code.aspx,下面是一段测试代码!
using System;
using System.IO;
namespace RemoveBlankLine
{
class RemoveBlankLineApp
{
static void Main(string[] args){
if(args.Length!=1){
Console.WriteLine(“Usage: RemoveBlankLine.exe mycode.cs”);
}
else
{
StreamReader reader=null;
StreamWriter writer=null;
try
{
reader=new StreamReader(args[0]);
writer=new StreamWriter(“new.”+args[0],false);
string line=reader.ReadLine();
while(line!=null){
if(line.Trim().Length>0){
writer.WriteLine(line);
}
line=reader.ReadLine();
}
}
catch(Exception e){
Console.Write(“Exit with error.\r\n\r\n”+e.ToString());
}
finally{
if(reader!=null){
reader.Close();
}
if(writer!=null){
writer.Close();
}
}
}
}
}
}
一不小心看到http://blog.syva.net的PageRank居然有2了,哈哈。
同时,bohr和bluelava的blog也都有1了。
Update:关于PageRank的简单介绍
发现Scott写的很有趣,zz一下子:
Greetings, developerWorks readers.
A few weeks ago, while seeking to distract my very pregnant wife who was anxious for labor to start, I suggested we wander through some model houses in a nearby upscale neighborhood. It was fun. I was especially impressed by one model that offered a swimming pool, in-home movie theater, and free golf cart, all for only $780,000 USD. I mean, who wouldn’t shell out three quarters of a million to get that free golf cart, right? What I couldn’t understand was why 4800 square feet only netted you 3 bedrooms.
This past week, developerWorks celebrated five years of serving up great developer content to a fast-growing group of readers. We may not offer free golf carts, but you won’t find any wasted space either. See highlights this week on testing across multiple platform architectures with Rational TestManager, constructing a reliable Web service, designing software architectures, and more on statistical programming with R.
Speaking of strange promotions, has anyone out there ever actually gone on one of those 3 days/4 nights paid vacations that you are supposed to win if you only visit the time-share condos? I think anyone whose marketing data pegs me as a time-share kind of guy needs to go back to running a lemonade stand.
Until next time,
Scott Laningham
很难说,哪个对哪个错,但是结果通常是前一种和后一种成了好朋友,一个愿打,一个愿挨!