vttoth

I am a software developer and author of computer books. I also work on some problems in theoretical physics. For more information, please visit my personal Web site at http://www.vttoth.com/.

Nov 302023
 

So the other day, as I was doing a Google Search (can’t exactly remember what it was that I was searching for but it was machine learning related), up pops this invitation to participate in a challenge.

Turned out to be the Google Foobar challenge, Google’s secret recruiting tool. (Its existence is not really a secret, so I am not really revealing any great secrets here.)

Though I have no plans to become a Google employee (and I doubt they’re interested in me on account of my age anyway) I decided to go through the challenge because, well, it’s hard to say no to a challenge, and it was an opportunity to practice my Python skills (which need a lot of practice, because I have not yet used Python that much.)

Well, I did it. It was fun.

More importantly, I enjoyed it just as much as I enjoyed similar challenges as a math geek in my early teens. And if that’s not a gift from life, I don’t know what it is.

And yes, I am now much better at Python than I was just a few days ago. I certainly appreciate why the language has become popular, though I can also see its non-trivial pitfalls.

 Posted by at 6:03 pm
Nov 302023
 

This morning, like pretty much every morning, there was an invitation in my inbox to submit a paper to a journal that I never heard of previously.

Though the unsolicited e-mail by itself is often an indication that the journal is bogus, predatory, I try to be fair and give them the benefit of the doubt, especially if the invitation is from a journal that is actually related to my fields of study. (All too often, it is not; I’ve received plenty of invitations from “journals” in the medical, social, biological, etc., sciences, subjects on which I have no professional expertise.)

So what are the signs that I am looking for? Well, I check what they published recently. That’s usually a good indication of what to expect from a journal. So when I read a title that says, say, “Using black holes as rechargeable batteries and nuclear reactors,” I kind of know what to expect.

Oh wait. That particular paper appears to have been accepted for publication by Physical Review D.

Seriously, what is the world of physics coming to? What is the world of scientific publishing, by and large, coming to? Am I being unfair? Just to be sure, I fed the full text of the paper on black hole batteries to GPT-4 Turbo and asked the AI to assess it as a reviewer:

 Posted by at 11:06 am
Nov 222023
 

Watching things unfold at OpenAI, the company behind ChatGPT, these past several days was… interesting, to say the least.

I thought about posting a blog entry on Monday, but decided to wait as I was sure there was more to come. I was not disappointed.

First, they fire Sam Altman, in a move that is not unlike what happens to the Game of Thrones character Jon Snow at the end of Season 5. (Yes, I am a latecomer to GoT. I am currently watching Season 6, Episode 3.)

Then several other key executives quit, including the company president, Greg Brockman.

Then, the Board that fired Altman apparently makes noises that they might welcome him back.

But no, Altman and Brockman instead joined Microsoft after, I am guessing, Nadella made them an offer they could not refuse.

Meanwhile, in an open revolt, the majority of OpenAI’s employees signed a letter demanding the resignation of the company’s Board of Directors, threatening to quit otherwise.

The authors of CNN’s Reliable Sources newsletter were not the only ones asking, “What on Earth is going on at OpenAI?”

As if to answer that question, OpenAI rehired Altman as CEO, and fired most of their Board.

The New Yorker‘s take on the “AI revolution”

Meanwhile, some speculate that the fundamental reason behind this is not some silly corporate power play or ego trips but rather, genuine concern that OpenAI might be on the threshold of releasing the genie from the bottle: the genie called AGI, artificial general intelligence, that is.

I can’t wait. AGI may do stupid things but I think it’d have to work real hard to be dumber than us humans.

 Posted by at 3:43 pm
Nov 202023
 

I am not Jewish. My family is not Jewish.

My father’s first wife, however, was Jewish. His son from that first marriage, born decades before I was born, is Jewish and married a Jewish woman. My mother’s grandparents, though not Jewish, worked for a Jewish family at the turn of the last century, and lived in their household.

