The Six of Swords or the Lord of Science card is likely to appear when you have passed through tempestuous and hazardous situations and landed upon a safe harbor.
It is time we can recoup our lost energies and regain our mental and physical strength. We can sort out the causes of our dreadful time and take decisions for the future.
The Six represents success through effort, or even an improving situation. It also can mean a happy journey, perhaps to foreign countries. In some cases, it can represent the imminent arrival of an important communication.
We can see the issues around us in new, objective and clearer perspective. The decisions we may have to take may be difficult and demanding. You should, however, rest assured that with the appearance of this card, you will find several options that can bring you peace of mind and happiness. This card indicates a healthy balance between emotions and intellect.


text:
Q: No e-mail is send using mail function in PHP I just need that when form is submitted  mail is send to recipient. My form submitted with Response code of 200k but mail is not Delivered. I have installed sendmail.
sendmail.php code:
if(isset($_POST['submit']))
{
    $subject = $_POST['subject'];
    $to = "abc@gmail.com";
    $from = $_POST['email'];
     //data
    $msg = "NAME: "  .$_POST['name']    ."
\n";
    $msg .= "EMAIL: "  .$_POST['email']    ."
\n";
    $msg .= "WEBSITE: "  .$_POST['web']    ."
\n";
    $msg .= "COMMENTS: "  .$_POST['comments']    ."
\n";
    //Headers
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=UTF-8\r\n";
    $headers .= "From: <".$from. ">" ;
    mail ($to, $subject,$msg, $headers);
    echo "sent";
}

installed mail server in php.ini file:
 [mail function]
; Setup for Linux systems
 sendmail_path = /usr/sbin/sendmail -t
sendmail_from = me@myserver.com

A: mail ($to, $subject,$msg, $headers);
echo "sent";

instead of this ,first check if the mail is sent
$mail=mail ($to, $subject,$msg, $headers);
if($mail){
  echo "sent";
}else{
  echo "failed.";
}

By this actually u can know whether your mail function in working or not
if it is not working.the problem can be with SMTP settings in your localhost
enable errors in php if not enabled using
ini_set('display_errors',1);

A: Have you checked mail settings in you php.ini ?
PHP Runtime Configuration
If you don't have access to the PHP settings you can use PHP Mailer to deliver emails with your own parameters

redpajama_set_name: RedPajamaStackExchange


This 2 bedroom, 2 and 0 half bath End Unit located at 5055 GULF OF MEXICO DR #232, LONGBOAT KEY, FL. It is currently listed for $675,000. This home is currently Active under the MLS#: A4431732. It is listed by Cathy Meldahl, Pa of Michael Saunders & Company.The building is constructed of Block||Stucco. 5055 GULF OF MEXICO DR #232, LONGBOAT KEY was built in 1973. It has a for parking. The homeowners association fees are each .
5055 GULF OF MEXICO DR #232, LONGBOAT KEY, FL has been on the market for 20 days. Please contact one of Forbes Property Group's top-rated agents to see this property and to ensure you get the best price for 5055 GULF OF MEXICO DR #232, LONGBOAT KEY, FL.


text:
By Daryl Lang
For ten years, John Harte had a streak going. Every Friday during football season, he had at least one client for his business, Shooting Star Sports Photography, which shoots pictures of high school athletes in action.
But the streak ended last week when Harte, a retired newspaper photographer in Bakersfield, California, had a Friday with no jobs. He's watched his client list of football clients plunge to just 5 players this season, from an average of 15 to 20.
The reason? Harte says fans with DSLR cameras are offering photos for a much lower price than he can charge, or giving them away. "People in this age are just used to having pictures handed to them for free," he says.
Youth action sports photography is a niche business, but it's a source of extra income for many beginning, part-time and retired sports shooters. In some markets, photographers like Harte have made a full-time business out of it.
These photographers' main products are prints, posters and CDs or DVDs of images of specific players, whose parents are willing to pay a pro to shoot their kids in a photojournalistic style.
But as in all sorts of professional photography segments, amateurs are disrupting the market. Harte says a teacher at one of his schools recently bought some good camera gear and is selling disks of game images for $395 each, undercutting the $500 Harte charges for the labor-intensive product. "I have no idea how he's going to do it," Harte says.
Pro photographers grumble that amateurs don't know how to use their gear, crowd the sidelines, and have equipment ill-suited for challenging environments like night games.
"We call it the GWC, guy with camera, or the MWC, mom with camera," says Haim Ariav, owner of Glossy Finish, a sports photo business based near Jacksonville, Florida.
Ariav says one parent at a local high school recently got a Canon Mark III and is posting sports images on Smugmug, where everyone on the team can access the photos for free. "I've got to give her credit. Her stuff looks good," Ariav says. "I can't compete with that."
But Ariav doesn't sound worried, since he has an edge. A former web developer and stock photo agency manager, Ariav started his sports business in 2006 by outfitting a trailer with computer stations. Parents who put down a deposit can enter the Glossy Finish trailer after the games and buy professional prints on the spot.
This unique service is a hit. At large tournaments, Glossy Finish may send nine or 10 photographers to cover games. Ariav's advice is, "You've got to be able to adapt to survive."
Other photographers say there's still plenty of business out there, but they've had to adjust their marketing to get it.
Harte, for his part, is trying to broaden his business by reaching out to other schools in the Los Angeles area.
Rush has taken to promoting his pictures on Facebook and community message boards, inviting parents to visit his site for photos of their team. He's also being choosy about which teams he covers. Select baseball—a league that students have to pay to be part of—tends to be good for business, since it attracts families willing to spend money on sports. Rush, who's been doing this for about three years, says his business is still growing.
In Texas, the situation is similar. Jason Jump runs the Lone Star Christian Sports Network, a Web site that covers private school athletics. The site dispatches photographers to games around the state and parts of Oklahoma, and offers prints and other products for sale online.
Jump, who has been in the business about seven years, says the number of people on the sidelines has increased at many schools. One high school has even started issuing sideline passes, which is unusual.
Jump's photographers can cover as many as 15 games on a Friday night, but they've stopped staffing some schools that are aggressively photographed by parents.
"If we have a parent or a fan… that is out there taking photos, and we know they're burning a disk and giving it away to everyone on the team, those are the schools we're really struggling with," Jump says. At one school where that happened, he says, sales went from "decent" to "absolutely zero."
Despite the competition, Jump says he and his photographers are cordial with the parents working the sidelines—who sometimes ask for camera advice. "We get a lot of parents coming up to us and asking how to operate their machinery," he says.
"Selling the action" – An interview with The Florida Times-Union

redpajama_set_name: RedPajamaCommonCrawl


Our next Network meeting (March 15-16) is approaching and we will collaborate with NTNU Ålesund and Rolls-Royce Marine to ensure fruitful and engaging workshops. You will soon receive a notice of meeting and updated practical information.
Smart Maritime – where do we stand?
In January the SFI research team has been busy finalising 2016-deliverables and reporting to NFR, setting up the 2017 activity calendar and preparing for the Scientific Advisory Committee meeting.
An updated presentation of Smart Maritime is available on the website.
A meeting with the Scientific Advisory Committee took place on January 25th. We presented the main achievements so far, publications, and further plans to the committee members present. More information and meeting material can be accessed here.
The management team is working on concretizing project plans and involvement of our industry partners in 2017-activities. We will soon contact the primary contact persons from each partner to establish an overview on involvement in the SFI's ongoing activity, envisioned involvement throughout 2017 and other expectations. This information gathering will be followed by individual meetings later on.
The Network meeting will take place in Ålesund on March 15-16, at NMK Norwegian Maritime Competence Center. It will combine a presentation of long-term research activity (PhD programs) and group works on ongoing Smart Maritime research topics. We will also invite SFI MOVE for a presentation, and keep time in the agenda to visit our Smart Maritime partners located in Ålesund. More information coming soon.
Henning Borg has recently left Vard Design and started as CEO for SINTEF Ålesund. We are grateful for his valuable contribution to Smart Maritime these past years and wish him good luck at SINTEF Ålesund. At the same time, we welcome Tim Mak in the Smart Maritime team, as technical contact for Vard Design. The successor of Henning Borg in the Board is not yet appointed.
Please email us at smartmaritime@sintef.no or Agathe.Rialland@sintef.no if you need to add colleagues to our contact information and mailing list, as well as for any practical question.
Upcoming events - where to meet us?


