text:
It's Time to Cut Jon Jones
by JSwift
Hey Dana. This is your good buddy Jimmy over at HalfGuarded.com.
Now, I know we've had our differences in the past. You've tweeted about some of the things I've written and called it absolute garbage, and I've written plenty of articles questioning your decision-making as the de facto head of a multi-billion dollar corporate empire.
But you see, Big D, you and me need each other. Obviously, without your handiwork, the world of mixed martial arts wouldn't be anywhere near as awesome as it is today, and this fine, outstanding site probably wouldn't even exist. By that same token, though, if it wasn't for die-hards like me espousing the gospels of the sport, you would've gone bankrupt in 2002.
I'm no filthy casual, Senor White. I've been a UFC devotee before the wheels on the bandwagon were even in production. I was there for the dark ages, back when EVERY show poster looked like a bad nu-metal CD cover and you were charging us actual legal tender to view Murilo Bustamante vs. Matt Lindland and Ken Shamrock vs. Kimo as PPV main events. Most sane people would've abandoned ship during all that mess, but ever the MMA loyalist, I stood by the product. If it weren't for evangelists like myself, you never would've even made it to the first season of The Ultimate Fighter.
Now, even though your annual income is about 1,000 times higher than mine, that doesn't mean you can't make a few ill-advised decisions up in that ivory tower of yours. Frankly, you need plebs like me to remind you of your fallibility, so that egomania doesn't drive you into making, well, Bellator-ish executive calls.
Now Dana, I'm about to tell you something that, on the surface, may sound a little extreme. You may want to write it off as the musings of some madman who doesn't know anything about the business, but just hear me out, OK?
Buddy, you've got to fire Jon Jones. Yeah, I know he's the proxy "face" of the company, but he's just too much trouble. Yes, yes, he is indeed probably the most talented physical specimen to ever step foot in the Octagon. If he never fought another fight ever again, he would still be considered one of the greatest fighters of all time, if not the absolute greatest.
But he's just too dadgum problematic. He's one of those kids that thinks just because he's good at his craft, he can run around doing whatever he wants to and he'll never have to worry about the consequences. And like a woefully manipulated parent blind to their offspring's misbehavior, he know he has you over a barrel.
Remember that time he got a DUI in 2012? He knew you wouldn't care.
Remember when he pulled out of UFC 151, and the whole card – and all of that PPV revenue – went down the toilet? Yeah, he's still laughing about that one.
Remember when he physically assaulted Daniel Cormier at a press conference, then lied about losing his Nike contract because of it? That one always makes him smirk. He can't believe you fell for it!
And who could ever forget that time he got popped by the NSAC for testing positive for the nose candy? Can you imagine ANY NFL quarterback or NBA superstar getting a plus sign for blow and keeping their job? Bones knows you'd look the other direction, though.
OK, OK, so you finally had to do something when he left the scene of an accident involving a pregnant woman while he was (probably) high as a kite. You took his belt and gave him a year off, but you just couldn't cut bait. He's too talented, you said. He's too marketable, you told yourself.
He's just too good to kick off the company payroll.
Besides, you thought to yourself, after the whole title-stripping thing, he'd certainly learned his lesson. Now he knew that he wasn't above the law, and that his dunderheaded actions would eventually come back to bite him on the brown eye.
And then, on the eve of the absolute biggest show you've ever produced, you get a phone call the drug lab.
Uh-oh. It looks like your golden boy tested positive for something he ain't ever supposed to test positive for. And like that? The main event of the biggest show you've ever dreamed of gets taken off the table just hours before the spectacle airs.
Now, if the full tests prove conclusively that Jones had some PED's in his P-E-E, he's looking at a two year suspension by the NSAC, at the minimum, and he won't be able to fight stateside until 2018.
DW, you've got to make yourself a decision here. Do you look at your star student and deduce that he's just so talented and gifted and full of potential that he's worth all the troubles, or do you put your foot down hard and make an example out of him?
Well, a lot of people are going to tell you a whole bunch of different things as to what you should do. But as your unsolicited advisor, I'm just going to flat-out tell you – pal, it's time to fire Jon Jones.
Forget all of the nonsense about him being the pound for pound best fighter in the world. After all, what's the point of being the most talented MMAthlete in the world if a.) all your wins keep getting overturned because of drug violations, and b.) you're spending more time serving suspensions than actively training for competition?
Five years ago, Jon Jones was a great investment. But now, it's clear the risks no longer outweigh the rewards. He's a big-headed prima donna who thinks his hype is huge enough to overrule all of his wacky, irresponsible antics outside the cage.
Leopards don't change their spots, Mr. White. If you think Jon Jones has committed his last lawsuit-baiting felony or failed his last drug test or sunk his last PPV event, you're fooling yourself.
Granted, it's a bit scary having to take your star player off the team and throw him out into free agency. I'm sure those guys on Spike TV or whatever that network is called nowadays would pay a LOT of moolah to have Jon Jones on their roster, and they'd probably find a way to book all his fights in countries without sanctioning athletics committees just so he wouldn't have to worry about all those pesky wee wee examinations. And for sure, there's got to be some money mark out in Japan or Russia that would gleefully shell out bonkers bananas for Jones to beat up tomato cans in front of literally dozens of fans.
But you see, the joke's on Jones. What he doesn't know is that the UFC will function just fine without him, while without the UFC, he's destined for nothingness.
Jon Jones was propped up by UFC marketing. Your company made him an international sports star. And you can do it with any talented up-and-coming fighter, and last I checked, you've got plenty of 'em on your roster.
Simply put, there isn't an MMA market beyond the UFC. You know you are the NFL of the sport; technically, you have competition, but there isn't a single player in the Arena League who wouldn't give his left ventricle to play half a dozen downs in a regular season game against the Browns.
No one NFL player is bigger than the game. The sport itself is the true draw – after all, you've got veteran players leaving every season and a steady stream of hot prospects ready to replace them every year. The UFC, whether you realize it or not, works the same way. Some guys are good for a while, they get old and/or they start doing really dumb things, and even better and more mature guys eventually come in and take their spots.
As long as the quality of the product is consistent, you've got nothing to worry about, amigo. And truthfully, not having Jon Jones around isn't going to negate the general awesomeness of the rest of the roster whatsoever.
You see, Dana, you've got to remember something. YOU are the company, YOU are the brand and YOU are mixed martial arts. You've got to accept that responsibility, and that means getting rid of all the head cases on the payroll before they start doing all sorts of stupid stuff to taint the sport's image forever. You had War Machine on the roster at one point, and you had Jayson Miller under contract, too. At heart, Jon Jones is hardly any different than either of those knuckleheads, except he thinks he's so talented that he can get away with all his tomfoolery.
He's not bigger than the sport and its reputation, and he's certainly not bigger than you, DW.
The longer you keep him under your roof, the more havoc he's going to wreak. And it's only a matter of time until he does something really, really destructive, like drive a car through your dining room like Stephanie Tanner did in that one episode of Full House.
It's your call, compadre. And deep down, you and I both already know what the right course of action is.
Jon Jones says Cormier is faking injury; goes Full Jon Jones
Jon Jones is even better than Jon Jones previously thought Jon Jones was
Jon Jones: moron
Exclusive UFC 200 Poster Featuring Jon Jones
Jones addresses the media
I don't think they will do it. He will still be young enough to put in 5 more years of fights and the UFC can make money on this guy. Dana may say to himself that a 2 year bust will be the thing that finally gets Jon to pull it together.
I don't think UFC wants Bellator to sign him (they would), and then put him on a show in the UK or something like they were going to do to avoid Kimbo's suspension.
I agree, he should be fired. I just don't think Dana will do it.


