Better HN
topnewbestaskshowjobs
Log inSign up

begriffs

3,039 karma · joined Aug 10, 2011 (15y ago) · 383 submissions

Submissions

comment 8y ago · link · parent

OpenBSD

https://www.openbsd.org/goals.html

92.

Actually, DMARC works fine with mailing lists(begriffs.com ↗)

1 points · by begriffs · 8y ago · discuss

comment 8y ago · link · parent

Oh, well of course it's because:

"From opening the heavy lid to placing your phone in the cradle, each analog movement becomes an intentional affirmation of the digital sacrifice you are about to make. To complete the gesture, close the box and encapsulate the device."

You can't just turn your phone off or get a dumb phone, you need a ritualized sarcophagus to bolster your decaying willpower.

comment 8y ago · link · parent

I wasn't going to jump into this because arguing tabs vs spaces feels like a parody at this point, but I think you're correct.

I started using spaces for indentation just because I worked with people who did that. I kind of forgot I was even doing it because vim's auto-indent did a lot of the work, but after some time I realized spaces don't make sense.

The familiar arguments for tabs:

* Clean mapping between the concept of scope depth to a single character * Configurable display of indentation width, everyone can see what they want

Tabs have problems only when people use them for alignment, which breaks when tabwidth is changed.

Actually can someone try to change my mind? I know tabs-vs-spaces is an eternal war, yet I feel the problem is completely solved, hence I must be ignorant of the counter arguments.

(The only thing more logical than using tabs might be using no whitespace at all and having the editor determine presentation. But that wouldn't work well with line-oriented tools.)

comment 8y ago · link · parent

> The article describes a lot about the workflow, but only two sentences about the advantages

The article is a good complement to one that I wrote about specifically the advantages - https://begriffs.com/posts/2018-06-05-mailing-list-vs-github...

comment 8y ago · link · parent

> but perhaps not at the expense of keeping business logic in separate places

Perhaps the answer is to consolidate business logic in the database with constraints. This also protects data from manipulation outside of an app, like with scripts or ETL.

Putting more logic in the db often results in terse error messages though, so the app needs to deal with that and make them nicer for the end user. I wrote about one possible approach here - https://begriffs.com/posts/2017-10-21-sql-domain-integrity.h...

> weak version control/deploy solutions

There are solutions that allow you to store migrations in version control, apply them to different database targets, and run consistency checks. For instance http://sqitch.org/ but maybe you're familiar with it already and regard it as one of the weak tools. Thought I'd point it out though.

> a new programming language to the stack

plpgsql is somewhat gnarly, but it is well adapted for the database. You know what it's going to do, compared with managing mappings from some other language. I never tried LINQ though so maybe the mapping would be more pleasant than I'm imagining.

comment 8y ago · link · parent

Why has this become so complicated? I use Newsboat https://newsboat.org/ to read RSS, and follow about 100 very interesting authors that way.

I just put the RSS urls into a text file and the self-contained 1.7mb program does the rest. Somehow it gets by without using a combination of Electron, Mongo, Algolia, Redis, machine learning (!), and Sendgrid.

Maybe the comparison with a text-based RSS reader isn't fair and Winds does some crazy cool stuff, but it's hard to see what that is exactly.

comment 8y ago · link · parent

> Now go build something. Want to do something with chat? Sure, go read up on IRC and XMPP and Signal and Wire and all that.

Totally. I guess I should have mentioned that for me, at least, the books will be paired with hands-on hacking.

> The idea of reading 110+ books first in the hope you'll then start your epic hack sounds to me like epic procrastination.

Not planning to read book after book by the fire while the computer collects dust. :) For instance, I'm reading SQL books now and have done experiments that I then wrote about. Like transaction isolation levels, deferrable constraints, types/domains.

Lots of fun stuff to build. I find that the books help to give me a broader idea of the possibilities, that's all.

comment 8y ago · link · parent

That's really interesting. I used Delphi back in the day to build little Windows GUI programs for personal projects, and it seemed fine. Subsequently haven't thought of Pascal much, so I guess I simply overlooked it while making The List. :)

