YOU'RE ALL JUST JEALOUS OF MY JETPACK ([syndicated profile] myjetpack_feed) wrote2025-06-10 04:24 pm
Latest F1 News ([syndicated profile] formula1_dot_com_feed) wrote2025-06-10 03:07 pm

How Sauber’s hard work on upgrades paid off in Spain

Kick Sauber’s aggressive development programme for their C45 continued in Barcelona, where an all-new floor brought a significant performance upgrade, one which was rewarded in the race by an official fifth place (sixth across the line) for Nico Hulkenberg.
Latest F1 News ([syndicated profile] formula1_dot_com_feed) wrote2025-06-10 02:35 pm

Hamilton responds to speculation over relationship with engineer Adami

Lewis Hamilton has played down any suggestions of tension between himself and his race engineer Riccardo Adami, with the Ferrari driver stating that the speculation is “just noise” which “doesn't make any difference to the job that we're trying to do”.
Latest F1 News ([syndicated profile] formula1_dot_com_feed) wrote2025-06-10 02:05 pm
The Daily WTF ([syndicated profile] the_daily_wtf_feed) wrote2025-06-10 06:30 am

CodeSOD: The Pirate's Code

Posted by Remy Porter

We've talked about ASP .Net WebForms in the past. In this style of development, everything was event driven: click a button, and the browser sends an HTTP request to the server which triggers a series of events, including a "Button Click" event, and renders a new page.

When ASP .Net launched, one of the "features" was a lazy repaint in browsers which supported it (aka, Internet Explorer), where you'd click the button, the page would render on the server, download, and then the browser would repaint only the changed areas, making it feel more like a desktop application, albeit a laggy one.

This model didn't translate super naturally to AJAX style calls, where JavaScript updated only portions of the page. The .Net team added some hooks for it- special "AJAX enabled" controls, as well as helper functions, like __doPostBack, in the UI to generate URLs for "postbacks" to trigger server side execution. A postback is just a POST request with .NET specific state data in the body.

All this said, Chris maintains a booking system for a boat rental company. Specifically, he's a developer at a company which the boat rental company hires to maintain their site. The original developer left behind a barnacle covered mess of tangled lines and rotting hull.

Let's start with the view ASPX definition:

<script>
function btnSave_Click()
{
    if (someCondition) 
    {
    //Trimmed for your own sanity
    
    //PostBack to Save Data into the Database.
        javascript:<%#getPostBack()%>;                   
    }
    else
    {
        return false;
    }
}
</script>
<html>
      <body>
          <input type="button" value="  Save  Booking  " id="btnSave" class="button" title="Save [Alt]" onclick="btnSave_Click()" />
      </body>
</html>

__doPostBack is the .NET method for generating URLs for performing postbacks, and specifically, it populates two request fields: __EVENTTARGET (the ID of the UI element triggering the event) and __EVENTARGUMENT, an arbitrary field for your use. I assume getPostBack() is a helper method which calls that. The code in btnSave_Click is as submitted, and I think our submitter may have mangled it a bit in "trimming", but I can see the goal is to ensure than when the onclick event fires, we perform a "postback" operation with some hard-coded values for __EVENTTARGET and __EVENTELEMENT.

Or maybe it isn't mangled, and this code just doesn't work?

I enjoy that the tool-tip "title" field specifies that it's "[Alt]" text, and that the name of the button includes extra whitespace to ensure that it's padded out to a good rendering size, instead of using CSS.

But we can skip past this into the real meat. How this gets handled on the server side:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    '// Trimmed more garbage
    If Page.IsPostBack Then
        'Check if save button has been Clicked.
        Dim eventArg As String = Request("__EVENTARGUMENT")
        Dim offset As Integer = eventArg.IndexOf("@@@@@")
        If (offset > -1) Then
            'this is an event that we raised. so do whatever you need to here.
            Save()
        End If
    End If
End Sub

From this, I conclude that getPostBack populates the __EVENTARGUMENT field with a pile of "@", and we use that to recognize that the save button was clicked. Except, and this is the important thing, if they populated the ID property with btnSave, then ASP .Net would automatically call btnSave_Click. The entire point of the __doPostBack functionality is that it hooks into the event handling pattern and acts just like any other postback, but lets you have JavaScript execute as part of sending the request.

