HNHacker News
TopNewBestAskShowJobs

maartenh

141 karma · joined November 27, 2017

https://maarten-hoogendoorn.nl/
submissionscomments
maartenh··on A Poor Man's API
Hm, using Apache APISIX for DDoS protection on a single node? That won't really stop a real DDoS. Not much you can do on a single server, if a botnet is saturating the network links to your server(s), without help from your infra provider.

This setup can be used to prevent the backends from being overloaded, which one can probably already do from a single host, and depending on the speed/amount of work by the backends done, not a lot of bandwidth is required to overload most systems that have a limited amount of request processing capacity.

I would argue that this is load management/shedding though, and not DDoS protection.

maartenh··on Show HN: GitHub Org Audit Tool
Awesome! I built something like this for $JOB-1 too. Unfortunately didn't get to open source this before I left.

I built in an a mechanism for policy checks too, e.g. to check that only an allowed list of repositories was public, and that permissions were only assigned through teams.

maartenh··on Guix for Development
Yes.

Don't forget about non-GNU.

maartenh··on Flang: LLVM’s Fortran Front End
I remember from my Fortran week in university, that Fortran has strict rules about aliasing that allow the compiler to generate more efficient code C in several cases. And I also have read about aliasing bugs/assumptions being wrong in LLCM and having to be fixed for the rust compiler.

Has Rust's usage of LLVM been helpful for Fortran? And maybe vice versa?

maartenh··on Our Roadmap for Nix
I agree that the FP part is not the only issue. It's that the community feels a bit more academic/I'll fix this for myself in the way that works best for me.

You can indeed achieve some reproducibility with Docker. It's tricky though, as you'd have to pin exact package versions of software. If you'd `FROM ubuntu:$VERION`, and would run an `apt-get update`, you're not guaranteed to get the same software.

Nix is like ZFS, as that it breaks the wall between two previously distinct area's. Those being building software, and installing/configuration software on your OS. It's quite different from the snapshot-everything methodology that Docker uses. Yeah, one can split in multi-stage images etc, but than you'll be keeping track of which dependencies need to be moved between the stages yourself, in a manner that cannot be abstracted away, so you're doomed to repeat the same patterns over and over again.

People also state that LVM + ext3 is more than sufficient compared to the complexity of ZFS. They miss out on the fact on how much more fine grained solutions are possible with ZFS.

I've used niv [0] before flakes arrived, and am actually still using that instead of flakes. The experimental nature of them has scared me away from them, as I'm not daily involved in this ecosystem at the moment.

[0] https://github.com/nmattia/niv#niv

maartenh··on Our Roadmap for Nix
I love Nix. I use it on my homesteaders, and private laptop.

I have seen how it works great in a team, if all are onboard.

No place I've worked at was interested in the advantages of Nix though.

I wonder if switching to something less recognizable to a functional programming language might help adoption.

The approach Starlark (the DSL for Bazel) has taken, is have mutable datastructures, but freeze them after they are evaluated. This seems a lot more explainable and debuggable for the average programmer.

Infinite recursion errors are not fun to debug in Nixlang.

At my current job, NX is used to be a kind of Nix, but it does not seem to try to solve the entire problem space. Just to solve the additional complexity that introducing a monorepo in regards to tracking build dependencies.

It seems to me that how awesome Nix is from a tech perspective, it doesn't make delivering actual software any easier without team buy-in and effort in integrating in their delivery pipelines.

maartenh··on Ask HN: Am I incompotent for web development?
Agreed! And in any case, if the company culture doesn't suit the OP, assholes or not, don't stay. This can be a huge energy leak. I realized this only too late at one of my previous jobs.
maartenh··on Ask HN: Am I incompotent for web development?
Argh. We all have these stories of lost hours because of an assumption that proved to be wrong.

Nowadays, whenever I help someone debug an issue, I insist on starting from zero assumptions (by making self depricating jokes, and stating that I need to understand the context properly).

Furthermore, the culture/way of communicating in German might a _lot_ more direct and interpretable as negative than in Brazil. I'm Dutch, and we're known for our directness, but I've ben upset by some Germans before by how negative they can be about some work. They didn't intend this at all, they were just unaware of how their communication landed.

maartenh··on Monorepos done right
Anyone got references to how a monorepo would work for Infrastructure as Code?
maartenh··on Autosaved: A Go utility for autosaving progress in Git projects
I have a few questions about this!

1. Why? To control where the source code is stored? Restricted access to API's or data? Special compute (e.g. GPU/FPGA's) needs?

2. You have managed to make this workable for yourself. How do your colleagues deal with this?

3. Could you share what kind of industry your employer is in?

maartenh··on Ask HN: Why does Cloudflare/hCaptcha care so much about buses, boats and trains?
They might all be very relevant if the machine learning algorithm behind it decides that it needs more paper clips.
maartenh··on Archaeological dig reignites debate over the Old Testament’s historical accuracy
One thing I really like about Doctor Who, is the absurd mis-remebered fake histories they make up for our current era. Hilarious!

Puts into perspective how we think about the cultures that came before us.

maartenh··on Mess with DNS
Nice!

A month ago, I scripted https://github.com/moretea/browsers-with-fake-dns as an alternative to editing /etc/hosts. It's a docker container with a BIND DNS server, and chrome/Firefox reachable via webvnc

maartenh··on The trees that miss the mammoths (2011)
Lovely idea for a Pixar short movie :)
maartenh··on Smart Audio for the Smart Home
I have done exactly this, and am quite happy with the result.

I wrote a python script to listen to state changes of a multi select option in Home Assist, that then calls the snapcast control API to switch between different configurations.

This allows me to map different input sources of snapcast (e.g. two separate instances of librespot, two instances of mopidy) to be routed either just my living room, just the kitchen, or both at the same time.