text:
On The Couch with Jake Fogelnest
Today's subject is somewhat of a child prodigy in the comedy world. Unlike many young actors forced into the profession from overbearing, grueling "stage parents," he pursued stardom on his terms. He hosted Squirt TV on public access as a high school student, just because he legally could. Since then, he's remained constantly involved in the entertainment world, keeping his finger on the proverbial pulse on what is new, funny, and maybe a little bit disturbing. He served as the assistant director for Sarah Silverman's darkly funny stand-up special Jesus is Magic, a show on SiriusXM's "college rock" station for nearly a decade, and hosted a podcast just to catch up with his LA friends. Most recently, he's found his true love in writing for television; recently working on the new seasons of Difficult People and Billy on the Street, as well as the Netflix original show, Girlboss, set to be released in 2017. In between his many comedic ventures, Jake Fogelnest had time to stop by Impose's perennial Couch to discuss his path to becoming a TV writer, his comedic influences, and the importance of mental health above all in the temperamental entertainment industry.
What gave you the impetus to start a show as a teenager? Do you think your comedic voice has changed since you started Squirt TV?
Boredom. I was 14 years-old, in New York City, a freshman in high school, and I just did NOT relate to anyone. I knew about public access television and the idea that they legally had to give anyone a television show if they filled out some fairly easy paperwork. So I just did it. The show was someone for me to talk to, a way for me to say, "This is what's in my brain, does anyone else fucking relate?" This was over twenty years ago and I'm sad to say that my comedic voice is pretty much the same. Hopefully I have gotten better, but my general interests are still the same as they were when I was a kid: John Waters and Howard Stern.
Before you started your own public access show, were you an outgoing child? Did you perform in any capacity, like theatre or music, before you hosted the show?
I think I was pretty social. I remember announcing proudly to a roomful of adults at one point, "I know all the curse words in the book!" Then I proceeded to rattle them off. I'd been making little movies ever since I was a kid. I guess the difference between me and say, Steven Spielberg, is he was making little movies about aliens or whatever, and I used a video camera to make a short film called "THE WORLD OF TRASH". I don't remember really what it was about, but it was my homage to filth.
From the vantage point of a young, immediately post-Squirt TV Jake Fogelnest, you could have taken the route of music journalism or pursuing more comedic endeavors. How did you decide what professional path to take at such a young age?
To me, the goal was always to make movies and TV shows with my friends. Since I was very little. John Waters was very inspirational to me. I remember seeing Pink Flamingos at the entirely appropriate age of seven and saying, "Wait, this counts as a movie? These weirdos just went out into the woods and made this insane thing to freak out hippies? That's what I want to do. If this counts, I can do this!" I think I've carried that with me for my entire life. Through the MTV connection, I was able to get jobs in radio and music industry things, but it was always to pay the rent. SUPER fun day jobs, but they were day jobs. I am so happy that now I feel like I'm finally doing what I want: making television with my friends.
John Waters was very inspirational to me. I remember seeing Pink Flamingos at the entirely appropriate age of seven and saying, 'Wait, this counts as a movie?'
How do you balance the many different "hats" you wear as a comedian? How do you know whether an idea will work best as a podcast, a sketch show, a TV episode, etc?
I feel like ideas dictate to you, not the other way around. You don't really know—you'll think of a scene or a character, a joke, whatever it is—and then it's trial and error to figure out what goes where. I stopped doing the podcast because I feel like my goals with it were achieved. I started it when I first moved to LA and I wanted an excuse to see old friends, make new ones and share all these clips of things that were running around in my brain. As TV stuff started to become more and more of what took up my day, it was time to let it go and follow the passion. The money is nice too!
When you were writing Wet Hot American Summer: First Day of Camp, did you worry that the world created in WHAS did not have enough new stories to tell for a multiple episode reunion?
Michael Showalter and David Wain had SO much already on the first day we all came in. A giant whiteboard filled with index cards of characters, scenes, jokes, random ideas. It was clear that there was a HUGE world to dive into, our task was just figuring out how it all fit together and what new ideas we could bring to the table. Michael and David created such strong characters with Wet Hot American Summer that it felt like we could find stories for them forever! Just thinking about it now fills my heart, it was so fun.
Can you tell me a bit about the role of a comedic director? Most people view stand up performances as one-man productions, but what kind of influence do you exert over the creative process as the director?
It depends on what you're directing! With stand-up, I would say it is 99.9% a stand-up comedian running the show. I've only helped out a little bit with some stand-up stuff. Years ago when Sarah Silverman was workshopping Jesus Is Magic at Joe's Pub, I was Assistant Director to Tom Gianas. We were really just a sounding board for Sarah, helping her figure out themes and what jokes worked best together. But that was really all Sarah Silverman; all she needs is a microphone! If I'm directing something narrative, it's just about performance, making actors feel comfortable, creating a fun and relaxed atmosphere, getting the shots we need, fixing stuff that doesn't work. I guess there are some directors who are tyrannical and obsessive, but I try to keep in mind, "we're just filming some joke fake thing here, let's try to be human."
What is it about a video clip-based podcast that appealed to you? Do you have any intention to bring it to TV? Or is part of the fun in the secondhand descriptions of each clip to the listeners?
I knew it would work from years of listening to Howard Stern do the news with Robin. They play a clip of a thing, pause the clip, get into a conversation—it's just compelling radio. It was a way of doing an interview without being just another comedy person talking to other comedy people. That ground was well-covered already. No intention to bring it to TV. I don't want to host a show. I'll do a talk show or something if someone invites me on if I have something to promote, but there's not going to be "The Fogelnest Files" on Fusion or something. I'm just not interested. I would rather go into a cave and come back with a story to tell right now.
How is living in LA as a comedian different than living in NY?
Most of my friends are out here now. I'm lucky that I've gotten to go back and forth to New York a lot because of Difficult People and Billy On The Street, but I'm pretty settled into LA at this point working on Girlboss for Netflix. I think things in comedy go in waves. There will be a bunch of interesting, dangerous, cool, innovative stuff happening in New York. Then the people doing that stuff will start to get jobs and inevitably move out to LA. Or Los Angeles will have a new wave of people doing crazy new stuff, and they'll get quickly hired away on things. It goes back and forth. Right now I think it's one of the most interesting times for NYC comedy, and I don't think it was that way four years ago. This ebb and flow will hopefully go on forever.
Anyone who works in comedy that doesn't go therapy is irresponsible and dangerous.
Funny Or Die is setting a new bar for the quality of comedy available online, do you think that short-form, web-friendly content is where comedy is heading in the future?
Working at Funny Or Die was one of the best experiences of my life. I would describe it as a full on Saturday Night Live experience without any of the pressure or money. It has more in common with Roger Corman than Lorne Michaels in the best possible way. I think short-form web-friendly content is always going to be there, but I think what's far more interesting is when Funny Or Die takes a big swing. The hour-long Trump movie they made was awesome. I think the future of web comedy, at least the future I'm personally interested in, is stuff like that. Or Louis CK dropping "Horace and Pete" on his website. Everything that's going on at Seeso.
How has your work as a performer across multiple mediums affected your mental health?
Self care has to come before everything else. My mental health is the first thing I worry about. Everything else in show business, comedy and entertainment comes second. Anyone who has this backwards is setting themselves up for disaster. I am better at everything in my work if my head is checked. The minute I stopped looking for external validation to make me feel better, that's when I was ready to accept the gifts that come from external validation. And that's when it began to show up. Also, anyone who works in comedy that doesn't go therapy is irresponsible and dangerous.
Tags: billy on the street, Comedy, difficult people, funny or die, girlboss, Jake Fogelnest, john waters, michael showalter, sarah silverman, wet hot american summer
Car Seat Headrest announce new album; release video
NIKO IS drops mini-doc; "So Many Nights"

redpajama_set_name: RedPajamaCommonCrawl


Entries are now open for the 2019 Enfranchisement and Right to Manage Awards.
The entry deadline has been extended and entries will now close on Wednesday 17th April 2019.
The awards will be held on 6th June 2019 at the London Sheraton Grand Hotel, W1J 7BX.
The ERMAs have been refreshed, and we are delighted to be working collaboratively with ALEP and key industry figures to bring you an exciting new format. Changes to the event include new award categories and the option to nominate a third party individual or company; giving you the opportunity to formally recognise the professional excellence and achievements of colleagues and clients.
We very much hope you will be entering the awards and joining us for this unique and exciting evening in the property legal and valuation calendar.


