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

[ad_1]
Structured exception handling is a powerful way to describe how your program reacts to error conditions. But it’s not available in a language like C, and thus C programmers have come up with a variety of ways to propogate errors. Frequently, functions simply return error codes. Some error handling practices use the dreaded goto to jump to the error handler.
Or, they do what “Maple Syrup“‘s predecessor did for all of their error handling code:
do {
if (failureCondition)
break;
return TRUE;
} while (0);
Now, if you check the comments on this article about an hour or two after posting, you’ll see some lovely essays describing why this particular construct is the best possible option to use in certain cases, and that it’s definitely not a WTF and it shouldn’t be posted on this site.
But in the meantime: just look at it. At its core, it reinvents the goto by exploiting the break keyword inside of a loop that will never repeat.
It works, despite the syntactical noise it adds to the code. Is it how any of these constructs should be used? No, but in the words of William Gibson: the street finds its own uses for things.
[ad_2]
Remy Porter
Source link

[ad_1]
“My ex-husband surprised me after work with a birthday cake. I wanted a picture of my son and I for the scrapbook so was leaning forward to get closer to him. I had not been to the hairdresser’s in 2 years and had age inappropriate hair at the time. The candles took care of that and luckily, my husband managed to put out the flames with his bare hands once he realized what was happening. Of course, he missed the shot of me screaming my head off. I’ve been going for regular trims since.”
(submitted by Sharon)
The post Split Ends appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“Here I am with Rick Springfield and I can’t believe it. This was taken on Dec 11, 1983.”
(submitted by Michelle)
The post Jessie’s Girl appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
Twitter’s new X sign has been taken down after complaints from residents about intense light shining into homes and the sign lacking safety permits from the city. What do you think?
“We can’t let bureaucracy stifle the most annoying innovators of our time.”
Shelly Prechtel, Systems Analyst
“When has Musk’s technology ever put the public at risk?”
Ross Yanczer, Pecan Gatherer
“These people are just jealous of the creativity and genius that it takes to imagine a bright X.”
Chelsea Bujak, Taboo Specialist
[ad_2]

[ad_1]
Are currently serving politicians getting too old to hold office? Reached at his Mar-a-Lago estate in Palm Beach, Florida for an exclusive interview following his convincing victory over President Joe Biden in the 2024 election, President-Elect Donald J. Trump spoke out on this and other issues.
“Hell,” said Trump, “McConnell and Feinstein look like they just walked out from under the Capitol rotunda; you know, Statuary Hall. McConnell,” Trump went on, “is in his 80s, and Feinstein: she’s nearly as old as Biden!”
When this reporter pointed out that Trump was just three years younger than the outgoing president, Trump sneered and said, “To quote a great American, ‘It ain’t the years; it’s the miles.’” (Fact Check: the quote was taken from Indiana Jones, a character in the 1981 film, “Raiders of the Lost Ark.”)
“And Nancy Pelosi,” the new president went on, “can hardly talk — which ain’t all bad — because her teeth are so loose and unstable that they look like they’re going to spill out of her mouth. Ugh!” He scowled. “Not my type!”
When queried on the composition of his Cabinet in the new Trump administration, the ex-president said he’s apt to go with youth, as well as with female components. “I figure to appoint Ivanka as my new Secretary of State and of Defense and as my new Attorney General.” When questioned on the wisdom of assigning so much responsibility to just one individual, Trump came back with, “If she can put up with Jared (Kushner), then she’s up for almost anything.” Asked if he had plans for Kusher himself in his new administration, Trump stated that Jared was so involved with LIV Golf, since its purchase of the PGA, that the former president doubted that Kusher would have time for “piddly things, like arms sales to the Saudis and brokering peace deals in the Mideast.”
“What does the future look like with regard to your legal situation?” Trump was asked. At the time of his re-election, the former president was under indictment in four venues.
“They can’t prosecute a sitting president,” replied Trump with a smirk. “And,” he continued, “with revocation of the 22nd Amendment, I can stay president for the conceivable future.” He slurped a Diet Coke and crushed the can in one of his tiny hands. When asked what impediments lay before overturning the 22nd Amendment, which was passed in 1951, and which restricts any citizen to two elected terms as president, Trump said that with the 6-3 conservative majority on the “Trump Court,” he foresaw no problems. “We got it dicked,” he said tersely.
When pressed on his complex legal problems, Trump dismissed the issue with, “They got their pound of flesh.” (Walt Natua, Carlos De Oliveira and seven other low-level, minimum-wage employees at Trump’s Mar-a-Laga estate were convicted on obstruction and other charges and are serving an average of 11 years in federal prison). Asked if he would pardon the convicted felons, Trump shrugged and said, “They were very loyal; why would I want to ruin their fun?”
And what role did Trump foresee for his new Vice President, former Rep. Marjorie Taylor Greene (R. GA)?
“Oh, the usual; you know: funerals, Sunday morning shows, and the like.”
Trump made two surprising announcements, the first being that he was planning on appointing former Russian President Vladimir Putin, exiled from his homeland after losing the war in Ukraine, as Director of Homeland Security. “Vlad will bring a no-nonsense approach to the agency,” remarked Trump.
The second surprise was that wedding bells would be ringing for the first White House wedding since 2022, when President Joe Biden’s granddaughter Naomi Biden was wed to Peter Neal. According to President-Elect Trump, his Vice President, Marjorie Taylor Greene, will marry former Fox News host Tucker Carlson in a traditional QAnon ceremony. The couple will honeymoon in the Ozarks.
[ad_2]
Bill Tope
Source link

