Readit News logoReadit News
DCoder commented on Is this what enterprise means?   twitter.com/steffoz/statu... · Posted by u/steffoz
noAnswer · 5 years ago
In some parts of the world the PDFs get enriched with standardised XML. https://www.ferd-net.de/standards/what-is-zugferd/what-is-zu... (If you bill a government agency in Germany, the PDF has to contain the data in ZUGFeRD format.)
DCoder · 5 years ago
ZUGFeRD is part of EU's creatively titled eInvoicing [0] project, compatible implementations should exist in other EU countries sooner or later.

[0]: https://ec.europa.eu/cefdigital/wiki/display/CEFDIGITAL/eInv...

DCoder commented on Tell HN: HN Replies Data Security Incident    · Posted by u/simonpure
darekkay · 5 years ago
> have a subdirectory contain the web-accessible files

You can also separate your git repository from the working directory. I have my git repositories at ~/repositories, with a post-receive hook that checks out the working directories at ~/projects and then _actively_ copies only relevant files to ~/html. Basically a "poor man's CI/CD", with the bonus of having to opt-in to publish any files.

DCoder · 5 years ago
You can also tell git that the .git dir is completely separated from the working dir:

    alias dogit='GIT_WORK_TREE=/path/to/src/dir GIT_DIR=/path/to/dotgit/dir git'
    dogit pull remote treeish
---

I set this up as a "poor man's version control" on a large client's server back in 2016-ish. I was lost for words when last year I saw my colleagues still using Ctrl-R to rerun that alias line.

DCoder commented on Free for Developers   free-for.dev/#/... · Posted by u/fs111
ppipada · 5 years ago
Shout out to https://docsify.js.org/#/ on which this site is based. Great tool to get a doc site ready in minimal time. My personal experience with this is also amazing :)
DCoder · 5 years ago
It's mildly amusing to see kudos for a solution that lacks any <noscript> support.
DCoder commented on Chromium cleans up its act and daily DNS root server queries drop by 60B   theregister.com/2021/02/0... · Posted by u/bdcravens
somehnguy · 5 years ago
If that was the goal, it does a pretty poor job. The amount of times I've accidentally Googled things like 'internalserver', 'fileserver:80', or 'dockerhost:8000' over the years is way too high.

And when you do eventually reach any of them via manually prepending 'http://', they make the 'http://' not visible in the bar. What confusing signaling!

Hint for Chrome: if I'm appending a port and the DNS name exists I probably don't want to Google it.

DCoder · 5 years ago
> they make the 'http://' not visible in the bar. What confusing signaling!

In recent versions of Chrome, you can right-click the bar and choose "Always show full URLs" to fix that particular stupidity.

DCoder commented on The unreasonable effectiveness of simple HTML   shkspr.mobi/blog/2021/01/... · Posted by u/edent
analog31 · 5 years ago
I remember learning about HTML for the first time, maybe in Byte Magazine. It was before I actually had a computer with a browser. But the article talked about a benefit of HTML, which was that the tags could be interpreted by custom browsers for accessibility, including for the blind or sight-impaired. It seemed like a pretty cool idea to me.

Later on, when people started treating web design as a general purpose graphical and GUI framework, many of the accessibility benefits probably vanished.

DCoder · 5 years ago
Yeah, nowadays most of the sites are suffering from div-ititis that has no semantics, massive blackholes of JavaScript that have to be loaded and processed before you can even see plain text, and CSS class names that are randomly hashed with each deployment in the name of modularity.

General accessibility be damned.

<noscript> fallback messages be damned. (Except when snitching on your page views to Google Analytics, that's too important to be neglected! I wonder if GA has any default marker to let their customers distinguish these views from normal ones, or if that's still left to each customer to implement manually.)

UI customizations in the form of browser extensions and styles be damned.

Ad blocking be damned.

DCoder commented on The unreasonable effectiveness of simple HTML   shkspr.mobi/blog/2021/01/... · Posted by u/edent
trissylegs · 5 years ago
> Very few people have the skill to turn a div into an effective button, yet over and over I see web sites with rows of buttons which are in fact just divs with javascript behind them.

Gahhh. I use either an <a> or a <button> and put style on it. Has all the same visual appeal of the equivalent div. But it already is a button.

DCoder · 5 years ago
> use either an <a> or a <button>

Generally, it should be noted that an <a> tag is only appropriate if it makes sense to right-click this element and get options to "open in new tab" or "add to bookmarks". All the stupid "buttons" implemented as <a href="#"> + e.preventDefault() need to die.

DCoder commented on Baremetrics required a phone call to cancel   twitter.com/cmdkhalilov/s... · Posted by u/joshxyz
jakelazaroff · 5 years ago
> we ended up finding that we can be critical to Stripe Webhooks processing for folks on the older Stripe API. We literally will take down your invoicing on Stripe when a customer cancels.

What does this even mean? Are you saying that if you remove a customer’s Stripe integration, it prevents them from being paid by their own customers?

DCoder · 5 years ago
I think what they mean is this: if you're dissatisfied with invoice PDFs generated and sent by Stripe, it's fairly common to disable the sending and use an integration [0] to generate/send them out instead. And then if you cancel that integration, oops, your customers no longer get their invoices.

[0]: https://stripe.com/partners/apps-and-extensions/invoicing

DCoder commented on Factorio 1.0   factorio.com/blog/post/ff... · Posted by u/Akronymus
raxxorrax · 6 years ago
You can quickly ruin some hours of programmers if you post the wrong link.

https://regexcrossword.com/

DCoder · 6 years ago
And if you thought that was not challenging enough:

https://rampion.github.io/RegHex/

DCoder commented on Syntax changes from C++11 to C++20   bfilipek.com/2020/08/lamb... · Posted by u/joebaf
doteka · 6 years ago
I don’t know any other language with lambdas which requires me to spell out explicitly which variables it should close over... so you tell me how Java, Scala, Clojure, Kotlin, Python, JavaScript, Rust, Go, C# and tens of others managed this clearly impossible feat of engineering.
DCoder · 6 years ago
> I don’t know any other language with lambdas which requires me to spell out explicitly which variables it should close over

PHP closures have to specify which variables they close over, and whether it's done by-val or by-ref [0].

Nowadays there's also a shorthand single-expression-closure syntax that closes implicitly and by value [1].

[0]: https://www.php.net/manual/en/functions.anonymous.php#exampl...

[1]: https://www.php.net/manual/en/functions.arrow.php

Deleted Comment

u/DCoder

KarmaCake day1260November 2, 2009
About
not here anymore
View Original