The entire application is a boat with multiple holes in it; it's taking on water and going down, and like a good captain, Chris is absolutely not going down with it and looking for a lifeboat.

Chris writes:

The thing in its entirety is probably one of the biggest WTFs I've ever had to work with.
I've held off submitting because nothing was ever straight forward enough to be understood without posting the entire website.

Honestly, I'm still not sure I understand it, but I do hate it.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!
BBC Sport ([syndicated profile] bbc_f1_feed) wrote2025-06-08 03:59 pm
BBC Sport ([syndicated profile] bbc_f1_feed) wrote2025-06-07 10:15 am
Oh Joy Sex Toy ([syndicated profile] ohjoysextoy_feed) wrote2025-06-10 07:02 am

Side Effects by Bea Tormo

Posted by Matthew Nolan

Side Effects by Bea Tormo

A very relatable comic about SSRI’s, side effects and low libido. Spanish artist Bea Tormo brings such a lovely style, and story in todays lightly autobiographical, educational and fictional comic. Mental health is incredibly important, and we think sexual health is too. Getting that balanced can be a constant battle, but it’s one that’s worth […]
Futility Closet ([syndicated profile] futilitycloset_feed) wrote2025-06-10 06:03 am

Side Business

Posted by Greg Ross

Notable allusions to unrecorded cases of Sherlock Holmes:

  • “‘Oh, you mean the little problem of the Grosvenor Square furniture van. That is quite cleared up now — though, indeed, it was obvious from the first.'” (“The Adventure of the Noble Bachelor”)
  • “‘Farintosh,’ said he. ‘Ah, yes, I recall the case; it was concerned with an opal tiara. I think it was before your time, Watson.'” (“The Adventure of the Speckled Band”)
  • “‘Here’s the record of the Tarleton murders and the case of Vamberry, the wine merchant, and the adventure of the old Russian woman, and the singular affair of the aluminium crutch, as well as a full account of Ricoletti of the club foot and his abominable wife.'” (“The Adventure of the Musgrave Ritual”)
  • “‘He is a big, powerful chap, clean-shaven, and very swarthy — something like Aldridge, who helped us in the bogus laundry affair.'” (The Adventure of the Cardboard Box”)
  • “‘You know that I am preoccupied with this case of the two Coptic Patriarchs, which should come to a head to-day.'” (“The Adventure of the Retired Colourman”)
  • “‘We have not forgotten your successful action in the case of Matilda Briggs.’ ‘Matilda Briggs was not the name of a young woman, Watson,’ said Holmes, in a reminiscent voice. ‘It was a ship which is associated with the giant rat of Sumatra, a story for which the world is not yet prepared.'” (“The Adventure of the Sussex Vampire”)
  • “A third case worthy of note is that of Isadora Persano, the well-known journalist and duellist, who was found stark staring mad with a matchbox in front of him which contained a remarkable worm, said to be unknown to science.” (“The Problem of Thor Bridge”)
  • “‘This is the Dundas separation case, and, as it happens, I was engaged in clearing up some small points in connection with it. The husband was a teetotaller, there was no other woman, and the conduct complained of was that he had drifted into the habit of winding up every meal by taking out his false teeth and hurling them at his wife, which you will allow is not an action likely to occur to the imagination of the average story-teller.'” (“A Case of Identity”)
  • “‘And yet the motives of women are so inscrutable. You remember the woman at Margate whom I suspected for the same reason. No powder on her nose – that proved to be the correct solution.'” (“The Adventure of the Second Stain”)
  • “‘I must thank you’, said Sherlock Holmes, ‘for calling my attention to a case which certainly presents some features of interest. I had observed some newspaper comment at the time, but I was exceedingly preoccupied by that little affair of the Vatican cameos, and in my anxiety to oblige the Pope I lost touch with several interesting English cases.'” (The Hound of the Baskervilles)
  • “Our months of partnership had not been so uneventful as he had stated, for I find, on looking over my notes, that this period includes the case of the papers of ex-President Murillo, and also the shocking affair of the Dutch steamship Friesland, which so nearly cost us both our lives.” (“The Adventure of the Norwood Builder”)

