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.

Notes:

  • RSS (Rich Site Summary) is an XML standard used to publish frequently updated works such as blog entries, news headlines and audio.
  • Atom is an XML syndication format used for web feeds.
  • Syndic8.com at 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:

Tue, 22 Oct 2019 16:08:09 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Tue, 22 Oct 2019 16:08:07 +0000 Carrol Strain
Photo by Rodolfo Quirós from Pexels

Sometimes, an up-and-coming entrepreneur will have to work for others while they get their new company off the ground. Are you one of these entrepreneurs? In that case, you might need to interview for jobs that appeal to you. In all cases, you should try to find jobs where you will learn the skills you will need in your own business. And whatever the case, you want to be sure you stand out from the rest in a job interview.

How to Stand Out from the Rest in a Job Interview

Most job seekers make the interview process more complicated than it should be. Their thinking is that they need to do something special to stand out. However, what they do not know is that they only need to focus on the simple rather than the extraordinary. This just means working on basic interview etiquette as well as typical job interview questions. To ensure you get the interview in the first place, read how to write a resume that blows employers' socks off.

RELATED ARTICLE: HIRING GREAT PERSONNEL: HOW TO GET IT RIGHT

When it comes to the interview process, you need to treat it like a conversation and not an interrogation. For example, in normal conversations the idea is to relate with the other person and develop a connection. This is why there is a back-and-forth dialogue. Below are ten simple tips that will help you stand out in your job interview.

1. Keep in Mind That the Job Interview Begins in the Lobby

In most cases, the interview begins even before the job seeker realizes it. The moment you arrive at the reception desk, as well as the way you approach and communicate with the receptionist, in most cases, gets conveyed back to the interviewer. For example, knowing the name of the interviewer and the time of the meeting make you seem organized. Additionally, having good posture while seated helps you project self-assurance. As such, it is wise to start your job interview etiquette as soon as you approach the building.

2. Show Excitement from the Start

One of the main purposes of an interview is to evaluate a job seeker’s representation, communication, and overall abilities. It is important to note that many of the candidates coming for the job interview are qualified. Therefore, to stay ahead of them, you should be excited for the job as well as qualified.

3. Project Self-Confidence in Your Job Interview

Any article, book, blog, video, or article regarding job interviews mentions self-confidence. This is because self-confidence plays a huge role in landing a job.

Remember, however, that confidence is a trait that manifests through character. In other words, the way you walk, talk, and interact with others shows your level of confidence. How do you achieve this? Well, first convince yourself that the position is already yours. Secondly, relax and assume that you are talking to an ordinary person and not your possible future employer.

Other techniques include ensuring that your coat, bag, documents, and anything else are in your left hand when you enter the interview room. In other words, keep your right hand free for a handshake. Also, try not to look overwhelmed and clumsy. Therefore, before you are called into the job interview room, prepare your things in advance.

4. Limit Nervous Habits

When sitting down with the interviewer, ground yourself. Plant your feet firmly on the floor and place your hands on the desk or your lap when sitting down. If you tend to shake your legs up and down, consider crossing them at the ankles. If your habit is tapping or twirling a pen, don't hold one. In other words, understand your nervous habits and try to limit them-before, during, and as you exit the job interview.

5. Remember to Smile

During a job interview, never forget to smile. Smiling helps relax both you and the interviewers. It also makes you appear friendly, and it helps with developing a connection with others. Especially, smile at the beginning of the interview and the end of the interview.

6. Prepare Your Introduction

It is now common knowledge that your interviewer will ask you about yourself. This question is often framed in different ways. For example, an interviewer might say, ''What are you working on currently?'' or, ''Walk me through your resume,'' or, ''Tell me about yourself.''

For this reason, always prepare the introduction for your job interview in advance. In this way, you can focus on your most relevant skills and experiences. In a similar vein, if in you have had multiple jobs, do not bore your interviewer with irrelevant skills and job experiences. Only pick out those that relate to the post you’re interviewing for.