text:
Is KoGaMa Safe for Children
KoGaMa – What You Need To Know
Share this with your friends, family and colleagues
Date Published: 7th May, 2021
What is KoGaMa?
KoGaMa is an online gaming platform that allows users to play, create, and share games with other users. It is one of the largest sources of user–created online games. These include shooting, role play, racing, adventure games, and many more. Gamers of all skill levels can find brand new games every day on KoGaMa. It is available on Microsoft Windows, Android, and any desktop browsers. The app is not available for download on iOS, but can be played through Safari browser (though our testers have found this to be glitchy). Our research has found that many users are exposed to KoGaMa through YouTube, as popular streamers are referencing it in videos.
KoGaMa operates in an open world concept with "Lego" style graphics, similar to Roblox. Users create and publish their games in any theme or style they choose. All games created are multiplayer. Any user can join any game, and anyone without an account is able to join as a "tourist." They can then leave a "like" for the game or leave a message on the game's comment section. This appears underneath each game.
KoGaMa rewards users in a points-based level system, encouraging users to create, play, and build as much as they can to garner interaction with other users. Once players 'level up' (reach a new gaming level), they receive further rewards in "gold" which they can use to purchase anything within the game.
This is a free–to–play platform, but does have an Elite version where users can upgrade through monthly payments. The Elite version allows users to play without adverts, puts their games into the "Elite Game" category on the front page, and allows them to level up faster. Users can also buy gold and other items via a credit or debit card.
What are the main risks?
Our game testers signed up as a 10-year-old and a 9-year-old. They were not asked for age verification at any point. Whilst it was difficult to find a PEGI rating, Google Play Store has it listed as PEGI 3 for Android. This rating suggests that it is considered suitable for all age groups.
We wouldn't necessarily agree with this safety rating. In a mixed economy environment where children and adults can play together, there is always a potential risk. Given that there is no age verification, it is not possible to establish a gamer's real age. The Terms and Conditions state any user under 18 years of age must get permission from parents or a cardholder – before making an in-game purchase. There is no reliable mechanism to ensure a young gamer has sought and received such permission.
Due to the open player concept of the platform, any user with an account is able to "friend" another user. They are then able to connect with them using a private chat function. There is no option to make an account private. Gamers can also leave comments on any other profile. This means there is a risk of communication from strangers. This is extremely worrying. Our testers witnessed many examples of this, including users encouraging others to add them on external sites (see example below):
Games created within this platform may contain inappropriate content or themes that could be harmful to children or young people. KoGaMa has stated its moderation team evaluates user created material to ensure all inappropriate content is removed. Any notably offensive words are starred out in the comments (i.e. **** off!), but we are unable to verify if this extends to any in-game content. Users are able to report games and other users directly to KoGaMa. However, testers have been unable to establish the effectiveness of the reporting tool.
The platform is heavily focused on in-game purchases, with special attention and features given to users who pay more. Children and young people may be keen to have "the best" for their games and profile, or might feel pressured to keep up with Elite players. This could lead to encouraging spending habits they may not be old enough to understand.
While playing the game, adverts for 18+ games were present such as Call of Duty: Warzone. This might encourage underage players to seek out other gaming platforms that are age-inappropriate.
©KoGaMa Twitter
Top Tips for Protecting the Children and Young People in Your Care
Engage young people in a conversation about keeping safe online and who they would talk to if someone made them feel uncomfortable
Check that they understand what they should do if they see something online that upsets or worries them
Talk with them about safe online gaming practices. Explain why age ratings are important and discuss the dangers of interacting with strangers online
Make sure a child in your care knows not to share personal information such as their date of birth or location
Set boundaries when it comes to online purchases
Make sure that they understand every time they make an online purchase they are using real money (You could reinforce this by suggesting this may come from their pocket money)
Encourage screen time limits to ensure they are not spending too much time online. Remember, on this platform children may find it challenging to stop playing mid game as in-game penalties or loss of points can be applied
Utilise a family sharing feature to restrict access to platforms and apps you do not want them visiting. This will also allow you to check browsing history
Make sure the children and young people in your care know how important it is to report inappropriate content or users, and walk them through the process – you can use Our Safety Centre to help you do this
If you have concerns about online abuse and exploitation, you can submit an online report to the Child Exploitation and Online Protection Command (CEOP) by visiting here
Share this with others
Join our Online Safety Hub Newsletter Network
Catch up on all the Safeguarding news you may have missed!
We Need to Talk About OnlyFans
Safeguarding Alert – Avakin Life
Ofcom: Media use and Attitudes Report
Call of Duty: Warzone – Risks and Top Tips
Among Us – What you need to know
Free Printable: Emotions Journal!
A free printable resource to help the young people in your care build their emotional intelligence through a daily journal.
Is your school one of the 13,500 who are eligible for FREE access to our award winning Safer Schools App, developed in partnership with Zurich Municipal?
Who Are Your Trusted Adults?
New resources: Primary, Secondary & Special Needs
Teach them to make a strong password
⚠Safeguarding Alert ⚠ Omegle: Talk to Strangers! Platform
Online Safety Trends, Risks, and Threats for 2022
Is Replika App Safe for Kids?
What's Up with WhatsApp
With nearly two billion users worldwide, WhatsApp remains one of the most popular social media messaging services after ten years of being on the scene. Though they've clearly found a formula for success WhatsApp continue to develop and expand. Our online safety experts have examined the newest features to let you know what's up with the changes.
iOS 15 - Latest Update
Apple has released the latest update to their mobile system following a recent security breach much covered in the media. With iOS 15


Howdy guys, this image is about 7 X 9 Wool Rug Design Ideas #5 12'7\. This blog post is a image/jpeg and the resolution of this file is 640 x 640. This image's file size is just 7 KB. Wether You ought to download It to Your computer, you could Click here. You might too download more photos by clicking the following photo or read more at here: 7 X 9 Wool Rug.
The restroom is usually smaller, in comparison to other suites inside your home. Additionally they tend to have numerous perspectives, consequently 7 X 9 Wool Rug Design Ideas #5 12'7\ can be extremely challenging. The variation between a terrible job that really needs to be repainted plus a great job depends mostly around the color of the paint picked for your occupation. The hues used affect how a space is sensed.
Utilizing colors that are dark makes the space look deeper. The room is brightened up by shiny colors, and ensure it is look greater. The amount of moisture within the bathroom is much more than in rooms that are different. This is actually the major reason why colour is removed in properly painted bathrooms. It must enter deep enough to saturate the painted exterior. This depends upon artwork strategies as well as the quality of colour used.
While 7 X 9 Wool Rug Design Ideas #5 12'7\ which are prone-to mold there are numerous colour available that have ides. However, generally, colour developed designed for the lavatory is sufficient. Be sure the region about wall or the ceiling that is often covered by the gear ought to be tightly-closed whilst never to peel.


text:
Thoughts, Portfolio, Work
You are here: Home / Social Media / Social Media and Inbound Marketing is Destroying Traditional Marketing
Social Media and Inbound Marketing is Destroying Traditional Marketing
August 20, 2013 by Eli Overbey Leave a Comment
For the first time in media history, people are gathering their news from online sources more than they are from traditional sources such as newspapers and televisions ("Key Findings," 2011), and specifically, they are gathering their news from the social media sites like Twitter – with over five hundred million new accounts being created everyday (Davis, 2011).
Credit: Danilo Ramos
In less than a decade, social media was created, became highly influential, and now life could not function the same in its absence. Social media is defined as, "Internet based tools and platforms that increase and enhance the sharing of information. This new form of media makes the transfer of text, photos, audio, video, and information in general increasingly fluid among Internet users" ("What is Social Media," 2012, p 1).
Social Media is an outcome of Web 2.0. Web 1.0 relied on HTML markup that was purely semantic and static. The goal was to convey information – such that as a newspaper. The Internet was not engaging or interactive. With the introduction of Web 2.0, along came web-languages, such as Javascript and PHP, that allowed for interaction, participation, and server-based communication.
There have been various social media sites, such as blogs, Facebook and Twitter, which arose out of Web 2.0 languages, that have changed the way people communicate, and the way news is spread. Social media websites now allow users to gather information about current events and post their own thoughts and opinions instantly. Even more, one out of every four and a half minutes of Internet usage is spent on these social media sites, and 1.2 billion people are participating in the online networks. ("Social Networks/ Blogs," 2010; "Facebook Twitter," 2011). Twitter reached 1 in 10 Internet users in the world.
On the contrast, traditional news is in decline (Kushin, 2010). In a report produced by The Pew Research in 2011, it is reported that "people are spending more time with news than ever before, but when it comes to platform of choice, the web is gaining ground rapidly while other sectors are losing. In 2010 digital was the only media sector seeing audience growth" ("Key Findings," 2011, p. 1).
A closer look reveals that local television was down 1.5%, network television was down 3.4%, newspapers were down 5%, audio was down 6%, magazines were down 8.9%, cable television was down 13.7%, but the only growth of the year was the Internet – growing 17.1%. For the first time ever, people gathering their news online surpassed people gathering their news from newspapers (2011).
"In 2011, losses in print advertising dollars outpaced gains in digital revenue by a factor of roughly 10 to 1, a ratio even worse than in 2010. When circulation and advertising revenue are combined, the newspaper industry has shrunk 43% since 2000" (Mitchell & Rosensteil, 2012, para. 8).
Cable news also joined the decline as people are now seeking their news in a social atmosphere ("Key Findings," 2011).
Filed Under: Social Media
About Eli Overbey
I enjoy taking complex information and displaying it in a way that is simple, user-friendly, logical, clear, and elegant, while identifying and keeping true to the branding elements. Constantly wanting to learn. Follow me on Twitter @elioverbey
A Little About Me:
Christian. Husband. Coffee Addict. Communication and Social Media Theorist.
I work in all types of media communication and enjoy taking complex information and displaying it in a way that is simple, user-friendly, logical, clear, and elegant, while identifying and keeping true to the branding elements.
Add Slider to the Home Page of Minimum Pro Theme v.3.0
A Year Without Facebook: Why I Will Never Go Back
Why Every Counselor Should Blog

Site I Currently WebMaster:
Medical Credentialing
Albuquerque Counseling
Bergen County Counseling
Email me at [email protected]
My Way to a Free #Inbound13 Ticket, Thanks to @kippbodnar
Alphabetical List of HTML and HTML5 elements
Web Hosting and Domains
The other day, I blogged about why I left Facebook a year ago. It's been a great year. http://t.co/ZpFRJJ9zEl Yesterday at 11:28 pm
Genesis 2.0 and WordPress SEO Plugin Microdata Test Results http://t.co/cnztFdFTMM August 31, 2013 1:50 am
The Web Developer's SEO Cheat Sheet 2.0 http://t.co/VoNpTcPDdw via @zite August 30, 2013 1:12 am
Copyright © 2013 · Eli Overbey ·


