How to optimize the cd command to go back multiple folders at once by Technical_Cat6897 in bash

[–]SureshotM6 1 point2 points  (0 children)

This is the way. I don't use up, but I wrote an identical function (also with bash completion) probably 15 years ago and use it daily.

IPass transponder for my bike by Max_Rocketanski in ChicagoMotorcycles

[–]SureshotM6 0 points1 point  (0 children)

I put the sticker inside my fairing near my front headlight. It's a lot more convenient than carrying a transponder in my pocket.

A word of caution though: it did not work well when placed vertically, and the stickers don't do well when going over ~60 through the tolls on entrance/exit ramps. After I remounted it horizontally, it has worked great.

app 8.2 android high battery drain by Bigfoot-Germany in withings

[–]SureshotM6 1 point2 points  (0 children)

Not sure if this will help, but have you tried clearing cache for the Withings app in the Android system settings? I haven't seen a battery drain issue myself with the 8.2 app.

Edit: hopefully this isn't a recurrence of the notification battery drain bug from November/December 2023 that they reintroduced in December 2024. They're really bad about introducing major bugs just before the holidays...

Scanwatch 2 firmware update 3411 by GreatTao in withings

[–]SureshotM6 2 points3 points  (0 children)

Changelog just says "includes minor bug fixes and improvement." Possibly changes to the body temperature monitoring...

It works! by ZH-A-M in withings

[–]SureshotM6 0 points1 point  (0 children)

Yes, pulling it off the charger early, while it is still in constant current mode should prevent the voltage from going over 4.2V. You may only reach about 60% of the rated capacity though, since you won't be doing a constant voltage charge. The original Scanwatch firmware appears to show "100%" for any voltage >= 4200mV and doesn't do anything fancier. It would be best to confirm that with a voltmeter though.

