ReportWire

Category: Humor

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

  • Control Tree

    Control Tree

    [ad_1]

    User interfaces tend to map fairly naturally to trees as a data structure. In the modern world where we’ve forgotten how to make native UIs and do everything as web applications pretending to be native, the “tree” model is explicit via the DOM. But even in native UIs, we tend to group controls into containers and panels and tabs.

    Now, there may be cases where we need to traverse the tree, and trees present us with a very natural way to traverse them- recursion. To search the tree, first search the subtree. Recursion can have its own problems, but the UI tree of a native application is rarely deep enough for those problems to be an issue.

    Nick inherited some VB .Net code that iterates across all the controls in the screen. It does not use recursion, which isn’t a problem in and of itself. Every other choice in the code is the problem.

    For Each x In Me.Controls
        Select Case (x.GetType.ToString)
            Case "System.Windows.Forms.Panel"
                For Each y In x.Controls
                    Select Case (y.GetType.ToString)
                        Case "System.Windows.Forms.TabControl"
                            For Each z In y.Controls
                                Select Case (z.GetType.ToString)
                                    Case "System.Windows.Forms.TabPage"
                                        For Each w In z.Controls
                                            If w.Tag = "Store Info" Then
                                                strName = CheckForExceptions(w.Name)
                                                iIndexStoreInfoValues = (arrStoreInfoValues.Length - 1)
                                                If w.GetType().ToString() = "System.Windows.Forms.CheckBox" Then
                                                    arrStoreInfoValues(iIndexStoreInfoValues) = CType(w, CheckBox).CheckState
                                                Else
                                                    arrStoreInfoValues(iIndexStoreInfoValues) = w.Text
                                                End If
                                                ReDim Preserve arrStoreInfoValues(iIndexStoreInfoValues + 1)
                                            End If
                                        Next
                                End Select
                            Next
                        Case "System.Windows.Forms.GroupBox"
                            For Each z In y.Controls
                                If z.Tag = "Store Info" Then
                                    iIndexStoreInfoValues = (arrStoreInfoValues.Length - 1)
                                    arrStoreInfoValues(iIndexStoreInfoValues) = z.Text
                                    ReDim Preserve arrStoreInfoValues(iIndexStoreInfoValues + 1)
                                End If
                            Next
                        Case Else
                            If y.Tag = "Store Info" Then
                                iIndexStoreInfoValues = (arrStoreInfoValues.Length - 1)
                                strName = CheckForExceptions(y.Name)
                                arrStoreInfoValues(iIndexStoreInfoValues) = y.Text
                                ReDim Preserve arrStoreInfoValues(iIndexStoreInfoValues + 1)
                            End If
                    End Select
                Next
            Case Else 
                For Each y In x.Controls
                    If y.Tag = "Store Info" Then
                        iIndexStoreInfoValues = (arrStoreInfoValues.Length - 1)
                        arrStoreInfoValues(iIndexStoreInfoValues) = y.Text
                        ReDim Preserve arrStoreInfoValues(iIndexStoreInfoValues + 1)
                    End If
                Next
         End Select
    Next
    

    At its deepest, this particular pile of code has 12 levels of indenting. Which I’ve cleaned up a bit here- as submitted, the code was using 8 spaces per tab stop, which made it entirely unreadable in a window of reasonable width. Not that it’d be readable at any width, mind you.

    I’m not going to go line by line through this code. It’s not worth the psychic damage I’d inflict upon you. But I do want to call out a few highlights.

    Note the repeated uses of ReDim Preserve arrStoreInfoValues.... This is an ugly VB hack for pretending to have arrays that can grow- ReDim creates an entirely new array, at the new size, and Preserve ensures that all the data in the original array gets copied over to the new array. It’s expensive and time consuming, and .NET has plenty of built-in data structures that make this unnecessary. Likely, this was inherited from some VB6 code that got ported over to .NET. It was a weirdly common convention in VB6, instead of using any sort of data structure that can grow.

    In a few cases, we use a Select with only one branch to it- making it a fancy If statement but less readable. Now, there’s a good logic to this, I suppose, in that you may want more branches at some point, but I still hate reading it. Even worse, those switch statements are switching on the string representation of the type of the control. That particular code stench is always a “fun” thing to see, and it hints at an easy way to clean up this code: refactor those branches into methods, and use function overloading and the type system to replace the switches- if that were even necessary, as many of the branches do basically the same thing anyway.

    But there’s no real point to cleaning up this code, because as Nick discovered: it didn’t actually work. The assumptions the code makes about how the controls are organized are false assumptions. It misses loads of controls in its traversal.

    Nick replaced it with a 10 line recursive function that never needs to check the GetType of any of the controls.

    [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

  • Paddington Bear Photoshopped Into Iconic Movie Scenes

    Paddington Bear Photoshopped Into Iconic Movie Scenes

    [ad_1]

    X user (formerly known as Twitter, before Elon ruined it) @Jaythechou photoshops Paddington into movie scenes, and has been doing it every day for 1050 days, at the time of writing. Some are beautifully subtle, others are larger than life, but all are skilfully done and a lot of fun. We recommend you check out his work for yourself, but in the meantime, here is a Top 30, as voted by us. In no particular order.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    Paddington Bear inserted into iconic movie scenes.

    [ad_2]

    liver

    Source link

  • Men Explain Why They Prefer Low-IQ Wives

    Men Explain Why They Prefer Low-IQ Wives

    [ad_1]

    No matter how vacuous and empty a man’s brain is, his life partner should always be dumber. The Onion asked men why they prefer low-IQ wives, and this is what they said.

    Daniel Barnes, Historian

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “Whatever the reason, my preference is in no way a reflection of my own insecurities as a man.”

    Isaiah Valdez, Gravedigger

    Isaiah Valdez, Gravedigger

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “I’m a simple guy. I just want a nice, traditional woman I can easily manipulate.”

    Jack Thompson, Welder

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “It makes it easier to explain to them why I have so many other wives.”

    Frank Alonzo, Optician

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “I’m the dumbest person at work, and I’m sure as hell not coming home to being the dumbest person there too.”

    Todd Polk, Construction Worker

    Todd Polk, Construction Worker

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “A woman who can think for herself is always less than a month from breaking up with me.”

    Randall Judd, Microbiologist

    Randall Judd, Microbiologist

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “It would feel good to win at Connect Four for once.”

    Mack Bowers, Economist

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “I feel more secure in a relationship when I prevail at sorting objects by shape and even color.”

    Brian Pearlman, Chef

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “It’s a lot easier to cheat on someone when you can just distract them by ringing a small bell.”

    Doug Vreeland, Mechanic

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “A marriage between equals has the best chance to succeed.”

    Eric Deming, Delivery Driver

    Eric Deming, Delivery Driver

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “They’re easier to steal money from.”

    Howard Sahlman, Building Inspector

    Howard Sahlman, Building Inspector

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “Even though IQ is an arbitrary rubric, it’s good to have a number to throw in their faces when they disagree with you.”

    Kyle Hotchkiss, Musician

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “I prefer a cool, low-maintenance woman who’s happy just being locked in a barn with some lettuce after sex.”

    Jon Robinson, Psychologist

    Jon Robinson, Psychologist

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “There’s nothing more endearing to me in a partner than someone who repeatedly steps on rakes that pop up and hit them in face.”

    Brandon Kirk, Contractor

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “What can I say? I want dumb kids.”

    Randy Mireaux, Veterinarian

    Randy Mireaux, Veterinarian

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “My last sex doll got really arrogant and bitchy after it received its master’s, so I’m not dealing with that again.”

    Tristan Morrow, Doctor

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “I refuse to budge from my belief that Chester A. Arthur is the current U.S. president, and I won’t let anyone tell me otherwise.”

    Eric Landry, Parts Specialist

    Eric Landry, Parts Specialist

    Image for article titled Men Explain Why They Prefer Low-IQ Wives

    “It sounds like eugenics, so I’m on board.”

    You’ve Made It This Far…

    You’ve Made It This Far…

    [ad_2]

    Source link

  • 67 Hypocritical Bosses Who Cry “Nobody Wants To Work Anymore” While Mistreating Their Employees (New Pics)

    67 Hypocritical Bosses Who Cry “Nobody Wants To Work Anymore” While Mistreating Their Employees (New Pics)

    [ad_1]

    During the Great Resignation, when millions of people left the workforce, the phrase “Nobody wants to work anymore” became a common sentiment among HR and business leaders who were having trouble with hiring.

    However, as University of Calgary professor and researcher Paul Fairie pointed out referencing newspapers and other publications, these words have been thrown around every decade for at least the past century — going as far back as 1894.

    So in an attempt to remind everyone that change starts from within, we went digging through the ‘Antiwork‘ subreddit and put together a list of posts about hypocritical bosses who should take a good look in the mirror before blaming the common folk for being lazy.

    [ad_2] Ilona Baliūnaitė
    Source link

  • Replacing a City

    Replacing a City

    [ad_1]

    Mateus inherited some code where half the variables were named things like strAux1 and strAux2. It was a data driven application, and the data had some conventions that weren’t always ideal; for example, every city also had an associated abbreviation stored in its name field, e.g., “SAO PAULO (SP)” and “RIO DE JANEIRO (RJ)”.

    The original developers wanted to be able to present the names of cities without the abbreviation, so they wrote this:

    RTRIM(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
    REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
    REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
    REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
    REPLACE(REPLACE(UPPER(ISNULL(C.CITY,'')),'(RS)',''),
    '(SC)',''),'(PR)',''),'(SP)',''),'(MG)',''),'(RJ)',''),
    '(DF)',''),'(ES)',''),'(MS)',''),'(MT)',''),'(BA)',''),
    '(PI)',''),'(AL)',''),'(TO)',''),'(PE)',''),'(PA)',''),
    '(CE)',''),'(RN)',''),'(MA)',''),'(AP)',''),'(RR)',''),
    '(RN)',''),'(AM)',''),'(AC)',''),'(XX)',''),'(EX)',''),
    '(SE)',''),'(PB)',''),'(GO)',''),'(RO)',''))
    

    Whitespace added for readability(?).

    The good news is that I don’t think Brazil is going to be adding any major cities deserving of their own abbreviation any time soon. But by effectively hard-coding the list of viable abbreviations instead of using more advanced string splitting (or *gasp* a regex), or y’know actually normalizing the data correctly, they’ve done a nice job making the code harder to maintain.

    REPLACE REPLACE REPLACE REPLACE this code.

    [Advertisement]
    ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

    [ad_2]

    Remy Porter

    Source link

  • MTG Releases New Tell-All Book – Bill Tope, Humor Times

    MTG Releases New Tell-All Book – Bill Tope, Humor Times

    [ad_1]

    MTG shovels the dirt on friends and foes alike in new tell-all book.

    Representative Marjorie Taylor Greene (R), representing Georgia’s 6th Congressional district since 2021, has come out with a tell-all book, a memoir of her years of political enlightenment which she states began in 2015, with the escalator ride taken in Trump Tower by future President Donald J. Trump.

    tell-all book, Marjorie Taylor Greene
    MTG counts how many actual facts are in her new tell-all book. Photo by Gage Skidmore, CC BY-SA 2.0.

    In the book, titled I’d Drink His Bathwater: My Loyalty to The Donald, Greene recounts the highlights of her career so far. For example, she promulgates many controversial political (conspiracy) theories, including that the 9/11 2001 attack on the Twin Towers in New York was a so-called inside job, perpetrated by elements of the “deep state.” Greene states the actual perpetrators were not Saudi radicals, but in fact Jews and seminal figures of the nascent Black Lives Matter (BLM) movement.

    Another theory put forth by Greene is that the spate of destructive wildfires which ravaged the Pacific Northwest some five years ago was the work of space lasers manipulated by Rothschild family “bad Jews.” Said Greene: “They’re always up to shit.”

    Still another conspiracy theory she sets forth in detail is that rogue Democrats, also enmeshed in the deep state, operated a cannibalistic child-sex-trafficking ring out of a Washington D.C. pizza parlor. “They wasn’t just puttin’ pepperonis on them pies,” claimed Greene in a post on Twitter. Hillary Clinton, stated Greene, “was the bitch behind this disgraceful episode.”

    Greene, who divorced her husband of more than 30 years in 2022, has been linked romantically in the tabloids with former President Donald J. Trump. When Trump was temporarily incarcerated in Fulton County, Georgia last year, to have his mug shot and fingerprints taken, Greene allegedly had a conjugal visit with the ex-president. Trump reportedly said that if such interludes continued to occur, then he’d “be happy to spend more time in the clink.”

    MTG’s political career has been a mixed bag. Although she was stripped of her committee assignments during her first term, due to imprudent public remarks and posts on social platforms, Greene. a fast friend of former Speaker Kevin McCarthy, has in her second term gained membership on the House Committee on Oversight and Accountability and the House Committee on Homeland Security where, she wrote, she has “consistently raised hell.” She has personally introduced bills to impeach some 40 members of the Biden administration, including all the cabinet members.

    On Jan. 20, 2021, Greene introduced a bill of impeachment against newly-inaugurated President Joe Biden. It was his first day on the job. And she has said that she would move to vacate the Speaker’s chair if new Speaker Mike Johnson managed to pass legislation which would afford military aid to Ukraine, which is involved in an on-going war with Russia.

    “That there’s a territorial dispute,” cried Greene on the House floor, gnashing her teeth. “We got no business helping out them Ukraine Nazis,” she recounted, quoting herself. Greene went on to write that, when Donald Trump is reelected, then “he’ll nuke them sons’o’bitches!”

    Green concludes her tell-all book by looking to the future, a future with Donald J. Trump at America’s helm. “Trump has already had a big effect on my life,” she wrote. Emulating the 45th president, she has taken up golf. She said her low score matches her record at the dead lift — 325.

    “I would,” she quipped on the last page of the memoir, quoting the book’s title, “drink Trump’s bath water.”

    Bill TopeBill Tope
    Latest posts by Bill Tope (see all)
    ShareShare

    [ad_2]

    Bill Tope

    Source link

  • Parent Problem: Giving The Kids a Talk On Drugs

    Parent Problem: Giving The Kids a Talk On Drugs

    [ad_1]

    This is a weird request to ask your husband. Why does she want her husband to talk to kids while he’s high? She’s obviously not suited to be a parent.

    The post Parent Problem: Giving The Kids a Talk On Drugs first appeared on Crazy Funny Pictures.

    [ad_2]

    liver

    Source link

  • Name a Valid Email

    Name a Valid Email

    [ad_1]

    Correctly validating an email address, per the spec, is actually surprisingly hard. This is, in part, because there are a lot of features in the email address that nobody ever uses. Even so, you can easily get close enough with basic regex, and that’s what most people do.

    Niels H‘s predecessor wanted to go a little farther. They wanted to ensure that the supplied domain name had a valid DNS entry. Overkill? Probably. But, fortunately for them the .NET framework supplies a handy System.Net.Dns.GetHostEntry method, which resolves a domain name. That at least makes the problem easy to solve.

    It makes the problem easy to solve if you use it. But why use a built in method when you can do it yourself?

    private bool IsValidDomain(string EmailAddress)
    {
      List<byte> ByteList = new List<byte>();
      string DNS = GetDnsAddress();
      if (DNS == "") {
        throw new Exception("No DNS is found.");
      }
      if (EmailAddress.Contains("@")) {
        try {
          var HostName = EmailAddress.Split('@')[1];
          ByteList.AddRange(new byte[] { 88, 89, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 });
          var UDPC = new UdpClient(DNS, 53);
          foreach (string S in HostName.Split('.')) {
            ByteList.Add(Convert.ToByte(S.Length));
            char[] chars = S.ToCharArray();
            foreach (char c in chars)
              ByteList.Add(Convert.ToByte(Convert.ToInt32(c)));
          }
    
          ByteList.AddRange(new byte[] { 0, 0, Convert.ToByte("15"), 0, 1 });
          byte[] Req = new byte[ByteList.Count];
          for (int i = 0; i < ByteList.Count; i++)
            Req[i] = ByteList[i];
          UDPC.Send(Req, Req.Length);
          IPEndPoint ep = null;
          byte[] recv = UDPC.Receive(ref ep);
          UDPC.Close();
          var Resp = new int[recv.Length];
          for (int i = 0; i < Resp.Length; i++)
            Resp[i] = Convert.ToInt32(recv[i]);
          int status = Resp[3];
          if (status != 128) {
            return false;
          }
          int answers = Resp[7];
          if (answers == 0) {
            return false;
          }
        } catch {
          return false;
        }
      } else {
        return false;
      }
      return true;
    }
    

    Right off the bat, IsValidDomain is a badly named function, and badly designed. It takes a string containing an email address, and returns true or false if the email address contains a valid domain. I’d argue that a cleaner design would be to take the domain name part as the input, and let some other function worry about splitting an email address apart.

    But that misses the forest for the trees, doesn’t it. This function has it all. It starts by hand-laying out the byte structure of a DNS request packet. Then iterating across a string to convert each character into a byte. And since we’re doing that in a List structure, we need to convert it into an array- but we can’t use the ToArray function, so we manually copy each byte into the array.

    Then we send and receive a UDP packet for our DNS request. Note that we do create a variable to hold an IPEndPoint, the return value of GetHostEntry, which hints that maybe at some point, someone thought about using the build in function.

    But once we’ve gotten our bytes back from the UDP packet, we copy the bytes into an array of 32-bit integers, simply upscaling each byte into 32-bits. Why? I have no idea. We still treat the array like bytes, moving to specific offsets to detect whether or not our request succeeded.

    As a final note, I’m not the kind of person that gets hung up on “return from only one place in a function!” type rules, I think multiple returns are fine and can be cleaner to read in a lot of cases. But this particular one strikes me as annoyingly complex to follow, since we’re not just returning from multiple locations, but from multiple levels of blocks.

    On the upshot, I’ve learned a little something about the structure of DNS packets today.

    [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

  • Ripping The Headlines Today – Paul Lander, Humor Times

    Ripping The Headlines Today – Paul Lander, Humor Times

    [ad_1]

    Making fun of the headlines today, so you don’t have to

    The news, even that about another Bills playoff loss, doesn’t need to be complicated or 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:

    playoff loss
    The Bills suffer yet another playoff loss to the Chiefs.

    Bills fans pelt Patrick Mahomes with snowballs after another playoff loss to Chiefs

    Luckily for Mahomes, most missed him ‘wide right.’

    Trump: ‘We’re going to build an iron dome over our country’

    Adding: ‘And make Mars pay for it!’

    Supposedly magic jeans promise to reduce cellulite

    I’m guessing they’re confusing it with magic genes.

    Andrew Yang endorsed Dean Phillips over Biden

    So, someone we forgot about is for someone we never heard of!

    Melbourne crime boss accidentally shot himself in the testicle

    … Ironically, showing his patriotism by shooting himself ‘down under.’

    Gen Zers who want the buzz but not the hangover are fueling a nonalcoholic spirits boom

    Although it’s making them so boring, look for them to be called Gen Zzzzzzzz.

    Ron DeSantis officially suspended his campaign for President. All that leaves are two Republican candidates

    One wears too much makeup, dyes their hair, lies about their weight, and the other is Nikki Haley.

    Florida man sues Dunkin’ for $50,000 in damages after claiming ‘exploding toilet’

    … In fairness, probably just the toilet getting even.

    Happy 53rd birthday, Kid Rock

    At that age, you might want to change your name to ‘Middle Aged Elevator Music.’

    D.C sees biggest snowfall in two years as 3 to 5 inches frost region

    The last time the outside of the Capitol was that white was during the January 6 insurrection!

    Farmer claims he was offered lap dance if he agreed to wind turbine on his land

    You’d think a b%$w job would be more appropriate.

    US finds Bayer’s genetically modified corn can be safely grown — but there’s a big catch

    It’ll give you quite a headache.

    Bill Belichick, Patriots ‘part ways’ after 24 seasons, 6 Super Bowl titles

    Man, that took a pair of deflated balls from owner Bob Kraft.

    Bill O’Reilly is furious as his own titles get removed after supporting Florida book bans

    Who?

    Paul LanderPaul Lander
    Latest posts by Paul Lander (see all)
    ShareShare

    [ad_2]

    Paul Lander

    Source link

  • It Was Almost The Perfect Family Photo

    It Was Almost The Perfect Family Photo

    [ad_1]

    “We were trying to work the self timer for a family Christmas photo. The timer went off a little sooner than expected.”

    (submitted by The Dickerson family)

    The post Timer’s Up appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • Coked Up You Probably Wouldn't Give This To A Baby Today

    Coked Up You Probably Wouldn't Give This To A Baby Today

    [ad_1]

    “My grandma in the early 70s introducing me to the finer things in life.”

    (submitted by IG @lori_works_from_home)

    The post Coked Up appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • Glamour Down Under I Blame Our Neighbor For This

    Glamour Down Under I Blame Our Neighbor For This

    [ad_1]

    “Toowoomba, QLD, 1997. A family friend who lived next door wanted to get into photography and needed practice so we were the guinea pigs.”

    (submitted by IG @tia_vz)

    The post Glamour Down Under appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • Pull up to some leather bound NFL memes from the Divisional Round (60 Photos)

    Pull up to some leather bound NFL memes from the Divisional Round (60 Photos)

    [ad_1]

    The Ravens hammered the Texans, the Niners just squeaked out a win against the Packers, the Lions won a SECOND playoff game, and the Chiefs took down the Bills… again! But Jason Kelce undoubtedly stole the show this weekend, along with all of our hearts!

    So we’ll let him lead off this Divisional Round edition of NFL memes.

    [ad_2]

    Stephen

    Source link

  • “We Face A Tangible Threat”: Scientists Speak About “Zombie Viruses” That Could Spark Pandemic

    “We Face A Tangible Threat”: Scientists Speak About “Zombie Viruses” That Could Spark Pandemic

    [ad_1]

    Melting Arctic ice in Siberia may release ancient “zombie” viruses, posing a potential global health crisis, leading scientists have recently warned. Geneticist Jean-Michel Claverie, professor emeritus of medicine and genomics at Aix-Marseille University, told The Guardian: “We now face a tangible threat, and we need to be prepared to deal with it. It is as simple as that.”

    The World Wide Fund for Nature (WWF) has already reported that the Arctic’s average temperature has risen at a rate three times higher than the global average and is the region with the highest rate of average temperature change.

    Image credits: Jean-Michel Claverie/IGS/CNRS-AM

    Experts have reportedly been collaborating with the University of the Arctic, an international educational and research cooperative, on organizing a surveillance network to assist with determining cases of diseases caused by the ancient micro-organisms, as early as possible, to avoid their spread spiraling out of control, the New York Post reported.

    The monitoring network would supply quarantine facilities and medical services for those potentially infected by those zombie viruses to help minimize a potential outbreak, including preventing contagious patients from leaving the region, as per The Post.

    The zombie viruses, scientifically recognized as Methuselah microbes, are reportedly capable of remaining viable for tens of thousands of years encased in the frozen soil, which covers nearly 20% of the Earth’s northern hemisphere.

    Image credits: Freepik

    Professor Claverie said: “The crucial part about permafrost is that it is cold, dark, and lacks oxygen, which is perfect for preserving biological material.

    “You could put a yogurt in permafrost, and it might still be edible 50,000 years later.”

    According to NASA, permafrost is any ground that remains completely frozen, 32°F (0°C) or colder, for at least two years straight.

    Image credits: James Cheney

    The geneticist also explained that the disappearance of Arctic sea ice, caused by global warming, posed a massive risk to human health, and added: “That is allowing increases in shipping, traffic, and industrial development in Siberia.

    “Huge mining operations are being planned and are going to drive vast holes into the deep permafrost to extract oil and ores.

    “Those operations will release vast amounts of pathogens that still thrive there. Miners will walk in and breathe the viruses. The effects could be calamitous.”

    Image credits: NASEM Health and Medicine Division

    Scientists reportedly believe that the deepest layers of permafrost could be preserving viruses that inhabited the Earth up to a million years ago, meaning long before humans’ most ancient ancestors, who are believed to have made their first appearance on the planet some 300,000 years ago.

    As a result, if there were to be a zombie virus outbreak, we would have no natural immunity to defend ourselves against it.

    Professor Claverie explained: “Our immune systems may have never been in contact with some of those microbes, and that is another worry.

    “The scenario of an unknown virus once infecting a Neanderthal coming back at us, although unlikely, has become a real possibility.”

    Image credits: cottonbro studio

    A lot of mystery surrounds the extinction of Neanderthals, with hypotheses including violence, transmission of diseases from modern humans to which Neanderthals had no immunity, competitive replacement, extinction by interbreeding with early modern human populations, natural catastrophes, climate change, and inbreeding depression.

    Despite the chances of such prehistoric organisms breaking out of their frozen habitat in the most remote regions of Earth to start a new global pandemic remaining unlikely, virologists believe there’s at least some room for concern, as per The Post.

    Virologist Marion Koopmans of the Erasmus Medical Center in Rotterdam revealed: “We don’t know what viruses are lying out there in the permafrost, but I think there is a real risk that there might be one capable of triggering a disease outbreak, say of an ancient form of polio.

    “We have to assume that something like this could happen.”

    “Here we go again,” a reader quipped

    ADVERTISEMENT

    [ad_2] Donata Leskauskaite
    Source link

  • Pretty POed

    Pretty POed

    [ad_1]

    "QPirate" was debugging an issue with purchase order version information. The format was supposed to be "Revision#.Version#", essentially "major" and "minor" versions for the various steps as the purchase order wormed its way through the company's incredibly complicated purchasing process.

    Unfortunately, that isn't what was happening. Many numbers behaved in unexpected ways when they were versioned too many times. QPirate dug in, and found this:

    double PRVN = Convert.ToDouble(dr.PoRevNumber) + (Convert.ToDouble(dr.POVerNumber) / 10);
    

    In a reverse of the usual problem of stringly typed information, here we try and represent what should be strings as doubles, and there lies the root of our problem. POVerNumber gets divided by 10, which if you only have 9 versions, that's fine– but as soon as you have ten or more, your POVerNumber starts getting added to your PoRevNumber.

    The fields were actually strings to begin with, which adds insult to injury. They had to convert them to doubles to do this arithmetically challenged solution to version numbers, instead of just doing some string concatenation.

    For bonus points, I really enjoy the inconsistent capitalization of PO.

    [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