The office workers looked down from the windows above and saw that all the eggs had hatched. They wondered how the mother duck would get the babies down from the ledge so they could go to the river which was about three blocks away. Ducks must have water within two days after they are hatched.
While the office workers watched, the mother duck flew down to the sidewalk and started quacking. One little duck wobbled to the edge of the ledge and jumped off. It did not know how to fly so it crashed to the sidewalk. It was not seriously hurt, but was stunned and couldn't get up right away.
One of the office workers knew something had to be done so he raced down the stairs to the sidewalk just as the second baby duck was about to jump. He caught the little duck in his hands and put it on the sidewalk near the mother. He caught all of the other eight ducks as they jumped off the ledge.
He then got a cardboard box, loaded the little ducks inside and carried them down the sidewalk and through traffic to the river, the mother duck following behind.
What a story – the man was a duck hero! Now, do you think it mattered which day of the week this happened? No, the man had compassion for the ducks and wanted to help.
Jesus teaches us to be compassionate – to care about others. When the Pharisees, who paid great attention to the laws, criticized others for doing good works on the Sabbath (Sunday, God's day) Jesus said to them, when a man with a withered arm came to him to be healed, "Is it lawful on the Sabbath day to do good, or to do harm?" (3:4).
They did not answer him. Jesus had compassion for the man and healed him, even though it was the Sabbath, because it was the right thing to do.


Our range of innovative programmes for sales training, coaching and business mentoring are designed to help service-based business transform with the power of consultative selling.
"We incorporate state-of-the-art learning management systems and digital platforms to support our delivery, with access across all devices. As a result, our clients experience a highly flexible, collaborative and content-rich experience which translates into rapid learning with real business gains".
See the difference for yourself – Designed for the needs of Small Business – based in Belfast. Northern Ireland with a global reach.
TRANSFORMING BUSINESS .… it's what we do at CJH Training!
OUR ONLINE SALES TRAINING ACADEMY JUST GOT A WHOLE NEW LOOK!


Size Wide 17" Wide 18" Wide 17,5"
Created to fit horses with wide backs and normal withers, e.g. warmblood and cob type horses. Perfect for anyone just starting out with dressage and the wide range of details would not disappoint the more advanced dressage rider either. Thin panels help with clear communication of aids. Supplied with two replaceable knee supports to help you achieve the perfect leg position. Supplied with gullet plates in size: Wide.
The unique non-slip girth system means that you can easily make adjustments if the saddle slips.
A saddle stuffed with wool, or synthetic wool can need re-stuffing after a period of use. The stuffing settles and can also be affected by the rider's seat and the horse's anatomy. Saddle makers usually state that a saddle needs checking after 6-12 months.
Ten years for trees, one year for other material.


When compared to children from other races and ethnicities in the United States, American Indian/Alaska Native children are shown to have unique environmental exposures that are affecting their health.
For a recent study, published in Reviews on Environmental Health, a group of researchers from North Carolina analyzed a number of existing studies focused on these stressors, looking primarily at populations from New York and Alaska. They mainly examined health outcomes affecting the children's lung health, developmental factors such as cognitive and thyroid function, sexual maturation and birth outcomes.
Higher risks of lung disease from indoor wood-burning?
Primary non-chemical stressors in this study were the proximity of people's homes to polluted landscapes, lack of indoor plumbing and indoor use of wood for heating or cooking. Main chemical stressors were hydrophobic organic compounds such as polychlorinated biphenyls (PCBs) and metals including lead and mercury.
Nirmalla Barros, Nicolle S. Tulve, Daniel T. Heggem, Ken Bailey: Review of built and natural environment stressors impacting American-Indian/Alaska-Native children, 06.09.2018.


text:
using namespace uth;

AAssetManager* FileManager::m_manager = nullptr;

bool ensureDirectoryExists(const std::string& path);

FileManager::FileManager()
	//:m_file(nullptr),
	:m_stream(NULL),
	 m_asset(nullptr),
     m_writable(false)
{ }

FileManager::FileManager(const std::string& path, const Location loca, bool isWritable)
	//:m_file(nullptr),
	: m_stream(NULL),
	 m_asset(nullptr),
     m_writable(false)
{
	OpenFile(path, loca, isWritable);
}

FileManager::~FileManager()
{
	CloseFile();
}

bool FileManager::OpenFile(const std::string& path, const Location loca, bool isWritable)
{
    // We can safely ignore isWritable because it doesn't matter here

	errno = 0;
	if (loca == Location::ASSET)
	{
		m_asset = AAssetManager_open(m_manager, path.c_str(), 2);
        return false;
	}
	else if (loca == Location::INTERNAL || loca == Location::EXTERNAL)
	{
		std::string truePath;

		if (loca == Location::EXTERNAL)
		{
			struct stat sb;
			int32_t res = stat("/sdcard/", &sb);
			if (0 == res && sb.st_mode & S_IFDIR)
			{
				truePath = "/sdcard/" + path;
			}
			else
			{
				res = stat("/sdcard0/", &sb);
				if (0 == res && sb.st_mode & S_IFDIR)
					truePath = "/sdcard0/" + path;
				else
					truePath = "/sdcard1/" + path;
			}
		}
		else
			truePath = uthAndroidEngine.internalPath + "/" + path;

        if (!ensureDirectoryExists(truePath))
			return false;

        if (isWritable)
        {
            m_stream.open(truePath, std::ios::in | std::ios::out | std::ios::trunc);
            m_writable = true;
        }
        else
            m_stream.open(truePath, std::ios::in);

        // First try to create the file if it does not exist
        if (isWritable && !m_stream.is_open())
        {
            // Try creating the file
            m_stream.clear();
            m_stream.open(truePath, std::ios::out);
            m_stream.close();
            m_stream.open(truePath, std::ios::in | std::ios::out);
        }

        // If it's still not open then we have a problem
        if (!m_stream.is_open())
		{
			WriteError("errno %s with file %s", strerror(errno), truePath.c_str());
			return false;
		}
	}
	return true;
}

void FileManager::CloseFile()
{
	//AAsset_close(m_asset);
	if (m_stream.is_open())
		m_stream.close();
}

int FileManager::GetFileSize()
{
    if (m_asset != nullptr)
    {
        return AAsset_getLength(m_asset);
    }

    m_stream.seekg(0, m_stream.end);
    int length = m_stream.tellg();
    m_stream.seekg(0, m_stream.beg);

	return length;
}

bool FileManager::FileSeek(int offset, int origin)
{
	if(AAsset_seek(m_asset, offset, origin) != -1)
		return true;
	return false;
}

bool FileManager::ReadBytes(void* b, unsigned int count, unsigned int blockSize)
{
	char* buffer = (char*)b;

	if (m_asset && AAsset_read(m_asset, buffer, count * blockSize) >= 0)
	{
		return true;
	}
	else if (m_stream && m_stream.is_open())
	{
		std::vector<char> data;
		data.resize(count*blockSize);
		m_stream.read(&data[0], data.size());
		memcpy(buffer, &data[0], data.size());
		return true;
	}
	else
		WriteLog("Readbytes failed:  %s", strerror(errno));
	return false;
}

const BINARY_DATA FileManager::ReadBinary()
{
	BINARY_DATA retVal(GetFileSize());
	if(!ReadBytes(retVal.ptr(),retVal.size()))
		return BINARY_DATA();
	return retVal;
}

const std::string FileManager::ReadText()
{
	const int size = GetFileSize();
	char* buffer = new char[size+1];
	ReadBytes(buffer, size);
	buffer[size] = 0;
	std::string str;
	str += buffer;
	//WriteLog("readtext %s %s", str.c_str(), buffer);
	delete[] buffer;
	return str;
}

void uth::FileManager::WriteString(const std::string& data)
{
    if (!m_stream.is_open())
    {
        WriteError("No file is open");
        return;
    }
    else if (!m_writable)
        WriteError("File not writable");

    WriteLog("Writing: %s", data.c_str());

    m_stream << data;
}

void uth::FileManager::WriteBinary(const BINARY_DATA& data)
{
    if (!m_stream.is_open())
    {
        WriteError("No file is open");
        return;
    }
    else if (!m_writable)
        WriteError("File not writable");

    m_stream.write(reinterpret_cast<const char *>(data.ptr()), data.size());
}

AAsset* FileManager::loadSound(const std::string& fileName)
{
	return AAssetManager_open(m_manager, fileName.c_str(), AASSET_MODE_UNKNOWN);
}

int64_t FileManager::getAssetLength(void* asset)
{
	return AAsset_getLength((AAsset*)asset);
}

int64_t FileManager::seekAsset(int64_t offset, int whence, void* asset)
{
	return AAsset_seek((AAsset*)asset, offset, whence);
}

int64_t FileManager::readAsset(void* buffer, int64_t count, void* asset)
{
	return AAsset_read((AAsset*)asset, buffer, count);
}

int64_t FileManager::tellAsset(void* asset)
{
	return AAsset_seek((AAsset*)asset, 0, SEEK_CUR);
}

bool ensureDirectoryExists(const std::string& path)
{
    std::vector<std::string> dirs;

    size_t pos = path.find("/", 1);
    size_t lastPos = 0;

    while (pos != std::string::npos)
    {
        dirs.push_back(path.substr(lastPos, pos-lastPos));
        lastPos = pos;
        pos = path.find("/", lastPos + 1);
    }

    // Check the dirs actually exist
    std::string testPath;
    for (int i = 0; i < dirs.size(); ++i)
    {
        testPath += dirs.at(i);

        struct stat s;

        int ret = stat(testPath.c_str(), &s);

        if (!S_ISDIR(s.st_mode) || ret != 0)
        {
            // Try to create the directory
            int status = mkdir(testPath.c_str(), 0777);
			if (status == -1)
			{
				WriteError("Error: %s when creating directory: %s", strerror(errno),
					testPath.c_str());
				return false;
			}
        }
    }
	return true;
}

redpajama_set_name: RedPajamaGithub


text:
News & Gossip | Aleajo
R.I.P. Colonel Abrams Dead at the Age of 67
2016 has taken yet another person of note. Eighties R&B and dance music artist Colonel Abrams has died. The singer with the deep voice best known for his smash singles "Trapped" and "I'm Not Gonna Let You" succumbed to various ailments on Friday. He was 67. Abrams was born Colonel Abrams Page in Detroit on May […]
Where Are They Now? Salt-N-Pepa Spills The Tea On The Secret Behind That Famous Asymmetrical Haircut
The popular hair trend started for a reason you won't believe. Salt-N-Pepa spilled the tea on that famous asymmetrical haircut that made waves during the late 80s. We're sure you have a sister or a girlfriend who tried to rock that crazy style (or you tried it yourself….don't front.) Pepa had to admit that […]
#Flashback: Rosie Perez on "Soul Train!"
From its local debut in Chicago in 1970 to its national roll out in 1971, all the way to its finale in 2006, Soul Train has made a huge impact in music and pop culture, especially with the performers and dancers who appeared during different parts of the television show's run. One person that stood out […]
Tonight Show: Jimmy Fallon and Pharrell Williams Takes On '80s Soul [VIDEO]
Pharrell Williams visited The Tonight Show and reminisced with Jimmy Fallon over classic episodes of that popular '80s TV series called The American Power Hour. It…
Big Daddy Kane Warms It Up In D.C. For Live Release
Rap pioneer Big Daddy Kane hasn't lost a step since his 80's heyday and if you've ever seen him in concert, you'd know that for…


Terri practices what she preaches as an Associate Dean and Professor of Management in Santa Clara University's business school. Through her blog, Technology and Organizations, and freelance work (Wall Street Journal, Harvard Business Review Blog, Women 2.0, MIT's Sloan Management Review), she has the opportunity to follow organizational trends and the leaders who bring them to life. Her academic work is published in top journals such as: Organization Science, Information Systems Research, MIS Quarterly, IEEE – Transactions on Engineering Management, and the Academy of Management Review. Some of this research has been funded by the National Science Foundation. She is a senior editor for Organization Science, an editorial board member of IEEE – Transactions on Engineering Management and Group Decision and Negotiation, as well as a past associate editor for MIS Quarterly. Her undergraduate degree is from UC Berkeley; her master's and doctorate are from Carnegie Mellon.


text:
China threatens response to new US sanctions over Hong Kong
Posted: Oct 15, 2020 / 03:04 AM PDT / Updated: Oct 15, 2020 / 03:04 AM PDT
BEIJING (AP) — China on Thursday said new U.S. sanctions on officials responsible for Hong Kong security are an attempt to undermine the city's stability and threatened unspecified countermeasures.
Foreign ministry spokesperson Zhao Lijian said China "firmly opposes and strongly condemns" the U.S. Hong Kong Autonomy Act, which requires the secretary of state to report to Congress on people seen to be impeding civil rights in the territory.
Ten Chinese central government and Hong Kong officials were included in this year's report, including Chief Executive Carrie Lam and Police Commissioner Chris Tang.
The report "grossly interfered in China's internal affairs," further exposing Washington's "sinister intentions to undermine Hong Kong's prosperity and stability and contain China's development," Zhao said.
"If the U.S. insists on going its own way, China will take resolute countermeasures to safeguard national sovereignty and security interests, and safeguard the legitimate rights and interests of Chinese companies and related personnel," Zhao said.
The sanctions include visa restrictions and potentially bar dealings between the named individuals and U.S. financial institutions. The same officials were sanctioned under an executive order in August, shortly after Beijing imposed a sweeping national security law on the former British colony.
"Through the imposition of the National Security Law, the (Communist Party of China) has crippled democratic institutions, human rights, judicial independence, and individual freedoms in Hong Kong," State Department spokesperson Morgan Ortagus said in a statement accompanying the sanctions announcement.
Ortagus cited the arrests of peaceful protestors, the stationing of Chinese security agents in the territory and the "politically motivated delay" of September elections for the local assembly as evidence of the deterioration of rights promised to Hong Kong by Beijing at the time of its 1997 handover to Chinese control.


text:
Mum's shocking act of kindness for son's killer
by Derrick Krusche
Liam Anderson's mother has embraced Mathew Flame in a Sydney court, telling him she forgives him after he was found not guilty of her son's murder but guilty of his manslaughter.
Flame, now 22, of Narraweena, had pleaded not guilty to murdering his close mate and Rose Tattoo singer Angry Anderson's son Liam, 26, during an ecstasy-fuelled bender on Sydney's northern beaches in November 2018.
A three-week trial in the NSW Supreme Court was told they were kicking on at a friend's house when Flame started to hallucinate and brutally bashed Mr Anderson to death in a small Queenscliff park because he thought he was a demon "who just wanted me dead".
After two full days of deliberating the jury on Thursday returned a verdict of not guilty of murder but guilty of manslaughter.
When the verdict was read out Flame broke down in the dock, turned to his family members and said "I'm sorry" to which his mother replied "don't ever be sorry".
Supplied Liam Anderson Flame
In an emotional scene Flame, his mother and Mr Anderson's mother Lindy embraced each other in tears while he was in the dock.
Outside court, Mrs Anderson said she forgave Flame for what he did and said there were no winners.
"There's no winner … no one's winning out of this, yeah I do (forgive him),' Mrs Anderson said.
Solicitor Leonie Gittani, who was on Flame's defence team, said the verdict on the lesser charge of manslaughter was a relief.
"A sense of relief , that's pretty much all we can say at the moment while proceedings are still on foot, but there is a sense of relief," she said.
Ms Gitanni said Flame was touched by Mrs Anderson's hug and her act of compassion in forgiving him.
"Very much so, it was quite obvious to everyone in the court," she said.
"It was a bit emotional, it's been a tough journey for him and a tough journey for everyone."
Flame will return to court in December to be sentenced.
Prosecutors alleged Flame had a healthy mind but fell into a psychosis that was sparked by his voluntary drug use, while his defence team argued he had undiagnosed schizophrenia at the time of the killing and should be found not guilty by way of mental impairment.
Crown prosecutor Gareth Christofi said the onus was on Flame's legal team to prove on the balance of probabilities he was substantially impaired during the incident if he was to be convicted of manslaughter and not murder.
During his summing up, Justice Richard Button told the jury if the defence of mental illness had not been established or all of the elements of murder had not been proven - including voluntariness or a mental ailment - they would need to reflect on the lesser charge of manslaughter.
"Manslaughter, in contrast to murder, is a form of homicide that is somehow reduced in severity, or committed in extenuating circumstances, or to be explained or excused in some limited way," he said.
"In contrast, I have also spoken of the special legal and personal condemnation that Australian society reserves for a person labelled as murderer.
"That is the value judgment you are asked to reflect carefully upon as part of the defence of substantial impairment if you come to it in your reasoning process.
"Has the accused tipped the balance ever so slightly in favour of your assessment being that in all of the circumstances of this case - in particular his mental state at the time of the fatal assault - he should be labelled as person who has committed the offence of manslaughter, not murder?"
Mathew Flame leaves the NSW Supreme Court in Sydney this week. Picture: NCA NewsWire / Christian Gilles
The court was told Flame's defence barrister John Stratton, SC, would not resist a verdict of manslaughter.
In his closing address to the jury after a three-week trial, Mr Stratton said Flame suffered another psychotic episode while on remand a month after fatally bashing Mr Anderson and was taken to hospital.
He reminded the jury that forensic psychiatrist Dr Kerri Eagle was asked in court about the two episodes and said: "I don't think it's likely that they had a different psychiatric cause".
Dr Eagle was then asked, "would it be a remarkable coincidence if those two events so close in time had different psychiatric causes?" to which she replied: "Yes, I think it would be extraordinary".
Flame was later diagnosed with treatment-resistant schizophrenia in July 2019, the jury was told.
Flame and Mr Anderson were close mates when they had a night of heavy partying at an event called "Awful Things" at the Burdekin Hotel in Darlinghurst where one of their friends threw up after taking ecstasy.
Crown prosecutor Gareth Christofi had told the court their group of friends caught an Uber back to a young woman's Queenscliff house when Flame started to hallucinate and Mr Anderson followed him to a small suburban park near Freshwater Beach and said, "I'm not going to leave you".
But instead of realising Mr Anderson was actually trying to help him while he was in a vulnerable state Flame set upon him and savagely beat him to death as shocked onlookers called police and Mr Anderson helplessly tried to defend himself, the court was told.
Baby drowns in tub after gran's fatal move
Premium Content Lies of a killer: 'Remorseless murderer learns fate
nsw crime
crime editors picks manslaughter nsw crime


Undersheriff Dave Ellis started his law enforcement career with the Post Falls Police Department in 1998. During that time he worked as a patrol officer, Field Training Officer, and as a member of the SWAT team. He was awarded the Officer of the Year award in 2000.
In 2002, Undersheriff Ellis joined the Spokane County Sheriff's Office. During that time, he has worked as a Patrol Deputy, Field Training Officer, the Regional Training Coordinator, Lead Patrol Procedures Instructor, Academy TAC Officer, Detective, Patrol Sergeant, Traffic Unit Sergeant, as well as Tactical Flight Officer and supervisor of the Air Support Unit.
Undersheriff Ellis currently oversees the Sheriff's Office Patrol, Investigative, and Intelligence Divisions, as well as the aviation, dive, and water rescue teams.
During his career with the Spokane County Sheriff's Office, he has been awarded the Life Saving Medal, Unit Merit award, and the Sheriff's Star award.
Undersheriff Ellis also serves as the Western Region Director for the Airborne Public Safety Association, serving the west coast of the Unites States and all of Asia. He is also a graduate of the FBI National Academy.


So many little things add up to taking great care of your little treasure. From bottle sterilisers, bibs, towels, play pens, mobiles, activity play centres to booster seats, high chairs, bouncers, walkers, portacots ect. BabyHood is a one stop shop for all your child care needs. Peruse at your leisure through our extensive range where we guarantee you will find endless high quality options that you and bub will fall in love with.


Hi, an AC-1 test is generally accurate. From my personal experience, they seem to be a little lower than what I expect. This is probably due to the hours spent sleeping. Your blood sugar generally lowers while sleeping. This, lowering your overall average.
Lastly, eat well and exercise. In the end, you'll be smarter and healthy then the average American.
Hey whats up i just took the test and i am thirty seconds away from the truth and positive or negative i am going to start a new leaf. thanks for all your help.
I just had my first AC1 today after being a diabetic for 2 years. My Dr. saw fit to test me today. Of all times...the last 3 months have been sooo stressful. Husband had had 5 surgeries since Dec. He's out of a job. So much more is going on, but I won't bore you with my life story. I just hope, I hope I have a decent reading.
What is a normal blood sugar?


text:
Now schools are told to learn from Polish example
Nicola Woolcock, Education Correspondent
July 5 2018, 12:01am, The Times
Polish teenagers are above the international average in science, maths and readingJACEK TURCZYK/PAP
Forget Singapore, Shanghai and Sweden, schools in Vietnam and Poland are the ones to emulate, according to education experts.
Sweden inspired the free school programme, Michael Gove's flagship policy when he was education secretary, and the schools minister Nick Gibb has imported the Shanghai maths mastery method to primary schools. Singapore is top globally in reading, maths and science.
However, a detailed report on the successes of the Vietnamese education system is being published by the Education Development Trust this week and the chairman of the Commons education committee has visited Poland to find out why its schools do so well.
Vietnam came eighth globally in science in the most recent Pisa results, the international comparisons of pupils aged 15 from more than 70 countries,…


Backstage News. Competitions. Tickets. Always First.
Join the Encore community and be the first to know about our competitions, ticket giveaways and partner offers as well as a weekly roundup of all the biggest stories from the West End and Broadway.


text:
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.tab;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.SystemClock;
import android.provider.Browser;
import android.test.InstrumentationTestCase;
import android.test.mock.MockContext;
import android.test.mock.MockPackageManager;
import android.test.suitebuilder.annotation.SmallTest;

import org.chromium.base.CommandLine;
import org.chromium.base.test.util.Feature;
import org.chromium.ui.base.PageTransition;

import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;

/**
 * Unittests for tab redirect handler.
 */
public class TabRedirectHandlerTest extends InstrumentationTestCase {
    private static final int TRANS_TYPE_OF_LINK_FROM_INTENT =
            PageTransition.LINK | PageTransition.FROM_API;
    private static final String TEST_PACKAGE_NAME = "test.package.name";
    private static Intent sYtIntent;
    private static Intent sMoblieYtIntent;
    private static Intent sFooIntent;
    private MockContext mContext;

    static {
        try {
            sYtIntent = Intent.parseUri("http://youtube.com/", Intent.URI_INTENT_SCHEME);
            sMoblieYtIntent = Intent.parseUri("http://m.youtube.com/", Intent.URI_INTENT_SCHEME);
            sFooIntent = Intent.parseUri("http://foo.com/", Intent.URI_INTENT_SCHEME);
        } catch (URISyntaxException ue) {
            // Ignore exception.
        }
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        CommandLine.init(new String[0]);
        mContext = new TestContext();
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testRealIntentRedirect() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.isOnNavigation());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, true, 0, 0);
        assertTrue(handler.isOnEffectiveIntentRedirectChain());
        assertFalse(handler.hasNewResolver(sMoblieYtIntent));
        assertTrue(handler.hasNewResolver(sFooIntent));
        assertFalse(handler.hasNewResolver(null));

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testEffectiveIntentRedirect() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.isOnNavigation());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 1);
        assertTrue(handler.isOnEffectiveIntentRedirectChain());
        assertFalse(handler.hasNewResolver(sMoblieYtIntent));
        assertTrue(handler.hasNewResolver(sFooIntent));
        assertFalse(handler.hasNewResolver(null));

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testNoIntent() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(null);
        assertFalse(handler.isOnNavigation());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, true, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        assertTrue(handler.hasNewResolver(sMoblieYtIntent));
        assertTrue(handler.hasNewResolver(sFooIntent));
        assertFalse(handler.hasNewResolver(null));

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testClear() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.isOnNavigation());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, true, 0, 0);
        assertTrue(handler.isOnEffectiveIntentRedirectChain());
        assertFalse(handler.hasNewResolver(sMoblieYtIntent));

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        handler.clear();
        assertFalse(handler.isOnNavigation());
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        assertTrue(handler.hasNewResolver(sMoblieYtIntent));
        assertTrue(handler.hasNewResolver(sFooIntent));
        assertFalse(handler.hasNewResolver(null));
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testNonLinkFromIntent() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.isOnNavigation());

        handler.updateNewUrlLoading(PageTransition.FORM_SUBMIT, false, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 1);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        assertTrue(handler.hasNewResolver(sMoblieYtIntent));
        assertTrue(handler.hasNewResolver(sFooIntent));
        assertFalse(handler.hasNewResolver(null));

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testUserInteraction() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.isOnNavigation());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, true, 0, 0);
        assertTrue(handler.isOnEffectiveIntentRedirectChain());
        assertFalse(handler.hasNewResolver(sMoblieYtIntent));

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        SystemClock.sleep(1);
        handler.updateNewUrlLoading(PageTransition.LINK, false,
                SystemClock.elapsedRealtime(), 1);
        assertFalse(handler.isOnEffectiveIntentRedirectChain());
        assertTrue(handler.hasNewResolver(sMoblieYtIntent));
        assertTrue(handler.hasNewResolver(sFooIntent));
        assertFalse(handler.hasNewResolver(null));

        assertTrue(handler.isOnNavigation());
        assertEquals(1, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testIntentFromChrome() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        Intent fooIntent = new Intent(sFooIntent);
        fooIntent.putExtra(Browser.EXTRA_APPLICATION_ID, TEST_PACKAGE_NAME);
        handler.updateIntent(fooIntent);
        assertFalse(handler.isOnNavigation());
        assertTrue(handler.shouldStayInChrome());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertTrue(handler.shouldStayInChrome());
        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 1);
        assertTrue(handler.shouldStayInChrome());

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        SystemClock.sleep(1);
        handler.updateNewUrlLoading(PageTransition.LINK, false, SystemClock.elapsedRealtime(), 2);
        assertFalse(handler.shouldStayInChrome());

        assertTrue(handler.isOnNavigation());
        assertEquals(2, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testNavigationFromUserTyping() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.isOnNavigation());
        assertFalse(handler.shouldStayInChrome());

        handler.updateNewUrlLoading(PageTransition.TYPED, false, 0, 0);
        assertTrue(handler.shouldStayInChrome());
        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 1);
        assertTrue(handler.shouldStayInChrome());

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        SystemClock.sleep(1);
        handler.updateNewUrlLoading(PageTransition.LINK, false, SystemClock.elapsedRealtime(), 2);
        assertFalse(handler.shouldStayInChrome());

        assertTrue(handler.isOnNavigation());
        assertEquals(2, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testIntentHavingChromePackageName() {
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        Intent fooIntent = new Intent(sFooIntent);
        fooIntent.setPackage(TEST_PACKAGE_NAME);
        handler.updateIntent(fooIntent);
        assertFalse(handler.isOnNavigation());
        assertTrue(handler.shouldStayInChrome());

        handler.updateNewUrlLoading(TRANS_TYPE_OF_LINK_FROM_INTENT, false, 0, 0);
        assertTrue(handler.shouldStayInChrome());
        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 1);
        assertTrue(handler.shouldStayInChrome());

        assertTrue(handler.isOnNavigation());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        SystemClock.sleep(1);
        handler.updateNewUrlLoading(PageTransition.LINK, false, SystemClock.elapsedRealtime(), 2);
        assertFalse(handler.shouldStayInChrome());

        assertTrue(handler.isOnNavigation());
        assertEquals(2, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    @SmallTest
    @Feature({"IntentHandling"})
    public void testRedirectFromCurrentNavigationShouldStayInChrome() {
        /////////////////////////////////////////////////////
        // 1. 3XX redirection should stay in Chrome.
        /////////////////////////////////////////////////////
        TabRedirectHandler handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.shouldStayInChrome());

        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 0);
        handler.setShouldStayInChromeUntilNewUrlLoading();

        handler.updateNewUrlLoading(PageTransition.LINK, true, 0, 0);
        assertTrue(handler.shouldStayInChrome());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        /////////////////////////////////////////////////////
        // 2. Effective redirection should stay in Chrome.
        /////////////////////////////////////////////////////
        handler = new TabRedirectHandler(mContext);
        handler.updateIntent(sYtIntent);
        assertFalse(handler.shouldStayInChrome());

        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 0);
        handler.setShouldStayInChromeUntilNewUrlLoading();

        // Effective redirection should stay in Chrome.
        handler.updateNewUrlLoading(PageTransition.LINK, false, 0, 1);
        assertTrue(handler.shouldStayInChrome());
        assertEquals(0, handler.getLastCommittedEntryIndexBeforeStartingNavigation());

        /////////////////////////////////////////////////////
        // 3. New URL loading should not be affected.
        /////////////////////////////////////////////////////
        SystemClock.sleep(1);
        handler.updateNewUrlLoading(PageTransition.LINK, false, SystemClock.elapsedRealtime(), 2);
        assertFalse(handler.shouldStayInChrome());
        assertEquals(2, handler.getLastCommittedEntryIndexBeforeStartingNavigation());
    }

    private static class TestPackageManager extends MockPackageManager {
        @Override
        public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) {
            List<ResolveInfo> resolves = new ArrayList<ResolveInfo>();
            if (intent.getDataString().startsWith("http://m.youtube.com")
                    ||  intent.getDataString().startsWith("http://youtube.com")) {
                ResolveInfo youTubeApp = new ResolveInfo();
                youTubeApp.activityInfo = new ActivityInfo();
                youTubeApp.activityInfo.packageName = "youtube";
                youTubeApp.activityInfo.name = "youtube";
                resolves.add(youTubeApp);
            } else {
                ResolveInfo fooApp = new ResolveInfo();
                fooApp.activityInfo = new ActivityInfo();
                fooApp.activityInfo.packageName = "foo";
                fooApp.activityInfo.name = "foo";
                resolves.add(fooApp);
            }
            return resolves;
        }
    }

    private static class TestContext extends MockContext {
        @Override
        public PackageManager getPackageManager() {
            return new TestPackageManager();
        }

        @Override
        public String getPackageName() {
            return TEST_PACKAGE_NAME;
        }

    }
}


