HNHacker News
TopNewBestAskShowJobs

tda

2,807 karma · joined October 26, 2016

submissionscomments
tda··on Show HN: 3D printing giant things with a Python jigsaw generator
In similar vain, but the with cadquery and Jupyter notebook is the screwdriver stand I once made:

https://github.com/tdamsma/Screwdriver-rack

tda··on Ruff: Python linter and code formatter written in Rust
you can discuss the spaces and lack there of here: https://stackoverflow.com/questions/8853063/pep-8-why-no-spa...

The rest of us just follow the PEP8 style guide and move on

tda··on Ruff: Python linter and code formatter written in Rust
The removal of spaces around keyword arguments is per the PEP8 style guide. There is no point arguing with the style guide. It is there to end discussions. I also do not agree with everything in the style guide. But I keep that to myself. Because a single universal (but flawed) style guides >> competing style guides >> complete anarchy
tda··on Ruff: Python linter and code formatter written in Rust
add a comma after he last argument to make black explicitly use multi-line formatting

  parser.add_argument(
    "--stdout",
    choices=("true", "false"),
    default="true",
    help="log data to stdout",
  )
It also removed the superfluous spaces in the keyword arg assignments
tda··on Nearly all binary searches and mergesorts are broken (2006)
So does the bitshift cast the result of the addition to an unsigned int? I am not so familiar with Java.
tda··on Show HN: I designed an espresso machine and coffee grinder
I was just wondering the other day why all espresso machines seem to have the same loud pump from the same factory. The pump is just a plastic tube, a sping, a valve and a huge coil around it that vibrates on mains 50/60Hz. Essentially a soap dispenser combined with a doorbell
tda··on A letter to open-source maintainers
That may aso be a factor, but in general machines under 500 euro cannot be repaired economically as it easily costs 100-200 before the manufacturer even has a look. And this usually results in replacing a subassembly like the entire PCB at a very inflated price of say 200. I wouldn't be surprised if the economical-to-repair threshold is well over 1000 for a lot of product categories. Third party professional repairers are all but extinct. Only for certain specific product categories (e.g. washing machines) you still have them. But as most washing machines cost around 500 euro, and are expected to last only 5 years, I would think the number of repairers are declining (why repair a 3 year old 400 euro machine for 250, for at most another 2 years of utility if a new one can be had for 400?).

I would love to know if there are professional shops where one can get e.g. a capacitor on a PCB replaced, but as far as I am aware all these kinds of repairs are done by amateurs in garages like myself.

The other day someone even gave me a broken 750 euro Jura coffee machine. The owner was not interested in getting it back, they had happily switched to nespresso. Still haven't figured out why the pcb will not power on the heater though

tda··on A letter to open-source maintainers
This is also my observation. The cheaper I sell stuff on the local version of craigslist, the lower the quality of the buyers. No shows, non responsive to messages, whatever. I gave up on putting up stuff for free.

The reason I put it up for free is that I value not having the item more than having it, so much more that I don't care about the 10 or maybe 100 euro that I could theoretically get for it. The idea is putting it up for free will let me quickly get rid of it, and instead of throwing something useful away, maybe someone will be happy with it. In practice this rarely works, I now much better understand why some people with limited time just toss out whatever they don't need. Getting it into someone else's hands is just too much work. The environmental impact is horrible though

Another insight: whenever i donate my time fro free (volunteer work), my time is not valued at all. We start with a 30min coffee break with strangers I have no real interest in. Then a speech thanking so and so, and then someone starts preparing and finally after over an hour I can start contributing with whatever is the cause I want to help with. What a waste...

If I charged my normal rate everyone would be prepared and make sure they make the most effective use of my hours.

So this is such a paradox: people under value what is free, so giving something for free is not appreciated enough for me to do it.

Final observation: I run a repair-cafe, and a very significant portion of appliances people come by with are cheap, ireppairable junk (often nespresso and senseo coffee machines, but also toasters etc). Im am suspecting that the people that buy more expensive coffee machines (the ones that are serviceable) are less inclined to actually take the time to repair it and just discard and buy new

tda··on BYD launches sodium-ion grid-scale BESS product
At least in Europe, offshore wind farms (which are more expensive than on shore) don't need any subsidies to be profitable. The turning point was around 2018
tda··on The UX of Lego Interface Panels (2020)
Works for me!
tda··on Dear sir, you have built a compiler (2022)
So what do you use to know if you need to build it yourself or if there is already something out there? Niot being able to find a tool for the problem does not mean it doesn't exist, just that you haven't found it. Especially when you lack the familiarity with the problem to know the correct keywords.