That might explain how it came to be that I grew up using expressions like “gott sei dank” or “na zag schon”, much to the amusement of some of my Jewish friends who know less Yiddish than I. Or why I have friends who had parents, siblings, aunts, nieces, spouses murdered in Auschwitz or shot into the Danube by the Hungarian Arrow Cross during the Holocaust.

No, that does not mean that suddenly I have a favorable opinion of Mr. Netanyahu (I don’t) or that I turn a blind eye when I see innocents suffer. I have criticized and will again criticize the government of Israel. In fact, for what it’s worth, I think Netanyahu is a crook, his pact with the far right is a poison pill for Israeli democracy, and that the outsize influence of the ultraorthodox is corrupting Israeli politics. Unfortunately I also do not see a long-term solution, an achievable goal: None of the foreseeable alternatives provide an acceptable outcome: The two-state solution undermines Israeli security, annexation would create an Arab-majority state, more drastic “solutions” like wholesale expulsion or genocide (of either Palestinians or Jews) are obviously unacceptable. So the status quo remains by default, even though it’s not exactly a solution either.

But “never again” must mean something. Failure to respond to the attack on October 6 would amount to the Israeli state abandoning its most basic responsibility to its citizens. It is the sad nature of war that when one party hides behind its civilians, civilians suffer. Notably, however, hiding behind civilians only works against a civilized opponent that abhors “collateral damage”: if Israel was as savage, as hell-bent on genocide as its enemies suggest, hiding behind civilians would not work as a Hamas tactic.

Earlier, I came across a meme that depicted a female Arab member of Israel’s Knesset, enumerating the rights she enjoys as a full citizen of Israel. I changed my mind about reusing that meme since I suspect that it was created without her approval. Even though she is a public figure, so using her image in this manner is arguably legitimate, it felt a bit tasteless.

Instead, let me just repost a propaganda meme straight from Israel’s defense forces.

It’s not even new; it dates back to 2014. And yes, it’s a propaganda piece. But like all good propaganda, it is based on the sad truth.

 Posted by at 1:01 pm
Nov 192023
 

So I am watching this political drama series, with almost daily new installments.

It’s about a world heading towards conflict, with one of the major powers in particular having recently voted out of office a would-be despot, a crooked, narcissistic businessman who became a politician mainly for self-glorification, preaching a populist message. Although he’s no longer in office, he remains popular, despite the fact that he also has several lawsuits (both civil and criminal) hanging over his head.

The current season will wrap up soon. I am having a feeling that the writers plan to bring him back next season and that, in fact, he’ll win the election again.

Portrait of a would-be despot, a crooked, narcissistic businessman, his thinning blond hair in a combover, with a fake tan, who became a politician mainly for self-glorification, preaching a populist message to a crowd of adoring followers

Pictured is Midjourney’s response to the prompt, “Portrait of a would-be despot, a crooked, narcissistic businessman, his thinning blond hair in a combover, with a fake tan, who became a politician mainly for self-glorification, preaching a populist message to a crowd of adoring followers“.

Oh wait, you’re telling me that this is NOT a scripted television series created for entertainment? That it is reality?

 Posted by at 9:53 pm
Nov 172023
 

“I am freer than you”. These were the defiant words of St. Petersburg artist Sasha Skochilenko as she was sentenced for five tiny pieces of paper, providing details about Russia’s “special military operation” in Ukraine.

She used the five pieces of paper in question to replace price tags in a grocery store.

Among other things, she said in court, that [emphasis mine]

