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]]:* $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 (Timeout)

Business Opportunities Weblog

Write

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

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

Tue, 22 May 2018 03:46:22 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Tue, 22 May 2018 03:46:22 +0000 Bizop Team
Image Credit: Tobias Scheck on Flickr

If you have recently moved or expanded your business to Dubai, one of the first things you’ll need to do is to obtain a driving license and car insurance. That’s because, first and foremost, you’ll need a license in order to legally drive a car.

However, the rules and regulations pertaining to getting a driving license can be confusing. What’s more, the process varies from one emirate to another. Moreover, you can't buy car insurance until you have a valid UAE driving license.

You’ll need the essentials to begin with. For example, you’ll need your existing driving license as well as proof of citizenship in your home country. Additionally, your driving skills will affect your car insurance premiums. As an insider tip, try Policybazaar for car insurance in the UAE for affordable and reliable insurance quotes.

Based on your situation, you can decide what you should do next. For example:

 

Scenario 1: No Valid Driving License

If you are a beginner, start by registering yourself with any of the best driving schools in Dubai. Then, try to attend at least 40 classes.

Once you pass the school’s driving tests, you need to pass the final test by the Roads and Transport Authority (RTA) Dubai, United Arab Emirates.

If you pass on your first attempt, this will cost you about 5,500 dirhams.

Required Documents

  • Copy of your passport
  • Passport-size photographs
  • Valid emirates ID (original and copy)
  • Eye test results
  • No Objection Certificate (NOC) from your sponsor (if required)

If you have a valid driving license, then the country from which your driving license was issued and your citizenship will determine if your existing license can be ported into a UAE license or not.

 

RELATED ARTICLE: 4 HACKS FOR ENTREPRENEURS ENTERING INTERNATIONAL MARKETS

 

Scenario 2: Transferred Licenses

The RTA has listed 31 countries from which citizens can transfer their driving licenses:

  1. Australia
  2. Bahrain
  3. Austria
  4. Canada
  5. Belgium
  6. Denmark
  7. France
  8. Finland
  9. Greece
  10. Germany
  11. Ireland
  12. Japan
  13. Italy
  14. South Korea
  15. Netherlands
  16. Kuwait
  17. Norway
  18. New Zealand
  19. Poland
  20. Oman
  21. Qatar
  22. Portugal
  23. Saudi Arabia
  24. Romania
  25. Spain
  26. South Africa
  27. Switzerland
  28. Sweden
  29. United Kingdom
  30. Turkey
  31. United States of America

However, some licenses require translation into Arabic/English before the transfer.

If you have citizenship and a driving license from one of the above-mentioned countries, the process will be quite simple for you.

For instance, if you are a citizen of the USA and hold a valid driving license, you can directly go to the Roads and Transport Authority and get your UAE driving license the same day, provided that all your documents are submitted on time.

Required Documents

  • Passport (original and copy)
  • Driving license (original and copy)
  • Passport photos
  • Copy of your residence visa
  • Translation or embassy letter (if required)
  • Eye test certificate from any of the test centers approved by the Dubai Health Authority
  • NOC from your sponsor (if required)

Contact the RTA call center at 8009090 to see if you’ll need any other documents.

 

 

If You Hold a Valid License but You Are a Citizen of a Country That’s Not on the List

What if you do not have citizenship in any of the above-listed countries but hold a valid driving license from a country on the list? First, you need to enroll in a driving school and then register for the driving test procedures by RTA. To schedule your appointment directly, you need to carry all the documents with you

To cite an example, Indian citizens with a valid driving license issued in Qatar will need to register with a driving school in Dubai for license procedures.

What If You Fail?

If you fail the test, you need to reattempt and attend at least 8 more driving classes.

How Much Will It Cost?

Including the driving school fees and the RTA fees, it will cost you around 2,000 dirhams. This may vary, however, from one institute to another.

Required Documents

  • Emirates ID (original and copy)
  • Original driving license along with a copy
  • Passport copy with visa page
  • NOC from your sponsor, depending on your case
  • A minimum of 8 passport-size photos
  • Eye test results (Some driving schools can arrange for this.)

 

