HNHacker News
TopNewBestAskShowJobs

uhoh-itsmaciek

516 karma · joined April 27, 2016

submissionscomments
uhoh-itsmaciek··on CD box sets are wonderful
I love having the context from a good set of liner notes. Session dates, musicians, back story. It anchors the music as work done by real people, and not just content to consume.

I don't really care about the physical discs, but it seems like there's not a lot of options (at least in bluegrass): a lot of this content is just not available digitally. (And when it is, the liner notes are usually lost in the process.)

uhoh-itsmaciek··on Lesser-known Postgres features
Another favor you should do yourself is use bigint keys (unless using uuid as suggested elsewhere, or you're very, very sure you'll never chew through 2 billion ids).
uhoh-itsmaciek··on What a crossword AI reveals about humans' way with words
Those are great. Another memorable NYT one had the theme A SHOT IN THE DARK, and several answers ended in SHOT (RIMSHOT, EARSHOT, etc.), but the grid only had space for the first part of the word, so the actual answers were RIM⬛, EAR⬛, etc. Another had a RISE FROM THE ASHES theme, and had several answers that ended in ASH that did not seem to fit the clue: the actual answer followed vertically where the ASH ending started. E.g., for the clue "Tell it like it is", the answer that fit straight across was "TALKS TRASH", but above the "A", going up, were I, G, H, and T, giving the actual answer "TALK STRAIGHT".
uhoh-itsmaciek··on Show HN: An interactive visual history of Git development
Ah, so not sure how you're checking, but it looks like your thresholds might be just too aggressive: it looks like my window.innerHeight < 1024 [1] and that's probably triggering the warning.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/inne...

uhoh-itsmaciek··on Show HN: An interactive visual history of Git development
Neat! Thanks for sharing.

>Note: This visualization was designed for screens larger than 1024 x 1024 and for desktop-style interactions.

Why am I getting this warning on my 4K UHD display? Both Firefox 89 and Chrome 91 on Ubuntu.

uhoh-itsmaciek··on React and D3.js
I rewrote some charting code at work using this approach, and the benefit really shines through when you're already working with a React codebase. You can basically add most of what D3 can do for you without introducing a separate DOM manipulation paradigm. It doesn't really matter which way of doing it is better: two different ways of doing it are definitely worse.

If you're already a D3 expert or you have a bunch of existing D3 graphs you want to plop into an existing app, sure, you can use the ref approach. But if you want modular, reusable React components to build out an application, the approach Amelia outlines here works great.

uhoh-itsmaciek··on React and D3.js
I think this is partly why Amelia suggests rewriting these examples to let React handle the rendering and avoid DOM manipulation in D3. I rewrote a bunch of charting components at work a while ago, and that general approach worked really well for us. In fact, I barely ended up using d3 at all, but the bits that I did use were very handy. I found some of Amelia's other writing very useful in the process, and I blogged about what I learned [1] (for what it's worth, I do talk a bit about handling mouse interactions there).

This is really the central point:

>The crux of the issue is that they both want to handle the DOM.

If you want to use D3 and React together, you need to figure out how to handle this, and there are several reasonable ways to do that. Letting React handle rendering is a natural approach, and works especially well if you are embedding your SVG components in an existing React application.

But the "hand a ref off to D3 and keep React out of that element" approach can also work, especially if you are more familiar with D3 DOM manipulation already.

[1]: https://pganalyze.com/blog/building-svg-components-in-react

uhoh-itsmaciek··on Building the Middle Class of the Creator Economy
And on the assumption that all content can be stack-ranked according to some universal "quality" metric.
uhoh-itsmaciek··on CLI Guidelines – A guide to help you write better command-line programs
This is great, thank you! Under pagers, maybe add a note to respect PAGER if set? I prefer relying on terminal scrollback in some situations, and e.g. in psql often set PAGER=cat. Git respects this, too.
uhoh-itsmaciek··on PostgREST: REST API for any Postgres database
Why a fork?
uhoh-itsmaciek··on PostgreSQL Configuration for Humans
I see, that's a good point: I'm used to pg_upgrade in --link mode, but if you want to be safe and have an isolated old cluster around, you're right: you'll still need to copy the data. Thanks for clarifying.
uhoh-itsmaciek··on PostgreSQL Configuration for Humans
>that is proportional to the size of the data

I agree upgrades are still a pain point, but pg_upgrade running time is not proportional to the size of the data.

