News for hackers. Stuff that matters.

lwerdna

Re:The Past Is a Ghost and the Future a Fantasy on Wednesday July 02, 2025 @01:11PM (#44446227)
On the past being a ghost, the best treatment of it I've encountered is the short story Truth of Fact, Truth of Feeling [1]. It's so worth the complete read, so I hate to reduce it to a quote, but the critical bit is:

> We rewrite our pasts to suit our needs and support the story we tell about ourselves.

1. https://en.wikipedia.org/wiki/The_Truth_of_Fact,_the_Truth_o...

I don't follow. In a secretary problem, you have multiple offers, but can consider only one at a time, and cannot revisit past offers.

If there only one company can unlock, then it's just a 1:1 negotiation.

If there are multiple companies, Stefan can review bids and accept the lowest.

Re:Loved Before – Recycled soft toy store on Friday February 17, 2023 @06:48PM (#34842168)
You're not alone. I've even tried to dream up ways to "humanely" vaporize them so they wouldn't suffer being at the bottom of a trash heap with old food and what not dripping on them, their innards squeezed out, which is sure to be their fate if I donate them. And now I see the same illogical attachment tendencies in a couple of my kids. It's a burden.
Re:Ask HN: I hate gym. How to stay in shape? on Tuesday February 07, 2023 @12:06PM (#34695445)
I too have benefited recently (since 3 months) from rowing, and started by simply emulating Dark Horse rowing on a laptop set to the front/side of the machine. I really like Rowalong channel now, because he gives effort instructions in terms of your best 2k pace. For example, he'll say "2k+18" for the next interval so if your best 2k time had average 2:00/500m pace, then row currently at 2:18 pace. Compare to Dark Horse who might say "Go at 75% effort" which suffers from subjective self reporting.

If you haven't seen it, https://rowinglevel.com has tables for various distances and ages. It intimidated me at first (these times are fast!) but reaching beginner and novice when they once felt completely impossible is a good feeling.

> It took months to get up to speed with a lot of initial back pain, but the strength gained has done away with back issues I used to have.

This has been my biggest benefit as well.

Re:Ask HN: Are you tired of reading ChatGPT headlines? on Saturday February 04, 2023 @11:30PM (#34661869)
Yes I am.

Though I'm not sure it's quite as bad as the countless Wordle headlines from a couple years ago.

> The most interesting result from this study was the change in the spread for HRV.

Did your HRV increase, indicating better health? How are you measuring it?

> I was able to break an 8 minute 2k row when I did it with cyclic breathing.

Can you explain more? Search results for "cyclic breathing" return many varied results. Are you performing it while during the row, or in preparation for it? I can get 2k meters under 8 minutes, but I'm gasping at the end.

Re:Ask HN: What sub $200 product improved your 2022 on Friday January 06, 2023 @10:49AM (#34276032)
What's the make/model of your hearing protection?
Re:Tell HN: My new free note taking tool on Tuesday July 19, 2022 @02:23PM (#32155888)
I'm interested in this bit:

> ...lets me write codeblocks in my notes and turns my note taking system into a literate programming environment. So I have for example a self-written plugin that applies transformations to existing pages to incorporate the sort of question templates suggested in books like How To Solve It or on websites like untools.

Do you have any posts or additional information on this in particular?

Re:Ask HN: What concepts have you never truly understood? on Sunday March 06, 2022 @08:22PM (#30583099)
This is very relatable :) A workmate and I have fun making variations of "A monad is just a monoid in the category of endofunctors!" and sarcastically suggest the other tries OCaml, Haskell, or Idris when something isn't going their way.
Re:Ask HN: What concepts have you never truly understood? on Sunday March 06, 2022 @08:16PM (#30583035)
- How type theory can prove mathematical theorems. I can limp through the first exercises of Software Foundations, but eventually realize I'm just "making it work" instead of knowing how it works. Only made it halfway through My Little Typer and even implemented STLC and used it to prove simple propositions with implications. But I still couldn't tell you how dependent types magically make it possible to prove real theorems.

- How opamps work and how they're used to make a differentiator.

- How quantum computing works. I want understand it to understand why factoring and discrete log fall to QC but not the post-quantum algorithms. I never make it past the intro chapters.

- What exactly makes cryptographic hash functions have desirable properties like collision resistance? Bits go in, bits go out, why can't full observation of the process not yield a method to construct inputs for a target output? Similar questions for block ciphers. It is much easier to "see" the impossibility in public key schemes because you can play and experiment with the math. In symmetric algorithms it looks like just a bunch of arbitrary bit operations.

EDIT:

- Relativity. I accept things like time dialation and nothing can go faster than the speed of light. But I have no idea why you would experience less time passing than me after a high speed rocket trip when, from your perspective, you saw me on a high speed planet trip. Or what prevents a rocket in space with 3m/s^2 acceleration from reaching the speed of light after 100,000,000 seconds.

Re:Ask HN: What's Up with Google? on Friday January 21, 2022 @11:54PM (#30033715)
Amen.
Re:Myths about Social Media on Tuesday January 18, 2022 @09:24PM (#29989117)
Reveddit is great, thank you!
Thank you. I'm also looking for a tool which will find when one file contains a scaled image in another file, or is a crop of another.
> I've found that the greatest benefit of cloud storage is not as a backup, but as our primary place to keep and look at photos. We started uploading and organizing everything in Flickr a few years ago, and now we spend more time enjoying our photos with Flickr's web and mobile apps than we ever did when they were scattered across our laptops and backed up to an external hard drive.

This is a good point. I was 100% anti-cloud for my photos, but have to admit the barrier of bringing out the external HDD and hooking it up to a PC means we hardly ever look at them.

Every time our phones reach capacity, I download all pics/video to my laptop. Then I plug in a portable SSD and copy them there in folder name "media until <current date>". When I get to work next, I copy them to an identical portable SSD stored there, at which point I free the space on my laptop. This whole process happens about 3-4 times per year.

I'm currently using returned/refurbished Samsung T5's at about $100/TB.

Re:Graphviz: Open-source graph visualization software on Monday January 17, 2022 @08:13PM (#29973685)
I use graphviz probably weekly and it's actually become a bit of a productivity hack. If there's something I don't want to do, I can often convince myself to just DRAW it instead, usually with graphviz. Once drawn, the actual task is easier, both because the barrier of starting is overcome, and because the drawing is useful in the task.

For example, I had to parse DWARF debug info recently to scrape type information, something I dreaded doing. Instead of diving into the DWARF specs, I set out to adapt one of the pyelftools [1] examples to produce a .dot file and graphed it with dot, producing [2].

Now looking at the picture, it's nearly obvious how functions and structs and types are stored. The rest is trivia (How do I access this attribute? How do I iterate over a DIE's children?).

Here's a simple alias so that anything that writes to /tmp/tmp.dot can be viewed with a single command:

    alias graph='dot -Tpng /tmp/tmp.dot -o /tmp/tmp.png && open /tmp/tmp.png'
[1] https://pypi.org/project/pyelftools/

[2] http://tmp2.dreamhosters.com/draw-dwarf-graph.svg

Re:Procrastinatory Doom Loops on Saturday January 08, 2022 @11:54PM (#29860280)
This has worked for me too, especially when combined with some leisure activity.

"I won't do X now, but I will stop browsing and walk around the block while thinking of X."

"I won't do X now, but I'll sketch some ideas about X on paper while I have a coffee or snack."

Re:Ask HN: What is your spiritual practice? on Monday December 27, 2021 @03:12PM (#29706270)
> Throughout the day I have reminders set to step back and examine what I am doing at that moment.

How does it work? Does an alarm sound and you've resolved to stop whatever you're doing and reasses? What is a success story? Has it caught you browsing youtube and put you back to work?

> This is usually coupled with one or more mental exercises to keep perspective.

What are the exercises?

> In the evening before going to bed I sit back down with my journal and go over any major events from the day and examine them against my philosophical beliefs.

Is this a written or electronic journal? How long have you been able to consistently do this? I've had many 2-week streaks but none better.

Do you recommend any other resources? I've read Meditations, Pigliucci's book, and pick up Farnsworth's book every few days, but so far it's mostly quotes instead of a description of practices like the title promises.

Re:Ask HN: Recommended Domain Registrars? on Tuesday December 21, 2021 @12:29AM (#29634258)
I've been pleased with dreamhost, both as a host and registrar.
4,9,11,12

No tablets or phones. A PC in the living room with a loose ask before use policy. The older two got PC's in their rooms during pandemic remote schooling. Switches on weekends with friends.

Re:Ask HN: How do you back up your Android phone? on Saturday November 13, 2021 @06:49PM (#29214206)
I use a python script that shells out to adb for what I want. Photos for example starts with a an "adb shell find /sdcard/DCIM/Camera -name .jpg -o -name .mp4" to collect a list, then iterates over that list with "adb pull -a <remote_path> <file>". It's primitive but works.
They are different problems. Stripping the final character from "3.14159" does not produce the same result as rounding to 3.1416.

The first action concerns a syntactic property of PI's decimal representation while the second action concerns a semantic property of PI's value.

A related example given on https://xyproblem.info is a user asking (Y) how to extract the final 3 characters of a filename string when he probably intends to ask (X) how to retrieve a filename's extension.

When you accuse someone of being wrong, it's helpful to provide justification, not insults.

Y: How do I strip unnecessary symbols after a decimal point?

X: How do I round a number to a desired precision?

It looks like the perfect example of XY problem to me. Please tell me how I'm confused.

Thanks for articulating this. I call them XY inquisitors. We had a couple at work a few years ago and any question directed at them was met with a somewhat derisive "What are you trying to DO?".

Of course there are cases where the question poser of Y benefits from having their X identified, an archetypal case here:

https://stackoverflow.com/questions/2691018/decimalformat-an...

Re:SoftICE on Monday January 20, 2020 @09:17AM (#22098916)
I tried and failed to fully follow those, but it set me on a path to where I am today. Thank you, late 90's crack tutorial authors!
Re:FrontPage 98: Elegant and Exquisite (1997) on Wednesday September 12, 2018 @10:39AM (#17969210)
I pirated frontpage around 97,98 and used it to make garish homepages with all the elements we consider sins today: frames, lens flare, flame gifs, and background music. This was a formative experience that contributed to my career and life today.
Re:Why I Don't Love Gödel, Escher, Bach on Friday July 06, 2018 @12:40PM (#17472838)
You posted something inaccurate and chasing offered a correction. Instead of e-pretending to miss the point, accept the correction as you did with ramblerman.
Re:Show HN: Snibox – Self-hosted snippets manager on Wednesday July 04, 2018 @01:50PM (#17458550)
Really well done, I like the tags and organization.

Here's a low-tech alternative for .bashrc:

    snipc() {
    	local fpath=$HOME/workspace/snippets.c
    	if [ "$1" == "vim" ]; then
    		gvim $fpath
    	else
    		less $fpath
    	fi
    }
Replace vim with your favorite editor. I also have functions for python (snippy), Make (snipmake), etc.
Here's a poor man's version of dnote in my .bashrc. It's the only thing I've used consistently:

  notes() {
  	local fpath=$HOME/notes.md
  	if [ "$1" == "gvim" ]; then
  		gvim + $fpath
  	elif [ "$1" == "vim" ]; then
  		gvim + $fpath
  	elif [ "$1" == "date" ]; then
  		echo '' >> $fpath
  		echo '# '`date +"%m-%d-%Y-%T"` >> $fpath
  		echo '---------------------' >> $fpath
  	elif [ "$1" == "" ]; then
  		less +G $fpath
  	else
  		echo '' >> $fpath
  	    echo $@ >> $fpath
  	fi
  }
Insert the current date with `notes date`. Store a note with `notes the earth is about 25k miles around` or `notes dentist appointment Thursday` or `notes purfunctory - carried out with a minimum of effort or reflection #vocab`. Look up recent notes with `notes` or read/search the entire notes database with `notes vim`.

Older »