[ad_1]
[ad_2]
Rick
Source link
Humor | ReportWire publishes the latest breaking U.S. and world news, trending topics and developing stories from around globe.

[ad_1]
The post Sleep Walking At Walmart appeared first on People Of Walmart.
[ad_2]
Editor1
Source link

[ad_1]
Anderson sends us a bit of C# code that does the simple job of removing multiple spaces, i.e. it converts “A B” to “A B”. And, much to my surprise, I learned something about C# from reading this code.
private string RemoveDoubleSpaces(string strName)
{
string newStrname = null;
for (int i = 0; i < strName.Length; i++)
{
if (i > 0)
{
if ((strName[i] == Char.Parse(" ")) && (strName[i] == strName[i - 1]))
{
continue;
}
else
{
newStrname += strName[i].ToString();
}
}
else
{
newStrname += strName[i].ToString();
}
}
return newStrname;
}
There are some “interesting” choices here. Like using Char.Parse to convert the string " " into the character ' ', when they could have just used the character in the first place. Or the special case first step of the loop- a conditional that gets checked for every iteration when we know that it only executes the first time. We could easily move the initialization of newStrname outside of the loop and then just start the loop at 1, greatly simplifying the code.
But speaking of newStrname, this is where I learned something. At first glance, I assumed this code would just crash if it ever actually ran- newStrname is initialized to null, and then we call += on it- surely that doesn’t work on a null value? But it does.
And in retrospect, it makes sense: null + "some string" also works, and just does the sane behavior of returning "some string". In fact, the behavior is so obvious, that I now feel silly for thinking this worked any other way. Still, I was surprised that this code worked.
Speaking of code that works, Anderson threw all of this away and replaced it with the simpler return Regex.Replace(strName, @"s+", " ");, which isn’t doing exactly the same thing as the original code, but actually maps better to the requirement (the rule was that all whitespace should be replaced with a single space, not just space characters), so the code is simpler and a bug got fixed.
[ad_2]
Remy Porter
Source link

[ad_1]
“In 1995, my husband and I eloped to Las Vegas to get married. Cirque du Soleil was just starting in Vegas at the time. Since we had a quick wedding and not many photos, we decided to get this epic wedding photo taken at our hotel. I do not regret a thing.”
(submitted by Amy)
[ad_2]
Team Awkward
Source link

[ad_1]
WASHINGTON—At a press event Monday held to address the student debt crisis, President Joe Biden made a speech during which he appeared to forget the nation’s name. “Instead of saying ‘the United States,’ President Biden began using words like ‘bud’ or ‘amigo’ to project familiarity, but it was obvious he couldn’t remember the name of the country he had come into East Room of the White House to talk about,” said Casey Pritchett, a journalist who attended the press conference, observing how Biden frequently furrowed his brow, squinted, and paused during moments when he seemed to be struggling to remember that citizens of the nation he governed were called Americans. “At one point he said, ‘Education is the cornerstone of a free and prosperous society, and so we must ensure the next generation of our fellow, uh…our buddies—the people here in this place where we live—are able to afford college.’ Then he stated talking about opportunity, but instead of saying ‘the American Dream,’ he just called it ‘the Big Awesome Dream.’ I’m not sure he knew where he was.” Biden later issued an apology for the gaffe, saying he had consulted a history book to refresh his memory and confirmed that he lived in the Algonquian fishing village of Nacotchtank.
[ad_2]

[ad_1]
Marlette received a priceless editorial cartoon education while living with his uncle and Pulitzer Prize-winning cartoonist Doug Marlette in Hillsborough, N.C. Doug’s tragic death in July of 2007 made evermore poignant the elder Marlette’s fierce and faithful devotion to the art form of editorial cartooning as a cornerstone of American free speech. With this in mind, Andy works daily to learn and uphold the disciplines and values passed on to him by his late uncle.
Andy’s editorial cartoons have become both hated and adored by daily readers. His work has been awarded by the Florida Society of Newspaper Editors for best editorial cartoons on state issues and former Governor Charlie Crist referred to himself regularly as Marlette’s biggest fan, despite the fact that he was also regularly a target in cartoons.?
Marlette has also illustrated two published children’s books co-authored by Orlando Sentinel sports columnist Mike Bianchi, as well as a recently published children’s book about a carrot-eating dog titled “Harry Loves Carrots.”
[ad_2]
Andy Marlette
Source link

[ad_1]
Why would anyone spend countless hours to add arms to bird videos? Because it’s hilarious, that’s why. Scroll down to see for yourself!























The post Armed And Dangerous: Birds With Human Arms first appeared on Crazy Funny Pictures.
[ad_2]
liver
Source link

