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

[ad_1]
It’s interesting to think that work is a necessity in life and it’s all kinds of annoying and dreadful. Now, food, on the other hand, is also a necessity, but definitely in the top 5 of the best things that life has to offer. Until either reality or the internet hits.
Yes, Reddit has recently been ruining food (but only a little bit) with folks sharing how much of something consumed is lethal. We’re talking about actual foods that, if consumed in excess, would be a lethal dose. Some of these are physically impossible to achieve (no, don’t accept this challenge), but others—let’s just say it’s good to know these things if you really like eating.
So, Redditors have recently been weighing in with their favorite “this much of this will kill you” facts in a now viral AskReddit thread. Folks were listing mostly edible things and very ordinary foods, but there was the occasional activity of sorts, like sleeping, driving and even breathing.
Anywho, the post garnered 6,200 upvotes and generated a discussion that included 3,600 comments.
Alcohol.
In 5 seconds, if you’re standing or walking or driving in the wrong place and someone else is driving after drinking, you can die.
In 5 hours, if you drink too much, you can die.
In 5 years, if you binge drink, you can die.
Or you can drink for five decades and watch every relationship in your life wither until the only one left is with the alcohol.
So, throughout your lifetime, you will consume a lot of things. And that’s not just eating—it’s also things like breathing and absorbing (say, via the skin), among other things. There’s multiple ways things enter your body, is what I’m saying.
And there are a lot of different faculties in your body to process all of it—the good, the bad and the ugly. While you might think eating a banana is healthy and great, it does include a certain amount of toxins that the body should be able to take on as well.
So, the traditional and most known detoxifying faculties in the body are the kidneys and liver, which filter out toxins from the blood and direct into your bladder to be expelled (the kidneys) and change the chemical nature of toxins altogether (the liver).
But there’s also the lesser known detox centers like the lungs, which have a capacity to remove certain gasses, the skin, which keeps water-borne nonsense at bay, and the digestive system, which is capable of eliminating toxic foods through vomit and the runs.
Two things you learn quickly in electrical engineering related to death and one not related to Human death.
The first is the right hand rule. When we you are touching electronic components that may be charged use your right hand as it is further from your heart vs the left so it’s less likely to kill you if something were to go wrong. The Human body is more or less a giant bag of salt water after all.
The Second is to always touch with the back of your hand first. If you use your palm/fingers you risk the current causing your muscles to tense and then grab and hold the circuit and you’ll be unable to let go until long after you’re dead or someone breaks you off the circuit.
Finally, if you release the magic smoke the electronics are dead completely and totally. While refill kits exist they are hard to find and ever harder to use and capturing magic smoke is incredibly difficult.
If not for these faculties, we’d all be sick all the time. But they are no superheroes either. There is a certain limit of toxicity that they can manage and any more than that could lead to a slew of problems depending on the circumstances. And even if you’re not consuming any toxins since you live in a clean environment, your body could be creating its own toxins—after all, it’s all a game of breaking down chemical compounds, and sometimes they can break down into toxins, despite not being such in the first place. And toxins in excess essentially weaken the body, and thus cause things like illness and speed up aging.
Nutmeg in large-but-not-nearly-as-large-as-you-might-think doses is a potent psychoactive that will basically make you go insane. Infamous addict William S. Burroughs wrote that the only people he ever met whom he thought were truly beyond redemption were the nutmeg addicts.
Death is quite lethal. Just a single dose is enough to kill a person.
One of my favorite trombone fun facts is that within a human lifetime, you’ll eat about a trombone’s worth of Zinc and Copper (the metals that make brass). I had a kid once ask me “so if I eat a trombone right now, will I never have to eat zinc or copper again?” And the answer was yes, because you would die. Edit: okay I checked a source for how many minerals we actually need in a human lifetime, and turns out my original source was way wrong. We apparently eat 950 lbs of copper and 502 lbs of zinc in a lifetime, so considering that a large trombone of 6 lbs provides roughly 4 lbs of copper and 2 lbs of zinc, that works out to around 250 large trombones or 500 small trombones eaten in a human lifetime. But you would still die if you ate an entire trombone in one sitting.
And if we’re not putting toxins into our body, we’re maybe simply overeating—and that’s just as bad.
The obvious effect of overeating is gaining excess weight in the form of fat. Whenever you overeat, the body converts those extra calories into fat for later use. And if you like hoarding fat and never really using it, then obesity will be right around the corner, and that will put a strain on your body (e.g. the cardiovascular system).
You would die from smoke inhalation before you could overdose on THC from smoking pot.
Overeating might also disrupt the way hunger is regulated in your body. Long story short, constant overeating might cause a chain of events that would eventually lead to training your body to give you dopamine to encourage you to overeat. This in turn creates a vicious cycle when hunger is no longer in the equation. But portioning your food more reasonably might help avoid this.
Salt. Two tablespoons full of salt will kill. There was a case some years ago where a kid mixed up salt and sugar in a desert and the mother made them eat the whole thing as punishment. The kid died, mum got off easy because the judge believed her that she really didn’t know.
The two other direct implications of overeating are nausea and indigestion as well as excessive gas and bloating.
In the first case, your stomach is put under pressure to process a huge amount of food, and so it might have to eject some of it or to rush through digesting something just to get sweet relief. With the latter, there are certain foods that are more prone to be broken down into gasses. And so if you eat more of it, hence there will be more gasses to expel. Nobody wants that. Not you, not those around you.
You can go and buy a bottle of Tylenol at damn-near any grocery store, gas station, or pharmacy with 500mg capsules/tablets.
It is entirely possible to irreparably damage your liver and kidneys with as little as 7500mg… so 15 pills in a single day. Sure, this number generally requires other comorbidities to be present – chronic alcoholism, poor nutrition, etc – but losing track of how many you’ve taken is reasonably common (all things considered, especially for individuals in mental decline), making acute acetaminophen poisoning one of the leading causes of acute liver failure leading to death.
It is really not a fun way to go, either…
Dread Pirate Roberts: “What you do not smell is called Iocane powder. It is odorless, tasteless, dissolves instantly in liquid, and is among the more deadly poisons known to man.”
One of the lesser known facts is that overeating might hinder brain functionality. Studies have determined that overweight people are more inclined to develop memory problems compared to those within the weight norm. Now, considering that the brain is mostly fat, eating healthy fats, like avocados, fish, and nut butters might help with that.
Amanita phalloides, also known as the Death Cap mushroom. 0.1mg/kg of body weight of it’s toxins is all it takes to be lethal. One mushroom typically contains about 15mg. The biggest danger is these look like mushrooms that are also perfectly edible.
Another set of lookalike mushrooms are Galerina marginata and Pholiotina rugosa which are often mistaken for “magic mushrooms” (Psilocybe)
It only takes 7mL of hydrofluoric acid to absorb all the free calcium in the body of an adult human.
Source – I work with HF and we have very extensive safety training and routine tabletop drills to cover what to do in case of an exposure. Calcium gluconate can save lives.
Lastly, you might have noticed this one, but overeating might cause you to become suddenly sleepy.
It’s speculated that once a bigger meal is consumed, blood sugar might drop shortly and that would ultimately lead to sleepiness, sluggishness, headaches and the like. There’s also excess insulin production. And while that sounds like not a big deal, remember, that puts pressure on your body and if you’re, say, driving, drowsiness doesn’t help navigate roads.
A poison dart frog’s skin is so poisonous that it can kill 20 men from simply touching the frog. This has to do with what wild frogs eat
So, what are your thoughts on all of this? Have any other consumable dangers in mind that are worth sharing? Spill the beans in the comment section below! Or check out some of the other dangers that seem perfectly fine.
Carfentanil is 100 times more potent than fentanyl. The amount it takes to kill a grown man is the size of a grain of salt.
Potassium chloride, the stuff they use to stop your heart during an execution, is also the same stuff they use as salt-substitute in low sodium salt products. Too much of that salt substitute can definitely kill you and there’s even a tiny warning on the label if you look for it. If you search you can find several cases of death attributed specifically to this product.
breathing in a 100% oxygenated atmosphere can and will cause more damage than good
The air you normally breathe consists of 80% nitrogen and 20% oxygen
You can breathe comfortably with 20%
Nitrogen acts as a noble gas atleast if you only consider noble gasses as gasses that you can breathe without too much risk
Oxygen on the other hand is pretty volatile and can actually literally kill you if you breathe it in too much
If you have 100% oxygen it means you can literally poison yourself with the thing you need to live with which lowers your life expectancy
Breathing in pure oxygen is not a bad thing as long as you don’t do it 24/7 unless you have to (mechanical ventilators LTIC dont actually give you pure oxygen it just makes you breathe if you cant control your diaphragm)
Because bananas are ever so slightly radioactive, if you eat 50,000 of them in a short time frame you’ll die from radiation.
The downside is your stomach would explode and kill you long before you got anywhere close to 50,000.
Just a couple bottle of blue juice valve oil for brass instruments can easily kill you. I learned this in drum corps after my buddy went to the ER because it slowly worked its way out of his valves and up his lead pipe and back out his mouthpiece.
Neutrinos are subatomic particles that barely interact with normal matter, and yet [if you were close enough to a supernova] and somehow survived everything else, there would be *so many* neutrinos that you would nonetheless receive a lethal radiation dose.
[ad_2]
Mantas Kačerauskas
Source link

