WASHINGTON—In the wake of what was widely viewed as a disastrous debate performance, eye contact-avoiding members of the Biden administration still haven’t said a word to each other since last night, sources confirmed Friday. According to sources, White House aides and advisors were seen averting their gaze as they wordlessly walked straight to their desks and stared at the black screens of their computers, unwilling to log on. Several reports indicated that, despite being an exceptionally busy work day in which members of the press were seeking comment on the president’s unexpectedly weak showing the night before, everyone in Biden’s orbit had sequestered themselves away from others and turned their phones off in order to avoid calls. At press time, the silence was finally broken by Biden’s pained moaning.
Biden’s Approval Rating Skyrockets After Announcing He Taking Nation To The Circus
This is the sequel we all want to see! President Donald Trump and his first man Joe Biden! Such progressive love! You sure wish you could vote for them both, don’t you?
Happy Friday to those who celebrate. Enjoy it while it lasts, because Greg L. has some bad news.
"It was nice hanging out with all of you, but it looks like the Sun is scheduled to expire Sunday morning."
It's worse than that: the laws of physics are being replaced.
Ben S. shares a WTF that actually makes me glad I don't own one of those printers.
"The printer was turned off for at least three days before
I turned it on yesterday morning (June 18), but I didn't
get this reminder until it had been turned on for almost
24 hours. Maybe they've confused off and on?"
Bart needs a legal opinion, so naturally he asked the Internet.
"I guess we're skipping the terms&conditions now, nobody reads them anyway. Agree or Exit?"
I'd agree, surely those terms can't be enforceable.
Dane Jeppe makes me wonder if the Roman empire ever made
it that far north. My memory of European history is fading,
but I think the answer is no. Which surely explains his
confusion when he rants
"Buy a new watch and get 10 to 99 percent discount! Which one will it be? We won't tell you!"
XX is obviously 20, Jeppe.
Finally, Mr. TA has found a possible explanation for a large portion of the content on this site, muttering
"they should study the creators of PHP while they're at it"
[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!
ATLANTA—Stressing that they wished they had talked about this months ago instead of waiting until now, a relieved Donald Trump and Joe Biden ended the first presidential debate of 2024 Thursday after realizing neither of them really wanted to be president. The two candidates, who had been bitter enemies along the campaign trail, reportedly stopped the debate when Biden abruptly admitted he didn’t want to do this anymore, at which point Trump perked up, said, “Wait, you too?” and revealed that he was just running because he thought Biden wanted to win. According to sources, the two former commanders-in-chief then burst into laughter and said, “Same, I fucking hate this country.” Despite protests from moderators Jake Tapper and Dana Bash, Biden and Trump proceeded to remove their microphones, ties, and jackets, walk towards the exit, hug, and then hop into a red convertible, speeding off into the sunset together. At press time, Robert F. Kennedy Jr. had reportedly been declared the next president of the United States after being the only person in the entire nation dumb enough to take the job.
30-year-old Paige VanZant is leaning more lover than fighter these days, and there is nothing wrong with that. According to TMZ Sports, the 8-5-0 record holder is no longer focusing on combat sports full-time. VanZant has shifted focus to her lucrative modelling career, thanks to sites such as OnlyFans.
She stated, “Fighting, I have to understand now, is just a hobby.”
The internet was baffled and bemused to see Kendall Jenner visiting the world’s most famous museum barefoot.
During her eventful trip in Paris, the 28-year-old supermodel’s itinerary included a trip to the Louvre, after which she shared a whimsical photo of herself striking a pose in front of Leonardo da Vinci’s Mona Lisa and Paola Veronese’s The Wedding at Cana.
While the art aficionados among her followers marveled at her nighttime access to the museum, many couldn’t help but notice the glaring absence of footwear on her feet.
“We get it. You’re so filthy rich you can get the Louvre to open at midnight just for you to walk barefoot around the historic halls,” said one of the top comments.
“Wish i could go at midnight too when theres no peiple [sic],” one said, while a third comment read, “You know how powerful this woman is when she can have all the Louvre for herself in the middle of the night.”
“The Louvre at midnight,” the reality TV star wrote in the caption of her Instagram Carousel
One social media comment on her post said, “We get it. You’re so filthy rich you can get the louvre to open at midnight just for you to walk barefoot around the historic halls”
Some reports said the runway queen visited the museum on Monday, June 24, with her 30-year-old beau, Bad Bunny. The pair were pictured leaving a FWRD Paris Fashion Week event together on Monday and heading to La Girafe restaurant for dinner.
The three-time Grammy winner and the supermodel broke up in December after less than a year of dating. They appeared to have rekindled their romance this spring and were seen spending time together at a Met Gala after-party.
They were “having the best time” together and “whispering in each other’s ears,” a witness told People.
Bad Bunny and the runway queen rekindled their romance after breaking up in December
Another insider confirmed to the outlet in May that their breakup was drama-free and they “missed each other” during their time apart.
“It’s going well and they’re prioritizing spending time together as they figure it out,” an insider said at the time. “There wasn’t ever any drama in their breakup and they missed each other.”
Kendall’s trip to the Louvre came at the heels of her appearance at Vogue World: Paris, during which she and Gigi Hadid rode in on horses.
Alice works with an XML-based RPC system. They send requests, it does a thing, and returns back a response, all surrounded in XML. The service sending the requests, however, doesn’t use a well-established parsing library. The result is that, well, the code ends up here.
First, though, a bit about the data they expect to parse. It’s verbose, but fairly straightforward:
The tree is awkward, but the response contains params, where each param may contain a struct, the struct may contain members, which have a name and a value, where the value contains the actual data, wrapped in a type.
But there’s one thing missing here: the service which sends this response recently changed its API, and for some fields, includes an empty tag, instead of a value. This particular client doesn’t care about data fields, and should be able to safely ignore them if they exist.
Now, you might think, “well, that should be easy then,” and you’d be right if you were just using a generic XML parser. They didn’t do that. They hand-rolled a parser that is specific to this data format. So let’s see what happened:
voidXmlRpcResponseParser::OnStartElement(const XML_Char *pszName, const XML_Char **papszAttrs){
const string element = pszName;
if (_states.empty()) {
if (element != "methodResponse" && !_get_method_response) {
throw"Invalid top-level element <" + element + "> expecting ";
}
_got_method_response = true;
_states.push(&response);
}
if (element == "fault") {
is_fault = true;
} elseif (!is_fault && element == "struct") {
top()->type = XML_RPC_STRUCT;
} elseif (!is_fault && element == "array") {
top()->type = XML_RPC_ARRAY;
} elseif (!is_fault && (element == "data" || element == "value")) {
if (top()->type == XML_RPC_ARRAY) {
top()->xml_array.push_back(Entry());
_states.push(&top()->xml_array.back());
}
}
_cdata.clear();
}
Here, they track a stack, so they can keep track of where they are in parsing. Oh, except they don’t. They only push onto the stack when they encounter a data or a value element. When the response only contained values, this worked fine. So for years, it sat like this.
But when they added data tags, it stopped working, specifically because of how they handle closing tags:
Note here that they only pop when they encounter a value element. Which means when they encounter a data element, they push the stack, but never pop it, which gets the whole tree desynced and breaks parsing.
Since this was discovered, most of the service calls have been migrated to use JSON instead of XML. That “solves” the problem, given that the XML parser is broken. But the XML parser is still used for some calls, and the result is that the service being invoked is constrained in how it’s allowed to change its API- it can’t add data fields to certain responses, because this client will break. Everyone hates this, and someday, the XML endpoints will go away. Someday.
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!
The pair of NASA astronauts who flew Boeing’s Starliner capsule to the International Space Station on June 6 have been delayed from returning several times, with their departure date getting pushed from June 18, to the 22nd, to the 26th, and now an unannounced new date as issues with the capsule continue to crop up. What do you think?
“Out of all the Boeing headlines this year, this one is somehow the least troubling.”
Ben Robins, Office Historian
NASA Delays Artemis Launch After Rocket Gets Scared
“Fortunately, there’s lots to do while trapped in space.”
Emma Roberts believes the world has a deep misunderstanding of what it’s like being a nepo baby.
Daughter of the famous Eric Roberts and niece to Hollywood sweetheart Julia Roberts, the actress said people don’t see the rejection nepo babies face while they carve out their careers in showbiz.
The 33-year-old star made the comments during her Tuesday, June 25, appearance on the Table for Two with Bruce Bozzi podcast by iHeartMedia.
“People kind of only see your wins because they only see when you’re on the poster of a movie. They don’t see all the rejection along the way,” she said.
Emma Roberts peeled back the Hollywood curtains to explain the challenges that come with having famous relatives in showbiz
“That’s why I’m always very open about things I’ve auditioned for and haven’t gotten the part for. I think it’s important to talk about – otherwise, people just think everything’s been so great and linear and easy, and no, it’s not at all,” the actress continued. “But, of course, it looks like that to the outside perspective or to the naked eye.”
The mother-of-one also mentioned that it’s even harder for nepo babies to get chances if people in the industry have had bad experiences with their famous relatives.
The American Horror Story actress is the daughter of Eric Roberts and niece of Julia Roberts
“I think there’s two sides of the coin. People like to say, you know, you have a leg up because you have family in the industry,” she said. “But then, the other side to that is you have to prove yourself more.
“Also, if people don’t have good experiences with other people in your family, then you’ll never get a chance,” she added.
Emma made her film debut in 2001, portraying the daughter of Johnny Depp‘s character in Blow. Her career took off in 2004 when, at the age of 13, she landed the starring role in the Nickelodeon series Unfabulous, which established her as a young talent to watch.
“People just think everything’s been so great and linear and easy, and no, it’s not at all,” said the 33-year-old actress
In recent years, she continued to impress with her performances in American Horror Story.
When she appeared on the Tuesday podcast episode, she was promoting her new movie Space Cadet, a NASA-themed comedy premiering globally on July 4, 2024.
The Fifty Shades of Grey actress said journalists should write about something else when asked about the “nepo baby” label
“When that first started, I found it to be incredibly annoying and boring,” she said when asked by the Today Show host about the “nepo baby” label in the February interview.
“If you’re a journalist, then write about something else. That’s just lame,” added the Madame Web actress, born to famous parents Don Johnson and Melanie Griffith.
Evan sent us 545 lines of PHP code from a file called spec_email.php. It appears to participate in sending an email, with a nice big pile of HTML in it. We’re going to take it in a few chunks, because… choices were made.
It opens with this check, and a few variable declarations:
This creates an HTML table about “directors”, with several links per row. They’re using the table as a grid layout tool, which normally would be bad, but for emails is still a common thing, as many email clients don’t properly support full HTML.
Note how the result gets stuffed into $assign['TABLE1'].
We repeat this for $table2 and $table3, which I’m skipping over right now.
Remember that $template? We do repeated find-and-replaces with everything in our $assign array. This is their home brew templating engine. They make no attempt to be efficient, they just find-and-replace over and over and over again.
If we preview the email, we send it to a preview_email address, otherwise we send it to a real address list of customers. At least they’re doing it in BCC.
And that’s the end of the if statement which opened this code, but it’s not the end of our work. We also need to output the UI here. This is less of a mess of string concatenation and more of a mess of gigantic PHP blobs of code.
I’ll share the full code, but there’s one highlight. This is how they populate a drop down list:
while ($data = tep_db_fetch_array($query)) {
$sel = 'selected';
if (trim($data['products_name'])) {
echo''."n";
}
}
Once upon a time, they wanted to make only the first item selected, but they forgot how, so instead they just apply the selected attribute to every item.
Evan shares that this was implemented by contractors who were very expensive, but also, clearly didn’t care, but also clearly worked very hard on it. Harder than anyone should have, but hey, it’s a lot of code!