HNHacker News
TopNewBestAskShowJobs

magnat

1,596 karma · joined November 15, 2015

submissionscomments
magnat··on Ask HN: What do you use to backup your VMs?
lsyncd for live replication to warm standby, LVM+rsync for offline backup, restic for keeping file-level version history.
magnat··on Yi-Coder: A Small but Mighty LLM for Code
Because you can quantize a model e.g. from original 16 bits down to 5 bits per weight to fit your available memory constraints.
magnat··on Strange Attractors (2018)
This reminds me of the Chaoscope [1], a defunct app from 2000s for creating a beautiful 3D renderings of Strange Attractors.

[1] https://web.archive.org/web/20200710103948/http://www.chaosc...

magnat··on Ask HN: Imagine a world with 1Tb/s internet. What would change?
Network-attached storage and Network-attached RAM would be ubiquitous. You would literally be able to download more RAM.
magnat··on IP.network: Check IP Address
Different User-Agent HTTP header most likely.
magnat··on Reverse engineering the 59-pound printer onboard the Space Shuttle
Is the drum rotating smoothly at constant RPM, or is it stopping briefly (using gears [1] similar to those found in analog movie projector) when hammers hit the paper to prevent them from tearing it?

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

magnat··on Intel confirms oxidation and excessive voltage in 13th and 14th Gen CPUs [video]
66% of gamers, according to https://store.steampowered.com/hwsurvey/processormfg/
magnat··on User returns after 100k-hours ban to continue conversation that got them banned
There is now a protection, you can't set it to more than 9999.

:)

magnat··on Starcraft (A History in Two Acts)
I strongly recommend reading Pat Wyatt's blog [1] for some insights about an early Starcraft development from more technical point of view.

[1] https://www.codeofhonor.com/blog/tough-times-on-the-road-to-...

magnat··on Llama.ttf: A font which is also an LLM
> if you copy and paste your "improved" text then it will no longer say what you thought it did

It's not a bug, it's a feature - a DRM. Your content can now be consumed, but cannot be copied or modified - all without external tools, as long as you embed that TTF somehow.

Which kind of reminds me of a PDF invoices I got from my electricity provider. It looked and printed perfectly fine, but used weird codepoint mapping which resulted in complete garbage when trying to copy any text from it. Fun times, especially when pasting account number to a banking app.

magnat··on Protecting your email address via SVG instead of JavaScript
> even when a human visitor has their JavaScript turned off, the email address displayed on the page remains usable

NoScript on Firefox with default settings don't render <object> tags (replaces them with placeholders), so this technique doesn't work here.

https://imgur.com/2tCAgAf

magnat··on Decompiling Hyper-V Manager to rebuild it from source
> Even if we've managed to rebuild and patch Hyper-V Manager from source, this is not enough for a real community project to take place. As much as I would like to just upload the decompiled source code to GitHub to start making significant changes to it, there's no legal standing for this project

I did almost exactly the same thing with Microsoft Reporting Services / ReportViewer several years ago, but decided to go a step further and published whole thing on a GitHub and uploaded packages for .NET Core/5/6/7/8 to NuGet - both platform controlled by Microsoft.

Both repo and packages are still up. Only legal inquires came from other companies asking if they can really use it. For reasons I cannot fathom, Microsoft MVPs and community managers direct anyone asking for .NET Core version of ReportViewer to my recompiled package and sources, with links all over Microsoft's forums, reddit and Q&A sites. GitHub analytics shows some visitors come via direct links from docs.microsoft.com.

I guess Microsoft just doesn't care. Hell, they allow scripts for one-click product activation bypass to be hosted on GitHub.

magnat··on Webb captures iconic Horsehead Nebula in unprecedented detail
JWST optics makes quite unique diffraction spikes. Not only that there are eight of them, but on full resolution images [1] they have distinct pattern, as if made from separate dashed lines.

Are colors of those tiny lines (mostly red here - although this is false-color image) also diffraction artifacts, or do they correspond to actual spectrum of the stars causing them?

[1] https://www.esa.int/var/esa/storage/images/esa_multimedia/im...

magnat··on A-BiRD uses Raspberry Pi to identify different species singing at the same time
No, it doesn't. It uses RPi to record and upload singing.

> A microphone array is hooked up to a Raspberry Pi which is programmed to listen to ambient sounds, record bird songs, and show audio curves. The Pi then sends that data to BirdNET Sound ID at the Cornell Lab of Ornithology for analysis.