[ad_1]
“We moved to Houston from California and every time family would come to visit, we had to take them to the NASA Space Center. It held no interest to me and I hated the long, hot summer days touring the Space Center. These are my German grandparents, and I remember it was really windy and stuff was blowing in my eyes and I was miserable but my grandma would have none of my bad attitude, so here she is yelling at me for not looking up at the camera.”
(submitted by Linda)
[ad_2]
Team Awkward
Source link

[ad_1]
“My daughter loved going to school but you wouldn’t know it from her first school photo.”
(submitted by Phill)
The post Teal Steel appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
Heath Ledger, who tragically died in 2008 at age 28, had plans to star in another movie before his accidental overdose, as revealed by director Stephen Gaghan, who had envisioned him for a film adaptation of Malcolm Gladwell’s book Blink: The Power of Thinking Without Thinking.
Stephen, who famously directed the 2005 political thriller Syriana, claimed on a recent episode of the Developmental Hell podcast, a spin-off of Malcolm Gladwell’s Revisionist History show, that Heath had other aspirations in the early 2000s.
Moreover, the filmmaker revealed he had an idea to turn Malcom’s book, Blink: The Power of Thinking Without Thinking, into a movie.
The non-fiction explores the concept of rapid cognition, or the ability to make quick decisions and judgments without conscious thought.
In his work, Malcolm, whose writings often deal with the unexpected implications of research in the social sciences, delves into the factors that influence these split-second decisions and discusses their implications in various aspects of life, including psychology, business, and everyday interactions.
Image credits: Disney
However, after Heath’s death, “I just had to put a pin in it,” Stephen admitted.
In 2008, after the Oscar-winning actor star’s tragic passing, the director got a call from Heath’s father, Kim, and Heath’s friend, breaking the news about his death.
Stephen recalled: “They were there with the body and our script was in bed with him, and your book was on the bedside table.
“I think my number was on the script, like, written.
“These guys, as you can imagine, they are in shock, and they dialed that number, and I don’t know why.”
On the podcast, Stephen and Malcolm said that they had initially teamed up to make the book Blink into a movie with Leonardo DiCaprio in the starring role, as per Sky News.
Image credits: FilmIsNow
However, the men finally settled on Heath, who “would be better for the role,” Stephen said.
Leonardo was “really involved” in pitching the movie to studios, and they had “essentially a green light at Universal [Studios]” for the project. But, after Stephen met Heath, his vision for the movie changed, he said, Sky News reported.
The 58-year-old director recalled: “I had met Heath Ledger and I’d gotten to be very, very close with him instantly.
“I just had a real connection with him that was, kind of, unusual and very special to me.
“I got really excited, and I started seeing him as the main character. Once I started seeing that, I couldn’t unsee it.”
Image credits: Focus Features
Upon receiving the devastating phone call breaking the news of The Dark Knight star’s death, Stephen recalled: “I’m in an airport with my wife, [Minnie Mortimer], just going from one place to another, and I literally just collapse, never happened to me before or since.
“My feet went out from under me. I just literally sat down because I was like, what?”
He continued: “The emotion, what [Heath’s father and friend] were going through, I should not have been a party to in any way really, and yet as a human or as somebody who just cares, I just was there and I was listening and my wife was looking at me.
“I remember her face and I was just like, I was speechless.
“I just listened and listened and listened. It was just really, really sad. And it’s still sad.”
Heath left behind his at-the-time two-year-old daughter, Matilda Rose, who he welcomed with his partner, Michelle Williams.
Image credits: StageRightSecrets
In 2005, the late actor told of his now 18-year-old daughter to InTouch: “Matilda is adorable and beautifully observant and wise.
“Michelle and I love her so much. Becoming a father exceeds all my expectations.
“It’s the most remarkable experience I’ve ever had — it’s marvelous.”
After three years together, Heath and the actress, who was his costar in Brokeback Mountain, split in September 2007, just a year before his death.
Heath was found in an apartment in SoHo, New York City, USA, that he had been renting on January 22, 2008, The New York Times reported at the time.
The police said at the time that the actor’s body had been found after a masseuse arrived at his apartment for her regular appointment with him.
A housekeeper had let the masseuse in before knocking on Heath’s bedroom door, in vain. The housekeeper and the masseuse subsequently pushed open the bedroom door and saw Heath unconscious.
Later reports suggested that the Perth native had been struggling with insomnia and anxiety leading up to his death.
Nevertheless, Heath’s exact mental state at the time of his death is not definitively known.
[ad_2]
Ugnė Lazauskaitė
Source link

