HN user

stonewareslord

256 karma
Posts0
Comments113
View on HN
No posts found.

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

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.

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?

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/

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.

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.

Captive Portals 4 years ago

How do you enforce the physical check with captive portal? Do you give everyone a shared password to go into the portal?

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

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.

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

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
    }

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

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

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...

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?

Vim Color Schemes 4 years ago

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.

Vim Color Schemes 4 years ago

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

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

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.

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?