Tags:
create new tag
, view all tags

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 and ATOM feeds.

Syntax Rules

%HEADLINES{"..."}%

Parameter Explanation Default
"..." Source of RSS or ATOM 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
header="..." Header. May 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. May 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
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

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. Note that some of the variables are already used above. This is done by purpose to use different feeds with the same formatting parameters. If there's a conflict the non-dc tags have higher precedence, i.e. a <title> content </title> is preferred 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 referring 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:

Sat, 20 Jan 2018 03:04:31 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Sat, 20 Jan 2018 02:56:39 +0000 Bizop Team

5 Profitable Businesses You Could Start Today with Little Money

Jumping from the daily 9-5 routine of working for someone else to becoming your own boss can seem like an all-too-distant dream. Nonetheless, ideas for profitable businesses you might want to start float through your mind day and night.

However, you fear that there simply isn’t a sufficiently strong market for the business idea that most appeals to you. Or you might be afraid that most businesses would require you to spend money you currently lack.

But wait. You could actually be mistaken on both counts. Here are some ideas for exciting and profitable businesses that would require only a modest financial outlay.

 

RELATED ARTICLE: 4 UP-TO-THE-MINUTE ONLINE BUSINESS IDEAS FOR 2018

 

Developing Mobile Apps

We use our smartphones for a huge range of activities these days. Listening to music, shopping, keeping in touch with friends…. The list goes on. It shouldn’t surprise us, then, that the mobile app market is booming. As a matter of fact, Startups.co.ukreports thatit generated about $37bn in revenue in 2017.

You could develop a mobile app-and at pleasantly little financial expense. However, before you proceed, carefully consider what functionality and target audience your app will have.

 

Selling Creative Work

There are various creative fields in which selling your creative work-even to a global market-can be delightfully simple. Those fields include photography, art, music and literature.

You would also have flexibility over how you sell the work. You could easily upload your music, for example, to an online shop. Then you could sell it as downloads.

On the other hand, if you like working on art, you might already have many pieces of art. You could create an online store where customers could view your work and place orders. Or, you could take advantage of the opportunity afforded by a site such as Etsy. Then you could simply mail the pieces to customers when they purchase them.

 

Teaching Online Courses

If you have already built up a formidable body of knowledge about a particular subject, you could teach that knowledge to other people through providing online courses.

When going down this route, however, you might need to spend a lot of time creating the courses. Then you would need to set up your website before you could start selling anything. All the same, your cash outlay should be pretty light.

Furthermore, once your site has started making money, some occasional marketing efforts would be all you would need to put forth in order to keep that income steady.

 

Bookkeeping

If you are the kind of person who can effortlessly absorb numbers in a way that amazes your friends, you might be an awesome bookkeeper in the making!

You can take your training through online courses. Your aim should be to get certified with a professional body. For instance, that body in the UK is the Association of Accounting Technicians. Training for that certification will cost you only about 40. Your local community will have many small businesses that could benefit from your bookkeeping, says Money Nuggets.

 

 

Being a Lifestyle Coach

All of us can easily lose our way in our efforts to thrive. However, you might be able to help others get back on track by becoming a lifestyle coach.

Whether you will be assisting people with their relationships, their careers, their personal development or something else, don’t overlook insurance concerns. For example, you could compare multi bike insurance if you will often be traveling to provide your coaching services widely. This is important, because you would be legally barred from driving a motorbike on UK roads if you lack the right insurance.

 

Get Started Today

So if what you really want to do with your life is start your own business, don’t wait. Take the first steps today and be on your way!

The post 5 Profitable Businesses You Could Start Today with Little Money appeared first on Business Opportunities.

Sat, 20 Jan 2018 02:39:26 +0000 Bizop Team

Image Credit: aremac / 123rf.com

How to Start a Private and Lucrative Recycling Business

Starting a recycling business is a responsible environmental decision. What’s more, it’s an opportunity to earn a good living.

One of the biggest things that prevents people from doing it is the misconception that these businesses focus only on collecting old paper, bottles, and soda cans. In reality, though, the biggest profit comes from removing gold from cell phones and computers as well as refurbishing and selling household goods.

 

RELATED ARTICLE: JUNK REMOVAL VANCOUVER: A SMALL-BUSINESS SUCCESS STORY

 

Skills Needed to Start a Recycling Business

People who enjoy the most success in this kind of business understand where to find items to recycle. They also know the best markets to resell them. What’s more, they know and use terms associated with the business that describe it as a process. Some of these terms include:

  • Reclaim
  • Recover
  • Reprocess
  • Reuse

Households across the country generate approximately $1 trillion worth of waste every year. However, recycling a large portion of that waste results in the need to use less energy and fewer natural resources. Additionally, with each generation becoming more environmentally conscious than the last, there has never been a better time to start a recycling business.

 

