学习日记rss订阅方案设计(希望得到您的意见或建议)

  看了www.43things.com的rss订阅方案和roller的rss方案,结合学习日记的特点,提出学习日记的rss订阅方案。

  1、个人的订阅:

  1)、我进行中的目标的最新39篇日记;(参数:type=diary.processGoal,userName=tom)

  2)、我写作的日记的最新39篇评论;(参数:type=advice.diary,userName=tom)

  2、全局的订阅:

  目标的订阅:

  1)、最近创建的39个目标;(参数:type=goal.last)

  2)、加入人数最多的39个目标;(参数:type=goal.mostJoin)

  日记的订阅:

  1)、最近写作的39篇日记;(参数:type=diary.last)

  评论的订阅:

  1)、最近提交的39篇评论;(参数:type=advice.last)

  3、征对某一个目标的订阅:

  1)、这个目标的最新39篇日记;(参数:type=diary.goal,goalID=1)

  2)、这个目标的最新39篇评论;(参数:type=advice.goal,goalID=1)

  订阅的格式:

  1、订阅的目标:

  目标题目

  ×××在什么时候创建了目标×××:

  目标内容(www.43things.com中目标的具体内容只有在网上看,它在这个页面有实现这个目标的相关的广告。学习日记可以考虑这种沟通用户的服务提供者的恰当的沟通方式)。

  2、订阅的日记:

  日记标题

  ×××在什么时候为×××目标写作了日记×××:

  日记内容

  3、订阅的评论:

  评论标题:

  ×××在什么时候评论了目标×××(或评论了目标×××下的日记×××):

  评论内容

  使用rss2.0规范,用rsslibj来生成(实际它可以生成0.92或1.0等规范的,但是没有atom的规范,这个公共库项目在2003年就停止了更新,估计是作者认为这个库已经完全满足它的主要目的了:专门用来生成rss文件),全局订阅单独放在一个页面中;某个目标的订阅分别放在所有目标页面的各个目标的条目中、目标的内容中、目标的日记列表中、目标的日记内容中。

  

一个好像不错的web2.0相关开发社区http://developer.yahoo.net

  来自:http://blog.matrix.org.cn/page/zhenggc?entry=yahoo%E4%B9%9F%E6%90%9Edev 的介绍。

  里面有个yahoo ui lib好像是我非常需要的,收藏一下先。

  下面是它的首页的介绍:

  Innovate.

You bring the skills. We bring the ingredients.

Welcome to the Yahoo! Developer Network. We help software developers integrate their Web sites and applications with Yahoo! using standard technologies such as XML and RSS. Click on a link at left to learn more about our products and how we can help you.

New! - Yahoo! User Interface and Design Patterns Libraries

Everyone talks about Web 2.0. Talk is cheap. How about some real help? Just in time for Valentine's day we're giving you a delicious candy box of tools and guidelines for building cutting-edge dynamic web sites.

First, there's the Yahoo! User Interface Library. The UI Library is a set of JavaScript components that let you quickly add all kinds of really nifty features to your web site, from dynamic UI elements like drag and drop, tree views, and animation; to underlying functionality like custom events and easy-to-use cross-browser XMLHttpRequest connections. Its a small easy-to-use framework for building AJAX applications. And get this: Its free to use and its open source (BSD license). Better than flowers any day.

Code is cool, but howabout some advice, too. We've also got the Yahoo! Design Patterns Library, where our best visual and interaction designers have gotten together and created a set of patterns and guidelines for design in a Web 2.0 world. Here you'll find ideas on the best ways to implement web site elements, along with pointers to examples and the tools within the Yahoo! UI Library that will let you do it. Today's Pattern Library is just the beginning -- expect this part of the site to grow quite a lot over the coming months.

Our Yahoo! UI folks, in addition to the insane amount of work they did to bring you all these cool tools today, have also started a blog over on yuiblog.com to keep you updated on stuff going on in the Yahoo! UI world and to get your feedback on patterns and tools. Drop over and say hi!

Posted: February 13th, 2005

前天,也就是星期六,把孩子接回来了

  听说,孩子也想回家了。接她回家的前一天就在念家里人了:婆婆、爷爷、爸爸、妈妈...

  实际,孩子接回来入睡前还是要小咳几声,本着尽量少给孩子吃药的原则,我们给她喝止咳合剂,不过心里还是有点发虚,万一严重了咋办?孩子睡觉爱踢被子,回来的第一天晚上就把被子踢个精光。弄得醒了还不停的咳了一阵。不过白天就没事了。

  这学期还是打算把她送到就近的幼儿园里。虽然母亲反映老师抱怨说孩子太调皮,好像对孩子不大好的意思。但是,我想,老师向我们反映孩子调皮总是有她的依据。我们可以征对具体问题多与老师沟通,否则,转到哪所幼儿园可能都是一样的。而且,转来转去,对这么小的孩子也增加了重新融入环境的过程,可能对她反而不大好吧。

  另外,我想,我们跟老师一无怨,二无愁,她总不可能单独对我们的孩子格外的不好吧。

  关键,要多与老师沟通。