text:
Reports of spat between me and Pat Cummins are complete rubbish, reveals Justin Langer
Justin Langer worked as Australia head coach for four years
(Cricket Australia)
Justin Langer has denied all claims of disputes between him and Pat Cummins, labelling them as rubbish while stating that both parties enjoy a cordial relationship. Langer further added that he enjoyed his stint as head coach of the Australian team and still keeps in touch with most players.
Ever since Justin Langer stepped down from the post of head coach of the Australian team, he has been at the centre stage of controversies. In one of his talks on a cricket podcast, Langer had revealed that 'cowards' in the dressing room leaked stuff to the media for their own agenda, albeit he did not take any names. The remarks led to various rumours that his words were directed towards Pat Cummins.
However, the former Australia head coach has cleared the air around the situation saying that there is no war between the two and he enjoys a cordial relationship with Pat Cummins.
"I spoke to Patty (Cummins) on Monday, we had a long talk about how the team was going, how he's going, how his family's going. And some of this rubbish is complete and utter rubbish," he further added. So any thought there's war between Patty and I could not be further from the truth," Langer said in an interview with the Seven Network.
Langer managed some impressive feats during his tenure with the Australian team. The team won the T20 World Cup under his tutelage as well as the Ashes 4-1. Reflecting on his stint, Langer revealed that he keeps in touch with the Australia team to this day.
"I loved my four years of coaching Australia, it was brilliant. I've been in touch with these guys ever since I stopped being in the team and I can't wait for the test match to start next week, and the reason I can't wait is I haven't seen them," he revealed.
Langer will be part of Seven Network's commentary team during Australia's home summer, with his newest role in cricket set to start with Australia's Test series against the West Indies.
Pat Cummins
Justin Langer
Australia Cricket Team


Situated in Newbury and within 3.8 km of Donnington Castle, The Dolphin has a garden, non-smoking rooms, and free WiFi. The property is set 800 metres from Newbury Library and 12 km from Wickham House. The on-site restaurant serves British cuisine. At the hotel accommodation, all rooms include a desk. With a private bathroom, rooms at The Dolphin also boast a city view. All guest rooms in the accommodation are fitted with a flat-screen TV and free toiletries. A continental breakfast is served each morning at the property. The nearest airport is Southampton Airport, 60 km from The Dolphin.


text:
var pull = require("pull-stream");
var balance = require("pull-balance");

var serial = module.exports.serial = pull.Through(function (read) {
  var reading, reads = [];

  return function (end, cb) {
    reads.push([end, cb]);

    if (reading) return;

    ;(function drain () {
      if (reads.length && !reading)
        (function (end, cb) {
          reading = true;
          read(end, function (end, data) {
            reading = false;
            cb(end, data);
            drain();
          })
        })(reads[0][0], reads.shift()[1]);
    })();
  }
})

var parallel = module.exports.parallel = pull.Through(function (read, highWaterMark) {
  var ended, streams = [];

  function _read(end, cb) {
    if (ended) return cb(ended);
    read(end,  function (end, data) {
      if (end) {
        streams = [];
        ended = true;
      }
      cb(end, data);
    })
  }

  for (var i = 0; i < highWaterMark; ++i)
    streams[i] = hwm(1);

  return balance(streams)(_read);
})

var hwm = pull.Through(function (read, highWaterMark) {
    var buffer = [], waiting = [], ended, ending, reading = false
    highWaterMark = highWaterMark || 10

    function readAhead () {
      while(waiting.length && (buffer.length || ended))
        waiting.shift()(ended, ended ? null : buffer.shift())

      if (!buffer.length && ending) ended = true;
    }

    function next () {
      if(ended || ending || reading || buffer.length >= highWaterMark)
        return readAhead();
      reading = true
      return read(ended, function (end, data) {
        reading = false
        ending = ending || end
        if(data != null) buffer.push(data)

        readAhead(); next();
      })
    }

    process.nextTick(next)

    return function (end, cb) {
      ended = ended || end
      waiting.push(cb)

      next(); readAhead()
    }
  })

redpajama_set_name: RedPajamaGithub


text:
Shehab Qumbor  (, born 10 August 1997) is a Palestinian footballer who plays as a forward for Jabal Al-Mukaber and the Palestine national team.

International career
He played in 2018 AFC U-23 Championship and scored a goal against Thailand in a 5–1 victory that assured Palestine a place in the quarter-finals.

He made his debut for the senior team on 18 January 2021 against Kuwait.

Honours
Al-Wehdat
Jordan FA Cup: 2022

References

External links

1997 births
Living people
Palestinian footballers
Association football forwards
Palestine international footballers
Palestine youth international footballers
Jabal Al-Mukaber Club players
Al-Wehdat SC players
Twin sportspeople
West Bank Premier League players
Footballers at the 2018 Asian Games

redpajama_set_name: RedPajamaWikipedia


More than a year since news broke that Air Force Special Operations Command planned to install and test lasers on its fabulously lethal AC-130 gunships, the plan now is to get its top unfunded requirement tested within a year.
Lt. Gen. Brad Webb, head of AFSOC, told me that was now the plan. General Atomics and other companies have been spending their own research and development (IRAD) money on the capability, as we reported in late 2015.
AFSOC is eager to run tests so it can determine whether the laser is effective and to demonstrate to possible skeptics that it works. "Can we control the beam accurately? There's enough scar tissue that exists from programs in the past that we should show this can be done," he said, referring to the late and largely unlamented Airborne Laser, which was enormously over-budget and late and eventually determined to be unfeasible for military use.
Webb said AFSOC hasn't "decided where the laser would go." The tests will help determine that, as well as which mix of weapons is most effective. His predecessor, Lt. Gen. Bradley Heithold, said the laser would probably go on the left side of the plane.


ROCK YOUR LIFE! Schweiz is a non-profit, educational initiative that is driven by the RYL! CH GmbH, a Berne based company. RYL! targets socially disadvantaged teenagers from backgrounds with weak educational support and connects them with university students specially trained to help the teenager's transition into professional life. RYL! CH further maintains relationships with several partner companies that give the teenagers an opportunity to get an early and in-depth insight into various professions.
Disadvantaged Teenagers discover their potential and set goals for their future. RYL! CH enhances their chances to take up skills and find an appropriate apprenticeship in a conscientious company.
University Students benefit from a professional coaching/mentoring training and have the opportunity to gain experience as a mentor. The social competence acquired is a valuable asset in view of their future business endeavours.
Partnering Businesses get connected with highly motivated, self-assured potential young employees, which add to long-term corporate success.
RYL! CH's aim is to contribute to a more just society by reducing educational inequality. Even in an advanced country like Switzerland, educational inequality is a common phenomena in some areas, notably areas with high percentage of immigrant population. RYL was founded on the belief that every child should have the same opportunites independently of origin or social background.
RYL! CH GmbH started out in Berne in summer 2013 with a still on going pilot project during which 22 university students were selected and trained as mentors. 22 teenagers from the suburban area of Berne (Bethlehem and Ostermundigen) were matched with the mentors. The 8th graders meet with their mentors 2–4 times per month and work together on goals related to their future plans in professional and private life. RYL! CH is currently expanding to other Swiss cities with new local organizations being created in Zurich, Basel and St. Gallen.
The ROCK YOUR LIFE! mentors effectively help disadvantaged teenagers unfold their potential. Mentors provide support in setting professional and educational goals on the transition to upper secondary education.
We are proactive, solution-oriented networkers with various backgrounds. Our field of competence covers economical, social, and educational issues.


text:
Set-StrictMode -Version Latest

function FunctionUnderTest
{
    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$false)]
        [string]
        $param1
    )

    return "I am a real world test"
}

function FunctionUnderTestWithoutParams([string]$param1) {
    return "I am a real world test with no params"
}

filter FilterUnderTest { $_ }

function CommonParamFunction (
    [string] ${Uncommon},
    [switch]
    ${Verbose},
    [switch]
    ${Debug},
    [System.Management.Automation.ActionPreference]
    ${ErrorAction},
    [System.Management.Automation.ActionPreference]
    ${WarningAction},
    [System.String]
    ${ErrorVariable},
    [System.String]
    ${WarningVariable},
    [System.String]
    ${OutVariable},
    [System.Int32]
    ${OutBuffer} ){
    return "Please strip me of my common parameters. They are far too common."
}

Describe "When calling Mock on existing function" {
    Mock FunctionUnderTest { return "I am the mock test that was passed $param1"}

    $result = FunctionUnderTest "boundArg"

    It "Should rename function under test" {
        $renamed = (Test-Path function:PesterIsMocking_FunctionUnderTest)
        $renamed | Should Be $true
    }

    It "Should Invoke the mocked script" {
        $result | Should Be "I am the mock test that was passed boundArg"
    }
}

Describe "When the caller mocks a command Pester uses internally" {
    Mock Write-Host { }

    Context "Context run when Write-Host is mocked" {
        It "does not make extra calls to the mocked command" {
            Write-Host 'Some String'
            Assert-MockCalled 'Write-Host' -Exactly 1
        }

        It "retains the correct mock count after the first test completes" {
            Assert-MockCalled 'Write-Host' -Exactly 1
        }
    }
}

