871 private links
Fast and low quality image generation from prompts. Not affiliated with OpenAI.com.
A modern typesetting tool as an alternative to TeX. The clear syntax is not a lot more complicated than markdown yet it supports a lot of typesetting features, scripting, math symbols, etc. The syntax is certainly a huge improvement comparing to the obscure TeX. I may give it a try when there is an Emacs mode for that.
An interesting approach towards procedurely generated level/room/dungeon: specify various constraints and use a solver to place the objects on the tiles.
Small utility for generating DHCP options for pushing static routes to devices via DHCP.
The article explains how to use a CA (certificate authority) with SSH (secure shell) to sign host and user keys, which allows for easier authentication and management of large numbers of machines or users.
This is a not-so-short article teeming with "Aha!" moments.
- reduce all branching in the solution to a math expression
- converted to a lookup algorithm
- we need a perfect hash function
- use multiplication + shr as bit mixer
- store answers directly in a single u32 integer
- cram the answers even tighter with overlaps
The post shows off lot of tricks, very interesting read.
An AI search engine that accepts natural questions and search the web for answers. From my limited experience it has better result than New Bing.
The creator of Phind claimed that they do not use any of OpenAI's model.
Replicate lets you run machine learning models with a cloud API, without having to understand the intricacies of machine learning or manage your own infrastructure.
A collection of prompts to jailbreak ChatGPT.
Over-engineering my document storage system with Paperless-ngx
https://skerritt.blog/how-i-store-physical-documents/
An extremely well written article on paperless-ngx. It showcased the interesting features (auto-tagging) of the service as well archiving techniques, with a lot of emphasis on how to automate importing and backup.
An article about Ray casting, WASM4 (a game console emulator that runs WASM "cartridges"), binary size reduction, and generally how to interface with WASM in Rust.
The idea that hiding is not good for privacy: it's often easier and more effective to make a fake persona than hiding, which creates a mystery people are intrigued to solve.
This article gives suggestions on how to generate a fake persona:
- pick a common name
- ai face generation + face aging software
- use mailbox.org for email
- create a social media profile
Hask is the category of Haskell types. This article lists some interesting exceptions where the programming language do not quite hold the consistent properties to the corresponding mathematically description of category theory objects.
A detailed description and comparison of various ESP32 models and different boards.
Trick learned: echo w > /proc/sysrq-trigger
to show a stack trace in dmesg for tasks in uninterruptible sleep state. This is helpful to learn what the process is blocking on.
I agree. Every screenshot I took is a snapshot of memory of what I was currently doing on my computer.
Minimal demo on how to do graphics for X11, macOS and Windows:
- pop up a window
- handle basic events
- draw on the surface
- play a sound
- port doom onto it
How do you make a webpage without any source code?
- Return "Content-Type: text/html" with empty content. This is tantamount to a bare webpage "<html><body></></>"
- Fill the page's content with the "::before/after{content: xxx}" CSS
- Place the inlined stylesheet in the link header
I learned it's possible to inject CSS via HTTP header: https://danq.me/2020/12/21/http-link-css-injection/
A search engine for the internet, in the 2000 style. You find interesting random small websites instead of see the same result from major search engines.
It also has a Tinder-like website recommendation engine where you can train it to find the website you're interested in. I already found several interesting personal blogs with this feature.
Impressively, the search engine is invented by one person, yet it already indexed more than 100M of webpages.
Comparing different approaches of generating HTML:
- String templating
- XML based embedding
- Inline XML (JSX)
- S-expr as DSL
- Custom DSL