Headlines Plugin

Show headline news in TWiki pages based on RSS and ATOM news feeds from external sites

Description

This plugin displays RSS and ATOM feeds from news sites. Use it to build news portals that show headline news.

Note: Syndic8.com ( http://www.syndic8.com/ ) lists many RSS feeds.

Syntax Rules

%HEADLINES{"..."}%

Parameter Explanation Default
"..." source of RSS feed; this can be an url (starting with http) or a web.topic location for internal feeds None; is required
href="..." (Alternative to above) N/A
refresh="60" Refresh rate in minutes for caching feed; "0" for no caching Global REFRESH setting
limit="12" Maximum number of items shown Global LIMIT setting
touch="..." Touch (edit/save) topics if the feed has updates. Specify a comma-space delimited list of TopicNames or Web.TopicNames, such as "%TOPIC%, NewsLetter". Useful to send out newsletter using MailerContrib, showing new feeds since last newsletter. To update feeds, visit topics with feeds in regular intervals (using cron with wget or the like). N/A
header Header. Can include these variables: - $channeltitle, $title: title of channel (channel.title) - $channellink, $link: link of channel (channel.link) - $channeldescription, $description: description (channel.description) - $channeldate, $date: publication date of the channel (channel.pubDate) - $rights: copyrights of the channel (channel.copyright) - $imagetitle: title text for site (image.title) - $imagelink: link for site (image.link) - $imageurl: URL of image (image.url) - $imagedescription: description of image (image.description) Global HEADER setting
format Format of one item. Can include these variables: - $title: news item title (item.title) - $link: news item link (item.link) - $description: news item description (item.description) - $date: the publication date (item.pubDate, item.date) - $category: the article category (item.category) Global FORMAT setting

The header and format parameters might also use variables rendering the dc, image and content namespace information. Note, that only bits of interest have been implemented so far and those namespaces might not be implemented fully yet.

Rendering the dc namespace

The following variables are extracting the dc namespace info, that could be used in header and format. Nnote, that some of the variables are already used above. This is done by purpose to use different feeds with the same formating parameters. If there's a conflict the non-dc tags have higher precedence, i.e. a <title> content </title> is prefered over <dc:title> content </dc:title> .

  • $title: channel/article title (dc:title)
  • $creator: channel creator (dc:creator)
  • $subject: subject text; this will also add an image according to the subject hash list, see above (dc:subject)
  • $description: ... (dc:description)
  • $publisher: the channel/article publisher (dc:publisher)
  • $contributor: ... (dc:contributor)
  • $date: ... (dc:date)
  • $type: ... (dc:type)
  • $format: ... (dc:format)
  • $identifier: ... (dc:identifier)
  • $source: ... (dc:source)
  • $language: ... (dc:language)
  • $relation: ... (dc:relation)
  • $coverage: ... (dc: coverage)
  • $rights: ... (dc: rights)

Rendering the image namespace

An image:item is converted into an <img> tag using the following mappings:

  • src: image url (rdf:about attribute of the image.item tag)
  • alt: image title (title)
  • width: image width (image:width)
  • height: image height image:height)

Rendering the content namespace

The variable $content is refering to the <content:encoding> content </content:encoding>.

Examples

Slashdot News

Write

%HEADLINES{ "http://slashdot.org/slashdot.rdf" 
  header="*[[$link][$title]]:* $description" 
  format="$t* [[$link][$title]]"
  limit="4"
}%
to get the latest Slashdot news as a bullet list format:

Business Opportunities Weblog

Write

%HEADLINES{ "http://www.business-opportunities.biz/feed" limit="2" }%

to get the latest postings on the "Business Opportunities" weblog:

Sun, 19 May 2024 20:12:39 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Sun, 19 May 2024 20:12:38 +0000 Carrol Strain

Grape farming is an ancient practice that has been carried out for centuries. It is not only a lucrative business but also a rewarding and fulfilling endeavor. Whether you are a seasoned farmer or a beginner looking to venture into grape farming, this guide will provide you with expert tips to ensure the success of your grape farm.

Importance of Proper Planning and Research in Grape Farming