7. Plan Your Job Interview Stories

You already know that your interviewer will want to confirm your job qualifications. Accordingly, they will typically pull a piece of information from your job description and ask you to provide examples of that information.

Also, during the job interview, they may describe the skills or attributes they are looking for in a candidate and ask you to prove you have them. Another technique is to share about their current responsibility or project and ask you to describe how you would handle it.

For this reason, you should always be prepared for a job interview. Plan a story that is relevant to the job. Use your experience and the skills you have gained as a guide for giving them what they are looking for.

On the other hand, sometimes interviewers will ask about something that is not relevant to the job, but don’t let that distract you. Prepare ahead of time so you will be ready for any question that arises. (You might even want to ask a trusted friend to help you with some role-playing practice job interviews.)

8. Ask Questions During the Job Interview

Remember, a job interview is just like an ordinary conversation. In other words, it’s a two-way exchange. Most job seekers, however, don’t ask any questions. They just follow the lead of the interviewer and answer the questions the interviewer asks about their potential role, their interest, and their knowledge about the job position. This puts the burden of the conversation solely on the interviewer. Surely, they would appreciate a little help from you!

So never leave an interview room with a question in your mind. During the job interview, try to learn more about the job, your role, and other things about the company.

9. Use Visual Signals to Help You Remember Important Points

In most cases, when a person enters an interview room, they forget one or two major points that can help. This may be a response to specific questions, introducing themselves, examples of their experience and skills, and so on. This is where giving yourself a clue, sign, or signal comes into play. So don’t forget to take a notebook or writing pad to your interview.

For example, let’s assume you are applying for a position as a financial analyst. Assuming that your past job responsibilities went beyond financial analysis, and you don’t want to forget those points, then give yourself a sign. Using big letters, write ''Financial Analysis Responsibilities'' in your notes. This will remind you to speak about those responsibilities.

This technique can apply to anything such as the steps you might take to accomplish a task, finishing strong, and so on. This is a technique that also applies during a Skype interview.

10. Finish Strong

End the job interview with a persuasive and compelling finish and create an unforgettable impression. Begin by thanking your interviewers for their time and for giving you the opportunity to interview. Emphasize your interest in the position.

Inquire about the next step and ask how to follow up. Do not wilt with relief that the interview is ending until after you have created a strong finish and walked confidently from the building.

Summary

Remember, all interviewers want you to do well so they can fill the position immediately. For them, this would mean no more job interviews, and that means less work for them. Therefore, anytime you are going to an interview, always know that the interviewer is on your side.

All they are looking for is the best and most qualified person for the position. For this reason, be relaxed when going to a job interview. The tips in this article will help you stand out from the rest. All you have to do is prepare in advance.

The post 10 Tips for Standing Out in a Job Interview appeared first on Business Opportunities.

Tue, 22 Oct 2019 00:36:15 +0000 Carrol Strain
Photo by Juhasz Imre from Pexels

Owning real estate assets that generate income - in other words, being a landlord - is always a good idea if you can make it work in your favor. The downside that keeps some people from investing in rental properties is the expense of upkeep. For example, taxes, mortgage interest, repairs, maintenance, and emergency calls at 3 a.m. are unavoidable. Add the possibility that a tenant might destroy the property and you're looking at a full-time job.

Although becoming a landlord can be a full-time job, it doesn't have to be that way. Here's how to generate income as a landlord without having to deal with the daily grind.

To Be a Successful Hands-Off Landlord Hire a Property Management Company

You'll need to own multiple properties to turn a profit as a landlord. Moreover, successful landlords outsource the majority of their tasks to a reputable property management company. This is because it's too much for one person to handle.

A property management company like Green Residential is the secret to making your investments profitable. In short, they can help you turn your rental income into passive income. Without a property management company working on your behalf, your income will be limited by your personal time and effort. You might as well work 60-hour weeks at a desk job.

