r2 - 2009-08-29 - 21:55:14 - TWikiContributorYou are here: TWiki >  TWiki Web  > HeadlinesPlugin

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/ ) 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:

HeadlinesPlugin ERROR: 501 Protocol scheme 'https' is not supported (Crypt::SSLeay or IO::Socket::SSL not installed)

Business Opportunities Weblog

Write

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

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

Thu, 26 Apr 2018 23:21:53 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Thu, 26 Apr 2018 07:29:48 +0000 Bizop Team

What matters more, the security of your warehousing facility or its productivity? Both matter equally, right?

Unfortunately, most business owners neglect basic warehouse security in favor of marginal profits. That is a mistake. An unexpected breakdown of a conveyor, a defective crane, a sudden robbery-all these scenarios can put everyday operations in disarray.

What’s more, disruptions such as these can result in order fulfillment delays or an increase in production hours. Further, they translate into lost deals and lost customers. What’s worse, though, is that they also represent hazards that endanger both the facility and its personnel.

Therefore, security procedures for your warehousing facility should be at the top of your priority list. Below, we've highlighted some measures to help you keep your warehouse secure and functioning at all times.

 

1. Commercial Fencing

Use commercial fencing to build security enclosures around items or areas that would otherwise remain exposed. Further, a commercial fence can keep personnel from wandering into sensitive or dangerous locations.

Today, business owners have unique options, such as Advanced Concrete Fence Forming Technology from AFTEC LLC. Fences with this type of technology are designed for versatility, safety, and efficiency. What’s more, their design is based on years of experience.

Additionally, they minimize handling, manufacturing, and installation labor. This leads to a reduction in turnaround time while ensuring a highly secure assembly process.

 

 

2. Pest Control

With multiple windows and big doors, a warehouse is an easy target for pests. Mice, rats, cockroaches, and other insects enter a warehousing facility in search of shelter and food. However, if neglected, they can infest your goods, destroy employees’ apparel, and even hamper daily production.

Therefore, it's important to conduct routine site inspections. Additionally, collaborate with pest control service providers for a healthy warehouse.

Also, use ultrasonic repellents to prevent insects from encroaching upon your facility in the first place. Finally, rearrange inventory periodically to make it challenging for vermin to get settled. That’s because pests shy away from environments where there is a lot of noise and activity.

 

3. Motion Detection

Motion detection technology is widely regarded as the backbone of advanced security systems. That’s because it is capable of recognizing if someone is on your premises.

Motion detection alerts the user when a sensor gets tripped by an individual's movement. This sends a signal to the security system's control panel.

In a warehousing facility, it can detect if someone who doesn't have authorized access is trying to sneak in. A reputable security system company will offer a central monitoring system that functions around the clock, every day of the week. This will ensure continuous safety of your warehouse.

 

4. Safety Amenities

Make modifications to your warehouse's design to ensure it's as safe as possible. Changes should involve safety amenities that keep both goods and personnel safe.

For instance, you can position bright lights throughout your space to offer clear vision whenever staffers are working. Further, install ergonomic equipment and workstations to minimize turning, bending, lifting, and other strained positions. This will reduce the risk of physical injuries.

Moreover, make the warehouse more accessible. Do this by working with architecture specialists to design separate lanes for pedestrians and forklifts. This will separate both forms of traffic, which is key to reducing falling loads and avoiding collisions.

 

RELATED ARTICLE: IS YOUR WAREHOUSE EASILY ACCESSIBLE TO TRANSPORT VEHICLES?

 

Conclusion

Hopefully, these measures will help you get started as you move forward. Use them to identify ways to ensure optimal security in your warehousing facility.

The post 4 Ways to Boost the Security of Your Warehousing Facility in 2018 appeared first on Business Opportunities.

Wed, 25 Apr 2018 03:24:28 +0000 Bizop Team
Image credit: James Cridland on Flickr

Crowdsourcing. Have you heard of it? Many confuse this term with “crowdfunding,” but the two are not quite the same. To be clear, when crowdsourcing is used for generating funding, people generally refer to it as crowdfunding.

