News for hackers. Stuff that matters.
Re:Ask HN: What did you learn last week? by joshmn on Sunday September 11, 2022 @05:15PM (#32803334)
I learned that my dad isn't my father. He didn't even know he wasn't my father. My mom passed away a few years ago and took this secret to the grave with her.

I took an Ancestry.com DNA to try to answer the question of: "what, in my ancestry, if anything, results in me not being able to tan well at all?" (compared to my mother/father). In doing so, I was also greeted with another surprise: my mother happened to do one of these tests herself! She showed up on my list of matches. This made it really easy to determine who all was on her side via the "shared matches" feature — you can see a list of names/usernames of people who have opted in to this feature and share some DNA with you.

This meant that it was very easy to distinguish who was on my (biological) fathers side.

I'm cool with it, though it's an itch I'm insatiably trying to scratch. Oddly enough, someone who I share a considerable amount of DNA with has an uncle who worked in the same town as my mother did the year I was conceived — otherwise, the entire family has no relation to the region my mom hung around in that year (or any prior year). However, for all my fruitful digging (and I'm usually very good at the finding-people-on-internet part), I cannot turn up any solid email address or phone number for the guy. Coincidentally, I can see his old law office from my patio, and he lives a few blocks away from my partner.

World is weird.

Re:Ask HN: What did you learn last week? by Cyberdog on Sunday September 11, 2022 @07:41PM (#32804315)
My father always knew his "father" was not his biological father, but it wasn't until a couple years ago (when he was in his mid-60s) that he was able to find and connect with the half-brothers and -sisters he never knew he had, from the family his bio-father made after he left my father's mother and never looked back.

At any rate, how did your father take the news?

Re:Ask HN: What did you learn last week? by joshmn on Sunday September 11, 2022 @08:01PM (#32804425)
The situation you describe is the one I'm curious to avoid.

My old man was sort of "bah humbug" about it all. He wasn't necessarily "surprised" that my mom would do such a thing, but still "surprised" — eyes wide open, shaking-of-the-head.

My mom was notoriously sneaky, though her legend is prototypically more tame than this: "oh look at this cat I found on the sidewalk that was lost!", or "this dog was going to be put down if someone didn't take it."

My favorite story though is that when they (my mom/dad) went on a week-long canoe trip: your pack is usually heavy when you start and is supposed to get lighter as you go — you know, from the food you eat. Well, my dad noticed his was not getting any lighter as the trip went on. Fast-forward a few weeks, my mom is out working in the yard and my dad goes out to get something when he notices some really particular rocks that match at all with the existing rocks that were laid.

Little did he know he carried in his pack during their canoe trip.

The rest of the day (I broke the news to him shortly after lunch hour) we spent the day chuckling about "how 'Jeanine' it is [of a situation]" — Jeanine being my mother. We found common ground there if nothing else.

Re:Ask HN: What did you learn last week? by briHass on Sunday September 11, 2022 @10:01PM (#32805164)
Not that I'm trying to psychoanalyze your mother, who has passed, but I'm curious if you've ever compared her behavior with Borderline Personality Disorder?

I had a short (fortunately) relationship with a woman who was diagnosed, and there's a certain 'flavor' to the lies that I noticed when reading about the rocks. Cheating is also common with BPD.

I'm glad it didn't work out, because I can see how the push-pull messes with your head. Something as insane as your wife, who ostensibly loves you, adding weight to your backpack and not revealing the 'joke' for a week is insanely malicious.

Re:Ask HN: What did you learn last week? by joshmn on Sunday September 11, 2022 @11:07PM (#32805629)
No, not one bit. She just had a sense of humor. It's difficult to truly materialize someone's personality in a finite blob of text.
Re:Ask HN: What did you learn last week? by sdwolfz on Sunday September 11, 2022 @03:47PM (#32802635)
For tech things that I learn and want not to "forget" I create a snippet here: https://www.codrut.pro/snippets/

Last week was:

- Git refined diff output: https://www.codrut.pro/snippets/git-refined-diff-output/

- Test for Emacs compiler warnings: https://www.codrut.pro/snippets/test-for-emacs-compiler-warn...

Re:Ask HN: What did you learn last week? by marak830 on Sunday September 11, 2022 @04:24PM (#32802951)
Love your snippets storage, I should do that on a cloud-storage.
Re:Ask HN: What did you learn last week? by woleium on Sunday September 11, 2022 @04:36PM (#32803045)
pinboard.in rocks for this.
Re:Ask HN: What did you learn last week? by SleepilyLimping on Monday September 12, 2022 @12:43AM (#32806174)
I've been doing similar for software I find on a Gist
Re:Ask HN: What did you learn last week? by okhuman on Sunday September 11, 2022 @04:13PM (#32802869)
Last week felt like I finally understand how webauthn and passkeys work - now my auth server has a "passwordless" login flow https://github.com/authcompanion/authcompanion2
Re:Ask HN: What did you learn last week? by dmkirwan on Sunday September 11, 2022 @04:24PM (#32802954)
Was there anything in particular that made this click for you? If you have any resources to share I'd love to see them.
Re:Ask HN: What did you learn last week? by okhuman on Sunday September 11, 2022 @11:15PM (#32805690)
I started on the abstraction level with SimpleWebAuthn and implemented a POC to get a sense of the general flow: https://simplewebauthn.dev/docs/simplewebauthn/philosophy

Then referenced how to FIDO for more information: https://github.com/fido-alliance/how-to-fido/blob/master/How...

hope that helps

Re:Ask HN: What did you learn last week? by aaaaaaaaata on Sunday September 11, 2022 @07:49PM (#32804363)
Guide to Web Authentication - https://webauthn.guide/
Re:Ask HN: What did you learn last week? by gr1zzlybe4r on Sunday September 11, 2022 @09:34PM (#32804950)
I learned that it's ok to be working a job or on something just because it can be stable and it pays the bills. I think I've looked to work maybe too much for purpose, and if you're not working for yourself it's going to be very hard to find fulfillment when doing that.

So basically learned to be ok with not seeing work as a purpose driver for me at the moment.

Re:Ask HN: What did you learn last week? by dmkirwan on Sunday September 11, 2022 @04:19PM (#32802911)
I've been learning a lot, fast, by trying to build out the same (very simple) full-stack web application in using different frameworks. Different backends, different frontends and different databases. Admittedly, I've been doing this for slightly more than one week. It's been a lot of fun, I must admit. It's interesting to see the different quality levels in documentation, availability of help on StackOverflow, and tooling.

I'm not approaching it with any real goal other than to see how some other frameworks work but it feels very worthwhile.

Re:Ask HN: What did you learn last week? by woleium on Sunday September 11, 2022 @04:33PM (#32803013)
Interesting, which has had the best docs so far? I often feel that the docs make the language, and it's not a thing that many folks talk about.
Re:Ask HN: What did you learn last week? by dmkirwan on Monday September 12, 2022 @09:13AM (#32809634)
The rails docs are excellent, actually! I was surprised at how bad the node.js docs were, but the documentation for express.js is good enough that I didn't find myself referencing the node docs a whole lot.

C# and .NET have been pretty easy to develop in, but the documentation was very poor I thought. Maybe I just didn't find it, but it lacked a good example walkthrough like you get with Rails. Next up is a Swift backend using Perfect[0]!

[0] https://github.com/PerfectlySoft/PerfectDocs

Re:Ask HN: What did you learn last week? by ozzythecat on Sunday September 11, 2022 @08:46PM (#32804625)
I learned that I put my faith and trust in some people who were never sincere and were simply using me.

Sometimes you flock to someone because you see them being kind, considerate, and overall a strong leader.

It turns out that some people know how to fake these qualities. They’ll use you, and while you look up to them, they see you as a pawn in a chess game.

Assuming that people make mistakes and everyone actually just means “well” or has good intentions, it’s extremely naive. People will sell you that shit and take advantage of you.

I got gaslighted enough times and finally saw what was happening.

Re:Ask HN: What did you learn last week? by drukenemo on Sunday September 11, 2022 @11:07PM (#32805628)
I got curious to know more about your story. How were you used and what made you realize what was happening?
Re:Ask HN: What did you learn last week? by smcn on Sunday September 11, 2022 @04:13PM (#32802874)
I've been trying to learn how to properly use Twitter to market my startup, and I found out that hashtags are better than cashtags when tweeting about stocks. That is, #AAPL is better than $AAPL.

This is the reverse of what I had expected because there seems to be vastly more people using cashtags but my theory is that 1) people still search for hashtags and 2) more volume means your tweet is visible for less time.

However, the best is obviously mixing them. I have a thread during premarket trading hours where I discuss stocks that the algorithm has decided is interesting and I'll print out the current score using hashtags, but use cashtags for quick discussion on stocks.

Example here: https://twitter.com/0xsmcn/status/1568155410191851521

Re:Ask HN: What did you learn last week? by nope96 on Sunday September 11, 2022 @04:15PM (#32802890)
I learned that Stable Diffusion can read! It's called a "typographic attack". https://www.theguardian.com/technology/2021/mar/08/typograph...

For example, this site lets you create variations on an image that you upload: https://47725.gradio.app/

Feed it an image of text (type text in a paint program and save as PNG), and it seems to understand some words. https://i.imgur.com/aXELmHo.png

Re:Ask HN: What did you learn last week? by fragmede on Sunday September 11, 2022 @05:11PM (#32803303)
For posterity, since it will die ~soon; that gradio app is a live version of this repo: https://github.com/justinpinkney/stable-diffusion
Re:Ask HN: What did you learn last week? by dhsysusbsjsi on Sunday September 11, 2022 @04:20PM (#32802929)
I learned that in SwiftUI if you don’t want a view to re-render when one of its properties changes, but you need it to have that property/state because it needs passing to children, you can just make it a regular variable without the @PropertyWrapper.

Seems pretty obvious in hindsight!!

Re:Ask HN: What did you learn last week? by marak830 on Sunday September 11, 2022 @04:21PM (#32802937)
If I had a dollar for every time something seemed obvious in retrospect....
Re:Ask HN: What did you learn last week? by SecurityMinded on Sunday September 11, 2022 @07:22PM (#32804212)
I learned not to trust any home services contractors' word. Have been left out to dry by 3 of them in one week after confirming appointments a day or two before.

On the flipside, I learned how not to paint walls, i.e. learned doing it the wrong way.

I learned a sump-pump advertised to pump 500 gal water per hour will take 3-4 days to pump the muck out of my swimming pool in 4-5 days, i,.e. not to trust those ratings.

Re:Ask HN: What did you learn last week? by thehoff on Sunday September 11, 2022 @08:02PM (#32804428)
I’ve had this in the past year as well. I don’t get it. They may be really busy but it seems like bad customer service on their end.

The ones that either don’t return calls or emails or just don’t show, I’m never reaching out to them in the future and I’m never recommending them. But maybe it will never matter?

Re:Ask HN: What did you learn last week? by mod on Monday September 12, 2022 @03:27AM (#32807124)
Maybe it's an epidemic, I've been through a ton of repair guys lately. At my business we have a lot of HVAC work (AC, coolers, ice machine), plumbing work, and occasional other stuff like locksmiths or handymen.

They just absolutely will not show up when they say they will. Late, sometimes no-show. I had a plumber take FOUR visits over FIVE days and still not solve the (relatively minor) issue.

I don't know if there's just that much work out there? I think anyone who shows up could make a killing in my area, for any kind of repair work. I've never shopped around on price, either.

Re:Ask HN: What did you learn last week? by hifikuno on Sunday September 11, 2022 @05:00PM (#32803230)
I learnt to double check that an image will actually work on my device. Tried flashing a newer version of DD-WRT to a router I was using as a wireless bridge. That device is now an ugly paperweight and I have two computers without internet.
Re:Ask HN: What did you learn last week? by dpkirchner on Sunday September 11, 2022 @06:30PM (#32803879)
I learned that my favorite pizza place, that I've been disappointed with lately, is getting a lot of 1 star ratings from folks these days. Guess I'm not the only one disappointed.

It's a huge bummer. It took a while to find a good option!

Re:Ask HN: What did you learn last week? by mod on Monday September 12, 2022 @03:28AM (#32807135)
What changed that is leaving you dissatisfied?

Do you know why it's happening?

Re:Ask HN: What did you learn last week? by dpkirchner on Monday September 12, 2022 @09:47AM (#32810163)
They stopped selling some of their "specialty" pizzas and removed their component ingredients from their menu. Worse, but rarely, the pizza would arrive a little bit doughy, like it wasn't fully cooked.

For the former, I don't know why it was happening -- guess I could ask -- but I suspect they're having trouble sourcing those ingredients at acceptable prices. For the latter... we'll, that's just laziness and inattention.

Re:Ask HN: What did you learn last week? by satisfice on Sunday September 11, 2022 @07:24PM (#32804216)
Last week I learned that Sextus Empiricus argued that learning is impossible.
Re:Ask HN: What did you learn last week? by Triangle9349 on Monday September 12, 2022 @06:11PM (#32817719)
I saw a man with a device similar to a gameboy, it was a M8 Tracker. He showed a little and talked about music trackers. As a person far from music production, my mind was blown away. All week I searched on youtube everything about: Music Trackers(M8, Renoise, Milky Tracker, SunVox), Ableton, VSTs, Pure Data, Touch Designer, Synthesizers, etc I don't know what to do with this information, but it seems I will have a new hobby.
Re:Ask HN: What did you learn last week? by cgreerrun on Sunday September 11, 2022 @07:15PM (#32804172)
Stereo Reconstruction

It's the algorithm(s) for how to compute a depth map when you have images from two cameras spaced some distance apart (for e.g., our eyes). It's gotten really good recently and it's fascinating on a technical level. Check out this YT video/playlist if interested: https://www.youtube.com/watch?v=6hr6xpOU-uw

Also, great question! Should do it every week.

Re:Ask HN: What did you learn last week? by martin_a on Sunday September 11, 2022 @03:59PM (#32802738)
The special software we're using for automation in the print industry switched to TypeScript with the last major release.

I finally found the time to get into that and wrote my first two scripts with TypeScript and the overall new system to do scripting.

Still struggling with the finer bits, but access to npm et al. really helps with getting done what needs to be done without reinventing the wheel.

Re:Ask HN: What did you learn last week? by kradeelav on Sunday September 11, 2022 @03:49PM (#32802649)
Writing notes from this amazing 11 part series on anime layouts/storyboarding > https://note.com/masuyama56/m/m94192fe5c85e

even run through google translate it's better than some courses I've paid for. that 2x2 grid is a game changer alone.

Re:Ask HN: What did you learn last week? by orsenthil on Sunday September 11, 2022 @05:01PM (#32803233)
I created 3 projects with Javascript. Maintained my C language project. Learn about infrastructure, aws and kubernetes. Continued my fintech and stock trading learning. Experienced an entrepreneur challenge with focus that is required to continue evolving a project, while facing people challenges.

Discussed with friends regarding economics.

Re:Ask HN: What did you learn last week? by marak830 on Sunday September 11, 2022 @04:21PM (#32802931)
Became alot more knowledgeable about using Jira and our clients expectations

Bookmarklets haha I didn't even know they existed(was always using tampermonkey and such), in addition adjusting html on the fly for our logging system

*13 days is a long week, next time you put your hand up for OT, specify that you meant either day, not both xD

Re:Ask HN: What did you learn last week? by tsol on Sunday September 11, 2022 @10:58PM (#32805573)
Turns out it's pretty easy to do a multiple long day fast if you spend a few weeks cutting out carbs first
Re:Ask HN: What did you learn last week? by hereyougo2 on Sunday September 11, 2022 @04:31PM (#32803004)
From a comment here yesterday I learned the [2n] [2n+1] array layout for a binary tree is also known as the "Etyzinger" layout.

https://algorithmica.org/en/eytzinger#the-eytzinger-layout

Re:Ask HN: What did you learn last week? by roydivision on Monday September 12, 2022 @03:36AM (#32807172)
I learned that S3 buckets don’t have a concept of directories, even though a lot of clients make it look like they do. It is possible and valid to store an object such as

/foo/bar

Without /foo existing.

This can cause problems in certain circumstances. Beware.

Re:Ask HN: What did you learn last week? by PaulHoule on Sunday September 11, 2022 @03:33PM (#32802543)
Found an answer to this problem

https://www.dpreview.com/forums/post/66442643

which I detail at the end of the thread

Re:Ask HN: What did you learn last week? by 8note on Sunday September 11, 2022 @03:55PM (#32802697)
I learnt that api gateway templates don't have a good stringify function. You can turn a string into json and do stuff with it, but you can't write it back without having your own function for it
Re:Ask HN: What did you learn last week? by thebeastie on Sunday September 11, 2022 @04:31PM (#32803000)
More webgl / three.js. There seems to be a lot to learn. Starting to look into shaders. It’s hard because my math sucks and alot of it is maths, albeit basic matrix calculations and geometry.
Re:Ask HN: What did you learn last week? by oschvr on Sunday September 11, 2022 @05:22PM (#32803388)
I learnt how to backup data from Prometheus stored in a Persistent Volume in Kubernetes. many ways of doing this but the one I found backs up a tar to a bucket, which is pretty convenient.
Re:Ask HN: What did you learn last week? by RonaldOlzheim on Tuesday September 13, 2022 @09:24AM (#32823949)
Sometimes you know that uou are not the problem, but your response is a habbit and the habbit is the reason that you experience the feeling of having a problem.

The union

Re:Ask HN: What did you learn last week? by rad_gruchalski on Sunday September 11, 2022 @08:04PM (#32804438)
Went through The Art of Prolog and Prolog starts clicking on.
Re:Ask HN: What did you learn last week? by altilunium on Sunday September 11, 2022 @07:55PM (#32804393)
Dig dive into OpenStreetMap ecosystem by reading weeklyOSM archives.

[1] : https://weeklyosm.eu

Re:Ask HN: What did you learn last week? by givemeethekeys on Sunday September 11, 2022 @07:57PM (#32804404)
I finally understood the difference between references and pointers and now the reason for Box pointers in Rust makes more sense.
Re:Ask HN: What did you learn last week? by bwb on Sunday September 11, 2022 @05:21PM (#32803384)
Pumkin pie is not made of pumpkin, rather butter nut squash… why???
Re:Ask HN: What did you learn last week? by silisili on Sunday September 11, 2022 @07:09PM (#32804135)
This isn't strictly true...you can use either. Libby's for example is 100% pumpkin.

I think a lot of people use butternut squash because it's sweeter, more available, and has a nice texture.

Re:Ask HN: What did you learn last week? by bwb on Monday September 12, 2022 @04:34AM (#32807503)
Re:Ask HN: What did you learn last week? by BOOSTERHIDROGEN on Sunday September 11, 2022 @10:28PM (#32805370)
Grafana and InfluxDB