HNHacker News
TopNewBestAskShowJobs

stonewareslord

256 karma · joined January 30, 2017

submissionscomments
stonewareslord··on Sensor Watch: a board swap for the classic Casio F-91W wristwatch
I found this watch because I could not find anything with more than 2 timers. I wanted a watch that has 5+ for cooking. This watch doesn't either, but I'm writing a face in rust to support this case

I also want sunrise/sunset time, random number generator, and hourly beep+30m beep like a ships clock

stonewareslord··on Costa Rica’s enigmatic addresses (2021)
I actually almost have a working version of a replacement for what3words/Xaddress/etc that solves every gripe I know of.

Format is: (1-1024) WORD WORD WORD with a relatively short wordlist (8k words). Maps to ~1 square meter and plurals/singular words represent the same value. Completely open source to everyone.

My gripe with pluscodes is memorizability. Number and 3 words from a short list should be pretty easy to remember and write down. Either way, my replacement can easily map to plus codes/lat lon/google maps/openstreetmap. I'm super excited about it.

I'll probably post here when it's closer to done.

stonewareslord··on Named element IDs can be referenced as JavaScript globals
Thank you for this! I had a feeling it wasn't a security issue. I closed my ticket saying it might be one due to finding websites mentioning Dom clobbering
stonewareslord··on Google postpones MV2 shutoff in Chrome stable to June 2023
You can't in bulk as far as I know, but can't you just go to about:addons in the URL bar? I don't use more than 5 anymore. How many do you have?
stonewareslord··on Google postpones MV2 shutoff in Chrome stable to June 2023
Is it not this way in chrome too? I know imgur messes with the ui for no good reason.

Your other commentmentions i.imgur.com being the case? Maybe libredirext can help you never hit the i. Site?

stonewareslord··on Google postpones MV2 shutoff in Chrome stable to June 2023
Yes quantum was rough... I still miss vimperator. Though the speed increase was nice. Thank you, I did forget about this actually
stonewareslord··on Google postpones MV2 shutoff in Chrome stable to June 2023
What do you mean meme storm? Switching to Firefox makes you immune to annoying changes like this... I honestly don't understand why more people, especially on hn, haven't switched over still.

As a Firefox user, articles like this are just noise, not a possible attack on my personal privacy. When was the last technical scandal with Firefox? Adding an optional bookmarking service? How are people still defending chrome?

stonewareslord··on Named element IDs can be referenced as JavaScript globals
Good catch. That would explain why it wasn't mentioned then
stonewareslord··on Named element IDs can be referenced as JavaScript globals
I don't think this article is complete. It mentions no pollution, which is true of window and most HTML elements, but not always. Check this out, you can set an img name to getElementById and now document.getElementById is the image element!

Here's a minimal example (https://jsfiddle.net/wc5dn9x2/):

    <img id="asdf" name="getElementById" />
    <script>
        // The img object
        console.log(document.getElementById);

        // TypeError: document.getElementById is not a function :D
        console.log(document.getElementById('asdf'));
    </script>
I tried poking around for security vulnerabilities with this but couldn't find any :(

It seems that the names overwrite properties on document with themselves only for these elements: embed form iframe img object

Edit: Here's how I found this: https://jsfiddle.net/wc5dn9x2/1/

stonewareslord··on Ask HN: Does Hacker News still do in person meet ups?
Me too!
stonewareslord··on Hacker News Predictions
What do you mean? Adding odds defeats the purpose of the prediction since you can't confirm it to be true or not.

If I predict with 99.99% odds something will happen and it doesn't, my prediction could still have been correct as that fits in the remaining .01%. Whereas if I predict something will or won't happen after some time, you can confirm if it did or didn't happen after that time.

stonewareslord··on Sol: Open-source Alfred/Raycast alternative for macOS
Why is this called sol (sun) when the logo is a black hole? Am I missing something?
stonewareslord··on Game engines are more than libraries glued together
I agree with your assessment.

> a stack made for a single game is not a game engine.

For a concrete example: the newest Lego game, Star Wars the Complete Saga, had a complete engine rewrite ("NTT") and the new game is the only one that runs it. I wonder what term the author would use to describe NTT, which isn't designed to run a single game or have a community.

stonewareslord··on Captive Portals
How do you enforce the physical check with captive portal? Do you give everyone a shared password to go into the portal?
stonewareslord··on System76 Lemur Pro Linux laptop with 14 hours of battery life
What a tiring trope. I use a high resolution macbook for work and a 1366x768 13 inch laptop for personal use. Like OP, I greatly prefer the font blockiness the latter provides especially in terminals.

And yes, I've tried smooth fonts and FixedSys/Less Perfect DOS-VGA on both and prefer blocky ones every time. High res screens love to use smoothing and subpixel rendering and I very much prefer none of it.

Edit: point being if you switch to high res displays, you won't always like it more

stonewareslord··on Google says US employees can relocate to states with abortion rights
> we're headed to a dark place if your best shot at human rights is to retain employment by a big tech company

But we're already here. We are in that dark place now. It's reality that if you work for big tech you get a perk this perk, and if not, you don't.

Edit: point being that we aren't heading to a bad place. Maybe we are heading to a worse place, but this has put a ton of people in a very bad place already.

stonewareslord··on Why I Don't Like Golang (2016)
> you can solve that with a manual implementation instead of a derive.

How? I thought the orphan rule said you can only define trait implantations at struct definition or trait definition

stonewareslord··on Download offline maps in the Google Maps app without signing in
What do you use to convert them? I've been looking for a way to push a url somewhere and get back the position in osmand

