今年夏天

随便写写,我的网络生活.

  DonewsBlog  |  Donews首页  |  Donews社区  |  Donews邮箱  |  我的首页  |  联系作者  |  聚合   |  登录
  249篇文章 :: 3篇收藏:: 239篇评论:: 28个Trackbacks

公告

[收藏]365Key|和讯网摘|博采|VIVI|狐摘

Bloglines订阅 Newsgator订阅 My Msn订阅 My Yahoo订阅 Rojo订阅 gougou订阅 周博通订阅 博阅订阅 Rsshow订阅 Google Reader

文章

收藏

相册

技术

相关参考

友情链接

存档


正在读取评论……


2006年01月


Google.cn推出,试用了一下。我用了两个最猖獗、最滑稽的词搜索,都可以畅通无阻(没有被屏蔽IP),而且结果都是歌功颂德的内容居多,忍俊不禁啊。

如同一只宠物,摇头摆尾的,不过还是挺可爱的,至少我不用再担心我搜索学习资料而碰到波折了。之所以不用百度,是因为他在英文网页方面的捉襟见肘。另外就是他的广告真是不尽其极啊,和当前社会的状态很相符合,想赚钱想疯了,做梦都乐醒了。(《武林外传》语)

其实Google这样做,是市场行为,我们也没有必要指责他委曲求全的立场,毕竟这样的事情也是司空见惯的。

只是想这种皇帝新装的感觉什么时候才能恢复到理智的状态呢?过滤了某些信息又会怎样呢,常常讲“清者自清,浊者自浊”的大道理,原来都是让别人听的。

可怜的《无间道》,才明白它的重重机关。




原文:http://virtualkarma.blogspot.com/2006/01/30-second-tutorial-post-to-blogger.html
This is a short tutorial that will teach you how to post to a blogger account from your .Net application. The code is in Visual basic.

Sept 1: Use Atomizer

Get Atomizer. Drop Atomizer.dll in the bin folder of your application.

Step 2: Create the Atom instance

atomEndPoint = "https://www.blogger.com/atom/"

generator = New generatorType
generator.url = "http://www.newster.net"
generator.Value = "NewsterToolSample"
generator.version = "1.0"

Dim Atom As Atom
Atom = Atom.Create(New Uri(atomEndPoint), generator, "username", "password")

step 3: Get the services from the Atom instance

Dim services As Array
services = Atom.GetServices()

Dim postURL As New String("")
postURL = service.postURL

Step 4: Post

Atom.PostBlogEntry(postURL, " Title of your article ", "body of your article", "")

Thats it.

Here is a working example and here is the source code for the working example.

I have used the above technique in the first version of Newster.net. For those of you who are not familiar with Newster.net, it’s a news aggregating application. I had shared hosting with Brinkster and it worked just fine. Just drop the Atomizer dll in the bin folder and use the above code.




    摘要:

国内不能访问blogspot,所以转载一下。
原文http://virtualkarma.blogspot.com/2006/01/complete-list-of-web-20-applications.html

Following is an alphabetically sorted list of popular Web 2.0 applications. The description for each of the application is taken from their own About or FAQ pages.

此处阅读全文




一直觉得Google地图对于中国的信息,提供的太单薄,极不能满足我想利用WEB API搞些小东西的需要。所以总是撒莫着国内的网上地图能够提供类似的服务。

终于今天发现了我要地图,打响了新春的第一炮,不过它也声明了,免费是有可能被加广告的。升级为VIP才会得到技术支持,并且保证使用的稳定性,呵呵。

如何使用,请详见API文档,等我尝试成功,也会向大家公布。不过,怎么也是年后的事情了。

参考链接:城市电子地图站点 推荐




原文:http://www.codeproject.com/vb/net/RSPrintLandscape.asp (找了一天的时间,呵呵)

部分代码:

private void Send2Printer(string fileName)
  {
   Process p = new Process();

   try
   {
    p.StartInfo.FileName = fileName;
    p.StartInfo.WorkingDirectory =( new  FileInfo(fileName)).DirectoryName;
    p.StartInfo.CreateNoWindow = true;
    p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    p.StartInfo.Verb = "Print";
    p.Start();

    if(!p.HasExited)
    {
     p.WaitForInputIdle(10000);
     int i = 1;
     bool running = true;

     while (running && i<=20)
     {
      System.Threading.Thread.Sleep(500);
      if(p.HasExited)
      {
       running = false;
      }
      else
      {
       running = !p.CloseMainWindow();
      }
     
      i++;
     }

     if ( running && !p.HasExited )
      p.Kill();

    }
 
    p.Dispose();

       }
   catch(Exception ee)
   {
   }
  }