uhoh-itsmaciek··on Pandoc – A universal document converter
And a great fiddle player!
uhoh-itsmaciek··on Zheap – Reinvented PostgreSQL Storage
2kb by default, configurable per-table with the toast_tuple_target storage parameter if you want more control: https://www.postgresql.org/docs/current/sql-createtable.html
uhoh-itsmaciek··on Darling: macOS Translation Layer for Linux
For what it's worth, I've had the same issue and have been able to reproduce some Safari bugs in the WebKit-based Midori.
uhoh-itsmaciek··on New JSX Transform
The announcement claims the old syntax is not going away. Do you think this is still a regression, even if it's only a React-specific alternative?
uhoh-itsmaciek··on Sending SPF and DMARC passing mail as any Gmail or G Suite customer
>If Gmail.com had a DMARC policy that required a correct dkim signature, then the attack would have been much harder.

Can you have a policy like that? I was under the impression that DMARC passes if either SPF or DKIM passes.

uhoh-itsmaciek··on We Can Do Better Than SQL
>These days you can even just tune pgsql to support kv store formats

And you can turn off fsync! Though if you do, disable synchronous_commit instead for most of the performance but none of the potential data corruption (you're still risking data loss, of course, just not corruption).

uhoh-itsmaciek··on Some SQL Tricks of an Application DBA
Doesn't that skip counting null emails (though not filtering them for lowercasing), meaning you may not lowercase all emails if you have any null emails?
uhoh-itsmaciek··on Show HN: React Guitar – A guitar component for React
These are both great! I also have a similar project: https://fretboard.cool
uhoh-itsmaciek··on Views on Error Handling
That's a neat observation. If you're writing a function as "How do I get from A to B?", that's more error-prone than "What are all the possible outcomes of trying to get from A to B?"
uhoh-itsmaciek··on Using Babel transforms to inject analytics code at build time
FYI, the layout is unreadable on mobile Firefox (on Android fwiw; looks fine in Chrome).
uhoh-itsmaciek··on Kongregate closed to new games, shutting down forums and chat
You mean https://www.kongregate.com/games/Dragy/portal-the-flash-vers... ? You do have it on there, and that is a great game.
uhoh-itsmaciek··on Source code of “Delores: A Thimbleweed Park mini-adventure” released
For anyone else who may not have heard about it before like me, here's a link reviewing this bit of computer history: https://www.kotaku.co.uk/2014/10/13/people-used-download-gam...
uhoh-itsmaciek··on Building a Hexagonal Grid in CSS
Check out the sibling answer above, you can embed HTML in svg and it generally works well: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/for...
uhoh-itsmaciek··on After GitHub CEO backs Black Lives Matter, workers demand an end to ICE contract
What sort of issue do you feel that privilege should be reserved for?
uhoh-itsmaciek··on CLIs are reified UIs (2017)
Maybe any CLI that's complex enough to have subcommands should have an "apropos" [1] subcommand to help with discoverability...

[1]: https://www.man7.org/linux/man-pages/man1/apropos.1.html

uhoh-itsmaciek··on Singing is the most accessible stress reliever
As someone who's been learning to sing mostly on my own (though I've taken a few local workshops that have helped a lot), here are the things I've found most helpful:

* commit to the notes you're singing: singing tentatively makes it harder to evaluate yourself

* sing along with a recording and emulate the singer--every ornament, every nuance in timing--you can find your own voice (so to speak) once you know what you're doing

* repeat a song or even chorus or line over and over, especially singing along with a recording

* record yourself: everyone hates doing this, but again, it's much easier to evaluate what you're doing

* if you're having trouble with a specific line, find the notes on an instrument and sing along (though make sure you're not just locked in to fixed pitches--a lot of the beauty of great singing is exploiting the marvelous glissando capabilities of the human voice)

* drink water and don't hurt yourself

uhoh-itsmaciek··on Singing is the most accessible stress reliever
In a round, the delay is under your control. If you start singing the first line when you hear me sing the second one, you're actually starting to sing at (second line ts + $latency). And then I hear it another $latency later. A round could work if your call software compensates for this and delays your singing for me until the next round "entry point".

That is, you hear my "Gently" and join in with "Row," but it's not played back for me until I start singing "Merrily." This could work, but as you can see, it would need some clever delay management.

uhoh-itsmaciek··on The Cost of JavaScript Frameworks
I see TypeScript support is on the road map. I haven't used it yet, but that's exciting.
← PreviousPage 5 of 7Next →