Here are some of the top tech gadgets and accessories to look out for at the end of 2015. They could all make good gifts for teen girls.
Apparently tablet sales are falling but who would know it based on the tablet wars that are currently happening.
One of the most exciting developments is the low price of the latest Kindle Fire. At only $49, if you want a tablet that can surf the web, check e-mails, watch videos and listen to music on it's hard to go wrong. The screen is 7 inches and has 8gb of memory but this can be expanded with a micro SD card. It has a 1.3 GHz quad-core processor, great battery life of approximately 7 hours for reading and surfing the web. Its screen isn't Hd but as already mentioned is $49.
Another newly released tablet is the Samsung Galaxy S2 tablet.
This is another sleek tablet at only 5.6mm thin - amazing.
It has a super AMOLED high def screen. also with an 8mega pixel rear camera and high def video.Whether to get the ipad mini or the Samsung Galaxy S2 tablet will probably depend if you prefer the iOS or android operating system.
Smart watches are watches that you pair with a phone and they are selling well in 2015. They then allow you to carry out tasks such as receiving texts on your watch, dictating texts to send to the watch, answer calls, keeping up to date with e-mails and social media. It works with a cell phone nearby but could be good if a teenager is in class and college and can't check a phone, notifications can still be sent to a smart watch. There are a number of smart watches out there such as the pebble watch. The apple watch is perhaps one of the most popular as it has some cool features.
With apple watch you can customize the watch face. The operating system 2 to the watch has just been released which offers some great watch designs. The apple watch also has a fitness element so it can measure your heart rate and can be worked with run keeper too.
Action cameras such as the Go Pro Hero 4 and the Polaroid cube camera are also set to be popular this year.
The Go Pro Hero 4 is perhaps the most popular action camera. It allows the use to film underwater so is particularly great for watersports such as swimming and snorkelling. It'is shockproof and water proof and shoots. It captures 12mp pictures and 1080p60 and 720p120 video. It has wifi connectivity so you can share your pictures and video quickly and easily.
The Go Pro Hero 5 is rumoured to be released in 2016.
The Poloroid cube camera isn't waterproof like the Go Pro Hero and it doesn't really compete, but it is still great for shooting action perhaps when cycling, skateboarding or other similar sports. The camera is small just 35mm by 35mm and has a magnet which will attach to a metal surface. Its very strong so users don't have to worry about it falling off.
There is set to be a new release of the polaroid cube camera in October 2015. It will have added wifi connectivity and the photo resolution will have increased from 6mp to 8mp.
Media streaming players allow the user to have access to extra TV and music channels on their television via a wifi connection. It is an exciting period for media streaming players as many of the top ones (Amazon Fire stick, Google chromecast etc) are being redesigned with new versions arriving this fall.
How the one to look out for is the new Apple TV. If the teen girl you know lives in apple world and has an ipad this is definitely one to consider. It is released at the end of October 2015 and is set to change the way we watch TV.


text:
package org.bgp4j.apps.easybox;

import javax.inject.Inject;
import javax.inject.Singleton;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.XMLConfiguration;
import org.bgp4j.extension.snmp4j.config.EasyboxApplicationConfiguration;
import org.bgp4j.extension.snmp4j.config.impl.EasyboxApplicationConfigurationParser;

/**
 * This class manages the access to the configuration file provided on the command line.
 *
 * NB: The current version just parses the config file once. A future release will support automatic
 * detection of an updated configuration file and soft configuration changes
 *
 * @author Rainer Bieniek (rainer@bgp4j.org)
 *
 */
@Singleton
public class ConfigurationFileProcessor {

	private @Inject EasyboxApplicationConfigurationParser parser;
	private EasyboxApplicationConfiguration applicationConfiguration;

	public void processConfigFile(String configFile) throws ConfigurationException {
		this.applicationConfiguration = parser.parseConfiguration(new XMLConfiguration(configFile));
	}

	/**
	 * @return the applicationConfiguration
	 */
	EasyboxApplicationConfiguration getApplicationConfiguration() {
		return applicationConfiguration;
	}

}

redpajama_set_name: RedPajamaGithub


text:
Q: How to generate PDF from HTML and add link reference(any website) in java code? I am facing an issue related to generate a PDF file from HTML.
In HTML code, I want to click on image and link to "www.w3schoo.com"
but current I can not do that. When done generate that link are not able to click.
Here is my code
public static void main(String[] args) {
        Document document = new Document(PageSize.A4);
        XMLParser xmlParser;
        try {
            PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("D://temp/test-st.pdf"));
            document.setMargins(0, 0, 0, 0);
            document.open();

            CSSResolver cssResolver = XMLWorkerHelper.getInstance().getDefaultCssResolver(false);
            HtmlPipelineContext htmlContext = new HtmlPipelineContext(null);
            htmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());

            PdfWriterPipeline pdf = new PdfWriterPipeline(document, writer);
            HtmlPipeline html = new HtmlPipeline(htmlContext, pdf);
            CssResolverPipeline css = new CssResolverPipeline(cssResolver, html);
            XMLWorker worker = new XMLWorker(css, true);
            xmlParser = new XMLParser(worker);

            xmlParser.parse(new StringReader("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n" +
                    "\n" +
                    "\n" +
                    "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n" +
                    "    <link href=\"page.css\" rel=\"stylesheet\" type=\"text/css\" />\n" +
                    "\n" +
                    "\n" +
                    "
HELLO WORLD
\n" +
                    " CLICK HERE TO LINk TO W3SCHOOL\n" +
                    "\n" +
                    ""));
            document.close();
        } catch (IOException | DocumentException e) {
            e.printStackTrace();
        }
    }

Here is out put

You can see my picture here.
I can not click to link w3school.
It seem href not working when parsing to PDF.
I am able to click image and link to any website If I do this.
    Image image = Image.getInstance("C://temp/sample.png");
    Chunk chunk = new Chunk(image,0,0,false);
    Anchor anchor = new Anchor(chunk);
    anchor.setReference("https://www.w3schools.com/");
    document.add(anchor);

But in case, I read HTML code to generate PDF.
Please kindly help me with this issue?
Thank you!!

A: The spaces around the equal sign in  are preventing the itextpdf from parsing the href attribute correctly.
And don't forget document.close() after

xmlParser.parse(new StringReader(htmlFile));

Here is the code I used to reproduce the issue:
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.tool.xml.XMLWorker;
import com.itextpdf.tool.xml.XMLWorkerHelper;
import com.itextpdf.tool.xml.html.Tags;
import com.itextpdf.tool.xml.parser.XMLParser;
import com.itextpdf.tool.xml.pipeline.css.CSSResolver;
import com.itextpdf.tool.xml.pipeline.css.CssResolverPipeline;
import com.itextpdf.tool.xml.pipeline.end.PdfWriterPipeline;
import com.itextpdf.tool.xml.pipeline.html.HtmlPipeline;
import com.itextpdf.tool.xml.pipeline.html.HtmlPipelineContext;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.StringReader;

public class Main {
    public static void main(String[] args){
        Document document = new Document(PageSize.A4);
        XMLParser xmlParser;
        try {
            PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("/tmp/test-st.pdf"));
            //document.setMargins(0, 0, 0, 0);
            document.open();

            CSSResolver cssResolver = XMLWorkerHelper.getInstance().getDefaultCssResolver(false);
            HtmlPipelineContext htmlContext = new HtmlPipelineContext(null);
            htmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());

            PdfWriterPipeline pdf = new PdfWriterPipeline(document, writer);
            HtmlPipeline html = new HtmlPipeline(htmlContext, pdf);
            CssResolverPipeline css = new CssResolverPipeline(cssResolver, html);
            XMLWorker worker = new XMLWorker(css, true);
            xmlParser = new XMLParser(worker);

            xmlParser.parse(new StringReader("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n" +
                    "\n" +
                    "\n" +
                    "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n" +
                    "    <link href=\"page.css\" rel=\"stylesheet\" type=\"text/css\" />\n" +
                    "\n" +
                    "\n" +
                    "
HELLO WORLD
\n" +
                    "\n" +
                    " Test Test\n" +
                    "\n" +
                    "\n" +
                    ""));
            document.close();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (DocumentException ex) {
            ex.printStackTrace();
        }
    }
}

And the maven dependencies:
<dependency>
    <groupId>com.itextpdf</groupId>
    <artifactId>itextpdf</artifactId>
    <version>5.5.13.2</version>
</dependency>
<dependency>
    <groupId>com.itextpdf.tool</groupId>
    <artifactId>xmlworker</artifactId>
    <version>5.5.13.2</version>
</dependency>

redpajama_set_name: RedPajamaStackExchange