Describe "When calling Mock on existing cmdlet" {
    Mock Get-Process {return "I am not Get-Process"}

    $result=Get-Process

    It "Should Invoke the mocked script" {
        $result | Should Be "I am not Get-Process"
    }

    It 'Should not resolve $args to the parent scope' {
        { $args = 'From', 'Parent', 'Scope'; Get-Process SomeName } | Should Not Throw
    }
}

Describe 'When calling Mock on an alias' {
    Mock dir {return 'I am not dir'}

    $result = dir

    It 'Should Invoke the mocked script' {
        $result | Should Be 'I am not dir'
    }
}

Describe 'When calling Mock on a filter' {
    Mock FilterUnderTest {return 'I am not FilterUnderTest'}

    $result = 'Yes I am' | FilterUnderTest

    It 'Should Invoke the mocked script' {
        $result | Should Be 'I am not FilterUnderTest'
    }
}

Describe 'When calling Mock on an external script' {
    $ps1File = New-Item 'TestDrive:\tempExternalScript.ps1' -ItemType File -Force
    $ps1File | Set-Content -Value "'I am tempExternalScript.ps1'"

    Mock 'TestDrive:\tempExternalScript.ps1' {return 'I am not tempExternalScript.ps1'}

    <#
        # Invoking the script using its absolute path is not supported

        $result = TestDrive:\tempExternalScript.ps1
        It 'Should Invoke the absolute-path-qualified mocked script using just the script name' {
            $result | Should Be 'I am not tempExternalScript.ps1'
        }

        $result = & TestDrive:\tempExternalScript.ps1
        It 'Should Invoke the absolute-path-qualified mocked script using the command-invocation operator (&)' {
            $result | Should Be 'I am not tempExternalScript.ps1'
        }

        $result = . TestDrive:\tempExternalScript.ps1
        It 'Should Invoke the absolute-path-qualified mocked script using dot source notation' {
            $result | Should Be 'I am not tempExternalScript.ps1'
        }
    #>

    Push-Location TestDrive:\

    try
    {
        $result = tempExternalScript.ps1
        It 'Should Invoke the mocked script using just the script name' {
            $result | Should Be 'I am not tempExternalScript.ps1'
        }

        $result = & tempExternalScript.ps1
        It 'Should Invoke the mocked script using the command-invocation operator' {
            #the command invocation operator is (&). Moved this to comment because it breaks the contionuous builds.
            #there is issue for this on GH

            $result | Should Be 'I am not tempExternalScript.ps1'
        }

        $result = . tempExternalScript.ps1
        It 'Should Invoke the mocked script using dot source notation' {
            $result | Should Be 'I am not tempExternalScript.ps1'
        }

        <#
            # Invoking the script using only its relative path is not supported

            $result = .\tempExternalScript.ps1
            It 'Should Invoke the relative-path-qualified mocked script' {
                $result | Should Be 'I am not tempExternalScript.ps1'
            }
        #>

    }
    finally
    {
        Pop-Location
    }

    Remove-Item $ps1File -Force -ErrorAction SilentlyContinue
}

Describe 'When calling Mock on an application command' {
    Mock schtasks.exe {return 'I am not schtasks.exe'}

    $result = schtasks.exe

    It 'Should Invoke the mocked script' {
        $result | Should Be 'I am not schtasks.exe'
    }
}

Describe "When calling Mock in the Describe block" {
    Mock Out-File {return "I am not Out-File"}

    It "Should mock Out-File successfully" {
        $outfile = "test" | Out-File "TestDrive:\testfile.txt"
        $outfile | Should Be "I am not Out-File"
    }
}

Describe "When calling Mock on existing cmdlet to handle pipelined input" {
    Mock Get-ChildItem {
        if($_ -eq 'a'){
            return "AA"
        }
        if($_ -eq 'b'){
            return "BB"
        }
    }

    $result = ''
    "a", "b" | Get-ChildItem | % { $result += $_ }

    It "Should process the pipeline in the mocked script" {
        $result | Should Be "AABB"
    }
}

Describe "When calling Mock on existing cmdlet with Common params" {
    Mock CommonParamFunction

    $result=[string](Get-Content function:\CommonParamFunction)

    It "Should strip verbose" {
        $result.contains("`${Verbose}") | Should Be $false
    }
    It "Should strip Debug" {
        $result.contains("`${Debug}") | Should Be $false
    }
    It "Should strip ErrorAction" {
        $result.contains("`${ErrorAction}") | Should Be $false
    }
    It "Should strip WarningAction" {
        $result.contains("`${WarningAction}") | Should Be $false
    }
    It "Should strip ErrorVariable" {
        $result.contains("`${ErrorVariable}") | Should Be $false
    }
    It "Should strip WarningVariable" {
        $result.contains("`${WarningVariable}") | Should Be $false
    }
    It "Should strip OutVariable" {
        $result.contains("`${OutVariable}") | Should Be $false
    }
    It "Should strip OutBuffer" {
        $result.contains("`${OutBuffer}") | Should Be $false
    }
    It "Should not strip an Uncommon param" {
        $result.contains("`${Uncommon}") | Should Be $true
    }
}

Describe "When calling Mock on non-existing function" {
    try{
        Mock NotFunctionUnderTest {return}
    } Catch {
        $result=$_
    }

    It "Should throw correct error" {
        $result.Exception.Message | Should Be "Could not find command NotFunctionUnderTest"
    }
}

Describe 'When calling Mock, StrictMode is enabled, and variables are used in the ParameterFilter' {
    Set-StrictMode -Version Latest

    $result = $null
    $testValue = 'test'

    try
    {
        Mock FunctionUnderTest { 'I am the mock' } -ParameterFilter { $param1 -eq $testValue }
    }
    catch
    {
        $result = $_
    }

    It 'Does not throw an error when testing the parameter filter' {
        $result | Should Be $null
    }

    It 'Calls the mock properly' {
        FunctionUnderTest $testValue | Should Be 'I am the mock'
    }

    It 'Properly asserts the mock was called when there is a variable in the parameter filter' {
        Assert-MockCalled FunctionUnderTest -Exactly 1 -ParameterFilter { $param1 -eq $testValue }
    }
}

Describe "When calling Mock on existing function without matching bound params" {
    Mock FunctionUnderTest {return "fake results"} -parameterFilter {$param1 -eq "test"}

    $result=FunctionUnderTest "badTest"

    It "Should redirect to real function" {
        $result | Should Be "I am a real world test"
    }
}

Describe "When calling Mock on existing function with matching bound params" {
    Mock FunctionUnderTest {return "fake results"} -parameterFilter {$param1 -eq "badTest"}

    $result=FunctionUnderTest "badTest"

    It "Should return mocked result" {
        $result | Should Be "fake results"
    }
}

Describe "When calling Mock on existing function without matching unbound arguments" {
    Mock FunctionUnderTestWithoutParams {return "fake results"} -parameterFilter {$param1 -eq "test" -and $args[0] -eq 'notArg0'}

    $result=FunctionUnderTestWithoutParams -param1 "test" "arg0"

    It "Should redirect to real function" {
        $result | Should Be "I am a real world test with no params"
    }
}

Describe "When calling Mock on existing function with matching unbound arguments" {
    Mock FunctionUnderTestWithoutParams {return "fake results"} -parameterFilter {$param1 -eq "badTest" -and $args[0] -eq 'arg0'}

    $result=FunctionUnderTestWithoutParams "badTest" "arg0"

    It "Should return mocked result" {
        $result | Should Be "fake results"
    }
}

Describe 'When calling Mock on a function that has no parameters' {
    function Test-Function { }
    Mock Test-Function { return $args.Count }

    It 'Sends the $args variable properly with 2+ elements' {
        Test-Function 1 2 3 4 5 | Should Be 5
    }

    It 'Sends the $args variable properly with 1 element' {
        Test-Function 1 | Should Be 1
    }

    It 'Sends the $args variable properly with 0 elements' {
        Test-Function | Should Be 0
    }
}

Describe "When calling Mock on cmdlet Used by Mock" {
    Mock Set-Item {return "I am not Set-Item"}
    Mock Set-Item {return "I am not Set-Item"}

    $result = Set-Item "mypath" -value "value"

    It "Should Invoke the mocked script" {
        $result | Should Be "I am not Set-Item"
    }
}

Describe "When calling Mock on More than one command" {
    Mock Invoke-Command {return "I am not Invoke-Command"}
    Mock FunctionUnderTest {return "I am the mock test"}

    $result = Invoke-Command {return "yes I am"}
    $result2 = FunctionUnderTest

    It "Should Invoke the mocked script for the first Mock" {
        $result | Should Be "I am not Invoke-Command"
    }
    It "Should Invoke the mocked script for the second Mock" {
        $result2 | Should Be "I am the mock test"
    }
}