Before embarking on any agricultural venture, proper planning and thorough research are indispensable. In grape farming, this becomes even more crucial. Start by assessing the market demand for grapes in your region. Look into the current trends and preferences of consumers. This will help you determine the type of grapes to cultivate and the quantity to produce.

Additionally, research the climatic conditions and soil composition of your area. Grapes thrive in specific temperature ranges and soil types. Ensure that your farm meets these requirements to maximize the growth and yield of your grape vines. Proper planning and research will lay a solid foundation for your grape farming business.

RELATED ARTICLE: 3 STEPS TO SETTING UP A FLOURISHING HYDROPONIC FARM IN ANY LOCATION

Choosing the Right Grape Varieties for Your Farm

Selecting the right grape varieties for your farm is essential for a successful grape farming venture. Consider factors such as climate, soil type, and market demand when making your choice. There are various types of grapes available, each with its own characteristics and uses.

For example, if you are in a region with cool temperatures, you may opt for varieties such as Riesling or Pinot Noir. These grapes are known for their ability to thrive in cooler climates. Conversely, if you are in a warm climate, varieties like Cabernet Sauvignon or Merlot may be more suitable.

Understanding Soil Requirements for Successful Grape Cultivation

The soil composition plays a significant role in the growth and development of grape vines. Grapes prefer well-drained soil that is rich in organic matter. Conduct a soil test to determine the pH level and nutrient content of your soil. This will help you identify any deficiencies and take corrective measures accordingly.

Grape Vineyard Establishment and Layout

Once you have selected the grape varieties and prepared the soil, it’s time to establish your grape vineyard. Start by planning the layout of your vineyard. Consider factors such as sun exposure, wind patterns, and accessibility. It is advisable to consult with experts or experienced grape farmers to ensure optimal vineyard design.

When planting the grape vines, maintain proper spacing between each plant to allow for adequate air circulation and sunlight penetration. This will minimize the risk of diseases and ensure even growth of the vines. Provide support structures such as trellises or stakes to help the vines grow vertically and promote efficient harvesting.

Essential Grape Farming Techniques and Practices

Successful grape farming requires the implementation of essential techniques and practices. Pruning is one such technique that helps maintain the health and productivity of the grape vines. Prune the vines during the dormant season to remove dead or diseased wood, improve air circulation, and control vine growth.

Another important practice is canopy management. This involves managing the foliage of the grape vines to optimize sunlight exposure and airflow. Proper canopy management can prevent diseases and improve grape quality. Additionally, irrigation and fertilization are crucial for providing the necessary nutrients and water to the vines.

Also invest in the right technology to improve productivity and efficiency. For example, you can use a system by Lumo to automate the process of watering your crops and gain visibility over your irrigation.

Managing Pests and Diseases in Grape Farming

Pests and diseases can pose a significant threat to grape farming. It is essential to implement effective pest and disease management strategies to protect your grape vines. Regularly monitor your vineyard for signs of pests or diseases and take immediate action if detected.

Harvesting and Post-Harvest Handling of Grapes

Harvesting grapes at the right time is crucial for achieving the desired quality and flavor. Grapes should be harvested when they reach the desired sugar content and acidity levels. It is recommended to harvest in the early morning hours when the temperature is cooler, as this helps preserve the grape’s freshness.

After harvesting, handle the grapes with care to prevent damage and maintain their quality. Sort the grapes based on size, color, and quality. Remove any damaged or spoiled grapes. Store the grapes in a cool and humid environment to prolong their shelf life. Proper post-harvest handling ensures that your grapes reach the market in optimal condition.

Marketing and Selling your Grape Produce

Digitally marketing and selling your grape produce are crucial steps in establishing a successful grape farming business. Identify potential buyers such as wineries, restaurants, or local markets. Establish relationships and partnerships with these buyers to secure consistent sales.

Utilize various marketing channels such as social media, websites, or local advertisements to promote your grape produce. Highlight the unique qualities and flavors of your grapes to attract consumers. Participate in trade shows or farmers’ markets to showcase your grapes and engage directly with potential customers.