On the other hand, crowdsourcing in its purest sense refers to the process of going to a large group of people to get ideas or even to get work done, these days usually by way of the Internet. Often people in the crowd are willing to do the work for free, but that’s not always the case.

Crowdsourcing is a creative, organic dance of imagination and resourcefulness that has brought about numerous ingenious products, content, and ideas. In short, with crowdsourcing, you give your customers an opportunity to be interactive with your brand. In return, you get fresh new ideas for your business.

 

RELATED ARTICLE: WHY YOUR BUSINESS NEEDS TO BE MORE INTERACTIVE (AND HOW TO DO THAT)

 

Below, we take a look at what crowdsourcing is all about.

 

A Brief History of Crowdsourcing

The first known example of crowdsourcing took place in 1714-long before the advent of the Internet-when the British government offered a monetary prize to whomever could come up with the best way to determine a ship’s longitudinal position.

A couple of hundred years later, in 1916, a 14-year-old boy won a logo-design contest when Planter Peanuts went to their customers for ideas. The boy’s design, the Mr. Peanut logo, still graces their products today.

In today’s world, open source software is a prime example of crowdsourcing at its best. Wikipedia, the popular online encyclopedia, is another case in point.

You could even argue that the igaming sector is another example of crowdsourcing, especially since gaming software developers seem to delight in using open-source Linux as a gaming platform. For just one example, take a look at the reputable and safe mFortune mobile casino app.

 

 

Use Crowdsourcing to Build Your Brand

Building a brand takes dedication, hard work, foresight, and a whole lot of patience. It is through trial and error, more often than not, that business owners attain great moments of breakthrough.

However, the lifeblood of any great brand is a free flow of great ideas. When those ideas are rolling, the business, too, is rolling. But when your free flow of ideas slows to a mere trickle, what’s an entrepreneur to do?

Let’s say you’re about to launch a new product but you’re fresh out of marketing ideas. You’ve been looking so closely at the development of your product that you can hardly see straight. As a matter of fact, you can barely remember why you thought your product was a good idea to begin with. And when you force yourself to think about marketing it, you just draw a blank. The same is true for your overworked, exhausted team.

This is where a crowdsourcing campaign can do your brand some good. For example, you could host a contest for the best ideas to include in your upcoming launch.

 

What Could Possibly Go Wrong?

When you go to your customers for ideas and free work, however, you’ll need to find a way to reward them somehow.

For example, the website Lego Ideas invites users to submit ideas for possible Lego sets. If the company decides to accept a user’s idea, he or she receives 1% of any commercial royalties.

But compensation doesn’t always have to come in the form of money. Often, some sincere acknowledgement from you will save the day. Additionally, you could toss in some name recognition on your site for their contributions to your endeavors.

Another drawback is that ideas from the crowd may need some cleaning up before they can be ready for public viewing. For example, when there are pranksters in the crowd, the results can be the precise opposite of what you had in mind, if admittedly hilarious.

 

Use Crowdsourcing to Get Your Business Unstuck

All the same, if you’re up against a wall in your business, consider going to the crowd. Ask your customers for advice. In other words, if you know you need some outside inspiration, crowdsourcing could open up a whole new world for you and your business.

 

About the Author

Carrol Strain is a Top Rated Premium copywriter on Upwork. She is also editor and on-call writer for the Business Opportunities blog.

The post Crowdsourcing: What You Should Know About It and How You Can Use It 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-2009, Peter Thoeny, TWIKI.NET; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: v2.3 - 29 Aug 2009
Change History:  
29 Aug 2009: 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: TWiki:Plugins/HeadlinesPlugin
Feedback: TWiki:Plugins/HeadlinesPluginDev
Appraisal: TWiki:Plugins/HeadlinesPluginAppraisal

-- TWiki:Main.PeterThoeny - 29 Aug 2009

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
This site is powered by the TWiki collaboration platformCopyright © 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