[…] I am unable to understand why we need military operations. Why are we doing this? Military actions shorten life. Military actions mean death.
You can call it anything you want. You can say I was mistaken, misled, or brainwashed. But I always stick to my opinion, my truth.
I don’t know anyone other than the state prosecutor who wants to put me in prison.
In fact, I think that deep down even the state prosecutor doesn’t want this. I think he became a prosecutor to imprison real criminals and miscreants — murderers, rapists, pedophiles.
[…]
You are worried about your career […] to give your children or your future children a head start. But what will you tell them? Will you tell them how you sent to prison an ailing woman because of five tiny pieces of paper?
[…]
Even though I am behind bars, I am freer than you. […] I am not afraid that I won’t have a dazzling career or of appearing funny, vulnerable, or strange. I’m not afraid of seeming different from other people. Maybe that is why the state fears me and others like me so much and keeps me in a cage like a dangerous animal.

What an incredibly brave woman. What a morally bankrupt state it is that imprisons someone for this “crime”.

 Posted by at 12:11 am
Nov 112023
 

The fate of animals in wars was often tragic. They served their human masters (and all too often, died with their human masters) faithfully.

One of the most touching war memorials I ever came across was the Animals in War memorial in Hyde Park, London, that I stumbled upon completely by accident, unaware of its existence. Not that the animals themselves care, but it’s nice that they are remembered. And as of 2012, Ottawa has its very own Animals in War memorial, in Confederation Park.

Neither of these memorials specifically mention cats, though, despite the fact that cats played no small a role in making the otherwise unbearable conditions a teeny bit more tolerable. Many were killed. Occasionally, they even helped save their masters’ lives.

Long story short, last night I asked Midjourney to depict a gentlecat, thinking about his lost comrades.

 Posted by at 12:45 pm
Nov 082023
 

Sometimes it feels… so pretentious.

Here I am, saying all sorts of clever things in my blog. I once declared blogs to be write-only media, my way of shouting at the world without the world saying anything in return, but that kind of ceased being true when I decided, eons ago, to share my blog posts on social media, where a few friends at least reacted occasionally.

So who do I think I am, proclaiming my wisdom to the world, really?

For instance, a few days ago I thought I’d blog about the first precision clock arriving in America centuries ago, and promptly failing, leading to a better understanding of how the gravitational acceleration on the surface of the Earth may change with geographic location. But is there anything I can add to the subject other than what’s in the article I am citing?

Or take this report from earlier today, about Singapore’s Prime Minister expressing very much the same concerns that I have about the world experiencing a moment of danger not unlike the moments before the Great War. OK, so I blog about it. Is there anything I can add other than, hey, look, I am ever so clever, even Singapore’s PM shares my views!?

I suppose I feel most comfortable blogging about my actual research or my work. These are subjects that I can address with some competence.

Or maybe just blog about cats. They know how to be wise and silent, after all.

Meanwhile, in the world of humans…

F-15s strike weapons facility in Syria

By Lauren C. Williams and Jennifer Hlad

ABOARD A MILITARY PLANE—Two U.S. F-15 fighter jets attacked a weapons storage facility in eastern Syria on Wednesday, in what Defense Secretary Lloyd Austin called a “precision self-defense strike” in response “to a series of attacks against U.S. personnel in Iraq and Syria by the [Iranian Islamic Revolutionary Guard Corps]-Quds Force” and related groups.

So I must now follow my cats’ example and resist the urge to blog about how the US and Iran might already be at war…

 Posted by at 9:51 pm
Nov 062023
 

Looking at this headline on CTV News this morning, you might have been wondering if our esteemed politicians have finally decided that they’ve had enough of us, this winter it’s time for the unwashed masses to freeze to death. No more home heating for you!

Fortunately that is not what the news was about. What the headline should have said was, “Calls for all home heating tax to be suspended”, referring to carbon taxes that apply to fuel, and the decision of the government to suspend this tax on home heating oil but not other home heating fuels.

Guess it was a little too early in the morning for some of CTV’s technicians this Monday! (Can’t really blame them. When does their workday begin anyway, 4 AM or something?)

 Posted by at 9:39 am
Nov 042023
 

I grew up on The Beatles.

