Al Sweigart

Al Sweigart

@alsweigart.bsky.social

Author of "Automate the Boring Stuff with Python" and other books. Mostly harmless. Last name rhymes with "why dirt." he/him

3,111 Followers 253 Following 1,380 Posts Joined May 2023
1 day ago
Post image

A reminder: Picking the numbers 1-2-3-4-5-6 for your ticket is literally, mathematically, just as likely to win as any other set of numbers.

But you'd never pick those numbers because you know they won't win.

Don't waste your money on the lottery.

8 0 2 0
1 day ago

I absolutely guarantee you the answer is "the dumbest way possible."

Think of the dumbest way to use a large language model to make strategic decisions that you can, and the actual way will be dumber than that.

3 0 1 0
4 days ago
Asked if the US attacked a desalination plant in Iran, Pres. Trump says Iranians are "among the most evil people ever on earth."
"They cut babies' heads off—they chop women in half..."
"I know nothing about a desalinization plant, other than to say, if they're complaining about a desalinization plant, we complain about the fact they shouldn't be chopping babies' heads off."
Trump envoy Steve Witkoff and Defense Secretary Pete Hegseth can be seen nodding in agreement.

A pretty clear demonstration here of how the lies told to sell the destruction of the Gaza Strip to the public helped to create the structure of impunity required to destroy as much as possible of other countries too

528 166 18 22
1 week ago
Preview
Slurs Filled a Chat Created by a Republican Party Official in Florida

passive voice final boss grand champion honorable mention award for turning slurs into a sentient thing that can do actions www.nytimes.com/2026/03/05/u...

2,370 537 39 25
6 days ago
Video thumbnail

Yesterday I observed 15 shackled detainees being loaded on the ICE Air flight at MSP. In this clip, as the last one hobbles on, staff put away a full-body WRAP restraint, which had been laid out next to the airstairs.

ICE Air & WRAP: www.ap.org/news-highlig...

Data: ottergoose.net/ice-flights-...

232 150 9 13
2 days ago

One negative review describes "Good Luck, Have Fun, Don't Die" as Terminator 2: Groundhog Day, and yeah, that kind of sums it up. It's an unoriginal Black Mirror knockoff with big Gen X self-important dude asshole energy.

1 0 1 0
3 days ago

"Good Luck, Have Fun, Don't Die" is a movie that's so bad, it's bad. It has some moments, but it's clearly trying to pull together a bunch of tropes for a cliche old-man-yells-at-cloud moral and I really wish I hadn't spent money on it. Give it a pass.

4 0 1 0
4 days ago

It makes sense if your objective is not conquest but genocide.

5 1 0 0
4 days ago

Back scratcher

1 0 0 0
4 days ago
Artist conception of the of the NASA Space Launch System rocket in flight in a clear blue sky.  The word "PyOhio 2026 IS GO!" have been superimposed over the sky background.

Image credit: NASA/MSFC, Public domain, via Wikimedia Commons

The #PyOhio #CFP is LIVE now! This is the moment you've all been waiting for!

You can submit up to three talk proposals using the Pretalx form here: pretalx.com/pyohio-2026/...

Boosts and re-posts are very welcome, and thank you for your support!

#Python #TechConference

2 5 1 1
6 days ago

When I talk to LLMs, I find myself preferring short answers. I'll add "Just give me the list without explanation" or "One sentence answer" at the end of my prompt. Do other people do this? Do you prefer conversational answers? Do you read the answer or have it spoken to you?

4 0 7 0
1 week ago

The Manhattan Trials

The Twin Cities Trials

The Burlington Trials

0 0 0 0
1 week ago

Does anyone else ever get "phantom laptop DVD drive syndrome"?

3 0 0 0
1 week ago

I tried dragging the rotation box, but it ends up looking the same.

1 0 1 0
1 week ago
Post image

I'm making the slides for my talk for PyTexas2026 (April 17 to 19 in Austin, tickets now available at www.pytexas.org/2026/ )

Can anyone tell me how to rotate a circle in google sheets?

4 2 2 0
1 week ago
YouTube
AIPAC Dropped Six-Figure Attack Ad Against Me. Is This All They Got? | Kat Abughazaleh For Illinois YouTube video by Kat Abughazaleh

www.youtube.com/watch?v=Diwa...

2 0 0 0
1 week ago
Post image

ICE thinks we're dumb but I clocked this dude immediately at Ramsey Sheriff office (skyway) downtown

Every "woke" sticker on a blacked out tinted truck lol

"ICE out"
"Fuck Trump"
"🌈"
"Free Palastine"
🇲🇽

Cali plate not in database yet but masked driver floored it when I took pic

They're still here

156 44 6 2
1 week ago

LOOK, IT'S OBVIOUS. YOU GO STEAMPUNK.

2 0 0 0
1 week ago

I recently re-read A Confederacy of Dunces for the first time since high school, and wow it's an incredible book and really ahead of its time. But, yeah, the whole "lol the joke is that he is fat and unattractive" does detract.

1 0 0 0
1 week ago

There should be some grand unifying theory of change timelines, because it was all standard for me: ten minutes to do the actual change, two weeks of bumpiness, and then after that it was just a habit.

1 0 0 0
1 week ago

When I switched from Google to DuckDuckGo, from Chrome to Firefox, and from Windows to macOS, from MS Office to LibreOffice, I had the same thought: "That was a lot easier and quicker to get used to than I thought."

17 4 2 0
1 week ago
XKCD 1205 comic

The thing I never liked about xkcd.com/1205/ "Is It Worth The Time?" is that it doesn't consider the fact that the time you spend automating a task is time spent practicing programming and getting better at programming. As devs lean on LLMs to code for them, we're going to learn this the hard way.

16 0 2 0
1 week ago

My gasts! They've been flabbered!

5 0 0 0
1 week ago
Post image

I have a lot of these "teaching people to code" tips in this handbook I made for the MADE (Oakland's video game museum): inventwithscratch.com/Scratch_Clas...

4 0 0 0
1 week ago

One thing I stressed to people teaching others how to code is that you should NEVER put your hands on their keyboard and mouse. Have them do everything, because if you do it, they won't learn anything.

Anyway, so on the topic of agentic AI coding tools...

16 0 3 0
1 week ago

this war has already wiped out the stated gains from what DOGE did last year lol

1,486 218 17 2
1 week ago

If someone says they believe in God, they might be okay or they might be not okay. If they start talking about the Devil and Armageddon, they are ALWAYS batshit crazy.

9 0 1 0
1 week ago

As someone who always uses and links people to the Death Generator, this is a very good idea, unfortunately.

2 0 0 0
1 week ago
Preview
Questions over Minab girls’ school strike as Israel, US deny involvement Al Jazeera investigation raises questions over deadliest single attack of war that killed 165 schoolgirls and staff.

I didn’t even know there was Israeli propaganda saying it was an Iranian missile misfire until I went on FB. Many actually believe this.

Nor did I know until this article about Israel’s long history of targeting schools like this—outside Gaza and before 2023.

14 6 1 0