[ad_1]
Not exactly once, I sincerely hope. That would be tragic.
“Apparently, today’s leap day is causing a denial of service
error being able to log into our Cemetery Management software
due to some bad date calculations,” writes
Steve D.
To be fair, he points out, it doesn’t happen often.
In all seriousness, unusual as that might be,
I do have cemeteries on my mind this week. I recently discovered
a web site that has photographs of hundreds of my relatives’ graves,
and a series of memorials for “Infant Spencer”
and “Infant Strickland” and “Infant McHugh”, along with another named
dozen deceased age 0. Well, it’s sobering. Taking a moment here in
thanks to Doctors Pasteur, Salk, Jenner, et.al. And now, back to our
meagre ration of snark.
Regular
Peter G.
found a web site that thought Lorem Ipsum
was too inaccessible to the modern audience, so they
translate it to English. Peter muses
“I’ve cropped out the site identity because it’s a smallish
company that provides good service and I don’t want to
embarrass them, but I’m kinda terrified at what a paleo
fap pour-over is.
Or maybe it’s the name of an anarcho-punk fusion group?”
“Beat THAT, Kasparov!” crows
Orion S.
“Insert Disc 2 into your Raspberry Pi”
quoth an anonymous poster.
“I’m still looking for a way to acquire an official second installation disc for qt for Debian.”
Finally,
Michael P.
just couldn’t completely ignore this page, could he?
“I wanted to unsubscribe to this, but since my email is not placeholderEmail, I guess I should ignore the page.”
I’m sure he did a yeoman’s job of trying.
[ad_2]
Lyle Seaman
Source link

