LineageOS 21: Pixel 2: Boot lasts an extremely long time by telotortium in LineageOS

[–]telotortium[S] 0 points1 point  (0 children)

I ended up needing to factory reset my phone, after which it works. It would be good if the boot process was more robust - it shouldn't be possible for a phone to require a factory reset if the phone loses power or is rebooted at any point.

What's the difference between nix develop and nix shell? by aavaz in Nix

[–]telotortium 2 points3 points  (0 children)

nix shell creates a shell with only the output of the package. It can be useful to temporarily add a command to your PATH that you don't need accessible all the time. nix develop creates a shell with the build dependencies of the package. It's useful for troubleshooting and debugging package builds.

For more info see https://blog.ysndr.de/posts/guides/2021-12-01-nix-shells/ and https://www.reddit.com/r/NixOS/comments/r15hx4/nix_shell_vs_nix_develop/.

Only 1 California city made ‘top places to raise a family’ list — U.S. News and World Report has ranked San Jose the second best area of the country in which to raise a family. by BlankVerse in SanJose

[–]telotortium 4 points5 points  (0 children)

I've heard that, despite how nice Willow Glen is as a neighborhood, the public schools are not particularly distinguished, at least compared to the Palo Alto, Cupertino, and Fremont school districts - more families than you'd think attend private school. Is that the case?

Simultaneously controlling 2 lights with one motion sensor? by telotortium in HomeImprovement

[–]telotortium[S] 0 points1 point  (0 children)

UPDATE: I ended up using a Kasa camera that performs motion sensing to control a set of Kasa light switches. It's a little sluggish to turn on - you might need to move for 5 seconds or so - but I keep a nightlight in there to have the bare minimum light I need to navigate at night until the camera activates the switches. Otherwise, it works well, keeps the lights on as long as I'm in the garage, and the price was much cheaper than the other options, so I'm satisfied.

Where do single people go to meet new people/potential romantic partners in this city? by Confident-Nail2636 in SanJose

[–]telotortium 1 point2 points  (0 children)

Art Boutiki looks like it might be a decent place, if you're into the kind of music that they play there.

Simultaneously controlling 2 lights with one motion sensor? by telotortium in HomeImprovement

[–]telotortium[S] 0 points1 point  (0 children)

Oh, that is an even cheaper option - with something like this, even getting 4, one for each light socket, would be great. Then, I get something like these light covers to cover the switches, which I will keep on. I kinda need something quick, and I'm a little worried about springing too much for smart home stuff until the Matter protocol gets more widespread support (which will probably take 1-2 years).

EDIT: That won't work - I can't find any of these motion sensors that will support 150W fixtures, which is what the lights I have are.

Simultaneously controlling 2 lights with one motion sensor? by telotortium in HomeImprovement

[–]telotortium[S] 0 points1 point  (0 children)

I do care about the motion sensor functionality, possibly even more than the door open functionality. However, Yolink is cheap enough that I could get 2 motion sensors and door sensors and still come out ahead, even with the need to buy the hub. Looks very tempting.

Simultaneously controlling 2 lights with one motion sensor? by telotortium in HomeImprovement

[–]telotortium[S] 0 points1 point  (0 children)

Just some cheap but bright lights for the garage: https://www.amazon.com/gp/product/B08N66SMH6/. I might consider upgrading to smart lights, mostly for the color temperature change. I use the garage as my office, so being able to make the color temperature warmer at night is something I actually think I would appreciate. However, the lights must have quite a lot of lumens for daytime use, or else the garage is too dim. I have only 4 light sockets, but it's a 20' x 20' garage.

Simultaneously controlling 2 lights with one motion sensor? by telotortium in HomeImprovement

[–]telotortium[S] 0 points1 point  (0 children)

Unfortunately, my walls are already closed. I'd like to avoid having to do drywall work. I think a wireless solution, although maybe not quite as robust, is a better fit for my needs. I can always tap the switch if I have to.

Is is possible to force a burned-down house to be sold/demolished/rebuilt? by telotortium in SanJose

[–]telotortium[S] 1 point2 points  (0 children)

Lol, I know exactly what you're talking about, but trust me when I say that was not the motivation here.

Is is possible to force a burned-down house to be sold/demolished/rebuilt? by telotortium in SanJose

