ReportWire

Category: Humor

Humor | ReportWire publishes the latest breaking U.S. and world news, trending topics and developing stories from around globe.

  • Who needs flying cars when we have this

    Who needs flying cars when we have this

    [ad_1]

    Tags: funny, meme, ai

    21448 points, 502 comments.

    [ad_2]

    Source link

  • Taking up Spaces

    Taking up Spaces

    [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

  • What Happens In Vegas, Stays In Vegas

    What Happens In Vegas, Stays In Vegas

    [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

  • Biden Forgets Nation’s Name

    Biden Forgets Nation’s Name

    [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]

    Source link

  • Why Is Life So Unfair? There Are Too Many Male CEOs!

    Why Is Life So Unfair? There Are Too Many Male CEOs!

    [ad_1]

    {13 Comments}

    There’s a real problem that makes everyone ask the same question: why is life so unfair? Why there are so many male CEOs? It must be a huge conspiracy by misogynists… The amount of male coal miners and garbage collectors is just fine, though.

    There are too many male CEOs! Amount of male coal miners and garbage collectors is just fine.

    [ad_2]

    liver

    Source link

  • Andy Marlette for Jul 31, 2023 – Andy Marlette, Humor Times

    Andy Marlette for Jul 31, 2023 – Andy Marlette, Humor Times

    [ad_1]

    Born and raised by underpaid public school teachers in Sanford, Fla., Andy Marlette graduated from the University of Florida and became staff editorial cartoonist at the Pensacola News Journal in 2007.

    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

  • Armed And Dangerous: Birds With Human Arms

    Armed And Dangerous: Birds With Human Arms

    [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!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    Birds with human arms are hilarious!

    The post Armed And Dangerous: Birds With Human Arms first appeared on Crazy Funny Pictures.

    [ad_2]

    liver

    Source link

  • I Just Ended a Five Year Relationship…

    I Just Ended a Five Year Relationship…

    [ad_1]

    {1 Comment}

    Don’t worry, she’s going to be alright. Sure, ending a long-term relationship is not easy, but few conversations with a therapist, and she’ll be good to go to the next one.

    Don't worry, she's going to be alright. Sure, ending a long-term relationship is not easy, but few conversations with a therapist, and she'll be good to go to the next one.

    [ad_2]

    liver

    Source link

  • Just a Copy of Copy

    Just a Copy of Copy

    [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.

    [Advertisement]
    BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!

    [ad_2]

    Remy Porter

    Source link

  • MTG Announces Run for the Presidency – Bill Tope, Humor Times

    MTG Announces Run for the Presidency – Bill Tope, Humor Times

    [ad_1]

    Georgia rep Marjorie Taylor Greene: VP isn’t good enough, announces own run for the presidency.

    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.

    Marjorie Taylor Greene announces a run for the presidency. Caricature by DonkeyHotey, flickr.com.

    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.

    Bill Tope
    Latest posts by Bill Tope (see all)
    Share

    [ad_2]

    Bill Tope

    Source link

  • Reddit – Dive into anything

    Reddit – Dive into anything

    [ad_1]










    Go to funny






    r/funny

    Reddit’s largest humor depository






    Members







    Online













    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.