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 SFTPGo: A Full Featured SFTP Server in Go
Ah Thx! Should have checked the code myself. The library looks good. Not too much documentation (https://github.com/pkg/sftp/issues/267, https://github.com/pkg/sftp/issues/247), but straight forward and battle tested.
heinrichhartman··on SFTPGo: A Full Featured SFTP Server in Go
Can this project be used as a library and integrated into an existing program?

I am asking, b/c I am currently working on a little document management system for home-use. It looks like the only sane way to integrate with document scanners is (S)FTP upload or Email (SMPT). I have tried to use off-the-shelf FTP servers for this and inotify to get notified of new uploads. The the solutions work OK, but are hard to setup and rather brittle (and limited to Linux).

Go seems to be the ideal language for this project, because its concurrency model and the ease of distribution (as single binary files).

- Has anyone here experience with building systems like this (integrating via FTP/SMTP)?

- Any recommendations for languages and libraries?

heinrichhartman··on GitHub is down
Now that you solved your problem. Let me guess your next question:

I have two git repositories which somehow got into an inconsistent state: How can I reconcile changes in both repositories and resolve conflicts between mutable-metadata (branches, tags) in a sane way?

heinrichhartman··on The JSON Meta Application Protocol (JMAP)
very cool!
heinrichhartman··on Do-nothing scripting: the key to gradual automation
Very nice idea, Dan! This reminds me of the power of checklists that has been discussed here a few times: Simple but highly effective.

It allows for a pretty natural transition:

- (Markdown) Manual

- Do-nothing-script (printing out the manual in steps)

- Partial automation

- Full automation

heinrichhartman··on The JSON Meta Application Protocol (JMAP)
LOL! DNS, HTTP, XML, Linux, C, are all terrible if you look close enough. So ... should we ditch all of this?

Wide adoption and popularity trumps "being wrong" everyday.

heinrichhartman··on The JSON Meta Application Protocol (JMAP)
Have you ever seen s-expressions being used as data exchange format in the wild? (outside of the LISP/emacs world)

Not sure there is a decent standard spec and a good Java (say) parser around. Is there?

heinrichhartman··on Think in Math, Write in Code
> Is there a similar programming language that makes mathematicians feel at home?

The problem is not writing stuff down. The problem is reasoning about what you have written down. With popular languages it's really hard, to say what a line of code does. It depends on so many things (global state, scoping, local state), that you have to spell out. Google "Semantics of Programming Languages" to get an idea, what's involved with formally reasoning about code.

To have a chance to do manipulations by hand, you have to give up, at least:

- Mutable State - Side-effects (I/O)

(pure) Scheme and Haskell come into mind as contenders.

heinrichhartman··on Think in Math, Write in Code
I spent more than 10years in Academia doing math. One thing I loved about this time, is that I was able to sit down anywhere and pound at my current research problems, without having any additional notes or books with me. Just pen and paper.

Formal reasoning feels very empowering.

You write down assumptions, apply transformation, arrive at conclusion. Proof one Lemma at a time. Work through some examples. Eventually you arrive at a deeper understanding of the problem, and maybe even a solution.

When I started working in Software, I largely lost the ability to reason formally about the thing I am doing. Also I need manuals and computers around to make progress. This still frustrates me today. And I have tried hard to reason formally about code, to gain back this experience:

- Doing Lambda Calculus by hand is possible.

- LISP is already tedious (scoping rules/mutable state!).

- Register machines are a nightmare to do by hand (See Knuth's books)

- The semantics of C are nearly impossible to write down by hand, and work with.

I am excited about this blog post, because it shows a new way of approaching the situation. Model the problem domain with mathematical language, and leverage the Lemmas/Theorems in your implementation.

Some, food for thought. Thanks Justin!

heinrichhartman··on Think in Math, Write in Code
Oftentimes people make the mistake, of jumping directly to the formulas when reading mathematical texts. You will not have enough context to parse them!

Instead, think of a formula like a very dense sentence in a novel.

The protagonists are usually introduced in the paragraph before. You are assumed to know their names to make sense of the formula.

heinrichhartman··on Jeison – An Emacs library for declarative JSON parsing
This is only because you like to talk to other people. Once you settle for a remote life-style, where you communicate through Slack and GitHub, this is problem goes away. #sarcasm #irony :)
heinrichhartman··on Powerlisp: Common Lisp tool for automating tasks for Unix power-users
Which operating systems are supported? Don't see that in the Readme.
heinrichhartman··on So you think you know C? (2016)
There is a difference between "I don't know" and "undefined behaviour".

I know that most of this stuff is undefined according to the spec. But I (might) also know what my particular GCC version does in these cases.

What I know for sure, that those programs do output something, and it's not "I don't know" (the string) ; )

What I don't know, is what level of sophistication the author assumes.

heinrichhartman··on Partnering with publishers for a better journalism experience
I welcome this effort! Enabling alternative revenue streams for web content will be critical to make the place less abusive.

Unfortunately, the big successful players seem to make pretty good $$ by selling customer data, so they have little incentive to change this.

Mozilla/Firefox is in a unique position to launch an effort like this, since it controls a decent browsing platform with a significant user base.

I'll sign up the moment this becomes available in the EU.

heinrichhartman··on YouTube's ban on “hacking techniques” threatens to shut down infosec YouTube
The most upsetting thing for me is, that YT acts in both legislative and executive functions here.

It's one thing to make a rule, to ban "hacking techniques".

But there should be an independent party who get's to decide whether a particular video is about "hacking techniques" or not.

> Is teaching kids how to use wireshark(1) already hacking?

> How about the Chrome dev-console?

The current state of things, where:

a) a proprietary algorithm decides if a rule is violated or not and

b) you have no way to appeal decisions taken by YT,