RELATED ARTICLE: 7 THINGS YOU SHOULD KNOW ABOUT RUNNING A FARM

Common Challenges and Solutions in Grape Farming

Grape farming, like any agricultural endeavor, comes with its own set of challenges. Some common challenges include extreme weather conditions, pests, diseases, and market fluctuations. It is important to stay informed and prepared to tackle these challenges effectively.

Implement preventive measures such as regular monitoring, crop rotation, and the use of disease-resistant grape varieties to minimize the effects of pests and diseases. Diversify your market channels to mitigate the risk of market fluctuations. Stay updated with the latest advancements in grape farming techniques and technology to stay ahead of challenges.

Grape farming can be a rewarding and profitable business if approached with the right knowledge and strategies. Proper planning, research, and the implementation of essential techniques are key to the success of your grape farm.

RELATED ARTICLE: 5 KEY COMPONENTS OF A GOOD FARM OR RANCH BUSINESS PLAN

The post Your Grape Farming Business Can Flourish appeared first on BUSINESS OPPORTUNITIES.

Fri, 17 May 2024 23:42:28 +0000 Carrol Strain

The world is a vast and varied place, and we are lucky if we get a chance to explore it. Yet nothing can ever be perfect, and international travel is not without its frustrations, dangers, and annoyances. Apart from having a large helping of common sense and a sixth sense when things don't seem right, what else can we do, as responsible travelers, to protect ourselves on our overseas adventures? The answer, of course, in Australia as elsewhere, is travel insurance.

Few things are more exciting or life-changing than the opportunity to travel this glorious planet and experience its delights and marvels. From the cultural highs of witnessing historical traditions to the palate-tingling range of cuisines, you are sure to experience thrilling sights and amazing scenery that you will not easily forget.

RELATED ARTICLE: HOW TO SAVE ON BUSINESS TRAVEL EXPENSES

Travel Insurance in Australia

Obtaining travel insurance in Australia before setting off on any overseas trip is an essential step. Luckily, the regulations surrounding the industry prevent sneaky tactics and misleading factors from taking hold. Therefore, it is relatively straightforward and affordable to avail yourself of comprehensive travel insurance in Australia.

But what features of the policy should you focus on? Are there mitigating factors you must consider or discuss with your chosen provider before purchasing a policy? First, let's look at what are likely the non-negotiable coverages any travel insurance in Australia must offer.

Fundamental Elements of Decent Travel Insurance in Australia

Medical Emergencies and Other Treatments

This is the most crucial item on the list, making all others seem meaningless by comparison. Nothing is more important than your health. Moreover, without comprehensive travel insurance in Australia, you risk losing access to the best treatment available. It simply is not worth the risk to travel internationally without it. What’s more, the consequences of doing so don't even bear thinking about.

Cancellations Covered by Travel Insurance in Australia

Whether you’re traveling to a critical business conference or gets cancelled or heading to see your favorite singer who suddenly can't perform because of illness, comprehensive travel insurance in Australia has you covered. If the cancellation is outside your control, and you have incurred costs directly, you should have no problem getting a reimbursement.

Loss of Luggage and Personal Belongings Covered by Travel Insurance in Australia

The worry of losing your belongings when your flight lands has changed little over the years, except to say that international standards have risen dramatically. The chances are extremely high that you will breathe that sigh of relief as you see your luggage drop onto the carousel at the airport. In other words, everything will be fine. If it isn't, and you were smart enough to avail yourself of travel insurance in Australia, the loss will only be a temporary one.

Decent policies will even cover you for replacing your lost items at the new location. Therefore, if you packed your business suit and were expecting to wear it for an important meeting, you won't have to show up in your pajamas.

RELATED ARTICLE: HOW TO RECONCILE TRAVELING WITH WORKING AS A CEO

Additional Expenses

This is a rather vague catch-all phrase that applies in specific situations where you have been affected financially and incurred unwanted costs. Examples might be additional nights you spend in hotels when your schedules changed unexpectedly. (However, this will not apply if you choose to change your schedule yourself.) This will probably require a more in-depth conversation with your insurance provider. You will need to determine precisely what they will and will not cover.