An article on Forbes.com estimates that to earn a $50,000 per year as a landlord, you'll need to earn more than $4,000 per month in profits. This salary will require owning either commercial property or multiple residential properties. However, no matter how you do it, you'll burn out attempting to do everything yourself.

RELATED ARTICLE: HOW TO MAKE MONEY WITH COMMERCIAL REAL ESTATE

While it's possible to find individual property managers with low rates, there's an advantage to having a full management team. First, property management teams carry a wide variety of experience with all types of properties and tenant situations. What’s more, property management teams often get fantastic rates from the best local contractors. This will save you a ton of cash on repairs and maintenance.

Property Management Companies Are Reliable

Property management companies also tend to be more reliable than individuals who do management and contracting work on the side. For a property management company, taking care of tenants and landlords is a full-time job. It gets all of their attention. Further, when you find a company that's been in business for many years, you're hiring a well-oiled machine.

A Property Management Company Will Do the ''Dirty Work''

Nobody really wants to deal with finding contractors for yard work, plumbing, construction, dealing with upset tenants, chasing late rent, running credit checks, reviewing applications, or handling evictions. A property management company will handle all of these tasks for you in a professional and legal manner. Perhaps you could save money by doing it yourself. However, your time is better spent looking for more property to turn into income.

Educate Yourself Before Buying Any Properties and Becoming a Landlord

Whether you've already purchased property or you're still looking, education is the strongest foundation for turning a profit as a hands-off landlord.

In a real estate buying guide published by Money Under 30, the first suggestion is to talk to other investors who have accomplished the goals you're trying to reach. On the other hand, don't seek advice from friends and family members.

The other suggestions are:

  • Read a variety of material from successful real estate authors. You can find plenty of articles online or at your local bookstore.
  • Buy some real estate courses. There are legitimate real estate courses on the market. However, be careful not to buy into Internet marketing schemes that don't provide any true value.
  • Evaluate a neighborhood before buying a property. An ideal neighborhood has a 35/65 percent ratio of renters to homeowners. Don't buy property in run-down neighborhoods with high crime rates. You'll end up with broken windows, vandalism, and potentially worse scenarios.

Also, be sure to read the guide linked above for more tips on buying income-generating properties.

Be Willing to Work Hard Initially as a Landlord

In the beginning, you'll need to put in hard work to set yourself up for earning passive income. Don't be afraid to get your hands dirty, dive in, make mistakes, and learn. The more you know and understand about being a landlord, the easier it will be to handle tough situations.

You can certainly pass everything off to a property management company immediately if you prefer not to get involved in the daily grind of being a landlord. Just be sure to source a reputable company with a local, physical presence in your area so you know your properties are in good hands.

The post How to Become a Successful Hands-Off Landlord 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

This is a pre-installed plugin. TWiki administrators can upgrade the plugin as needed on the TWiki server.

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-2013 Peter Thoeny, TWiki.org
© 2005-2007 Michael Daum wikiring.de
License: GPL (GNU General Public License)
Plugin Version: 2013-02-16
2013-02-16: TWikibug:Item7091: Use TWISTY in installation instructions section and change history
2013-01-29: TWikibug:Item7131: HeadlinesPlugin doesn't match pattern in multiple lines.
2012-12-10: TWikibug:Item7070: HeadlinesPlugin doesn't support multiple disks.
2012-11-13: TWikibug:Item7016: Restore changes for earlier versions with LWP
2012-11-13: TWikibug:Item7020: Categorize TWiki Variable
2012-10-31: TWikibug:Item7016: Utilize <guid> value when it is available
2012-09-05: TWikibug:Item6837: Doc fixes
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
Plugin 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


This topic: TWiki > HeadlinesPlugin
Topic revision: r8 - 2013-02-16 - TWikiContributor
 
Copyright © 1999-2019 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.