今年夏天

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

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

公告

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

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

文章

收藏

相册

技术

相关参考

友情链接

存档


正在读取评论……


2006年04月19日

看新闻一直就是新浪新闻,自从2000年悉尼奥运的时候开始关注赛况开始。之前是雅虎,现在已经基本倒掉了,称之为资讯,我基本不看。

还说新浪新闻,更新及时,覆盖广泛,特别是首页新闻条目归纳整理的很细致,阅读起来方便。当然广告也造成了很大的阅读障碍,但大家为了生存也无可厚非,况且我们可以使用一些方法来屏蔽广告。

自从新浪博客推出后,新闻链接中往往会链接到名人博客,让我如坠云雾。尽管某些新闻撰写的水平很低、或者报道的和事实有出入,但就性质而言,博客和新闻还是有本质的区别。

最起码新闻是第三人发表的,基本上具有新闻的几个要素:时间、地点、人物、事件的原委,而博客文章往往散的可以,大谈心理感受,但看了半天都不知道所以然。

目前这种情况应该只存在于娱乐新闻版面吧,所以还算可以忍受,并不是说明星们的书写能力差,只是他们喜欢与众不同一些,或者来个所谓的自曝隐私,这样才觉得对得起粉丝。[ 第一次用“粉丝”这个词,庆祝一下,呵呵。]

不知道以后会不会在技术版面、文化版面也出现类似的情况,进一步说如果政府官员也开博了……有点可怕,我真的希望新闻就是新闻,博客就是博客。

其实博客的出现大大的推动了新闻自由,和民众的新闻创作热情,不过当新闻媒体进行采用的时候,都是由记者进行播发的。

或者说新浪新闻应该改个名字,以正视听?



2006年04月18日

<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\Documents and Settings\wwang\My Documents\Visual Studio Projects\ModelTransform\Log.txt" />
<add name="secondListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\Documents and Settings\wwang\My Documents\Visual Studio Projects\ModelTransform\Log2.txt" />
</listeners>
</trace>
</system.diagnostics>


2006年02月23日


    摘要:同事告诉我的,用Insert Into插入表中,再利用。另外一个办法他说复杂,我就没有听,呵呵。 好像是系统函数。    (全文共57字)——点击此处阅读全文


2006年01月26日

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.

此处阅读全文



2006年01月16日

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

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

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

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



2006年01月06日

原文: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)
   {
   }
  }



2005年12月12日

今天才看懂这个网站http://www.squidoo.com/是干什么用的,原来是自己规划一个主题,然后根据这个主题整理相关的网络资源(文章、网站、图书等),是bookmark的一个set,或者说是album吧。总之和Tag那种松散式的管理不太一样。按照网站的说法,每个人都有可能擅长某个领域,那就为这个领域建立一个主题(Len),聚焦于此进行知识的分享。

下面是它的主题Top100: http://www.squidoo.com/browse/top_lenses

  1. Get Paid by Terry C.
  2. The Long Tail by Chris Anderson
  3. Colors make the web go 'round by Derek Punsalan
  4. Graphic Design by J Jeffryes
  5. What you need (okay, want) to know about Seth Godin by seth godin
  6. Introduction to Information Architecture by Austin Govella
  7. Programming & Web Design by Daniel Moxon
  8. Musings of a venture capitalist in New York City by Fred Wilson
  9. Sudoku by Ray Daly
  10. Account Planning School Of The Web by russell davies


2005年12月02日

http://www.dustindiaz.com/top-ten-javascript/
  • addEvent() 动态为Element增加事件所调用的函数
  • addLoadEvent() 增加OnLoad事件调用的函数
  • getElementsByClass()通过Class来查找对应的Element集合
  • cssQuery()通过Css样式的属性来查找Dom对象,这是一个开源的js。
  • toggle() 某个对象的隐藏、显示的切换
  • insertAfter() 在某个对象之前添加一个对象
  • inArray() 是否存在于这个Array中?不知道怎么用,呵呵
  • getCookie() 获得“饼干”
  • setCookie() 设置“饼干”
  • deleteCookie() 删除“饼干”