I am currently loading the location in google maps web and picking "Open in App" in the browser, but it doesn't always drop the pin in the right spot

stonewareslord··on I disabled WiFi on the new Samsung fridge
> made it myself with an ESP8266

Do you have a recommendation on how to start an ESP8266 project? Which board/power supply/??? Did you buy to do this for example

stonewareslord··on Ask HN: What developer tools would you like to see?
ntfy already supports sending messages after long running commands:

    ntfy done sleep 10
If you want to also capture output, you can just use a simple bash function:

    ntfy_done_output() {
        local TEMP_FILE="$(mktemp)" SUCCESS LOG
        "${@}" 2>&1 | tee "${TEMP_FILE}"
        SUCCESS="$((!PIPESTATUS[0]))"
        LOG="$(curl -fLX POST -T- <"${TEMP_FILE}" some-pastebin.example.com)"
        if ((SUCCESS)); then
            ntfy send "Success! Log: ${LOG}"
        else
            ntfy send "Failed :(. Log: ${LOG}"
        fi
    }
stonewareslord··on Software Jailbreak for Any Kindle
You could also write something like Linux's fakehwclock that writes device time to a file on shutdown and reads it on bootup. Your clock will skew more (shutdowns are supposedly 0 seconds in duration), but it would at least be monotonic.

Fakehwclock is cool for computers with no clock battery like raspberry pis. So you at least have a time from this century until clock sync

stonewareslord··on A Rust match made in hell
You can enable a ton more lints:

    #![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)]
This might be too annoying for some people, but you can choose to allow ones that don't matter and keep the rest.

Notably: it will warn for as truncation, integer arithmetic (a+b can panic or overflow; use checked_/wrapping_/saturating_), calling a function in unwrap_or, etc.

Lints: https://rust-lang.github.io/rust-clippy/master/index.html

stonewareslord··on NSA and CIA spied on by using data harvesting advertiser networks
The worst part is, once you've selected high accuracy (or accidentally clicked allow once), you can neber lermanently disable it again. It will re-enable high accuracy every time location is turned back on. I don't know how that was legal.

I don't know if this is still the case as I don't see a high accuracy option in settings anymore.

Sorry can't find better sources. Just personal experience and: https://forums.androidcentral.com/samsung-galaxy-note-3/5023... https://forum.xda-developers.com/t/location-mode-sets-to-hig...

stonewareslord··on Ask HN: Do you manage your family's digital safety?
> It could be life or death.

What does this mean? Isn't it better to teach them how to be safe so when they grow up they will be safe? Instead of teaching them nothing but to not trust you?

Once your monitoring no longer exists on their devices, what do you think they'd do?

stonewareslord··on Why Discord is switching from Go to Rust (2020)
In the article they describe their attempts at tuning and weren't happy with the results
stonewareslord··on Vim Color Schemes
I use i3 and win+enter is bound to spawn a new terminal. I had read that kitty was supposed to be super fast, but I tried it out and spawning a terminal was taking .5-1 second!

I looked it up and found https://github.com/kovidgoyal/kitty/issues/330 where the dev says:

> that's just python interpreter startup time

So... The answer is just "yeah it's slow". When you're used to a few milliseconds for terminal spawn, .5s is eons.

stonewareslord··on Vim Color Schemes
The (arcane) tricks to make vim or any editor work well is:

* export TERM=xterm-256color

* Use tmux attach -2 (-2=256color)

* In tmux <c-b>:set -g escape-time 0

* In vim, :set t_Co=256

If your terminal is the issue, use rxvt-unicode256color as it is the best terminal emulator (kitty is too slow (Python), urxvtd can segfault, xterm lacks features), or iTerm2 for Mac (Terminal.app recently broke colors and haven't figured out how to fix them, plus it lacks panes which I use to simulate an i3 environment). On Mac you have to enable option as meta key to make alt work as well

stonewareslord··on Firefox removed Yandex search option
As far as I know, Firefox is the easiest browser to add this back in. Right click on basically any search box and Add A Search Shortcut and you can bind it to "ya" or something.

Similar to duck duck go bangs but it has to be a prefix and ! Isn't required. w => wipedia, y => youtube

stonewareslord··on Firefox removed Yandex search option
I do understand the frustration with things like that but I just think people forget the big picture. Totaling all annoyances and negatives about Mozilla (which are a lot) against the competition makes me seriously glad I don't use them.

This hypocracy+everything I listed about FF+everything else Mozilla has done is a drop in the bucket compared to the user-hostile world that is Edge/Brave/Chrome.

To be clear: I agree with you. I harden Firefox because their defaults do not make me happy. But it's going to take a whole lot more bad decisions before they're worse than their competition.

stonewareslord··on Firefox removed Yandex search option
Did it really cross a red line for you? I feel like Firefox is judged much more harshly than Chrome and it's unfair.

Mozilla the company has made some terrible decisions that I strongly disagree with (update page featuring a movie ad, pocket integration, removing a search engine from the defaults, nerfing android addons for no reason)

But compared to every other browser, I don't understand how people think it's even a comparison. Chrome (user history tracking, targeted advertising, FLOC, manifest v3, strong-arming due to market share, etc etc), Edge (same as chrome but replace G with M), and Brave (referral link injection, cryptocoin adware).

To me, no single thing on FF's list is worse than any single thing in the other list. And together it's out of the question which is better.

I don't think it's useful to tell regular people not to use Firefox either unless you tell them they really shouldn't be using the other three (which I doubt many are doing). Am I missing something? Honest question - do you really think the negatives of having someone use not-firefox outweigh the negatives of Firefox?

Page 1 of 4Next →