Al Sweigart's Avatar

Al Sweigart

@alsweigart

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

3,106
Followers
250
Following
1,374
Posts
11.05.2023
Joined
Posts Following

Latest posts by Al Sweigart @alsweigart

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?

06.03.2026 16:15 πŸ‘ 2 πŸ” 0 πŸ’¬ 7 πŸ“Œ 0

The Manhattan Trials

The Twin Cities Trials

The Burlington Trials

05.03.2026 19:28 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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

05.03.2026 19:25 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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

05.03.2026 19:23 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
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?

05.03.2026 18:11 πŸ‘ 4 πŸ” 2 πŸ’¬ 2 πŸ“Œ 0
AIPAC Dropped Six-Figure Attack Ad Against Me. Is This All They Got? | Kat Abughazaleh For Illinois
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...

04.03.2026 20:47 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
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

04.03.2026 19:06 πŸ‘ 156 πŸ” 44 πŸ’¬ 6 πŸ“Œ 2

LOOK, IT'S OBVIOUS. YOU GO STEAMPUNK.

04.03.2026 18:52 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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.

04.03.2026 18:51 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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.

04.03.2026 14:32 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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."

04.03.2026 04:03 πŸ‘ 17 πŸ” 4 πŸ’¬ 2 πŸ“Œ 0

I think about this take more often than I'd like to.

04.03.2026 02:39 πŸ‘ 5158 πŸ” 1175 πŸ’¬ 15 πŸ“Œ 8
XKCD 1205 comic

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.

03.03.2026 22:38 πŸ‘ 16 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

My gasts! They've been flabbered!

03.03.2026 21:27 πŸ‘ 5 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
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...

03.03.2026 20:47 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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...

03.03.2026 19:29 πŸ‘ 16 πŸ” 0 πŸ’¬ 3 πŸ“Œ 0

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

03.03.2026 18:32 πŸ‘ 1480 πŸ” 217 πŸ’¬ 17 πŸ“Œ 2

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.

03.03.2026 15:05 πŸ‘ 9 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

03.03.2026 14:43 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
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.

03.03.2026 13:51 πŸ‘ 14 πŸ” 6 πŸ’¬ 1 πŸ“Œ 0

Targeting schools as β€œcenters of gravityβ€œ in Israelspeak is intended to weaken the resolve of the civilian population and decrease support for the war. Israel’s goal is to stoke a popular uprising in Iran.

This strike on little girls on day zero of the military campaign is meant to do just that.

03.03.2026 14:34 πŸ‘ 8 πŸ” 5 πŸ’¬ 1 πŸ“Œ 0

Cops are great

02.03.2026 21:11 πŸ‘ 115 πŸ” 34 πŸ’¬ 4 πŸ“Œ 0
02.03.2026 03:16 πŸ‘ 14 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Rigged casinos are a great way to make money from insider information.

02.03.2026 03:01 πŸ‘ 9 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Not ICE. Not Border Patrol. Just the same rotten local cops we've always had

02.03.2026 01:04 πŸ‘ 2439 πŸ” 888 πŸ’¬ 60 πŸ“Œ 26
Preview
IDF accepts Gaza Health Ministry death toll of over 71,000 Palestinians killed in the war Although Many International Experts Have Accepted the Health Ministry's Data as Reliable, and Even Conservative Relative to the True Death Toll, Israel Had Refused to Accept the Health Ministry's Coun...

I cannot tell you how much doubt was consistently directed at the Gaza Health Ministry’s casualty numbers and how much pressure was put on news organizations to couch those numbers as unreliable.

Biden himself said they were fabricated!

www.haaretz.com/israel-news/...

29.01.2026 15:29 πŸ‘ 6270 πŸ” 2188 πŸ’¬ 166 πŸ“Œ 207

in case anyone ever needed confirmation that it's not about building a democratic Iran, it's about collapsing Iran and turning it into a land of rubble that can be bombed every six months

01.03.2026 02:18 πŸ‘ 2847 πŸ” 1077 πŸ’¬ 21 πŸ“Œ 19
Preview
Emergency protests against war on Iran in cities across U.S. Act Now to Stop War & End Racism

Emergency protests against war on Iran in cities across U.S.

Find your local details for today's protest.

www.answercoalition.org/iran

28.02.2026 14:55 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 1
Post image

Never forget who you’re fighting for.

28.02.2026 12:04 πŸ‘ 11115 πŸ” 2856 πŸ’¬ 46 πŸ“Œ 59

The first deaths announced from the US-Israeli strikes on Iran: dozens of school girls. They hit an elementary school in Hormozgan.

28.02.2026 11:35 πŸ‘ 3778 πŸ” 1621 πŸ’¬ 63 πŸ“Œ 169