Am I in a bubble, or is it true that C has become much more popular than Pascal? If so, why did it get popular?

comment 8y ago · link · parent

(Author here) sorry, I should work on my tone. Sometimes it feels fun to write strong statements, knowing in your own mind that you're just trying them on. Then when other people read the stuff I realize it doesn't sound daring, it just sounds arrogant. Realized this a few days ago when some podcasters covered an OpenBSD article I wrote, and when they read some of my statements out loud it sort of made me wince.

comment 8y ago · link · parent

You're right, I made a mistake. Just reviewed the table of contents on Amazon and it looks pretty short, and not particularly theoretical. Also poorly reviewed. I don't remember how it got on my list but I'm removing it.

comment 8y ago · link · parent

I think the book you're talking about is Axler's "Linear Algebra Done Right." I worked through the problems in this book with some friends, and it is a very good presentation.

After doing that book I wanted to see what other books were out there, which ones were the good ones, and sort of classify them. I came up with this list: https://begriffs.com/posts/2016-07-24-best-linear-algebra-bo...

I classify the books as Generalist (like Axler's), Theoretical (starting from e.g. modules rather than vector spaces), Numerical (matrix normal forms and algorithms), Practice (books full of problems), and a few other categories.

comment 9y ago · link · parent

You can jump to it by typing /EXAMPLES<enter>

Or if that seems like a lot of keystrokes, /EX<enter> will probably jump to what you want most of the time too.

comment 9y ago · link · parent

That's a good distinction. Yeah, GNU.

comment 9y ago · link · parent

When people think of manpages, they tend to think of Linux. At least that's what I thought of, until a few months ago when I discovered OpenBSD. Their manual is concise and coherent, unlike the rambling hodgepodge on Linux.

Of course it's always nice to have a bunch of curated examples like TLDR or "bro" pages, but just wanted to point out that the manpage situation isn't universally grim.

106.

Ultimate Guide to PostgreSQL Constraints(begriffs.com ↗)

2 points · by begriffs · 9y ago · 2 comments

107.

PostgreSQL Domain Integrity in Depth(begriffs.com ↗)

5 points · by begriffs · 9y ago · discuss

108.

Deferrable SQL Constraints in Depth(begriffs.com ↗)

5 points · by begriffs · 9y ago · discuss

comment 9y ago · link · parent

Fair point about the docs, I've been putting reference information in them over time, but it could use more guided tutorials.

Last week I began working to improve that, by writing a series of tutorials. Here's the first: https://postgrest.com/en/v4.1/tutorials/tut0.html

More to come, including tutorials about row-level security and authentication.

comment 9y ago · link · parent

Many views are "auto updatable" in Postgres, meaning the db knows how to seamlessly pass updates down to the underlying relation. https://www.postgresql.org/docs/current/static/rules-views.h...

For more updates to more complicated views (such as some joins), you can use a trigger as also described in the linked docs above.

comment 9y ago · link · parent

The link Ruslan shared explains how to use row level security with application users as opposed to db users.

Basically PostgREST translates cryptographically signed JWT claims from the client request into local SQL variables accessible by postgresql's "current_setting" function. The additional claims can identify the user beyond their db role. They can specify, for instance, the user's email address.

Row level security policies can use current_setting to refer to the extra claims. So multiple users can share a db role and connection pooling works fine.

112.

The Design and Use of QuickCheck(begriffs.com ↗)

147 points · by begriffs · 9y ago · 36 comments

comment 9y ago · link · parent

For GnuPG I use this hardware: https://begriffs.com/posts/2017-05-17-linux-workstation-guid...

For U2A two-factor auth I use a little Yubikey that is dedicated just for that and fits comfortably on a keychain. https://www.yubico.com/products/yubikey-hardware/fido-u2f-se...

114.

Hardcore Linux Workstation Guide(begriffs.com ↗)

4 points · by begriffs · 9y ago · discuss

115.

Ultra-Geek Linux Workstation Guide(begriffs.com ↗)

3 points · by begriffs · 9y ago · 2 comments

116.

Great Books for Deep Technical Knowledge(begriffs.com ↗)

2 points · by begriffs · 9y ago · discuss

12345
13