Describe 'When calling Mock on a module-internal function.' {
    New-Module -Name TestModule {
        function InternalFunction { 'I am the internal function' }
        function PublicFunction   { InternalFunction }
        function PublicFunctionThatCallsExternalCommand { Start-Sleep 0 }
        Export-ModuleMember -Function PublicFunction, PublicFunctionThatCallsExternalCommand
    } | Import-Module -Force

    New-Module -Name TestModule2 {
        function InternalFunction { 'I am the second module internal function' }
        function InternalFunction2 { 'I am the second module, second function' }
        function PublicFunction   { InternalFunction }
        function PublicFunction2 { InternalFunction2 }
        Export-ModuleMember -Function PublicFunction, PublicFunction2
    } | Import-Module -Force

    It 'Should fail to call the internal module function' {
        { TestModule\InternalFuncTion } | Should Throw
    }

    It 'Should call the actual internal module function from the public function' {
        TestModule\PublicFunction | Should Be 'I am the internal function'
    }

    Context 'Using Mock -ModuleName "ModuleName" "CommandName" syntax' {
        Mock -ModuleName TestModule InternalFunction { 'I am the mock test' }

        It 'Should call the mocked function' {
            TestModule\PublicFunction | Should Be 'I am the mock test'
        }

        Mock -ModuleName TestModule Start-Sleep { }

        It 'Should mock calls to external functions from inside the module' {
            PublicFunctionThatCallsExternalCommand

            Assert-MockCalled -ModuleName TestModule Start-Sleep -Exactly 1
        }

        Mock -ModuleName TestModule2 InternalFunction -ParameterFilter { $args[0] -eq 'Test' } {
            "I'm the mock who's been passed parameter Test"
        }

        It 'Should only call mocks within the same module' {
            TestModule2\PublicFunction | Should Be 'I am the second module internal function'
        }

        Mock -ModuleName TestModule2 InternalFunction2 {
            InternalFunction 'Test'
        }

        It 'Should call mocks from inside another mock' {
            TestModule2\PublicFunction2 | Should Be "I'm the mock who's been passed parameter Test"
        }
    }

    Remove-Module TestModule -Force
    Remove-Module TestModule2 -Force
}

Describe "When Applying multiple Mocks on a single command" {
    Mock FunctionUnderTest {return "I am the first mock test"} -parameterFilter {$param1 -eq "one"}
    Mock FunctionUnderTest {return "I am the Second mock test"} -parameterFilter {$param1 -eq "two"}

    $result = FunctionUnderTest "one"
    $result2= FunctionUnderTest "two"

    It "Should Invoke the mocked script for the first Mock" {
        $result | Should Be "I am the first mock test"
    }
    It "Should Invoke the mocked script for the second Mock" {
        $result2 | Should Be "I am the Second mock test"
    }
}

Describe "When Applying multiple Mocks with filters on a single command where both qualify" {
    Mock FunctionUnderTest {return "I am the first mock test"} -parameterFilter {$param1.Length -gt 0 }
    Mock FunctionUnderTest {return "I am the Second mock test"} -parameterFilter {$param1 -gt 1 }

    $result = FunctionUnderTest "one"

    It "The last Mock should win" {
        $result | Should Be "I am the Second mock test"
    }
}

Describe "When Applying multiple Mocks on a single command where one has no filter" {
    Mock FunctionUnderTest {return "I am the first mock test"} -parameterFilter {$param1 -eq "one"}
    Mock FunctionUnderTest {return "I am the paramless mock test"}
    Mock FunctionUnderTest {return "I am the Second mock test"} -parameterFilter {$param1 -eq "two"}

    $result = FunctionUnderTest "one"
    $result2= FunctionUnderTest "three"

    It "The parameterless mock is evaluated last" {
        $result | Should Be "I am the first mock test"
    }

    It "The parameterless mock will be applied if no other wins" {
        $result2 | Should Be "I am the paramless mock test"
    }
}

Describe "When Creating a Verifiable Mock that is not called" {
    Context "In the test script's scope" {
        Mock FunctionUnderTest {return "I am a verifiable test"} -Verifiable -parameterFilter {$param1 -eq "one"}
        FunctionUnderTest "three" | Out-Null

        try {
            Assert-VerifiableMocks
        } Catch {
            $result=$_
        }

        It "Should throw" {
            $result.Exception.Message | Should Be "`r`n Expected FunctionUnderTest to be called with `$param1 -eq `"one`""
        }
    }

    Context "In a module's scope" {
        New-Module -Name TestModule -ScriptBlock {
            function ModuleFunctionUnderTest { return 'I am the function under test in a module' }
        } | Import-Module -Force

        Mock -ModuleName TestModule ModuleFunctionUnderTest {return "I am a verifiable test"} -Verifiable -parameterFilter {$param1 -eq "one"}
        TestModule\ModuleFunctionUnderTest "three" | Out-Null

        try {
            Assert-VerifiableMocks
        } Catch {
            $result=$_
        }

        It "Should throw" {
            $result.Exception.Message | Should Be "`r`n Expected ModuleFunctionUnderTest in module TestModule to be called with `$param1 -eq `"one`""
        }

        Remove-Module TestModule -Force
    }
}

Describe "When Creating a Verifiable Mock that is called" {
    Mock FunctionUnderTest -Verifiable -parameterFilter {$param1 -eq "one"}
    FunctionUnderTest "one"
    It "Assert-VerifiableMocks Should not throw" {
        { Assert-VerifiableMocks } | Should Not Throw
    }
}

Describe "When Calling Assert-MockCalled 0 without exactly" {
    Mock FunctionUnderTest {}
    FunctionUnderTest "one"

    try {
        Assert-MockCalled FunctionUnderTest 0
    } Catch {
        $result=$_
    }

    It "Should throw if mock was called" {
        $result.Exception.Message | Should Be "Expected FunctionUnderTest to be called 0 times exactly but was called 1 times"
    }

    It "Should not throw if mock was not called" {
        Assert-MockCalled FunctionUnderTest 0 { $param1 -eq "stupid" }
    }
}

Describe "When Calling Assert-MockCalled with exactly" {
    Mock FunctionUnderTest {}
    FunctionUnderTest "one"
    FunctionUnderTest "one"

    try {
        Assert-MockCalled FunctionUnderTest -exactly 3
    } Catch {
        $result=$_
    }

    It "Should throw if mock was not called the number of times specified" {
        $result.Exception.Message | Should Be "Expected FunctionUnderTest to be called 3 times exactly but was called 2 times"
    }

    It "Should not throw if mock was called the number of times specified" {
        Assert-MockCalled FunctionUnderTest -exactly 2 { $param1 -eq "one" }
    }
}

Describe "When Calling Assert-MockCalled without exactly" {
    Mock FunctionUnderTest {}
    FunctionUnderTest "one"
    FunctionUnderTest "one"

    try {
        Assert-MockCalled FunctionUnderTest 3
    } Catch {
        $result=$_
    }

    It "Should throw if mock was not called atleast the number of times specified" {
        $result.Exception.Message | Should Be "Expected FunctionUnderTest to be called at least 3 times but was called 2 times"
    }

    It "Should not throw if mock was called at least the number of times specified" {
        Assert-MockCalled FunctionUnderTest
    }

    It "Should not throw if mock was called at exactly the number of times specified" {
        Assert-MockCalled FunctionUnderTest 2 { $param1 -eq "one" }
    }
}

Describe "Using Pester Scopes (Describe,Context,It)" {
    Mock FunctionUnderTest {return "I am the first mock test"} -parameterFilter {$param1 -eq "one"}
    Mock FunctionUnderTest {return "I am the paramless mock test"}

    Context "When in the first context" {
        It "should mock Describe scoped paramles mock" {
            FunctionUnderTest | should be "I am the paramless mock test"
        }
        It "should mock Describe scoped single param mock" {
            FunctionUnderTest "one" | should be "I am the first mock test"
        }
    }

    Context "When in the second context" {
        It "should mock Describe scoped paramles mock again" {
            FunctionUnderTest | should be "I am the paramless mock test"
        }
        It "should mock Describe scoped single param mock again" {
            FunctionUnderTest "one" | should be "I am the first mock test"
        }
    }

    Context "When using mocks in both scopes" {
        Mock FunctionUnderTestWithoutParams {return "I am the other function"}

        It "should mock Describe scoped mock." {
            FunctionUnderTest | should be "I am the paramless mock test"
        }
        It "should mock Context scoped mock." {
            FunctionUnderTestWithoutParams | should be "I am the other function"
        }
    }

    Context "When context hides a describe mock" {
        Mock FunctionUnderTest {return "I am the context mock"}
        Mock FunctionUnderTest {return "I am the parameterized context mock"} -parameterFilter {$param1 -eq "one"}

        It "should use the context paramles mock" {
            FunctionUnderTest | should be "I am the context mock"
        }
        It "should use the context parameterized mock" {
            FunctionUnderTest "one" | should be "I am the parameterized context mock"
        }
    }

    Context "When context no longer hides a describe mock" {
        It "should use the describe mock" {
            FunctionUnderTest | should be "I am the paramless mock test"
        }

        It "should use the describe parameterized mock" {
            FunctionUnderTest "one" | should be "I am the first mock test"
        }
    }

    Context 'When someone calls Mock from inside an It block' {
        Mock FunctionUnderTest { return 'I am the context mock' }

        It 'Sets the mock' {
            Mock FunctionUnderTest { return 'I am the It mock' }
        }

        It 'Leaves the mock active in the parent scope' {
            FunctionUnderTest | Should Be 'I am the It mock'
        }
    }
}