[ad_1]
Tags: wednesday, it is wednesday my dudes, my dudes, meme, frog
6661 points, 630 comments.
[ad_2]

[ad_1]
Ah, the grapefruit, that unsuspecting orb of morning disappointment. It’s like chewing on a soggy sponge that’s been marinated in bitterness. Of course doctors and nutritionists love it. They love everything that takes out joy of your life.
The post Did You Know? If You Replace Potato Chips With Grapefruit… first appeared on Crazy Funny Pictures.
[ad_2]
liver
Source link

[ad_1]
A woman’s intrusive tactic to spy on her partner has sparked conversation online about the lengths some people go to in order to put their trust issues to rest.
TikToker Abby Paige suggested she monitored her partner’s internet activity thanks to an app that allowed her to see what they were up to online.
It all began with a video captioned “like i know what youre doin stink” that shows Abby smirking with an on-screen text that reads, “when their phone is always hidden from you but they’re connected to your wifi.” Demonic laughter can be heard in the background, too.
Image credits: abby.paige
@abby.paige like i know what youre doin stink😘 #real #relatable #foryoupage #fyp #cheater ♬ Teddy Bear x prodbyrl – Terror
The intriguing six-second clip, viewed almost 700,000 times, piqued users’ curiosity, making Abby upload a follow-up video explaining her strategy in greater detail.
In the next clip, the young woman claimed that her Xfinity WiFi service can be set up to track what other users are doing on the network. “I did this on accident, I didn’t even mean to do it,” she admitted.
Abby continued by sharing her phone’s screen with the Xfinity app open. As she revealed, the app allows her to assign a wifi-connected device to a specific user.
The TikToker showed she had her home’s smart TV and Xbox assigned.
Image credits: Drazen Zigic
Image credits: Firmbee
Then, she went to the “manage 1 person” part of the app, and demonstrated how she was able to view the user’s most used apps (in the case shown on screen, it was Instagram and X), how much time they’d been on them, the peak hours of app use, and total wifi use time.
However, Xfinity’s Sherlock Holmes resources are limited, as the company has confirmed their services can’t be used to track a person’s history through a router or modem.
“The only way to see your complete browsing history would be through the ‘History’ or ‘Security’ settings tab on the individual [internet] browsers used,” they wrote on a blog post.
Image credits: abby.paige
Additionally, anyone with administrator-level capabilities can change settings in the Xfinity app, restricting users to specific times of the day or night.
People had mixed feelings about Abby’s anti-cheating technique, with some raising ethical concerns about spying on someone’s online behavior, and others labeling her an “MVP.”
“I’d be outta there so quick. Not cause I’m not loyal but because I refuse to be in a relationship with no trust,” someone wrote.
“Some of yall asking how to do it in the comment section, like yall need to be leaving that person if you feel the need to do this…” another person said.
A third person agreed, “if a man lost my trust this hard you better believe I’m leaving. I’m not going to invade his privacy. I’m not babysitting anyone.”
Image credits: abby.paige
@abby.paige Replying to @Karma Renee #greenscreen #real #relatable #foryoupage #fyp ♬ original sound – Abbs 🙂
“This isn’t a flex. HELLA invasion of privacy & just flat out psychotic…how do u do it please,” someone else joked.
Recently, another case of technology being employed for detective purposes came to light when a woman found out her husband had been unfaithful after an Airbnb host shared a security camera photo of the married guest with another woman.
The “superhost” apparently decided to take vengeance after the man, Shawn Mackey, violated the house’s strict no-party rule and left a negative review about the property.
Mackey then filed a lawsuit against the host and Airbnb, alleging “extreme emotional distress” and “public humiliation” due to the incident.
[ad_2]
Donata Leskauskaite
Source link