Credit Card Fraud Covered by Travel Insurance in Australia

Most credit card providers will protect you if you are a victim of fraud. But sometimes, travel insurance from Australia will give you another layer of protection if necessary.

Personal Liability and Excess on Rental Vehicles

The dreaded fine print on any rental agreement is long and meticulous. With comprehensive travel insurance from Australia, you will likely have coverage against any excesses you incur that significantly boost your personal liability or diminish third-party capabilities.

Flight Cancellations and Delays

Tight schedules can sometimes be affected by unavoidable changes and cancellations on the part of the airline. What’s more, the airline might also be powerless to influence the decision. A Zen attitude and decent travel insurance from Australia are sure ways to ease the tension and get through the frustration.

Lost Income

Again, this phrase needs to be clarified with your insurance provider and the exact details worked out. But if any of the situations you find yourself encountering unexpectedly result in a loss of income for you, you should be able to get that money back from your provider.

Final Thoughts

The bottom line with travel insurance in Australia is that you need it to mitigate the risks of international travel. Give yourself the best support possible if things go awry. Neglecting something like travel insurance is easy, but unfortunately the consequences can be dire. The peace of mind that comes from knowing you have a professional company with the resources to assist when you need it is worth both the effort and the price of the premium.

RELATED ARTICLE: TOP AIR TRAVEL HACKS FOR FREQUENT BUSINESS TRAVELERS

The post Travel Insurance in Australia: How to Get It and Why appeared first on BUSINESS OPPORTUNITIES.

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %HEADLINESPLUGIN_SHORTDESCRIPTION%. Note: Don't modify the settings here; copy and customize the settings in Main.TWikiPreferences. For example, to customize the USERAGENTNAME setting, create a HEADLINESPLUGIN_USERAGENTNAME setting in Main.TWikiPreferences.

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show headline news in TWiki pages based on RSS and ATOM news feeds from external sites

  • Refresh rate in minutes for cached feeds. Disable caching: 0, default: 60
    • Set REFRESH = 60

  • Maximum number of items shown. Default: 100
    • Set LIMIT = 100

  • Use LWP::UserAgent, or fallback to TWiki's internal getUrl() method. Default: yes
    • Set USELWPUSERAGENT = yes

  • Timeout fetching a feed using the LWP::UserAgent. Default: 20
    • Set USERAGENTTIMEOUT = 20

  • Name of user agent. Default: TWikiHeadlinesPlugin/2.21
      * Set USERAGENTNAME = TWikiHeadlinesPlugin/2.21

  • Default header: (variables are explained in the syntax rules)
      * Set HEADER = <div class="headlinesChannel"><div class="headlinesLogo"><img src="$imageurl" alt="$imagetitle" border="0" />%BR%</div><div class="headlinesTitle">$n---+!! <a href="$link">$title</a></div><div class="headlinesDate">$date</div><div class="headlinesDescription">$description</div><div class="headlinesRight">$rights</div></div>

  • Default format of one item: (variables are explained in the syntax rules)
      * Set FORMAT = <div class="headlinesArticle"><div class="headlinesTitle"><a href="$link">$title</a></div>$n<span class="headlinesDate">$date</span> <span class="headlinesCreator"> $creator</span> <span class="headlinesSubject"> $subject </span>$n<div class="headlinesText"> $description</div></div>

  • Values taken from configure: (only supported if CPAN:LWP is installed)
    • $TWiki::cfg{PROXY}{HOST} - proxy host, such as "proxy.example.com";
    • $TWiki::cfg{PROXY}{PORT} - proxy port, such as "8080";
    • $TWiki::cfg{PROXY}{SkipProxyForDomains} - domains excluded from proxy, such as "intra.example.com, bugs.example.com";

Style Sheets

