HNHacker News
TopNewBestAskShowJobs

divan

2,854 karma · joined October 30, 2014

https://divan.dev
submissionscomments
divan··on DaVinci Resolve – Photo
You're not the first :)

If you know how to do masking with video in Davinci, then it all just applies to photos too. I tried today some basic Magic Mask and color tab editing with photos, and it works exactly the same (without the annoying waiting time on huge videos for Magic Mask, ofc).

divan··on DaVinci Resolve – Photo
Oh, I'm on subscription. Haven't seen those changes with pricing options, thanks. Subscription seems to be at the same price (even lower? it shows 14.99$ now, and I think I'm paying around 18 EUR/month with taxes).
divan··on DaVinci Resolve – Photo
While we're on topic, I've been using DaVinci with this camera for a slightly unusual hybrid process. With a good light and lens I shoot slow-mo video (240fps FullHD or 120fps 4K) with shutter speed of 1/1000. Then I can take any frame and save it as a photo directly from Davinci.

I wrote 2 scripts for that:

- first is for keyboard shortcut that automates "Switch to color tab, Grab a still, Save a still to folder, Switch back"

- second for more advanced workflow where I put markers on the frames I like, and then it uses Fusion's Saver node to save images as EXR

This flow is even faster than culling with Photo Mechanic. In both cases I get 10bit PNG or EXR images that I can import into the photo editor. Workflow is far from the perfect yet, as it might need some adjustment when working with Log profile or different FPS (for 2nd script).

But aside of giving me an option of "shooting" video+photos at the same time, it blows my mind that it's practically "shoot photos 240 times per second and choose later", and how good the end result is. The bitrate of video is 280Mbps (4:2:2, 10bit) and while video compression quality is not negligible, the resulting "still photos"'s quality is more than enough for social media purpose. Photo example [1]

[1] https://drive.google.com/file/d/13So6ZuVx3dn2jZCw7cm3LkbzydF...

divan··on DaVinci Resolve – Photo
Cautiosly looking forward to it. I shoot with A9 III (global shutter camera that makes 120fps _RAW photos_), and dealing with thousands of photos per shoot is a challenge. I don't use Adobe products and still looking for a good stack for photos processing, but it's an uphill battle.

For culling there is nothing better than Photo Mechanic. Worth every penny. For editing, surprisingly, the best solution (performance/features wise) I found is Photomator (recently acquired by Apple). The trick though is not to import RAWs into Photomator, but import into Apple's photo library first (so it doesn't copy RAW files from SSD and doesn't not sync with gallery ofc), and Photomator picks it up natively.

Performance/features wise this stack works fine, but it's a constant juggling with 3 apps, which makes if far from perfect.

Curious to try DaVinci Photo and see how it handles large collections of RAWs and how practical it is to use.

divan··on Show HN: Real-time AI (audio/video in, voice out) on an M3 Pro with Gemma E2B
Can someone quickly vibe code MacOS native app for that so it doesn't require running terminal commands and searching for that browser tab? (: (also for iOS, pls)
divan··on Show HN: Apfel – The free AI already on your Mac
Thanks, tried it, but it's crashes on clicking the microphone icon. Default `make install` for some reason tries to install it to /usr, I changed that and after torturing more mature coding LLMs for 20 minutes, made it running with mic/sound.

The mic button requires clicking to transcribe and start listening again, and default voice is low-quality (I assume it can be configured).

In general I'm looking for a way to try the on-device hands-free voice mode.

divan··on Show HN: Apfel – The free AI already on your Mac
What's the easiest way to use it with on-device voice model for voice chat?
divan··on European Parliament decided that Chat Control 1.0 must stop
Age verification doesn’t necessarily imply identification — eIDAS 2.0 and ISO 18013-5 have selective disclosure by design.
divan··on Agent-to-agent pair programming
You can also create a skill for reviewing (which calls gemini/codex as a command line tool) and set instructions on how and when to use. Very flexible.
divan··on Rob Pike’s Rules of Programming (1989)
> generations of programmers have now been raised to believe that brutally inefficient, bloated, and slow software is just fine.

I believe people don't think about Knuth when they choose to write app in Electron. Some other forces might be at play here.

divan··on Corruption erodes social trust more in democracies than in autocracies
An invention is a new device, method, or way of doing something that did not exist before. Innovation is anything that significantly improves real world processes or products. I believe the literature uses term "innovation systems" regardless of type of economies.
divan··on The 49MB web page
Just wanted to say that article is so much deeper than it seems from the title, and also beautifully written. It was a great read!
divan··on //go:fix inline and the source-level inliner
As usual, great writeup and problem solving from Go team. One nitpick: wording "call to oldmath.Sub should be inlined" might be a bit confusing due to existing meaning of word "inlining" for functions (i.e. compiler inlining optimization). Without this article I would not be able to guess that this diagnostic message refer to something else.
divan··on Agents that run while I sleep
I'm (re)writing a big project with the following approach:

1. Write tons of documentation first. I.e. NASA style, every singe known piece of information that is important to implementation. As it's a rewrite of legacy project, I know pretty much everything I need, so there is very little ideas validation/discovery in the loop for that stage. Documentation is structured in nested folders and multiple small .md files, because its amount already larger than Claude Code context (still fits into Gemini). Some of the core design documents are included into AGENTS.md(with symlink to GEMINI/CLAUDE mds)

For that particular project I spent around 1.5 months writing those docs. I used Claude to help with docs, especially based on the existing code base, but the docs are read and validated by humans, as a single source of truth. For every document I was also throwing Gemini and Codex onto it for analyzing for weaknesses or flaws (that worked great, btw).

2. TDD at it's extreme version. With unit tests, integration tests, e2e, visual testing in Maestro, etc. The whole implementation process is split in multiple modules and phases, but each phase starts with writing tests first. Again, as soon as test plan ready, I also throw it on Gemini and Codex to find flaws, missed edge cases, etc. After implementing tests, one more time - give it to Gemini/Codes to analyze and critique.

3. Actual coding. This part is the fastest now especially with docs and tests in place, but it's still crucial to split work into manageable phases/chunks, and validate every phase manually, and ocassionaly make some rounds of Gemini/Codex independently verifying if the code matches docs and doesn't contain flaws/extra duplication/etc.

I never let Claude to commit to git. I review changes quickly, checking if the structure of code makes sense, skimming over most important files to see if it looks good to me (i.e. no major bullshit, which, frankly, has never happened yet) and commit everything myself. Again, trying to make those phases small enough so my quick skim-review still meaningful.

If my manual inspection/test after each phase show something missing/deviating, first thing I ask is "check if that is in our documentation". And then repeat the loop - update docs, update/add tests, implement.

The project is still in progress, but so far I'm quite happy with the process and the speed. In a way, I feel that "writing documentation" and "TDD" has always been a good practice, but too expensive given that same time could've been spent on writing actual code. AI writing code flipped that dynamics, so I'm happy to spend more time on actual architecting/debating/making choices, then on finger tapping.

divan··on Type resolution redesign, with language changes to taste
what exactly people call 'garbage collection' in Zig? build cache cleanup?
divan··on So you want to write an “app” (2025)
I tried Tcl/Tk back in 2005 and abandoned it in favour of Qt/QML (and much later Flutter), mostly because UI was so bloody ugly it was embarassing to show to any other user except myself. Has anything changed since then?
divan··on Ask HN: How to be alone?
> many of you find alone-ness to be natural, and even required

You can hear that from people who are not truly alone, but have more attention from their closest than they need.

The answer to your question - "Don't". Shift your priorities, reshape your life, change your place of living if needed, but don't be alone. This shit will kill you.

Maybe you can discover other ways to be connected with meaninful people – not necessarily the closest/relatives ones - through sports, volunteering, local neighborhood initiatives. If needed, spend more money on it, travel to other countries to meet people that you care about. Anything that leads to real human hug will work. I measure unloneliness progress in the average number of human hugs per day :). Optimize your life for that.