[ad_1]
NEW YORK—Moaning with pleasure as they revealed that this was exactly what Daddy needed, the nation’s sick freaks held a press conference Friday to announce their plans to get off on that. “Oh yeah, baby, that’s exactly the crazy shit that’ll ring our cherries,” said Carl Dabrowski, one of dozens of the nation’s perverted weirdos who went on to lick their lips and mutter under their breath, “Good, good, really fucking good,” as they rubbed an open palm over their own inner thigh. “Gimme some more of that nasty stuff you’re dishing out. Real sicko shit, y’know? Stuff that’d make some people puke. Not me, though. I like it. Oh God, yeah. Fucking got my number there, baby. I’m getting full up like a bull down there. Yum, yum, yum.” At press time, the nation’s sick freaks specified that by “that” they specifically meant Cat Sebastian’s steamy historical romance novel Unmasked By The Marquess.
[ad_2]

[ad_1]
Like with everything else in life, when it comes to hotels and Airbnb, what you pay for is what you get. But every once in a while, travelers come across places to stay that exceed expectations in all the wrong ways.
So we’ve gathered some of the worst hotel and Airbnb experiences and failures that netizens simply had to shame online. We also got in touch with veteran traveler Monica Stott to learn a bit more. So get comfortable as you scroll through, upvote the worst fails, and be sure to share your own ideas and stories in the comments section below.
#3
Bored Panda got in touch with veteran traveler Monica Stott and she was kind enough to share some of her experience with us. First and foremost, we wanted to hear what advice she would give her younger self in regards to traveling.
“You don’t need all that stuff! Find your favorite travel outfit and stick with it and forget about all the ‘just in case’ items. You never need them. But pay for extra cloud storage and backup your photos and videos. Those photos are priceless, look after them,” she added, and for good reason, every single country in the world has something beautiful to capture.
When it comes to hotels, everyone has their own philosophy. Some prefer to rough it out and save their money for tickets and activities, while others enjoy living in the lap of luxury. Naturally, given Monica’s experience, we wanted to hear her opinion on when to splurge and when to save.
#8
“If we lived in a perfect world then we’d all have plenty of time and plenty of money and we’d be free to make the choice about which is most important to us. But we don’t live in a perfect world and it’s not normally a choice. Some of us have one or the other, most of us don’t have enough of either!”
#10
#11
“Just remember that nothing has to be forever. You might prioritize time at one stage of your life (perhaps when your children are little) and then prioritize money for a while (perhaps in your 50s so you can retire young). There’s no right or wrong, we all just do what feels right at the time,” she shared with Bored Panda.
“I definitely prefer traveling slowly and paying less to do so. But do I have 10 weeks to slowly travel around Europe by train? No, no I don’t. So, at the moment, I’ll be taking a quick flight every other weekend to European cities for a 2-night break!” After all, as this article shows, not all hotels are made equal, so it’s best to know what to look out for.
We also asked Monica to share her own tips on how to prepare for a trip. “I don’t like to over-prepare because it can take the joy out of stumbling upon things and enjoying the moment. There are a few things I like to do though: Book my accommodation, know how I’m getting from the airport/train station to my accommodation, and roughly know how much things will cost.”
“Have a short list of things I want to see, a few restaurants I’d like to try and plot these places on Google Maps so I don’t get lost.” If you want to learn more travel tips, check out Monica’s Instagram as well as her blog. For those who weren’t turned off hotels and Airbnb from this article, check out some travel ideas for 2024.
#22
Apparently, the hotel tried covering up damage done by a previous guest.
#23
#24
#30
#31
The pool was included in our stay. We also rented the whole house which in my mind should include privacy and no interruptions from the homeowner.
#35
#37
#47
#50
#52
#58
Apparently, the monkey emptied two tubes of powdered Celsius I had given my friend, so there’s an insane macaque hopped up on Celsius.
#66
I’ve been sitting on top of the duvet for the past 3 hours. I showered, then pulled the covers back to find this… Smells funky.
#70
#75
On vacation with my kid, I went to check in at 2:30, and my hotel asked that I come back in an hour to pick up my key card because my room wasn’t ready yet. Later, I came back to a long line with 100 more people behind me. They had only one single working bathroom and no water.
#77
#86
#94
#101
#102
#107
#108
#109
#112
#121
[ad_2]
Eglė Bliabaitė
Source link

