solrize

joined 2 years ago
MODERATOR OF
[–] solrize 0 points 1 hour ago

I don’t like the current landscape of python type checkers.

I figure that Python itself is at the bottom of this. It simply wasn't designed for static types. Mypy is still of some use but if you want a statically typed language, trying to graft a type system onto a unityped language hasn't worked out well as far as I know. See also: the Erlang dialyzer, Typed Racket, and whatever that Clojure extension is called. Even Scala has its problems because the JVM has its own type system that isn't that great a fit for Scala.

Also, why Rust as the implementation language? Just for speed? It seems a shame to not use Python/PyPy.

[–] solrize 10 points 1 hour ago

FIrst, fill it with water...

[–] solrize 8 points 1 hour ago

with the message: “Let’s get carving.”

Surely she meant "Carve, baby, carve"?

[–] solrize 18 points 20 hours ago (2 children)

Write code, lots and lots of it. Make it really good, clean code. Rewrite it multiple times if that's what it takes to get it clean. Developing those instincts puts you way ahead of just reading about another damn framework.

[–] solrize 1 points 1 day ago* (last edited 17 hours ago)

This is nuts, and is it an actual special battery too, or just a 1/2AAA or 10180?

I remember Cyansky making some silly lights before, and I guess they are still at it.

Added: I see on the BLF review that the battery is a 16280. No idea if that's a standard sized, but it's definitely uncommon. They could have just used a 16340. Silly.

Added 2: I wonder if it could be a 15270 aka RCR2? I guess 16280 would be close to 1/2A but again it seems weird.

[–] solrize 73 points 2 days ago (7 children)

Send 'em back where they came from! Oh wait....

[–] solrize 2 points 2 days ago

Thanks, yes, that is very helpful and is the type of thing I was wondering about, and also whether GCM somehow got wakeups from the baseband instead of just waiting on TCP.

I actually don't know whether I'm running anything right now that uses GCM in any important way. That presumes incoming phone calls and SMS really are alerted by the baseband and not by GCM (not sure if that is true). I'm using K9 from F-droid so presumably with no GCM credentials, and it seems to me (now that I think of it) that it polls IMAP every few minutes or so, somehow without obviously running in the background, hmm.

Anyway for this immediate application I guess I won't worry about battery impact too much unless I really notice a problem. I think listening on a socket is important enough that I should check into how well it works. The SMS approach seems like the lowest overhead in power usage though.

[–] solrize 4 points 3 days ago

I think they are worse now than they used to be, but they do work for some people. I was always suspicious of the PII gathered so I stayed away from them. Craigslist personals worked back when they existed, and Reddit can work. An important tip: copyedit your SPAG (spelling, punctuation, and grammar) to hell and back before sending a response, since the slightest error WILL hurt your chances.

[–] solrize 25 points 3 days ago (1 children)

I had to look up what a Pagani Zonda R was. A $2 mllion race car. Wow. (Spoiler: the one in the guy's apartment wasn't a functional car, but still).

https://supercarblondie.com/pagani-zonda-revolucion-crane-miami-pablo-perez-companc/

[–] solrize 4 points 3 days ago (1 children)

I don't understand how it's worse for the guy in the truck though. I've never used Snapchat so I'm likely missing something.

[–] solrize 0 points 3 days ago (3 children)
[–] solrize 17 points 3 days ago (5 children)

They don't have email? It's like the 1980s when only nerds had email.

16
submitted 3 days ago* (last edited 3 days ago) by solrize to c/android
 

A while back, people here kindly explained how typical commercial Android apps get push notifications. Quick version: notifiications are sent through Firebase Cloud Messaging (FCM), which communicates with Google Message Services (GMS), an always-on Android client app preinstalled on most Android phones. There's a FOSS alternative to GMS called MicroG but it's still an FCM client, and FCM is an evil Google service that client apps that use it have to enroll with even if you escape GMS on the client side.

Right now I'm interested in sending myself push notifications from a self-hosted service that I run on a VPS. Of course I don't want to deal with FCM. I also prefer to not have to develop an Android app as opposed to running something like an XMPP client.

It looks like there are some alternatives like Iris and Unified Push (unifiedpush.org). It looks to me that UP becoming the preferred solution, is that right? UP has its own always-on client that can receive messages from a UP server that you can self-host. This sounds ok to me in principle.

My main question is whether UP is somehow worse than GMS, in terms of being a background app that keeps a network connection open. Is GMS anything special in that regard, besides being preinstalled by Google? Would GMS use less battery power or anything like that?

I may also have to look into how XMPP works, if my server program is going to send messages through it. I actually have an unrelated reason to be interested in XMPP. But does that approach sound reasonable? Are there XMPP clients that are non-bloaty, don't eat battery energy in the background, etc.? I'd like a loud audio alert if I get one of these notifications from my server. Can I usually easily set up XMPP clients to allow that only from my own service, while not making sounds for anything else? I'm luddite enough that I still use IRC for online chat, but maybe I have to catch up with the ~~20th~~ 21st century about this. Is there a good community to discuss XMPP development and self-hosting? I.e. I'd want to self-host the XMPP server and use it to send messages to my phone from my own (also self-hosted) server app.

