Archive for August, 2007

Web hosts - Here the aggregator is subscribed to three feeds:

Saturday, August 11th, 2007

Here the aggregator is subscribed to three feeds: A, B, and C. The oldest item in each is number 1, the newest number 6. The aggregator is only looking at four items, which will have appeared in chronological order: 1, 2, 3, and 4. From the aggregator s point of view the oldest item of interest is Item 6 from Feed A and the newest is Item 6 from Feed B. The aggregator is in effect skimming off the most recent items from its subscribed feeds. Another benefit of the item-oriented model is that it makes it possible to create composite or so-called synthetic feeds. An online system can aggregate content from various different sources and then republished the combined material as a whole new feed. This makes it possible to create a multiauthor feed on a particular topic, or (as PubSub.com) build a feed dynamically from search results. In Figure 20-6, there is again an aggregator skimming off the most recent items from a number of feeds. The difference is that the aggregator here is building a composite feed from those items, which it publishes as an entirely separate feed, Feed D. Figure 20-6 Title Item 1 Date Content Title Item 2 Date Content Title Item 3 Date Content Title Item 4 Date Content Feed A Feed Metadata 1 2 3 4 5 6 Feed D Feed Metadata 1 2 3 4 5 6 Feed B Feed Metadata 1 2 3 4 5 6 Feed C Feed Metadata 1 2 3 4 5 6 Aggregator 249 Modeling Feed Data
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

Figure 20-4 The most immediate advantage of the (Shared web hosting)

Friday, August 10th, 2007

Figure 20-4 The most immediate advantage of the entry-oriented model is that it makes it possible for a user tool to group and sort items according to different criteria than the document order provided by a specific feed. The most likely criteria will be that of publication date and time, so that your aggregator displays the newest item first. The flow of items through your system might look something like what s shown in Figure 20-5. Figure 20-5 Title Item 1 Date Content Title Item 2 Date Content Title Item 3 Date Content Title Item 4 Date Content Feed A Feed Metadata 1 2 3 4 5 6 Feed B Feed Metadata 1 2 3 4 5 6 Feed C Feed Metadata 1 2 3 4 5 6 Aggregator Title Day 1 Feed Feed Metadata Item 1 Date Content Title Item 2 Date Content Title Item 3 Date Content Title Item 4 Date Content Day 2 248 Chapter 20
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.

Web design course - From the document-oriented view the redundancy and opacity

Wednesday, August 8th, 2007

From the document-oriented view the redundancy and opacity could be seen as bugs in the system. However, if we turn things around into a different model, magically the bug becomes a feature and what was opaque becomes transparent. Item-Oriented Models The document-oriented view is a fairly direct analogy of the traditional paper publication. But rather than consider the feed as a package, if you think of it more like a source of continual information, it takes on some different characteristics. Twenty-First Century Press Clippings One of the less glamorous jobs in the old media of newspapers is clipping. For a very long time, certain publishers and press clipping services have offered a selective view of relevant media to their customers. Say your company is in the environment-friendly lawn mower business. You ll probably want to know what s going on elsewhere in the world of environment-friendly lawn mowers. You could read every newspaper and periodical in your area or even internationally, but that wouldn t leave much time for lawn mowers. So you could get some poor souls to do the reading for you, extracting any articles or advertisements of interest with a pair of scissors. At the end of every week you d get a pile of individual clippings, all about lawn mowers. The material in such a system would be treated at the granularity level of the articles of course you d want to know the source of each clipping, but that information is auxiliary to the article itself. Afeed can be thought of as a kind of clipping service, except the clippings are available in real time, immediately after they appear. Your aggregator will visit each feed periodically to collect the clippings. Where this analogy is weak is in that current systems are rarely as specialized or personalized as a press clipping service. Such services do exist: PubSub.com will provide a feed based on the results of a custom search query. In fact, the following is the address of a feed of search results on the keywords environment-friendly lawn mowers : http://rss.pubsub.com/37/b5/3778cec38f25c9f8282681622a.xml PubSub is ahead of most of the field in this respect, but in general the idea of treating individual clippings (that is, syndicated items) as standalone, self-contained pieces of information is very powerful. Microcontent and Memes Information can appear in many formats, and traditional print media tends to favor large chunks: books, magazines, and academic papers tend to be multipage collections of text that cover wide areas. However the tendency on the Web has been toward smaller pieces, and the newsflash or blog post represents the ultimate in granularity. Essentially you will have a single idea or meme, with a few lines of human-readable content backed by several pieces of machine-readable metadata. It is believed that this approach to information will offer better personalization (you only get the information you want) supported by more efficient search and organization of these small chunks of information. The stereotype of this is of course the syndicated item. Being able to extract individual items from a feed enables the manipulation of information at this meme level. Which leads us to the entry or item-oriented model of feed data. Figure 20-4 shows the general idea. Items are detached from their originating feed, although they commonly will include a back reference to the source feed. The aggregator in its truest sense is a tool that aggregates items from a variety of sources. 247 Modeling Feed Data
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.

