Readit News logoReadit News
fredguth commented on Ask HN: What is nowadays (opensource) way of converting HTML to PDF?    · Posted by u/hhthrowaway1230
fredguth · 5 months ago
I would use pandoc and convert to pdf using typst:

```

pandoc input.html -t typst -o output.typ

typst compile output.typ output.pdf

```

fredguth commented on Typst: A Possible LaTeX Replacement   lwn.net/Articles/1037577/... · Posted by u/pykello
throwaway_7274 · 5 months ago
Yep, I'm a CS researcher in a top-3 department. (Hate to be all credentialist like that, but I'm guessing it does mean something to this audience.)

I think a lot of the reason is that, ok, LaTeX is extremely complicated. We all know this. Its partisans tend to believe that this is because typesetting is a hard problem. Typesetting is a hard problem! We know this, too. But I think that a substantial fraction of the complexity of LaTeX is accidental complexity stemming, ultimately, from the inherently loosey-goosey nature of the system.

See, there is no real abstraction in TeX. There are no real mechanisms for encapsulation/information hiding/whatever. It's all just characters that eat characters and turn into other characters. Anything can do anything. Anything can be anything. As a result, the whole "theory" of what a TeX program "is" (like in the sense that Peter Naur used that word?) is conventional.

This means that even to reuse other people's code, you have to imbibe decades of convention that's maybe semi-documented, maybe folkloric, or maybe perfectly sound but requires you to read a 230-page manual. I can only speak for myself, but for me, it's no way to live.

Now, again, TeX-lovers tend to claim that its high degree of loosey-gooseyness is necessary, that it's what makes TeX "powerful." I don't know, that sounds to me like the same old "you can't handle writing assembly" story. Sure I can. I'd just rather not if I can help it.

Maybe it's the PL person in me.

fredguth · 5 months ago
I totally agree. I have written in LaTeX extensively and Typst is a game changer and a life saver. The community is also a plus. I love it and I will never go back to TeX.
fredguth commented on SQL needed structure   scattered-thoughts.net/wr... · Posted by u/todsacerdoti
tucnak · 6 months ago
> All that's left to do now is... the same joins, but inside the backend web server. Because we have to re-assemble these flat outputs into the structure of the page.

This is NOT the case with modern SQL, as it supports JSON. The typical Postgres use-case would be to produce denormalised views for the specific relationships and/or aggregates in JSON form. LATERAL, the correlated sub-query, is really convenient in avoiding double-counting. The rest of the article deals with object-mapping, which is really a poor man's VIEW. Time and time again, software engineers reinvent the data-access wheel out of ignorance to database capabilities.

fredguth · 6 months ago
Today I Learned the power of LATERALs... thanks. :-)
fredguth commented on Linear sent me down a local-first rabbit hole   bytemash.net/posts/i-went... · Posted by u/jcusch
nchmy · 7 months ago
Local first is fantastic. But something that I can't figure out is why the OG of local first, RxDB, never gets any love.

As far as I can tell, it's VASTLY more capable than all of these new options. It has full-text search, all sorts of query optimizations, different storage backends in both the browser and server, and more.

fredguth · 7 months ago
RxDB is the OG? I thought it was PouchDB.
fredguth commented on Shiny for Python 1.0   shiny.posit.co/blog/posts... · Posted by u/fredguth
fredguth · 2 years ago
Great news!! Shiny for Python 1.0 is now available! As an enthusiast, I've been eagerly anticipating this release. Congratulations to the Posit team, who, with Quarto, Shiny, and so many other open-source projects, are bringing superpowers to a whole new kind of user. Shiny's ease of use is a bliss for a lot of new coders, including those who don't see themselves as traditional programmers.

Check it out: [Shiny for Python 1.0 Announcement](https://shiny.posit.co/blog/posts/shiny-python-1.0/)

Happy coding!

fredguth commented on Aphantasia: I can not picture things in my mind   theguardian.com/wellness/... · Posted by u/franze
mmh0000 · 2 years ago
You’ve just made me realize that my brain is (more) broken than I thought it was.

This explains why I lose every argument with my wife about things that happened in the past.

fredguth · 2 years ago
Oh no… that is just every marriage.
fredguth commented on Brutalist Churches   dezeen.com/2024/04/24/sac... · Posted by u/surprisetalk
fredguth · 2 years ago
I would add Catedral Metropolitana do Rio de Janeiro.
fredguth commented on Building an open data pipeline in 2024   blog.twingdata.com/p/buil... · Posted by u/dangoldin
bradford · 2 years ago
> I don't think this is a particularly insightful article.

Data engineering can be lonely. I like seeing the approach that others are taking, and this article gives me a good idea of the implementation stack.

fredguth · 2 years ago
Same here. I just wished OP pointed to an example repo with a minimum working example.
fredguth commented on Friends don't let friends export to CSV   kaveland.no/friends-dont-... · Posted by u/lervag
VMG · 2 years ago
FTA:

* What does missing data look like? The empty string, NaN, 0, 1/1-1970, null, nil, NULL, \0?

* What date format will you need to parse? What does 5/5/12 mean?

* How multiline data has been written? Does it use quotation marks, properly escape those inside multiline strings, or maybe it just expects you to count the delimiter and by the way can delimiters occur inside bare strings?

And let me add my own question here:

what is the actual delimiter? Do you support `,`, `;` and `\t`?

fredguth · 2 years ago
What is the encoding of the text file? UTF8, windows-1252?

What is the decimal delimiter “.”, “,”?

Most csv users don’t even know they have to be aware of all of these differences.

u/fredguth

KarmaCake day255May 10, 2012View Original