OK, I came a little late I guess, as The Beatles broke up when I was in the second grade, and truly it wasn’t until the fifth grade that a classmate introduced me to the Red and Blue albums… But I fell in love with their music. I couldn’t believe that they were not together anymore, and like many young teens my age, I kept hoping that they’d reunite until Lennon was murdered.

I never stopped loving their songs.

What I did not expect was that I’d be listening to a new Beatles song almost 50 years later, in 2023.

I admit I was skeptical at first. I expected something that would bear a vague, soulless resemblance to what The Beatles used to be, a cheap attempt to cash in on their fame one very last time.

Instead, I was listening to an authentic Beatles song. One of their best, as a matter of fact. And I was looking at a video that brought Lennon and Harrison back to life, cheerful, funny, joyous, happy…

Bless Peter Jackson. There are “deepfakes” and then there are “deepfakes”… and I cannot think of a more appropriate, more respectful use of AI, bringing legends of the past back to life, as in this video.

I have listened to the song and watched Peter Jackson’s masterful creation at least five times in a row. And every time, I was almost in tears.

 Posted by at 6:53 pm
Nov 022023
 

Imagine the following sequence of events:

  • First, a second-rate power suffers a terrorist attack as part of a festering political crisis that has been going on for many years. This attack is the proverbial last drop in the bucket: they feel they must respond, and launch a punitive military expedition that may not be well planned and might even fail, despite their apparent superiority.
  • A rival second-rate power who supported the rebels that committed the terrorist act feels that it must intervene. Its voice has been ignored for far too long, and it has vital interests in the region.
  • A Great Power, in support of the first second-rate power as part of a long-standing alliance, steps in, reluctantly because they do not want to get embroiled in someone else’s war, but convinced that their actions are unavoidable.
  • Another Great Power, in reaction, steps in as well because it feels that it is necessary essential to do so in order to maintain the existing world order and their position therein.

What did I just describe? The October 7 attack on Israel by Hamas? The increasingly hostile response by Iran? A possible intervention by the United States assisting Israel, leading to direct conflict with Russia who are already active in the region and embroiled in conflict elsewhere?

Nope. I was describing something that happened 109 years ago, when Serbian terrorist Gavrilo Princip murdered Austria-Hungary’s heir to the throne. Austria-Hungary’s punitive expedition against Serbia was launched in response. This led to Russia’s decision to enter the war, followed by the German Empire and ultimately, Britain.

Yet, though the analogy is far from perfect, the parallels are unmistakable. And to be honest, frightening.

This is why I don’t think of 10/7 as Israel’s 9/11. Nope. It’s our era’s Sarajevo.

We have been living in a golden era that has no precedent in human history. Pax Americana, which began in 1945 and was characterized by measures like the Marshall Plan that, instead of punishing Western Europe, helped the continent back onto its feet, has been keeping our world safe and prosperous for almost eight decades. No, not perfect, far from it. Millions still died in conflict. But it was millions, not billions, and the promised great conflict, a thermonuclear WW3, has not happened yet. Meanwhile, billions live in relative security, safety, and prosperity, enjoying decent lives, on a scale that truly has no historical parallel (though the period between 1849 and 1914 comes close.)

But ultimately, all good things must come to an end, they say. And this world order is coming apart at the seams. Alliances weaken. A rules-based world is no longer in vogue. Liberal democracies are losing their middle class, even as the same middle class votes for lower taxes and less government, forgetting that it was higher taxes and more government (reminding my good American friends of the late 1940s, 1950s, with the GI bill, the Interstate highway system or public education, all financed by taxing high incomes at rates not seen before or since) that built that prosperous, strong middle class in the first place. Other Western nations follow similar paths as the middle class shrinks and trust in the institutions of liberal democracy erodes.

“The lamps are going out all over Europe,” declared Sir Edward Grey, Britain’s Foreign Minister at the time, on August 3, 1914 as his country was about to declare war on Germany. I fear that we are just a hair’s breadth away from our lamps-are-going-out moment. And just like Sir Edward Grey, responsible leaders of our times appear to feel increasingly helpless.

 Posted by at 10:08 pm