The simplest alternative I can think of is for my server program to just sometimes send me SMS messages through Twilio or similar. The alerts will be infrequent enough that I don't mind going this route. Does that sound easier? It's less in the self-hosted spirit but it gets rid of a lot of software on both the server and the phone, I guess.

Thanks!

 

8 games, 60 minutes + 30 second increment for Benjamin, i.e. classical TC though a bit quicker than some. Benjamin gets N odds in all games. Leela will play at bullet speed. The hardware is not specified in the thread I linked. Leela will apparently be running a network specially trained to play with knight odds. Match will be livestreamed on Youtube with GM Matthew Sadler commentating. It will take place over 3 days, January 25 through 27th.

For those not familiar, Leela is a neural net chess engine inspired by Alpha Chess Zero. GM Sadler is a co-author of "Game Changer", a book analyzing a bunch of games of Alpha Chess Zero, so he's just about an ideal commentator for this event. It should be interesting.

Added: official page about match: https://lczero.org/blog/2025/01/leela-vs-gm-joel-benjamin/

Results of first 5 rounds: 0-1, 0-1, .5-.5, .5-.5, 1-0. Leela has white in all games so this means Benjamin won the first two, drew the next two, then lost one (game 6 now in progress). Maybe he is getting tired. He said after the first day that he was "knackered".

 

They apparently do this every year. You have to make an account on their site which subscribes you to an email newsletter (you can unsubscribe) and deal with some popups and upsell attempts, but it's a decent basic 1AAA light from everything I've heard. 90 lumens, 1 level, 60mm long, maybe not great LED tint, i.e. sort of a less nice version of the Skilhunt E3A but still fine.

Users supposedly get free shipping on their first order and someone on reddit claims to have actually received this, but I didn't, and had to pay the $5.

It's 1 per person and there are apparently a lot of people trying to scam the site, so my payment got flagged as possible fraud (card declined). I called the card company and they fixed it, so my order went through.

I'm not a huge fan of Olight for various reasons, but hey, a free light, I'll take it.

 

It's an old "Soshine" branded NiMH AAA cell claiming 900mah. I'm not about to test it but I did use it for a while. I've standardized on Eneloops since then. Anyway this is FYI so you know that NiMH leaking is a thing.

31
submitted 1 month ago* (last edited 1 month ago) by solrize to c/android
 

Basically I've acquired a burner Android 8 phone and am running the target.com app which is the only way they let you get parking lot delivery at the store. I assume the Target app is spyware. I keep the phone powered off almost all the time which should limit the spying. The thing is, if I power up the phone and order something, then close the app, I still get an alert when the status of the order changes (e.g. it's ready for pickup). So the app is still listening for network traffic from Target.

Can anyone explain what is happening in Android and whether there is a way to make an app really stop? Does the app stay in a running state even after I've closed the UI part of it? Is there somethng like an inetd in Android that listens for network alerts and re-launches the destination app? Are there Android app permissions associated with this, that I can revoke?

I don't want to run this type of app on my main phone, but I had at first liked the idea of using a burner for such things. Now, though, I wonder if I need a separate burner for each suspicious app. Thanks.

15
submitted 1 month ago* (last edited 2 weeks ago) by solrize to c/flashlight
 

Rating: 4.5/5.

I needed another headlamp and was familiar with an earlier, micro-USB, white-led-only version of this light. Build quality of both is fine, I'd say not fantastic but perfectly usable for not too demanding purposes, and a terrific value for the price. Claimed water resistance level is IPX6. Headband is comfortable given that this is not a tiny light. I think it is still small enough to not need an over-the-head strap. Weight is about 108g including battery and strap.

Wurkkos and Sofirn both sell these lights and I think I heard somewhere that the actual manufacturer is Boruit. There are various models with different configurations. The H25LR has one white led, one 660nm (deep red) led, and USB-C charging.

Order date: Nov 22 2024. Got shipping notice on Nov 24. Package delivered December 5, so about 10 days transit from China to California, not bad. Cost was $19.99 including an 18650 battery. Shipping was free due to order being above $19. This is hard to beat.

The included battery is labelled with Wurkkos branding and says 3000 mah. It is an 18650 button top. I didn't test the capacity or charge current, but I measured the length at around 66.5mm not including the button, with the button adding another 2mm or so. So maybe it's a protected cell, I don't know. The springs in the light are pretty stiff. If you loosen the "tail" cap by 1/4 turn or so, the light breaks contact with the battery, giving you a lockout from accidental turn-on and also from parastic drain. I tried swapping in an unprotected flat top battery and that worked fine including the lockout.

The UI is fairly sane given that it's a 1-button light with multiple colors and levels that doesn't run Anduril. Short click to activate white led at the same level as last time, long click for red, also at same level as before. Once either led is on, hold down button to cycle through 4 levels. I didn't attempt brightness or runtime measurements.

