HNHacker News
TopNewBestAskShowJobs

thefilmore

1,547 karma · joined April 17, 2018

https://akr.am
submissionscomments
thefilmore··on macOS command-line tools you might not know about
I maintain updated lists here:

https://manp.gs/mac/1/

https://manp.gs/mac/8/

thefilmore··on Does Lemmy benefit from Rust? Is code execution speed the bottleneck?
Is ActivityPub not scalable? I keep seeing criticisms of it on this front.
thefilmore··on I didn’t learn Unix by reading all the manpages (2022)
The POSIX man pages tend to be much more approachable: https://manp.gs/posix/1/find
thefilmore··on NPR quits Twitter after being labeled as 'state-affiliated media'
It's labeled "Government-funded Media".
thefilmore··on Buck2: Our open source build system
> In our internal tests at Meta, we observed that Buck2 completed builds 2x as fast as Buck1.

Interesting, so twice the bang for your buck.

thefilmore··on The AI Bubble of 2023
And you have comments underneath the StackOverflow answer by people who've tested it.
thefilmore··on The AI Bubble of 2023
The first result of searching for your string on Google is a StackOverflow link [1] that mentions that this is a gzip header. There is another link [2] below it showing how to decompress it.

[1] https://stackoverflow.com/questions/58552645/what-exactly-is...

[2] https://stackoverflow.com/questions/57328953/trying-to-decod...

thefilmore··on C Port of Ken Thompson's Space Travel
The code also used a neat approximation to draw circles. Instead of using sin and cos for rotating along the edge of the circle to draw it, it simply used x (~= sin(x) for small values) and 1-x^2/2 (a Taylor series approximation derived from cos(x) = sqrt(1-sin(x)^2)), respectively.
thefilmore··on C Port of Ken Thompson's Space Travel
Yup, Ken and Dennis wrote an entire floating point library from scratch for the game, among other things. [1]

> Also during 1969, Thompson developed the game of ‘Space Travel.’ First written on Multics, then transliterated into Fortran for GECOS (the operating system for the GE, later Honeywell, 635), it was nothing less than a simulation of the movement of the major bodies of the Solar System, with the player guiding a ship here and there, observing the scenery, and attempting to land on the various planets and moons. The GECOS version was unsatisfactory in two important respects: first, the display of the state of the game was jerky and hard to control because one had to type commands at it, and second, a game cost about $75 for CPU time on the big computer. It did not take long, therefore, for Thompson to find a little-used PDP-7 computer with an excellent display processor; the whole system was used as a Graphic-II terminal. He and I rewrote Space Travel to run on this machine. The undertaking was more ambitious than it might seem; because we disdained all existing software, we had to write a floating-point arithmetic package, the pointwise specification of the graphic characters for the display, and a debugging subsystem that continuously displayed the contents of typed-in locations in a corner of the screen. All this was written in assembly language for a cross-assembler that ran under GECOS and produced paper tapes to be carried to the PDP-7.

[1] https://www.bell-labs.com/usr/dmr/www/hist.pdf

thefilmore··on C Port of Ken Thompson's Space Travel
> sdl_getticks64 was undefined

I used this because it was recommended by the docs, but it's somewhat recent (introduced in SDL 2.0.18, November 2021).

> now i just seea bunch of dots on a screen

The dots are other planets and moons you can travel to.

> i press thrust/downthrust and the circle disappears

If the circle disappears then you've crashed into the planet (it will blink CL in the bottom right). You'll have to start a new game, and thrust in the other direction this time. I've added some more information to the README about the gameplay.

thefilmore··on ElonJet Is Now Suspended
Do not fall into the trap of anthropomorphizing Elon Musk.
thefilmore··on Elastic UI – Component library for data-driven web apps
PatternFly by Red Hat is good for dashboards and administration use cases.

https://www.patternfly.org

thefilmore··on Why is the terminal input so weird?
Because you haven't `set -o vi`.
thefilmore··on Zero point leet seconds (2018)
You can't go faster than leet.
thefilmore··on ZLibrary domains have been seized by the United States Postal Inspection Service
When you control the mail, you control information.
thefilmore··on Show HN: Stock Photos Using Stable Diffusion
I'm seeing images with a dreamstime[0] watermark when searching "man in suit":

https://replicate.com/api/models/stability-ai/stable-diffusi...

https://replicate.com/api/models/stability-ai/stable-diffusi...

https://replicate.com/api/models/stability-ai/stable-diffusi...

https://replicate.com/api/models/stability-ai/stable-diffusi...

[0]: https://www.dreamstime.com

thefilmore··on Installing FreeBSD on Oracle Cloud
Thank you for pointing that out! I could've sworn it wasn't there when I checked. It seems it was added recently, but only for arm64 [1]. I will add a note to the post about this.

[1] https://blogs.oracle.com/cloud-infrastructure/post/freebsdar...

thefilmore··on SSH Cheat Sheet
The scp command uses the SFTP protocol since OpenSSH 9.
thefilmore··on Tailscale SSH
What about using NSS[1]? You could add a Tailscale provider to the `hosts` entry.

[1]: https://en.wikipedia.org/wiki/Name_Service_Switch

thefilmore··on Git ignores .gitignore with .gitignore in .gitignore
This is cool, wasn't aware of it.
thefilmore··on Git ignores .gitignore with .gitignore in .gitignore
`git add -u` for changes to existing files, and manually `git add` new files. `git diff --staged` to review what's staged. You can use `git gui` to do all this using a GUI.
thefilmore··on Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
This is one of the most clever projects I've seen in a while. Nice work.
thefilmore··on We at $Famous_company Switched to $Hyped_technology
Very cool!
thefilmore··on Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust
The link to the repo is broken.
thefilmore··on A guide to Windows application development using w64devkit
I wrote one [1] a while ago.

[1] https://akr.am/blog/posts/a-guide-to-compiling-programs-on-w...

thefilmore··on Show HN: Doppler Share – Share one-off secrets with end-to-end encryption
I made a similar service [1] for sharing one-off secrets. The implementation is open-source [2] and the client consists of a single HTML page (about 250 lines) with no external links or resources which makes it easy to review. Nothing is sent to the server except the encrypted blob.

[1] https://plic.ml

[2] https://github.com/mohd-akram/plic

← PreviousPage 2 of 2