I find ChatGPT to be of great help to explore the area, find relevant keywords or the name of the research domain. Sometimes you really need to know exactly what you are looking for before you can find the link to that one super helpful github library that solves you problem. The of course the next step is figuring out if you want to take on the dependency or not...

I have wasted hours searching for an (analytical) inverse kinematics library for robotic arms. There are tons of slow non analytical libraries out there, and some horrible ones like ikfast that is a effectively a code generator that spits out c that can be compiled with python bindings. I eventually did find https://github.com/Jmeyer1292/opw_kinematics, which someone ported rust (for which it was easy to create python bindings).

tda··on The closest open-source alternatives to Notion and Miro
I am genuinely impressed with what I see: Customisable tables, document editing as in notion combined with the drawing features (which I presume are inspired by Miro). The endless canvas / presentation feature reminds me of Prezi (but without transitions). All of this free and open source, really nice!

I did encounter plenty of glitches related to zoom and toolbars disappearing on firefox. As I didn't sign up all the AI integrations are not working; as someone else suggested it would be cool if I can just enter an API key somewhere. I recently tried out excalidraw. Really like the looks and how the arrow snapping works there. Excalidraw is MIT licensed so perhaps you can integrate it?

tda··on The closest open-source alternatives to Notion and Miro
I get a modal that requires me to sign in or make an account, can't seem to bypass that. But I just installed the self-hosted version, it seems to be very heavily notion inspired (as in it seems like the css is just a copy paste with the same icons and general look/feel)
tda··on The closest open-source alternatives to Notion and Miro
As I can't try anything without creating an account, I will just have to wait and see what others have to say about this.
tda··on Voice acting in Space Quest V

    >Labor
    >Rough estimates.
    >
    >    ~100 Hours of work generating, selecting, splicing and cleaning audio files.
    >    ~30 Hours of programming with the SCI Companion.
    >    ~1/2 Hour on SCIProgramming.com.
And it's gone
tda··on Rust for tokenising and parsing
I have been using this tool. The best feature imho is that you can quickly iterate on the grammar in the browser using the online editor in the homepage.

I was struggling though with the lack of strong typing in the returned parse tree, though I think some improvements have beenade there which I did not have a chance to look into yet

