975 karma · joined Aug 2, 2013 (13y ago) · 175 submissions
comment 1w ago · link · parent
2.
CipherAML: Advanced Mobile Location for emergency services without Google(github.com ↗)
1 points · by lucgommans · 1w ago · 1 comment
comment 3mo ago · link · parent
Revolutionary! Finally I don't have to look on a map to find all stations in walking/cycling/driving distance and then route to/from every possible combination of start and end station manually to see what busses and trains run there. And repeat the process with each schedule change in each involved country. Every other transport app that I know of will try to keep you within a few hundred metres of a bus stop or train station at all times and say "there exists no route" before telling you to cycle 10 minutes or from which station you have the shortest remaining distance by taxi or whatever
comment 3mo ago · link · parent
Yeah this is an oft-asked question at least for OsmAnd, but I was recently corrected on this myself: so long as you don't press 'start' on the route, you can always change the from position freely and it won't flip back to your current location. You can close the navigation window (back button, swipe it away, or tap on the map) to get the map view back in full-screen for further browsing and selecting another point that you want as departure point, waypoint, or (subsequent) destination. Rinse and repeat until you have the route figured out with all the waypoints :)
I use this a lot for planning mapping routes. Another protip is to go into the waypoints view and on the top right you can do traveling salesman sorting to get the shortest way that visits all waypoints
CoMaps/OrganicMaps I don't know; I'm one of those who grew up with OsmAnd and got used to having all those features
comment 3mo ago · link · parent
In case you have a second device where you'd like location, or ever don't have the USB GNSS receiver on you or something :)
comment 3mo ago · link · parent
Here are the figure 1 a-c images, lossless as they are in the PDF, having cropped a few transparent pixels for each one: https://lucgommans.nl/tmp/doi_10.1038_s41586-026-10871-3_fig... https://lucgommans.nl/tmp/doi_10.1038_s41586-026-10871-3_fig... https://lucgommans.nl/tmp/doi_10.1038_s41586-026-10871-3_fig...
edit: supplementary video 2 has a panel similar to figure 1b in 10% higher resolution, screenshot: https://lucgommans.nl/tmp/doi_10.1038_s41586-026-10871-3_sup...
comment 11mo ago · link · parent
Sanitisation is one of two possible defences, the other being script execution controls or sandboxing. E.g., if you serve vector images on a web server, set a Content Security Policy header¹ for all your images that simply denies all scripting. You can also run it from a dummy domain ('origin') with nothing valuable on it (like how domains such as googleusercontent.com and githubusercontent.com are being used)
For sanitisation, DOMPurify² is the only widely used and tested library that I know of. It could use more bindings for other languages but, if you can call into it, it can go in your deployment pipeline. (Disclosure: I've worked with some of the people at Cure53, but not on this project)
You can also combine the approaches for defence in depth
¹ https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP
comment 12mo ago · link · parent
comment 12mo ago · link · parent
There does not seem to be a tag for it yet. That there are apparently hundreds of instances, and it being definitely something you'd want to select for, makes me think it's a good fit for OSM. Currently, hotels can already have tags like phone number, reception opening hours, WiFi fees, etc. It might even be a good fit for the toilets:* namespace, since this has overlap with toilets in (semi-)public spaces offering different levels of privacy
comment 1y ago · link · parent
e.g. 10.2.3.4.anyz.one will refer the recursive resolver to query 10.2.3.4 for the answer to the query. You can also buy a domain and configure it to do that, but this is quicker
Disclosure: I wrote anyzone
comment 1y ago · link · parent
(Not real affiliation but still: I added a domain to that page at some point)
comment 1y ago · link · parent
I'm currently sticking to JPEG because, last time I tried, JPEG came out as the best format. Referencing my memory at https://chaos.social/@luc/113615076328300784
- JPEG has two advantages on slow connections: the dimensions are either stored up front so the layout doesn't jump, or maybe the renderer is better; and it loads a less-sharp version first and progressively gets sharper
- JPEG was way faster when compressing and decompressing
- on the particular photo I wanted to optimise in this instance, JPEG was also simply the best quality for a given filesize which really surprised me after 32 years of potential innovation
Regarding AVIF, my n=1 experience was that it "makes smooth gradients where jpeg degrades to blotchy pixels, but at decent quality levels, jpeg preserves the grain that makes the photo look real". Gradients instead of ugliness at really small sizes can be perfect for your use-case, but note that it's also ~80 times slower at compression (80s vs. <1s)
JpegXL isn't widely in browsers yet so I couldn't use it
> These days, the [JPEG] format is similar to MP3
The difference with mp3 is that Opus is either a bit better or much better, but it's always noticeably better.
You can save ~half the storage space. For speech (audio books) I use 40kbps, and for music maybe 128kbps which is probably overkill. And I delete the originals without even checking anymore if it really sounds the same, I noticed that I simply can't tell the original apart in a blind test, no matter what expensive headset setup I try
TFA attributes it to a simple "they were first" advantage, but I think this is why "Why JPEGs still rule the web": no file format is better than JPEG in the same way as Opus is better than MP3; in that you don't have to think about it anymore and it's always a win in either filesize or quality
That said, Opus is also annoyingly hard to get into people's minds, but I've done it and you also see major platforms from compress-once-serve-continuously video (e.g. Youtube) to VoIP (e.g. Whatsapp) switching over for all their audio applications
comment 1y ago · link · parent
15.
Why is appending to the innerHTML property bad?(stackoverflow.com ↗)
4 points · by lucgommans · 1y ago · 2 comments
comment 1y ago · link · parent
Genuinely trying to think of an examples, since e.g. books aren't ever that long and search results don't have that many pages (that you'd all read and refer back to). A salary range, perhaps, can get into the seven digits in extreme cases (not that you care about any individual digit when you make a lifetime's worth of money in a bit more than a year): "Prospective salary is 2'423'000 to 2'432'000" seems to convey the relevant info as well as "Prospective salary is 2'423'000 to 9'000" does (except that I wouldn't understand the latter and ask what this second number means, but that's plausibly attributable to me as an individual not being used to it)
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
$ python -m this | grep -- -- -
Which is just beautiful(Your example causes the last hyphen to be grepped for, which happens to only match doubled-up ones because single ones don't occur in that text. The quotes/apostrophes do nothing because they're parsed by (ba)sh and so only the hyphens are passed to grep, not the quotes. The last hyphen can be omitted because reading from stdin is the default if neither filenames nor recursion options are passed.)
comment 1y ago · link · parent
I do like that the em dash is as long as it feels that broken-off thoughts should be
Not everything has to be functional, sometimes things can also just look nice for the sake of it
comment 1y ago · link · parent
In speech, it's common, and misunderstandings are usually not a problem (if you're not monologuing on a recording) because someone will just ask; but in writing it looks like the range is the wrong way around. Maybe I expect more care in writing because the feedback loop is longer, or maybe it's just habit and I think it's wrong in writing because I never see it?
23.
Most promoted and blocked domains on Kagi(kagi.com ↗)
379 points · by lucgommans · 1y ago · 182 comments
comment 1y ago · link · parent
comment 1y ago · link · parent
26.
Wireless laser power transmission: Recent progress and future challenges(sciencedirect.com ↗)
1 points · by lucgommans · 2y ago · discuss
27.
Llama's Legal Labyrinth(merlijn.sebrechts.be ↗)
5 points · by lucgommans · 2y ago · 1 comment
comment 2y ago · link · parent
The conclusion appears to be that BeatFind and Shazam know the most songs, but are also somewhat complementary and all of the services had at least one song they uniquely recognised.
---
Fun facts:
* Night Driver (W) said "1 Shazams". I think I was the first person to ever Shazam that. Some of the most obscure things had hundreds, often thousands of shazams!
* You know where they are taking the hobbits but none of the services do!
========
- ABC = found the song
- # = number of attempts
- f = exceptionally fast matching (when it did match, might not be first attempt)
- ~ = knew one of the songs
BeatFind: 2B C 1E 2G 2H 1I 2Jf 2Lf 4M 2Nf 2Of 1Pf 1Rf ~S 2T 1Uf 1Vf 1W 1Xf Y Z
SoundHound: A 1B 1E 2F 1G 2H 2If 1L 2O 3P 2R 1Tf 2U
Shazam: 1Bf 1D 1E 1F 1G 1Hf 1I 2J 1L 1M 4N 1O 1Pf 1Rf 1Tf 1Uf 1V 2W 1X Y Z
MusixMatch: crashes on startup, presumably it realizes it won't be able to show me ads
missingno
Shazam: A C K Q S
SoundHound: C D F J K M/N Q S V W X Y Z
BeatFind: A D F K Q
non-universal finds (repeated letter = unique = counts double; slash means same artist so should be counted as one)
Shazam: DD F J M/N V X Y Z
SoundHound: AA F
BeatFind: CC J M/N S V X Y Z
A: Levan Polkka Epic Orchestral Cover version
B: Pokémon red/blue soundtrack
C: Mayhem (various songs, it seems either they have all or they have none)
D: Art Now ft. Snowflake
E: Hero's Choice
F: Three Days Grace - Scared
G: Syrian - Supernova
H: The Explosion - Here I Am
I: The Von Bondies - C'mon C'mon
J: Frank Klepacki - Scouting (C&C TibSun)
K: Conspiracy - Chaos Theory (demoscene)
L: Cheshyre - Madness6 (remix) (Newgrounds ID 77998)
M: Dimrain47 - Twilight Techno
N: Dimrain47 - Cloud Control
O: DragonForce - My Spirit Will Go On
P: Yuki Kajiura - The First Town (SAO)
Q: THEY'RE TAKING THE HOBBITS TO ISENGARD! THE HOBBITS- THE HOBBITS- TO ISENGARD! TO ISENGARD!
R: Faithless - Insomnia
S: Age of Empires 1 soundtrack
T: Moulin Rouge - El Tango De Roxanne
U: Van Canto - Master of Puppets
V: Slack Bird - Jouni
W: Floppytronic - Night Driver
X: EgoSalad / Kitboga - Breathe in
Y: Floppy Drive music: top 4 hits on yt: sweet dreams, imperial march, ghostbusters, beat it. Only ghostbusters was known to any
Z: Obsidian Shell - Orphanage
---Note that what I did not test/review introducing noise (like people talking through it) or filtering (like when you hear the music through a wall)
comment 2y ago · link · parent
- Probably <ruby> and related tags are used in Japanese and other spheres with such a language feature
- <base> I knew of, I thought archive.org used it but apparently not currently. Probably if you work with archived or otherwise namespaced content, you can reasonably find this a very familiar element
- <track> if you're a media person, doesn't seem that outlandish
- <dfn> I knew of basically, but just couldn't recall the names for glossary tags
- <kbd> is used all the time on Superuser (in Markdown, where HTML is valid though of course they filter most of it)
- Some others that I didn't remember, like <template> and <article>, were just stupidity. I know these...
This leaves <del> and <ins>. There are enough diffing tools, but it's not as big a category of software people constantly work on, especially since this is only for browsers. I'd not be surprised if these are the most-forgotten elements
Or does anyone still use <map>? I saw it in the HTML tutorial (linked from a Dutch magazine) that got me into programming so I know of it and remembered while doing the quiz, but it's fairly far faded from my mind and I'm not sure anyone would ever use it when, if you want this sort of functionality, you'd probably want the versatility of JavaScript