HNHacker News
TopNewBestAskShowJobs

pchm

1,050 karma · joined August 17, 2011

@p_ch on X/twitter, pch on GitHub

https://ptrchm.com/work-with-me/

submissionscomments
pchm··on Nothing works and everyone is euphoric
thank you, I didn't expect to see pixelpeeper mentioned here :) feel free to reach out via email - I'm happy to nerd out about photography
pchm··on Hacker News but for Independent Blogs
That's true, provided that all activity (comments, voting) here is still coming from actual humans. That's no longer the case for community websites, I'm afraid.

It's an experiment made for the web of 2026, where you can no longer tell if the users are humans or bots.

If nobody's interested in that idea, I accept that.

pchm··on Hacker News but for independent blogs
I submitted a somewhat similar project yesterday to Show HN (didn’t resonate), although mine is purely based on AI scoring, with zero community features.

I call it bubblewire. Funny. I had no prior knowledge of bubbles.town until seeing it here now.

bubbles.town looks nice! Hope to see more projects that aim to bring back the good old web.

[1] https://news.ycombinator.com/item?id=48552985

pchm··on Appreciating Exif
Yes. I run a niche webapp[1] that extracts exif and xmp (Lightroom edits) from images. At one point I tried to write my own exif parser. It's not that complicated, but very quickly you'll run into weird legacy, vendor-specific nuances (apart from what the parent mentioned, you have to handle both big & little endian exif). And the long tail of those edge cases is, well, very long. Exiftool handles pretty much all of that.

[1] https://pixelpeeper.com/

pchm··on My productivity app is a never-ending .txt file (2022)
I have a TODO.txt and it’s the only productivity system that I’ve ever been able to stick with. Just a list of stuff I need to do, what’s done gets moved down or deleted. Maybe there’s value in having an archive (a DONE.txt?) but I’ve found that after a while most notes/items lose the context and often it’s hard to decipher what they were about.

One thing I haven’t figured out yet: I’d love to be able to keep this file open at all time, have it pop up with a hotkey. Currently it’s just a TextMate window that I often close by accident.

pchm··on How does Base32 (or any Base2^n) work exactly?
You make some good points. What I was trying to say is that even though there is the RFC, it's quite common to modify the alphabet or use other variants like Crockford's (mainly to avoid random profanity, e.g. in the URL identifiers).

When you see a Base64 string, you can be pretty certain that it's the standard version. With Base32, it's not obvious which variant was used.

Many languages don't provide a stdlib Base32 implementation (Ruby doesn't), but Base64 is pretty much always included. Maybe this influenced my perception of the lack of a universal standard.

Anyway, I should work on that section to communicate my point better.

pchm··on Ask HN: Side project of more than $2k monthly revenue? what's your project?
I run https://pixelpeeper.com on the side.

It's a micro-SaaS for photographers who edit in Lightroom. Lets you reverse-engineer Lightroom edits from JPG files and download them as presets that you can apply on your own photos.

Took a month or two to reach $2k/mo, riding the wave of instagram's popularity in 2017-2018, plus the project went viral initially. However, the niche is ultimately too small to grow the revenue significantly. Still chugging along, almost 6 years later, though.

pchm··on Ask HN: Which books you have read till now that were worth investing time in?
Taleb's Incerto (Fooled by Randomness, Black Swan, Antifragile, Skin in the Game).

Opens your eyes to a wide array of fallacies that govern our daily life (unknown unknowns, "experts" explaining past events as obvious in retrospect, the news, predictions, survivorship bias, confirmation bias, iatrogenics and a lot, lot more) — almost to a fault, i.e. if you take it too far, you'll see these fallacies everywhere and things like stories of success/failure, biographies (or history in general) etc. will no longer make the same impression.

pchm··on DigitalOcean: New $4 Droplet and updated pricing
So the price increase for the managed database is... 100%? Currently paying $240/mo for 16 GB RAM / 6vCPU / 270 GB Disk. The new price is $480/mo.

We have a bunch of these databases at work, so I'm sure we'll be considering other providers now.

pchm··on WebAuthn Browser Support
> IIRC, Twitter, Google, Dropbox and Facebook also don't allow to enroll multiple Yubikeys.

Don't know about Dropbox, but I set up Yubikeys for Twitter, Google and Facebook recently and they all allow multiple keys.

pchm··on Ask HN: Best Alternative to Homebrew in 2021?
OP here, thanks for clarifying this - I can imagine it's a super complex problem and I truly appreciate all the work that you (and other contributors) have put into this project.

My only point (and a source of confusion) here is that I never anticipated the cascading effect that installing a single package can have on seemingly unrelated parts of the system. I've been using homebrew for many years and as far as I remember, the only time anything broke like this was when I explicitly ran update/upgrade.

I'm going to try HOMEBREW_NO_INSTALL_UPGRADE/HOMEBREW_NO_AUTO_UPDATE — it does seem like a more intuitive default, but again, I don't know anything about how homebrew works under the hood.

Thanks again!

pchm··on Obsidian – A knowledge base from a local folder of plain text Markdown files
Roam Research, most likely
pchm··on How to Make Writing a Lot Easier
"How to Take Smart Notes" by Sönke Ahrens is probably what parent meant.
pchm··on Pronouncing non-English names for English speakers
C in Polish is pronounced as ts/tz and 'ck' is an interesting case in Polish-American surnames: American pronunciation turns 'ck' into 'kk' and Polish speakers will often have a hard time recognizing the original spelling.