Figure 20-3 If you wanted your system (Cool web site) to

Tuesday, August 7th, 2007

Figure 20-3 If you wanted your system to have a memory and keep track of the feed as it changed over time, the document- oriented model would suggest taking a snapshot of the document between every change. However, if you save what s in the feed on Day 1 and Day 2 as in Figure 20-3, then you ll have duplicate data corresponding to Item 2 and Item 3. In this little example that would mean a third of the item data (2/6 items) would be redundant. The data in feeds is usually text, and in these days of ever-cheaper storage this redundancy probably isn t a big deal. The Opaque Feed But there s a more significant problem. The information of interest on a given day is contained in the items that appear on that day. By wrapping up collections of items into documents, it makes it harder to see what s inside those items what you see are daily feeds, not items. In effect the document-oriented approach makes the individual pieces of content and metadata opaque to systems that might want to index or search the items. Title Day 1 Feed Feed Metadata Item 3 Date Content Title Item 2 Date Content Title Item 1 Date Content Day 2 Title Feed Feed Metadata Item 4 Date Content Title Item 3 Date Content Title Item 2 Date Content 246 Chapter 20
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

The styling code here follows the CSS (Adult web hosting) 2

Monday, August 6th, 2007

The styling code here follows the CSS 2 specification. Not all browsers offer support for all CSS 2 features. In particular Internet Explorer will ignore the :before pseudo-element, with the result that the explanatory line will be missed out of the display. Another part of the CSS code that may not be obvious is this part: language, managingEditor, generator, image, guid, ttl, skipHours, skipDays, webMaster, lastBuildDate, updateBase, updateFrequency, updatePeriod, docs { display: none; } This again overrides the default display formatting (inline) for the listed elements, although this time rather than treating each as a block, the rendering style is none, and the instruction is not to render them at all. This is a handy way of dumping the more obscure elements that aren t likely to be of interest to the reader. Note that the
value is displayed verbatim in the browser you get the text of the URI but it isn t clickable. This specific fault is something that can be fixed by using XSLT style sheets, but it points toward a deeper problem. Drawbacks of a Feed-Oriented Model Treating syndication feeds as documents does suggest nifty tricks like CSS rendering, but this view overlooks some of the important characteristics of real feeds. As mentioned earlier, they don t necessarily have to include content. There may still be benefit in displaying a list of titles, links, even dates and the rest of the metadata, but this is stretching the idea of a document somewhat. A more significant drawback is that most syndication feeds are dynamic, changing every few days or perhaps even every hour. The Dynamic Feed The fact that a feed generally changes over time a lot more rapidly than a regular Web page is really only one consideration. In the example listing of Tech Idol it wasn t clear what the order of the items related to. If they were a kind of popularity chart, with the number one ranked Idol listed first, then the document-oriented approach is probably quite a good fit. Where the document model really goes awry is when the order of items in the feed is governed directly by time, such as in the reverse-chronological order of Weblogs and other news-like sources. Only a certain number of items can be realistically included in a feed, and the reverse-chrono order suggests new items got to the top of the feed. So what happens to the old items? Generally they drop off the bottom of the feed. This can be seen in Figure 20-3, which shows a feed that holds three items on two consecutive days. Here the numbering of the items corresponds to their creation order, so Item 1 was created first, 2 second, and so on. On Day 1 the newest item is Item 3, this is shown at the top of the feed. By Day 2 another item, Item 4 has been created. Being the newest, this now takes the position at the top of the feed. As this particular feed is designed to carry only three items at a time, the oldest item, Item 1, no longer appears on Day 2 (see Figure 20-3). 245 Modeling Feed Data
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

The result of this particular piece of content (Cheapest web hosting)

Friday, August 3rd, 2007

