HNHacker News
TopNewBestAskShowJobs

harvie

465 karma · joined June 22, 2021

submissionscomments
harvie··on How to stop Linux threads cleanly
while (true) { if (stop) { break; } }

If there only was a way to stop while loop without having to use extra conditional with break...

harvie··on Germicidal UV could make airborne diseases as rare as those carried by water
article specificaly mentions rooms with poor ventilation. if you have proper ventilation, then you don't need this system in the first place, because you will get ouside air UV sterilised by the sun...
harvie··on Making Minecraft Spherical
I was recently thinking about this... We've been building houses and other structures using plum lines and water levels all the time before afordable optics came in play. This kinda means most of our buildings are actualy polar rather than cartesian. Surely enough given the size of earth the error is quite tiny. But it's funny thinking about how the room i am sitting in right now is shaped like frustum with spherical floor and ceiling, rather than block. Despite what architecture drawing says...
harvie··on The Article in the Most Languages
This only offers me 19 languages: https://en.wikipedia.org/wiki/David_Woodard The article claims that it has 335
harvie··on Perplexity is using stealth, undeclared crawlers to evade no-crawl directives
Maybe we can just configure webservers to block anyone who requests robots.txt, regular browsers don't do it, but robots do to get list of urls to crawl (while ignoring rules). Just create simple PHP/CGI script that adds client IP addres to iptables once /robots.txt is accessed.
harvie··on Kyoto University team develops pain reliever comparable to morphine
Isn't that just gonna keep the patients in constant fight-or-flight mode? Perhaps developing PTSD or something over time...
harvie··on Mastercard deflects blame for NSFW games being taken down
There already was a time when Steam managed to free people from need to use funny pieces of plastic in their lifes... They've done that with CDs, they can do it again with Cards.
harvie··on Fully homomorphic encryption and the dawn of a private internet
Ok, lets stop being delusional here. I'll tell you how this will actualy work:

Imagine your device sending Google an encrypted query and getting back the exact results it wanted — without you having any way of knowing what that query was or what result they returned. The technique to do that is called Fully Homomorphic Encryption (FHE).

harvie··on Czech Republic: Petition for open source in public administration
This is not really about office suite choice. It's more about custom software that is developed for government for riddiculous amount of money only to be a huge vendor lock-in.

I would like to see how complex the software really is compared to its price and make it possible for other companies to offer maintenance or adding new modules without having to go through the original authors. so basicaly the freedoms government should already have to something they've payed crazy amount of money for.

harvie··on Don't guess my language
Me: Visits Morroco (or pretty much any other country), has smartphone set to english. Also me: Gets youtube ads in Berber language. Has no idea what the ad is about or why someone would pay google to show it to me.
harvie··on Less Htmx Is More
Ever considered the website authors don't want you to go back? :-D
harvie··on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript
Exactly. Make it importable and i am sold.

Maybe base64 encoded metadata under the diagram? Maybe encode in non-printable characters?

Maybe just use non-printable characters to hint where the corners of objects are?

harvie··on DOGE will use AI to assess the responses of federal workers
Just use AI to craft the response then...
harvie··on Genimage – Tool to generate multiple filesystem and flash images from a tree
Genimage is a tool to generate multiple filesystem and flash/disk images from a given root filesystem tree. genimage is intended to be run in a fakeroot environment. It also supports creating flash/disk images out of different file-system images and files.

Configuration is done in a config file parsed by libconfuse. Options like the path to tools can be given via environment variables, the config file or from commandline switches.

harvie··on VLC tops 6B downloads, previews AI-generated subtitles
I feel like the quality got bit better recently...
harvie··on A 10-Year Battery for AirTag
This is cool, but i can see simple improvement. You're supposed to discard airtag backplate, but the capsule is big enough to provide compartment for storing it. Just in case that you decide to re-use that airtag in some other way in upcomming 10 years... I think that would be neat addition.
harvie··on Apple's AirPods Pro hearing health features
Imagine being student taking an exam... Normaly you would be disallowed to have bluetooth earpiece, but you would be allowed to have hearing aid. I'll let you think of the possible outcomes...
harvie··on JSON Patch
Reminds me of devicetree overlays :-)
harvie··on Raspberry Pi 3 fastboot in less than 2 seconds (2020)
If i understood it correctly... Initializing things as USB, which are inherently plug-n-play peripherals do need to wait for some protocol-defined time before we can say all peripherals on that bus were initialized. (Eg. i beleive USB devices have 0.5 second to enumerate, so if you wait for USB before you continue booting, it's automaticaly 0.5 second delay. But if you find USB hub, which is rather common, it's another 0.5 second delay to enumerate devices behind it.).
harvie··on Raspberry Pi 3 fastboot in less than 2 seconds (2020)
Too bad you need to ditch USB and Ethernet or other peripherals... It would be nice if there was a way to defer the initialization of those subsystems after userspace has started.

Eg.: Unless i boot from USB, i probably don't need my USB mouse nor ethernet before X server and Firefox had started. So why not start initializing those peripherals later in parallel while userspace already works on starting browser? Obviously this does not fit all imaginable usecases, but would be nice to be configurable.

harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
I was thinking about implementing some tool management in that simulator... What system would you reccomend? I can't really find example of what cutviewer uses... Can you please send me link to sample definition?
harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
Yeah, i think hobby CNCs should be going in similar direction the 3D printing does with klipper...
harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
Try GRBL post processor.
harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
Does Fusion 360 have postprocessor for GRBL? I've tried to make the simulator GRBL compatible. At least to some extent...

If that does not help, please share the g-code...

harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
I am not sure how g-code parser in the simulator handles the line numbers... might be problematic...
harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
PRs welcome :-)
harvie··on I Revived 3-Axis CNC Mill G-Code Simulator
I've been long-term contributor to bCNC https://github.com/vlachoudis/bCNC/ But FreeCAD seems to be interresting choice lately as well...
harvie··on Sigrok – a portable, cross-platform, FOSS signal analysis software suite
I am still waiting for my driver to be merged :-(

https://github.com/sigrokproject/libsigrok/pull/185

harvie··on Sigrok – a portable, cross-platform, FOSS signal analysis software suite
Sigrok project is dead... There is a single maintainer and he's not willing to merge almost anything, it's been like that for years. I think it's time to fork...
harvie··on First Contact with SQLite
My mind was blown when i've realized i can write bash command that pipes CSV file into the SQLITE, runs SQL query on it and spits out results. (all completely in ram, without need for temporary sqlite file on disk)
← PreviousPage 2 of 6Next →