tda··on We're excited about our new roundabout
It's only the difference between CI enforcing code style vs manual PR reviews that have a checkbox for code style. They accomplish the same, but one is infinitely better.
tda··on Ocean waves grow way beyond known limits
That rogue or freak waves exist has been known a long time, it is just that the standard theory could not explain them. Just look at a wave recording like this [1], one might assume this outlier is a measurement issue. When 99.999% of observations (I am guessing the number of nines, it may well be more) perfectly fits a statistical distribution (poisson or gaussian, I don't remember anymore), it is quite understandable that the extremely small number of outliers is discarded.

https://phys.org/news/2022-02-record-breaking-rogue-coast-va...

tda··on Love of cargo bikes is changing how we deliver goods in our cities
All bakfiets models come with (optional) rain tents, so young can kids stay dry and out of the wind. Cold is usually more of an issue than rain on longer trips. In a bit of snow, I feel a lot safer on my bike than in a car. Just adjust speed and do controlled braking to feel the grip (or lack thereof). It helps a lot that I live in a flat country (Netherlands), as snow/ice and slopes are a really bad combination with cycling.
tda··on Love of cargo bikes is changing how we deliver goods in our cities
After over 15.000 Km of cycling with our bakfiets, I think I oiled the chain maybe 20 times. Replaced the tires once (and a few spokes due to user error/ring lock still locked+kick stand+two kids in the bike is not a good combo). Still on the first chain and cassette. I have never cleaned a chain.

Maybe your carbon bike with expensive options to save every last gram of weight requires so much maintenance, but any proper Dutch city bike or bakfiets made of steel will last very long with minimal maintenance

tda··on Large-Scale Generation of Transit Maps from OpenStreetMap Data
Really cool! Very impressed by the results thus far, but thrlere is also some room for improvement. Probably caused in parts by parsing, and in part by input data quality.

- Taiwan has an insane rail network of a few hundred lines - half of the streamlines in Amsterdam are tram 7, apparently it takes you everywhere. - there seems to be an assumption all lines stop on all stations they pass - quite a few regional Train lines are committed in the Netherlands

And finally I woul love a bus version too!

Keep up the good work

tda··on State of S3 – Your Laptop is no Laptop anymore – a personal Rant
This is one the primary reasons I use a MacBook (the other being the trackpad). Instant and reliable on/off when I close/open the lid, without ever worrying about it is something I just take for granted.

If I need a mouse and do a controlled shutdown/boot I might as well use a desktop.

tda··on ArcticDB: Why a Hedge Fund Built Its Own Database
I know there are tons of problems that are solved in excel while they really shouldn't. Instead of getting the expert business analyst to use a better tool (like pandas), money is spent to "fix" excel.

Apparently there is also a class of problems that outgrow pandas. And instead of the business side switching to more suitable tools, some really smart people are hired to build crutches around pandas.

Oh well, they probably had fun doing it. Maybe they get to work on nogil python next

tda··on I've built my first successful side project, and I hate it
Me: This very specific thing is broken in general for your product when I do a and b. Just like users x,y and z report on <random forum>.

(Siemens) Support: Before I can help you, please find the serial number via <tedious procedure>, and the exact version of subsystems <x, y and z>.

Me: Here you go, though I fail to see how my specific setup is relevant as the problem has been reported on forums for years, and it is easily reproducible

Support: Please update to latest version x.

Me: Version x has known regression which will break the machine for the customer. I did the 1 hour procedure anyway but the issue is still present.

Support: Please execute this <obtuse command that runs a trace> and download the log from <airgapped machine> with SCP

Me: O well, did that here is the file. Don't understand why you can't run it on your machine

Support: Please try <irrelevant thing>, reboot (wait 5 minutes) and run the trace again

Me: (Gives up)

tda··on How French Drains Work
Also, as people have a life expectancy in the order of 100 years (75 perhaps?), there is a pretty good chance you will experience a 1:100 year event at some point in your life. Also a lot of infrastructure is built for 50-100 year life (or is still used after 100 years, even though it was designed for less).

The 1:100 year safety level should thus be considered a bare minimum for high impact events. In the Netherlands water infrastructure is designed to withstand the 1:10.000 year storm for catastrophic events, and e.g. 1:1.000 year storm for high impact events.

But even with higher safety standards, it is key to design not only for the current climate, but for the future climate over the design life of whatever you are building. Extrapolating 1:10.000 year events from 30 years of observations might seem sketchy already, but with all the uncertainties in climate change predictions is a bit of a stretch.

tda··on Ask HN: Best way to learn robotics with a 10 year old?
The Lego Boost set is quite a nice set. It comes with three servo's and a color/distance sensor. The scratch like programming tools are nice and accessible and not that limited. However you can also flash micropython on the controller with PyBricks. Then you can pair it with other Lego hubs and a remote over bluetooth.

This setup gives you pretty much all the possibilities of Mindstorms at a small fraction of the investment

tda··on For advertising, Firefox now collects user data by default
Probably none, I didn't know it was also there. I just compiled what worked for me after scrolling through a few other posts.
tda··on For advertising, Firefox now collects user data by default
on firefox mobile:

open chrome://geckoview/content/config.xhtml, set general.aboutConfig.enable to true

open about:config, set dom.private-attribution.submission.enabled to false

tda··on A Louisiana gas plant sea wall shows challenges of flooding, energy demand
Thanks for the insights. That cutting the grass would be a huge cost did not occur to me but with enough red tape I see that could be the case.

Even though soil failure is the direct cause, if that fails the structure has failed. The reflex of adding more concrete does not always help. A hard, vertical structure is basically a concentrator for both currents and wave energy. So you need a huge scour protection or else the wall will only work very temporally. And a narrow structure is more susceptible to piping (where water finds a path under the structure and then erodes that away). This is of course also a soil failure, but unless you are building a boat you have to interface with the soil somewhere. And that is usually where your structure will fail...

tda··on A Louisiana gas plant sea wall shows challenges of flooding, energy demand
Concrete seawalls are almost always inferior to well engineered earth structures. Only when space is at a premium it may be better to use concrete, but in roughly all other cases a concrete structure is more expensive and more likely to fail catastrophically. But somehow a lot of people have the "something substantial needs to be done" mindset and just don't think moving earth is substantial enough. Or at least that is my tale when I see the pictures. Maybe someone knowledgeable on the local situation can chime in on why concrete was chosen?
← PreviousPage 3 of 18Next →