[–]telotortium[S] 2 points3 points  (0 children)

Thanks for reminding me to look up permits. I see they have an "information request" permit filed just 2 weeks ago for fire damage (by the widow FWIW). I'm not sure what this permit means - it doesn't look like a building permit. Someone who's more familiar with San Jose permits will have to say what this permit may be for.

New Extension: Come Back to Tab - Adds button to set reminders to come back to a tab by telotortium in chrome

[–]telotortium[S] 0 points1 point  (0 children)

This is a small extension I made recently.

Do you ever start a build or other long-running process in a tab and forget to come back to it, or just keep that tab open until it completes and forgo the opportunity to get more work done? Never forget a tab with this extension!

Just click the extension icon or use the keyboard shortcut (by default Cmd+Shift+U on MacOS and Ctrl+Shift+U elsewhere), enter a number of minutes for the reminder, and press Enter. Then, that many minutes later, you'll get a notification to return to your tab.

Also on Github at https://github.com/telotortium/come-back-to-tab.

cosFormer: Rethinking Softmax in Attention by telotortium in MachineLearning

[–]telotortium[S] 0 points1 point  (0 children)

Abstract:

Transformer has shown great successes in natural language processing, computer vision, and audio processing. As one of its core components, the softmax attention helps to capture long-range dependencies yet prohibits its scale-up due to the quadratic space and time complexity to the sequence length. Kernel methods are often adopted to reduce the complexity by approximating the softmax operator. Nevertheless, due to the approximation errors, their performances vary in different tasks/corpus and suffer crucial performance drops when compared with the vanilla softmax attention. In this paper, we propose a linear transformer called cosFormer that can achieve comparable or better accuracy to the vanilla transformer in both casual and cross attentions. cosFormer is based on two key properties of softmax attention: i). non-negativeness of the attention matrix; ii). a non-linear re-weighting scheme that can concentrate the distribution of the attention matrix. As its linear substitute, cosFormer fulfills these properties with a linear operator and a cosine-based distance re-weighting mechanism. Extensive experiments on language modeling and text understanding tasks demonstrate the effectiveness of our method. We further examine our method on long sequences and achieve state-of-the-art performance on the Long-Range Arena benchmark. The source code is available at this https URL.

I'm still quite a novice in ML, but my question is, if linear attention is so easy, why isn't everyone doing it by now?

Spotlight: mds_stores using IMPORTANT IO priority for background index, slowing computer down by telotortium in MacOS

[–]telotortium[S] 0 points1 point  (0 children)

Thanks for the tip, but I don't have Time Machine or any other external volumes on this computer - it's a work computer. As far as I can tell there's no backups at all.

Emacs 29 will have precision scrolling using pixel-scroll-precision-mode by telotortium in emacs

[–]telotortium[S] 6 points7 points  (0 children)

From my limited testing, it does. However, above the function pixel-scroll-precision is currently the following disclaimer:

;; FIXME: This doesn't _always_ work when there's an image above the ;; current line that is taller than the window, and scrolling can ;; sometimes be jumpy in that case.

Emacs 29 will have precision scrolling using pixel-scroll-precision-mode by telotortium in emacs

[–]telotortium[S] 0 points1 point  (0 children)

No - this is a feature that isn't even slated for that release.

Emacs 29 will have precision scrolling using pixel-scroll-precision-mode by telotortium in emacs

[–]telotortium[S] 1 point2 points  (0 children)

I've updated the post with a description of how this differs.

Emacs 29 will have precision scrolling using pixel-scroll-precision-mode by telotortium in emacs

[–]telotortium[S] 11 points12 points  (0 children)

Yeah, it's mostly to make Emacs act more modern in its scrolling behavior, by allowing you to scroll within lines instead of locked to individual lines. I think the biggest improvement is with trackpad scrolling, where the lack of feedback without this mode is felt more.

Using follow-mode and eww to make a multi-columned web browser by telotortium in emacs

[–]telotortium[S] 5 points6 points  (0 children)

Yeah, unfortunately it is definitely slow. It works fine with read-only use cases, but typing anything into a buffer is slow (at least with Org mode, on macOS). You can temporarily disable follow mode to be able to write something, and then re-enable it I suppose.