frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Scientists reverse Alzheimer's in mice and restore memory (2025)

https://www.sciencedaily.com/releases/2025/12/251224032354.htm
1•walterbell•31s ago•0 comments

Compiling Prolog to Forth [pdf]

https://vfxforth.com/flag/jfar/vol4/no4/article4.pdf
1•todsacerdoti•1m ago•0 comments

Show HN: Cymatica – an experimental, meditative audiovisual app

https://apps.apple.com/us/app/cymatica-sounds-visualizer/id6748863721
1•_august•3m ago•0 comments

GitBlack: Tracing America's Foundation

https://gitblack.vercel.app/
1•martialg•3m ago•0 comments

Horizon-LM: A RAM-Centric Architecture for LLM Training

https://arxiv.org/abs/2602.04816
1•chrsw•3m ago•0 comments

We just ordered shawarma and fries from Cursor [video]

https://www.youtube.com/shorts/WALQOiugbWc
1•jeffreyjin•4m ago•1 comments

Correctio

https://rhetoric.byu.edu/Figures/C/correctio.htm
1•grantpitt•4m ago•0 comments

Trying to make an Automated Ecologist: A first pass through the Biotime dataset

https://chillphysicsenjoyer.substack.com/p/trying-to-make-an-automated-ecologist
1•crescit_eundo•8m ago•0 comments

Watch Ukraine's Minigun-Firing, Drone-Hunting Turboprop in Action

https://www.twz.com/air/watch-ukraines-minigun-firing-drone-hunting-turboprop-in-action
1•breve•9m ago•0 comments

Free Trial: AI Interviewer

https://ai-interviewer.nuvoice.ai/
1•sijain2•9m ago•0 comments

FDA Intends to Take Action Against Non-FDA-Approved GLP-1 Drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
6•randycupertino•11m ago•1 comments

Supernote e-ink devices for writing like paper

https://supernote.eu/choose-your-product/
3•janandonly•13m ago•0 comments

We are QA Engineers now

https://serce.me/posts/2026-02-05-we-are-qa-engineers-now
1•SerCe•13m ago•0 comments

Show HN: Measuring how AI agent teams improve issue resolution on SWE-Verified

https://arxiv.org/abs/2602.01465
2•NBenkovich•13m ago•0 comments

Adversarial Reasoning: Multiagent World Models for Closing the Simulation Gap

https://www.latent.space/p/adversarial-reasoning
1•swyx•14m ago•0 comments

Show HN: Poddley.com – Follow people, not podcasts

https://poddley.com/guests/ana-kasparian/episodes
1•onesandofgrain•22m ago•0 comments

Layoffs Surge 118% in January – The Highest Since 2009

https://www.cnbc.com/2026/02/05/layoff-and-hiring-announcements-hit-their-worst-january-levels-si...
7•karakoram•22m ago•0 comments

Papyrus 114: Homer's Iliad

https://p114.homemade.systems/
1•mwenge•22m ago•1 comments

DicePit – Real-time multiplayer Knucklebones in the browser

https://dicepit.pages.dev/
1•r1z4•22m ago•1 comments

Turn-Based Structural Triggers: Prompt-Free Backdoors in Multi-Turn LLMs

https://arxiv.org/abs/2601.14340
2•PaulHoule•24m ago•0 comments

Show HN: AI Agent Tool That Keeps You in the Loop

https://github.com/dshearer/misatay
2•dshearer•25m ago•0 comments

Why Every R Package Wrapping External Tools Needs a Sitrep() Function

https://drmowinckels.io/blog/2026/sitrep-functions/
1•todsacerdoti•26m ago•0 comments

Achieving Ultra-Fast AI Chat Widgets

https://www.cjroth.com/blog/2026-02-06-chat-widgets
1•thoughtfulchris•27m ago•0 comments

Show HN: Runtime Fence – Kill switch for AI agents

https://github.com/RunTimeAdmin/ai-agent-killswitch
1•ccie14019•30m ago•1 comments

Researchers surprised by the brain benefits of cannabis usage in adults over 40

https://nypost.com/2026/02/07/health/cannabis-may-benefit-aging-brains-study-finds/
2•SirLJ•32m ago•0 comments

Peter Thiel warns the Antichrist, apocalypse linked to the 'end of modernity'

https://fortune.com/2026/02/04/peter-thiel-antichrist-greta-thunberg-end-of-modernity-billionaires/
3•randycupertino•32m ago•2 comments

USS Preble Used Helios Laser to Zap Four Drones in Expanding Testing

https://www.twz.com/sea/uss-preble-used-helios-laser-to-zap-four-drones-in-expanding-testing
3•breve•38m ago•0 comments

Show HN: Animated beach scene, made with CSS

https://ahmed-machine.github.io/beach-scene/
1•ahmedoo•38m ago•0 comments

An update on unredacting select Epstein files – DBC12.pdf liberated

https://neosmart.net/blog/efta00400459-has-been-cracked-dbc12-pdf-liberated/
3•ks2048•38m ago•0 comments

Was going to share my work

1•hiddenarchitect•42m ago•0 comments
Open in hackernews

Lost Chapter of Automate the Boring Stuff: Audio, Video, and Webcams in Python

https://inventwithpython.com/blog/lost-av-chapter.html
217•AlSweigart•7mo ago

Comments

