Headlines Plugin

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/ ) is a good site listing 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
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]]$n $description" format="$t* [[$link][$title]]"}%
to get the latest Slashdot news as a bullet list format:

HeadlinesPlugin ERROR: 500 Can't connect to slashdot.org:443 (Connection refused)

Business Opportunities Weblog

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

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

Mon, 29 May 2017 03:51:42 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Mon, 29 May 2017 03:38:38 +0000 Bizop Team

How Big Businesses Are Getting Their Software to Market Quicker and Quicker

In the world of software development, these days it's vital products are released quickly. Customers demand a lot more from technology in this digital age, which really increases the pressures on businesses to get it right the first time.

As many smaller businesses have discovered the hard way, when you're developing software yourself, there's a lot that can go wrong, and it can be an extremely time-consuming process. So, how exactly do big businesses get their products to market quickly?

DevOps: The Fast Solution to Getting Products onto the Market Quickly

The main reason big businesses are able to get software onto the market in what feels like record speed, is because they have help. It's easy to assume it would be because they have a more talented team who somehow manage to develop high-tech, reliable and error-free software every time. However, it has more to do with the tools they are using, and by that we mean DevOps.

According to Wikipedia, DevOps is a term that refers to a set of practices that ''emphasize the collaboration and communication of bothsoftware developersandinformation technologyprofessionals while automating the process ofsoftware deliveryand infrastructure changes.'' By transforming the way things get done, DevOps aims to speed up the process of building, testing, and releasing software.

DevOps has become increasingly popular over the years. Consisting of a range of complex tools and processes, it helps not only with the development of software, but with testing it and fixing any potential errors. It delivers a lot of impressive benefits when used correctly and can really help reduce production time, ensuring you meet your customers' high demands.

However, DevOps is more than just a collection of tools. It also incorporates cultural changes into the workplace. So, if you want to get the most from it you're going to need to adjust the way you work as well as the tools you're using.

One of the best benefits of DevOps is the fact that it can help you to avoid potential downtime caused by software failure. It's said that an infrastructure failure can cost a business up to $100,000 an hour. Yes, an hour! Bigger businesses stand to lose more, which is why they have started to invest in DevOps services to ensure they don't lose a substantial amount of money.

How Can Your Business Take Advantage of DevOps?

While it is certainly possible for businesses to incorporate DevOps into their operations, it's much better to enlist the help of a professional company. Doing so will substantially minimise the amount of work you need to do to benefit from DevOps. That's because you won't need to spend days, or even weeks, researching how to work the complex tools and processes.

Overall, if your small business were to incorporate DevOps into its strategy, you'd find it much easier to keep up with your larger competitors. Why not look into a hiring a professional DevOps company today?

The post How Big Businesses Are Getting Their Software to Market Quicker and Quicker appeared first on Business Opportunities.

Mon, 29 May 2017 03:37:03 +0000 Bizop Team

Could Investing in a New Office Be Less Expensive than You Think?

Have you been putting off moving offices because you think it will be too expensive? Even leasing is often considered an expensive risk. However, did you know there are some excellent, cheap ways to rent office space? What's more, the benefits could far outweigh any initial costs you need to pay.

 

Saving Money with Serviced Offices

The top way to save money when moving offices is to look out for serviced premises. Companies that provide these services offer a great selection of serviced offices, each ready for businesses to move into immediately.

Serviced offices are a particularly great choice for those working in popular city locations such as London. Renting an office in London is expensive enough without having to buy all of the additional equipment and pay out for numerous renovations to ensure it fits your business's needs. However, serviced offices come with everything you need to run a productive, efficient and successful company.

So, the fact that you won't need to buy new equipment or make any major changes to the building's design, really helps to save you a small fortune.

 

What Are the Benefits?

There are a lot of benefits that come from choosing serviced offices other than the great cost savings. Just some of the main ones include:

  • It boosts your brand's image
  • It gives you a competitive edge
  • It boosts staff morale
  • The servicing company provides an all-inclusive service

When you move into an upgraded, high-tech serviced office, it automatically boosts your brand's image. This in turn will help you to attract more customers and ensure you keep your existing ones happy.

As serviced offices are typically fitted out with the latest technology, it also allows you to affordably keep up with your competitors. It also saves you a lot of money if you haven't currently got the latest tech.

