This will be hilarious to approximately no one. I meant to ask ChatGPT 03-mini-high to generate a dummy record. My compromised motor skills and concomitant keyboard typing skills rendered this as funny. Except for the redacted bits in bold, this is the code it rendered. Pay special attention to the query’s input variables highlighted in post-production with π€ emojis.
Let’s add a bit to write a funny record per the schema.
import mysql.connector
import logging
import uuid
# Configure logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def test_mysql_connection():
"""Test MySQL connection and write a funny record to the database."""
logger.info("Testing MySQL connection...")
try:
logger.info("Connecting to MySQL...")
connection = mysql.connector.connect(
host='127.0.0.1',
user='[user]',
password='[password]',
database='[database]',
port=3306
)
if connection.is_connected():
db_info = connection.get_server_info()
logger.info(f"Connected to MySQL Server version {db_info}")
cursor = connection.cursor()
cursor.execute("SELECT DATABASE();")
record = cursor.fetchone()
logger.info(f"Connected to database: {record[0]}")
# Insert a funny record into survey_results
funny_survey_data = {
"session_id": str(uuid.uuid4()),
"q1_response": 1,
"q2_response": 2,
"q3_response": 3,
"q4_response": 4,
"q5_response": 5,
"q6_response": 6,
"n1": 42, π€
"n2": 69, π€
"n3": 420, π€
"plot_x": 3.14, π€
"plot_y": 2.71, π€
"browser": "FunnyBrowser 9000",
"region": "JokeRegion",
"source": "comedy",
"hash_email_session": "f00b4r-hash" π€
}
query = """INSERT INTO survey_results
(session_id, q1_response, q2_response, q3_response, q4_response, q5_response, q6_response,
n1, n2, n3, plot_x, plot_y, browser, region, source, hash_email_session)
VALUES (%(session_id)s, %(q1_response)s, %(q2_response)s, %(q3_response)s, %(q4_response)s,
%(q5_response)s, %(q6_response)s, %(n1)s, %(n2)s, %(n3)s,
%(plot_x)s, %(plot_y)s, %(browser)s, %(region)s, %(source)s, %(hash_email_session)s)
"""
logger.info("Inserting funny survey record...")
cursor.execute(query, funny_survey_data)
connection.commit()
logger.info(f"Funny survey record inserted with ID: {cursor.lastrowid}")
except mysql.connector.Error as e:
logger.error(f"Error during MySQL operation: {e}")
finally:
if 'cursor' in locals() and cursor:
cursor.close()
if 'connection' in locals() and connection.is_connected():
connection.close()
logger.info("MySQL connection closed.")
if __name__ == "__main__":
test_mysql_connection()
I’ve lived in Los Angeles a couple of times for a sum total of perhaps 15 years. The first time, I loved it. The next time, I was running on fumes. The first time, I was in my twenties β the second time in my forties. What a difference perspective and ageing makes. In my twenties, I was a pretty-boy punk-ass who owned the club scene on the Strip. In my forties, I was a wage slave.
This morning, I heard a country song on Insta with a line claiming ‘there are nines and dimes in all 50’, and it reminded me of a phrase we used when I lived in Los Angeles β ‘LA 7’. This is constructed on the egoist, sexist notion that if you were a 10, you’d have already moved to LA. If you still lived in, say, Iowa and were considered a 10, the exchange rate to LA would be a 7.
Then, I thought about the LA-NYC rivalry and wrote this article with some help from ChatGPT.
How L.A. and NYC Became the Centres of the Universe (According to Them)
It is a truth universally acknowledged that Los Angeles and New York Cityβthose bickering siblings of American exceptionalismβbelieve themselves to be the sun around which the rest of us drearily orbit. Each is utterly convinced of its centrality to the human experience, and neither can fathom that people outside their borders might actually exist without yearning to be them. This is the essence of the ‘Centre of the Universe Complex,’ a condition in which self-importance metastasises into a full-blown cultural identity.
Let us begin with Los Angeles, the influencer of cities. L.A. doesnβt merely think itβs the centre of the universe; it believes itβs the universe, replete with its own atmosphere of smog-filtered sunlight and an economy powered entirely by dreams, green juice, and Botox. For L.A., beauty isnβt just a priorityβitβs a moral imperative. Hence the concept of the ‘L.A. 10,’ a stunningly arrogant bit of mathematics whereby physical attractiveness is recalculated based on proximity to the Pacific Coast Highway.
Hereβs how it works: a ’10’ in some picturesque-but-hopelessly-provincial state, say Nebraska, is automatically downgraded to a ‘7’ upon arrival in Los Angeles. Why? Because, according to L.A.βs warped ‘arithmetic, if she were a real 10, sheβd already be there, lounging by an infinity pool in Malibu and ignoring your DMs. This isnβt just vanityβitβs top-tier delusion. L.A. sees itself as a black hole of good looks, sucking the beautiful people from every corner of the earth while leaving the ‘merely pretty’ to languish in flyover country. The Midwest, then, isnβt so much a place as it is an agricultural waiting room for future Angelenos.
But donβt be fooledβNew York City is no better. Where L.A. is obsessed with beauty, NYC worships hustle. The city doesnβt just believe itβs important; it believes itβs the only place on earth where anything important happens. While L.A. is out perfecting its tan, NYC is busy perfecting its reputation as the cultural and intellectual capital of the worldβor, at least, its part of the world, which conveniently ends somewhere in Connecticut.
This mindset is best summed up by that sanctimonious mantra, If you can make it here, you can make it anywhere. Translation: if you survive the daily humiliation of paying $4,000 a month for a shoebox apartment while dodging both rats and an existential crisis, youβve unlocked the secret to life itself. New York isnβt about looking good; itβs about enduring bad conditions and then boasting about it as if suffering were an Olympic sport. In this worldview, the rest of the world is simply an unworthy understudy in NYCβs perpetual Broadway production.
And hereβs the thing: neither city can resist taking cheap shots at the other. L.A. dismisses NYC as a grim, grey treadmill where fun goes to die, while NYC scoffs at L.A. as a vapid bubble of avocado toast and Instagram filters. Itβs brains versus beauty, grit versus glamour, black turtlenecks versus Lululemon. And yet, in their relentless need to outshine one another, they reveal a shared truth: both are equally narcissistic.
This mutual self-obsession is as exhausting as it is entertaining. While L.A. and NYC bicker over who wears the crown, the rest of the world is quietly rolling its eyes and enjoying a life unencumbered by astronomical rent or the constant pressure to appear important. The people of Iowa, for example, couldnβt care less if theyβre an ‘LA 7’ or if theyβve “made it” in New York. Theyβre too busy living comfortably, surrounded by affordable housing and neighbours who might actually help them move a sofa.
But letβs give credit where itβs due. For all their flaws, these two cities do keep the rest of us entertained. Their constant self-aggrandisement fuels the cultural zeitgeist: without L.A., weβd have no Kardashians; without NYC, no Broadway. Their rivalry is the stuff of legend, a never-ending soap opera in which both cities play the lead role.
So, let them have their delusions of grandeur. After all, the world needs a little dramaβand nobody does it better than the cities that think theyβre the centre of it.
Don’t get me wrong, I still have fond memories of the wordβa couple anyway.
For Whom the Bell Tolls β Hemingway or Metallica
Even if we retain it in a written form, perhaps we can agree to relinquish the M to silence. We’ve already seeded the ground. When M precedes N at the start of a word, it’s silent, so that gives me hope. Although to be fair, most of these words are silent in general. Save for mnemonic, I can’t say I’ve used anyβand how often have I written mnemonic save for now? just to show off. Nobody ever seems to notice the silent M in pterodactyl.
Whom Protesters
But verbally, aurally, in speech, perhaps we can all agree to drop to Mβa sort of silent protest. Sure, there are other solutions. Take ‘With whom am I speaking?’ as an example. When is the last time you said or heard this?
I mean, Who am I speaking to? only shifts the problem to be defended by other language guardians. And it’s really a grammar challenge of two fronts, asβmisplaced, split infinitive asideβit should rather read Whom am I speaking to? That limits the battle to a single front. But if we drop the M-soundβmaking it silentβ, we can slide this one by. And who would have the occasion to write ‘Whom am I speaking to?‘ This is something that is a spontaneous speech act.
Of course, we could simplify it further to SMS-speak: who dis? or who dat? This might create as many problems as it solves. Some people seem especially interested in the SMS-driven decline of the English language.
If a lion could speak, we could not understand him.
β Ludwig Wittgenstein
As much as I love Wittgenstein’s quote on language, I find it vastly more amusing aside the lion of Gripsholm Castle in Sweden. Because as talking lions come, this one is certainly more unintelligible than most.
If a lion could speak (Gripsholm Remix)
I also appreciate Daniel Dennett’s retort that if we could manage to communicate with this one talking lionβnot, of course, this lion in particularβthat it could not speak for the rest of lionity. (Just what is the equivalent of humanity for lions?)
If a lion could speak (traditional)
Ludwig Wittgenstein famously said, “If a lion could talk, we could not understand him.” ( [Philosophical Investigations] 1958, p. 223) That’s one possibility, no doubt, but it diverts our attention from another possibility: if a lion could talk, we could understand him just fineβwith the usual sorts of effort required for translation between different languagesβbut our conversations with him would tell us next to nothing about the minds of ordinary lions, since his language-equipped mind would be so different. It might be that adding language to a lion’s “mind” would be giving him a mind for the first time! Or it might not. In either case, we should investigate the prospect and not just assume, with tradition, that the minds of nonspeaking animals are really rather like ours.
Daniel Dennet β Kinds of Minds: Toward an Understanding of Consciousness (p.18)
Why is it that one can only justify reason through reason?
Yellow card infraction.
Within Critical Thinking, we have a useful definition: Grounds, for example, for making a claim to knowledge or holding a belief. (Black et al., 2012, p. 100.) In fleshing out this particular definition, letβs consider what grounds means within a critical thinking context. It means, βa reason or reasons for a claim or belief,β (Black [β¦]
This image speaks for itself, so I won’t editorialise at the moment, save to mention that I find the scenario to be hilarious. If you like eating cooked lobster, I suppose that the elephant path makes the most senseβand of course, the elephant is already on fire.