Discussion: Do you know people who are greedy for an inheritance? How do you minister God's love to these people to get their eyes off money and on to the Kingdom of God?
Prayer: Heavenly Father, Let inheritances be left with so much wisdom that greed and money will never destroy a family's relationship, especially the relationship with you. In Jesus' name I pray.
Discussion: Do you pay attention to the Word of God in church? Do you take notes? How do you apply what you hear?
Prayer: Heavenly Father, Let me aim for 100 or the top in everything I do even though I may fall way short many times. I want to improve always so I might as well start shooting for my best in everything I do, knowing I will get more effective over time. Let me produce lots of fruit for you. In Jesus' name I pray.
Discussion: When you encounter a disease, do you do a Bible study on healing? How do you keep the healing scriptures foremost in your mind as well as speaking them out loud so the Word of God can be established?
Prayer: Heavenly Father, Help me pay attention every time your Word is being spoken especially in Church. Let me not forget your words for they are powerful and life and health to me. In Jesus' name I pray.
Discussion: Do you sense the nearness of the Lord when you pray? What would help your prayer life?
Prayer: Heavenly Father, I call upon you in truth and I know you are near to me even though I can't see you. Thank you for answering all my prayers. In Jesus' name I pray.
Discussion: Have you ever spoken too much in a certain situation? How can you control your tongue?
Prayer: Heavenly Father, Please close my mouth when I try to say useless words or words that would bring harm to your kingdom. Let me only speak your words. In Jesus' name I pray.
Discussion: What is your definition of grace? How are you growing in grace? How are you letting more of the Holy Spirit's gifts empower you to let God do what He wants through you?
Prayer: Heavenly Father, I choose from this day on to continue to grow in grace and in knowledge of you and your ability to work through me. In Jesus' name I pray.
Discussion: How do you spend your prayer time with Jesus? Do you write down His thoughts? How much time do you spend listening instead of talking when praying?
Prayer: Heavenly Father, I want to know you intimately, not only to know your power but the price, Jesus, you paid for me on the cross so that I can die to my own reputation and live totally for you. In Jesus' precious name I pray.
Discussion: How can you act with more mercy? How can you act with more kindness? How can you act with more forgiveness?
Prayer: Heavenly Father, I put on the mantle of mercy, kindness, meekness and long-suffering, the ability to be able to love the unlovable, bear the unbearable and have compassion like you Jesus. In your name I pray.
Discussion: How do you see God caring for you? What cares or worries have you not given to Jesus?
Prayer: Heavenly Father, I ask forgiveness for taking cares upon myself that I cannot handle. I now cast them all on you and believe you will help solve them. Thank you for always caring for me. In Jesus' loving name I pray.
Discussion: Many people try to get peace in their lives by using drugs or alcohol. How can you share Jesus, the Prince of Peace, with people who are stressed out?
Prayer: Heavenly Father, I receive your inner peace so that in the midst of the storm of a troubled world, people will see my peace and want to have a relationship with you too. In Jesus' name I pray.
Discussion: How does sin affect your relationship with Jesus? How do you get strength from His Word to overcome temptation?
Prayer: Heavenly Father, Let me see that when I sin it is really sinning against you and it hurts our relationship. I repent that I have only seen sin as affecting me and not you also. Help me to hate sin and anything that would affect our love relationship. In Jesus' name I pray.
Discussion: How do you keep your expectation from weakening when you have to wait a long time for your prayer to be answered?
Prayer: Heavenly Father, This is the key I have been missing in my prayer answers. I have been waiting to believe until after I see results. You don't need faith to believe something you see. I will now start believing the instant my prayer is being sent to you and I thank you before I see it. In Jesus' name I pray.
Discussion: In what ways do you feel you can show God's praises since He has saved you from hell and darkness?
Prayer: Heavenly Father, Thank you for calling me to do your work. Let me learn the role of how to be a priest in my own home. Teach me to work on holiness. In Jesus' name I pray.
Discussion: Do you know someone who has fallen into sin? How are you ministering healing to them?
Prayer: Heavenly Father, Let me never kick a Christian when he or she is down. Speaking bad words about them only continues to hurt a soldier that is already wounded. Instead let me pray for their quick recovery and repentance so that we are an army that cares for the wounded. In Jesus' name I pray.
Discussion: The world's definition of beauty comes from TV or movies but that is not God's definition of beauty. How caught up are you in judging people by their outer beauty instead of their inner beauty?
Prayer: Heavenly Father, Let me never try to show off by my actions, physical attraction or other admirable traits thinking it is all me, for you have given me all things and I recognize that. In Jesus' name I pray.
Discussion: What burdens are you still carrying that need to be given to Jesus?
Prayer: Heavenly Father, I come to you to get rest from all the hectic things going on. Please help me to give all my burdens to you so I can focus on Church and Bible readings without my mind deviating. In Jesus' name I pray.
Discussion: The Holy Spirit's power has been given to the church to those who will obey Him. How does one learn about the authority of Jesus' name so that the devil does not hurt you?
Prayer: Heavenly Father, Take my faith to the place where I can believe that if I am doing what you called me to do, then you will not allow anything to hurt me. In Jesus' name I pray.
Prayer: Heavenly Father, Let me think on this scripture for awhile to know that I have been blessed with tremendous spiritual blessings. I believe I am equipped for every task you call me to do. In Jesus' name I pray.
Discussion: What spiritual blessings did you receive when you made Jesus Christ Lord of your life? What blessings did you receive when you asked for the baptism of the Holy Spirit?
Discussion: How does hypocrisy destroy the church? How does one become on-fire for God?
Prayer: Heavenly Father, I now see why you would spew out luke-warm Christians. It is because they set a bad example for non-Christians. I ask forgiveness for being a hypocrite. Help me to be on-fire for you all my days. In Jesus' name I pray.
Discussion: Do some TV shows, movies and magazines negatively influence your thoughts about God? How can you clean up your thought life?
Prayer: Heavenly Father, I commit my works unto you and you will establish my thoughts according to this scripture. Thank you for helping me. In Jesus' name I pray.


text:
ARC Review: Murder, She Reported by Peg Cochran
Murder, She Reported
Author: Peg Cochran
Publication: Alibi (July 31, 2018)
Description: A Park Avenue princess discovers the dark side of 1930s New York when a debutante ball turns deadly in this gripping historical mystery for readers of Victoria Thompson, Anne Perry, and Rhys Bowen.
Manhattan, 1938. Tired of being trapped in the gilded cage of her family's expectations, Elizabeth Adams has done what no self-respecting socialite would think to do: She's gotten herself a job. Although Elizabeth's dream is to one day see her photographs on the front page of the Daily Trumpet, for now she's working her way up as the newsroom's gal Friday.
But fetching coffee isn't exactly her idea of fun. So when veteran reporter Ralph Kaminsky needs a photographer to fill in for a last-minute assignment, Elizabeth jumps at the chance. At the Waldorf Hotel, Elizabeth is tasked with tracking down the season's "It girl," Gloria DeWitt, who will be making her society debut. Working her own connections to New York's upper crust, Elizabeth manages to land an exclusive interview with Gloria.
Then Gloria's stepmother is shot dead in a Waldorf bathroom, placing Elizabeth at the scene of a headline-worthy scandal: "Murder of a Society Dame." Now Elizabeth will have to get the scoop on the killer before her good name gets dragged through the gossip columns—or worse. . . .
My Thoughts: Socialite Elizabeth Adams has taken a job as a gal Friday for a newspaper because she doesn't want the typical life of girls of her class. She studied photography at college but is finding herself running errands for other reporters and typing the society reporter's notes. One day a reporter named Kaminsky grabbed her to take some photos at the debut of a young woman who could be the next "It Girl" at the Waldorf Hotel.
Elizabeth first sees Gloria DeWitt in the Lady's Room where she catches her crying. She snaps a picture of her which ends up as front page story when her stepmother Frances is found shot to death. Elizabeth also sees Gloria in a blood-stained dress right after she finds her stepmother. All of a sudden, she and Kaminsky have a much bigger story on their hands.
This historical mystery was also an exploration of New York City in 1938. Sheltered Elizabeth - renamed Biz by Kaminsky - meets people she has never met before including Police Detective Sal Marino. She develops a crush on him which he returns. He introduces her to Italian food which she has never tasted and, at the end of this story, promises her a trip to Chinatown.
Biz is also shown trying to balance her life as the socialite her mother wants her to be with her new life working for a newspaper. Biz had polio as a child which has left her with only a slight limp and the fact that it gets worse as she gets tired. In the course of her work, she runs into fellow patient Irene who didn't fare as well and is now using leg braces and crutches to get around. Irene's family didn't fare as well during the Depression as Elizabeth's did either. Irene, now an orphan, is working as a coat check girl at the Waldorf and provides an essential clue.
I liked the historical detail that was part of this mystery. Biz was an interesting character too. I'm hoping that this is only the first adventure for Biz.
"Kid, this is the newspaper business. There is no right or wrong. What counts is getting the story and the picture to go with it." He grabbed Elizabeth by the shoulders. "This could be your big break. You want to be a gal Friday forever?"
I received this one in exchange for an honest review from NetGalley. You can buy your copy here.
Labels: Amateur Sleuth, Book Review, Historical Mystery, NetGalley, Review Books
First Paragraph/Teaser Tuesday: Set the Night on F...
It's Monday! What Are You Reading? (July 30, 2018)
ARC Review: The Butterfly Conspiracy by Vivian Conroy
Friday Memes: The Butterfly Conspiracy by Vivian C...
ARC Review: Deep Cover by Scarlett Cole
ARC Review: A Double Life by Flynn Berry
First Paragraph/Teaser Tuesday: A Double Life by F...
Friday Memes: Murder, She Reported by Peg Cochran
ARC Review: Paradox by Catherine Coulter
Book Review: Rubbernecker by Belinda Bauer
First Paragraph/Teaser Tuesday: Gravelight by Mari...
Book Review: Shelter in Place by Nora Roberts
Friday Memes: Shelter in Place by Nora Roberts
ARC Review: The Disappearing by Lori Roy
Book Review: Lovers and Ladies by Jo Beverly
First Paragraph/Teaser Tuesday: The Disappearing b...
It's Monday! What Are You Reading? (July 9, 2018)
ARC Review: Shelved Under Murder by Victoria Gilbert
Friday Memes: Shelved Under Murder by Victoria Gil...
Book Review: The Anatomist's Wife by Anna Lee Huber
ARC Review: Somebody's Daughter by David Bell
First Paragraph/Teaser Tuesday: Somebody's Daughte...

redpajama_set_name: RedPajamaCommonCrawl


Reputable nutrition information for pets can be difficult to find. We've collected a list of links to reliable nutrition-related websites you can trust for more information.
The American College of Veterinary Nutrition website provides information on the College, guidelines for residency training programs, and a frequently asked questions section, among other information.
This FDA Recalls, Market Withdrawals, & Safety Alerts site contains up-to-date information on safety recalls of all human foods, pet foods and medical devices.
The National Research Council, the scientific organization that is responsible for determining nutrient requirements for companion animals and livestock, provides excellent brochures on both basic dog and cat nutrition.
The Association of American Feed Control Officials, the governmental organization that sets guidelines for dietary ingredients, labels and determines the nutritional adequacy of pet foods.
Balance IT is a company run by board-certified veterinary nutritionists and produces the Balance IT Supplement products that we use frequently in home-cooked diets.
The National Institute of Health Office of Dietary Supplements website provides information on various dietary supplements commonly used by people. Although the site does not address use by pets, many human supplements are also used for animals. The site has fact sheets on various supplements and also discusses regulation (or lack therefore) of dietary supplements.
The USDA Food and Nutrition Information Center includes general nutrition information and links to human nutrition resources.
The USDA National Nutrient Database for Standard Reference provides full nutrient profiles on thousands of human foods and can be helpful to determine the amount of calories, fat, or other nutrients in human foods fed as pets as treats.
The World Small Animal Veterinary Association has recently developed a number of resources for both pet owners and veterinarians pertaining to selecting pet foods and determining how much to feed as well as vetting information found on the internet.
The Pet Nutrition Alliance pet nutrition information for pet owners and the veterinary healthcare team on how to feed dogs and cats, including a calorie calculator to determine pets' energy needs.