A change in scenery can also have a positive effect on your employees. It can really boost motivation and, in turn, productivity. Then there's the fact the latest tech will make it easier for your employees to carry out their tasks more quickly and easily.

Finally, serviced offices provide an all-inclusive service. The monthly costs you pay include absolutely everything from the office space itself to the equipment and any potential repairs which may need doing along the way.

Overall, it really isn't as expensive as you might think to lease serviced offices. The benefits it will give your business also far outweigh the costs of moving. So, if you're truly looking to improve your business, it's a good idea to look into serviced offices in your area.

 

The post Could Investing in a New Office Be Less Expensive than You Think? appeared first on Business Opportunities.

Mon, 29 May 2017 03:11:22 +0000 Bizop Team

3 Things to Consider Before You Start a Business

If you fancy yourself as the next Richard Branson or Steve Jobs then now is as good a time as any to take the plunge. Being an entrepreneur is rewarding and empowering, and it could change your life. However, before you quit your job and start a company there are a few things you should consider.

 

  1. Do Something You Enjoy

There are no two ways around it, owning your own business is a lot of work. You might have to work outside office hours, and unless you hire staff from the get go, you will be responsible for everything from admin and accounts to winning clients and completing any work that comes in.

It is much easier to cope with all of this if you actually love what you do. Think carefully about the business you are planning to go into. Make sure you enjoy working in the industry and can see yourself doing it for a while, as it could take a bit of time before you start earning decent money. Running a business is challenging, but if you can get through the early days, you will reap the rewards.

 

  1. Concentrate on What You're Doing

While it is good to be aware what your competitors are doing, it is not everything. They might appear to have more customers than you in the beginning; it might seem to you that they have better momentum or even more success, but that is none of your business. You can learn from their success, but if you are a carbon copy of them your business will be an imitation rather than an original.

Make your business stand out by putting your own stamp on your products or services. Let your business shine in its own right and only offer services or products you believe in. This will make them easier to sell, as you won't have to pretend you know their value. You genuinely will.

 

3.Set Yourself up to Succeed

There is an old adage that says, if you fail to plan then you plan to fail. This is true in many areas of life but especially business.

Writing up a business plan in advance will help you to cover all the bases when it comes to start-up costs and requirements, attracting clients or customers, and selecting appropriate products or services. If you prepare and plan everything in advance then your tasks will be much more manageable when it's time to do them.

Pay special attention to your budget and avoid overspending or underestimating your costs. Make sure you register your company properly and apply for any licenses or required documentation in advance.

It is also important to purchase appropriate insurance for your company. This will protect your personal assets and wealth if the worst should occur. Furthermore, in order to avoid confusion and lawsuits at a later date it is worth putting everything in writing. Provide employees and customers with contracts so they know what is expected of them and whatresponsibilities you have, too. The best way to draw up a good contract is to contact an attorney.

The post 3 Things to Consider Before You Start a Business 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.SitePreferences. For example, to customize the USERAGENTNAME setting, create a HEADLINESPLUGIN_USERAGENTNAME setting in Main.SitePreferences.

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show headline news in Foswiki 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 Foswiki'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: FoswikiHeadlinesPlugin/2.21.2
      * Set USERAGENTNAME = FoswikiHeadlinesPlugin/2.21.2

  • 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)
    • $Foswiki::cfg{PROXY}{HOST} - proxy host, such as "proxy.example.com";
    • $Foswiki::cfg{PROXY}{PORT} - proxy port, such as "8080";
    • $Foswiki::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

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.

Check if above examples show a news feed instead of variable.

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny, Foswiki:Main.MichaelDaum (2005-2007)
Copyright: © 2002-2009, Peter Thoeny, TWIKI.NET; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Release: 2.21.2
Version: 6822 (2010-03-21)
Change History:  
09 Mar 2010: can now use 0 properly with HEADLINESPLUGIN_REFRESH, HEADLINESPLUGIN_LIMIT, HEADLINESPLUGIN_USERAGENTTIMEOUT
08 Mar 2009: Ported without changes to Foswiki namespace by Kenneth Lavrsen and put under "Feel Free To Modify" in Foswiki context.
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.008
Home: Foswiki:Extensions/HeadlinesPlugin
Support: Foswiki:Support/HeadlinesPlugin
Topic revision: r1 - 2009-02-13, ProjectContributor
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback