Better HN
topnewbestaskshowjobs
Log inSign up

axelf4

50 karma · joined Jun 27, 2016 (10y ago) · 30 submissions

https://axelf.se
Submissions

comment 3y ago · link · parent

One compromise that I can recommend is hosting the Email server yourself for incoming mail, but using an external SMTP relay such as SendGrid or SMTP2GO to send outgoing email. That way you never have to worry about your emails being blocked due to some misconfigured setting. Switching SMTP relay provider is easy so vendor lock-in is no issue.

Also, those services are mostly intended for broadcasting mass spam mails for better or worse, so for personal use their free tiers are almost too good to be true.

comment 3y ago · link · parent

I have written a small reference for this that has served me well: [1].

[1]: https://github.com/axelf4/dotfiles#bash-startup-files

comment 3y ago · link · parent

As my professor said: All good statistics is done before you have looked at the data.

comment 4y ago · link · parent

That just sounds like a table but with extra steps?

comment 4y ago · link · parent

Here is my script gfm-preview [1], which I think is pretty cool since it implements a HTTP server in 50 lines of shell script (ab-)use with netcat. What is does is it starts a HTTP server that serves a rendered preview of a Markdown document using GitHub's API for rendering GitHub Flavoured Markdown. The page will automatically update when the document changes using fswatch and HTTP long polling!

[1]: https://github.com/axelf4/nixos-config/blob/e90e897243e1d135...

comment 4y ago · link · parent

Have you looked at Dhall? I do not think Nix the language would ever be preferable when compared to already existing configuration languages.

comment 4y ago · link · parent

Nah, they definitely use Zig.

comment 5y ago · link · parent

Surely mixing usage of space and parentheses for function application is a bad idea?

comment 5y ago · link · parent

That is not a good comparison. The extra hashes would help China find out about more borderline citizens than it otherwise would have.

comment 5y ago · link · parent

Maybe this video by Veritasium could help: https://www.youtube.com/watch?v=kTXTPe3wahc

comment 5y ago · link · parent

Spotify playlists are great but I would like to be able to shuffle from a combination of them. Playlist folders do not cut it because then all combinations must form a tree. So I made a shell script to create those combined playlists [1]!

[1]: https://github.com/axelf4/nixos-config/blob/da60a70680984769...

comment 5y ago · link · parent

I consider part of the blame to lie with React. The React source code structure is pretty obtuse. Compare that to the Inferno.js source code which is easy to understand and navigate for anyone familiar with how a VDOM library should work.

comment 5y ago · link · parent

Of course, but AFAIU this massively shortens the chain. Newer versions of rustc up the minimum compiler version required for building all the time.

comment 5y ago · link · parent

Nix derivations are also lighter than containers. Just ordinary packages.

comment 5y ago · link · parent

JavaScript Pokémon game: https://pokemon.axelf.nu (https://github.com/axelf4/pokemon)

Subtle WebGL texture artifacts and browser-game microstutters drive me crazy. Any help with that would be much appreciated!

comment 6y ago · link · parent

Gnome is also incredibly slow to allow one to select a particular window when Alt-Tabbing. It is a one second delay every time you want to change window.

comment 6y ago · link · parent

> It's bloat which increases the browser's attack surface.

AFAICT PDF.js is just another JavaScript application and thus as sandboxed as any other website.

18.

Rust-Style Futures in C(axelf4.github.io ↗)

22 points · by axelf4 · 6y ago · 1 comment

comment 6y ago · link · parent

In C89 is there a portable way to figure out the alignment requirement for a struct, to be able to, say, store it after the NUL terminator in the same allocation as a C string?

comment 7y ago · link · parent

> you're going to hit some bumps if you haul an old code out of the vault and try to fire it up on a new system.

Most package managers have lockfiles that allow for some degree of determinism. Of course if a library introduces breaking changes you're going to have to rewrite, but only when explicitly upgrading the dependency.

comment 7y ago · link · parent

> instead of the obvious C(++)/Java-like _ptr, ref, * or & notation/convention

That would be very misleading since Box represents a heap-allocated owned value

comment 7y ago · link · parent

Gimp has had a single-window layout for a long time now.

comment 7y ago · link · parent

While I do have an opinion on the syntax I could never amass the time necessary to weigh the positives/negatives of semantics issues. I reckon that's the reality for many.

comment 7y ago · link · parent

IIRC there is a good article on that topic in Vimways 2018.

comment 7y ago · link · parent

Hey! No need to play gatekeeper. FWIW, when using tmux, a scrollback of 0 is more than plenty.

comment 9y ago · link · parent

Being a text format means that you can use version control effectively. Latexdiff can generate diffs between versions. Wouldn't call it better, just different.

comment 9y ago · link · parent

Shit, the new ones look bad. It's almost as if they were designed by Samsung.

comment 10y ago · link · parent

I'm going with 'workflaw' for my new build system.