[ad_1]
Brian was working on landing a contract with a European news agency. Said agency had a large number of intranet applications of varying complexity, all built to support the news business.
Now, they understood that, as a news agency, they had no real internal corporate knowledge of good software development practices, so they did what came naturally: they hired a self-proclaimed "code guru" to built the system.
Said code guru was notoriously explosive. When users came to him with complaints like "your system lost all the research I've been gathering for the past three months!" the guru would shout about how users were doing it wrong, couldn't be trusted to handle the most basic tasks, and "wiping your ass isn't part of my job description."
With a stellar personality like that, what was his PHP code like?
$req000="SELECT idfiche FROM fiche WHERE idevent=".$_GET['id_evt'];
$rep000=$db4->query($req000);
$nb000=$rep000->numRows();
if ($nb000>0) {
while ($row000=$rep000->fetchRow(DB_FETCHMODE_ASSOC)) {
$req001="UPDATE fiche SET idevent=NULL WHERE idfiche=".$row000['idfiche'];
$rep001=$db4->query($req001);
}
}
It's common that the first line of a submission is bad. It's rare that the first 7 characters fill me with a sense of dread. $req000. Oh no. Oh noooo. We're talking about those kinds of variables.
We query using $req000 and store the result in $rep000, using $db4 to run the query. My skin is crawling so much from that that I feel like the obvious SQL injection vulnerability using $_GET to write the query is probably not getting enough of my attention. I really hate these variable names though.
We execute our gaping security vulnerability, and check how many rows we got (using $nb000 to store the result). While we have rows, we store each row in $row000, to populate $req001– an update query. We execute this query once for each row, storing the result in $rep001.
Now, the initial SELECT could return up to 4,000 rows. That's not a massive dataset, but as you can imagine, this whole application was running on a potato-powered server stuffed in the network closet. It was slow.
The fix was obvious- you could replace both the SELECT and the UPDATEs with a single query: UPDATE fiche SET idevent=NULL WHERE idevent=?– that's all this code actually does.
Fixing performance wasn't how Brian proved he was the right person for more contract work, though. Once Brian saw the SQL injection, he demonstrated to the boss how a malicious user could easily delete the entire database from the URL bar in their browser. The boss was sufficiently terrified by the prospect- the code guru was politely asked to leave, and Brian was told to please fix this quickly.
[ad_2]
Remy Porter
Source link