The result of this particular piece of content with styling looks like what you see in Figure 20-2. Figure 20-2 The content of the element by default would be displayed inline, running across the page. Setting the display value to block overrides this, and enables the box features of border, padding, and margin to be used. The border is simply the thin (1px) black (#000) solid (solid) line around the box. Padding is spacing that goes between the content and the border, the margin is around the outside of the border. The values here are given in em units rather than pixels. An em unit is defined as the font size (originally an em was the width of an m character), which helps keep proportions right if the page as a whole is enlarged or reduced. The rest of the styling attributes are self-explanatory, and these and a lot more are defined at www.w3.org/TR/REC-CSS2/. One thing to note here is that this piece of CSS doesn t discriminate between the <title> element found at the <channel> level and the <title> element found at the <item> level. However, you can apply different styling like this: channel > title { /* channel title-specific styling here */ } item > title { /* item title-specific styling here */ } The > symbol here is used to select an element that is a direct child of another element (parent). However not all browsers support this functionality. The CSS listing began with the following lines: rss:before { content: * This is an RSS feed and is best viewed in an aggregator or newsreader * } This is taking advantage of what the CSS specification calls a pseudo-element, before. The instruction is to render this message immediately before it renders the <rss> element (or any of its child elements). This is a convenient way of giving the browser user an appropriate message about the kind of data they re dealing with. 244 Chapter 20 <br />From our experience, we are can tell you that you can find a reliable and cheap webhost service at <a href="http://www.javaservletwebsitehosting.com">Java Web Hosting</a> services. </p> </div> <p class="postmetadata">Posted in <a href="http://j2ee.javaservletwebsitehosting.com/category/j2ee/" title="View all posts in j2ee" rel="category tag">j2ee</a> | <a href="http://j2ee.javaservletwebsitehosting.com/j2ee/the-result-of-this-particular-piece-of-content-cheapest-web-hosting/#respond" title="Comment on The result of this particular piece of content (Cheapest web hosting)">No Comments »</a></p> </div> <div class="post"> <h3 id="post-302"><a href="http://j2ee.javaservletwebsitehosting.com/j2ee/language-managingeditor-generator-image-guid-web-site-translator-ttl-skiphours/" rel="bookmark" title="Permanent Link to } language, managingEditor, generator, image, guid, (Web site translator) ttl, skipHours,">} language, managingEditor, generator, image, guid, (Web site translator) ttl, skipHours,</a></h3> <small>Friday, August 3rd, 2007</small> <div class="entry"> <p>} language, managingEditor, generator, image, guid, ttl, skipHours, skipDays, webMaster, lastBuildDate, updateBase, updateFrequency, updatePeriod, docs { display: none; } Try It Out RSS with CSS 1. Open a text editor and type the RSS 2.0 code listing (better still, download it). 2. Save that as rss2sample.xml. 3. Start a Web browser and open the file rss2sample.xml in it. Depending on your browser, you will see either the source code more or less as it appears in the previous listing, or as a single block of text (without the XML tags) or you will be asked whether you want to open or save the data. Whichever it is, close the browser again. 4. Open another text editor window and type the previous CSS code. 5. Save this in the same directory as rss2sample.xml, naming the file rss.css. 6. Again start up a Web browser and open the file rss2sample.xml in it. This time you should see something like the styled version in Figure 20-1. How It Works The technique is virtually identical to styling HTML with CSS, when the style sheet is a separate file. Here the source document is XML version 1.0, as declared in the first line. The line that follows is the most significant here, because it is an instruction to any processors of this data that there is a style sheet available in rss.css of type text/css. Processors designed for rendering documents, such as Web browsers, know how to interpret this instruction. Here are the first few lines of the RSS source again: <?xml version= 1.0 ?> <?xml-stylesheet type= text/css href= rss.css ?> <!-- This is an RSS feed and is best viewed in an aggregator or newsreader --> <rss version= 2.0 > <channel> … The CSS code is made up of blocks each corresponding to an element name in the RSS format. For example, the following block of rendering instructions in the CSS will be applied to the <title> element: title { display: block; padding:0.5em; border:1px solid #000; font-size:120%; font-weight:bold; margin:0.5em; background-color:#fff; } 243 Modeling Feed Data <br />Searching for affordable and proven webhost to host and run your servlet applications? Go to <a href="http://linux.a1websitehosting.net">Linux Web Hosting</a> services and you will find it. </p> </div> <p class="postmetadata">Posted in <a href="http://j2ee.javaservletwebsitehosting.com/category/j2ee/" title="View all posts in j2ee" rel="category tag">j2ee</a> | <a href="http://j2ee.javaservletwebsitehosting.com/j2ee/language-managingeditor-generator-image-guid-web-site-translator-ttl-skiphours/#respond" title="Comment on } language, managingEditor, generator, image, guid, (Web site translator) ttl, skipHours,">No Comments »</a></p> </div> <div class="post"> <h3 id="post-301"><a href="http://j2ee.javaservletwebsitehosting.com/j2ee/displayblock-margin1em-font-family-arial-channel-displayblock-most-popular-web-site/" rel="bookmark" title="Permanent Link to display:block; margin:1em; font-family: Arial; } channel { display:block; (Most popular web site)">display:block; margin:1em; font-family: Arial; } channel { display:block; (Most popular web site)</a></h3> <small>Thursday, August 2nd, 2007</small> <div class="entry"> <p>display:block; margin:1em; font-family: Arial; } channel { display:block; border:1px solid #000; width: 30em; padding:1em; background-color:#fff; } item { display:block; margin-bottom:1em; border:1px solid #000; background-color:#ddd; padding:1em; } title { display: block; padding:0.5em; border:1px solid #000; font-size:120%; font-weight:bold; margin:0.5em; background-color:#fff; } description { display: block; padding:0.5em; border:1px solid #000; margin:0.5em; background-color:#fff; } pubDate { display: block; padding:0.5em; border:1px solid #000; margin:0.5em; font-size:90%; background-color:#fff; } link { display: block; padding:0.5em; border:1px solid #000; font-size:80%; margin:0.5em; background-color:#fff; 242 Chapter 20 <br />We recommend cheap and reliable webhost to host and run your web applications: <a href="http://j2ee.javaservletwebsitehosting.com">Coldfusion Web Hosting</a> services. </p> </div> <p class="postmetadata">Posted in <a href="http://j2ee.javaservletwebsitehosting.com/category/j2ee/" title="View all posts in j2ee" rel="category tag">j2ee</a> | <a href="http://j2ee.javaservletwebsitehosting.com/j2ee/displayblock-margin1em-font-family-arial-channel-displayblock-most-popular-web-site/#respond" title="Comment on display:block; margin:1em; font-family: Arial; } channel { display:block; (Most popular web site)">No Comments »</a></p> </div> <div class="post"> <h3 id="post-300"><a href="http://j2ee.javaservletwebsitehosting.com/j2ee/figure-20-1-here-is-the-source-code-web-site-developers-of/" rel="bookmark" title="Permanent Link to Figure 20-1 Here is the source code (Web site developers) of">Figure 20-1 Here is the source code (Web site developers) of</a></h3> <small>Thursday, August 2nd, 2007</small> <div class="entry"> <p>Figure 20-1 Here is the source code of the style sheet: rss:before { content: * This is an RSS feed and is best viewed in an aggregator or newsreader * } rss { 241 Modeling Feed Data <br />If you are looking for affordable and reliable webhost to host and run your business application visit our <a href="http://domain.premiumwebsitehosting.net">ftp web hosting</a> services. </p> </div> <p class="postmetadata">Posted in <a href="http://j2ee.javaservletwebsitehosting.com/category/j2ee/" title="View all posts in j2ee" rel="category tag">j2ee</a> | <a href="http://j2ee.javaservletwebsitehosting.com/j2ee/figure-20-1-here-is-the-source-code-web-site-developers-of/#respond" title="Comment on Figure 20-1 Here is the source code (Web site developers) of">No Comments »</a></p> </div> <div class="post"> <h3 id="post-299"><a href="http://j2ee.javaservletwebsitehosting.com/j2ee/webmasterexampleorg-shelley-httpexampleorgidolshelley-shelley-first-impressed-the-judges-php-web-hosting/" rel="bookmark" title="Permanent Link to webmaster@example.org Shelley http://example.org/idol/shelley Shelley first impressed the judges (Php web hosting)">webmaster@example.org Shelley http://example.org/idol/shelley Shelley first impressed the judges (Php web hosting)</a></h3> <small>Thursday, August 2nd, 2007</small> <div class="entry"> <p><webMaster>webmaster@example.org</webMaster> <item><br /> <link>http://example.org/idol/shelley</link> <description>Shelley first impressed the judges with her 3-line backup script, then trampled the opposition with her cover of These Boots Were Made for Walking . </description><br /> <pubDate>Thu, 01 Jul 2004 09:39:21 GMT</pubDate> <guid>http://example.org/idol/shelley</guid> </item> <item><br /> <link>http://example.org/idol/sam</link> <description>Test-driven development while plate-spinning? Sam s the man. </description><br /> <pubDate>Thu, 01 Jul 2004 08:37:32 GMT</pubDate> <guid>http://example.org/idol/sam</guid> </item> <item><br /> <link>http://example.org/idol/marc</link> <description>Marc s multimedia presentation of O Sole Mio served him well, but perhaps he should have kept those knees covered! </description><br /> <pubDate>Thu, 01 Jul 2004 08:56:02 GMT</pubDate> <guid>http://example.org/idol/marc</guid> </item> </channel> </rss> Figure 20-1 shows the same data rendered in a browser. Which looks best to you? Ok, there was a little cheating involved there, in the form of a cascading style sheet (CSS). This isn t all that related to the modeling of feeds, but now is as good a time as any for you to see how it s done. 240 Chapter 20 <br />We recommend high quality webhost to host and run your jsp application: <a href="http://jsp.javaservletwebsitehosting.com">christian web host</a> services. </p> </div> <p class="postmetadata">Posted in <a href="http://j2ee.javaservletwebsitehosting.com/category/j2ee/" title="View all posts in j2ee" rel="category tag">j2ee</a> | <a href="http://j2ee.javaservletwebsitehosting.com/j2ee/webmasterexampleorg-shelley-httpexampleorgidolshelley-shelley-first-impressed-the-judges-php-web-hosting/#respond" title="Comment on webmaster@example.org Shelley http://example.org/idol/shelley Shelley first impressed the judges (Php web hosting)">No Comments »</a></p> </div> <div class="navigation"> <div class="alignleft"><a href="http://j2ee.javaservletwebsitehosting.com/2007/08/page/4/">« Previous Entries</a></div> <div class="alignright"><a href="http://j2ee.javaservletwebsitehosting.com/2007/08/page/2/">Next Entries »</a></div> </div> </div> <div id="sidebar"> <ul> <li> <form method="get" id="searchform" action="http://j2ee.javaservletwebsitehosting.com/"> <div><input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <li> <p>You are currently browsing the <a href="http://j2ee.javaservletwebsitehosting.com/">Cheap Java Services With Tomcat, Jsp, Php, Mysql, J2Ee, Servlet, Struts & Hibernate Hosting Support and Coldfusion Web Hosting</a> weblog archives for August, 2007.</p> </li> <li class="pagenav"><h2>Pages</h2><ul><li class="page_item"><a href="http://j2ee.javaservletwebsitehosting.com/about/" title="About">About</a></li> </ul></li> <li><h2>Archives</h2> <ul> <li><a href='http://j2ee.javaservletwebsitehosting.com/2008/06/' title='June 2008'>June 2008</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2008/05/' title='May 2008'>May 2008</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2008/04/' title='April 2008'>April 2008</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2008/03/' title='March 2008'>March 2008</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2008/02/' title='February 2008'>February 2008</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2008/01/' title='January 2008'>January 2008</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/12/' title='December 2007'>December 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/11/' title='November 2007'>November 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/10/' title='October 2007'>October 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/09/' title='September 2007'>September 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/08/' title='August 2007'>August 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/07/' title='July 2007'>July 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/06/' title='June 2007'>June 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/05/' title='May 2007'>May 2007</a></li> <li><a href='http://j2ee.javaservletwebsitehosting.com/2007/04/' title='April 2007'>April 2007</a></li> </ul> </li> <li><h2>Categories</h2> <ul> <li><a href="http://j2ee.javaservletwebsitehosting.com/category/j2ee/" title="View all posts filed under j2ee">j2ee</a> (584) </li> </ul> </li> </ul> </div> <hr /> <div id="footer"> <!-- If you'd like to support WordPress, having the "powered by" link someone on your blog is the best way, it's our only promotion or advertising. --> <p> Cheap Java Services With Tomcat, Jsp, Php, Mysql, J2Ee, Servlet, Struts & Hibernate Hosting Support and Coldfusion Web Hosting is proudly powered by <a href="http://www.visionwebhosting.net/">cheap hosting</a> <br /><a href="feed:http://j2ee.javaservletwebsitehosting.com/feed/">Entries (RSS)</a> and <a href="feed:http://j2ee.javaservletwebsitehosting.com/comments/feed/">Comments (RSS)</a>. <!-- 15 queries. 0.274 seconds. --> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> </body> </html>