Whatever you do, refuse to have the life where you're alone.

divan··on Anthropic Cowork feature creates 10GB VM bundle on macOS without warning
Same. I work on M3 Pro with 512GB disk, and most of the time I have aroung 50GB free that goes down to 1GB often quite quick (I work with video editing and photos and caches are agressive there). I use apps like Pretty Clean and some own scripts (for brew clean, deleting Flutter builds, etc). So every 10GB used is a big deal for me.

Also discovered that VM image eating 10GB for no reason. I have Claude Desktop installed, but almost never use it (mostly Claude Code).

divan··on How to talk to anyone and why you should
Does it work in Scandinavian countries?
divan··on Nano Banana 2: Google's latest AI image generation model
What is annoying about Nano Banana, is how bad is experience when you try to iterate or, especially, repeat same task for another photo. After second of third image it starts randomly ansering with complete nonsense like "I'm just a language mode and can't assist with that" or "I can't do that" (with absolutely the same prompt it had no issues 2 photos in a row in the same chat).

It also gaslights me, when I point out on an error. I tried to create a cartoon portrait of the person from photo and use background from another photo. It got wrong the order of photos. I provided filenames and explicitly told which one is for person and which for bg. It generated it wrong again, and all attempts to explain that it got it wrong were met with "No, it's YOU incorrect". So frustrating.

