ReportWire

Category: Humor

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

  • Mike Pence Drops Out Of Republican Presidential Campaign

    Mike Pence Drops Out Of Republican Presidential Campaign

    [ad_1]

    Former U.S. Vice President Mike Pence ended his cash-strapped presidential campaign after struggling for months to convince Republican voters he was the best alternative to the man he once served with unswerving loyalty, Donald Trump. What do you think?

    “I guess not being liked by anyone didn’t work out as he planned.”

    Christian Gaudette, Distance Estimator

    “Who can I turn to now if I love Trump’s policies but hate his popularity?”

    Erin Rios, Funeral Bouncer

    “His voter will be so disappointed.”

    Cameron Finney, Unemployed

    [ad_2]

    Source link

  • The Funniest Vintage Picture Parodies by Anne Taintor

    The Funniest Vintage Picture Parodies by Anne Taintor

    [ad_1]

    What happens when you mix stereotypical 1950s America with sarcastic comments? Artist Anne Taintor decided to try mixing these two things and brilliantly succeeded, because her vintage picture parodies are hilarious. She has been so successful with her work that there’s even a calendar available on Amazon and the demand for it is pretty high so hurry up before it’s sold out!

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    Funny vintage photo parody by Anne Taintor.

    If you like Anne’s work and this your kind of humor, check out her calendar on Amazon! Please note that this site is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate we earn from qualifying purchases.

    [ad_2]

    liver

    Source link

  • High Performance Query

    High Performance Query

    [ad_1]

    Aaron was doing some work with a high-performance-computing platform. The kind of thing that handles complex numerical simulations divided across farms of CPUs, GPUs, FPGAs, and basically anything else that computes.

    The system comes with a web GUI, and the code for the web GUI is… well… let’s just look at the comment on a method.

    
    

    Oh yeah, we’re looking at PHP which generates SQL queries on the fly. And you know they happen via string concatenation. Even with that knowledge, however, it’s actually probably worse than you think.

    public function select( $filter, $table, $groupby, $orderby, $order='desc', $limit=0 )
        {
            $filter_str = "";
            $groupby_str = "";
            $field_str = "";
            $is_first = TRUE;
            $join_annex = 0;
            $i = 0;
            if ( $table == MAIN_TABLE )
                    $annex_schema = $this->getSchema( ANNEX_TABLE );
            else
                    $annex_schema = null;
    
            if( $filter )
            {
                foreach( $filter as $field => $value )
                {
                    if (($annex_schema != null) && (in_array($field, array_keys($annex_schema))))
                            
                            $join_annex = 1;
    
                    if( $value != "")
                    {
                               $filter_str .= ($is_first ? '' : ' AND ');
    
                            if( preg_match( '`^.*(*|?).*$`', $value ) ) {
                                    $compar = ' LIKE ';
                                    $value = strtr( $value, array( '?' => '.', '*' => '%' ));
                            } else {
                                    $compar = '=';
                            }
    
                            if ( $field == PATH ) {
                                    $match_array = db_path_match($value);
                                    if ( array_count_values( $match_array ) == 1 )
                                            $filter_str .= $field.$compar.'''.$value.''';
                                    else {
                                            $filter_str .= '(';
                                            $is_first_subexpr = TRUE;
                                            foreach ($match_array as $expr ) {
                                                    if (preg_match( '`^.*(%|_).*$`', $expr ))
                                                            $filter_str .= ($is_first_subexpr ? '': ' OR ').$field.' LIKE ''.$expr.''';
                                                    else
                                                            $filter_str .= ($is_first_subexpr ? '': ' OR ').$field.'=''.$expr.''';
    
                                                    $is_first_subexpr = FALSE;
                                            }
                                            $filter_str .= ')';
                                    }
                             } else {
                                    $filter_str .= $field.$compar.'''.$value.''';
                            }
                        $is_first = FALSE;
                    }
                }
            }
    
            if( $groupby )
            {
                $is_first = TRUE;
                foreach( $groupby as $field )
                {
                    if (($annex_schema != null) && (in_array($field, array_keys($annex_schema))))
                            
                            $join_annex = 1;
    
                    $groupby_str = $groupby_str.($is_first ? '' : ',').$field;
                    $is_first = FALSE;
                }
            }
    
            
    
            $is_first = TRUE;
            foreach( $this->getSchema( $table ) as $field => $type )
            {
                if( substr_count( $type, "int" ) != 0 && $groupby && $field != "status" ) 
                    $field_str .= ( $is_first ? '' : ', ' )." SUM(".($join_annex ? "$table." : "").$field.")";
                else
                    $field_str .= ( $is_first ? '' : ', ' ).($join_annex ? "$table." : "").$field;
                $is_first = FALSE;
            }
            if ($join_annex) {
                    foreach( $this->getSchema( ANNEX_TABLE ) as $field => $type )
                    {
                        if( substr_count( $type, "int" ) != 0 && $groupby && $field != "status" ) 
                            $field_str .= ( $is_first ? '' : ', ' )." SUM(".($join_annex ? ANNEX_TABLE."." : "").$field.")";
                        else
                            $field_str .= ( $is_first ? '' : ', ' ).($join_annex ? ANNEX_TABLE."." : "").$field;
                        $is_first = FALSE;
                    }
            }
    
            try
            {
                if ($join_annex)
                        $query = "SELECT ".$field_str." FROM ".$table." LEFT JOIN ".ANNEX_TABLE." ON $table.id = ".ANNEX_TABLE.".id ".
                                    ( $filter ? " WHERE ".$filter_str : "" ).
                                    ( $groupby ? " GROUP BY ".$groupby_str : "" ).( $orderby ? " ORDER BY ".$orderby." ".$order : "" ).
                                    ( $limit > 0 ? " LIMIT $limit" : "" );
                else
                        $query = "SELECT ".$field_str." FROM ".$table.( $filter ? " WHERE ".$filter_str : "" ).
                                    ( $groupby ? " GROUP BY ".$groupby_str : "" ).( $orderby ? " ORDER BY ".$orderby." ".$order : "" ).
                                    ( $limit > 0 ? " LIMIT $limit" : "" );
    
                $result = $this->connection->query( $query );
    
                $i=0;
                while( $line = $result->fetch( PDO::FETCH_ASSOC ) )
                {
                    $returned_result[$i] = $line;
                    $i++;
                    if ($i > MAX_SEARCH_RESULT)
                    {
                        echo "<b>ERROR: max result count exceeded</b><br>n";
                        return null;
                    }
                }
                $result->closeCursor();
                $this->rowNumber = $i;
    
                return $returned_result;
            }
            catch( PDOException $e )
            {
                echo 'Error: '.$e->getMessage().'</br>';
            }
        }
    

    There’s just so much in here. We start by detecting if we need to join to an ANNEX_TABLE based on whether or not our query target is the MAIN_TABLE. We loop over the filter, possibly joining to that table. We munge the comparison field with a regex, to see if we’re doing an = comparison or a LIKE comparison.

    The whole thing is a tortured pile of string munging and SQL injection and so much complexity to handle all of the weird little cases they’ve included.

    The code is bad, through and through. But I think my favorite bits are the error handling: we just print an error to the page, complete with hard-coded </br> tags, which, um… the break tag is not meant to be an open/close tag pair. Even if we’re doing older XHMTL style, the correct way to output that would be <br />.

    Special credit to this line: echo "<b>ERROR: max result count exceeded</b><br>n";, and that poor, useless n hanging out at the end, too.

    [Advertisement]
    Continuously monitor your servers for configuration changes, and report when there’s configuration drift. Get started with Otter today!

    [ad_2]

    Remy Porter

    Source link

  • A Very Responsible Man: The Perfect Employee

    A Very Responsible Man: The Perfect Employee

    [ad_1]

    Employers are always on a lookout for responsible employees stating that they are looking for someone who is very responsible. This guy has the perfect answer, so we’re are pretty sure that telling recruiters “In my last job, whenever anything went wrong, they said I was responsible.” is exactly what they want to hear.

    [ad_2]

    liver

    Source link

  • Gaps In Resume: Where Do They Come From?

    Gaps In Resume: Where Do They Come From?

    [ad_1]

    “Can you explain these gaps in your resume?” must be the dumbest question ever. Where do you think they come from, genius? From space bars, obviously! How stupid those recruiters are?

    The post Gaps In Resume: Where Do They Come From? first appeared on Crazy Funny Pictures.

    [ad_2]

    liver

    Source link

  • Are you hungry?

    Are you hungry?

    [ad_1]

    Tags: funny, humor, dessert, yummy

    6452 points, 289 comments.

    [ad_2]

    Source link

  • Mike Luckovich for Oct 29, 2023 – Mike Luckovich, Humor Times

    Mike Luckovich for Oct 29, 2023 – Mike Luckovich, Humor Times

    [ad_1]

    Mike Luckovich of the Atlanta Constitution received two amazing honors in 2006, winning both a Pulitzer Prize and the Reuben award for Outstanding Cartoonist of the Year. This was the second Pulitzer for Luckovich; his first was awarded in 1995. He had previously received the Reuben award for Editorial Cartooning in 2001, but this was his first time to be named the overall outstanding cartoonist by a group of his peers. The Reuben awards are distributed each year by the National Cartoonists Society and are considered professional cartooning’s highest honor.

    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

  • Infinite Money Glitch In Real Life: Start Doing This!

    Infinite Money Glitch In Real Life: Start Doing This!

    [ad_1]

    Stop wasting your time going to pointless job interviews! Just use this amazing infinite money glitch that works every time! Please note: this is not a financial advice the authors of this site are not attorneys, accountants or financial advisors.

    The post Infinite Money Glitch In Real Life: Start Doing This! first appeared on Crazy Funny Pictures.

    [ad_2]

    liver

    Source link

  • John Deering for Oct 28, 2023 – John Deering, Humor Times

    John Deering for Oct 28, 2023 – John Deering, Humor Times

    [ad_1]

    John Deering is chief editorial cartoonist for the Arkansas Democrat-Gazette, the state’s largest newspaper. Five times a week, his cartoon comments entertain (or sometimes enrage) readers throughout Arkansas, in Washington, D.C., and across the country.

    Winner of the National Press Foundation’s 1997 Berryman Award, Deering also gained top honors in the 1994 national John Fischetti Cartoon Competition and was the seven-time winner of the Arkansas Press Association’s Best Editorial Cartoonist award.

    Deering’s work is collected in two books: Deering’s State of Mind (1990) and We Knew Bill Clinton … Bill Clinton Was a Friend of Ours (1993, with Vic Harville). He is a 14-year member of the American Association of Editorial Cartoonists.

    Born in 1956 in Little Rock, Deering has been drawing since his childhood fascination with science fiction and dinosaurs — subjects he made into comic books. After studying art with Truman Alston, Deering focused on commercial and fine art at the University of Arkansas at Little Rock. Along the way, he found his strength in interlocking art with comment.

    At the Democrat-Gazette, Deering advanced from layout artist to editorial cartoonist in 1981-82. His promotion to chief editorial cartoonist in 1988 made his cartoons the state’s best-known. Deering also creates the comic panel Too Much Coffee.

    He and his wife, Kathy, have a daughter and two sons, and live in Little Rock. He still draws dinosaurs.

    Check out his comic strips, Zack Hill and Strange Brew.

    [ad_2]

    John Deering

    Source link

  • Except Wakanda

    Except Wakanda

    [ad_1]

    Tags: dark humor, meme, funny, flynn

    6803 points, 1283 comments.

    [ad_2]

    Source link

  • Funny Instagram Influencer Parodies by Chiara Matto

    Funny Instagram Influencer Parodies by Chiara Matto

    [ad_1]

    Chiara Matto has a brilliant Instagram account where she makes fun of overly polished and unrealistic influencer photos that can be found in abundance on social media. Sometimes her boyfriend even helps her out for parodies of couple photos. Scroll down to check out our favorites!

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    Funny Instagram influencer parody by Chiara Matto.

    [ad_2]

    liver

    Source link

  • The Wedding Photographer Got A Bit Too Creative

    The Wedding Photographer Got A Bit Too Creative

    [ad_1]

    “A wedding photo of our very big (and very small) day.”

    (submitted by Steve)

    The post The Collector appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • What Happens In The Scrapbook Stays In The Scrapbook

    What Happens In The Scrapbook Stays In The Scrapbook

    [ad_1]

    “This is from a scrapbook I made of my family when I was about 7. Apparently these were the highlights of my dad as I saw him back then. Ah, memories.”

    (submitted by IG @byrnes_ashleigh)

    The post My Father, My Hero appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link