text:
A Green New Deal for Scotland
Mon 22 Apr, 2019
A Green New Deal for Scotland is a practical way to transform Scotland's economy, create hundreds of thousands of new jobs in clean, green industries and tackle the huge inequality that still exists within our communities. Patrick Harvie
Scottish Greens Parliamentary Co-Leader Patrick Harvie MSP will this week bring forward a debate calling on the Scottish Government to develop a Green New Deal policy for Scotland.
The Glasgow MSP will highlight the growing interest in Scotland and across the world in a Green New Deal, an agenda which requires the mobilisation of regulatory, fiscal and monetary powers to achieve a rapid and just transition to a zero carbon economy.
Last month the Greens brought forward a motion to declare a climate emergency, but this was voted down by every other party.
Patrick Harvie MSP said:
"Last month the Greens brought forward a vote calling on the Scottish Parliament to declare a climate emergency. This proposition was voted down by SNP, Tory, Labour and Lib Dem MSPs. The other parties cannot conceive of a positive vision for Scotland's future after we leave the fossil fuel age behind.
"But, we quite simply cannot afford to continue with our over reliance on oil and gas. Climate science tells us there is just over a decade to act if we are to prevent climate breakdown, while the inspirational school climate strikers demand that we act urgently to secure their future.
"A Green New Deal for Scotland is a practical way to transform Scotland's economy, create hundreds of thousands of new jobs in clean, green industries and tackle the huge inequality that still exists within our communities.
"At the STUC conference last week the First Minister said such a deal would be a key mission for the new Scottish National Investment Bank.Those are welcome words, but they're just not followed through in the Bill that sets the Bank up. The Scottish Government will be judged on its action.
"So far, Ministers have been reluctant to take the bold and urgent action that is required to tackle the climate crisis. I hope they'll take the chance this week to back our plans and set in motion the process of creating a Green New Deal for Scotland."
Don't let Pride give in to hate
Patrick Harvie MSP Mon 1 Jul, 2019
My first Pride march was in London nearly 30 years ago, during my first year at University.
Still reeling from the culture shock of moving from Dumbarton to Manchester with its vibrant queer community, I was both overjoyed and bewildered to be part of an event so huge that it transformed the city.
An estimated 100,000 people – lesbians, gay men, bisexual people, trans people and more – marched, chanted and partied together long before the acronym LGBT had ever been coined.
Scottish Green MSPs celebrate 20 years of the 'Green' Scottish Parliament
Sat 29 Jun, 2019
Scottish Greens are celebrating 20 years of the Scottish Parliament leading the UK on Green issues.
As members of the public visit Holyrood to mark the 20th birthday of the Scottish Parliament, co-leaders of the Greens MSP group Patrick Harvie and Alison Johnstone will join others in welcoming them.
Harvie calls for clarity from Finance Secretary
Scottish Greens Parliamentary Co-Leader Patrick Harvie MSP has called for clarity from the Scottish Government over how it plans to deal with a predicted budget shortfall over the next few years.


text:
package org.codehaus.groovy.grails.web.taglib.jsp;

import groovy.lang.Closure;
import groovy.lang.GroovyObject;

import java.beans.PropertyDescriptor;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.BodyContent;
import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.tagext.DynamicAttributes;

import org.codehaus.groovy.grails.commons.GrailsApplication;
import org.codehaus.groovy.grails.commons.GrailsTagLibClass;
import org.codehaus.groovy.grails.commons.TagLibArtefactHandler;
import org.codehaus.groovy.grails.web.pages.FastStringPrintWriter;
import org.codehaus.groovy.grails.web.pages.GroovyPage;
import org.codehaus.groovy.grails.web.servlet.DefaultGrailsApplicationAttributes;
import org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes;
import org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.web.util.ExpressionEvaluationUtils;

/**
 * A tag that invokes a tag defined in a the Grails dynamic tag library. Authors of Grails tags
 * who want their tags to work in JSP should sub-class this class and call "setTagName" to set
 * the tagName of the tag within the Grails taglib
 *
 * This tag can of course be used standalone to invoke a Grails tag from JSP:
 *
 * <code>
 *   <gr:invokeTag tagName="myTag" />
 * </code>
 *
 * @author Graeme Rocher
 * @since 16-Jan-2006
 */
public class JspInvokeGrailsTagLibTag extends BodyTagSupport implements DynamicAttributes {

    private static final long serialVersionUID = 4688821761801666631L;
    private static final String ZERO_ARGUMENTS = "zeroArgumentsFlag";
    private static final String GROOVY_DEFAULT_ARGUMENT = "it";
    private static final String NAME_ATTRIBUTE = "tagName";
    private static final Pattern ATTRIBUTE_MAP = Pattern.compile("(\\s*(\\S+)\\s*:\\s*(\\S+?)(,|$){1}){1}");

    private String tagName;
    private int invocationCount;
    private List<Object> invocationArgs = new ArrayList<Object>();
    private List<String> invocationBodyContent = new ArrayList<String>();
    private BeanWrapper bean;
    protected Map<String, Object> attributes = new HashMap<String, Object>();
    private FastStringPrintWriter sw;
    private PrintWriter out;
    private JspWriter jspWriter;
    private GrailsApplicationAttributes grailsAttributes;
    private GrailsApplication application;
    private ApplicationContext appContext;
    private static final String TAG_LIBS_ATTRIBUTE = "org.codehaus.groovy.grails.TAG_LIBS";
    private static final String OUT_PROPERTY = "out";
    private String tagContent;
    private boolean bodyInvokation;

    public JspInvokeGrailsTagLibTag() {
        bean = new BeanWrapperImpl(this);
    }

    @Override
    public final int doStartTag() throws JspException {
        for (PropertyDescriptor pd : bean.getPropertyDescriptors()) {
            if (pd.getPropertyType() == String.class &&
                    !pd.getName().equals(NAME_ATTRIBUTE) &&
                    bean.isWritableProperty(pd.getName()) &&
                    bean.isReadableProperty(pd.getName())) {

                String propertyValue = (String)bean.getPropertyValue(pd.getName());

                if (propertyValue != null) {
                    String trimmed = propertyValue.trim();
                    if (trimmed.startsWith("[") && trimmed.endsWith("]")) {
                        trimmed = trimmed.substring(1,trimmed.length() - 1);
                        Matcher m = ATTRIBUTE_MAP.matcher(trimmed);
                        Map<String, Object> attributeMap = new HashMap<String, Object>();
                        while (m.find()) {
                            String attributeName = m.group(1);
                            String attributeValue = m.group(2);
                            if (ExpressionEvaluationUtils.isExpressionLanguage(attributeValue)) {
                                attributeMap.put(attributeName, ExpressionEvaluationUtils.evaluate(
                                        attributeName, attributeValue, Object.class, pageContext));
                            }
                            else {
                                attributeMap.put(attributeName, attributeValue);
                            }
                        }
                        attributes.put(pd.getName(), attributeMap);
                    }
                    else {
                        if (ExpressionEvaluationUtils.isExpressionLanguage(propertyValue)) {
                            attributes.put(pd.getName(), ExpressionEvaluationUtils.evaluate(
                                    pd.getName(), propertyValue, Object.class, pageContext));
                        }
                        else {
                            attributes.put(pd.getName(), propertyValue);
                        }
                    }
                }
            }
        }
        return doStartTagInternal();
    }

    @SuppressWarnings({ "unchecked", "rawtypes" })
    private GroovyObject getTagLib(String name) {
        if (application == null) {
            initPageState();
        }

        Map tagLibs = (Map)pageContext.getAttribute(TAG_LIBS_ATTRIBUTE);
        if (tagLibs == null) {
            tagLibs = new HashMap();
            pageContext.setAttribute(TAG_LIBS_ATTRIBUTE, tagLibs);
        }
        GrailsTagLibClass tagLibClass = (GrailsTagLibClass) application.getArtefactForFeature(
                TagLibArtefactHandler.TYPE, GroovyPage.DEFAULT_NAMESPACE + ':' + name);

        GroovyObject tagLib;
        if (tagLibs.containsKey(tagLibClass.getFullName())) {
            tagLib = (GroovyObject)tagLibs.get(tagLibClass.getFullName());
        }
        else {
            tagLib = (GroovyObject)appContext.getBean(tagLibClass.getFullName());
            tagLibs.put(tagLibClass.getFullName(),tagLib);
        }
        return tagLib;
    }

    private void initPageState() {
        if (application == null) {
            grailsAttributes = new DefaultGrailsApplicationAttributes(pageContext.getServletContext());
            application = grailsAttributes.getGrailsApplication();
            appContext = grailsAttributes.getApplicationContext();
        }
    }

    @SuppressWarnings("rawtypes")
    protected int doStartTagInternal() {
        GroovyObject tagLib = getTagLib(getTagName());
        if (tagLib == null) {
            throw new GrailsTagException("Tag [" + getTagName() + "] does not exist. No tag library found.");
        }

        sw = new FastStringPrintWriter();
        out = sw;
        tagLib.setProperty(OUT_PROPERTY, out);
        Object tagLibProp;
        final Map tagLibProperties = DefaultGroovyMethods.getProperties(tagLib);
        if (tagLibProperties.containsKey(getTagName())) {
            tagLibProp = tagLibProperties.get(getTagName());
        }
        else {
            throw new GrailsTagException("Tag [" + getTagName() + "] does not exist in tag library [" +
                    tagLib.getClass().getName() + "]");
        }

        if (!(tagLibProp instanceof Closure)) {
            throw new GrailsTagException("Tag [" + getTagName() + "] does not exist in tag library [" +
                    tagLib.getClass().getName() + "]");
        }

        Closure body = new Closure(this) {
            private static final long serialVersionUID = 1861498565854341886L;
            @SuppressWarnings("unused")
            public Object doCall() {
                return call();
            }
            @SuppressWarnings("unused")
            public Object doCall(Object o) {
                return call(new Object[]{o});
            }
            @SuppressWarnings("unused")
            public Object doCall(Object[] args) {
                return call(args);
            }
            @Override
            public Object call(Object... args) {
                invocationCount++;
                if (args.length > 0) {
                    invocationArgs.add(args[0]);
                }
                else {
                    invocationArgs.add(ZERO_ARGUMENTS);
                }
                out.print("<jsp-body-gen"+invocationCount+">");
                return "";
            }
        };
        Closure tag = (Closure)tagLibProp;
        if (tag.getParameterTypes().length == 1) {
            tag.call(new Object[]{ attributes });
            if (body != null) {
                body.call();
            }
        }
        if (tag.getParameterTypes().length == 2) {
            tag.call(new Object[] { attributes, body });
        }

        Collections.reverse(invocationArgs);
        setCurrentArgument();
        return EVAL_BODY_BUFFERED;
    }

    private void setCurrentArgument() {
        if (invocationCount == 0) {
            return;
        }

        Object arg = invocationArgs.get(invocationCount - 1);
        if (arg.equals(ZERO_ARGUMENTS)) {
            pageContext.setAttribute(GROOVY_DEFAULT_ARGUMENT, null);
        }
        else {
            pageContext.setAttribute(GROOVY_DEFAULT_ARGUMENT, arg);
        }
    }