Decide Who to Serve

Both individual neighborhoods and businesses need the services of a recycling business. The first thing for the new business owner to decide is the customer base that he or she wants to serve. For example, it could be private residences, government agencies, or public schools. It's also a good idea to choose a niche industry, such as metal, electronics, tires, or construction waste.

 

Legal Matters

It's advantageous for the new business owner to meet with an attorney and decide on a business structure. Further, it’s a good idea to file for copyright protection on the business name. The business lawyer can also advise whether to start the business from scratch or buy a franchise. Another person to meet with is a business insurance agent to decide on coverage.

Finally, obtaining certification in one or more areas related to health, safety, and recycling helps the new business owner distinguish himself or herself from the competition.

 

State and Small Business Grants to Start a Recycling Business

Before starting this kind of business, entrepreneurs should check with the Department of Environmental Protection or the conservation agency for their state. The most likely place to find funding with these agencies is through a business development grant. Some state grants restrict eligibility to new recycling businesses employing a limited number of people. Other states offer matching grants, which means the state will contribute the same amount as the new business owner.

The United States Environmental Protection Agency offers grants for new recycling businesses through a program it sponsors called the Small Business Innovative Research Program. Another idea is to apply for a federal grant.

 

 

Help to Educate the Public on Recycling

Americans throw away millions of pounds of items every year that could have been recycled. An important function of any recycling company is to provide education about recycling and then offer to pick up the items. The most common categories of recyclable items that end up in landfills include:

  • Appliances
  • Batteries
  • Carpet
  • Clothing
  • Cosmetics
  • Compact fluorescent light bulbs
  • Computers and electronics
  • Crayons
  • Eyeglasses
  • Oil

Seeing these and other items get used again instead of polluting the earth in landfills makes recycling a personally rewarding career as well as a financially rewarding one.

The post How to Start a Private and Lucrative Recycling Business appeared first on Business Opportunities.

Plugin Settings

Plugin settings are stored as preferences settings. Do not change the settings here, they are here only for illustration purposes showing the default values. Define the settings in Main.TWikiPreferences. For example, to customize the HEADLINESPLUGIN_USERAGENTNAME setting, add a * Set HEADLINESPLUGIN_USERAGENTNAME = ... bullet in Main.TWikiPreferences.

  • Refresh rate in minutes for cached feeds. Set to 0 to disable caching:
    • Set HEADLINESPLUGIN_REFRESH = 60

  • Maximum number of items shown:
    • Set HEADLINESPLUGIN_LIMIT = 100

  • Use LWP::UserAgent if set to 1, or fallback to TWiki's internal getUrl() method if set to 0:
    • Set HEADLINESPLUGIN_USELWPUSERAGENT = 1

  • Timeout fetching a feed using the LWP::UserAgent:
    • Set HEADLINESPLUGIN_USERAGENTTIMEOUT = 20

  • Name of user agent:
    • Set HEADLINESPLUGIN_USERAGENTNAME = TWikiHeadlinesPlugin/2011-07-08

  • Default header: (variables are explained in the syntax rules)
      * Set HEADLINESPLUGIN_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 HEADLINESPLUGIN_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

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.

  • For an automated installation, run the configure script and follow "Find More Extensions" in the in the Extensions section.

  • Or, follow these manual installation steps:
    • Download the ZIP file from the Plugins home (see below).
    • Unzip HeadlinesPlugin.zip in your twiki installation directory. Content:
      File: Description:
      data/TWiki/HeadlinesPlugin.txt Plugin topic
      pub/TWiki/HeadlinesPlugin/style.css Default CSS
      lib/TWiki/Plugins/HeadlinesPlugin.pm Plugin Perl module
      lib/TWiki/HeadlinesPlugin/Core.pm Plugin core
    • Set the ownership of the extracted directories and files to the webserver user.
    • 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 configuration and testing:
    • Run the configure script, enable the plugin in the Plugins section
    • Configure the plugin: See plugin settings above.
    • Test if the installation was successful: See example above.

Plugin Info

  • 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

Plugin Author: TWiki:Main.PeterThoeny, TWiki:Main.MichaelDaum
Copyright: © 2002-2011 Peter Thoeny, Twiki, Inc.
© 2005-2007 Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: 2011-07-17
Change History:  
2011-07-17: TWikibug:Item6764: Add VarHEADLINES variable documentation; doc improvements; setting NO_PREFS_IN_TOPIC
2011-07-08: TWikibug:Item6725: Change global package variables from "use vars" to "our"
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: VarHEADLINES, TWikiPlugins, AdminDocumentationCategory, TWikiPreferences

Topic revision: r5 - 17 Jul 2011 - TWikiContributor
 
This site is powered by the TWiki collaboration platformCopyright © 1999-2018 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.