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插入表中,再利用。另外一个办法他说复杂,我就没有听,呵呵。 好像是系统函数。

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.

43 Things
43 Things is great for making a list of goals. It’s a way of connecting with other enthusiasts interested in everything from watching a space shuttle launch to grow my own vegetables.

Allmydata
Allmydata harnesses the power of grid storage technology to securely store your email, photos, music, movies and more.

Backpack
Make a page out of an idea. Then add free-form text, to-dos, notes, photos, files. Share pages with other people. Set email and mobile phone reminders so you don’t forget.

Basecamp
Basecamp is a unique project collaboration tool. Projects don’t fail from a lack of charts, graphs, or reports, they fail from a lack of communication and collaboration. Basecamp makes it simple to communicate and collaborate on projects.

BlinkList
Import and manage Your Bookmarks – in the Blink of an Eye. Create Watch lists to See What Your Friends Are Discovering Online. Follow the Wisdom of Crowds and Discover What’s Hot Now.

Blogniscient
We categorize and rank blog articles and blogs in real time, providing up-to-date information on the hottest blog entries.

CalendarHub
Create a Calendar That You Can Access from Anywhere. Keep it private, share it with others or publish it on the Web

Central Desktop
Central Desktop is ideal for teams and businesses that operate in distributed locations or virtual office environments.

clipmarks
Clip and save just the stuff you want from any web page. Create your personal online collection of clipmarks. Tag them with keywords, add your own comments and share them with friends. Search the Public Clipmarks to see what’s being clipped and who is clipping it.

Democracy 2.0
Democracy 2.0 is a political science research project dedicated to effecting Pervasive Democracy and direct, nonpartisan resolution of community issues in U.S. states and localities.

Digg
Digg is a technology news website that combines social bookmarking, blogging, RSS, and non-hierarchical editorial control. With digg, users submit stories for review, but rather than allow an editor to decide which stories go on the homepage, the users do.

del.icio.us
del.icio.us is a collection of favorites – yours and everyone else’s. Use del.icio.us to keep links, share favorites with friends, family, and colleagues, discover new things.

Findory
Our personalization technology builds a homepage for each reader, recommending content based on what they’ve read and what new content is being published. We crawl through thousands of news and blogs articles so you don’t have to.

Flickr
Flickr – almost certainly the best online photo management and sharing application in the world – has two main goals: 1. We want to help people make their photos available to the people who matter to them. 2. We want to enable new ways of organizing photos.

gabbr
Instead of having multiple blogs across multiple sites, gabbr allows bloggers from all types of blogs to submit their thoughts for discussion in a centralized location. The blog entries are also mirrored on the original blog authors website.

Gmail
Gmail is an experiment in a new kind of webmail, built on the idea that you should never have to delete mail and you should always be able to find the message you want.

Google Maps
Maps are great for getting around, but online maps could be a lot better. So Google decided to make dynamic, interactive maps that are draggable — no clicking and waiting for graphics to reload each time you want to view the adjacent parts of a map.

Kiko
Slow, featureless online calendars are so Web 1.0. Kiko is a cool new web calendar that delivers all the functionality of desktop calendar software, and all the convenience of online access. And it’s free!

meebo
We hope that meebo makes everyone’s online life a little easier (and more fun!) by aggregating all of your IM accounts in one place, cleaning up all of your chat windows into a single window, and the best part — no software.

memeorandum
The Web is humming with discussions on politics and current affairs. memeorandum is page A1 for these conversations. Auto-updated every 5 minutes, it uncovers the most relevant items from thousands of news sites and weblogs.

Netvibes
Netvibes.com is a customizable web 2.0 homepage solution. This service is free and gives you the user the ability: To create a personalized page with the content you like. To put together data feeds and services from web 2.0 applications with a very simple interface. To access your page anytime and from any computer.

