HNHacker News
TopNewBestAskShowJobs

heinrichhartman

2,496 karma · joined September 28, 2015

Blog: HeinrichHartmann.com Keybase: https://keybase.io/hartmann Twitter: @HeinrichHartman http://twitter.com/Heinrichhartman GitHub: https://github.com/HeinrichHartmann/
submissionscomments
heinrichhartman··on Babashka – A Clojure for the grey areas of Bash
As to parsing `ls`:

Bash scripting is incredibly powerful but also terribly broken with horrible edge cases. E.g. if syntax, bash quoting, -print0, parsing strings with regexps... It's near impossible to build sound applications with bash.

Parsing output of almost any program breaks at _some_ point: https://dwheeler.com/essays/fixing-unix-linux-filenames.html

You need to know what data you are dealing with when writing shell scripts. bb does not aim to fix that. Just gradually improve.

heinrichhartman··on Ask HN: What Skills to Acquire in 2020?
deadlift's are quite dangerous for the untrained.

Start with "Fix Rounded Shoulders" and "Fix Anterior Pelvic Tilt" if you have not already done so. Plenty of great advice on YouTube on those topics.

heinrichhartman··on Show HN: SkyAlt – Accessible database and analytics
Any plans to make this available on OSX?

Also: Thanks for making this. Looks great!

heinrichhartman··on Coronavirus Forces World’s Largest Work-from-Home Experiment
But are they enabled and working in the 99.5% house-holds, who do not have a professional Sys-Admin at home?
heinrichhartman··on How to build a search engine with common Unix tools (2018) [pdf]
Thanks for this. I did not know about Dask! wow this looks great. Love the web-based task visualizations: https://distributed.dask.org/en/latest/web.html
heinrichhartman··on Scientists claim to find HIV virus-like insertions in the 2019-nCov [pdf]
2019-nCov is "The novel coronavirus (2019-nCoV), informally known as the Wuhan coronavirus."

source: https://en.wikipedia.org/wiki/Novel_coronavirus_(2019-nCoV)

heinrichhartman··on How to build a search engine with common Unix tools (2018) [pdf]
yeah, I should have made that more clar: I was talking about the sed expression on p17. It looks for "--" in stdin. This could alsp be a word. I realize now that the first tr before removes all non a-zA-Z characters, so in this case it should not be an issue.

However intermixing text with separators is not trivial. There are reasons we use JSON/XML for exchanging structured data.

heinrichhartman··on How to build a search engine with common Unix tools (2018) [pdf]
Those methods were always appealing to me, and I tried to bild some home use applications with it (document management, even some bash cgi scripts) but they fall over quite soon:

* How do you deal with words like "---" in your text that look like the match separator of grep?

* What if your filenames contain spaces?

* Are the sed/awk/perl one liners really all that readable and correct?

* How to catch and report failure conditions ... in pipe steps?

This stuff is great for interactive use and one-off ETL, not for applications.

Not sure what real alternatives are that give you:

- parallel execution

- seamless composition (like |)

- object passing not byte streams

- Quick to write.

Most of the time I switch to Python for this, but it does not give you sane parallelity. Sure you can do this with Java + Akka, but this takes days to build out...

Any recommendations?

heinrichhartman··on Being a Noob
Well, first of all, he created this whole site. This would be enough for me to be of interest.

Also I enjoy his books and essays, in particular the ones about LISP.

I don't know about his financial situation. And frankly I don't care.

heinrichhartman··on Off-Facebook activity
What is this? I only get a login prompt. I don't have a fb account.

Would s/o mind explaining what this is all about.

heinrichhartman··on Being a Noob
I don't mind them at all. If Paul writes anything, I want to know about it. So please upvote so it gets to my attention.

Also note that Pauls blog is blazingly fast and does not have ADs/Cookie Conent/Tracking madness. I don't click Medium links anymore b/c all that bloat + crap. With blogs like this, I am back to HN in less than 5 seconds if I don't like the content.