is appalling.

Update: Well, there appears to be a YT-internal process to appeal censoring decisions. But who knows how well that works. In the past, appealing to copyright take-downs was practically impossible.

heinrichhartman··on Show HN: YouTube-DL GUI Powered by Electron
This is not just about the content creators. Operating YT as a platform is far from cheap. I bet YT is most concerned about their own bottom-line.
heinrichhartman··on Show HN: YouTube-DL GUI Powered by Electron
I predict, that once youtube-dl becomes easy-enough to use for the masses, YT will shut it down in one way or the other.

The user-facing business model of YT is quite simple:

> You get to see great variety of videos, but have to watch ads every now and then.

So from their perspective, youtube-dl allows you to steal the content w/o giving anything back to either YT or the creator.

To make this fair/sustainable youtube-dl user would either (A) have to tolerate advertisements in the downloaded video, or (B) pay a fee for each downloaded video.

I'd prefer for youtube-dl to stays small enough, that we can continue to freeload a little longer ; )

heinrichhartman··on JSON Resume – 5th Birthday and New Features
Aside:

> resume export resume.pdf (Currently broken, help needed)

https://jsonresume.org/getting-started/

Any news here?

Still puzzling to me, how hard it is to generate PDF documents. I assume this is not using Latex, since that would be a gigantic dependency to pull in. What is/was jsonresume using? Why did it break?

PS: Also pdf export on wikipedia has been broken for years now. Seems to be a hard problem.

Any information about light-weight pdf generators that work and produce decent pdfs documents would be appreciated.

heinrichhartman··on CERN ditching Microsoft software, angry over price increases
I don't click on those links anymore. Heading straight to the comments to get a TL;DR.
heinrichhartman··on The new Dropbox
Same here cancelled after they dropped ZFS support.
heinrichhartman··on How to Automatically Backup a Linux VPS to a Separate Cloud Storage Service
Does anyone here have experience with backing up ZFS pools in cloud storage like S3, B2, ...?

I have a bunch of snapshots (https://github.com/jakelee8/zfs-auto-snapshot) that I want to backup along with the active tree. But don't want to keep extra copies of the data.

- Do these services offer snapshotting? ...that can be automated?

- Is there zfs integration, e.g `zpool send | b2 receive`?

heinrichhartman··on Mozilla will reportedly launch a paid version of Firefox this fall
It's very unlikely that this will happen. Payed subscriptions to news-websites/magazines are also not advertising free. When you have demonstrated you are willing to pay money for a service, you are likely to also spent money on other goods. This only makes you more attractive as an advertising target.

Most likely we will see premium features like: - premium color themes - more cloud storage for settings and extensions - analytics on your browsing data (after you hand the data over to them) (??) - more customer support (???)

heinrichhartman··on Joyent Public Cloud EOL
SmartOS is an Illumos distribution. Notable others include: OmniOS, OpenIndiana, Nexcenta. https://en.wikipedia.org/wiki/Comparison_of_OpenSolaris_dist...
heinrichhartman··on How to Draw Animals (1930)
Here are my personal top 5 drawings for lazy daddies:

https://twitter.com/heinrichhartman/status/11365667071479439...

heinrichhartman··on Google to restrict modern ad blocking Chrome extensions to enterprise users
I don't get it. Is Chrome not open-source? Can't we create a fork that keeps that API?
heinrichhartman··on The Art of Command Line (2015)
How large is it? Like 40p when you put it on a printer?

Let me help you with this:

    man -t bash > man.ps && lpr man.ps
Then, grab a coffee, sit in the sun and spent some quality time with your tools. :)
heinrichhartman··on I don't know how CPUs work so I simulated one in code
yes, that's notably the only publication by Microsoft Press, I can recommend ;)
heinrichhartman··on Linux distros without systemd
I found the man pages to be a pretty good read.

Use `man -t systemctl` to produce a pdf version.

There are a couple of files you want to read, e.g. systemd.service, systemd.unit, systemd, deamon etc.

But those are linked at the `SEE ALSO` section.

heinrichhartman··on Derive Yourself a Kalman Filter
If you enjoyed this, you might also like this article from my blog:

http://heinrichhartmann.com/blog/2014/12/11/Generative-Model...

This is a study of generating time series/stochastic processes. The estimators for the parameters lead straight up to Kalman filters. The state space models are taken from the Kalman setup. This was the first time I understood how Kalman filters come about. Its really a three step process:

1. Stationary processes --> Classical parameter estimation.

2. Discrete state space --> Markov models

3. Continues state space --> Kalman filters.

heinrichhartman··on Internet Explorer Browser Collection
I have good memories using IE3,4,5. With IE6 the UI took a turn for the worse. The look of IE7 freaks me out.

Edge just looks like Chrome, which is acceptable to me.

← PreviousPage 10 of 15Next →