My general comment about the beam is that it's more directional that I'd prefer, particularly for close-up usage. This is for both the white and red leds. It's not terrible, it's just that I like floody beams for reading and fixing stuff.

The lowest levels of both leds are ok, not super low. Some people appreciate ultra low levels and I can understand that. These are just regular low. I find that level 2 of the white led is about right for reading, walking indoors in the dark, etc. The higher levels are there when you need them.

The red led goes from low to quite powerful, like several watts. I don't quite understand the purpose of a powerful red led. Does anyone really want long distance outdoor illumunation in deep red? I would have been fine with just the low level, or a redesigned light with two full sized white leds, plus an auxiliary small red led. The red led for me is for minimal disturbance to your own night vision and that of others around you. So it should be just bright enough to maneuver in the dark or see an object (telescope, say) well enough to reach and turn a knob. I don't remember ever wanting a bright red light.

There is a handy featue of an RGB led under the on-off switch. When you first turn on the light, that led acts as a battery level indicator (green=charged, etc.) and it stays on for a few seconds. Also, when you plug in a USB charger, it lights red during charging and green afterwards.

The instruction pamphlet says charging takes 4-5 hours, suggesting a 500 ma charge rate similar to the micro-USB version. I.e. it's likely to be the same charging circuit except with a USB-C connector. That is ok with me. The instruction pamphlet also amusingly says that questions and problems should be emailed to [email protected], heh.

A slightly more "premium" approach would be to include faster charging (3 amps) and maybe powerbank output. I do like lights with built-in chargers, as opposed to the kind where you have to remove the battery and charge it outside the light. Sorry about that, Hank ;).

Wurkkos now has the interesting HD10 Mini which is a 14500 powered anglehead flashlight / headlamp with Anduril, sort of like the Emisar DW4 but smaller. I don't really care for the 14500 battery type but it would be nice to have a lightweight 18650/18350 version of this light (the DW4 is too heavy). Or it would be of more interest if it could run on 1.5 volt AA cells in addition to 14500. As it was, I went for the 18650 version instead. For a lightweight headlamp I have a Nitecore HA11 and might get or concoct something ultralight at some point.

Anyway that's my new light day for now and it has been a good one.

Addendum (December 26): I noticed something interesting about the front of the light, center, above and below the main leds (see circled green areas in the pic). There are two milled slots that look like they were designed to hold tritium markers. I guess I'm off to mixglo.com to get some. I'll have to measure the slots but basically 2x5mm or thereabouts.

Update: Mixglo situation is that 1.5x6mm vials are $6.50 so two vials plus a $6 tube of Norland adhesive (1 ml) would total $19. BUT, Mixglo offers untracked shipping for $6 only if the order value is $15 or less. Otherwise you need tracked shipping which costs $22. It's cheaper to make two separate orders. I think I'll order one vial plus the adhesive, try to install the vial, and then order a second vial if the first one goes in ok. I'll update if and when there's a new development. Fwiw, tritiumworkshop.com (in the UK) is another well regarded source of tritium but it ends up costing a little more, depending.

Update 2: more careful examination convinces me that those little holes weren't intended for tritium but were just part of the heat sink-like styling. But, it should still be possible to do something there or nearby between the "fins", possibly with a bit of Dremel-ing. I want to take some caliper measurements before ordering vials.

Addendum 2 (2025-01-12): I just checked and a protected Fenix flat top cell (67.8mm long) works fine in tihs light.

4
submitted 2 months ago* (last edited 2 months ago) by solrize to c/[email protected]
 

That is, turned on its side so the display is vertical, using an external keyboard. I'm thinking of getting one of the Yoga models, which are naturally suited to that. I run primarily browsers, emacs, and maybe calibre, under Debian GNU/Linux. My questions:

  1. Any issues getting the X server to work that way?

  2. Any issues with cables having to stick out of the edges and poke things? At minimum a power cable, but i like to use Ethernet instead of WiFi when I can.

Thanks!

6
Skilhunt E3A went poof (self.flashlight)
submitted 2 months ago* (last edited 2 months ago) by solrize to c/flashlight
 

I took it out of my pocket and tried to turn it on, hmm, twist switch was rather tight. Tightened it down or maybe it was already down. It didn't turn on but I figured I maybe had left it on all night by accident and drained the battery. Started to remove the head and heard a popping sound. Battery (alkaleak but fairly new) had some kind of black stuff on the casing near the negative terminal, no other obvious damage to the light or battery. I put in a new battery => won't turn on. So I guess the circuit is blown.

I like the light and they are affordable so I guess I'll get another, but it seems like a shame that I don't see much of a way to repair it or scrounge usable parts from it. I will try to remove the circuit board when I get a chance. Not now though.

Oh well. Bring a spare.

 

People keep mentioning GraphineOS as a reason to buy a Pixel, but in other regards the Pixel hardware doesn't seem so great. If you get a different phone that can run Lineage, is Graphene really better? Thanks.

view more: next ›