News for hackers. Stuff that matters.

crehn

Re:The vi family on Sunday May 17, 2026 @12:01AM (#48165947)
Yes!
Re:The vi family on Wednesday May 13, 2026 @09:50AM (#48121891)
Same. And if I may, that led me to creating a Vim file browser that runs in a separate terminal (tmux pane!) so I have fewer window navigation shortcuts to remember: https://github.com/hoffa/vitree
Re:Show HN: The entire year on a single page on Sunday June 09, 2024 @09:43PM (#40629324)
Great idea!

Added: https://github.com/hoffa/year-on-a-page/blob/main/renders/20...

EDIT: I actually updated it to omit the day when it's the first day of the month. So instead of A1, it's just A. In the visual progression, seeing "A" seems to be enough to imply "we're now in August (1st)", and it's a little less visually cluttered when quickly scanning. Hopefully it's still clear, happy to adjust!

Re:Show HN: The entire year on a single page on Sunday June 09, 2024 @07:41AM (#40623757)
Done!
> impossible card effects (ex: "shuffle the deck, pick your favorite card from it, hand the deck back to me, your card is the Ace of Diamonds")

There is one deceivingly simple trick that is essentially just that.

Re:Show HN: Bible Semantic Search on Tuesday June 28, 2022 @12:38AM (#31904138)
Thank you! Added.
Re:Show HN: Bible Semantic Search on Monday June 27, 2022 @10:50PM (#31903557)
Hey, I got the original idea from this HN post: https://news.ycombinator.com/item?id=31733673

The main intention was to support more translations for better results.

Code is here: https://github.com/hoffa/bible-search

Re:Nearly a third of TV ads play to empty rooms on Saturday February 12, 2022 @04:50AM (#30311468)
Depending on TVs to save you from existential panic doesn’t seem like a sustainable solution.
It’d help if the rest of the world tried to aggressively prevent brain drain by making the respective countries more attractive for work.
Re:My seatbelt rule for judgment on Monday February 07, 2022 @03:54AM (#30242041)
Why shouldn't tests catch those far-flung consequences?
> Changing a couple of bytes in a file? Don't change the style. Writing something new? Figure out what's best. Rewriting a big chunk? Make reasonable formatting choices.

This is exactly the type of arguably useless effort we don't want to spend any time on. Having to think about what is "reasonable", "allowed", or "best" is non-negligible cognitive burden for both the writer and reviewer/reader.

Re:Doing too much work on one's own before looping in others on Tuesday January 25, 2022 @02:32PM (#30076805)
This should nearly always include writing integration tests (that run on every change) to ensure you can refactor with confidence.

If there are no tests, the team will waste a ton of time anxiously monitoring and reasoning about the messy code and the impact of their changes.

Re:Is Space Pixelated? The Quest for Quantum Gravity on Saturday January 15, 2022 @05:28PM (#29951038)
I’ve always wondered what happens when I move my hand.

If I zoom in close on my hand, does it move like a sprite in a 2D video game? Always on a “grid”, with no way to be in between pixels?

Re:Who Uses To-Do Lists? on Saturday January 15, 2022 @03:17PM (#29949835)
Every day before logging off from work, I write down my todos for the following work day on a blank piece of paper. I close my laptop, tuck the paper in a folder and put both in closet away from sight.

Has worked really well getting things done and disconnecting from work.

Re:It’s not still the early days of blockchain on Saturday January 15, 2022 @02:08AM (#29944350)
> There exists a transparency in the open-source code of smart contracts that will disrupt the current gatekeepers like the internet did.

Could you elaborate which gatekeepers it will disrupt?

Re:Parcel CSS: A new CSS parser, compiler, and minifier on Wednesday January 12, 2022 @08:39PM (#29915733)
> Because the hex for green (#00ff00) needs more letters than using the named color.

But "#0f0" is fewer letters than "green"?

Tangentially, studying right before sleeping has always been one of the most effective way for me to memorize stuff.
Re:Evaluating front end frameworks and not choosing any on Thursday January 06, 2022 @11:34PM (#29834892)
To be fair, the Civic does look a little funny.

But yes, there should be more emphasis on what drives business value (hence on picking a stack that allows providing that value as efficiently as possible), and with the minefield that's modern web development, starting from scratch doesn't seem sensible. The post doesn't go too deep into what they're building though, so maybe I'm missing something.

Re:Staggering stat: 87% of U.S. teenagers have iPhones on Wednesday January 05, 2022 @10:42PM (#29819060)
That doesn't answer the question why do you think that group initially acquired critical mass enticing others to change?
Re:Staggering stat: 87% of U.S. teenagers have iPhones on Wednesday January 05, 2022 @10:20PM (#29818896)
I mean, why do you think that certain crowd has gravitated to iPhones and not Androids?
Re:Staggering stat: 87% of U.S. teenagers have iPhones on Wednesday January 05, 2022 @10:07PM (#29818787)
> The most likely reason is certain crowds in school have iPhones.

Why do you think that is?

Re:Staggering stat: 87% of U.S. teenagers have iPhones on Wednesday January 05, 2022 @09:57PM (#29818672)
Not surprising.

Android software and hardware UX is typically subpar, with very little attention to detail, and things just feel out-of-touch and made by engineers and marketing bots. My hypothesis is all these things contribute to a lack of "coolness" (for lack of better word), which has a tremendous impact on the market.

Re:Microsoft confirms Exchange Year 2022 problem on Sunday January 02, 2022 @05:25PM (#29774712)
Surprised this sort of hack would even pass code review.
Re:Tardigrades walk like insects 500k times their size on Tuesday December 28, 2021 @07:09PM (#29719950)
For contrast, ants have around a quarter million neurons.
Re:Street Fighter II, the World Warrier on Thursday December 23, 2021 @01:13PM (#29664625)
> Since the logo had already been created, I couldn’t just go in and change the letter at this point.

Why not?

Older »