    @Override
    public int doAfterBody() throws JspException {

        BodyContent b = getBodyContent();
        if (invocationCount > 0) {
            if (b != null) {
                jspWriter = b.getEnclosingWriter();
                invocationBodyContent.add(b.getString());
                bodyInvokation = true;
                b.clearBody();
            }
        }

        invocationCount--;
        setCurrentArgument();
        if (invocationCount < 1) {
            tagContent = sw.toString();
            int i = 1;
            StringBuilder buf = new StringBuilder();
            for (String body : invocationBodyContent) {
                String replaceFlag = "<jsp-body-gen" + i + ">";
                int j = tagContent.indexOf(replaceFlag);
                if (j > -1) {
                    buf.append(tagContent.substring(0,j))
                       .append(body)
                       .append(tagContent.substring(j + replaceFlag.length(), tagContent.length()));
                    tagContent = buf.toString();
                    if (tagContent != null) {
                        try {
                            jspWriter.write(tagContent);
                            out.close();
                        }
                        catch (IOException e) {
                            throw new JspTagException("I/O error writing tag contents [" + tagContent +
                                    "] to response out");
                        }
                    }
                    buf.delete(0, buf.length());
                }
            }
            return SKIP_BODY;
        }

        return EVAL_BODY_BUFFERED;
    }