[ad_1]
I don’t think anyone would argue that BASH provides a good scripting environment. It provides a commonly available scripting environment that even its successor shells attempt to emulate. But it’s idiosyncratic, at best, and leads to bug-prone scripts.
But there are certain tasks that it excels at- specifically, the kinds of tasks that you’d normally do from the shell but just want to wrap some light automation around. Want to scan a directory and then copy some subset of the files out based on user arguments? BASH is your friend! It’s just some basic conditionals and some cp commands, what could be easier?
Well, I’m not sure, but Radu‘s predecessors found a way to make it harder. Because they didn’t use the cp command anywhere. ANd why should they? I mean, look at the flags documented on the man page: cp [-R [-H | -L | -P]] [-fi | -n] [-alpSsvXx]? Who wants to learn all of that? They certainly didn’t.
Whenever they needed to copy files in a script, they did this instead:
cat mySourceFile > myDestFile
cat, of course, is short for “this is actually concatenation, but everyone uses it to dump files to STDOUT”, which is how it’s being used here. And then they just redirect the output to the destination file. Which… works, ish. It’s certainly the worst imaginable way to copy, with a huge pile of overhead that avoids leveraging any filesystem level optimizations. And I’m sure that there are input files for which this will break.
[ad_2]
Remy Porter
Source link

[ad_1]
Rep. Marjorie Taylor Greene (R. GA) appears to have supplanted her role as a candidate for the vice presidential nomination in 2024 with aspirations for the presidency itself. Speaking to the press at a campaign event in Atlanta on Thursday about her planned run for the presidency, Greene told reporters that most of the other presidential contenders were “soft on Jews,” and that “the Hebes’” repeated interference in United States politics was concerning to her and her entourage of QAnon advisors.
Greene reprised her assertion that the Rothschild’s investment firm was responsible for the devastating California wildfires in 2018 and that “similar influences” had affected wildfires this year in Canada.
Brazen assertions by Greene are not new. She claimed several years ago that the mass shooting at Parkland, Florida was a false-flag operation. She also said that the Las Vegas shooting in 2018 was an effort by Democrat-led government officials to discredit the Second Amendment and thus restrict the availability of firearms in the U.S.
Greene also took exception to “Democrat cannibal pedophiles” and promised as president to close all Dominos, Pizza Hut, and Little Caesar’s pizza franchises in the U.S. “It’s the least we can do for our children,” said Greene, munching on a Big Mac.
Greene’s rather flamboyant assertions caused her to be stripped of her committee memberships in 2021 but with the recapture of the House majority by Republicans in 2022, MTG is sitting pretty, holding memberships on the prestigious Committee on Oversight and Accountability and the Committee on Homeland Security. According to Greene, Homeland Security is presently investigating suspicious activity stemming from Jewish lasers from space.
Asked if she’d heard from former president Trump after her announcement of her plans to seek the presidency herself, Greene said that Trump “congratulated me on my destitution. He said that I was a good little filly.”
Since the separation of Trump from his wife Melania, rumors have circulated that Greene figures prominently in Trump’s romantic plans. Greene, a one-time power-lifting champion, would say only that she had “bench-pressed the former president for fifteen minutes” at his Mar-a-Lago estate in Palm Beach, Florida recently. “Everything came out alright,” she remarked with a smile.
[ad_2]
Bill Tope
Source link

[ad_1]
To honor the 55th birthday of the bald, buff & hilarious Terry Crews, I decided to dress as his TV sitcom character: Terry Jeffords from “Brooklyn Nine-Nine.” Feedback Appreciated.
[ad_2]
/u/lonetroper
Source link

[ad_1]
Impressive as these achievements are, they are only the latest in a long line of awards for Luckovich. He was a runner-up for the Pulitzer in 1987 before garnering the 1995 win. In 1989, he won the Overseas Press Club’s award for the “Best Cartoons on Foreign Affairs for 1989,” and in 1991, he was awarded the National Headliners award for editorial cartoonists. In 1994, a Luckovich cartoon was selected by voters in a Newsweek magazine poll as one of the four best editorial cartoons of the year.
After freelancing and selling life insurance to make ends meet following his graduation from the University of Washington in 1982, Luckovich landed his first cartooning job at the Greenville News in South Carolina. After nine months at the News, Luckovich was hired by The Times-Picayune in New Orleans, where he stayed for four years before moving on to Atlanta.
Luckovich’s cartoons, syndicated nationally by Creators Syndicate, appear in more than 350 daily publications, including The Washington Post,The San Diego Union-Tribune, The Denver Post, Newsday, New York Post, The Cleveland Plain-Dealer, The Dallas Morning News, the Boston Globe, the Seattle Times, the Los Angeles Times, the Chicago Tribune, the Nashville Tennessean and the Houston Chronicle, and are reprinted regularly in Time, Newsweek and the New York Times.
Luckovich and his wife, Margo, have four children. His hobbies include exercising and collecting unique ties.
[ad_2]
Mike Luckovich
Source link