Omnidrive
Omnidrive is what you expect hosted storage to be – easy to use, accessible from anywhere and unrestrictive. Omnidrive will make your life easier by allowing you to store, access and stream your files from almost any web connected platform.

Protopage
Protopage = personalized news + sticky notes + bookmarks, all on one page. Use it to catch up with news from hundreds of sources. Put color coded sticky notes, todo lists and reminders. Keep your frequently accessed bookmarks. Share parts of your page with friends, or keep it private.

Rallypoint
Rallypoint is a powerful online collaboration service that can be used to create, organize and share your company’s knowledge. It enables you to build web-based documents and pages to share with your team members or other teams.

reddit
A source for what’s new and popular on the web — personalized for you. We want to democratize the traditional model by giving editorial control to the people who use the site, not those who run it. Your votes train a filter, so let reddit know what you liked and disliked, because you’ll begin to be recommended links filtered to your tastes.

Remember The Milk
Remember The Milk is the easiest and best way to manage your to-do lists online. Sharing, publishing, notes… we’ve got it all. Receive reminders via email, instant messenger, and SMS. It’s free.

Shadows
Shadows is a social bookmarking service for discovering, sharing and managing information on the web. Shadows supercharges this information with a "Shadow Page" — a community blog for any web page that includes views, ratings, tags, and comments by you, your friends and the Shadows community.

start
this site is not an officially supported site. it is an incubation experiment and doesn’t represent any particular strategy or policy. for other incubation experiments, see http://sandbox.msn.com. enjoy!

Ta-da
Ta-da makes it easy to… Keep track of all the little things you need to get done, Make lists for other people (co-workers, friends, family), Share lists with the world ("My favorite movies of 2004"), Subscribe to your lists in RSS so you’re always on track.

TailRank
TailRank finds the best content from thousands of blogs so you don’t have to. TailRank is a small startup based out of San Francisco which has plenty of cool ideas and too much free time.

Topix
Topix.net was founded in 2002 with the specific mission of providing users the ability to quickly and easily find targeted news on the Internet. With thousands of news sources continually releasing stories twenty-four hours a day, finding relevant news can often be a time consuming task.

voo2do
Advanced task and priority management for busy, ambitious individuals. voo2do tracks priority, due date, and time estimates for each task. There is no notion of "lists" in voo2do— tasks can be grouped by project, but you can view and edit a bunch of projects together. Voo2do does not yet support sharing your tasks with other people.

Writeboard
Writeboard makes it easy to… Write without fear of losing or overwriting a good idea Compare different versions of a document Collaborate with colleagues on copy, proposals, memos, etc. Subscribe to documents via RSS and be notified of changes.

Writely
Writely allows you to edit documents online with whomever you choose, and then publish and blog them online.

Xdrive
5GB to unlimited gigabytes of online storage. Accessible from any web browser. Easy, efficient file sharing. Protect critical data from crashes and viruses. The best solution for storing and sharing online.

Zoho
Online tool to create a document, edit in your way, and share with anyone. Access Anywhere, Share, don’t attach, Generate PDF/DOC/HTML, Create and edit document in your way, Load your existing documents, Multi lingual Support, No more duplicates, Post to your Blog.

Zoto
On Zoto, you can safely store an. organize an unlimited number of digital photos, with total control over who has access to which of your photos. You can share your photos with family and friends through albums and slideshows. You can quickly and easily publish photos to your blog.

If you know of any popular Web 2.0 applications that are missing from the above list, please post it as a comment and we will keep this list going. Also let me know if you found this list useful.

Update (Friday Jan 20th, 08:30 PM): This post got dugg to the front page of digg.com sometime yesterday morning. I appreciate all you comments and diggs. This list would not be “complete” without your comments. While posting I had intended to update the list with more applications that you suggest. But I’m overwhelmed with the number of sites in the comment section. I apologize that I don’t have enough time to research and get information about all of them. I recommend that all readers read through the comments to discover more Web 2.0 applications.

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() 删除“饼干”