Nov 012023
 

A few minutes ago, I checked Google News on my phone and lo and behold, there was a link to Universe Today, a new article discussing my latest manuscript on multiple gravitational lenses.

I knew that this was in the works, as the author approached me with some questions earlier in the day, but I didn’t expect it to appear this quickly, and, well, seeing it on my phone like this was a nice surprise.

Had the author asked, I’d have happily granted permission to use one of my generated images or animations involving multiple lenses.

Meanwhile, my paper on a four-satellite configuration used to detect deviations from Newtonian gravity was published by Astrophysics and Space Science, one of the Nature journals. I am officially permitted (in fact, encouraged) by Springer to share the link to an online read-only version of the published paper.

 Posted by at 1:25 am
Oct 292023
 

Every so often, a Google Calendar reminder that I set up ages ago reminds me to charge our old cell phones. This is to prevent their batteries from dying as a result of a deep discharge.

Old cell phones, you ask? Well, yes. When we swapped phones, we kept the old ones for a while, just in case. And then we kept them because wiping them securely seemed like too much of a hassle. And then we kept them because, well, what’s the alternative? Landfill? Yes, I know, some service providers accept old phones, might even give you credit. But what happens to those old phones? Who needs them? Who can use them, with their ailing batteries and, worst of all, the absence of software updates, including security patches?

Indeed, this end of support was the main reason why we ditched phones in the past. And it really is tragic. Never mind phones old enough to have outdated specs. I have here a few devices that have hardware specs that would be reasonable on the low end even today. The devices are perfectly functional. Yet they are worthless.

This is just… conspicuous consumption, forced upon us by a society that measures the health of the economy not by its stability or sustainability but by growth. Pointless, limitless growth.

Never mind that in the meantime, the middle class shrinks, the income and wealth gap widens, society is becoming more polarized, ultimately threatening the very foundations of our Western liberal democracies. Who cares about such nonsense when there’s a new phone out there with half a dozen camera lenses and who knows what other nonsense just to make you believe that they’re worth your money and that it’s perfectly okay to throw away a capable, quality piece of electronics that would have many more years of useful life left?

Darnit, I realize I almost sound like a grumpy old commie, when in reality what I worry about is the future of a healthy capitalist society, characterized by freedom of conscience, the rule of law, freedom of speech, and freedom of enterprise. But there’s a fine line between freedom of enterprise and the “tragedy of the commons”, and when free enterprise undermines the very foundations of liberal democracy, perhaps it is advisable to do something about it before it is too late.

By the way, I really liked these Nokias. What a pity we had to get rid of them. They still function perfectly, but without security patches, they’re not worth the risk.

 Posted by at 2:58 pm
Oct 212023
 

It was 82 years ago, back in 1941, that the country of my birth, Hungary, switched to driving on the right [link in Hungarian].

Streetcar with a large sign reminding the public to drive on the right

The decision has a sad history. It was prompted by the experience earlier that year when Hungary allowed the transit of Wehrmacht troops on their way to occupy Yugoslavia.

This was yet another step towards Hungary fully committing itself to the German effort, giving up any semblance of neutrality.

For Hungary’s prime minister at the time, Pal Teleki, this was the last drop [link in Hungarian] in the proverbial bucket. Early in the morning on April 3, 1941, he shot himself. His farewell letter to Miklos Horthy, Hungary’s leader at the time, simply stated, “I did not hold you back. I am guilty. Pal Teleki, April 3, 1941.”

Hungary went on to fight with the Germans against the USSR. When it became clear that the Germans cannot win, Horthy made a half-hearted attempt to extricate the country out of the war. Instead, he was removed from power by the rabid national socialist Arrow Cross, with support from occupying German troops, who in the remaining few months of the war assisted the Germans in the deportation and wholesale murder of hundreds of thousands of Hungary’s Jews. In the end, the country was liberated but at a tremendous cost: Much of Budapest lay in ruins, devastated by a brutal Soviet siege, with all the city’s magnificent bridges across the Danube destroyed by the retreating Germans. Eventually, Horthy’s worst nightmare became reality: The “Bolsheviks” took over and stayed in power for more than 40 years, which included the a bloody intervention by the Soviets in 1956 to crush an anti-communist revolution.