Listening to audio mentioning Susan Wojcicki, I could never figure out the spelling of her name... BTW, Polish pronunciation for Wójcicki (notice the 'ó') is Vooy-chits-ki

pchm··on Everything useful I know about kubectl
Agree, this is a huge pain point when dealing with multiple clusters. I wrote a wrapper for `kubectl` that displays the current context for `apply` & `delete` and prompts me to confirm the command. It's not perfect, but it's saved me a lot of trouble already — but encouraging other members of the team to have a similar setup is another story.

Here's the script (along with a bunch of extra utils): https://github.com/pch/dotfiles/blob/master/kubernetes/utils...

pchm··on FFmpeg 4.4
mov2gif:

    ffmpeg -i input.mov -vf "fps=10,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif
pchm··on Docker for Mac M1 RC
No experience with M1, still on an Intel MacBook.
pchm··on Docker for Mac M1 RC
Totally agree. Docker for Mac performance is just unbearable when dealing with a semi-large webapp. I recently moved to remote development – macOS with Ubuntu running in VM (VMware) via Vagrant. I edit code using VSCode & Vim (via SSH & tmux tabs in iTerm2).

Based on my benchmarks it's more than twice as fast as Docker for Mac – and only minimally slower than native Docker running on a Dell XPS.

I'm enjoying this setup so much that I'm considering moving all my dev-related tools to a VM (which will hopefully allow me to get rid of homebrew too).

pchm··on Ask HN: Why aren't one-time sign in links more popular for authentication?
Described my (negative) experience with magic links in my SaaS in another thread recently: https://news.ycombinator.com/item?id=25465021
pchm··on Sick of spending time on Auth, we built an open source 'Stripe for Auth'
Implemented this recently in my SaaS app, replacing passwords with magic links and it was a mistake. Sure, it has some obvious benefits: it forces users to always provide a valid email and logging in confirms that the email address is valid, without any additional logic.

But moving auth logic to email links has increased my customer support work significantly: "I can't log in", "I didn't get the link" complaints are quite common now. People use email they didn't sign up with, messages go to spam, arrive with a delay - or recently, gmail outage caused messages to hard-bounce. These are only some of the issues I've had to deal with in the last few weeks, that never came up when I had password auth.

Also, I've found that some email clients automatically follow links included in the message and that meant login link was invalidated before user got a chance to click it. I've solved it by adding a button on the page, but it's not ideal.

Magic links were supposed to be convenient, but they cause a lot of frustrations for some users. Keep that in mind.

pchm··on The Beauty of Programming (2001) [pdf]
Sans-comic-sans version: http://cs.brynmawr.edu/content/the-beauty-of-programming
pchm··on Show HN: Welder – set up your Linux server with plain shell scripts
It allows you to run a local shell script on the server via ssh, using bash command substitution - the "$(<" part. The -t option (force tty) executes the script in an interactive session - without it stuff like password prompts won't work (if I remember correctly).
pchm··on Show HN: Welder – set up your Linux server with plain shell scripts
Author here. It's just a matter of personal preference. If you're proficient with Ansible then I'm sure you can achieve the same task even quicker. But to me, shell scripts are a more natural & faster way to get going for single-server setups and I always have a hard time with Ansible yaml syntax.

Ansible has some undisputed advantages (e.g. idempotence) and if I had to recommend Ansible vs my approach, I'd always recommend Ansible. But for my personal needs (single-server rails apps), I prefer shell scripts.

pchm··on Most Germans don’t buy their homes, they rent
Can you elaborate a little more on the "company car" thing? It sounds interesting. Does it mean that you basically get a car from your employer as part of the job benefits, but in reality you cover the cost (which is deducted from your salary)? How does it work?
pchm··on Simplifying Docker on OS X
Nice work joeyespo, it's definitely a much-needed step forward. NFS, though, is a huge pain point for me on OSX performance-wise. The only reliable solution I've found so far is Unison sync between Mac & Vagrant (Ubuntu). That also comes with some caveats, as Unison has to be compiled with exactly the same version & dependencies on both OSX and Ubuntu.

If anyone's interested, I've created a list of steps involved in making it work on El Capitan: https://gist.github.com/pch/aa1c9c4ec8522a11193b

pchm··on Rails 5.0.0.beta1: Action Cable, API Mode, Rails Command
One suggestion for future recordings: please mute all people, except the one talking - the touchpad clicks and constant noises in the background are making it really difficult to listen to what's being said... I gave up after a couple of minutes.
pchm··on OS X El Capitan GM Candidate available
Most important change for me: speed. The performance improvements in El Capitan are absolutely amazing compared to the disaster Yosemite is.
pchm··on Runit – a Unix init scheme with service supervision
A genuine question, as it's not quite clear to me: can someone explain like I'm 5, what can I use runit for exactly? Is it a replacement for init.d or something more like monit? I always use monit to keep my Rails-related processes running and I've read somewhere that using monit combined with runit may be a better solution, but isn't it a bit redundant to have the two at the same time?
pchm··on A Day of Communication at GitHub
Team looks like a pretty awesome tool. Do you guys have any plans to release it publicly at some point?
pchm··on Warsaw, August 1947
For comparison, the same city in 1935: http://www.youtube.com/watch?v=J5ea_396LPo