Licenses from Countries Not Included on the RTA List

  1. If your driving license is from a country that is not mentioned above, then is not possible to transfer it to the UAE driving license. And this means that you will also not get car insurance in Dubai.
  2. If your current home country license is valid more than five years, however, then you can apply for the UAE license. But for that, you need to complete at least 20 driving classes before you take your driving test.
  3. The number of driving classes you need to take depends on the validity of your driving license.
  4. If your driving is valid for 2 to 5 years, then the number of classes required is 30. If it is valid for less than 2 years then you need to take at least 40 classes. The fees vary as per the validity of your license and the driving institute.
  5. Required documents will be same as above.

 

Summing It Up

If you are working in Dubai, then the above guide will be helpful to you. However, the process can be confusing for anyone. All the same, if you know how to go about it, then you can easily get your driving license transferred and enjoy driving on the roads of Dubai.

The post A Comprehensive Driving License Guide for Expats in Dubai appeared first on Business Opportunities.

Tue, 22 May 2018 01:56:13 +0000 Bizop Team
Image Credit: Pexels.com

Are you struggling with writing a good introduction paragraph for an essay or some other piece of writing? No matter what you’re writing, having an effective introduction is essential.

In other words, you want to pull your readers in right away. You want to write an introduction that makes your reader interested from the very first sentence.

Every introduction has some key elements, and today we’re going to discuss those basics so you’ll know what to do.

On the other hand, if you’re working with a really tight deadline and you know you need some help, you have the option to buy an essay from Edu Birdie online immediately. There, you’ll also get some practical recommendations from qualified writers.

 

Three Steps to a Winning Introduction

We’re going to talk about a three-step method of writing a great introduction that you can easily apply to almost everything you write.

  1. Divide your introduction into three parts from the very beginning. Those parts arethe hook, background information, and thesis statement. The hook is about making your readers interested. For this purpose, you can use quotations, questions, interesting facts, proverbs, or even a joke. The background information is about giving the basics of your topic without providing any details. And the thesis is stating your position on the topic with a single strong, clear statement.
  2. Base your introduction on the reader’s curiosity. Read what you’ve written and think whether you would like to read more if you were an average reader. Keep readers totally interested and captivated.
  3. Give the reasons for what you’re going to say later in your essay. The reasons are the main ideas. Pick the strongest idea and provide a map for other paragraphs. Particularly if you’re writing an essay,state your personal opinion about the topic.

 

What Not to Include in Your Introduction

There are a few introduction don’ts. For example, do not reference the topic of the essay directly in the first sentence. Do not start with citing a dictionary or encyclopedia.

And do not begin with a sentence that throws doubt on the rest of your essay.For example, avoid phrases such as, ''I’m not sure,'' ''I don’t know,'' and so on.

Additionally, do not begin with the purpose of your writing straight away. You don’t need to explain the purpose of the assignment to the reader in the very first sentence. Instead, try to grab your readers’ attention and make them want to read more.

An introduction should be a minimum of four or five sentences. However, it should not be more than 10-15% of the total word count. Everything depends on the size of your assignment. Make sure that your introduction is not the longest part. A reasonable balance is important.

Introduction 300w, introduction-2-768x512.jpg 768w, introduction-2-1024x683.jpg 1024w, introduction-2-1200x800.jpg 1200w" sizes="(max-width: 2500px) 100vw, 2500px" />

Image Credit: Pexels.com

One of the most effective ways to grab your reader’s attention straight away is by providing him or her with an immediate sense of time and place. Do this by by engaging your reader in a discussion from the very beginning, perhaps by opening with a question.

Alternatively, you could create one or more characters and introduce them to your reader via a short scene that’s related to your topic. You could even insert some dialogue between two or three characters. If you use a dialogue technique, don’t write anything else in your introduction. Just start your essay with a short conversation extracted from the context and related to your topic. In other words, drop your readers directly into a scene.

 

RELATED ARTICLE: HOW TO WRITE COMPELLING CONTENT

 

Just Follow the Three Rules