Meanwhile, Budapest’s “millennial” subway, the continent’s first all-electric urban underground railway, continued to drive on the left all the way up to 1973, when the line was rebuilt, new rolling stock were introduced, and these trains, too, were switched to right-hand drive.

 Posted by at 9:41 pm
Oct 192023
 

Last night, I received notification from the CRA about an upcoming small tax refund.

When I logged on with my business account, it appeared to show that I had 3 unread messages, though there was a funny smudge before the ‘3’ in the notification icon.

When I clicked, I saw only one unread message. When I went back to the main screen, I now saw a ‘4’. That’s when I realized that the smudge was… a minus sign.

Indeed I had four messages shown in the mail interface, all read. So instead of counting the number of unread messages as a positive number, the UI showed the number of read messages as a negative number.

I have not yet received the refund. I hope that when (if?) it shows up in my bank account, it will have the correct sign.

 Posted by at 10:15 pm
Oct 172023
 

Here are two images. The first is from 1943.

By way of explanation, the gentleman on the left is Admiral Miklos Horthy, Hungary’s leader at the time. The gentleman on the right with the famous moustache needs no introduction.

The second image is from today, October 17, 2023:

The somewhat overweight gentleman on the left is Viktor Orban, Hungary’s prime minister. The gentleman on the right is well known I suppose.

I don’t think I need to comment on why I opted to post these two pictures together. All I have to say is that this second image will come to haunt Hungarians in the future much the same way as the first.

 Posted by at 3:52 pm
Oct 122023
 

I’m doing more work on gravitational lensing. In particular, the little ray tracing model that I developed can now use actual astronomical images as sources. Here’s a projection of a nice spiral galaxy as it would be seen through a pair of non-coplanar, imperfectly lined up lenses:

Somehow, I suspect, no astronomer would recognize (at least not without a spectral analysis) that these are four images of the same rather nice-looking galaxy, NGC-4414:

These lensing examples also demonstrate how difficult it is to reconstruct either the original view, or the mass distribution of the lens itself, when all we see is something like the first image above.

 Posted by at 9:35 pm
Oct 122023
 

As I watch the lamps of the post-WW2 world order go out, one tiny, flickering light at a time, I am compelled to remember something that happened more than a century ago: When Sir Edward Grey, Great Britain’s Foreign Secretary at the time, remarked that “the lamps are going out all over Europe”.

We are not quite there yet. There is hope that sanity will prevail.

Yet I feel that that hope is fading, that time is running out.

In 1914, the point of no return, the trigger was Germany’s decision to attack neutral Belgium. It compelled Britain to declare war, and ultimately widened that war into the world’s first (or maybe second — I think the Napoleonic wars might qualify as World War 0) global conflict.

What the trigger will be this time, I do not know. I am reacting in part to the announcement that the West warned Hezbollah to stay out of Israel’s conflict with Hamas. But chances are it will be something else.

But it is coming, of that I am near certain, even as I dearly hope that I am dead wrong, that my pessimism is unwarranted, my concerns grossly misplaced.

 Posted by at 2:17 am
Oct 082023
 

I am simulating gravitational lenses, ray tracing the diffracted light.

With multiple lenses, the results can be absolutely fascinating. Here’s a case of four lenses, three static, a fourth lens transiting in front of the other three, with the light source a fuzzy sphere in the background.

I can’t stop looking at this animation. It almost feels… organic. Yet the math behind it is just high school math, a bit of geometry and trigonometry, nothing more.

NB: This post has been edited with an updated, physically more accurate animation.

 Posted by at 5:35 pm