Better HN
topnewbestaskshowjobs
Log inSign up

wcrossbow

355 karma · joined Mar 5, 2018 (8y ago) · 80 submissions

Submissions

comment 5mo ago · link · parent

Sorry but no! On my corner of the world it's not allowed but more importantly it's dangerous. When riding your bike you must have all your senses fully engaged. First day I got on my new ride my dad gave me a piece of biker wisdom: You are the weakest and smallest vehicle () on the road, watch out and drive like nobody can see you or cares about you.

(

) Bicycles and other light vehicles excluded

comment 7mo ago · link · parent

Im not a big fan of Windows but copy pasting a file across 3 nested RDP sessions feels magical every time

comment 7mo ago · link · parent

I would assume it's grating for anybody to hear their mother tongue butchered. More so when both sides know they could just switch English and have an adult conversation instead of struggling to buy a loaf of broad and a bottle of water. I always feel the urge to switch and have to remind myself that the other person is making a big effort on their side and that should be appreciated and respected.

P.S. My mother tongue is Spanish and it's many accents are anything but standardized.

comment 7mo ago · link · parent

If it’s good enough it’s good enough, but just like there are many more options than going full blown LLM or just use a regex there are more options than transpile a massive Python stack to TS or give up.

comment 9mo ago · link · parent

Kids will randomly run into the road. They might run behind a ball or a dog so that it doesn’t end up on the other side or runned over or are simply too excited to remember your stern road safety talk.

The first thing I was taught when I picked up a car was: if you see a ball on the road you stop immediately. This valuable lesson has saved one kid (and my sanity) with me on the wheel.

comment 10mo ago · link · parent

The last and most important slide is missing.

"Ignore all the advise above and do the right thing Subtext: This will take multiple lifetimes to accomplish"

This is particularly important considering that some of the advice is at odds with each other and engineering is an unending juggling of tradeoffs. It's also by far the hardest to achieve both technically and socially but worth striving for.

comment 11mo ago · link · parent

That’s true! Sorry for not mentioning that.

comment 11mo ago · link · parent

This is great. If you enjoyed it you should check https://www.youtube.com/watch?v=8IEGmD_aV3w . Next to that it’s child’s play. That’s a whole trasatlantic’s engine room from scratch.

comment 1y ago · link · parent

They might have been using the fast multipole expansion method

comment 1y ago · link · parent

I'm not a go developer and this kind of thing is far from my area of expertise. Do you mind giving some examples?

As far as I can tell skimming the code, and as I said, without knowledge of Go or the domain, the "shape" of the code isn't bad. If I got any vibes (:))from it, it was lack of error handling and over reliance on exactly matching strings. Generally speaking, it looks quite fragile.

FWIW I don't think the conclusion is wrong. With limited knowledge he managed to build a useful program for himself to solve a problem he had. Without AI tools that wouldn't have happened.

comment 1y ago · link · parent

This is the stuff nightmares are made of. We already live in a you have nothing to hide society. Now imagine one where mega corps and the government have access to every thought you have. No worries, you got nothing to hide right? What would that do to our thought process and how we articulate our inner selfs? What do we allow ourselves to even think? At some point it will not even matter because we will have trained ourselves to suppress any deviant thought. I'd rather not keep on going because the ramifications of this technology make me truly sick in the stomach.

comment 1y ago · link · parent

Even better is to try to fetch all the env variables and then report on all of the missing ones.

comment 1y ago · link · parent

Another good one is pgqueuer https://github.com/janbjorge/pgqueuer

comment 1y ago · link · parent

I read this and of course couldn't believe it. Isn't 14.7B enough to be considered extremely rich these days[1]? In the the Forbes real-time billionaires list is quite easy to find _many_ such examples.

[1] https://www.forbes.com/profile/sarath-ratanavadi/?list=rtb/

comment 1y ago · link · parent

At my current employer, Kuva Space, I'm among other things responsible for the commisioning and in orbit calibration of the payload. The Moon is a major calibration target for us, and between waxing and waining crescents I spent a lot of time analyzing Moon shots to perform radiometric calibration and camera parameter optimizations. The Moon doesn't know about weekends and images are not always downlinked at the most convenient times so that makes my life a bit more hectic.