Dr. Cavoukian is recognized as one of the world's leading privacy experts. Appointed as the Information and Privacy Commissioner of Ontario in 1997, Dr. Cavoukian served an unprecedented three terms as Commissioner. During that time, she elevated the Office of the Information and Privacy Commissioner from a novice regulatory body to a first-class agency, known around the world for its cutting edge innovation and leadership. There she created Privacy by Design, a framework that seeks to proactively embed privacy into the design specifications of information technologies, networked infrastructure and business practices, thereby achieving the strongest protection possible. In October 2010, regulators at the International Conference of Data Protection Authorities and Privacy Commissioners unanimously passed a Resolution recognizing Privacy by Design as an essential component of fundamental privacy protection. This was followed by the U.S. Federal Trade Commission's inclusion of Privacy by Design as one of three recommended practices for protecting online privacy – a major validation of its significance.
Dr. Cavoukian's expertise has been recognized in many ways. She was ranked among the top 25 Women of Influence, recognizing her contribution to the Canadian and global economy; named one of the top 100 City Innovators Worldwide by UBM Future Cities for her passionate advocacy of Privacy by Design; chosen as one of the 'Power 50' by Canadian Business magazine for her tireless efforts as a privacy champion; awarded an Honorary Doctor of Laws from the University of Guelph; selected for Maclean's Magazines 'Power List' of the top 50 Canadians; picked as one of the top 10 women in data security, compliance, and privacy you should follow on Twitter; recognized as a Founder of Canada's Digital Economy at IdentityNorth 2016; named as one of the Top 100 Leaders in Identity, 2017; and most recently, Dr. Cavoukian was awarded the Meritorious Service Medal for her outstanding work on creating Privacy by Design and taking it global.
This event is free to attend and does not require advanced registration. If you have any questions, please contact researchinstitute@michener.ca.