alabhyajindal•7mo ago
I learned Python from your Udemy course of the same name. Congrats on the new edition of the book!
AlSweigart•6mo ago
I know I've been saying this for years, but I seriously will get around to updating the videos in the Udemy course this year.
bix6•6mo ago
One of my favorite programming books of all times. Cheers Al!
geophph•6mo ago
And a transit nerd supporter!
AlSweigart•6mo ago
Hello, this is Al. Ha ha, I'm always surprised when people spot my name in supporter credits. Here's a (very out of date) web page of other folks I support: https://alsweigart.com/patreon.html
cortical_iv•6mo ago
I'm curious why you didn't end up including this material?
globalnode•6mo ago
When I saw yt-dlp I thought "risky", wasn't there was a lot of complaining from YT back in the day about this programs predecessor?
AlSweigart•6mo ago
Page count. Automate the Boring Stuff with Python is supposed to be a beginner book for people with no coding experience, but it's almost 600 pages. The biggest hurdle to coding isn't being "smart" enough, but rather getting over the intimidation factor.

The editor recommended we cut this chapter. It made me realize that even though I work with multimedia stuff all the time, this isn't really something most office workers do (at least, not at the scale where you'd want to write Python scripts).

A lot of teaching people to code is hiding details so you don't fire hose them with information they don't need yet. So many software nerds don't get this, and they're excited about all these cool advanced techniques without realizing that beginners don't need to know about recursion or operator overloading. (I completely skip OOP in the book.)

cortical_iv•6mo ago
Makes sense: OpenCV is amazing, but has many rabbit holes and pitfalls. Thanks for posting the draft for us to peruse!
analog31•6mo ago
This is fantastic. I've gotten so much out of cv2 and Python, and just a perusal of the page suggests that there's lots more to learn.
xbmcuser•6mo ago
I was never able to get my head around programing despite my interest over the years. But LLM and python scripts in the last 3-4 years have changed my life.
ymck•6mo ago
What thing have you found most interesting or impactful for you?
Simon_O_Rourke•6mo ago
Love it, that's where I direct all our new hires who want to pick up the basics of Python. I'll be reading this chapter myself this weekend too.
fireattack•6mo ago
> playsound

This library is unfortunately effectively abandoned -- it hasn’t received any updates in over four years, and its latest version doesn’t work at all: https://github.com/TaylorSMarks/playsound/issues/101

(A workaround exists: downgrading to version 1.2.2, but that comes with its own issues.)

The last time I experimented with audio in Python, I was surprised by how lacking its multimedia libraries are.

For example, when I needed to read audio files as data, I tried `SoundFile`, `librosa` (a wrapper around `SoundFile` or `audioread`), and `pydub`, and none of them was particularly satisfying or has seen much active development lately.

If you need to read various formats, pydub is probably your best bet (it does this by invoking ffmpeg under the hood). I was hoping for a more "native" solution, but oh well. Unfortunately, `pydub` is also unmaintained and has some serious performance issues (for example: https://github.com/jiaaro/pydub/issues/518 )

AlSweigart•6mo ago
Oh, thanks for pointing this out. This was an early unpublished draft. I later changed to `playsound3` which is a modern fork of `playsound`. I've updated the web page.
frainfreeze•6mo ago
I guess it depends on the context? For example panda3d supports openAL, FMOD and Miles.
acheong08•6mo ago
Huh I recognize that library. Ran into the same issues last year and made a fork. https://github.com/acheong08/playsound https://pypi.org/project/playsound2/
amelius•6mo ago
> Playing a video file from your Python program is complicated.

You can use PySide6. Here is an example:

    import sys
    from PySide6.QtWidgets import QApplication, QWidget, QVBoxLayout
    from PySide6.QtMultimedia import QMediaPlayer, QAudioOutput
    from PySide6.QtMultimediaWidgets import QVideoWidget
    from PySide6.QtCore import QUrl


    class VideoPlayer(QWidget):
        def __init__(self):
            super().__init__()
            self.setWindowTitle("Video Player - video.mp4")
            self.resize(800, 600)

            # Layout
            layout = QVBoxLayout()
            self.setLayout(layout)

            # Video widget
            self.video_widget = QVideoWidget()
            layout.addWidget(self.video_widget)

            # Media player
            self.media_player = QMediaPlayer(self)
            self.audio_output = QAudioOutput(self)
            self.media_player.setAudioOutput(self.audio_output)
            self.media_player.setVideoOutput(self.video_widget)

            # Load video file
            self.media_player.setSource(QUrl.fromLocalFile("video.mp4"))

            self.media_player.play()


    if __name__ == "__main__":
        app = QApplication(sys.argv)
        player = VideoPlayer()
        player.show()
        sys.exit(app.exec())
bgwalter•6mo ago
This author is an apologist for the slander of Tim Peters:

https://www.reddit.com/r/Python/comments/1f00qdo/no_vote_of_...

He cites Glyph Lefkowitz to support him, who now gives advice on lunch vs. dinner networking strategies at PyCons. Which should be taken seriously: Being in the right circles and talking is all that matters in the Python ecosystem.

sfilmeyer•6mo ago
I'm not in near deep enough to have any ideas what you're talking about, and the link didn't really help. Can you explain?

Who is Tim Peters? How were they slandered? What did the author do that you disliked? Who is Glyph Lefkowitz? Why is citing Glyph Lefkowitz an indictment of the author?

worthless-trash•6mo ago
Let the post stand on its own. I'm fucking sick and tired of people dragging unrelated politics into discussions.
ajot•6mo ago
As others here have already said, thank you for your book, and for having it for free on your website. After years of thinking about leraning to program, I finally started with you book a couple of years ago. It is so much fun, and it's been super helpful on my day to day job.
jmlim00•6mo ago
Back in school, after taking an intro to programming language course as an elective, I've been struggling to understand the missing link between knowing a programming language and writing a program. This book bridged that gap, and everything finally clicked. I'll definitely be checking out the new content as well. Thanks for changing my life!