Describe 'Testing mock history behavior from each scope' {
    function MockHistoryChecker { }
    Mock MockHistoryChecker { 'I am the describe mock.' }

    Context 'Without overriding the mock in lower scopes' {
        It "Reports that zero calls have been made to in the describe scope" {
            Assert-MockCalled MockHistoryChecker -Exactly 0 -Scope Describe
        }

        It 'Calls the describe mock' {
            MockHistoryChecker | Should Be 'I am the describe mock.'
        }

        It "Reports that zero calls have been made in an It block, after a context-scoped call" {
            Assert-MockCalled MockHistoryChecker -Exactly 0 -Scope It
        }

        It "Reports one Context-scoped call" {
            Assert-MockCalled MockHistoryChecker -Exactly 1
        }

        It "Reports one Describe-scoped call" {
            Assert-MockCalled MockHistoryChecker -Exactly 1 -Scope Describe
        }
    }

    Context 'After exiting the previous context' {
        It 'Reports zero context-scoped calls in the new context.' {
            Assert-MockCalled MockHistoryChecker -Exactly 0
        }

        It 'Reports one describe-scoped call from the previous context' {
            Assert-MockCalled MockHistoryChecker -Exactly 1 -Scope Describe
        }
    }

    Context 'While overriding mocks in lower scopes' {
        Mock MockHistoryChecker { 'I am the context mock.' }

        It 'Calls the context mock' {
            MockHistoryChecker | Should Be 'I am the context mock.'
        }

        It 'Reports one context-scoped call' {
            Assert-MockCalled MockHistoryChecker -Exactly 1
        }

        It 'Reports two describe-scoped calls, even when one is an override mock in a lower scope' {
            Assert-MockCalled MockHistoryChecker -Exactly 2 -Scope Describe
        }

        It 'Calls an It-scoped mock' {
            Mock MockHistoryChecker { 'I am the It mock.' }
            MockHistoryChecker | Should Be 'I am the It mock.'
        }

        It 'Reports 2 context-scoped calls' {
            Assert-MockCalled MockHistoryChecker -Exactly 2
        }

        It 'Reports 3 describe-scoped calls' {
            Assert-MockCalled MockHistoryChecker -Exactly 3 -Scope Describe
        }
    }

    It 'Reports 3 describe-scoped calls using the default scope in a Describe block' {
        Assert-MockCalled MockHistoryChecker -Exactly 3
    }
}

Describe "Using a single no param Describe" {
    Mock FunctionUnderTest {return "I am the describe mock test"}

    Context "With a context mocking the same function with no params"{
        Mock FunctionUnderTest {return "I am the context mock test"}
        It "Should use the context mock" {
            FunctionUnderTest | should be "I am the context mock test"
        }
    }
}

Describe 'Dot Source Test' {
    # This test is only meaningful if this test file is dot-sourced in the global scope.  If it's executed without
    # dot-sourcing or run by Invoke-Pester, there's no problem.

    function TestFunction { Test-Path -Path 'Test' }
    Mock Test-Path { }

    $null = TestFunction

    It "Calls the mock with parameter 'Test'" {
        Assert-MockCalled Test-Path -Exactly 1 -ParameterFilter { $Path -eq 'Test' }
    }

    It "Doesn't call the mock with any other parameters" {
        Assert-MockCalled Test-Path -Exactly 0 -ParameterFilter { $Path -ne 'Test' }
    }
}

Describe 'Mocking Cmdlets with dynamic parameters' {
    $mockWith = { if (-not $CodeSigningCert) { throw 'CodeSigningCert variable not found, or set to false!' } }
    Mock Get-ChildItem -MockWith $mockWith -ParameterFilter { [bool]$CodeSigningCert }

    It 'Allows calls to be made with dynamic parameters (including parameter filters)' {
        { Get-ChildItem -Path Cert:\ -CodeSigningCert } | Should Not Throw
        Assert-MockCalled Get-ChildItem
    }
}

Describe 'Mocking functions with dynamic parameters' {

    # Get-Greeting sample function borrowed and modified from Bartek Bielawski's
    # blog at http://becomelotr.wordpress.com/2012/05/10/using-and-abusing-dynamic-parameters/

    function Get-Greeting {
        [CmdletBinding()]
        param (
            $Name
        )

        DynamicParam {
            if ($Name -cmatch '\b[a-z]') {
                $Attributes = New-Object Management.Automation.ParameterAttribute
                $Attributes.ParameterSetName = "__AllParameterSets"
                $Attributes.Mandatory = $false

                $AttributeCollection = New-Object Collections.ObjectModel.Collection[Attribute]
                $AttributeCollection.Add($Attributes)

                $Dynamic = New-Object System.Management.Automation.RuntimeDefinedParameter('Capitalize', [switch], $AttributeCollection)

                $ParamDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
                $ParamDictionary.Add("Capitalize", $Dynamic)
                $ParamDictionary
            }
        }

        end
        {
            if($PSBoundParameters.Capitalize) {
                $Name = [regex]::Replace(
                    $Name,
                    '\b\w',
                    { $args[0].Value.ToUpper() }
                )
            }

            "Welcome $Name!"
        }
    }

    $mockWith = { if (-not $Capitalize) { throw 'Capitalize variable not found, or set to false!' } }
    Mock Get-Greeting -MockWith $mockWith -ParameterFilter { [bool]$Capitalize }

    It 'Allows calls to be made with dynamic parameters (including parameter filters)' {
        { Get-Greeting -Name lowercase -Capitalize } | Should Not Throw
        Assert-MockCalled Get-Greeting
    }

    Context 'When a variable with the same name as a dynamic parameter exists in a parent scope' {
        $Capitalize = $false

        It 'Still sets the parameter variable properly in the parameter filter and mock body' {
            { Get-Greeting -Name lowercase -Capitalize } | Should Not Throw
            Assert-MockCalled Get-Greeting -Scope It
        }
    }
}

Describe 'Mocking Cmdlets with dynamic parameters in a module' {
    New-Module -Name TestModule {
        function PublicFunction   { Get-ChildItem -Path Cert:\ -CodeSigningCert }
    } | Import-Module -Force

    $mockWith = { if (-not $CodeSigningCert) { throw 'CodeSigningCert variable not found, or set to false!' } }
    Mock Get-ChildItem -MockWith $mockWith -ModuleName TestModule -ParameterFilter { [bool]$CodeSigningCert }

    It 'Allows calls to be made with dynamic parameters (including parameter filters)' {
        { TestModule\PublicFunction } | Should Not Throw
        Assert-MockCalled Get-ChildItem -ModuleName TestModule
    }

    Remove-Module TestModule -Force
}

Describe 'Mocking functions with dynamic parameters in a module' {
    New-Module -Name TestModule {
        function PublicFunction { Get-Greeting -Name lowercase -Capitalize }

        $script:DoDynamicParam = $true

        # Get-Greeting sample function borrowed and modified from Bartek Bielawski's
        # blog at http://becomelotr.wordpress.com/2012/05/10/using-and-abusing-dynamic-parameters/

        function Get-Greeting {
            [CmdletBinding()]
            param (
                $Name
            )

            DynamicParam {
                # This check is here to make sure the mocked version can still work if the
                # original function's dynamicparam block relied on script-scope variables.
                if (-not $script:DoDynamicParam) { return }

                if ($Name -cmatch '\b[a-z]') {
                    $Attributes = New-Object Management.Automation.ParameterAttribute
                    $Attributes.ParameterSetName = "__AllParameterSets"
                    $Attributes.Mandatory = $false

                    $AttributeCollection = New-Object Collections.ObjectModel.Collection[Attribute]
                    $AttributeCollection.Add($Attributes)

                    $Dynamic = New-Object System.Management.Automation.RuntimeDefinedParameter('Capitalize', [switch], $AttributeCollection)

                    $ParamDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
                    $ParamDictionary.Add("Capitalize", $Dynamic)
                    $ParamDictionary
                }
            }

            end
            {
                if($PSBoundParameters.Capitalize) {
                    $Name = [regex]::Replace(
                        $Name,
                        '\b\w',
                        { $args[0].Value.ToUpper() }
                    )
                }

                "Welcome $Name!"
            }
        }
    } | Import-Module -Force

    $mockWith = { if (-not $Capitalize) { throw 'Capitalize variable not found, or set to false!' } }
    Mock Get-Greeting -MockWith $mockWith -ModuleName TestModule -ParameterFilter { [bool]$Capitalize }

    It 'Allows calls to be made with dynamic parameters (including parameter filters)' {
        { TestModule\PublicFunction } | Should Not Throw
        Assert-MockCalled Get-Greeting -ModuleName TestModule
    }

    Remove-Module TestModule -Force
}