This Conflict and Tension 1918-39 book is written specially to match the new 2016 AQA GCSE History specification, and is developed by an experienced head of history and an author with senior examining experience. Carefully designed features such as Sources, Practice Questions and Study Tips help students prepare for the new AQA exams.
Conflict and Tension 1918-1939 Revision Guide is part of the popular Oxford AQA GCSE History series. This guide offers the clear revision approach of Recap, Apply, and Review and step-by-step exam practice strategies for all AQA question types, giving you the confidence that students will succeed in their exams.


text:
Q: Upload files with Phonegap: File Transfer Error: request body stream exhausted So what I am trying to do is to replicate the process of uploading images to my server (POST method) in PhoneGap using fileTransfer.
For testing purposes I used Chrome's Postman Rest client and this is the configuration that works:

and here is the JS code for Phonegap:
// imageData is the url to image (file:///var/mobile/...)
var options = new FileUploadOptions();
options.fileKey = "media";
options.fileName=imageData.substr(imageData.lastIndexOf('/')+1);
options.mimeType="image/jpeg";

var params = new Object();
params.category = "/api/v1/category/testcat/";
params.message = "Hello from iOS";
options.params = params;

var ft = new FileTransfer();
ft.upload(imageData, encodeURI("http://mydomain.com/api/v1/post/"), win, fail, options);

// win, fail

And the response:
2014-03-25 23:30:46.582 StarterApp[6103:6107] FileTransferError {
    body = "";
    code = 3;
    "http_status" = 0;
    source = "file:///var/mobile/Applications/3FEF7630-C089-4DF3-9618-EF9EEE0AD6FE/tmp/cdv_photo_002.jpg";
    target = "http://mydomain.com/api/v1/post/";
}
2014-03-25 23:30:46.584 StarterApp[6103:6107] File Transfer Error: request body stream exhausted