maartenh··on Monitoring 27kw Generac Generator with Raspberry Pi and Multimode Fiber
Why would one to have a generator in your own backyard? Is there no power grid available?

As for outages, wouldn't a UPS be sufficient?

Being Dutch, this does sound a bit like overkill.

Most times I see an electric generator like this in the Netherlands is at festivals, or on the national news where a remote 100% renewable museum couldn't get hooked up to the nation power grid due to lack of capacity, and had be powered by diesel generators.

maartenh··on Home Assistant – open-source home automation
I worked around this by creating a button that runs a git commit & push, and an iframe that points to a local running flask app that renders a <pre><code>{{ shell("git status")}}</pre><code>. Not as nice as fully declarative YAML, as this also captures the data files, but at least I have point in time restore.
maartenh··on Svgbob – Create a graphical representation of text diagrams
Given the type of operations one could do such as moving, changing and deleting pieces, that might be quite tricky.

With text, it might be relatively easy to compare the final states. In case of free-form graphics, that could be a lot harder!

maartenh··on Svgbob – Create a graphical representation of text diagrams
Bonus points for the name! Happy little diagrams.

I do think that creating and updating these kind of diagrams would be quite tedious. I'd take a DSL (PlantUML, Graphviz, Structurizr) over graphical tools though. At $JOB we also use Miro at the moment, and that tool has a way to see changes since your last visit. I'd much rather be able to approve a change in a diagram via a pull request review.

That makes me wonder, do any of you know about content management systems that are GUI based, but are able to have a pull-request like workflow?

maartenh··on Nixos-unstable’s ISO_minimal.x86_64-Linux is 100% reproducible
Nixpkgs contains the build / patch instructions for any packages in NixOS.

If you want to compile any piece of software available in Nixpkgs, you can override it's attributes (inputs used to build it).

One can trivially have an almost identical operation system to your colleagues install, but override just one package to enable optimisations for a certain cpu. This would however imply that you'd lose the transparent binary cache that you could otherwise use.

Exactly this method is used to configure the entire operating install! Your OS install is just another package that has some custom inputs set.

maartenh··on The PsychDOS Desktop Environment
Oh wow. This disclaimer page is a piece of art in absurdity: https://theouterlinux.gitlab.io/disclaimer_mobile.html
maartenh··on How Well Can You Hear Audio Quality? (2015)
I do experience differences on my HifiBerry + MFB (motional feedback) speakers between 320bps mp3 and flac. Mainly the crispness of e.g. percussion and voices is subjectively much, much better.

This might of course be the IKEA effect, but I'm quite happy nevertheless with my flac collection.

maartenh··on Vim Clutch – A Hardware Pedal for Vim
Awesome build!

I built a (terribly hacky) pedal to have a push-to-talk system on my laptop [0]. I use it surprisingly often in meetings to not bother other people with the sound of my mechanical keyboard when making notes.

I tried it as a vim clutch, but the muscle memory is too strong (and too fast)

[0] https://github.com/moretea/kludge

maartenh··on Ask HN: Advices for Burnout and Depression?
1. Go outside, walking for a bit whenever you can pursuade yourself. 2. Don't beat up yourself if you don't do it. 3. Talk to people. Be vulnerable. You'll be surprised how easy people open up. 4. Get some help dealing with your depression and burnout. Burnout/boreout is caused by doing things that take energy from you, or don't give you energy for too long. 5. Commit to finding out who you are. What drives you as a person? What gives you energy when you do it? 6. Learn to recognize when you're expending more energy than you get from work. This slowly drains your mental battery. Being able when this is happening allows you to either take a recharge break, or communicate to your boss that you need something else.

These pointa help me to not get in this situation again.

maartenh··on Learn Functional Programming Visually
This reminds me of the tree diagrams I wrote during the Term Rewriting Systems course at the Vrije Universiteit [1].

Functional programming really started to resonate with me at that time. Properties like confluence were very useful to understand distributed systems algorithms later on, and e.g. how eventual consistency plays out.

[1] The teacher was awesome too. If you'd like to learn more about term rewriting systems, go take a peek at his slides http://joerg.endrullis.de/teaching/#trs (Note, just noticed that they are behind a password. A gentle email will probably get you the slides though :)

maartenh··on How New York became a metropolis of stoops
Funny story. In current Dutch, the word 'stoep' means side walk, and has nothing to do with these kind of stairs.

I'm the Dutch golden age, in which the inner city of Amsterdam got it's channels, they did add these stoops to the big mansions for exactly the same reason.

maartenh··on Why do we use the Linux kernel's TCP stack? (2016)
How would you debug programs using ioring? With the traditional I/O syscalls, one can use tools like strace to observe the behavior of a program.

Would using BPF to instrument the ioring be the way to go?

maartenh··on Utrecht restores historic canal made into motorway in 1970s
The swimming club that I'm a member of organized a tour last Sunday in which they swam around the Singel (which is Dutch for a round canal encircling a city).

With 5.8km it was quite a swim for the attendants.

EDIT: Translated Wikipedia page of 'Singel': https://translate.google.com/translate?hl=&sl=auto&tl=en&u=h...

maartenh··on αcτµαlly pδrταblε εxεcµταblε
Yes, used ClamAV.

None besides this example file.

I use this laptop for $WORK and web browsing, and my warez times are behind me now that the software I want to run is typically open source, and the content I consume can be bought.

maartenh··on αcτµαlly pδrταblε εxεcµταblε
Oh, cool! I thought this file was just prefixed with some random garbage.

Unrelated: I used this to verify that my daily scheduled full scan of my Linux laptop works. This is required by compliance at $WORK. It reports found viruses via the i3-nagbar.

← PreviousPage 2 of 3Next →