Describe 'DynamicParam blocks in other scopes' {
    New-Module -Name TestModule1 {
        $script:DoDynamicParam = $true

        function DynamicParamFunction {
            [CmdletBinding()]
            param ( )

            DynamicParam {
                if ($script:DoDynamicParam)
                {
                    Get-MockDynamicParameters -CmdletName Get-ChildItem -Parameters @{ Path = [string[]]'Cert:\' }
                }
            }

            end
            {
                'I am the original function'
            }
        }
    } | Import-Module -Force

    New-Module -Name TestModule2 {
        function CallingFunction
        {
            DynamicParamFunction -CodeSigningCert
        }

        function CallingFunction2 {
            [CmdletBinding()]
            param (
                [ValidateScript({ [bool](DynamicParamFunction -CodeSigningCert) })]
                [string]
                $Whatever
            )
        }
    } | Import-Module -Force

    Mock DynamicParamFunction { if ($CodeSigningCert) { 'I am the mocked function' } } -ModuleName TestModule2

    It 'Properly evaluates dynamic parameters when called from another scope' {
        CallingFunction | Should Be 'I am the mocked function'
    }

    It 'Properly evaluates dynamic parameters when called from another scope when the call is from a ValidateScript block' {
        CallingFunction2 -Whatever 'Whatever'
    }

    Remove-Module TestModule1 -Force
    Remove-Module TestModule2 -Force
}

Describe 'Parameter Filters and Common Parameters' {
    function Test-Function { [CmdletBinding()] param ( ) }

    Mock Test-Function { } -ParameterFilter { $VerbosePreference -eq 'Continue' }

    It 'Applies common parameters correctly when testing the parameter filter' {
        { Test-Function -Verbose } | Should Not Throw
        Assert-MockCalled Test-Function
        Assert-MockCalled Test-Function -ParameterFilter { $VerbosePreference -eq 'Continue' }
    }
}

Describe "Mocking Get-ItemProperty" {
    Mock Get-ItemProperty { New-Object -typename psobject -property @{ Name = "fakeName" } }
    It "Does not fail with NotImplementedException" {
        Get-ItemProperty -Path "HKLM:\Software\Key\" -Name "Property" | Select -ExpandProperty Name | Should Be fakeName
    }
}

Describe 'When mocking a command with parameters that match internal variable names' {
    function Test-Function
    {
        [CmdletBinding()]
        param (
            [string] $ArgumentList,
            [int] $FunctionName,
            [double] $ModuleName
        )
    }

    Mock Test-Function { return 'Mocked!' }

    It 'Should execute the mocked command successfully' {
        { Test-Function } | Should Not Throw
        Test-Function | Should Be 'Mocked!'
    }
}


text:
Q: open an activity with a button in fragment I've solved the problem by setting onclick in xml. Thanks to you all anyway.
I am trying to open an activity with a button in a fragment. But it doesn't seem working with the codes I've been searched online.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {

    return inflater.inflate(R.layout.view2, container, false);
}
public void onActivityCreated(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onActivityCreated(savedInstanceState);

    button = (Button) getActivity().findViewById(R.id.sys_file);

    button.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Toast.makeText(getActivity(), "success2", Toast.LENGTH_SHORT).show();
            startActivity(new Intent(getActivity(), system_file_visit_control.class));
        }

    });
}

A: Try to move this code to onViewCreated method.
Like this:
 @Override
 public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        button = (Button) view.findViewById(R.id.sys_file);

        button.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Toast.makeText(getActivity(), "success2", Toast.LENGTH_SHORT).show();
            getContext().startActivity(new Intent(getContext(), system_file_visit_control.class));
        }

    });
}

If system_file_visit_control is an Activity then this will move to this activity after pressing the button.

A: It might help you, Replace your code with this
private View v;
private Context mContext;

@Override
public void onAttach(@NonNull Context context) {
    super.onAttach(context);
    mContext = context;
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    v= inflater.inflate(R.layout.fragment_test, container, false);
    return v;
}

@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    button = (Button) v.findViewById(R.id.sys_file);

    button.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Toast.makeText(getActivity(), "success2", Toast.LENGTH_SHORT).show();
            startActivity(new Intent(mContext, system_file_visit_control.class));
        }

    });
}

A: You can modify onCreateView by
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.view2, container, false);
    button = (Button) rootView.findViewById(R.id.sys_file);
    button.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            //Start your activity
        }
    });
    return rootView;
}


text:
<!DOCTYPE html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Scriptable > Pie | Chart.js sample</title>
	<link rel="stylesheet" type="text/css" href="../style.css">

<canvas id="chart-0"></canvas>

			<button onclick="randomize()">Randomize</button>
			<button onclick="addDataset()">Add Dataset</button>
			<button onclick="removeDataset()">Remove Dataset</button>
			<button onclick="togglePieDoughnut()">Toggle Doughnut View</button>


text:
NAHB's INTERNATIONAL BUILDERS' SHOW RETURNS TO LAS VEGAS ANNUALLY THROUGH 2016
Posted by Business Travel Destinations | Jan 24, 2013 | Business Travel News
LAS VEGAS – The Las Vegas Convention and Visitors Authority (LVCVA) announced today that the National Association of Home Builders (NAHB) International Builders' Show returns to the Las Vegas Convention Center for four years after a two-year absence. This is the first time the show will be held in Las Vegas for four consecutive years.
"We are excited to welcome the International Builders' Show back to Las Vegas through 2016," said Chris Meyer, vice president of sales for the LVCVA. "This shows their confidence in Las Vegas as a successful place to do business."
The NAHB International Builders' Show is the most important event of the year for the U.S. home building industry and the largest annual light construction trade show in the world. The show attracts approximately 50,000 attendees annually and is projected to generate a non-gaming economic impact of more than $ 250 million for Las Vegas over the next four years.
"We are delighted to be back in Las Vegas, and with the construction industry on the mend, we expect to have a great show," said NAHB Chairman Barry Rutenberg, a home builder from Gainesville, Fla. "Even better, in 2014 the International Builders' Show will be co-located with the Kitchen & Bath Industry Show, expanding the offerings of cutting-edge designs, technologies and products for all segments of the home-building industry."
Design and Construction Week, as the new mega-show will be billed, is expected to attract 75,000 builders, remodelers, developers, architects, designers and other industry professionals to the Las Vegas Convention Center (LVCC), where 2,000 brands will be on display Feb. 4-6, 2014.
In 2015, Design and Construction Week will expand further with the addition of SURFACES, the largest floor-covering industry event in North America for retailers, distributors, installers, designers and home builders; and the co-located StonExpo/Marmomacc Americas, the only show in North America solely focused on the natural stone industry. Shuttle buses will run between the LVCC and the Mandalay Bay Convention Center to allow approximately 25,000 additional attendees to tour all of the exhibits.
For more information, visit buildersshow.com.
LVCVA Press Releases
Previous2013 Predictions for International Business Travel, Meetings and Events
Next2013 Will Be a Good Year for Business Travelers
MGM Resorts Chairman & CEO Discusses The Ability Of Integrated Resorts In Japan To Accelerate International Travel
Hilton London Metamorphosis…a new look for 2013
Global Spanish. III International Congress on the Spanish language
MAJOR INVESTMENTS CONTINUE REINVENTION OF LAS VEGAS


The Denver International Airport (www.flydenver.com) is approximately 40 miles from University of Colorado Boulder (www.colorado.edu).
Pricing will vary widely based on time of day and carrier for flights. Ranges provided include at least three carriers.
CU Boulder provides recommendations on ground transportation to the campus at https://www.colorado.edu/rec-center/outdoorprogram/trips/cu-bound/transportation.html.
Regional Transportation District (RTD) SKYRIDE buses – approximately 90 minutes travel time, the schedule is available at http://www3.rtd-denver.com/schedules/getSchedule.action?runboardId=2431&routeId=AB&routeType=9&&direction=W-Bound&serviceType=1#direction. Round trip is approximately $26, but you will still additional transportation from the Broadway & 27th station in Boulder to Williams Village.
SuperShuttle – approximately 80 minutes travel time. Round trip is approximately $168 directly to Williams Village.
Boulder is 30 minutes from downtown Denver, one hour from Fort Collins and Greeley, one hour and 45 minutes from Colorado Springs, five hours from Grand Junction, and one hour from Denver International Airport.
Parking will be available for those who drive to the CU Boulder campus.
Parking for the week will be $25. You can purchase your parking pass when you check in at the conference desk.


text:
Venezuelan defectors are arming themselves and say they're 'ready for battle' to get rid of Nicolas Maduro
One Venezuelan ex-soldier said dissenters had handguns and were looking for funds to buy other weapons, explosives, bulletproof vests, food and water.
North Koreans understand their government lies, but there's one thing they don't know, according to a defector
North Korean defector Kim Young-il left North Korea when he was 19, in the midst of a famine. It was obvious to him then that the government was lying, but it wasn't until he and other defectors saw South Korea that they understood how different their country was.
Travel 2018-03-08T13:25:00Z
21 photos of North Korea that Kim Jong Un wouldn't want you to see
Though Kim Jong Un has fought to present the Hermit Kingdom to the world as a bastion of military might, the reality of day-to-day life in North Korea is grim.
Play icon A circle surrounding a triangle pointing right. It indicates, "this type of media can be played."
A North Korean defector tells us what life was like under a dictatorship
North Korean defector Hyeonseo Lee explains what life was really like living in the country until she fled at the age of 17.
What it's like living in North Korea — according to a North Korean defector
North Korean defector Hyeonseo Lee is the author of "The Girl With Seven Names," which tells the story of what her life in North Korea was really like.
A North Korean defector tells us how she escaped and survived
Hyeonseo Lee explains how she escaped the country and survived.
You are considered a traitor for having dusty photos of the leaders in North Korea
VIDEO: You could potentially be sent to prison camp.
VIDEO: She couldn't tell her family that she was leaving.