heinrichhartman··on What’s wrong with computational notebooks?
I break long running data imports out into seperate Notebooks or .py files, and persist the results.

Always restart&re-run for usable results.

heinrichhartman··on Show HN: Userbase – Add user accounts and persistence to your static site
gotcha! Thx.
heinrichhartman··on Show HN: Userbase – Add user accounts and persistence to your static site
Congrats! This looks like a really nice service. Thanks for making this!

I am not a front-end preson, but I run a static Jekyll blog hosted on GitHub. I don't want to miss the zero maintenance (!) ease of deployment and network-performance of the GitHub CDN, but I have been missing some dynamic features. Most notably:

1. A view counter per page

2. Comments

3. Signup for Newsletter Form

Since the GDPR landed, I have removed my Google Analytics and Disqus plugins. And I am happy with that. No reason to leak PII to third parties, that I can't trust anymore.

Is that a use case you want to be supporting on your platform? Looks like, this should not be hard to build with your SDK.

Best regards, Heinrich

heinrichhartman··on Tricks to start working despite not feeling like it
In 2014, I ran 5km every morning. 356 days. I hated every single one of these runs. I did get better at it, but I did not end up enjoying it. Certainly was never "feeling amazing".

Eventually dropped the habbit. Now spending more time in the Gym and on the Bike.

heinrichhartman··on How to start a blog using Hugo
Off-topic: Any advise on how to migrate a Jekyll blog to Hugo?

Is it practical to keep the rendered HTML as static pages, and just use hugo/markdown for new posts?

Migrating the markdown files to hugo looks like a pain. Header files need to be migrated. Also jekyll plugins will obviously not work.

Might be better to just leave the old stuff as-is...

heinrichhartman··on Category Theory for Programmers (2014) [pdf]
Yeah exactly. I am interested in practical applications for programmers.