The default HEADER and FORMAT settings use the following styles. See the style.css file defining the default CSS properties (indentation illustrates enclosure).

  • headlinesRss: output of the HeadlinesPlugin (div)
    • headlinesChannel: channel header (div)
      • headlinesLogo: channel logo (div)
      • headlinesTitle: channel title (div)
      • headlinesDate: channel date (div)
      • headlinesDescription: channel description (div)
      • headlinesRight: channel copyright (div)
    • headlinesArticle: one news item (div)
      • headlinesTitle: article title (div)
      • headlinesDate: article date (span)
      • headlinesCreator: author of article (span)
      • headlinesSubject: subect category of the article (span)
      • headlinesText: article text (div)

Plugin Installation Instructions

  • Download the ZIP file.
  • Unzip it in your twiki installation directory. Content:
    File: Description:
    data/TWiki/HeadlinesPlugin.txt plugin topic
    pub/TWiki/HeadlinesPlugin/style.css default css
    lib/TWiki/HeadlinesPlugin.pm plugin perl module
    lib/TWiki/HeadlinesPlugin/Core.pm plugin core
    Check if above examples show a news feed instead of variable.
  • Optionally, run HeadlinesPlugin_installer.pl to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
  • Alternatively, manually make sure the dependencies listed in the table below are resolved.
    NameVersionDescription
    Digest::MD5>=2.33Required. Download from CPAN:Digest::MD5
    LWP::UserAgent>=5.803Optional. Download from CPAN:LWP::UserAgent

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny, TWiki:Main.MichaelDaum
Copyright: © 2002-2010, Peter Thoeny, Twiki, Inc.; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: v2.6 - 2010-05-16
Change History:  
2010-05-16: TWikibug:Item6433 - more doc improvements
2010-04-25: TWikibug:Item6433 - doc fix: Changing TWIKIWEB to SYSTEMWEB
2010-02-27: TWikibug:Item6313 - fixed bug in ATOM feed with <link ...></link> instead of <link ... /> -- Peter Thoeny
2009-09-30: fixed bug in lastBuildDate of feeds affecting touch parameter functionality -- Peter Thoeny
2009-08-29: added touch parameter -- Peter Thoeny
12 Feb 2009: {PROXY}{HOST} supports domain with and without protocol -- Peter Thoeny
06 Feb 2009: added {PROXY}{SkipProxyForDomains} configure setting, added USERAGENTNAME plugin setting -- Peter Thoeny
11 Dec 2008: added {PROXY}{HOST} and {PROXY}{PORT} configure settings -- Peter Thoeny
13 Sep 2007: fixed parsing of content:encoded
23 Jul 2006: improved atom parser; if a posting has no title default to 'Untitled'
26 Apr 2006: added lazy compilation
10 Feb 2006: packaged using the TWiki:Plugins/BuildContrib; minor fixes
03 Feb 2006: off-by-one: limit="n" returned n+1 articles; make FORMAT and HEADER format strings more robust
23 Jan 2006: released v2.00
05 Dec 2005: internal feed urls must be absolute
02 Dec 2005: added web.topic shorthand for internal feeds
29 Nov 2005: fixed CDATA handling
21 Nov 2005: added ATOM support; extended RSS support; added dublin core support; added content support; optionally using LWP to fetch feeds to follow redirections; corrected CPAN dependencies ; recoding special chars from html integer to entity encoding to increase browser compatibility; added css support; use getWorkArea() if available
11 May 2005: TWiki:Main.WillNorris: added DevelopBranch compatability
31 Oct 2004: Fixed taint issue by TWiki:Main.AdrianWeiler; small performance improvement
29 Oct 2004: Fixed issue of external caching if mod_perl or SpeedyCGI is used
02 Aug 2002: Implemented caching of feeds, thanks to TWiki:Main/RobDuarte
11 Jun 2002: Initial version (V1.000)
Perl Version: 5.8
TWiki:Plugins/Benchmark: GoodStyle 100%, FormattedSearch 99.5%, HeadlinesPlugin 94%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginAppraisal

Related Topics: TWikiPlugins, AdminDocumentationCategory, TWikiPreferences


This topic: TWiki > HeadlinesPlugin Topic revision: r1 - 2010-05-17 - TWikiContributor
 
This site is powered by the TWiki collaboration platformCopyright &© 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.HeadlinesPlugin.