comment 1y ago · link · parent

The Moon also plays currently a very special role in my life and my work days are dictated to a large extent by the current Moon phase :)

It's not discussed in the article but we have detailed models (ROLO[0] and LIME[1]) for how much light is reflected from the Moon and can be captured by a telescope. Like this one can radiometrically calibrate a telescope, that is, find a mapping between the digital numbers coming out from the sensor and actual radiance values.

[0] https://www.usgs.gov/media/files/rolo-lunar-model-and-databa... [1] https://acp.copernicus.org/articles/24/3649/2024/

comment 1y ago · link · parent

This is not what I meant. What is being proved is: a^2-b^2 - (a+b)(a-b) = 0. If you swap a and b you end up with a sign switch on the lhs which is inconsequential.

comment 1y ago · link · parent

Just rename a to b and b to a.

comment 1y ago · link · parent

That's a gross underestimation. At current world population levels that comes out to be 8000 people. The QMK github repo alone has over 18k stars and almost 40k forks. So yeah very popular!

comment 1y ago · link · parent

> is that you can swipe left and right on the space bar to quickly and accurately scroll left and right in a text field. I find this about as fast as tapping at a position in a text field, but much more accurate

I recently learned about a hidden iphone feature. If you hold the spacebar for about halve a second you can move freely the cursor around any text field.

comment 1y ago · link · parent

You can flash your own firmware which you can inspect. QMK and ZMK are two very popular options.

comment 2y ago · link · parent

Great example of a corporate blog! My immediate reaction is I want to work in this team.

comment 2y ago · link · parent

Editors can highlight SQL queries embedded as strings. Neovim can do it, and I'm pretty confident it's not going to be alone in that respect.

edit: Not the editor I use but thought it might be helpful. Here is an extension, which I haven't tested, to do this in VSCode: https://marketplace.visualstudio.com/items?itemName=iuyoy.hi...

comment 2y ago · link · parent

Here is one piece of knowledge earned the hard way. Do not use the official python GDAL bindings (`pip install GDAL`) unless you really must. Go with rasterio and don't look back.

comment 2y ago · link · parent

Famous guitarists mostly only play specific expensive brands because they are endorsed by them. Any professional musician can make the cheapest of instruments sound really good. Maybe a note is missed here or there and the sound is not as good as it could be but it will still be way way better than an average player.

Here is Satriani playing on a terribly setup guitar [1] His only comment at the end? Oh, that was a little painful.

[1] https://www.youtube.com/watch?v=_KZjVZLsU6s&t=20s

comment 2y ago · link · parent

A guardian or a gordian knot [0]?

[0]: https://en.wikipedia.org/wiki/Gordian_Knot

comment 2y ago · link · parent

I was taken by surprise too by the false dichotomy presented:

> 1. Try breaking the data into chunks, and then using multi-processing (ugly in Python) to leverage a more powerful cloud virtual machine, sticking with matplotlib

> 2. Write a very small native custom library to do the math we want, using threads

There are a many more ways you could try to go about this, off the top of my head: numba, pypy (or other alternative python), jax/torch/tensorflow, multiprocessing, joblib.

comment 2y ago · link · parent

Here is a much better blog post on the topic of optimizing geometrical operations with Rust. If I remember correctly some of the commenters of the HN thread even delivered better "pure" Python versions than the optimized Rust proposed by really leveraging Numpy.

- https://ohadravid.github.io/posts/2023-03-rusty-python/

- https://news.ycombinator.com/item?id=35367520

comment 2y ago · link · parent

Today I learned something new, but I found it very ironic that after looking up a11y, the first example, discovered it meant accessibility.

edit: I do realize that I might be missing the joke entirely

comment 2y ago · link · parent

> Math makes everything easier

This can't be overstated enough. Understanding the math behind what you are doing has the capacity to turn mind boggling hard problems trivial.

123