divan··on Tiny QR code achieved using electron microscope technology
Fountain codes will work well here.
divan··on Iowa farmers are leading the fight for repair
Obligatory mention of the excellent Cory Doctorow's talk on this matter (the title might be confusing):

https://media.ccc.de/v/39c3-a-post-american-enshittification...

divan··on Anki ownership transferred to AnkiHub
> Every student with an iPhone has access to a computer even if it isn't their own

This is simply not true.

divan··on Anki ownership transferred to AnkiHub
Well, I don't want to sound patronizing, but the world is so much bigger than your notion of "Western world" where every student with iPhone has computer.
divan··on Anki ownership transferred to AnkiHub
I don't have this problem. I bought iOS Anki app for myself many years ago. What I found hard is to recommend it to others, who never heard about spaced repetition yet, especially to young students, who arguably is the main target audience for this kind of tools. They just not jumping into buying 25$ app to try it. As soon as you start mentioning switching to laptop, using web/desktop - they're not jumping into it either. I don't know maybe you all have different experience, but that's what I experienced over the years and it always felt sad, because this price is a prohibitively high for many people.
divan··on Anki ownership transferred to AnkiHub
Some people would need to buy computer first. Again, it's very hard to recommend mobile app to people if you need to add these kind of "workarounds". Especially for the main target audience - young students – many of whom live in their mobile phones and not used to spend 25$ for apps.
divan··on Anki ownership transferred to AnkiHub
Can you imagine, a lot of young people don't have desktop/laptop, only mobile.
divan··on Anki ownership transferred to AnkiHub
Why would it be the case?

Anki app has an interface for adding/editing cards, and can absolutely be used without AnkiWeb or syncing. In fact, this is how I used it myself for years. I would argue that using AnkiWeb and syncing is an advanced feature for people who got the taste of having own decks and don't want to loose it.

divan··on Anki ownership transferred to AnkiHub
"Hey, there is an amazing app for learning, but it costs 25$ for your iPhone, so just use web version instead".

Very appealing, makes people try app immediately. :)

divan··on Anki ownership transferred to AnkiHub
That works for people who already convinced that they want to use it. I'm talking about people who've heard it for the first time and they're not going to spend 25$ for some new app just to try. 25$ is unusually high price for an AppStore app and it's just doesn't work unless you're really determined to use it. I don't understand why people are downvoting this.
← PreviousPage 2 of 29Next →