A full list is here.

Latest F1 News ([syndicated profile] formula1_dot_com_feed) wrote2025-06-10 06:27 am
Latest F1 News ([syndicated profile] formula1_dot_com_feed) wrote2025-06-10 05:56 am
Separated by a Common Language ([syndicated profile] acommonlanguage_feed) wrote2025-06-10 05:41 am

balk and baulk

Posted by lynneguist

Over on Bluesky last month, I was pulled into a conversation that went something like this:

  • Someone tweets a screenshot of a comment with the phrase Do you baulk at the film reviews...?
  • Someone American asks "how long have y'all been adding a u to balk?"
  • And then, predictably, some respondents say it's always been there, Noah Webster took it out.
That's the point where someone (c'est moi!) looked into it and reported back: 
The Oxford English Dictionary has it as balk. Since it comes from Old English, it only got a 'u' after French had influenced (I am tempted to say 'infected') the spelling system. The 'u' came into the word in the 1600s and 1700s, and today the spelling is very mixed in BrE.  British National Corpus has 21 baulked/13 balked, more recent Corpus of Global Web-Based English has 71 baulked/93 balked in BrE.  Cambridge, Chambers & Collins Dictionary all list balk first as does the Guardian Style Guide.

Most u/non-u variations in BrE and AmE involve an o—as in words like colo(u)r and mo(u)ld. The variation can probably be blamed on Samuel Johnson as much as Noah Webster. In the 18th-century, not all British dictionaries put a u in words like colo(u)r, but Johnson did, and his dictionary became far more famous than the others, so the u form eventually became standard in BrE. I write about the ou/o spellings at this old post (and much more and much better in in The Prodigal Tongue). But even Johnson spelled balk without the u.

My attention to the -o(u)- words in the book meant I overlooked balk/baulk—but I used the word balked in chapter 7:

...please seemed inappropriate in the small request situation, and so Americans balked at it.

The British copyeditor did not bat an eyelash—or a blue pencil—at it.

Given the dictionaries' agreement, we can say that balk is the "standard" spelling of the verb in BrE. Given the corpus numbers, we can say that it is the "normal" spelling. Given the word's history, we can say it is the "original" spelling.

But those corpus numbers aren't so distinct, and given the conversation on Bluesky, it seems that some BrE writers really want to spell it with a u (and to believe that that is the "standard/normal/original" way to spell it). This may well be another instance of British spelling changing in recent decades in order to fight against perceptions but not realities of a British/American spelling difference.*


Confusion about its spelling is understandable, though, since there is a noun that is more usually spelled/spelt baulk. It's part of a billiard-type game table, and the term is used in several terms in several such games.

Overhead view of a pool table with the leftmost edge labelled 'baulk cushion' and the first  1/5 or so of the surface labelled "baulk"
Illustration from International 8 Ball Referee

I searched for several of these terms as either balk or baulk in Corpus of Global Web-Based English and got only the u spelling—with none of them in AmE:

Corpus of Global Web-Based English results showing 16 UK hits for baulk line and 4 for baulk cushion, but no hits for either in US.

(Britannica.com has it as balk. They're owned by the same company as Merriam-Webster. Is the ghost of Noah W. removing U's in the encyclop[a]edia?)

So, in general, if it's a [billiards] noun, it's baulk and if it's a verb it's balk. They both come from the same Old English word, with a Germanic ancestor.

The one other -aulk word in current English is caulk (used much more in AmE than BrE, which tends to say seal/sealant instead)—but that came into English with the u, as it came from French cauquer in the 1500s.

The post-Norman urge to stick a U in balk also affected talk and stalk in the 1600s, but not, apparently walk. For me, the mystery is: why has the urge to stick a U in persisted for baulk and not the others?


----

*I say 'another' instance of spelling change due to perceptions of 'Americanism' because I discuss the main instance of that phenomenon in detail in The Prodigal Tongue:



(And I'm going to leave that complicated situation/history for readers of the book. Or listeners to it!)


Dumbing of Age ([syndicated profile] dumbingofage_feed) wrote2025-06-10 04:01 am