    @Override
    public int doEndTag() throws JspException {
        if (!bodyInvokation) {
            if (tagContent == null) {
                tagContent = sw.toString();
            }

            if (tagContent != null) {
                try {
                    jspWriter =  pageContext.getOut();
                    jspWriter.write(tagContent);
                    out.close();
                }
                catch (IOException e) {
                    throw new JspTagException("I/O error writing tag contents [" + tagContent +
                            "] to response out");
                }
            }
        }
        return SKIP_BODY;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public final void setDynamicAttribute(String uri, String localName, Object value) throws JspException {
        if (value instanceof String) {
            String stringValue = (String)value;
            String trimmed = stringValue.trim();
            if (trimmed.startsWith("[") && trimmed.endsWith("]")) {
                trimmed = trimmed.substring(1,trimmed.length() - 1);
                Matcher m = ATTRIBUTE_MAP.matcher(trimmed);
                Map<String, Object> attributeMap = new HashMap<String, Object>();
                while (m.find()) {
                    String attributeName = m.group(1);
                    String attributeValue = m.group(2);
                    if (ExpressionEvaluationUtils.isExpressionLanguage(attributeValue)) {
                        attributeMap.put(attributeName, ExpressionEvaluationUtils.evaluate(
                                attributeName, attributeValue, Object.class, pageContext));
                    }
                    else {
                        attributeMap.put(attributeName, attributeValue);
                    }
                }
                attributes.put(localName, attributeMap);
            }
            else {
                if (ExpressionEvaluationUtils.isExpressionLanguage(stringValue)) {
                    attributes.put(localName,ExpressionEvaluationUtils.evaluate(localName,stringValue,Object.class,pageContext));
                }
                else {
                    attributes.put(localName,value);
                }
            }
        }
        else {
            attributes.put(localName,value);
        }
    }
}


text:
Biografia
Figlio del conte Carlo Orsini, del ramo di Bracciano, e di Paola Geronima Orsini, sposò Francesca Orsini di Monterotondo, dalla quale ebbe un figlio, Gentile Virginio.

Nel 1452 partecipò, insieme al duca di Calabria, alle lotte contro Firenze e il duca di Milano. Partecipò, sempre in quell'anno, all'assedio di Foiano della Chiana e, per un mese e mezzo, a quello di Castellina in Chianti.

Il 20 aprile 1455 radunò tremila armati per entrare in Laterano con Everso degli Anguillara, durante l'incoronazione di papa Callisto III, per risolvere la controversia per il possesso della contea marsicana di Tagliacozzo, ma il cardinale Latino Orsini, suo fratello, riuscì a farlo desistere.

Prese parte alle successive lotte delle fazioni degli Orsini contro i Colonna, i Borgia ed Everso degli Anguillara. Nel 1458 papa Pio II riuscì a porre fine alla lotta tra Napoleone ed Everso. Successivamente però Napoleone ricevette l'appoggio di Pio II contro Everso, che contestava a quest'ultimo il possesso di Vico presso l'omonimo lago.

Nel 1461, come condottiero di Pio II, andò a trattenere Sigismondo Malatesta, che si dirigeva in Abruzzo per favorire Giovanni d'Angiò contro Ferdinando I di Napoli, protetto dal papa. Riuscì nell'impresa e dopo aver sconfitto il Malatesta a Mondolfo, entrò nel Regno di Napoli l'anno 1462.

Fu nominato Capitano Generale Pontificio, grazie a un'opera di polizia con la quale aveva fatto arrendere le tredici rocche di Everso, e con questa carica rappresentò l'esercito pontificio di Pio II contro Roberto Malatesta, signore di Rimini. Il papa voleva prendere possesso di Rimini, ma il 30 agosto 1469 Napoleone venne sconfitto tra Virgiliano e Sant'Arcangelo dalle truppe di Malatesta e Montefeltro; gravemente ferito durante la battaglia, non riuscì a impedire la cattura del figlio Gentile Virgilio.

Negli anni seguenti partecipò a poche azioni militari, in compenso nel 1470, con il figlio, avviò la trasformazione della rocca di Bracciano in un maestoso castello.

Nel suo nuovo castello ospitò gli ambasciatori francesi e i plenipotenziari della lega che vedeva alleati Firenze, Venezia, Milano e Ferrara; da quella riunione si levò una protesta contro la corruzione della Curia Romana e in particolare contro papa Sisto IV.

Napoleone morì il 3 ottobre 1480.

Discendenza
Napoleone Orsini si sposò con Lucrezia Orsini, figlia di Orso Orsini, signore di Monterotondo, e Lucrezia Conti, dalla quale ebbe otto figli:
 Gentile Virginio Orsini, che sin da giovane fu avviato alla carriera militare e nel 1480, in seguito alla morte del padre, gli successe in tutti i feudi, che perdette poi nel 1481 quando gli vennero confiscati da Fabrizio I Colonna;
 Giustina, nel 1462 sposò nel 1462 Stefano Sciarra Colonna, signore di Palestrina;
 Brigida, la quale sposò Camillo Orsini, signore di Lamentana;
 Angela;
 Eleonora, che sposò Nicola Caetani, signore di Sermoneta;
 Bartolomea, che sposò il conte Bartolomeo d'Alviano;
 Ippolita, che sposò il conte Girolamo Tuttavilla;
 Bartolomeo.

Bibliografia

Collegamenti esterni

N

redpajama_set_name: RedPajamaWikipedia


Cosmonautics News NOK-200202 Cosmonautics News N2 2002. Model kits, Military and Technical Books and Magazines on www.Aviapress.com.
Yun Koptev remembers the birth of the Russian Space Agency and reviews its current status at the eve of the 10 years jubilee of the Agency.
In the December 3 EVA Vladimir Dezhurov and Mikhail Tyunn removed the obstruction and paved way for Progress docking. After this, launch of Endeavour and change of command onboard ISS occurred.
Yun Gidzenko, Roberta Vitton and Mark Shuttieworth will blast-off on April 22 to exchange rescue Soyuz spacecraft currently docked to ISS. Meanwhile, in December Sergey Zalyotin and Frank DeWinne began their crew training for MKS-EP4 onboard newest Soyuz TMA spacecraft.
Of three Glonass birds launched December 1, one features uprated power system and five year service life Nevertheless, reports Listing it as Gtonass-M are wrong. First Glonass-M is currently expected to be launched in 2004.
Meteor-3M #1, a combined meteorology and Earth resource satellite built by Nil EM, may remain the first and only of its kind because no funds are allocated to build any more.
This try was charm for Gonets-Dl and Strela satellite communications systems after the launch failure a year ago.
Orbital behavior ofOko satellites indicated they were not controllable several months after the May 10 fire at the Serpukhov-15 control facility. Since the facility was restored in August, only two of four birds maneuvered thus confirming their active status.
Russian Space Forces Commander Anatoby Perminov pointed out that all planned military space launches in 2001 were executed, for the first time in five years.
Russian Aviation and Space Agency awarded 12 fellowships to postgraduate students of Russian and Kazakhstan universities to study ecology problems of space operations and protective measures.
In 2002, Rosaviakosmos will receive Rouble 13 4 Billion ($425.1 million or 0.69% of Federal Budget) to finance the two civil space programs of Russia, the Federal Space Program and the Glonass Program.
NPO EGS formed by RKK Energiya and the Georgian Polytechical Intellect together with Alenia Spazio should present its 12 meters deployable spacecraft antenna to ESA in 2003. 5 and 25 meters antennae for L, C and Ku bands are in plans too.
President James Maser expects that regular Zenit-2 commercial launches from Baykonur will reduce Zemt production costs and benefit the core Sea Launch program in long run.
OAO Maspmostroitel of Samara, Russia, test fires its RD-107 engines at the city of Vintay, Samara Region.
On December 20, Viktor Afanasyev and Konstantm Kozeyev came to NK to share their impressions from the visiting mission onboard ISS.


text:
Shumensko is a Bulgarian beer brand () from the town of Shumen.

The brewery was founded in 1882 by merchants from Shumen and the Czech master brewer Franz Milde, who arrived in September and founded the Bulgarian Brewing Association (Българско пивоварно дружество) on 26 October.

There are currently 6 brands:
 Shumensko Light (Шуменско светло, 4.3% ABV)
 Shumensko Premium (originally Шуменско специално, 5% ABV)
 Shumensko Dark (Шуменско тъмно, 5.5% ABV, available only in winter)
 Shumensko Twist (3 citrus-flavoured brands – lemon, orange and grapefruit, 2% ABV, available only in summer)
A red ale was also temporarily available (Шуменско червено) in the early 2000s.

The beer labels are exclusively written in the Cyrillic alphabet on glass bottles and in Roman script on cans; plastic litre-bottles have each on either side.

Outside of its home town, the beer is also brewed in Blagoevgrad (Pirinsko Pivo), Serbia and Greece.

Gallery

External links
 shumensko.bg – official website
 Shumensko at Beerlog.info

Beer in Bulgaria
Bulgarian brands
Shumen
Food and drink companies established in 1882


text:
Out οf Sight
Jack Foley, a well-known bank robber ‒ a master in the field ‒ escapes from prison and, in an attempt to get away from his persecutors, kidnaps a policewoman named Karen. Despite the odd circumstances under which the two meet and the fact that they stand on opposite sides of the law, Jack and Karen will feel a strong attraction between them from the start. When Jack travels to Detroit in order to execute his last big "trick," the beautiful policewoman will try to stop him. But can duty prevail over love?
Direction: Steven Soderbergh
Script: Scott Frank
Cinematography: Elliot Davis
Editing: Anne V.Coates
Music: David Holmes
Actors: George Clooney, Jennifer Lopez, Ving Rhames
Production: Jersey Films
Producers: Danny DeVito, Michael Shamberg, Stacey Sher
Costumes: Betsy Heimann
Production Design: Gary Frutkoff
Sets: Maggie Martin
Make Up: Margot Boccia
Production Country: USA
Contact: Park Circus
Steven Soderbergh was born in Atlanta, Georgia. He has Swedish, Irish, and Italian roots. Soderbergh's paternal grandfather immigrated to the U.S. from Stockholm. He discovered filmmaking as a teenager and directed short films with a Super 8 and 16 mm cameras. He attended the Louisiana State University Laboratory School for high school before graduating and moving to Hollywood to pursue professional filmmaking. In 2000, Soderbergh directed two major motion pictures that are now his most successful films to date: Erin Brockovich (2000) and Traffic (2000). These films were both nominated for Best Picture Oscars at the 2001 Academy Awards and gave him the first twin director Oscar nomination in almost 60 years.
1989 Sex, Lies, and Videotape
1991 Kafka
1996 Schizopolis
1998 Out of Sight
1999 The Limey
2000 Erin Brockovich
2000 Traffic
2001 Ocean's Eleven
2004 Ocean's Twelve
2009 The Girlfriend Experience
2011 Contagion
2012 Magic Mike
2017 Logan Lucky
2019 The Laundromat
2020 Let Them All Talk
2021 No Sudden Move


text:
Q: Regex: replace multiple occurrences of a pattern within the same line, using one single regular expression I'm trying to capture the %20's in a URL and replace them with +'es, as well as strip away some other stuff, all preferably using a single regular expression.
Specifically, I'd like something like this
a%20sentence%20divided%20by%20spaces_123456.html
to be turned into something like this
a+sentence+divived+by+spaces
Edit: for clarity, it's crucial both the %20's AND the trailing _1233456.html are targeted, preferably using one single expression.
The source can be targeted with
^([\w]+%20)+.*\.html$ (multiple occurrences of [\w]+%20, followed by any character, followed by .html)
but I'm confused about how to specifically replace both the multiple occurrences of %20 and the trailing '123456'. I'd guess this would be a shot in the right direction
^(([\w]+)%20)+([\w]+)_[0-9]+\.html$
$1 being each occurrence of ([\w]+)%20, $2 being each occurrence of [\w]+ within the first match, and $3 being [\w]+, but I'm not getting the result I'm looking for (using Sublime Text for this):
string: a%20sentence%20divided%20by%20spaces_123456.html
search: ^(([\w]+)%20)+([\w]+)_[0-9]+\.html$
replace: $2+$3
expected result: a+sentence+divided+by+spaces
actual result: by+spaces

Any ideas where my line of thought goes awry?

A: You can use two regular expressions (there may be better solutions though):
var string ="a%20sentence%20divided%20by%20spaces_123456.html";
// replace %20 with +
var regex1 = '%20';
var re1 = new RegExp(regex1, 'g');
string = string.replace(re1, '+');
// trailing _12345
var regex2 = '([^_]+)_([^.]+)(\.html)$';
// match everything except an underscore and capture it in group 1
// underscore
// match everything except a dot
// match the file extension (html in this case) and capture it in group 3
var re2 = new RegExp(regex2);
string = string.replace(re2,'$1$3');
// replace the string with capture group 1 and 3
alert(string);

See a JS fiddle here.

A: Replacing parts of a string with different strings depending on what has been captured isn't something easily done with regex.
It can be done very easily using 2 regular expressions. However if you really want to do this with only 1 regex, here is a solution
Solution with 1 regular expression :
original_string = 'a%20sentence%20divided%20by%20spaces_123456.html'
searched_string = original_string + "+"
regex : '%20(?=[^\+]*(\+))|_[^_]*$'
replace : '$1'
result : a+sentence+divided+by+spaces

For the explanation :
The regex will search for either a "%20" followed by any string of character ending with "+" and capture the "+" OR every character after the last "_" and capture nothing
It will then replace the matched string by the capture string, which is a "+" if "%20" has been matched, and nothing if it's the end of the string
To work, this regex needs that the string contains a "+".
That is why you NEED to concatenate it at the end of your string (it will be erased by the regex at the end anyway)


Speaking today about the P5+1 nuclear deal, Iranian Supreme Leader Ayatollah Ali Khamenei warned that he was fully prepared to "set fire" to the P5+1 nuclear deal if the next US president reneged on America's obligations under the pact.
Telling the state media that Iran "won't be the first to violate the nuclear deal," Khamenei said he felt Iran wouldn't have any obligation to keep complying with the deal if the US was overtly violating it.
Khamenei also told officials at a meeting that problems with getting insurance for Iranian oil tankers to make deliveries abroad had not been resolved, even though the financial sanctions that prevent it were supposed to already have been lifted.
Iranian Foreign Minister Javad Zarif reiterated calls for the US to publicly encourage banks to do business with Iran, and to assure them the sanctions actually are lifted.
That's been a problem, as Secretary of State John Kerry has done so in recent weeks, but the US Treasury Department has been a lot more vague about whether the sanctions are lifted or not, and regularly bragged to Congress that they continue to prevent Iran accessing the global banking system.
Or in other words, the US is already reneging on the deal and Iran now needs to counterspin US propaganda to show it.
Of cours that won't matter anyway because the US is going to reneg on the deal under president Clinton and would if Trump were to become president. The latter need not be a concern.
Obama will soon be gone and there will no longer be anyone in government working to uphold the deal. Nobody but Obama thought it was a good deal anyway. War with Iran was always the preferred way to go.
a creation of Chicago gangster politics.
Keep a promise when it slows down expansion?
Not in the DNA of Empire USA.


Cervical cancer deaths are preventable and highly treatable if cancer and/or precancerous lesions are detected early with regular screenings. Economically disadvantaged persons are significantly less likely to get a Pap test. Women with higher levels of education are also more likely to have received a Pap test.
The information provided above is from the Department of Health's Center for Health Data IBIS-PH web site (http://ibis.health.state.gov). The information published on this website may be reproduced without permission. Please use the following citation: " Retrieved Sun, 21 April 2019 12:10:02 from Department of Health, Center for Health Data, Indicator-Based Information System for Public Health Web site: http://ibis.health.state.gov ".


text:
Parks Canada to look at divesting highways, bridges, dams
Parks Canada is considering whether to give up as much as $8.3 billion of its infrastructure.
Cash-strapped agency examines whether to transfer or divest non-heritage assets worth $8.3B
Dean Beeby · CBC News · Posted: Aug 26, 2017 5:00 AM ET | Last Updated: August 26, 2017
A new bridge is shown in Pacific Rim National Park on Vancouver Island. Parks Canada has ordered a study into whether it should give up its bridges, dams and highways. (Parks Canada)
Parks Canada is considering whether to give up as much as $8.3 billion of its highways, bridges and dams.
The agency plans to hire an outside consultant to advise on "options for divestiture or transfer" of infrastructure not considered part of its core mandate to safeguard Canada's cultural assets, says a recent notice.
Bridges that have heritage value will be retained. But the so-called "pre-feasibility" study will look at whether to shed any of the rest of Parks Canada's general infrastructure, which represents close to half of the agency's $17.5 billion worth of built assets.
A line of parked vehicles snakes down the shoulder of Highway 16 near Jasper, Alta. Highways are among the assets that Parks Canada is considering whether to shed. (Supplied/Darryl Ropcean)
A spokesperson for Parks Canada cautioned that no decisions have been made.
"When managing such a large and diverse asset portfolio, it is standard practice to conduct regular asset assessments," Meaghan Bradley said in an email.
"To be clear, this is an initial exploratory study to inform future discussions around the management of Parks Canada's highways, dams and non-heritage bridges and no decisions have been made regarding the future of these general assets."
Require routine maintenance
Parts of the Trans-Canada Highway, along with national or provincially numbered highways, run through national parks and historic sites managed by Parks Canada, and are considered agency assets that require routine maintenance and repair that draw on scarce resources.
The consultants are being asked to provide financial modelling and analysis for a wide range of possibilities, including potential transfer of assets to provinces or municipalities, with a final report by Feb. 28.
Cash-strapped Parks Canada owns a vast variety of land, buildings, roads and other infrastructure across the country, with some 15,000 assets in its official inventory, many of them in poor shape and long overdue for repair.
In 2012, the agency conducted the first comprehensive National Asset Review of that inventory, and found about 47 per cent of all its assets were in poor or very poor condition.
Under-investment has been a chronic issue... - Parks Canada tender document
An outside consultant in 2013 revised that to 53 per cent for the entire inventory. Opus International Consultants also said about 61 per cent of 2,000 cultural assets — such as historic houses, fortifications and locks — were in poor or very poor condition.
Parks Canada estimates carrying out all deferred repairs would cost some $2.9 billion.
Earlier this month, the agency said it plans to update the National Asset Review next year.
"Under-investment has been a chronic issue impeding the sound and consistent life cycle management of the portfolio," says an agency document outlining plans for the 2018 inventory update.
Long-term plan needed
The federal budget in March promised Parks Canada $364 million over two years, starting next April, to help with repairs. The agency was also asked to prepare a medium- and long-term plan for its asset portfolio.
"Parks Canada is not embarking at this point on any type of divestiture plan," spokesperson Jason Bouzanis said in an interview. "We're really just conducting … an exploratory study," calling the exercise "standard practice" when developing long-term plans.
The federal government is also examining whether to sell off Canada's major airports and marine ports, and has hired consultants to advise it on the feasibility.
To celebrate Canada's 150th anniversary of Confederation this year, Parks Canada eliminated admission fees for national parks and historic sites. The number of visits so far this year is up about 12 per cent.
Parks Canada Discovery Pass is free for 2017 to mark the 150th anniversary of Confederation. The agency was given $76 million to help cope with the lost revenue. (Parks Canada)
The agency was given an additional $76 million this year to help make up for the lost revenue and to run the program.
Parks Canada operates 46 national parks, a national urban park, four national marine conservation areas and 171 national historic sites, including nine historic canals.
Follow @DeanBeeby on Twitter
Dean Beeby
Senior reporter, Parliamentary Bureau
Dean Beeby is a CBC journalist, author and specialist in freedom-of-information laws. Follow him on Twitter: @DeanBeeby
Feds, Inuit sign unprecedented working arrangement to negotiate Lancaster Sound benefits deal
National park's temporary closure due to overcrowding not expected to happen elsewhere, Parks says
With free admission, visits to national parks and historic sites jump this year


KEF's Q Series has a legendary status stretching back decades, but has now been re-invented for today's user. A robust, stylish cabinet design is matched by an impressive performance bolstered by the latest version of KEF's Uni-Q concentric driver, where midrange and treble information is treated as a single source. For largescale bass delivery, an active driver is combined with two passive radiators in the Q750 floorstanders. These are joined by the Q650c center and Q350 surround speakers to provide an accurate, wraparound soundstage with incredible neutrality. Extra bass depth comes via the Kube12b active subwoofer, while the Dolby Atmos-enabled Q50a upfiring speakers ensure that movie enthusiasts can enjoy up to 5.1.4 channels of unbeatable home cinema sound.


text:
Producer's Picks
Arlington mom shopping for Halloween shocked to find Confederate soldier children's costumes at party store
The mother of two adopted Black daughters said the Party City in Bailey's Crossroads is selling child Confederate Civil War costumes.
Author: Bruce Leshan
Published: 6:47 PM EDT September 21, 2020
Updated: 10:15 PM EDT September 21, 2020
BAILEY'S CROSSROADS, Va. — Party City is racing to clear its shelves of children's costumes celebrating the Confederacy.
An Arlington, Virginia mom of two adopted Black children, was shocked to find the Party City store at Bailey's Crossroads selling Civil War rebel costumes emblazoned with the Confederate flag.
Caroline Brasler goes all out for Halloween with her daughters Meredith, 12, and Olivia, 10.
On the way back from gymnastics practice Sunday, she stopped at the Bailey's Crossroads Party City looking for costumes. At the end of aisle two, she spotted something she could scarcely believe.
"The Confederate flag to me is a symbol of racism. To have that out there for a child to wear on Halloween sends so many horrible messages," she said.
Just below the pilgrim and Ulysses Grant costumes was one costume called "Confederate Officer." The other, with a bearded Confederate General Robert E. Lee. Both of their wide-brimmed hats were emblazoned with the Confederate flag, which has caused so much pain in the African American community.
"I'm the adoptive parent of two beautiful African American girls ... We discuss race, we respect race. And to see something like that just flies in the face of everything I try to teach them to be proud young women," said Brasler.
Party City is selling Confederate costumes in its Bailey's Crossroads, Va store. Is this acceptable in this day and age? @wusa9 pic.twitter.com/6bIemqyvnq
— Bruce Leshan (@BruceLeshan) September 21, 2020
Party City did respond to the issue with Confederate costumes at its franchise locations.
"At Party City, we do not tolerate racism or hatred of any kind, and we stand together in solidarity with our diverse colleagues, customers, and communities, said the company in a statement to WUSA9. "As the leader in Halloween with more than 60 million customers per year, Party City supplies a broad assortment of costumes, none of which are meant to be offensive in any way. The costume in question was sold at a franchise location and is not produced or sold in any Party City corporate-owned stores. We have reached out to our franchisees and other partners to remove it from all retail locations ASAP. We know that as a company, we can and must do better, and we're taking immediate action. We value customer feedback and will continue to evaluate how to make each shopping experience fun and welcoming for all as we support efforts in inclusion internally, in our communities, and beyond."
The costumes don't come up on the Party City website, but they were still in at least the Bailey's Crossroads store as of Monday afternoon. They are also available from many other retailers nationally, including from Amazon.
Brasler said as she was taking a picture of the costumes, Olivia asked her what she was doing. "I said, 'That's a Confederate flag, that's a symbol of hate,' and she said, 'Oh, ma, really?' Then she took off for the candy aisle."
Brasler says even at their young ages, her daughters have already experienced racism. She just didn't think they'd find it at the party store.
She said after seeing the Confederate costumes, she refused to buy her daughters any costumes there. She'll get their vampire and zombie unicorn costumes elsewhere.
"No more princesses for them!" she said.
Fairfax County officials vote to remove three Confederate statues from judicial complex
Charlottesville removes Confederate statue near rally site
Richmond saw nearly $4M in fire damage during initial unrest
Sign up for the Get Up DC newsletter: Your forecast. Your commute. Your news.


text:
Steamboy under pressure on Japanese debut
By Mamiko Kawamoto 2004-07-22T04:00:00+01:00
Katsuhiro Otomo's long-awaited new animation Steamboy- which cost a record-breaking $22m (Y2.4bn) to make - grossed a weak $2.2m on its three-day opening weekend fromJuly 17 on 262 screens nationwide.
With the summer holiday just kicking off, distributor Tohonow expects Steamboy to earn around $13.9 million.
By comparison Hayao Miyazaki's Spirited Away grossed$281 million after opening in 2001 in the same mid-July slot. This is thecompany's second major disappointment this year with a highly anticipatedJapanese animation. In March, Toho released Mamoru Oshii's Innocence,the sequel to his 1995 hit Ghost In The Shell, but grossed only $9.2m(Y1.0bn) on 300 screens nationwide in ten weeks.
Toho expects Steamboy to out-perform Innocence,given an opening weekend box office 13% higher than that of the Oshii film, onfewer screens. Even so, the film was originally expected to earn at least Y5.0billion ($46 million) -- a goal that now looks out of reach.
Steamboy is being hammered by the Hollywood competition,including Spider-Man 2 and Harry Potter 3, indicating that Japaneseanimation may be losing the local audience it once owned, at a time when it isreceiving greater acceptance abroad. The real test will come when HayaoMiyazaki's Howl's Moving Castle opens in Japan in November.
At the opening screening on July 17th, executiveproducer Shigeru Watanabe of Bandai Visual announced that the company plans tomake a Steamboy sequel. However, he did not give any details concerningstory, production schedule and even whether Otomo will be the director.
Steamboy is scheduled to be released inFrance in September and in the US in December.
Produced by a consortium of eight backers including BandaiVisual, Bandai, Sony Pictures Entertainment Japan, Toho, Dentsu, Sunrise,Imagica and Cultural Publishers, Steamboy is an action adventureanimation directed by Katsuhiro Otomo (Akira). Set in 19th-centuryLondon, the story revolves around a boy who receives a mysterious "steamball" from an inventor grandfather and discovers its amazing powers. TheDentsu ad agency is handling sales in Asia, while Sony Pictures Entertainmentis repping the film in the rest of the world.


text:
Q: How to implement observation if we already used intheritance? There is a ForumThread class:
class ForumThread extends DbTable
{
    public function insert ($threadId, $comment)
    {
        SQL INSERT INTO parent::tablename VALUES $threadId, $comment
        // email sending how?
        // putting this on a "notice-wall", how?
    }
}

some other functions should be done here, e.g. email sending. I cant put it here otherwise I violate the SRP. I cant put it neither to controller, as I want to insert post elsewhere too. Im planning to implement the Observed pattern, but I cant extend from two classes.

A: With the observer pattern you would have to dispatch a notification from
this method in order to execute the relevant observers code.
You would execute something like this from within the insert method:
$this->notify('table_insertion', $data);

Then somewhere else before the notify line is executed, the event must be registered like so:
static::$observers['table_insertion'][] = array('class_to_call' => 'method_in_class_to_call');

The notify method would be something like:
public function notify($event, $data) {
  foreach(static::$observer[$event] as $class => $method) {
    new $class->$method($data);
  }
}

Hope this makes sense.


text:
Charles Henderson High
Pike County High
Pike Liberal Arts
Goshen High
Zion Chapel
Troy Life
Goshen native receives presidential appointment
Published 7:13 pm Friday, January 6, 2023
By Jaine Treadwell
Contributed Photo Wesley B. Swanzy was sworn in as Chief of Staff to the Chief Financial Officer at the United States Department of Agriculture.
On January 3, President Joe Biden appointed Wesley B. Swanzy, a native of Goshen and Troy University alumnus, as the Chief of Staff to the Chief Financial Officer (CFO) at the United States Department of Agriculture (USDA).
Swanzy holds a B.S. in International Relations and Leadership from Troy University and an M.B.A. in Finance and Management from Columbia University Business School.
He previously served as a financial professional working on Wall Street for UBS Financial Services, where he specialized in Hedge Fund Business and Risk Management.
In this appointed position, Swanzy serves as the Senior Confidential Advisor to the CFO. He leads strategic initiatives to ensure the Agriculture Secretary's priorities are effectively and efficiently executed throughout Department operations.
Swanzy said he was both humbled and honored by President Biden's appointment.
"I'm still in awe of it all," Swanzy said. "I have to pinch myself to be sure it's real. To walk into work and look out the window and see our national monuments is inspiring. It is something I could never have imagined. I am in awe of this amazing opportunity. I can't express what it means to me."
Swanzy said, once he was sworn in, he was up and running.
As a former active-duty, Air Force Finance Officer and current reservist, Swanzy has spent more than 10 years leading airman in South Korea, the Middle East, and the Pentagon.
In his reservist role, Swanzy serves as a Congressional liaison under the Deputy Assistant Secretary for Congressional Budget and Appropriations Liaison, Office of the Assistant Secretary of the Air Force for Financial Management, and Comptroller at the Pentagon. He currently holds the rank of major in the United States Air Force Reserves.
More Z-News - Main story
The piddlin' around continues….
Trojans earn another Top 10 win, Lady Dawgs win OT thriller
Top 10 Clash: CHHS downs Dothan
Laughter: Bil Lepp makes it happen
What is your New Years' Resolution?
Exercise more/lose weight
Save more money
Spend more time with family/friends
Spend less time on social media
Friends to Follow
© 2023, The Troy Messenger


text:
Police officer life expectancy is almost 22 years less than the lives of the civilians they serve and protect.
The long-term goal of Sigma Tactical Wellness does not involve just a one-time visit, but rather focuses on identifying high risk individuals, successfully managing known cardiac illness, and preventing early onset heart disease in younger officer populations. This continually-engaging processes can not only avert the disastrous and often expensive consequences of heart attack and stroke, it can help eradicate heart disease within any department or agency. Sigma is here and ready to work with you to ensure the immediate and long-term health of your officers.
Life Saving Services
Over the last 18 months, Sigma has shown massive potential in eliminating the catastrophic effects of cardiovascular disease amongst all first responders.
On-Site Specialists
Sigma brings the program to you by deploying within your department to increase convenience for your personnel and to eliminate the time they spend driving to/from medical facilities.
Manage Risk Factors
Sigma Tactical Wellness has pioneered a novel system of cardiometabolic screening which incorporates advanced cardiovascular biomarker detection, cardiac imaging, and cardiopulmonary exercise testing to identify coronary disease before it takes a toll on an officer's life.
Sigma has been nationally recognized for developing and integrating complete programs for wellness initiatives within law enforcement and first responders.
Learn about our implementation, screening, and program
Sigma has developed a comprehensive cardiac laboratory screening evaluation along with an individualized nutritional and exercise prescription. The screening consists of non-invasive imaging as well as advanced lipid panel, and inflammatory biomarker analysis which can be used to predict the likelihood of a heart attack.
Sigma understands the dynamic nature of health and all facets of lifestyle changes that can positively serve as the most progressive principles specifically designed to create long-term sustainable health.
The Sigma program and method has resulted in officers reporting:
Improved situational awareness
Improved on-duty performance
Dramatic weight reductions
Decrease in alcohol and tobacco use
Decrease in need for coffee/energy drink etc.
The Value of Cardiac Screening
The average life expectancy for an officer is almost 22 years less than the civilians whom they serve and protect. Moreover, 70% of all premature officer fatalities can be attributed to cardiac events, which if diagnosed properly, are almost completely avoidable. Our program was not designed solely for senior officers, but for anyone who desires assurance that they will not wind up a victim of cardiovascular disease.
Law enforcement basic health statistics
Average age of patient with heart attack
Heart attacks under age 45
Average life expectancy
What started this implementation
Officers are 25x more likely to die from heart disease than from any other causes resulting in line of duty death.
The percentage of at risk individuals beneath the age of 42 years. Based on low HDL, BP, elevated trig., BMI, and elevated fasted glucose.
Of police officers are OBESE, which is 8% above the general population.
Number of pension payments paid to an officer upon retirement prior to death.
"This is the most innovative law enforcement health improvement program in the risk management industry in decades. Additionally, it can be used by any organization to better its employees regardless of job classification."
Greg Barlow
Senior Risk Manager, CIRSA, Denver, Colorado
"I am completely confident that this program saved my life and the lives of a few of my officers. I am now a champion of sorts for cardiac and metabolic screening."
CHIEF CHARLES CINQUEMANI
DFW Airport Police
"I consider this program vital to Glendale Police Department. This program will, no doubt, cut down on injuries, sick time usage, and put my officers in a position to make better split-second decisions."
CHIEF HASKINS
Glendale, CO
"I have never instituted a program (especially one focused on improving health) that received even close to the number of positive comments from my officers."
J. JACKSON
Sigma began with the desire to create efficient avenues for members of public safety seeking a greater measure of health and performance from their daily lives. Today, we have served more than 6,500 officers and countless other first responders in the United States.
3 Ways to Prevent Early Heart Attacks
By Mary Caroline Nolan | Comments are Closed
Law enforcement professionals and first responders are at an increased risk when it comes to heart attacks and other cardiovascular issues. AccordingRead more
Why are Members of Law Enforcement at Higher Risk for Health Issues?
Many people often think that the dangers of being a first responder disappear when each shift ends. Unfortunately, officers are 25 timesRead more
Sigma featured in Police1
By Willis Porter | Comments are Closed
Heart disease is the No. 1 killer of LEOs – here's how to protect yourself. Officers concerned about their health and well-beingRead more
Heart Disease: #1 Killer of Active and Retired Cops
Introduction Twenty-two years – it is staggering. The average life expectancy of a police officer in the United States is twenty-two yearsRead more
Police Officer Health Risk: Irregular Hours lead to lack of sleep
By Ben Stone | Comments are Closed
Irregular Hours Police officers and other members of law enforcement don't have the luxury of only working from 9 to 5. OverRead more
By Ben Stone | 1 comment
Overview of Cholesterol and Metabolic Markers
Your Results and How They Impact Your Health Frequently we have our officers reach back out to us with questions about theirRead more


Lipotropics are substances that help break down and metabolize fats that may be stored in the body.
The Lipotropic products come in two forms, MIC and the Lipo product which contains MIC as well as vitamin B12 in the form of Cyanocobalamin. The addition of B12 in the Lipo product may aid in metabolism and energy when on a calorie restricted diet.
The diet plan recommended is the same plan by the US Department of Health and Human Services and the National Institution of Health.
It is a 1200-1300 Calorie diet for women and 1500-1600 calorie diet for men that can be followed safely and has several variations. It is designed to aid in weight loss as well as promote a body and heart.
The plan is less restrictive than other low calorie plans and pays special attention to whole grain carbs, fruits and vegetables and lean portions of meat and portion sizes.
While the exchange list allows some "white" carbs such as white bread, it is best to limit these as much as possible, whole grain products contain more fiber and typically provide better nutrition.
In addition this program not only allows physical activity but it actually encourages some light to moderate exercise such as a brisk walk at least three times per week.


text:
How has Pakistan managed to defeat the US in Afghanistan?
It is very clear that the US is finding it extremely difficult to strike a win in Afghanistan and could even said to be losing, seemingly in part due to the rigid and intricate network of the Haqqanis and the Taliban set and spread throughout the region. Both of these groups are tightly controlled by Pakistan's ISI, with the latter group actually being founded by them during the Cold War.
The US Senate has poured pressure on Pakistan for their support of such groups and has cut down greatly on the aid which was to be provided to them, but such punishments still appear to have no effect as ISI continues to exert an enormous adverse influence over Afghanistan.
The ISI itself has great experience in such proxy-like situations, having checkmated the famed KGB in the same region during the 80s and outsmarting the CIA in a series of diplomatic games with the controversial Raymond Davis affair prior to the death of Bin Laden.
It could be argued that Pakistan is a rival rather than ally, but this could easily be debated. The situation is indeed very difficult, with two previous CIA directors offering rather different perspectives on the issue. Michael Hayden claims that Pakistan is supporting militant groups in Afghanistan, while David Petraeus claims the opposite.
Despite all this, it is a given that the Taliban (or rather Pakistan's ISI) is winning against the US in Afghanistan. Afghanistan's president Ashraf Ghani himself stated that the Taliban wouldn't last a single day without Pakistan's support, while the former US vice chief of the army John Keane says something similar; namely that for the Taliban to defeated, Pakistan must stop "propping" them up with intelligence, training and logistics assistance.
The question then arises: Why has Pakistan so far managed to outplay the US in Afghanistan? What mistakes and misunderstandings on part of the Americans has led to this embarrassment?
united-states war foreign-policy pakistan
CalebCaleb
It's a fine question about military history. Unfortunately even the premise isn't factually answerable currently, and military history is probably off topic here. – user9389 Jun 5 '17 at 2:03
"tightly controlled by Pakistan's ISI" citation needed – Colin Jun 5 '17 at 2:50
The U.S. is once again learning the old addage if you enter a hostile territory and bomb the population and become the oppreaive de facto rulers, the population is likely to resist. – SleepingGod Jun 5 '17 at 4:03
The premise here is questionable. It's at least as plausible to argue that the US has defeated itself in Afghanistan by 1) engaging local resistance as a foreign power and 2) adopting a strategy that causes significant collateral damage and civilian casualties, thus ensuring ongoing sympathy and support for the local resistance. You don't need to be a victim of a Pakistani conspiracy to lose a war by killing hundreds and thousands of the people you claim to be interested in helping. – aroth Jun 5 '17 at 4:28
Has any liberal democracy ever invaded Afghanistan? From what I've read, Afghanistan's primary antagonists have been the British, the Soviets and the Americans. – David Blomstrom Jun 7 '17 at 1:50
I don't think the USA is already defeated. I think they are merely struggling. On the other hand, Russia and China are entering this region making the puzzle even more complex.
The possible end result would be a negotiation between the USA and Pakistan so that the USA can safely escape a Second Vietnam.
Why has Pakistan so far managed to outplay the US in Afghanistan?
Coz, it is their home turf. Most importantly, it is them.
What mistakes and misunderstandings on part of the Americans has led to this embarrassment?
Wars cannot be won only with brute force
https://www.thenation.com/article/a-us-military-officer-explains-why-americas-wars-in-the-middle-east-have-been-utter-failures/
Taliban faction is part of a large population.
Remember, Taliban are Pashtun people. Pashtuns are the ancient indegenous population of Afghanistan. In fact, the term Afghanistan literally means the land of Pashtuns. With 42% population, Pashtuns are the majority in Afghanistan.
When the Northern Alliance took control of the country, Taliban were declared pariahs. When Americans invaded Afghanistan, they sided with Northern Alliance and engaged in an effort to wipe out Taliban. A better strategy would have been to call them to participate in a dialogue so that they could be brought to mainstream politics.
All 'Talibans' are not Talibans
Times and again US politicians have proved that they don't either understand Pakistan's view of Taliban or deliberately ignore it.
Tehrik-i-Taliban (TTP) Pakistan is actually neither the part of the classic Taliban nor share common goals. This is a different group, based in Afghanistan who acts against Pakistan's interest. Some sources suggest that India funds this group.
Why is Pakistan maintaining links to Taliban and Haqqanis?
The Durand Line: Northern Alliance and their successors are a threat to Pakistan's sovereignty in that they do not accept Durand Line as the demarcation between Afghanistan and Pakistan. That virtually makes them a demander of more than half of Pakistan's territory. Taliban do not possess such a radical theory.
The Indian Job: India is constantly trying to build up a sizable presence on the Western border of Pakistan so that in war situations, they can have a strong foothold on the both sides of Pakistan. India is expanding its influence in Afghanistan. They have become successful so far in that they are being able to wage a proxy war by using Afghans. India has also established military bases on the western border of Pakistan namely Fakhor Airbase and Ayni Air Base. They have also established a port in Iran. India has also stepped up the funding of anti-Pakistan terrorist organizations in the recent years. These are direct existential threats to Pakistan. Without the Northern Alliance, there will be no Indian influence, and, the USA is encouraging both the Indian presence and the lead of Northern Alliance in Afghanistan.
Since these two factors are directly connected to Pakistan's existence as a state, neither cutting of aid nor diplomatic pressures will be able to deter them.
Same old Carrot & Stick policy
The USA has a long history of corning Pakistan when necessary and subsequently abandoning them when they were in need of help. From losing landmass to losing wars, This carrot & stick policy of the USA has done severe damages to Pakistan. On the other hand, USA's neo-love affair with India virtually signals the abandonment of Pakistan as a major ally.
Taking this as a hard truth, Pakistan seems to be shifting its policy against the dependence on US-made arms, and financial aids. Recent developments include, the Sino-Pak joint venture is jet-fighter development, Pak-Turk defense ties, and overall, the Pakistani pitch in developing its infrastructures to facilitate fast-track economic development. These initiatives will take time, but ultimately guarantees Pakistan's true independence from the USA.
Both of these groups are tightly controlled by Pakistan's ISI.
There is really no credible evidence that this is the case.
In addition to the misleading premise that the state of Pakistan is at war with the US in Afghanistan, the notion that the US has been outplayed or defeated is not supported by the facts either.
In 2001 before U.S. intervention, Afghanistan was more or less 90% controlled by the Taliban, and 10% or so by the Northern Alliance that was on the verge of being crushed. Since U.S. led intervention, the civilian regime in Afghanistan quickly gained control of the entire nation, did so with minimal contest through about 2005, and still rules pretty much the entire country albeit in the face of an ongoing insurgency.
Afghanistan is not casualty free and casualties due to Taliban attacks on civilians have gradually increased from 2007 to the present, without however, spiraling out of control. The rate of casualties and the number of refugees (Afghanistan v. Iraq) created as a result of the ongoing insurgency in Afghanistan than there were, for example, as a result of the Iraq War. Indeed, refugees from prior civil wars are now returning to Afghanistan. And, the current civilian regime in Afghanistan is more functional as a political body than the civilian government of Iraq where the central government has no control at all over much of the nation's territory (ISIS territory and also Iraqi Kurdistan).
Drone warfare has kept U.S. military casualties relatively low in this conflict, while drones have killed lots of insurgents, and the rate at which coalition forces have incurred casualties has fallen over time and is currently quite low.
But, given that Afghanistan has been in a state of more or less continuous civil war since 1979, and has experienced more economic privation than any other country in Eurasia with the possible exception of North Korea, the status quo is definitely better than it has been for much of the past 38 years.
It isn't uncommon for insurgencies to last for decades, and failing to stop them entirely doesn't mean that you are losing.
ohwillekeohwilleke
Not the answer you're looking for? Browse other questions tagged united-states war foreign-policy pakistan .
Why is Trump creating more pressure on Pakistan?
What are the historical claims to Kashmir from India and Pakistan?
Has Pakistan been able to sell JF-17 fighter jets to Sri Lanka?
Why US has a biased approach towards Shia Militants
How is the China–Pakistan Economic Corridor possible?
Why did the USA suspend its military aid to Pakistan in 1965?
How does "the military" control Pakistan?


But i don't think that everyone knows (at least i didn't know this), that it takes an optional second parameter - radix. Radix represents the numeral system to be used when parsing the integer. It defaults to 10, so parseInt() tries to parse the string as a decimal number by default.
So, if the number in the string begins with a zero (like months do, in standard date format YYYY-MM-DD), and you pass it to parseInt() without explicitly specifying radix to be 10, it will interpret it as an octal number. So, parseInt('08′), will result in 0, as will parseInt('09′), because digits 8 and 9 do not exist in the octal numbering system, so parseInt will return 0, because it won't be able to parse the numbers from the strings.
Because of this, a piece of code i wrote for one project suddenly stopped working on August (that is, the eighth month of the year). The bug that i left in my code was that i split a date from the format YYYY-MM-DD into an array of year,month,day and then i would use parseInt() to get the number of the month. It worked well for months 01,02,03,04,05,06 and 07 because these octal numbers represent the same decimal numbers, but it failed for 08, because as i've mentioned above, parseInt() would return 0 instead of 8.
Thanks for this explanation. I just hit this same issue and this solved my problem.


text:
using System.Linq;
using NUnit.Framework;
using SevenDigital.Api.Schema.Tags;

namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests.TagsEndpoint
{
	[TestFixture]
	public class TagsTests
	{
		[Test]
		public void Can_hit_endpoint()
		{

			Tags tags = Api<Tags>.Create
				.Please();

			Assert.That(tags, Is.Not.Null);
			Assert.That(tags.TagList.Count, Is.GreaterThan(0));
			Assert.That(tags.TagList.FirstOrDefault().Id, Is.Not.Empty);
			Assert.That(tags.TagList.Where(x=>x.Id == "rock").FirstOrDefault().Text, Is.EqualTo("rock"));
		}

		[Test]
		public void Can_hit_endpoint_with_paging()
		{
			Tags artistBrowse = Api<Tags>.Create
				.WithParameter("page", "2")
				.WithParameter("pageSize", "20")
				.Please();

			Assert.That(artistBrowse, Is.Not.Null);
			Assert.That(artistBrowse.Page, Is.EqualTo(2));
			Assert.That(artistBrowse.PageSize, Is.EqualTo(20));
		}
	}
}


To import your data in CSV format, select Settings > Data Import/Export and select CSV under Import data from.
Important: please make sure that you start your data import with connections.csv.
All filenames should only contain lowercase letters.
All file headers should match the sample files.
All files should be encoded as utf-8.
Always use a comma ( , ) to separate values. Using any other character, such as a semicolon, will cause your import to fail.
Blank comma separated lines (E.g.: ,,,,,,,,,,,,,,,,) should be avoided.
When entering amounts, do not use commas to separate digits (E.g.: use 10000.00 and not 10,000.00).
All dates must be formatted as YYYY-MM-DD (e.g. 2015-05-25).
Always use a period to separate cents in amount values (E.g.: use 10000.00 and not 10000,00). If you have set your preference in Hiveage to use a comma, it will be automatically applied to all amounts upon data import.
Time entries should be in minutes, and trip length should be in miles or km.
Commas found at the end of lines should be removed.
All country names should match the standard names used in Hiveage. If not, the country name field will appear blank once imported into Hiveage.
With Hiveage you can send beautiful invoices and accept online payments in an instant.
Copyright © 2004 — 2019 Vesess. All Rights Reserved.


When it's not possible to duck under or get around them, obstacles must be gotten over or through! Whether it's a slippery side slope, a muddy trench, a looming hill or a series of ruts and bumps, a Land Rover Discovery is capable of pretty much anything. Learn to take on different types of terrain together with this off roading session for two. After an intro and briefing, take it in turns to take the wheel of this powerful 4x4 vehicle for half an hour each and navigate the toughest terrain with an experienced instructor to offer guidance. This purpose-built off road course was made to help drivers test and improve their skills, and is a lot of fun. Muddy brilliant.
Minimum age is 17. The minimum height for drivers is 5' and the maximum is 6'7''. The maximum weight is 18.5 stone. Medical conditions must be disclosed at point of booking.
Please expect to be at the venue for up to an hour and a quarter, including 30 minutes of solo driving each in the Land Rover.
Both drivers will be in the car with a qualified instructor, taking it in turns to be passenger and driver. No other guests will be in the car during the session.


PUEBLO, Colo. – J.B. Mauney loves to compare bull riding to a light switch.
When he is on, J.B. Mauney is ON.
When he is off, the two-time World Champion is OFF.
Mauney did more than just turn his bull riding light switch back on this past weekend in Billings, Montana.
He ripped the entire light switch out of the wall when he rode 2016 World Champion Bull SweetPro's Bruiser for 94.25 points for his first win of 2017.
Mauney's electric event-winning ride sent shockwaves through not only Rimrock Auto Arena, but also the PBR world standings.
The 30-year-old's 4-for-4 performance earned him a massive 778.3 points toward the world standings – the most amount of world points earned by a rider this season at a non-PBR Major – and the sport's winningest active rider is up to No. 3 in the world standings.
"I have said it numerous times. Bull riding is like a light switch," Mauney said. "I felt like before here, it flickered a little bit and it was on and then it was back off. Hopefully it is switched on this time.
Mauney had won zero events and only one round this season before breaking off back-to-back round wins on Championship Sunday with his 89.5-point ride on Mudshark in Round 3 and his dominance aboard Bruiser in the championship round.
Mauney is a perfect 3-for-3 against the reigning World Champion Bull.
"I would rather be 94 than 88 any day," Mauney reiterated after the event, adding he wasn't concerned over the fact that Bruiser had broken his jaw and collarbone before.
Mauney would also rather be No. 1 instead of No. 3 in the world standings.
"I am not where I want to be," Mauney said earlier in the weekend. "Every time you nod your head you have to take advantage of it because these guys ahead of you don't slip pretty much. Any time you can make the whistle and get some points that is what it is about.
Mauney made sure to take advantage of world leader Eduardo Aparecido being unable to compete because of a riding arm injury.
The active leader for 90-point rides (72) is now within 1,123.76 points of Aparecido thanks to the 31st event win of his career, which is also the most among active riders.
The Mooresville, North Carolina, cowboy is one win away from tying Justin McBride for the most wins all time (32) and is four rides away from joining Guilherme Marchi and Mike Lee as the only two riders in PBR history to ride 500 bulls on the Built Ford Tough Series.
Those records mean close-to-nothing to Mauney if he doesn't have more gold championship hardware being added to his resume this November at the 2017 Built Ford Tough World Finals.
Mauney knows overcoming Aparecido and his 1,000-plus point deficit is going to be a challenge, but it certainly isn't impossible.
The 12-year veteran overcame a 1,662.5-point deficit in 2015 to win his second world title after missing five events because of a torn left ACL.
Mauney had fallen significantly behind previous world leader Joao Ricardo Vieira before returning to competition on April 25, 2015, to win the Des Moines Invitational in his first event back.
He then placed second the next weekend in Colorado Springs, Colorado, to get within 622.5 points of Vieira before the Brazilian concluded the first half by winning Last Cowboy Standing to increase his lead to bump his lead back up to 1,350 points.
However, Mauney stormed out of the summer break with back-to-back victories in Biloxi, Mississippi, and Tulsa, Oklahoma, and two weeks later a second-place finish in Thackerville, Oklahoma, gave him the world No. 1 ranking.
Mauney never let it go and ran away with the 2015 world title.
It was an amazing turnaround that featured Mauney going 20-for-28 and posting all eight of his 90-point rides in the final three months of the season.
Then there is also the evidence of Mauney's herculean, come-from-behind performance in the PBR's old points system in 2013 when he rallied from 10th in the world standings, and a 3,056 points deficit, to defeat Silvano Alves on the final day of the World Finals for his first world title.
In fact, Mauney is 185-for-329 (56.23 percent) from Aug. 1 through the Built Ford Tough World Finals in his career.
However, he still has two more events, including a PBR Major in Last Cowboy Standing, to easily take another chunk out of Aparecido's world lead before we even begin the second half.
But will the light stay on for the rest of the season now that Mauney has turned it on?
He is still only 19-for-41 this year and his 46.34 percent riding percentage is the fourth-lowest of his career.
Some have questioned Mauney's health, but he has still only missed two events so far this season and is actually on pace to ride at his most events (25) since winning his first world title in 2013 in 23 events.
Mauney bristles when asked if the Father Time and health questions are getting old.
It is an overreaction to his struggles this season, Mauney believes.
Call it a lightbulb moment or whatever you like, but Mauney is not ready to give up on his pursuit of a record-tying third World Championship anytime soon.