News for hackers. Stuff that matters.

mjepronk

Httpyac, to install the VS Code extension, just do:

ext install anweber.vscode-httpyac

Re:Browsers, JSON, and FormData on Saturday November 12, 2022 @01:59PM (#33575928)
Personally, I don't like the use of indexing to determine the JSON structure (like this `<input name="foo[0][1]">`). I think it's way more powerful to derive the JSON structure from the DOM tree. That's why I wrote some code to do exactly that: https://gist.github.com/mjepronk/5b33eaa90ecf11a5c2c47935a2c...

The use of `<fieldset>` and `<section>` may not be the best choice. You could use `data-` attributes on arbitrary tags for instance.

Netting mostly. Only downside is that these do not last forever and are made of plastics (PE, PEHD, PA, ...).
Re:Ask HN: How did you learn good program design? on Saturday May 14, 2022 @09:34AM (#31377770)
I like the book Domain Driven Design by Eric Evans.

Also, pure functional programming and immutability have greatly influenced my design even in languages other than Haskell (my main language is Python).

Eric Evans also stresses the importance of immutability of what he calls Value Objects.

It's a DNS resolver, not an authoritative DNS server. So it's similiar to Google's 8.8.8.8, Cloudflare's DNS resolver, or the DNS resolver that is provided to you by your ISP.
Re:Show HN: Open-Source Auth for NextJS / React on Thursday November 25, 2021 @05:58AM (#29340218)
Thank you for your answers!

The project for which I'm most interested in a solution like Ory Kratos is a multi-tenant SAAS, with a few hundred organizations. The organizations in general already have other systems that they use to keep track of employees, and so they want to be able to interface with our system to create and deactivate (or delete) users.

So it would suffice if we could host all organizations in one instance, and that we would still be able to directly expose Ory Kratos API's to our clients without them being able to see users in other organizations.

Re:Show HN: Open-Source Auth for NextJS / React on Wednesday November 24, 2021 @09:01AM (#29330007)
Thank you for working on this interesting open source product.

I have some questions:

- Is it possible to have multiple organizations in one single instance? Can I have some superusers that have access to all organizations?

- Can I delegate authentication for a subset of users (in my case this will always be an entire organization) to another authentication provider (say Microsoft ADFS)?

- Do you support SAML 2.0 clients?

- Do you have a REST API which can be used to create / deactivate users?

Re:Show HN: Offline-First Personal Kanban on Tuesday December 15, 2020 @12:57PM (#25432876)
You could have a look at EteBase [1], which was recently featured on HN. I haven't tried it myself, but I'm looking to build my applications in a similiar style.

[1] https://www.etebase.com/

Re:Mozilla Common Voice Dataset: More data, more languages on Wednesday July 01, 2020 @06:12AM (#23699852)
Well there is Librivox...
Re:Why is Idris 2 so much faster than Idris 1? on Tuesday May 26, 2020 @03:48AM (#23308464)
It compiles to Chez Scheme. It's written in Idris 2 (self-hosted).
Re:Why I’m Leaving Elm on Thursday April 09, 2020 @10:57AM (#22823147)
Do you think it is harder to learn than Ocaml/ReasonML though?

I think there is a good free introductory book [1], a welcoming community [2], the language and ecosystem are quite stable nowadays and there's good tooling (now that there's the Spago package manager).

[1] https://leanpub.com/purescript/read [2] https://discourse.purescript.org/

Re:Prototype: Puppeteer for Firefox on Tuesday July 23, 2019 @06:53AM (#20505767)
It's good, however it's not possible to use the remote debugging protocol for printing to PDF yet.
Re:PSA: Firefox Nightly now with experimental Wayland support on Friday November 16, 2018 @06:55AM (#18468135)
Hmm, a few weeks ago Ctrl-C Ctrl-V didn't even work on Fedora 29. With the latest Nightly everything seems to work fine on Wayland, even dragging a URL to GNOME Terminal.

Also, without XWayland I have no artifacts when scrolling fast in long documents. Very nice :-)

Re:PSA: Firefox Nightly now with experimental Wayland support on Friday November 16, 2018 @06:40AM (#18468066)
Did you have any problems with copy-paste? For me copy-paste was completely broken.
Re:An Engineer’s Guide to the Docuverse on Monday September 10, 2018 @10:40AM (#17952131)
Yes, for example the Dhall (non-Turing complete) programming language does this: https://github.com/dhall-lang/dhall-lang
Re:Whole House Fan and Evaporative Cooler on Monday July 23, 2018 @08:43AM (#17592304)
> Aside: that LTM article made me think of a complaint of a friend of mine on that the solar panels on his house are almost never at optimal efficiency due to temperature. At which point I asked him if active cooling of solar panels using heat transport + a heat buffer underneath the house + re-using said heat in winter might be a win-win solution for that - he thought it was a good idea but also too ambitious a project for him to undertake.

Yes, this idea has occured to other people. They are called PVT Solar Panels (PVT=Photovoltaic + Thermal).

https://green.blogs.nytimes.com//2008/09/29/waste-not-want-n...

Re:Moving efficiently in the CLI on Saturday January 27, 2018 @05:48AM (#16245709)
You can keep your hands in typing position on the keyboard while performing these operations. Using the arrow keys or backspace means you need to move to another part of the keyboard which interrupts your flow.
Re:Cryptsetup 2.0.0 introduces new on-disk LUKS2 format on Monday December 25, 2017 @12:42PM (#16004947)
Plausible deniability. For example, from the trimmed sector you can inference that the disk is being used.