HN user

notpeter

266 karma

twitter.com/notpeter or github.com/notpeter

[ my public key: https://keybase.io/notpeter; my proof: https://keybase.io/notpeter/sigs/2LlFlnqR6PtUrY8glBnjFgwjFeA0CYIOpn1o-7f3fN4 ]

Posts3
Comments73
View on HN

1. You can specify your terminal font via terminal.font_family in zed settings.json

2. Not sure.

3. For most languages, the default is to use prettier for formatting. You can disable `format_on_save` globally, per-language and per project depending on your needs. If you ever need to save without triggering format ("workspace: save without formatting").

Prettier is /opinionated/ -- and its default is `singleQuote` = false which can be quite jarring if unexpected. Prettier will look for and respect various configuration files (.prettierrc, .editorconfig, via package.json, etc) so projects can set their own defaults (e.g. `singleQuote = true`). Zed can also be configured to further override prettier config zed settings, but I usually find that's more trouble than it's worth.

If you have another formatter you prefer (a language server or an external cli that will format files piped to stdin) you can easily have zed use those instead. Note, you can always manually reformat with `editor: format` and leave `format_on_save` off by default if that's more your code style.

- https://zed.dev/docs/configuring-zed#terminal-font-family

- https://zed.dev/docs/configuring-zed#format-on-save

- https://prettier.io/docs/configuration

- https://zed.dev/docs/languages/yaml#prettier-formatting

- https://zed.dev/docs/configuring-zed#formatter

This was the question I was going to ask! I've recently been diving into Lua 5.x internals and have been extremely impressed with Lua's register-based bytecode implementation. Lua has a stable byte code interface between patch releases (5.4.0 -> 5.4.1, etc) but not between major/minor revisions (5.3 -> 5.4). SQLite on the other hand does not consider this a public interface at all!

"Remember: The VDBE opcodes are not part of the interface definition for SQLite. The number of opcodes and their names and meanings change from one release of SQLite to the next." https://www.sqlite.org/opcode.html#the_opcodes

For anyone interested in understanding how a register-based VM operates I highly recommend:

A No-Frills Introduction to Lua 5.1 VM Instructions by Kein-Hong Man. https://www.mcours.net/cours/pdf/hasclic3/hasssclic818.pdf

I also like their Automated License Plate Reader (ALPR) record retention period (3 minutes):

Records of number plates read by each LPR shall not be recorded or transmitted anywhere and shall be purged from the system within 3 minutes of their capture in such a manner that they are destroyed and are not recoverable, unless an alarm resulted in an arrest, a citation, or protective custody, or identified a vehicle that was the subject of a missing person or wanted broadcast [...]

https://law.justia.com/codes/new-hampshire/2022/title-xxi/ti...

to see how far it gets before killing itself (on a VM or easily re-flashed machine of course).

I did this, but with dd -- it completed. Was very anti-climatic. I was hoping it would crash or at least disconnect me, but the kernel, sshd and bash were still in memory and happily returned me to a prompt where I couldn't really do anything.

My assumption is that they are not handling mail pieces and just outsourcing everything via the PostGrid API. Public pricing for a domestic 4x6 full color postcard $0.74. [1] There's no international pricing listed, but given that a domestic postcard stamp is $0.48, printing is ~$0.26 so add international forever stamp ($1.45) so $1.71/card. Stripe is 2.9% + $0.30 ($0.39 on $2.99). They are using Twilio so that's $0.01 for an inbound/MMS and just under $0.01 for the outbound SMS with a stripe link.

Profit per card would be $1.84/card domestic and $0.98/card international. Excellent margins for a $2.99 product with no need to handle inventory.

Seems like a great side project creating glue between three REST APIs (PostGrid, Stripe, Twilio) and I'd expect it'd generate sufficient free cash flow to cover its server costs and buy a few beers.

[1] https://www.postgrid.com/pricing-print-mail/#perunit

In my experience reading hundreds of IRS 990 forms these number are not out of bounds for non-profits at their scale. Healthcare and university may skew the absolute numbers, but are similar.

Specifically a great executive will personally move the fundraising needle in organizations (+1-5% or more) and mediocre executive can cause losses/missed opportunities in the opposite direction of a similar magnitude. The conventional thinking is the relative fundraising impact of a great vs a good executive may 10x their total compensation, so it's probably worth trying to retain the best.

Anecdotally, I know of a not-for-profit COO who offended an NBA player killing the relationship. His successor COO repaired the relationship, ultimately resulting in multiple millions of new donations and a co-marketing agreement with the team. When the COO was hired there were rumblings because he'd negotiated +$50k over his predecessor.

With no equity and the poor optics of commission compensation or cash-bonuses, big severance packages are one of the few ways an organization can reward employees following years of great service.

Parchive development has moved GitHub.

PAR2 (libpar2/par2cmdline) continues to see active (if sporadic) maintenance. The most recent tagged release was 2020-02-09 but there've been a handful of PR's merged since. [2]

PAR3 has a reference implementation and alpha spec (libpar3/par3cmdline) which is based around Blake3. [3]

OG PAR (libpar/parcmdline) is legit unmaintained; the last release was 21 years ago. [1]

[2] https://github.com/Parchive/par2cmdline

[3] https://github.com/Parchive/par3cmdline

[1] https://github.com/Parchive/parcmdline/

Another almost as old (archive.org copy from Nov 1996) but much more fun:

http://k12s.phast.umass.edu/images/Images.html

This is local copy of Anthony's WWW Images 1.8 released April 1996 by Anthony Thyssen. It was meant as a common set of common navigation icons for the web.

k12s.phast.umass.edu has been running continuously since late 1995. K12S was a spin off k12.oit.umass.edu (a free menu-based multi-user public access system for K-12 teachers and students). The S stood for SLiRP -- an open source SLIP/PPP emulator -- so they could offer emulated SLIP connections via the UMass modem-banks at no cost (local commercial SLIP accounts were $5.95/hr IIRC).

https://en.wikipedia.org/wiki/Slirp

Seinfeld started airing in 1989 a decade before American HDTV so they probably didn't foresee the aspect ratio of televisions switching from 4:3 to 16:9. 35mm film likely gave them more high-end options than the cameras and lenses meant for broadcast. It would also give them more wiggle room if they needed to re-frame a shot in post.

Personally I find most of the 16:9 crops of old shows in syndication quite jarring, especially because in any shot where the formerly extra width doesn't work the editor is forced to vertically crop the original. Here are some screenshots comparing 4:3 and 16:9 Seinfeld and ...eek

https://lambdan.se/blog/2018/11/13/seinfeld-original-vs-wide...

Remarkable is direct-only I believe, but they do have a 30day return policy.

As for the software/sharing, they have desktop (Win, Mac, Linux), Android and iOS apps and their own cloud hosted service for syncing documents, inks, ebooks, etc amongst your devices and the tablet. The apps are a little clunky (due to cross platform widgets) but you can quickly export a PDF of a drawing or drag in an ebook (PDF/ePUB) and it'll auto sync to your device.

P.S. The device itself is quite hacker friendly, it supports SSH over USB out of the box and they've shared their cross-compliation toolchain.