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:

Mon, 20 May 2024 19:26:27 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Mon, 20 May 2024 19:26:25 +0000 Carrol Strain

Running a business is fast paced, highly pressured, and generally always exciting. However, it can also be isolating, especially if you're a new business owner working from home. This heady mix can make the experience quite stressful.

RELATED ARTICLE: CREATING YOUR BUSINESS’S FIRST PROTOTYPE

In this article, UK company formation specialists 1st Formations share their advice for how new business owners can avoid isolation when operating a business from home.

1. Use a Coworking Space

Our first top tip is to simply not work from home as a new business owner, or at least not work from home all of the time. Coworking spaces provide a fantastic opportunity for entrepreneurs to get out of the house and work among other people for at least some of the week.

As well as providing a professional environment in which to get your head down and focus (albeit in a more bustling environment than your spare room), their design typically promotes collaboration and cooperation. This is useful when you find yourself struggling with a particular challenge. This is because there's normally a friendly face on hand to help.

What's more, while coworking spaces house disparate businesses, the hosts will try and foster a positive culture amongst these clients. This means there's often a bit of a social scene available when the time comes to shut down your laptop. This can be useful for providing you with an outlet after a busy day.

Spaces normally have flexible membership plans. This means you can drop in as and when you feel the need, or you could spend the whole week there. Do whatever works best for your requirements and your budget.

2. Work from Coffee Shops and Other Shared Spaces as a New Business Owner

If your budget just can't stretch to pay for a coworking space but you are keen to get out of the house and be among other people, don't worry. There are alternatives.

Coffee shops are a good option for a new business owner. For example, for the price of a brew or two, you can plonk yourself in a comfy chair, connect to the Wi-Fi and have a productive few hours. Similarly, some nicer pubs are welcoming to laptop-wielders. This is especially the case during the daytime when they're quieter, just as long as you're happy to buy a few drinks. (Whether or not these contain alcohol is entirely up to you).

If the coffee shop or pub isn't quite the vibe you're looking for, you could head to the library or any other communal space, such as a local arts hub or even a shopping center. Additionally, if the weather is good and an internet connection isn't integral for a specific task, you could pop into the park.

These all represent different ways that you can break away from an isolating work cycle on a budget.

3. Attend Networking Events

If you find yourself feeling lonely during the working day, networking events may be useful. For one thing, they could provide you with basic human interactions. For another, they might also give you opportunities to grow your business.

So research the area. You may be surprised by just how many events are taking place. This may be especially true if you live in or around a major city or town. If you are interested in dipping your toes into the world of handshakes and business cards, we recommend taking a look at sites such as The Federation of Small Business and Eventbrite for local events that are relevant to you and your business.

We appreciate that networking events aren't for everyone, however. In fact, the mere mention of them can be enough to fill some new business owners with dread. However, they do vary in form, from small industry-specific get-togethers over breakfast to large prosecco-fueled black-tie dinners. So if you are willing to give them a go, you're bound to find an event that's right for you.

4. Regularly Check in with Team Members

This won't be relevant to everyone. However, if you do have a business partner or a team of employees, take the time to check in with them for regular check-ins as and when it's convenient. You shouldn’t do these catch-ups via email or online messages. Instead, conduct them face-to-face through video calling software.

You may find that a weekly call every Monday is suitable. At that time, everyone can discuss what they have planned for the week as well as look at any challenges they are facing. Alternatively, you could hold the calls on Friday afternoons. If you do, perhaps you can make them more social, essentially banning work chat and focusing on life outside of the business. Encourage people to talk about what they're binging on TV, plans for the weekend, and so on. If your team is large enough and it doesn't result in too many suspicious groans, you could even host a weekly or monthly quiz.

Moving away from the online, provided that geography isn’t too much of a barrier, you should also schedule some genuine meetups for you and your team for work-based events that can also evolve into social occasions. This is great for developing company culture in a mainly remote business.

5. A New Business Owner Can Certainly Step Outside for Breaks

If you're feeling starved for interaction with other people but home is generally providing a suitable, productive working environment, a simple thing you can do is ensure that you always take your lunch break (or any break for that matter) away from home.

Head to a nearby bustling area, grab some lunch in your favorite cafe, get a coffee, run your errands, meet up with a friend. In other words, do anything that gets you away from your desk and among other people.

Combating isolation doesn't mean that you have to find like-minded business owners who are going through the same thing as you. Sometimes, as desperate as it may sound, any human interaction will help lift you out of a rut and make you feel better about yourself.

6. Get Active

In addition to our previous point of getting out of the house and making the most of your breaks, you could take this to the next level and get seriously active.

Secure a gym membership, join a running club, start playing football again-anything that gets your heart pumping. It doesn't matter whether it’s before, during, or after work, so long as you do it and enjoy it.

This is a fantastic way to help feel better about yourself. What’s more, it can introduce you to a range of different people. This alone could alleviate the feelings of isolation that you may be experiencing.

7. A New Business Owner Has the Right to Seek Professional Help

Finally, if the feelings of isolation are becoming too much and the tips we've covered so far in this article aren't helping, it may be time to seek professional help. This emotion may have nothing to do with being an entrepreneur or working from home. However, your emotional state could be worsened by your business situation.

Either way, if the isolation persists, we strongly recommend visiting the below websites for further guidance.

In the long run, this will not only help you feel better but will also make you a better entrepreneur.

So There You Have It

That was seven ways to avoid isolation as a new business owner working from home. We hope you find this article useful as you strive to build a successful business while also ensuring your mental health is always being looked after. Thanks for reading.

RELATED ARTICLE: HOW TO SET UP A PERSONAL INJURY LAW FIRM

Are you an entrepreneur looking to make your business official? 1st Formations can help register your limited company from only £12.99. All you need to do is pick an appropriate company name. Then choose your company formation package, make the necessary payment, and complete the quick, simple online form. You could be ready to trade in just three to six working hours. Take a look at their company formation packages now.

RELATED ARTICLE: 24 BUSINESS IDEAS IN REAL ESTATE THAT ARE VERY SUCCESSFUL

The post New Business Owner? 7 Ways to Avoid Isolation appeared first on BUSINESS OPPORTUNITIES.

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.

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:Sorted ascending
    pub/TWiki/HeadlinesPlugin/style.css default css
    lib/TWiki/HeadlinesPlugin/Core.pm plugin core
    lib/TWiki/HeadlinesPlugin.pm plugin perl module
    data/TWiki/HeadlinesPlugin.txt plugin topic
    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

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.