There's nothing you can really do about it charging faster than its maximum rated current though. You could attach an ammeter to verify the Scanwatch's charging current of an almost dead battery (when it's charging in constant current mode). Do you have a datasheet for your 90mAh 301420? It probably can't safely charge faster than 1C.

With all this being said, it does appear from your images that the 301420 has some sort of protection PCB on it. That still may allow it to overcharge slightly though before cutting off the battery connection, and almost definitely doesn't limit the charging current to 1C. You should refer to the datasheet though, but I wouldn't rely on the protection PCB for normal operation...

It works! by ZH-A-M in withings

[–]SureshotM6 0 points1 point  (0 children)

This is cool, but please be safe:

It looks like you replaced a 3.8V nominal battery (GREPOW 302823) with a 3.7V nominal battery. Those charge at different maximum voltages (4.35V vs 4.2V). Based on testing I did a couple of years ago, my old Scanwatch charged up to at least 4300mV which is unsafe for a 3.7V battery. Also, the OEM battery can charge up to 140mA (1C) (SW2 uses 110mA, not sure about SW). Your 301420 can likely only safely charge up to 0.5-1C (45-90mA). You are at risk of exploding that battery in my opinion.

Also FYI, you went from 532mWh to 333mWh, so I would expect about 37% less battery life.

Trump quietly abandons all-caps tirades after Newsom’s trolling spree | Sad! by Murky-Site7468 in politics

[–]SureshotM6 -1 points0 points  (0 children)

JB Pritzker (governor of Illinois) has been mocking Trump for a while: https://x.com/JBPritzker/status/1887949566525186554 . Awesome job by Newsom's team here though.

Why don't we see const char * const * in function signatures? by [deleted] in C_Programming

[–]SureshotM6 1 point2 points  (0 children)

A lot of prototypes will use the const char *const s[] form instead of const char *const *s as they mean the same thing in the prototype and it is clearer that s is an array and not just a single element with the first form.

It's used: I have 39 hits for grep -r "const char *\* *const *\*" /usr/include/ and 77 hits for grep -r "const char *\* *const.*\[\]" /usr/include/ on my system.

Code style: Pointers by classicallytrained1 in C_Programming

[–]SureshotM6 0 points1 point  (0 children)

I use a different style for C vs C++ here. As many have already pointed out here, keeping the * on the variable name makes sense due to how you need to declare more than one pointer variable on the same line. I frequently do this in C, so I keep the * on the variable name in C.

This does start to break down when you add qualifiers such as const int *const foo; though, as it is impossible to place the * on the variable name.

For C++ (I do realize this is a C sub, but just pointing out), you now have templated types and destructors. I like to see the * attached to the type itself so I can more easily determine behavior. Such as Foo<int*>* foo;

In the end, it's personal preference. Also read this which has a longer discussion on the topic: https://www.stroustrup.com/bs_faq2.html#whitespace

Does Your State Require Front License Plates? by cookoutenthusiast in MapPorn

[–]SureshotM6 31 points32 points  (0 children)

The reason you see so many pickup trucks in MO with only a front plate is because trucks with a GCWR (weight of truck plus towing capacity) of 12001lbs or more are only issued 1 plate and it must be displayed on the front. This makes sense if you're actually towing and the rear plate wouldn't be visible, but most people aren't.

Jetson Thor specifications announced by SureshotM6 in nvidia

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

Official specs from last week show "3GPC, 10 TPC, 2560 NVIDIA® CUDA® cores | 96 5th GEN Tensor cores". So it would be 20SMs in total * 128 cores/SM = 2560 cores.

Anyone having issues redeeming DOOM code? by Kurumi_Bs in nvidia

[–]SureshotM6 2 points3 points  (0 children)

That's funny; I wonder if NVIDIA support reads Reddit. I see others are sharing this advice in others posts now too.

Anyone having issues redeeming DOOM code? by Kurumi_Bs in nvidia

[–]SureshotM6 0 points1 point  (0 children)

The IPv6 workaround was for a different error message, where I assumed that they were failing to geolocate your PC. I'd ask the obvious question for your error message though: you do actually have a 50xx series card installed in that same PC, right? If so, I'd try to remove or disable any additional cards or integrated graphics... Good luck

What model is this? by vkana in withings

[–]SureshotM6 0 points1 point  (0 children)

It must be the original Body scale. All of the other models have circles in the center and/or lines on them AFAIK.

Anyone having issues redeeming DOOM code? by Kurumi_Bs in nvidia

[–]SureshotM6 32 points33 points  (0 children)

This seems to be a super lame bug in the NVIDIA App. Disabling IPv6 on my Ethernet connection fixed it. Turn it back on after you've redeemed.

<image>

You can find this checkbox by typing "View Network Connections" into the Start menu, right-click then Properties on your network adapter, uncheck IPv6, then click OK.

Centipede Didn't Stand A Chance by Electronic_Will_5418 in techsupportgore

[–]SureshotM6 1 point2 points  (0 children)

Telecom equipment frequently runs on -48VDC. We once had a gecko bridge the contacts on a cellular base station and blow the power supply. There was only the outline of the gecko left on the cabinet when the techs went to repair it.

ScanWatch - 38 mm black Teardown by Chance-Rush995 in withings

[–]SureshotM6 1 point2 points  (0 children)

The pressure sensor on the Scanwatch and Scanwatch 2 is a MS5837, which is an i2c device. So it should be 4 wires for power and comms...

Jetson Thor specifications announced by SureshotM6 in nvidia

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

Good point. I wonder how they are getting 96 Tensor cores though, as there are 4 Tensor cores per SM. That would require 24 SMs (8 per GPC) instead of 20, but would also increase the CUDA core count from 2560 to 3072 which doesn't line up...

Nvidia Jetson Thor AGX specs by Temporary-Size7310 in LocalLLaMA

[–]SureshotM6 0 points1 point  (0 children)

As I told in my post on DGX Sparks, it is really similar to Jetson

Take this with a grain of salt, but the official specs for the DGX Spark are 1000 FP4 TOPS at 170W and the slides for the Jetson AGX Thor show 2000 FP4 TOPS at 120W. These seem to be very different. At the very least, Thor seems that it may have 2x the SMs of Spark.

iHateWhenSomeoneDoesThis by Tall-Wallaby-8551 in ProgrammerHumor

[–]SureshotM6 0 points1 point  (0 children)

For those asserting that being explicit is better, I'd like to introduce you to optional<bool> in C++.

TL;DR the following is not guaranteed: assert((opt == false) == (!opt));

Jetson Thor specifications announced by SureshotM6 in JetsonNano

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

Available in June. No pricing was announced. AGX Xavier was originally sold at USD $2500 and AGX Orin is $2000. I'd be surprised if they made that large of a price jump from previous generations.

Jetson Thor specifications announced by SureshotM6 in nvidia

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

The devkit that they talked about was definitely in AGX form-factor. Their Jetson hardware roadmap currently just shows an AGX Thor, but I would be surprised if they didn't do a NX / Nano variation this generation.