ReportWire

Category: Humor

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

  • The Photographer Got A Bit Too Creative With Our Church Directory Photo

    The Photographer Got A Bit Too Creative With Our Church Directory Photo

    [ad_1]

    “The whole family went for church directory photos and the photographer decided to be ‘creative’ with us.’”

    (submitted by Tomi)

     

    The post Turn Around, Bright Eyes appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • Nation Celebrates Halloween

    Nation Celebrates Halloween

    [ad_1]

    The nation enjoyed its most frightening holiday on Tuesday with trick-or-treating, horror films, and costume parties. How did you celebrate Halloween?

    “I checked the perimeter traps.”

    Elijah Neufeld, Noise Identifier

    “I went to church for 72 hours until the danger passed.”

    Paula Villagracia, Placard Designer

    “I screamed silently in horror as the flame burned my insides.”

    Jack-O’-Lantern, Unemployed

    [ad_2]

    Source link

  • Alcatraz U Unveils Crimecentric Degree – Ted Holland, Humor Times

    Alcatraz U Unveils Crimecentric Degree – Ted Holland, Humor Times

    [ad_1]

    Dispatches from SNN (Slobovian News Network)

    The President of Alcatraz U has introduced an all-new “Crimecentric Degree Program” to advance the careers of its inmates.

    “Anyone can learn to be a criminal,” stated Dr. #427895, President of Alcatraz University.

    Alcatraz
    Home of scenic Alcatraz U. Photo by Don Ramey Logan, CC BY-SA 3.0.

    “In the near future, the well-educated criminal will rule the world. To that end, Alcatraz University is proud to announce that enrollment is now open for our Crimecentric Degree Program. In 18 months, anyone can earn a Master of Criminal Activity Degree,” said the university president.

    Dr. #427895 said the the program contains all the basics of criminal activity. Courses include:

    • How to Steal Anything
    • Criminal Activity for Kids Under 12
    • Basic Stickup Techniques
    • The ABC’s of B&E
    • Carjacking 101
    • The Lost Art of Picking Pockets and Purse Snatching
    • The Art of Shoplifting
    • How to Recruit, Organize and Manage a Smash and Grab Posse
    • Mexican Border Coyote People Smuggling Techniques
    • Drug Cartel Management
    • Basics of Phone Scamming
    • Basics of Online Scamming
    • Shoot anybody, Anytime, Anywhere
    • Fentanyl for Fun and Profit
    • Meth Lab Maintenance
    • Hedge Fund Embezzlement
    • Build Your Own Ponzi Scheme
    • Kidnap Taylor Swift, the Pope, the LA Lakers, etc.
    • The Magic of Criminal Artificial Intelligence

    Dr. #427895 said that enrollment is open to anyone between the ages of 2 to 120. “New inmates welcome… looking at you, Donald Trump!” he said with a wink, adding, “All tuition must be paid in stolen or embezzled funds.”

    Breaking News

    UBSI (Universal Bull Shit Institute) presents Donald Trump with Lifetime Achievement Award

    SNN Words to Live By

    “He who turns the other cheek will get hit with the other fist.” — Comedian Nipsey Russell.

    “Get yourself naked and dig the music.” — Wolfman Jack.

    “When women go wrong, men go right after them.” — Actress Mae West.

    Ted HollandTed Holland
    Latest posts by Ted Holland (see all)
    ShareShare

    [ad_2]

    Ted Holland

    Source link

  • Memes will set you free.

    Memes will set you free.

    [ad_1]

    Tags: meme

    14761 points, 316 comments.

    [ad_2]

    Source link

  • UTF-16 Encoding

    UTF-16 Encoding

    [ad_1]

    Let’s say you were browsing through some code, and saw a function signature like this:

    function changeUTF16( $string )
    

    What do you think that function does? Given the name, I suspect it converts a UTF-16 string into some other encoding, or perhaps it changes some other encoding to UTF-16. Either way, the name is fairly unclear, and probably could be better.

    P-O sent this in, and let’s take a look at what the function actually does.

    
    
    
    
    
    
    
    
    
    function changeUTF16( $string ){
        return mb_convert_encoding( $string, "ISO-8859-1", "UTF-8" )."n" ;
    }
    

    Thank the gods for that NOTE there, which awkwardly describes what the function actually does- it converts a UTF-8 string to an ISO-8859-1 string. ISO-8859 is, notably, not UTF-16, and in fact, isn’t 16 bits at all– it’s just a different 8-bit encoding from UTF-8.

    Clearly, none of this ever mattered, because the program worked, but equally clearly the person behind this method had no clue what character encodings actually meant.

    P-O did find that converting this function to a no-op had no impact on the application.

    [ad_2]

    Remy Porter

    Source link

  • Most Kids Wanted To Be Witches And Ghosts. I Wasn’t Like Most Kids

    Most Kids Wanted To Be Witches And Ghosts. I Wasn’t Like Most Kids

    [ad_1]

    “Once, I was Anubis for Halloween.”

    (submitted by IG @davidhanosiii

    The post Trick Or Treat Like An Egyptian appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • Politicians Explain Why They Will Not Endorse A Ceasefire

    Politicians Explain Why They Will Not Endorse A Ceasefire

    [ad_1]

    With the Palestinian death toll rapidly rising and conditions in Gaza deteriorating into a humanitarian crisis amid the Israeli invasion, The Onion asked politicians why they will not endorse a ceasefire, and this is what they said.

    Sen. Chuck Grassley (R-IA)

    Sen. Chuck Grassley (R-IA)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “I haven’t gotten to experience a world war since my boyhood.”

    Speaker Mike Johnson (R-LA)

    Speaker Mike Johnson (R-LA)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “I lament even those momentary pauses in violence when IDF soldiers have to stop shooting to reload.”

    Rep. Hakeem Jeffries (D-NY)

    Rep. Hakeem Jeffries (D-NY)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “A ceasefire would send the message to Palestinians that we give a shit whether they live or die.”

    Sen. Tom Cotton (R-AR)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “I have a perfect record when it comes to ethnic cleansing, and I’m not about to tarnish that now.”

    Vice President Kamala Harris

    Vice President Kamala Harris

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Well-behaved missiles seldom make history.”

    Sen. Marsha Blackburn (R-TN)

    Sen. Marsha Blackburn (R-TN)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Last I checked, there were still some Palestinian civilians left.”

    Sen. Susan Collins (R-ME)

    Sen. Susan Collins (R-ME)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “An open-air prison actually sounds nice. What do I look like, some kind of abolitionist?”

    Sen. Tammy Baldwin (D-WI)

    Sen. Tammy Baldwin (D-WI)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “That would stop the genocidal momentum the IDF has built.”

    Rep. Mike Rogers (R-AL)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Because I’m making money off this. What don’t you understand?”

    Sen. Ted Cruz (R-TX)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Shhh, keep your voice down. Saying that word in Texas is illegal.”

    Sen. Amy Klobuchar (D-MN)

    Sen. Amy Klobuchar (D-MN)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “The people of Gaza are free to start making campaign donations whenever they please.”

    Rep. Steve Scalise (R-LA)

    Rep. Steve Scalise (R-LA)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Poked myself in the eye with a kebab skewer. Now all must pay.”

    Rep. Dean Phillips (D-MN)

    Rep. Dean Phillips (D-MN)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Based on the last election, I figure my presidential campaign can only be helped by the absence of a strong stance on anything.”

    Rep. Jim Jordan (R-OH)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “Ugh, just come back to bed. Can’t we go one night without getting into a screaming match?”

    Sen. John Fetterman (D-PA)

    Sen. John Fetterman (D-PA)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “When you become a U.S. senator, they tell you that you’ll be legally castrated if you ever try to stop any wars.”

    Sen. Tommy Tuberville (R-AL)

    Sen. Tommy Tuberville (R-AL)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “I mean, if it were up to me, they’d be air-striking the shit out of the continental U.S. as well.”

    Sen. Lindsey Graham (R-SC)

    Sen. Lindsey Graham (R-SC)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “That’s actually a good idea. If we can trick the Palestinians into thinking we’re not going to fire anymore, they’ll be easier to shoot!”

    Sen. Elizabeth Warren (D-MA)

    Sen. Elizabeth Warren (D-MA)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “The Consumer Financial Protection Bureau would never allow the U.S. to finance the Israeli military if it wasn’t perfectly safe.”

    Sen. Bernie Sanders (I-VT)

    Sen. Bernie Sanders (I-VT)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “I don’t want to lose my widespread appeal among moderates.”

    Sen. Cory Booker (D-NJ)

    Image for article titled Politicians Explain Why They Will Not Endorse A Ceasefire

    “I support firing both missiles and a message of love at Palestine.”

    You’ve Made It This Far…

    You’ve Made It This Far…

    [ad_2]

    Source link

  • New Speaker Interview: Chris Matthews – Bill Tope, Humor Times

    New Speaker Interview: Chris Matthews – Bill Tope, Humor Times

    [ad_1]

    Former MSNBC host Chris Matthews interviewed the new Speaker of the House on the nine-hole of Trump’s golf course.

    The new Speaker of the House of Representatives, Mike Johnson (R. LA), sojourned to Mar-a-Lago, former-president Donald J. Trump’s luxury estate in Palm Beach, Florida on Friday, to receive his marching orders. Our correspondent, former MSNBC host Chris Matthews, interviewed the pair at the time of their meeting, which was held at the pin on the nine-hole of the golf course, where Trump had just shot a third mulligan-aided hole-in-one. Trump and Johnson stood close, with the ex-president’s hand resting companionably on Johnson’s neck.

    new speakerThe one-time cable host addressed Johnson. “What,” asked Matthews, “will be your priorities as new Speaker?”
    “I want to clear the former — and still — President of the United States of all the nettlesome charges on which he has been unfairly indicted,” replied Johnson at once.

    “Yes, but what will be your guiding principle in carrying out your job?”

    “To clear the President’s good name,” said Johnson.

    Matthews scowled. “But, what will be the focal point of your leadership?” he persisted. “What is the essence of your message to the House and to the American people, Mr. Speaker.”

    “Of course,” said the new House leader. “I understand your question now. I want to positively stress that, for all intents and purposes, Donald Trump and Jesus Christ are indistinguishable. They are, for all practical purposes, the same. When I get down on my knees to pray at night, I pray to Donald J. Trump,” he added. Matthews rolled his eyes and the interview proceeded.

    “Mr. Speaker, you are judged by your critics — and by your GOP colleagues — to be the most ideologically conservative member of the House. One former congressman referred to you as “Jim Jordan in Drag,”

    “I admire Jim Jordan,” said Johnson, “and I haven’t witnessed him in drag for several years; not since the House New Year’s party back in ’19, so I don’t know what you’re talking about.”

    “You’ve been instrumental in efforts to promote restrictions on a woman’s right to choose,” Matthews pointed out. “Could you encapsulate your position on women’s healthcare?”

    “On that issue, I agree with Justice Thomas,” replied Johnson warmly. “Women’s healthcare is not enumerated in the original Constitution so, fundamentally, it does not exist as a right.”

    “Mr. Speaker, do you still believe that the 2020 election was invalid?”

    Johnson looked sheepish and then he and the ex-president both smirked, but made no reply. Behind them, an entourage of onlookers hooted and hollered.

    What is your view on the Second Amendment?” inquired Matthews next.

    “Again I defer to that Constitutional scholar Justice Thomas, who has stated that he ‘never met a firearm he didn’t like.’ Further, I intend to remove the weapons scanners in the House, which impede members’ right to bear arms. In the new House,” he intoned gravely, “we’ll be locked and loaded.” He smiled engagingly.

    “What is your outlook on the LGBTQ, Black and Muslim communities, Mr. Speaker?”

    “I refer the unwashed to Leviticus 18:22 and 20:13,” replied Johnson. “Transgenderism and homosexuality are abominations!” he declared absolutely. “And the other subcultures you mentioned are only marginally less abominable.”

    “Mr. Trump,” said Matthews, turning to the ex-president, “you supported

    Mike Johnson’s election as Speaker; do you have anything that you’d like to add to the discussion?” Trump moved his hand from Johnson’s neck, but again, said nothing. “Very good, gentlemen,” said Matthews, turning to face the camera and murmuring. “I didn’t even see the president’s lips move.”

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

    [ad_2]

    Bill Tope

    Source link

  • When Recruiters Ask “What Is Your Greatest Weakness?”

    When Recruiters Ask “What Is Your Greatest Weakness?”

    [ad_1]

    What they actually are saying: “We want to know precisely how to exploit you.” That’s all they care about. They are not just making small talk or trying to know you better as a person.

    The post When Recruiters Ask “What Is Your Greatest Weakness?” first appeared on Crazy Funny Pictures.

    [ad_2]

    liver

    Source link

  • Legacy Horrors

    Legacy Horrors

    [ad_1]

    Today is Halloween, a day filled with chills, horrors, and Jamie Lee Curtis. An interesting aspect of horror movies is how often the roots of the horror lurk in the past. Michael Meyers had been in an asylum for decades before his infamous Halloween rampage. Midsommar represents a centuries old tradition. Barbarian is rooted in sins committed a generation prior. Freddy Krueger was the manifestation of the sins of our protagonists’ parents. Hell, even Dracula is a menace that had been lurking for centuries before our story begins.

    In honor of that, we’re going to look at some code from Davide. Like so much classic horror, the seeds of this sin were planted many, many years before Davide arrived.

    In 1991, Microsoft released their first version of Visual Basic. The language evolved until 1998, with the release of VB6. Mainstream support ended in 2005, extended support ended in 2008, but like true horror, VB6 has not truly died. The development tools continue to run on all 32-bit versions of Windows.

    Back in those olden days, Davide’s predecessors decided to implement an Enterprise Resource Planning system in VB6. It grew, and evolved, and became something that couldn’t be controlled anymore- it was 2.5M lines of code. It entangled itself into the company, taking over every core business function, and rapidly becoming indispensible.

    We can compare it to so many monsters of horror- the shapeshifting Thing, gradually replacing parts of the company with itself. The fungus from The Last of Us, taking over the brain of the company. We can compare it to The Blob, which may also be the most accurate description of the coding practices used in building it.

    Here’s some code that evaluates a formula entered by the users:

    Option Explicit
    Dim AA$(26)
    Dim VV#(26) 
    Dim B$(26)
    Dim OP$(26)
    Dim RANGO(26) As Integer
    Dim P$(27)
    Dim OPN#(2), COPN$(26)
    Dim CV%
    
    Public scrCtl As MSScriptControl.ScriptControl
    Dim bCreated As Boolean 
    Dim strUltCodart As String 
    Dim strUltFormula As String
    
    Dim nEsito As Integer
    Public Function FormulaControlla(strFormula As String) As Boolean
    17000 Rem --- Input = FORMULA$, Output = AA$(__),CV%,OK%=1 se FORMULA$ non buona
          Dim Formula$, f$, CP%, CN%, FLAGP%, c$, OK%, LX%, s%, A$, B$, AB%, BB%, BRANGO%, CRANGO$
          FormulaControlla = True
          
          Exit Function
          
          
          Formula$ = strFormula
    17010 f$ = Formula$ + Chr$(0): CP% = 0: CN% = 0: CV% = 0: FLAGP% = 0: c$ = "": OK% = 0
    17020 LX% = Len(Formula$)
    17030 For s% = 1 To LX%
    17040   A$ = Mid$(f$, s%, 1): B$ = Mid$(f$, s% + 1, 1)
    17050   AB% = Asc(A$): BB% = Asc(B$)
    17060   If A$ >= "0" And A$ <= "9" Then If (B$ >= "a" And B$ <= "z") Or B$ = "(" Then OK% = 1: GoTo 17230 Else CN% = CN% + 1: GoTo 17230
    17070   If A$ = "*" Or A$ = "/" Or A$ = "+" Or A$ = "-" Then If B$ = "*" Or B$ = "/" Or B$ = "+" Or B$ = "-" Or B$ = Chr$(0) Or B$ = ")" Then OK% = 1: GoTo 17230 Else GoTo 17130
    17080   If A$ = "(" Then If B$ = ")" Or B$ = "*" Or B$ = "/" Or B$ = "+" Or B$ = Chr$(0) Then OK% = 1: GoTo 17230 Else CP% = CP% + 1: GoTo 17130
    17090   If A$ = ")" Then If B$ = "(" Or (B$ >= "0" And B$ <= "9") Or (B$ >= "a" And B$ <= "z") Or B$ = "." Then OK% = 1: GoTo 17230 Else CP% = CP% - 1: GoTo 17130
    17100   If A$ >= "a" And A$ <= "z" Then If (B$ >= "0" And B$ <= "9") Or (B$ >= "a" And B$ <= "z") Or B$ = "(" Or B$ = "." Then OK% = 1: GoTo 17230 Else GoTo 17130
    17110   If A$ = "." Then If Not (B$ >= "0" And B$ <= "9") Then OK% = 1: GoTo 17230 Else CN% = CN% + 1: FLAGP% = FLAGP% + 1: GoTo 17230
    17120   OK% = 1: GoTo 17230
    17130   
    17140   If CN% = 0 Then GoTo 17180
    17150      If FLAGP% > 1 Then OK% = 1: GoTo 17230
    17160      CV% = CV% + 1: AA$(CV%) = Mid$(f$, s% - CN%, CN%)
    17170      CN% = 0: FLAGP% = 0
    17180   CV% = CV% + 1: AA$(CV%) = A$
    17190   If A$ = "*" Or A$ = "/" Or A$ = "+" Or A$ = "-" Then GoTo 17200 Else GoTo 17230
    17200      If A$ = "-" And c$ = "(" Or A$ = "-" And s% = 1 Then BRANGO% = 3 + 3 * CP%: CRANGO$ = Right$("  " + str$(BRANGO%), 2): AA$(CV%) = ">" + CRANGO$: GoTo 17230
    17210      If A$ = "-" Or A$ = "+" Then BRANGO% = 1 + 3 * CP%: CRANGO$ = Right$("  " + str$(BRANGO%), 2): AA$(CV%) = AA$(CV%) + CRANGO$
    17220      If A$ = "*" Or A$ = "/" Then BRANGO% = 2 + 3 * CP%: CRANGO$ = Right$("  " + str$(BRANGO%), 2): AA$(CV%) = AA$(CV%) + CRANGO$
    17230   
    17240   If OK% = 1 Then s% = LX%
    17250   c$ = A$
    17260 Next s%
    17270 If CN% = 0 Then GoTo 17310
    17280      If FLAGP% > 1 Then OK% = 1: GoTo 17310
    17290      CV% = CV% + 1: AA$(CV%) = Mid$(f$, s% - CN%, CN%)
    17300      CN% = 0: FLAGP% = 0
    17310 If CN% > 0 Or FLAGP% <> 0 Or CP% <> 0 Then OK% = 1
    17320 If OK% = 1 Then FormulaControlla = False Else FormulaControlla = True
    End Function
    Public Sub FormulaGenPolacca()
    18800 Rem --- ROUTINE che, data la NOTAZIONE INTERA
    18810 Rem --- GENERA LA NOTAZIONE POLACCA
    18820 Rem --- Input = AA$(__), CV%,  Output = P$(__)
          Dim i As Integer, j As Integer, K As Integer, CONTA As Integer, MAXI%, l As Integer
          Dim NUOVA%, KK%, M As Integer
    18830 i = 0: j = 1: l = 0: K = 1: CONTA = 0: MAXI% = CV%
    18835 If NUOVA% = 1 Then NUOVA% = 0: For KK% = 1 To 26: VV#(KK%) = 0: Next KK%
    18840 For KK% = 1 To 26: B$(KK%) = "": OP$(KK%) = "": RANGO(KK%) = 0: P$(KK%) = "": Next KK%: P$(26) = ""
    18850 Rem
    18860 If CONTA > 0 Then CONTA = CONTA + 1
    18870 i = i + 1
    18880 If AA$(i) = "(" Or AA$(i) = ")" Then If i = MAXI% Then l = l + 1: OP$(l) = "T": RANGO(l) = 0: GoTo 18910 Else GoTo 18870
    18890 If AA$(i) >= "a" And AA$(i) <= "z" Or Asc(AA$(i)) = 46 Or Asc(AA$(i)) > 47 And Asc(AA$(i)) < 58 Then If i = MAXI% Then B$(j) = AA$(i): l = l + 1: OP$(l) = "T": RANGO(l) = 0: GoTo 18910 Else B$(j) = AA$(i): GoTo 18870
    18900 l = l + 1: OP$(l) = Left$(AA$(i), 1): RANGO(l) = Val(Right$(AA$(i), 2))
    18910 If B$(j) <> "" Then P$(K) = B$(j): K = K + 1: j = j + 1
    18920 If l = 1 And i = MAXI% Then GoTo 19020
    18930 If l = 1 Then GoTo 18850
    18940 If RANGO(l) > RANGO(l - 1) Then CONTA = CONTA + 1: GoTo 18850
    18950 If CONTA = 0 Then P$(K) = OP$(l - 1): K = K + 1: RANGO(l - 1) = 0: GoTo 19020
    18960 For M = 1 To CONTA + 1
    18970   If M = l Then M = CONTA + 1: GoTo 19010
    18980   If RANGO(l - M) = 0 Then GoTo 19010
    18990   If RANGO(l) > RANGO(l - M) Then GoTo 19010
    19000   P$(K) = OP$(l - M): K = K + 1: RANGO(l - M) = 0
    19010 Next M
    19020 If OP$(l) = "T" Then P$(K) = OP$(l) Else GoTo 18850
    19030 
    End Sub
    Public Function FormulaValutaPolacca() As Double
    19500 Rem --- ROUTINE che, data la NOTAZIONE POLACCA
    19510 Rem --- CALCOLA il VALORE DELLA FORMULA
    19515 Rem --- Input = P$(__), Output = RISULTATO#,ERRORE%=1 se Division by zero
          Dim K As Integer, ERRORE%, OPR$, Q%, NO%, R As Integer, ABC$, RIS#, Risultato#, X$
    19520 FormulaValutaPolacca = 0: K = 0: ERRORE% = 0
    19530 K = K + 1
    19540 If P$(K) >= "a" And P$(K) <= "z" Or Asc(P$(K)) = 46 Or Asc(P$(K)) > 47 And Asc(P$(K)) < 58 Then GoTo 19530
    19550 OPR$ = P$(K): P$(K) = "": Q% = 1: While P$(K - Q%) = "": Q% = Q% + 1: Wend: COPN$(2) = P$(K - Q%): P$(K - Q%) = ""
    19560 If OPR$ <> ">" And OPR$ <> "T" Then NO% = 1: Q% = 2: While P$(K - Q%) = "": Q% = Q% + 1: Wend: COPN$(1) = P$(K - Q%): P$(K - Q%) = "" Else NO% = 2
    19570 Rem-----
    19580 For R = 2 To NO% Step -1
    19590   If Not (COPN$(R) >= "a" And COPN$(R) <= "z") Then OPN#(R) = Val(COPN$(R)): GoTo 19610
    19600   ABC$ = COPN$(R):  OPN#(R) = FormulaAssegna(ABC$)
    19610 Next R
    19620 Rem-----
    19630 Rem-----
    19640 If OPR$ = "T" Then RIS# = OPN#(2): GoTo 19710
    19650 If OPR$ = ">" Then RIS# = -OPN#(2): GoTo 19700
    19660 If OPR$ = "*" Or OPR$ = "x" Then RIS# = OPN#(1) * OPN#(2): GoTo 19700
    19670 If OPR$ = ":" Or OPR$ = "/" Then If OPN#(2) <> 0 Then RIS# = OPN#(1) / OPN#(2): GoTo 19700 Else Risultato# = 0: ERRORE% = 1: GoTo 19730
    19680 If OPR$ = "+" Then RIS# = OPN#(1) + OPN#(2): GoTo 19700
    19690 If OPR$ = "-" Then RIS# = OPN#(1) - OPN#(2)
    19700 Rem-------
    19710 If OPR$ = "T" Then GoTo 19720 Else X$ = str$(RIS#): P$(K) = Right$(X$, Len(X$) - 1): GoTo 19530
    19720 Risultato# = RIS#
    19730 FormulaValutaPolacca = Risultato#:
    19740 If ERRORE = 1 Then MsgBox "Attenzione: Divisione per 0 nella valutazione della formula.", vbCritical, bsTtlErr
    End Function
    Public Function FormulaAssegna(ABC$) As Double
    19800 Rem --- assegna i valori alle variabili operatori -------
    19801 Rem --- input ABC$ , globale vv#()  output VV#                   -------
          Dim NN%, BVV#
    19810 NN% = Asc(ABC$) - 96
          If NN% = 1 Or NN% = 2 Or NN% = 3 Or NN% = 11 Or NN% = 14 Then
             BVV# = VV#(NN%): FormulaAssegna = BVV#: GoTo Fine
          End If
    19830 If VV#(NN%) <> 0 Then
              BVV# = VV#(NN%): FormulaAssegna = BVV#: GoTo Fine
          End If
    19860 BVV# = CDbl(InputBox("Inserire il valore della variabile  <" + ABC$ + "> =", "Richiesta valore parametro", "0"))
    19880 VV#(NN%) = BVV#
    19900 FormulaAssegna = BVV#
    Fine:
    End Function
    Public Sub FormulaChiama(strFormula As String)
          Dim bOk As Boolean
          Dim Risultato#
    30200 Rem --- CALCOLO QUANTITA
    30205 
    30210 bOk = FormulaControlla(strFormula): If bOk = False Then Risultato# = 0 Else FormulaGenPolacca: Risultato# = FormulaValutaPolacca
    
    End Sub
    

    The only glimmer of hope is the first line- at least they used Option Explicit, which makes variable declarations required (instead of just creating a variable anytime you use one). Everything else is horror. VB6 did not require line numbers, which implies that either the developer responsible cut their teeth in older versions of BASIC, or worse: this code started its life in an older version of basic. Or, possibly even worse: the developer couldn’t imagine flow control without GoTo, because there are a lot of them.

    While this code was clearly originally written in Italian, the fact that it’s in another (natural) language isn’t what makes the code impossible for me to understand. The code itself is cryptic and complicated enough that I don’t want to decipher it, for fear that solving this puzzle invites Cenobites to tear me apart.

    Davide adds: “The woeful part of the story is that it actually works most of the time.”

    True horrors lurk in this world, nightmares that we can’t hope to escape, legacy code that needs to be maintained, and lies in wait for vulnerable developers. Once ensnared in the grasp of this monster, can any developer truly hope to escape?


    And finally, for a bonus story of technological horrors, I told a creepy campfire tale about Thomas Midgley, Jr. on stage this weekend. Pardon the cellphone video. The Man Who Sold the World.

    [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 pilots on magic mushrooms, 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:

    magic mushrooms
    Flying high on magic mushrooms.

    The pilot on Alaskan Airways flight that shut down the engines was on magic mushrooms

    I’m shocked, shocked he could get anything to eat on a flight.

    ‘Cursed’ Ted Cruz shows up at Astros game and you can guess what happened

    Well, Ted Cruz is used to being cursed …

    Mob loots California 7-Eleven

    Would’ve gotten away with it, but they came back for a free refill.

    President Biden calls for assault weapon ban and other measures to curb gun violence

    Hey, we should at least change its name from an AR-15 to an AR-19, so Matt Gaetz won’t be interested it in.

    Pennsylvania trio bought a $100K abandoned school and turned it into a packed 31-unit apartment complex

    Instead of eviction, they’re sent to detention …

    Britney Spears reveals she lived in Orlando with Justin Timberlake in the early 2000s

    George Santos: Me, too.

    Taylor Swift to be joined by Travis Kelce during the international leg of her ‘Eras’ tour

    Wondering, if Taylor Swift did a tour of only songs about old boyfriends, would it be called the ‘Errors’ tour?

    RIP Richard Roundtree

    They say this cat Shaft is a bad mother. Shut your mouth. God speed.

    ‘Sponge bombs’ are Israel’s new secret weapon to block Hamas tunnels

    That would certainly be ‘sponge’ worthy …

    Iceland’s prime minister joins thousands of women on strike

    Now, that’s cold …

    Larry Elder drops out of the race for President

    … Surprising people that he was in the race for President.

    Only 2 of the 8 House Speaker candidates voted to certify Biden’s win

    The others were just certifiable.

    Bulldog ‘thinks she’s a cow’ and the video evidence is priceless

    Owners decide not to tell her because they need the milk.

    Trump claims he doesn’t know who gave Fauci presidential award. It was him

    … Trump: I never met me. Maybe I got myself coffee once. And, besides, I never liked me anyway …

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

    [ad_2]

    Paul Lander

    Source link

  • We’re Still Not Sure What The Photographer Was Thinking

    We’re Still Not Sure What The Photographer Was Thinking

    [ad_1]

    “This is of my older sister, perfect in all pictures, and older brother’s gigantically chubby head. The photographer thought this was the best picture of the whole shoot. My mom thought it was hilarious and horrifying, so of course she bought it.”

    (submitted by Caitlin)

    The post Brotherhead appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link

  • The Photographer’s Technique Backfired

    The Photographer’s Technique Backfired

    [ad_1]

    “According to my mother, my little brother was terrified of the stuffed animal that the photographer was using to attempt to get him to smile.”

    (submitted by Rachel)

    The post The Horror appeared first on AwkwardFamilyPhotos.com.

    [ad_2]

    Team Awkward

    Source link