Any help would be VERY very much appreciated as I completely stuck:(

A: Please follow the code mentioned below :
var options = new FileUploadOptions();
options.headers = {
Connection: "close"
}
var options = new FileUploadOptions();
options.chunkedMode = false;
options.fileKey="image";
options.fileName=global_URI.substr(global_URI.lastIndexOf('/')+1)+'.jpg';
options.mimeType="image/jpeg";
var params = new Object();
options.params = params;
params.user_id =userID;
params.group_id=groupId;
var url=encodeURI(ipAddress +"/add_content.php");
var ft = new FileTransfer();
ft.upload(global_URI,url,win, fail, options);

Also let me know whether you are working for ANDROID or iOS? Because you may face some issues in the Android code.

redpajama_set_name: RedPajamaStackExchange


Nintendo's Digital Event for E3 2015 kicked off with the newest entry in the Star Fox franchise, Star Fox Zero. Why Nintendo failed to mention that Platinum Games was working on the campaign during the event itself can be answered with "because it's Nintendo." The company doesn't always have a pulse on what would make its most dedicated fans enthused. That said, this footage for the game looks absolutely action=packed and exciting. I'm eager to get my hands on the game when it releases this holiday season.


The term "DVR" represents digital video recorder. The Cars and truck DVR is the best choice for those who wish to observe their lorry versus accidents or theft. Really, it is not a brand-new innovation as well as it is re-designed by the professionals in order to make it suitable for the safety and security of automobiles, as well as for various other objectives. Complying with are some benefits of setting up a DVR system in your vehicle.
The digital video recorders made by a wonderful car DVR factory can be an excellent gift for the emergency cars, truckers, and especially for the cab driver, because they need to pick and go down different individuals around the day. A motorist may find him/herself in a dangerous circumstance when getting an alcoholic guest late in the evening. In these circumstances the digital video clip recorders can provide a bit of added safety to the taxi-cab chauffeurs. A motorist will have the ability to record, or demonstrate full scene if he/she faces any type of kind of threatening actions of the passenger. They can likewise utilize it as the strong evidence if more examination might occur.
One more most common and also obvious use the Automobile DVR is for the claims of accidents. Nowadays there are too many individuals that are making use of electronic video recorders in their automobiles that can record each and also whatever throughout their journey, so that if any kind of mishap happens, they can use this video clip as evidence. These cameras can play a huge function to secure you from the wrong complaints due to an accident, or overpriced cases from the insurance provider.
These recorders made by an excellent car DVR factory record the total info when a crash occurs like the problem of the road, weather condition at the time of the mishap, what the driver is really doing at the time of the collision, and traffic tons. All this things is extremely handy to the cops, as well as other investigative teams to discover who is the in charge of a crash.
An additional significant benefit of the electronic cars and truck recorders is that, after mounting this tool in the car the driver will begin to drive extra meticulously, given that he/she is comprehensively being kept an eye on by the electronic camera. Typically, most of these gadgets have the capacity to record whatever while driving concerning motorist's tasks also.
Gradually, it will make the driver more conscientious, as well as it can likewise establish some good driving habits. Certainly, if all the vehicle drivers drive their cars according to the website traffic policies, and guidelines, the rate of mishaps in addition to insurance cases will definitely lower. Generally, the electronic vehicle recorders come in extremely small dimensions, so everybody can easily place them on the windscreen of the vehicle, or on the control panel. Whether you own a vehicle, or drive a lorry for work, or simply wish to examine and also capture the fascinating things which are occurring when traveling, this phenomenal tool will certainly constantly come in handy for you. The digital vehicle recorders made by a great car DVR factory are ending up being a lot more popular due to their distinct and extraordinary advantages.
Click http://www.ctsjing.com to read more infomation about car DVR factory.


Planes, trains, and…er…trains to the Douro!
I went on holiday, years ago, to Sardinia. For one reason or another we spent the whole time driving round the island trying to "do Sardinia" in a week. Pinging it from Cagliari to San Pietro, up to Alghero, and across to Porto Cervo. I spent more time in the car than outside. And on the drive back to Cagliari I went a funny shade of green and had to take a breather. Ever since I've struggled with car-sickness as soon as the roads get a bit bendy. My first trip to the Douro Valley in Northern Portugal nearly killed me!
But there's a secret travelling weapon up the Douro's sleeve. There's a direct train from Porto to Pinhão that takes about the same time as driving, is straight as a die, and you can sit back and enjoy the scenery as you whistle down the river valley and alight at this emmacculately tiled (big thing round here apparently) village train stations. And if I remember rightly it's near as damn it €10 each way.
Which tourist wouldn't want to have a look at this bugger?
Time it right and you can be stress free, chilling out on a boat trip through the Quinta's within a couple of hours of leaving your place in Porto. I am sorry to the taxi drivers of Northern Portugal, but it's the way forward!


This book includes five tales of dragons. The book has great illustrations of the young St. Petersburg artist Elena Zhukovsky. In her drawings come to life fire-breathing lizards scatter hundreds of sparks fireworks and the real magic takes place!
English writer E. Nesbit par with Lewis Carroll and Clive S.Lyuisom is considered one of the founders of modern children's literature, fairy tale, and her witty, lively and exciting imagination been recognized as a classic fairy tale.
The Ice Dragon / Ледяной Дракон - купить книгу в США. В нашем магазине вы найдете: книги, детские книги и игрушки, товары для дома, именные сувениры, русские сувениры и подарки.


text:
Eugyra extrosa is een zakpijpensoort uit de familie van de Molgulidae. De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 1984 door Nishikawa.

Molgulidae

redpajama_set_name: RedPajamaWikipedia


text:
Q&A with Gordie Haakstad
Search the The Interlake Spectator
Herald-Tribune staff
More from Herald-Tribune staff
Published on: December 5, 2019 | Last Updated: December 5, 2019 5:29 PM EST
Gordie Haakstad is a filmmaker and co-owner of The Distillery Film Company. Beauchamp Photography
An award-winning feature film writer and director, Gordie Haakstad's directorial debut, "Abel's Field," starring Kevin Sorbo and Samuel Davis, was released by Sony Pictures Home Entertainment in 2013. It garnered Best Film, Best Feature, Best Actor, and Best Director at The Attic Film Festival. In 2019, his short film, "Aeternitas," won him the Alberta Motion Picture Industry Association's Rosie Award for Best Director in the Short Film category and went on to screen at multiple Oscar-qualifying film festivals.
Gordie gained his directing background as a filmmaker specialized in cinematography and editing. He began his education at the University of Southern California's School of Cinema and Television where he graduated Magna Cum Laude from the prestigious Production Program.
Following school, Gordie interned under cinematographer Don Burgess ("Forrest Gump," "Spider-Man," "Cast Away") on the set of "Terminator 3: Rise of the Machines." He kept involved with academia by teaching filmmaking at the New York Film Academy—as well as developing much of the curriculum for the cinematography and editing departments. After relocating to Canada, Gordie developed curriculum and taught at Grande Prairie Regional College for three years and at Edmonton's film collective, FAVA, for two years.
He continued his creative pursuits by helping create a number of industrial, short, and feature-length projects. Notably, Gordie directed the award-winning short films "Anyone Out There," "The Souvenir" and "Dating Bites" and was the cinematographer behind the award-winning "11 Minutes Ago"— a feature-length film that shot entirely in one day. His most recent screenplay, "Ashes and Dust," was an Alberta Foundation for the Arts grant recipient.
In 2017, Gordie and his filmmaking and business partner, Chris Beauchamp, created The Distillery Film Company Ltd. Their creative talents and narrative insights have led to dynamic projects, specifically in narratives, documentaries, music videos and branded content.
Gordie continues to write and direct in Edmonton, Alberta, while maintaining filmmaking ties in Grande Prairie; Los Angeles, CA; and Austin, TX.
Q: It is Tuesday night, what are you having for dinner?
A: Hopefully, I'm helping cook something out of the deluge of Jamie Oliver books my girlfriend, Robin, owns. It's extra tasty if we're making curry, poke bowls, okonomiyaki (highly recommended) or a pasta. However, if I'm busy getting a production ready, it's all too often a burger.
Q: If you didn't do what you do for a living, what would you be?
A: Prior to getting into USC's film program, my backup plan was to become an aeronautical engineer. At some point after graduation—and after grinding a career in the film industry for a while—I applied and was accepted into a pre-med program to become a doctor. But then I got the offer to direct my first feature, "Abel's Field," and haven't looked back.
Q: What person has influenced your life the most?
A: My dad passed away over 10 years ago, but he was a strong role model to myself and many others. He was a great example of how passion, perseverance, and kindness will keep a person fulfilled and happy.
Q: What is your favourite sport?
A: I was heavily influenced by my dad with my love for baseball and hockey, and growing up we were a golfing family. My favourite teams are the Oilers, Mariners, Dodgers, and the USC Trojans. Since university, I took up ultimate frisbee and more recently disc golf. I'm aware that I'm not picking a single favourite, but here we are.
Q: Favourite movie of all time?
A: Asking a filmmaker his favourite movie is fraught with discussion. Again I cannot pick just one and I have many more beyond this [quite fluid] Top 10 list: "LA Confidential," "Children of Men," "Willy Wonka and the Chocolate Factory," "Who Framed Roger Rabbit," "Singin' in the Rain," "Mary Poppins," "Beauty and the Beast" (1991), "Amélie," "Wall-E" and "The Silence of the Lambs."
Q: What's your biggest pet peeve?
A: It still irks me to see abbreviations and bad spelling, punctuation and grammar in emails and texts, especially business-related emails. Though I don't use them often, I'd much rather see an emoji than "gr8."
Q: What's your proudest moment?
A: A lot of my pride comes from seeing productions come together that I've had a hand in. It was terrific to screen "Abel's Field" at Paramount Studios to a full audience—representing hundreds of people and countless hours of work—or seeing a hill full of happy people singing "Alberta Bound" at the finale of the first Bear Creek Folk Fest, or applauding our cast on Saturday's showing of "The Grapes of Wrath" after they delivered another stellar performance. Winning the Rosie for Best Director for "Aeternitas" this last year was pretty cool too.
Q: What's your favourite TV show?
A: Growing up, my favourite TV show was "MacGyver," hands down. Watching it now with a more developed eye, well… Two of the best episodic shows I have ever seen are "The Wire" and "Better Call Saul." The first 2-3 seasons of "24" kept me glued to my seat, I love the cleverness of "Southpark" and the dry humor of "The Office," and "Stranger Things" hits all the right notes.
Q: If you could have one superpower, what would it be?
A: At first I was going to say flying, but I think telekinesis is the way to go. Not only could I do some Jedi-like tricks, arguably I could make a hoverboard.
Q: What's the one thing you haven't done that you would love to do?
A: I was fortunate enough to sail quite a bit whilst living in California, but I'd like to take that further and circumnavigate the world in a sailboat.
Q: If we're buying, you're having…?
A: I'll take a large, assorted sushi platter or a medium-rare ribeye with sides and fixings, please.
Q: Last book you couldn't put down?
A: "How To Better Work With Super Glue." There's a wonderfully creative author named Jasper Fforde and his Thursday Next series is fantastic, starting with "The Eyre Affair." His recent novel, "Shades of Grey" (no, not that series), is also quite good.
Q: If an actor could play you in a movie, who would it be?
A: I'm sure Tom Hanks could play anyone; but for appearance, perhaps a 30s-40s Gene Wilder.
Q: What is the best thing about Grande Prairie?
A: There is far more culture and things to do than what many people give it credit for. I've been heavily involved in the Bear Creek Folk Fest, Reel Shorts Film Festival, the film community, and the live theatre scene. I am still impressed by what showcases here, both in the strong talent within the region and the amazing events that are put on by locals.
Q: What do you find most rewarding about filmmaking?
A: It's such a unique art form because it combines a variety of disciplines, like photography, music, theatre, fashion, and architecture, to name a few. As such, it also requires immense collaboration of talent and the melding of creativity and technology. Overall though, all of these elements come together for the sole purpose of telling an emotional story that can truly affect people, and that's what I love to do.
Q: What are some of your short-term and long-term goals with The Distillery Film Company?
A: Chris Beauchamp and I started The Distillery about two-and-a-half years ago. We're proud to already have a variety of projects in our portfolio, including award winning narratives, documentaries, and commercials. Short term, we're aiming to expand the scope and variety of our branded (i.e., commercial) content while continuing to create narratives and documentaries. Long-term, we're hoping those two aspects swap and we are able to push forward more self-produced projects while maintaining a well-established branded content arm of our company.
Q: If you could go anywhere in the world on a holiday, where would you go and who (living or dead) would you take with you?
A: I'd probably choose someplace warm on the beach, perhaps the Caribbean. While I'd be most intrigued to pick the brains of either Albert Einstein or Abraham Lincoln, I have a hard time seeing either of them—especially the latter—lounging in the sand with a piña colada.
Q: What do you do to relax?
A: If I'm at home and I want to be completely lazy, I'll watch a movie. I'll take an old favourite (sometimes a categorically bad movie) and relive all the moments that made me enjoy it in the first place. To clear my head, I enjoy painting; it's hard for me to focus on anything else. However, my best form of relaxation is sailing on the open ocean.
Q: What are your words to live by?
A: Two of my favourites are "Wisdom begins in wonder" (Socrates) and "Try not. Do or do not. There is no try" (Yoda), though the other words I hold dear are kindness, creativity, passion and kindness.
Storm set to take on Czech Republic in exhibition match	 Suspects sought in armed robbery at Beaverlodge Tavern
Students, staff enjoy meal served by volunteers
The "man in red" makes season bright for Gimli children
Working together to save Lake Winnipeg
Fisher Branch Collegiate student living life to the fullest
© 2020 The Interlake Spectator. All rights reserved.


"Originally health services were organized to respond to and treat acute illnesses. Today, the growing need to treat chronic conditions requires a different approach," says Zsuzsanna Jakab, WHO Regional Director for Europe. "The patient–doctor relationship is changing fundamentally: the patient is increasingly considered an 'expert by experience' whose active participation in decision-making is vital".
Chronic diseases are now the biggest cause of death and disability worldwide – including cardiovascular diseases, cancer, diabetes, obesity and chronic respiratory diseases – and account for an estimated 86% of deaths and 77% of the disease burden in the European Region, as measured by disability-adjusted life-years. This development has brought about a fundamental shift in health systems and health care and thus in the roles of patients. The focus on patient self-care practices has grown substantially, and much care and treatment takes place at home, leaving patients and family with greater responsibility for their own health. "This critical shift in approach is appropriate for 21st-century health and social care, in which patients enjoy greater personal control by participating in their own treatment" says Zsuzsanna Jakab.
making information more easily available and understandable.
Ultimately, patient empowerment changes the position of people with long-term health conditions from a cost to health services to recognizing them as a resource. Harnessing their unique set of experiences enables them to support others through volunteering or paid employment and provides a different perspective to that of health professionals. People who are actively managing their own condition and have made positive life changes can be very effective role models.
The WHO Regional Office for Europe is part of the European Network on Patient Empowerment (ENOPE), a network of organizations committed to strengthening health promotion and disease prevention initiatives aimed at empowering patients. ENOPE facilitates the exchange of experience and advocates for patient involvement and patients' rights. This network aims to motivate European countries to engage in initiatives for empowering citizens and patients at the level of health systems and services as well as in communities. This is in accordance with the spirit of Health 2020, the new European policy for health, which calls for patient-centred health care systems committed to empowering patients.
This Conference, taking place on 11–12 April 2012, is organized in close technical collaboration with the WHO Regional Office for Europe, under the auspices of the Danish Presidency of the Council of the European Union, together with Denmark's Ministry of Health, the Danish Committee for Health Education, the Careum Foundation Switzerland and the Expert Patient Programme, England.


Grow healthy and delicious food at home, right outside your door. There's nothing quite like going outside and grabbing some toppings for your salad, or better yet the whole salad. Learn how to garden well, and grow those salad vegetables, by reading this article.
Gardening can be a relaxing and very rewarding hobby, providing you with plenty of fresh produce grown with your own hands. Serving a meal that includes the vegetables and fruit you grew in your own garden will leave you feeling satisfied. Use the advice in this article to optimize your efforts in the garden and yield amazing results.


text:
Policing / Studies and Statistics
Homicides continued to rise during 2021
by Elizabeth Berger · Published Jan 27, 2022 9:21 am · Updated Feb 11, 2022 1:19 pm
As many people have reported, there was a drastic increase in violent crime (particularly driven by homicide increases) from 2019 to 2020. Not surprisingly, people are interested to know whether this pattern continued into 2021, and if so, to what extent.
A recent report published by the Council on Criminal Justice (CCJ) attempts to shed light on this by collating information on crimes occurring in 2021 from a subset of 27 United States cities. Trends for individual crime types presented in the report do coincide with other estimates in terms of the overall pattern witnessed in 2021. However, the sample size of 27 cities is very small, meaning that their estimates (especially for homicide) are smaller in magnitude and likely do not reflect the full extent of the problem.
There were a total of 27 cities that had crime data posted online, which the authors used to gather counts of different crimes. However, not all cities reported on all types of crime, so many crime types are estimated based on even smaller subsets of cities. For example, only 11 cities had data posted regarding domestic violence cases (this was the smallest analytic sample), whereas 24 cities had data available on robberies (this was the largest analytic sample).
It is unclear exactly where the data are coming from. The authors mention it came from city's police department websites and open data portals, but there are no links to specific sections of websites that were used. The reason why this matters is because there are different ways that police departments tabulate and display their data, so it is hard to know exactly how estimates were computed for each city. For example, weekly CompStat reports are often displayed on a department website that present a snapshot of the crime data at a specific point in time, but these numbers are subject to change as cases are sometimes updated or reclassified. In addition, these same departments will usually have some type of annual report with the "official" numbers, which sometimes differ from the initial CompStat numbers. Thus, it is important to note that preliminary police department data as reported on department websites is not always finalized and can be somewhat dynamic in this regard.
The authors collected data from individual police department and city websites because the official data for the full year of 2021 are not available. While this approach makes sense on its face, it also has drawbacks — importantly, only 27 cities had crime data posted online for the full year of 2021, so this inclusion criteria meant the sample was severely restricted.
Another way to look at this is to examine data that encompasses more cities but fewer months of data. This can be done by looking at year-to-date (YTD) comparisons, which compare a specific time period from one year to the same time period from another year. Thus, even though national-level data may not be available through the end of 2021, YTD comparisons can be used to effectively examine the national 2021 data that is available. For example, the FBI released quarterly data that showed YTD numbers for the first three quarters of 2021 (i.e., through September) alongside the YTD numbers for the first three quarters of 2020. Data are available for download and can be examined, which we have done briefly here.
Although the FBI data does not include the full year, it does include 159 cities — a much larger sample size than the 27 included in the CCJ report. With such a large difference in the number of cities, there are many more crimes reported in the FBI data and the coverage is more wide-ranging across the United States. This creates a larger sample size and also increases the representativeness of the sample. In other words, the FBI data is much more likely than the CCJ data to be representative of the nation as a whole. Thus, it is probably the more accurate estimate in terms of the "big-picture" look regarding 2021 crime numbers.
That being said, it's important to think about how these numbers can vary across sources. Clearly, the CCJ data is not representative of the United States as a whole, yet their findings do slightly mirror those seen in the FBI trends. When comparing the two sources though, one of the most notable distinctions is that the CCJ numbers appear to be vastly undercounted despite the fact that they represent the full year of data. This is likely due to the overall small sample size, so it makes sense that numbers would be lower. Otherwise, the CCJ data are actually following generally the same pattern depicted by the FBI data, but they are probably not capturing the full magnitude of the problem.
For example, the CCJ report says that homicides increased by an average of 5.4% (+218 murders in the 24 cities that provided data). But the FBI estimate is more than double that, showing an average increase of 12% as of September 2021 (+461 murders among the 159 cities). However, both estimates do show generally similar findings: i.e., they both saw an upward trend from 2020 to 2021, though the increase was smaller than the 29% increase seen from 2019 to 2020.
In addition, both data sources showed that homicide rates are the highest they have been in a decade, yet not quite as high as rates witnessed in the 1990s. The CCJ report gives high credence to this finding, emphasizing that homicide numbers are still low compared with the 1990s. Yet, the CCJ numbers for homicide specifically appear to be undercounted by nearly half, so is it possible the problem is worse than they think it is? In addition, regardless of undercounting, the report seems to be minimizing the fact that murders increased by nearly 30% from 2019 to 2020, a spike that we have not yet recovered from. Murder rates are continuing to increase, evidenced in both sources of data (albeit to a lesser extent in the CCJ data), which is concerning especially after the large increase seen last year. This is not something to be minimized.
When it comes to other offenses, data sources again found similar trends, but the CCJ numbers are lower than the FBI numbers. For example, both sources revealed a decrease in burglary and larceny offenses from 2020 to 2021. However, the estimates differ slightly: the data from CCJ's study found that burglary and larceny offenses decreased by 6% and 1%, while the FBI data shows a decrease of 8.6% and 2% (respectively). Both reports also showed a fairly sizable increase in motor vehicle theft, which increased by 14% per the CCJ report and 16.5% per the FBI data. So essentially, the data sources show similar findings, but the FBI numbers are slightly inflated compared to those reported by CCJ. Interestingly, this disparity seems more prevalent to homicide specifically.
Though, it is also important to note that some large high-crime cities are not included in either source of data, which could also affect the accuracy of both estimates. For example, data from New York City are not reported in either dataset. Though, preliminary numbers from news reports show that New York saw 485 homicides in 2021, a 4% increase from the 468 tallied in 2020. Similarly, Oakland CA is also excluded from both datasets, despite the fact that the city saw 134 homicides in 2021, the highest count since 2006.
Taken together, one must wonder why it is so difficult to obtain accurate crime data. Perhaps part of the reason is due to the burden required by law enforcement to clean and submit the data, or perhaps it is purposefully not reported for reasons unknown. Either way, it seems that data from some of the largest cities reflect similar trends to those seen at the national-level, though they likely do not capture the true magnitude of the problem.
Tags: crime datacrime ratescrime trendshomicidepolicepolice datapolicingUCRuniform crime reportviolent crime
Issues Select Category Academia Appeal Bail Blog Cases Civil Suits Clemency Collateral Consequences Congress Constitution Counsel Criminal Procedure Death Penalty Drugs Equal Protection Evidence Federal Courts Federalism Firearms First Amendment General Habeas Corpus Humor Immigration International Journalism Judicial Selection Judiciary Jury Trials Juveniles Mental State Military National Security News Scan Notorious Cases Off Topic Policing Policy Politics Polls Prisons Probation and Parole Prosecutors Public Order Rehabilitation Schools Search and Seizure Self-defense Sentencing Sex Offenders Social Factors State Courts Studies and Statistics Terrorism U.S. Supreme Court Uncategorized USDoJ Use of Force Victims' Rights
Archives 2020 to present
ARCHIVES 2006 to 2019
Criminal Justice Legal Foundation Ⓒ All Rights Reserved.


text:
Q: Give Priority to SFTP Remote Directories Using single SFTP channel I need to process two remote directories lowpriority and highprioiry but lowpriority files pick after the highpriority .
please let know how handle multiple directories in SFTP inbound adapter with single channel ?
We can do using https://docs.spring.io/spring-integration/reference/html/sftp.html#sftp-rotating-server-advice Rotation Service advice  in Spring 5.1.2 Release but what about 4.3.12 Release.?

A: It is not available in 4.3.x; the feature was added in 5.0.7.
It needs infrastructure changes so it will be hard to replicate with custom code  in 4.3.x.
You could use two adapters and stop/start them as necessary.
EDIT
Here is one solution; the advice on the primary flow starts the secondary flow when no new files are found. The secondary flow runs just once, then restarts the primary flow; and the cycle continues...
@SpringBootApplication
public class So54329898Application {

    public static void main(String[] args) {
        SpringApplication.run(So54329898Application.class, args);
    }

    @Bean
    public IntegrationFlow primary(SessionFactory<LsEntry> sessionFactory) {
        return IntegrationFlows.from(Sftp.inboundAdapter(sessionFactory)
                .localDirectory(new File("/tmp/foo"))
                .remoteDirectory("foo/foo"), e -> e
                        .poller(Pollers.fixedDelay(5_000, 5_000)
                                .advice(startSecondaryAdvice())))
                .channel("channel")
                .get();
    }

    @Bean
    public IntegrationFlow secondary(SessionFactory<LsEntry> sessionFactory) {
        return IntegrationFlows.from(Sftp.inboundAdapter(sessionFactory)
                .localDirectory(new File("/tmp/foo"))
                .remoteDirectory("foo/bar"), e -> e
                        .poller(Pollers.trigger(oneShotTrigger(sessionFactory)))
                        .autoStartup(false))
                .channel("channel")
                .get();
    }

    @Bean
    public IntegrationFlow main() {
        return IntegrationFlows.from("channel")
                .handle(System.out::println)
                .get();
    }

    @Bean
    public Advice startSecondaryAdvice() {
        return new StartSecondaryWhenPrimaryIdle();
    }

    @Bean
    public FireOnceTrigger oneShotTrigger(SessionFactory<LsEntry> sessionFactory) {
        return new FireOnceTrigger((Lifecycle) primary(sessionFactory));
    }

    public static class StartSecondaryWhenPrimaryIdle extends AbstractMessageSourceAdvice
            implements ApplicationContextAware {

        private ApplicationContext applicationContext;

        @Override
        public boolean beforeReceive(MessageSource<?> source) {
            return true;
        }

        @Override
        public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
            this.applicationContext = applicationContext;
        }

        @Override
        public Message<?> afterReceive(Message<?> result, MessageSource<?> source) {
            if (result == null) {
                System.out.println("No more files on primary; starting single shot on secondary");
                this.applicationContext.getBean("primary", Lifecycle.class).stop();
                this.applicationContext.getBean("secondary", Lifecycle.class).stop();
                this.applicationContext.getBean(FireOnceTrigger.class).reset();
                this.applicationContext.getBean("secondary", Lifecycle.class).start();
            }
            return result;
        }

    }

    public static class FireOnceTrigger implements Trigger {

        private final Lifecycle primary;

        private volatile boolean done;

        public FireOnceTrigger(Lifecycle primary) {
            this.primary = primary;
        }

        @Override
        public Date nextExecutionTime(TriggerContext triggerContext) {
            if (done) {
                System.out.println("One shot on secondary complete; restarting primary");
                this.primary.start();
                return null;
            }
            done = true;
            return new Date();
        }

        public void reset() {
            done = false;
        }

    }

}