I know a thing or two about the prevalance of categories in Mathematics (https://arxiv.org/abs/1012.3121).

I heared many people talk about Haskell, Monads and Types <=> Proof duality, but I never heard anyone saying: "I applied the Yoneda Lemma to build this API.", or "I read about Category Theory and now $CONCEPT_XYZ started making sense to me."

heinrichhartman··on Category Theory for Programmers (2014) [pdf]
Question to all CS majors, that invested in learning Category Theory:

Did you have any concrete take aways from learning it?

( I have a math background, and struggle to find something concrete. Maybe I am just blind. )

heinrichhartman··on Asciinema – Record and share terminal sessions
Has anyone experiences with asciicast2gif?

On the surface this looks just like what's needed to make this work for me: I like the recording tools, but don't want to be forced to embed a player from a third party service.

Looks like asciinema2gif relies on PhantomJs which brings withit an entire browser and is also no longer maintained. This looks very bloaty for a tool that should convert terminal input to a gif file.

Is it working relieably and reasonably fast?

heinrichhartman··on Why Kids Love Garbage Trucks
My girl was 9months when sh started acrively pushing for bracelets, fancy hats, etc. I took her to a bike shop, an she immediately went for the pink Helmet with stars.

We dressed her in neutral cloths (second hand), we dont have a TV. Her mother does not wear juwlery or makeup. To us this appears innate.

heinrichhartman··on Elementary OS 5.1 Hera
The official name is "Pop!_OS" [1,2].

While I have sympathies for System76 and Debian, there is no way I am going to install an OS with this name.

- How am I supposed to pronounce this? pop? popos? pop-OS? What should I do with the special characters?

- What happens if I accidentally paste this into the shell?

- What associations should the name "Pop!_OS" have? Appart from the english "pop open" something, in German there is: "Popo" -> Childs word for "bum", "poppen" -> "to hump". Both not exactly favorable.

Also, who comes up with names like this? Have you talked to any marketing person to this before deciding on a name. If you want professionals to put this on their machines, better make sure it sounds vaguely like something you might be able to put trust into.

[1] https://system76.com/pop

[2] https://en.wikipedia.org/wiki/System76#Pop.21_OS

heinrichhartman··on Elementary OS 5.1 Hera
Installed Elementary on my Dad's Laptop last week. He is 75 now, and got immediately productive with it, using Firefox for Email and Banking.

His Windows machines ALWAYS clogged up with Spy and Malware after a few months. The last time, the suspend function broke and shut-down the PC immediately, instead of suspending it. Reboot took 2minutes+ for _some_ reason.

Contrast this to the Mac Laptop of my mother which is fast, and clean after 5y+ of using it.

Looks like, Windows is untenable for the less computer literate at this point. Too easy to mess up the system.

I have high hopes that Elementary/Linux will stay fast and clean for a while. The old show-stoppers: Installation, Hardware Support and Usability are all working smoothly so far.

heinrichhartman··on How to fight back against Google AMP as a web user and a web developer
I think DDG hit a sweet spot here by relying on Advertizing, BUT not personalizing ads and search results:

* ADs are acceptable to me. I just don't want creepy ads that follow me around. And data about my browsing behavior being traded in Ad networks.

* Personalize Search Results drive society appart, and lead to radicalization. Not a fan.

heinrichhartman··on Django 3
nothing significant changed.
heinrichhartman··on RoughViz: JS library for creating sketchy/hand-drawn style charts in the browser
How about a pencil and ink? Then scan it in, and clean it up.
heinrichhartman··on How to (not) have sex in the 600s
Exactly. It's important to distinguish those two questions:

A. Does a creator exist?

B. If so, would it care about where we put our sexual organs?

I see those often conflated: "There can't be something from nothing, so the universe must have been created, so the Bible must be true!" -- Eh. WAT?

heinrichhartman··on How to (not) have sex in the 600s
Well, I did not think this would be a controversial topic, amongst the HN community. But apparently I have struck a nerve, getting replies like this and downvotes.

What I want to say is this:

- Christianity makes very strong claims about moral and is very prescriptive about human behaviour, esp. around sexuality.

- There is extraordinary little evidence that support any of their claims.

This is quite a dissonance, no?

heinrichhartman··on Homology
Homology (and Cohomology) are one of the key methodical innovations in pure Mathematics in the 20th century. It started as the topological concept described in the article, but the core idas apply much more general. Todays: Algebraic Geometry, Number Theory, Category Theory, Singularity Theory, String Theory, etc. are full of "cohomology". There are thousands of different flavours in use, that measure different properties of "spaces" of interest.

Much of category theory was initially created to deal with "complexes of abelian objects" that are used to define cohomology theories.

Working with cohomology was my bread and butter, when working as a mathematician. I always hoped to apply sone idas to Computer Science as well, when I entered the field, but I did not find any sane ways to make use of that "technology". E.g. homology of graphs is pretty boring, since they are only 1dimensional. Is anyone aware of any CS applications of Homology?

heinrichhartman··on Mirantis acquires Docker Enterprise and Docker raises $35M
Most likely, custom installed libraries and tools (./configure; make; make install), that were never packaged. And a package manager, that can't even tell you if any of the installed files were changed, after they were installed.

Just a guess...

heinrichhartman··on Mirantis acquires Docker Enterprise and Docker raises $35M
> Docker really doesn't help with application packaging

It does. You can do crazy shit like this with Docker containers:

    thinking about the time we created docker at work in 2009: 
    nobody could remake our centos4 build machine for our C++ code
    so we shut it down, imaged the file system into a .tar.gz, and 
    made our makefiles transparently extract it & build via chroot. 
    so absolutely fucking cursed -- @stdlib 
https://twitter.com/stdlib/status/1192461409549987841

It's essentially still exactly what docker allows you to do:

    tar-up your whole f'ing disk, and run it in a chroot somewhere else.
Try doing something like this with yum. Good luck.

Of course it's horrible. But now, you can get away with it.

← PreviousPage 8 of 15Next →