[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

[ad_1]
The post My Homie Looking for Diapers appeared first on People Of Walmart.
[ad_2]
Editor1
Source link

[ad_1]
Nick L supports a hardware system that should autodetect a USB drive when inserted, and then load a config file off of it. This fairly simple task is made more complicated by the freelancer they hired to solve the problem, who has some… interesting approaches to writing Python.
thumb_name = []
while thumb_name == []:
sleep(1)
thumb_name = os.listdir("/media/update")
ser.write(bytes("usb drv not detectedr",'UTF-8'))
print ("test")
print (thumb_name)
print ("test")
thumb_name_pure = thumb_name[0]
This code's attempt to confirm whether or not the USB drive has been inserted is to attempt to list the directories at the mount point. The result of this is stored in a variable named thumb_name, which importantly, isn't the name of the drive, but is the list of files in the folder. This whole thing is gated in a while loop that requires thumb_name to actually hold entries, so I hope that the drive eventually mounts, and that it holds at least one file in that directory, otherwise this is going to sit and wait for a loooooong time.
Then we get thumb_name_pure set, which is just the first entry in the directory. Let's see how that's used:
buf10 = "False"
while buf10 == 'False':
buf10 = (str(path.exists("/media/update/" + thumb_name_pure + "/data/cfg.txt")))
sleep(1)
#ser.write(bytes("cfg.txt not detectedr",'UTF-8'))
So, thumb_name_pure is inserted into a path, where it will search for /data/cfg.txt. Which this all is a long, roundabout way of saying "the first directory in the drive had better contain a /data/cfg.txt file, because otherwise you're going to loop forever.
But that's not even the WTF here, as WTF as that is. buf10 (I'm not even sure what's happening with that variable name, but I assume there is a buf1 and a buf9) stores the string "False". And then we cast path.exists to a string, because why on Earth would we use boolean literals when we can make everything stringly typed instead.
Nick adds:
Also, elsewhere in the code, False is misspelled as "fasle". Yes, it causes bugs.
[ad_2]
Remy Porter
Source link

[ad_1]
“My son’s Father’s Day Card.”
(submitted by IG @arlene_todd_)
The post Okay appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
The news, even that about Musk changing Twitter to X, doesn’t need to be complicated and confusing; that’s what any new release from Microsoft is for. And, as in the case with anything from Microsoft, to keep the news from worrying our pretty little heads over, remember something new and equally indecipherable will come out soon:
Really all you need to do is follow one simple rule: barely pay attention and jump to conclusions. So, here are some headlines today and my first thoughts:
X is the Willis Tower of New Cokes.
Bigger question: where was he when they needed to cut 30 minutes from Oppenheimer?
And who said customer service was dead?
Biden plans to get around it by doing what he always does with tech issues … have his grandkids take care of it.
You’d think Betty Crocker could make her own pancakes.
… no word if they had a good time in Cancun.
Although, a lot of women are glossing over it.
Finally, they can make the sequel ‘Needs a Walker, Texas Ranger.’
… it was in Florida so authorities didn’t say gay …
So, he combined two of his favorite things to have a Barbie Q.
And, if they have Prime, they’re expected to do it in one to three days.
If a Republican did what they accuse Hunter Biden of, they’d be claiming he’s allowed to under the ‘You Da Mann Act.”
I’m guessing this has nothing to do with the military.
But, that’s probably just the Ivermectin talking!
[ad_2]
Paul Lander
Source link

[ad_1]
Put that painful divorce behind you with this 456-sq.-ft. studio apt. The kitchenette is ideal for microwaving half of a Subway meatball sub, while the living space adequately accommodates the futon on which both Connor and Tyler will be sleeping every other weekend. Plus, the cozy shower stall is a perfect place to break down and question how everything went so wrong!
[ad_2]

[ad_1]
For many centuries people have been just looking at statues, but things have recently changed. Statues around the world have apparently started to pick fights with tourists, and it looks like people are losing. Scroll down to see for yourself!






















The post People Fighting With Statues (And Mostly Losing) first appeared on Crazy Funny Pictures.
[ad_2]
liver
Source link

[ad_1]
This cat stopped by my office today; wondering if I should call the owner, I checked his tags and found myself cracking up instead. He certainly caught me!
[ad_2]
/u/cougavore
Source link