When writing an introduction, remember these three rules: Your first paragraph shouldn’t be longer than the body. Your first sentence should catch readers’ attention, making them want to read more. And the thesis statement in your introduction should be clear and specific.

Apply these three rules to almost any introduction you write, whether it’s for an essay assignment in a college class, an advertisement, or a blog post.

The post How to Write a Great Introduction for Whatever You’re Writing appeared first on Business Opportunities.

Tue, 22 May 2018 01:32:09 +0000 Bizop Team
Photo by Lukas from Pexels

First things first: What exactly is a virtual machine?

In a nutshell, a virtual machine, or VM, is ''a computer file, typically called an image, that behaves like an actual computer…creating a computer within a computer.''

Virtual machines have a slew of useful applications. For example, you might want to test some new software before fully deploying it throughout your company. Or you could experiment with a new operating system for your business’s network before you take it live.

You don't have to be a creative savant to imagine the possibilities here. However, when they're not properly secured, virtual machines present real security risks for their users.

In the cybersecurity realm, there's simply no way to completely remove risk from the equation. These six pointers will help strengthen your security posture while running virtual machines, though. Are any of these missing from your system?

 

RELATED ARTICLE: BUSINESS AND TECHNOLOGY IDEAS FOR CITIES OF THE FUTURE

 

1. Avoid Bridging Unless Specifically Indicated

Virtual machine tools commonly enable ''bridging,'' or the removal of certain partitions between the VM and the host device. Though bridging has limited applications for sophisticated users, you should disable it by default. In the absence of a specific-use case and a clear understanding of what you're doing, don't change this default. Doing so could open your system up to a host of potential threats, particularly if you're testing sketchy software on your VM.

 

2. Use a Robust Backup Suite

Use a robust backup suite built to accommodate your virtual machine. For instance, if your go-to VM is Microsoft Hyper-V, you'll need a suitable Microsoft Hyper-V backup system. Set and adhere to a regular backup schedule, or automate the process entirely. And get in the habit of imaging each new VM instance as soon as it's spun up to preserve a clean copy for later use.

 

3. Limit Personal or Sensitive Information in Testing Environments

No matter how secure you know (or assume) your testing VM to be, avoid introducing personal or sensitive information. No containment mechanism is completely foolproof. It's better to avoid even the remote likelihood of a breach than to realize you're in hot water when it's too late.

 

 

4. Be Quick to Disconnect Your Virtual Machine from the Internet

Realizing your virtual machine’s full potential as a testing medium likely requires a public Internet connection. But that doesn't mean you shouldn't wait until the last possible moment to connect your VM, nor to cut the connection at the first sign of trouble. If you suspect your VM has been compromised, burn it.

 

5. Don't Offload Tested Software Until You're Sure It's Safe

Your VM is a great place to quarantine software of unclear provenance. However, that advantage evaporates the moment you deploy tested software on your host device. Therefore, be absolutely sure it's safe before reaching this point.

 

6. Don't Copy Deployed VMs or Nodes

Once you've exposed your VM to the public Internet, or even an internal network, it is no longer considered ''clean.'' Therefore, its future usefulness as a bare testing medium is limited.

''If a virtual node has been connected to a network or exposed to files from USB drives, it could contain malware,'' writes cybersecurity expert James Cage. ''Copy that node, and you also copy the risk.''

Keep 'Em Separated

Whole books have been written on proper virtual machine usage. You can't possibly glean everything you need to know from a single blog post.

However, if there's one lesson you take away from this overview, let it be that it's always better to keep them separated. In this context, ''them'' means your virtual machine and the public Internet. If you don't take proper precautions to wall off your virtualized platforms from the rapidly proliferating threats outside its walls, you're in for a rough ride. And remember: Fortune always favors the prepared.

The post 6 Key Pointers for Running Your Virtual Machine Safely 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.21 - 12 Feb 2009
Change History:  
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 - 12 Jan 2009
-- TWiki:Main.MichaelDaum - 13 Sep 2007


Current Tags:
create new tag
, view all tags
Topic revision: r1 - 2009-02-13 - 03:55:45 - TWikiContributor
 

Computational Fluid Dynamics and Turbulence Mechanics
@ the University of Manchester
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