今天在matrix的blog中试用blog客户端软件:w.bloggar不成功

  今天下载了一个blog离线写作工具-w.bloggar,按步骤设置后,提示: org.apache.xmlrpc.XmlRpcException: You have not enabled Blogger API support for your 可我明明已经在站点设置中设置了开启blogger API?搞不懂是怎么一回事了。

  rss客户端软件通过xmlrpc来与blog sever交流,blog sever提供一些约定的rpc方法供rss客户端调用。

  例如:在w.bloggar 的Faq中说:

What is w.bloggar?

The w.bloggar is an application that acts as an interface between the user and one or more blog(s); in other words, it is a Post and Template editor, with several features and resources that the browser based blog editors do not offer.

Because w.bloggar runs over the Windows GUI, it allows the user to edit posts without being connected to the Internet. Posts can be saved locally; and anytime the user wants to publish a new text, one click on the w.bloggar icon in the system tray brings up the editor, and one more click will post it to the weblog.

Another great advantage of w.bloggar is that it is compatible with most of the weblog systems available, allowing an advanced user to have only one interface to several accounts hosted on several different sites, using different publishing systems.

To communicate with the weblog, w.bloggar requires that the blog system have implemented an API (Application Programming Interface.) Currently, w.bloggar is compatible with all tools that implements Blogger API, metaWeblog API, MovableType API and b2 API; all based on the XML-RPC definition.

(转帖)实现RSS

(转自:http://www.jspcn.net/htmlnews/6006203177.html)

  操作rss文件就是操作xml文件,要为网站动态生成rss订阅,就得学习怎么样操作xml文件,这里是个现成的rss文件生成库,可以拿来用用,长远之计还是必须学习一下xml文件的生成。

                  正文

×××××××××××××××××××××××××××××××××××××××××××××××××××××

实现RSS

作者:wanghui     文章来源:www.jspcn.net

访问次数: 次    加入时间:2005-07-05

 

RSS是一个标准的XML文件,Rss阅读器可以读取这个XML文件获得文章的信息,使用户可以通过Rss阅读器而非浏览器阅读Blog,我们只要动态生成这个XML文件便可以了。RSSLibJ是一个专门读取和生成RSS的小巧实用的Java库,大小仅25k,可以从http://sourceforge.net/projects/rsslibj/下载rsslibj-1_0RC2.jar和它需要的EXMLjar两个文件,然后复制到web/WEB-INF/lib/下。

使用RSSLibJ异常简单,我们先设置好HttpServletResponse的Header,然后通过RSSLibJ输出XML即可:

Channel channel = new Channel();

channel.setDescription(account.getDescription());

baseUrl = baseUrl.substring(0, n);

channel.setLink("http://server-name/home.c?accountId=" + accountId);

channel.setTitle(account.getTitle());

List articles = facade.getArticles(accountId, account.getMaxPerPage(), 1);

Iterator it = articles.iterator();

while(it.hasNext()) {

    Article article = (Article)it.next();

    channel.addItem("http://server-name/article.c?articleId=" + article.getArticleId(),

        article.getSummary(), article.getTitle()

    );

}

// 输出xml:

response.setContentType("text/xml");

PrintWriter pw = response.getWriter();

pw.print(channel.getFeed("rss"));

pw.close();

 

 

又一个java写的开源blog:TMBlog(转帖自:毕业设计)

贴在这里备用。

(转自:http://xigua.devmobile.org/default.asp?cat=4)

毕业设计

[ 2006-01-11 21:36:53 | 作者: Admin ]

毕业设计题目定了,《利用Struts框架构件图书拍卖网站》。是我比较兴趣的题目。老师给了我们一个TMBlog系统,很小,才10MB(包括数据库)。数据库用的:HSQLDB(纯java编写,非常小),用老师话说,可以做成插件直接放入客户端……  。整个系统应用到了Struts+Hibernate+Velocity。真是麻雀虽小,五脏俱全。确实是个学习的好例子。

有兴趣可以到:http://www.terac.com下载,完全免费,开源。

翻译文档很简单,开题报告还没想好怎么写。先研究那个Blog系统了,研究透了,加上几个功能,就开始写报告!够忙的,还要上班!不过我喜欢这样 

不再去钻roller的rss实现了

  初步了解,roller的rss实现要通过velocity模板来实现,而现在的当务之急是快速实现rss订阅,目前我对velocity还没有使用过。所以,打算放弃通过roller来学习rss订阅的实现。改为根据rss2.0规范来自己造一个实现的方法。当然,如果在网上碰到已有的简易实现来参考一下就好了。有谁知道的请告诉一下。

  另外,还是没能让roller2.0源码在eclipse2.1中编译运行起来,记在这里,以后有必要时再继续做一下。

孩子在乡下的状态还可以

  在电话中,听她外婆说她在乡下肯吃、肯睡、肯玩,长胖了(我不担心她长太胖,因为她现在要到3岁了,体重还不到30斤,应该为不达标之列。)。原来在家里还有点咳嗽,在那里也不咳嗽了。乡下有山有水有树,空气清新。我想多把她送到乡下去玩对她有好处吧。