Is it the case that when you hear a song you wish you could play that guitar riff? It is possible! It is possible to pick up the guitar and learn to play, regardless of your age. Follow these useful tips to learn the ropes of playing the guitar.
One good way to become a great guitar player is by learning how to listen. Make sure that you listen to other guitar players, both on albums and live. Pay attention to the type of guitar they are playing as well as how they are achieving the tones. Don't forget to also listen carefully to yourself as you play in order to improve.
When learning the guitar, be sure you know the names of the guitar's parts. Learning the different parts of a guitar will help talk with other musicians. It can also help you a better-informed musician.
A important guitar technique to learn is switching from chord to chord. You should take about fifteen minutes while you practice to make sure you can smoothly switch chords. Being able to make yourself move between chords in an easy way will make your music sound quite a lot better.
If you want to play the guitar well, you have to practice everyday. This is how you strengthen your fingers and train your ears. The more you practice, the more your finger muscles will get used to the chords. Your brain will remember what your fingers should do, and it will become more natural.
Keep your guitar in good shape. Cleaning it properly will make it last longer. Tune it from time to time to keep it sounding sharp. This will make it a pride-worthy instrument.
To get the most for your money when you are just starting out with the guitar, buy an expensive one — less than $100. The reason for this is that you do not know whether you will stick with the instrument or not. Once you decide that you love it, upgrade to a better one.
To keep from getting frustrated when you start out with the guitar, start with the basics. Rather than jumping right into chords and scales, learn the basic parts of the guitar, such as the nut, the fret and the bridge. Learning your instrument gives you a better foundation for knowing how to play.
To keep yourself from taking your guitar back early, you need to realize that pain is a part of the first few weeks of learning the instrument. Your fingers are not ready to handle regular contact with the strings until they develop calluses. Before then, you are likely to feel a good deal of pain each time you play.
Practice playing with other musicians. Not only is playing with others more fun, it will help you learn. Collaborating will help enhance your creative process, and you will be able to help each other become better players. Playing with others is also essential in learning how to work with others.
To make the first steps of learning the guitar easier, begin with easier songs, such as "Mary Had a Little Lamb." Even if you are a fan of death metal, don't be ashamed to start basic. The purpose is to help you memorize single notes. Once yo have those down, branch out to more complex music.
When you are learning to play guitar, your ears are almost as important as your fingers! Be sure to listen constantly. Listen to how others play, whether they are strumming, picking or playing single notes. Listen to everything about the music. Learning to listen well will help you immensely if you ever decide to join a band as well, as you will need to listen to your band-mates in order to make your music cohesive.
People of all ages can learn to play a guitar. It is a great instrument for people of all ages and levels of talent. The guitar is a great instrument for many musical genres. These tips will improve your game significantly.


We are here to help you afford the smile you have always wanted. Everyone deserves a happy positive smile!
We accept cash, checks, Visa, MasterCard, Discover, American Express and insurance benefit payments. We offer several different financing options which offer low monthly payments for extended periods, and in several cases, with zero down and interest free. Dental financing is more flexible than you might think, and we are here to help find an option that best fits your needs.
CareCredit is a healthcare credit card designed to assist financially for your health and dental care. This one-of-a-kind service allows you to receive immediate dental service even if you don't have the means to pay for the treatment up front. You'll work with a CareCredit advisor to make convenient payments every month until the cost of treatment is paid off. Think of it as a line of credit designated for your dental needs, minus the paperwork, credit checks, and hassle of traditional credit cards!
Mark S. Frey, DDS accepts CareCredit as means of payment for dental services you receive at our office. To enroll, simply click on the link below to enroll in CareCredit so you can get started on your dental treatment immediately. You can learn more about CareCredit on their frequently asked questions page on their official website.
We accept any dental insurance plan that allows you the option to see the dentist of your choice. We are a contract provider with Delta Dental and the SSM Group, (formerly called Shirrell). Delta Dental is the largest dental insurance provider in the country, and the SSM group is the largest local dental insurance provider in Sonoma County.
We gladly will process your dental insurance claims and will do our best to answer any questions you may have regarding your dental benefits. Please remember that you are fully responsible for all fees charged by our office regardless of your insurance coverage. If you have any questions, please call our office at (707) 800-3556.


Sometimes AV software gives false alarms over archives with cracks. It may happen because cracks, patches and keygens sometimes have unusual system behaviour. In 99% of cases cracks, patches and keygens are rather safe. Nevertheless you must look through antivirus scan report below and decide for yourself whether to proceed to download or not.
Here goes check result from all available AV software. At the end you will see total theoretical level of threat.
Discussion for Family Tree v7.5 crack.
As an alternative you can try to look for Family Tree v7.5 torrent file. You may need a little bit more time to download it but in fact bittorrents usually offer a full pack (software+crack) so you will not need to bother about product version match.


Take a trip down "Memory Lane," the informal discussion group sponsored by the Jackson Township Historical Society. Memory Lane will begin its second year on April 11. The conversations are held the second Thursday of each month, April through October, at 7 p.m. at the historic one-room schoolhouse, Jackson Center School (7756 Fulton NW, next to the high school).
Everyone is welcome to attend these conversations, which will focus on a topic of interest in the township and beyond. No reservations are required; just bring your own memories to share or come to enjoy the memories of others.
Also see the complete 2019 schedule on Facebook (facebook.com/jacksontwphistory), or e-mail Jackson.historical@gmail.com.
Future topics for discussion: Crystal Springs, Barns, Churches, Coal Mines, WPA, Maps (old and current of Jackson Township, Clubs and Activities (past and present).
Jackson Center School, built in 1870, is a living history museum and the home of the Historical Society. It is located at 7756 Fulton Drive NW, Massillon, Ohio 44646.
We welcome donations of photographs, documents, memorabilia, and other items relating to the history of the township.
Copyright @ Jackson Township Historical Society. All rights reserved.


Desperate refugees flooding Europe as they flee for their lives. Ghastly scenes of terrorist mayhem in Paris and San Bernardino. Crumbling economies, fragile democracies, and widespread violence dominating the news from abroad.
Faced with what seems like a constant barrage of horrors beyond their control, Americans are demanding to hear more from our leaders—and those vying to be our leaders—on how we as a nation should handle threats and complex challenges in this tumultuous world.
We need decisive and muscular international responses to the Islamic State, Russian hegemony, and more. But amid the raucous calls for carpet-bombing cities and punching autocrats in the nose, a wise handful of presidential contenders from both sides of the aisle have also asserted that a multi-faceted, "whole-of-government" effort is most effective in addressing the underlying conditions that give rise to crises in the first place. This type of interagency effort, employing a long-view combination of push and pull, carrot and stick, civilian and military might, is what we need to ensure our national security.
There's plenty of proof of the effectiveness of the whole-of-government approach, too. A coordinated response among federal agencies was key to U.S. leadership in the recent international fight to contain Ebola. Across South Asia, Latin America, sub-Saharan Africa, and beyond, American humanitarian aid teams work closely with uniformed troops and local civil society partners to maintain security in unstable areas, deliver development assistance and respond to natural disasters. Interagency success stories abound, even if they don't get much notice on the conflict-driven campaign trail.
No matter where one stands on the political spectrum, most agree that the United States must remain a strong global leader. To do so, we should use all the national security tools available—both military and civilian—to shore up our ties with other countries, prevent and resolve combustible situations, and promote opportunity overseas as well as here at home.
Our country has unparalleled military capability, which is essential both to projecting power around the world and remaining safe. But our security is strongest when we also invest in robust diplomacy and development efforts, which can reduce the risk of conflict and create the conditions for economic success.
Congress plays a significant role in seeing that the forces of progress and reason triumph over disaster and those bent on destruction. The committees on which I worked on Capitol Hill from 2001 to 2010 produced laws creating large-scale projects to eliminate HIV/AIDS worldwide, combat slavery, and reduce the amount of unsecured nuclear material that could have been used in weapons in Libya and across Eurasia.
Funds for such efforts, along with ongoing programs of all kinds, are also determined by Congress. Although each year the Executive Branch devises a federal budget, under our Constitution the Legislative Branch holds the power of the purse. For the coming year, Congress has just designated $53 billion out of the $1.1 trillion federal budget for non-military international affairs. That's more than last year's level, but less than the President's request. Unfortunately, $15 billion of it comes as "Overseas Contingency Operations" (OCO) funding, which was created a few years ago as a short-term means to support the war on terrorism. OCO funds are not part of the base budget and can't be counted upon from year to year.
In short, we devote a sliver of the budget—roughly one percent, with only a portion of that a reliable base on which to make long-term plans – to activities that do a world of good and enhance our country's international standing. And yet there's debate about the value of spending even that sliver, abandoning the bipartisan tradition of viewing diplomacy and development as essential to our national security aims.
For decades, protecting U.S. interests abroad has meant fostering stable, prosperous, and democratic societies. International human rights became a central focus as far back as the 1970s. Advancing democracy and free markets has been a key part of our foreign policy under every president for the past 30 years. President George W. Bush's response to terrorism included boosting diplomacy and development and significantly increasing the State Department's budget under Secretary Colin Powell. And President Barack Obama has worked to deepen civilian engagement through innovation and trade.
No one suggests that these efforts alone will stop the Islamic State, Boko Haram, and their ilk. However, successfully combating their ideologies requires more than firepower and intelligence-sharing. We also need to work with other countries to ensure that viable alternatives to violent extremism are within reach of people to whom these brutal groups appeal. Such alternatives arise through political reform and economic advancement.
Our country supports programs around the world to promote good governance, reduce corruption, and build grassroots capacity in education, health care, and agriculture. What's more, diplomacy and international development programs open up markets for our goods and services, thereby creating American jobs. The programs also foster the spread of democracy and human rights, leading to more open societies and better partners for the United States.
Now that foreign policy has become a central issue in the campaign, the candidates should not only address the immediate crises, but also make clear how they would invest in security for the long term. We have powerful civilian tools of international influence. The next president should be ready to wield them effectively.
Lynne Weil was a senior executive for the Broadcasting Board of Governors from 2012 to 2014, a senior advisor for the State Department from 2010 to 2012, communications director for the House Foreign Affairs Committee from 2003 to 2010, and press secretary for the Senate Foreign Relations Committee from 2001 to 2003.