Tanzania is located in East Africa and has a population of 30 million. Its political capital is Dodoma, while its main commercial city is Dar es Salaam. As Kiswahili is our official language, it is used as the medium of instruction in primary schools and is also taught as a subject.


Support for interprocess communication in a framework that allows different communication strategies to be used in a uniform way. Some simple strategies, such as one that sends serialized objects via sockets, are included.
The framework specifies certain entities only a in very general way. Communication strategies that are meant to be interchangeable must therefore follow shared conventions - not enforced by the framework - chiefly concerning the objects used to represent "destinations" and implementations of the InputMessage interface.
Note that a "destination" need not contain all the information needed for communication with the corresponding agent. Instead, the destination may be merely a name, perhaps as a String, with the rest of the information stored elsewhere.
A HashMap implementation of the DestinationTable interface.
A minimal implementation of InputMessage.
A MessageListener that enqueues messages for processing in a separate thread of the listener's own.
An object that determines how various IPC operations are performed.
An object that can send and receive.
A mapping from destination names to the data needed to establish connections with the corresponding agents.
A strategy that just throws an exception whenever the agent tries to send.
An object that represents an incoming message.
The exception thrown by IPC methods.
An object that is notified when a message is received.
An ObjectStream communication strategy for I-X agents.
An XMLObjectStream communication strategy for I-X agents.
A CommunicationStrategy that provides "connections" analogous to sockets and a visible mapping from destination names to the data needed to establish a connection.
A version of ObjectStreamCommunicationStrategy that encodes the message contents in XML rather than serializing.
The communication strategy used by the static methods of this class that do not have a communication strategy as a parameter.
Listeners that can observe messages as they're sent and received.
Evaluate the description of a ParameterizedCommStrategy.
Returns the communication strategy used by the static methods of this class that do not have a communication strategy as a parameter.
Returns a CommunicationStrategy based on a name, name, that is either an expression containing a colon, a special abbreviation or the name of a class.
Sends an object to the specified destination using the global communication strategy.
Sets the communication strategy used by the static methods of this class that do not have a communication strategy as a parameter.
Does what is required for this agent to receive messages sent using the global communication strategy.
Sets the communication strategy used by the static methods of this class that do not have a communication strategy as a parameter. The strategyName is interpreted by the makeCommunicationStrategy(String) method.
Evaluate the description of a ParameterizedCommStrategy. The syntax is name:args where name is the name of a ParameterizedCommStrategy and args is a comma-separated list. The interpretation of the arguments is up to the parameterized comm strategy, but usually the arguments will be comm strategy names or expressions. Some strategies that expect more than one strategy as parameters use the syntax default:strategyExpr to say which strategy is the default.
There's an obvious problem if one of the parameter strategies expects muliple parameters of its own. For example, "tracing:dispatching:a,b,c" will give the tracing strategy parameters "dispatching:a", "b", and "c". If this becomes a problem in practice, we'll define a parser that can handle parenthesized subexpressions.
Sends an object to the specified destination using the global communication strategy. The agents who are sent these objects must be using a compatible strategy. The recipient should in effect get a copy of the object that was sent, but the exact relationship between the two objects depends on the communication strategy.
Does what is required for this agent to receive messages sent using the global communication strategy. Here the "destination" is the agent in which setupServer was called, not a remote agent. The (remote) agents sending messages to the server must be using a compatible communication strategy. Note that setupServer does not assume that all messages are "sending an object" in the sense of the sendObject method.
The destination is recorded and will be used by the sendObject method to fill in the sender-id of Sendable objects.