magnat··on Visualizing malicious IP addresses
If you haven't updated your Debian in a while, 1 in 30000 apparently: https://www.hezmatt.org/~mpalmer/blog/2024/04/09/how-i-tripp...
magnat··on The Performance Impact of C++'s `final` Keyword
> I created a "large test suite" to be more intensive. On my dev machine it needed to run for 8 hours.

During such long and compute-intensive tests, how are thermal considerations mitigated? Not saying that this was case here, but I can see how after saturating all cores for 8 hours, the whole PC might get hot to the point CPU starts throttling, so when you reboot to next OS or start another batch, overall performance could be a bit lower.

magnat··on Bringing Exchange Support to Thunderbird
> No, don't try maildir on the Windows.

Why, exactly? I have switched to maildir as soon as it was available as experimental feature, and performance gains when compared to mbox were enormous, especially during bulk operations. Switching folders takes <0.1s, with ~100k messages per folder, on Windows 7 64-bit.

magnat··on Could a video game developer win the Nobel Prize for Literature?
Nobel Prize can be shared by up to three individuals [1] so barely any modern game would qualify.

[1] https://www.nobelprize.org/frequently-asked-questions/#share

magnat··on Show HN: Building a GPS receiver
Note that GPS receiver capable (i.e. not artificially limited) of providing navigation data while moving 600 m/s or higher used to be considered munition by ITAR. The amount of legalese at updated ruling [1] is well beyond what I can make sense of, to the point I don't even know if it still applies.

While we're at SDRs, ITAR is also responsible for takedown of passive radar GNU Radio module made by Kraken RF team.

[1] https://www.space.commerce.gov/itar-controls-on-gps-gnss-rec...

magnat··on Show HN: Building a GPS receiver
Slightly updated version: http://www.aholme.co.uk/GPS/Main.htm
magnat··on Llm.c – LLM training in simple, pure C/CUDA
Most modern A/V codecs won't fit in that limit by several orders of magnitude.

Even standard-compliant JPEG decoder would be hard to squeeze without some serious codegolfing. Discarding some barely used features gets you close to that limit, though [1].

Smallest popular TCP/IP stack [2] is ~20kLoC.

[1] https://github.com/richgel999/picojpeg

[2] https://savannah.nongnu.org/projects/lwip/

magnat··on 'A landmark moment': scientists use AI to design antibodies from scratch
If AI is ever going to gain consciousness and decide to kill all the people, this is exactly how I envision it.
magnat··on Ubicloud: Open, Free, and Portable Cloud
Either that or Ubiquiti. Don't know which is worse.
magnat··on USB in a Nutshell (2010)
I also recommend USB Made Simple [1], which has similar vibe to this site, but also includes USB 2.0 description and is a bit more detailed on electrical/low level aspects.

For an actual implementation, see V-USB [2] - surprisingly readable software library for bit-banging USB on AVR (Arduino/ATTiny/ATMega)

[1] https://www.usbmadesimple.co.uk/index.html

[2] https://github.com/obdev/v-usb

magnat··on Chicken Egg Production (2019) [video]
A viable sperm can survive in hen's reproductive tract for weeks [1], so she doesn't have to be impregnated in this 15 minute window to produce a fertilized yolk.

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3944358/

magnat··on Wintergatan Marble Machine (2016) [video]
One might say he lost his marbles.
magnat··on A lock-free ring-buffer with contiguous reservations (2019)
> A typical serial port configuration is "115200 8N1", which means 115,200 baud (or raw bits on the wire per second), with no parity, and 1 stop bit. This means that for every data byte sent, there will be 8 data bits, 1 unused parity bit, and 1 stop bit, to signal the end of the byte, sent over the wire. This means that we will need 40 bits on the wire to receive a 4 data bytes.

8N1 means there is 1 start bit, 8 data bits and 1 stop bit (10 bits total), not 8 data bits, 1 unused parity bit and 1 stop bit (also 10 bits total).

magnat··on SQLite: Wal2 Mode
Microsoft SQL Server uses similar architecture [1], but instead of using separate log files, it allocates Virtual Log Files (VLF) inside a physical (on-disk) log file. VLFs are allocated from a ring buffer and apparently there can be several thousands of them before things start to break.

[1] https://learn.microsoft.com/en-us/sql/relational-databases/s...

magnat··on What PWA Can Do Today
Doesn't work with JavaScript disabled.
magnat··on Google's response to Reptar CPU vulnerability
HLE, which is a subset of TSX, is (was?) supported by glibc [1]. Not sure if it is enabled by default. If it is, pretty much every multithreaded linux process would be affected.

[1] https://www.gnu.org/software/libc/manual/html_node/Elision-T...

← PreviousPage 2 of 8Next →