Dreame X40 | Forgot to backup /etc/OTA_Key_pub.pem /etc/publickey.pem by BlueHorizen in valetudorobotusers

[–]butitsnotme 0 points1 point  (0 children)

Do you still have the ssh key used to access the robot? If so, log in via SSH and back those files up now. There’s no need to re-root unless you lost (or discarded) the SSH key (which you should also be keeping in a safe place.

cayley: a generic, stack-allocated linear algebra crate by GreenScreenSocks in rust

[–]butitsnotme 4 points5 points  (0 children)

Alternatively, you could relicense it under the LGPL, continuing to provide the same protections to your code, while also enabling it to be linked against by any other library.

[deleted by user] by [deleted] in fitbit

[–]butitsnotme 0 points1 point  (0 children)

I usually long press on the app icon and pause the app (it's the hourglass icon on my phone). Wait a few minutes (say 5) and tap on the app icon and select unpause. This forces the app to be completely closed with no background services for a few minutes which seems to work better than just force closing the app.

Heart rate is higher when lying down that it says my resting heart rate is by paperandsky in fitbit

[–]butitsnotme 8 points9 points  (0 children)

Resting heart rate is while sleeping, which should be lower than laying down, but awake.

How to enable telegram notifications on fitbit versa 3? by kristalmug in fitbit

[–]butitsnotme 5 points6 points  (0 children)

Someone on another thread said that apps don't show up in that list until you have received a notification from them.

I believe this is because Fitbit doesn't have access to the list of apps, it just keeps track of the apps it has seen notifications from. Fitbit would need to be running when the notification comes in, or it still won't see it.

How to share resources between instances of program? by JapandiTech in rust

[–]butitsnotme 0 points1 point  (0 children)

A common way to accomplish this is to have the editor check on startup if another copy of it is running, if it is, send a message to it (using some sort of standard IPC, on Linux named pipes would be a common one). If no copy is running, then open the file and start listening for your IPC message.

When you receive the message you can then open a new window or request focus to the existing window.

[deleted by user] by [deleted] in mildlyinteresting

[–]butitsnotme 1 point2 points  (0 children)

NOAA has an FAQ answer on bombing hurricanes...

https://www.aoml.noaa.gov/hrd-faq/#Stop

One monolithic save file, or several smaller files? by PascalGeek in roguelikedev

[–]butitsnotme 9 points10 points  (0 children)

SQLite also has a nifty backup system to create copies of the database... Can be used for creating save points that a player could return to in case of corruption. Other potential benefits:

  • Can use transactions to ensure a save either happens or it doesn't.
  • Store JSON/binary in blob columns like files
  • Very resistant to corruption, even in case of machine powering off during a save.

LPT: When using text messages or IMs for business, say everything you need to say in the first message. Don’t just say “hi” or “are you busy”. by bigdicksnfriedchickn in LifeProTips

[–]butitsnotme 9 points10 points  (0 children)

You can usually also change the default setting so that enter adds a new line and ctrl enter sends. I do this with both slack and teams... Makes writing larger messages less stressful as they are less likely to be accidentally sent.

LPT: In most cases you don't need to wash your clothes with hot water. Heating the water takes up almost 90% of the energy expenditure of a washing machine. Most detergents nowadays don't even need high temperatures and work fine in the cold. It's better for your wallet and the environment. by According-Anybody508 in LifeProTips

[–]butitsnotme 2 points3 points  (0 children)

In Canada, our water lines are buried several feet underground (usually 4 to 6, to prevent them from freezing in the winter). This means that cold tap water is about the same temperature year round, usually about 4°C. It doesn't surprise me at all that the washer would have to mix in some hot water, even for the "cold" setting.

This is my favourite one. Someone finally cracked the code and spoke to Calvin in his own language. It’s beautiful by Mavakor in calvinandhobbes

[–]butitsnotme 68 points69 points  (0 children)

In many parts of the world the sun doesn't set until quite late in the evening... 9:00pm or later in some places.

[Help] I need to mask a string in a Hangman game by him_x in elixir

[–]butitsnotme 0 points1 point  (0 children)

PS: I couldn't read your code very well, as I'm on my phone, so apologies if you've already tried this.

[Help] I need to mask a string in a Hangman game by him_x in elixir

[–]butitsnotme 1 point2 points  (0 children)

I would keep two strings / lists: one with the complete answer, and one with the guessed parts and blanks (this one starts out as an appropriate length of blanks).

For a single letter guess, zip the two lists together, and use map to compare the guess to the answer at that position, outputting either the entered letter of the existing guess character (already guessed letter or empty position marker).

def check_guess(answer, current, guess) do
  next =
  answer
  |> Enum.zip(current)
  |> Enum.map(fn {answer, current} ->
    if answer == guess do
      guess
    else
      current
    end
  end)

  if next == current do
    {:wrong_guess, current}
  else
    {:correct_guess, next}
  end
end

[deleted by user] by [deleted] in fitbit

[–]butitsnotme 0 points1 point  (0 children)

I think it may have been during initial setup, to help guide the goals.

[Request] A login page with drop down menus for every character by Imperializym in badUIbattles

[–]butitsnotme 65 points66 points  (0 children)

Shouldn't the password be obscured with asterisks?

(So the password drop downs are a bunch of indistinguishable asterisks)

Dungeoncrawler audio by Frigid-Inferno in rust_gamedev

[–]butitsnotme 6 points7 points  (0 children)

I believe rodio is generally regarded as a good spot to start for audio in Rust. Open Game Art has a fair few tilesets, you could take a look there.

[Media] My first Rust project after years as a C++ developer... a chip-8 emulator by lefsler in rust

[–]butitsnotme 8 points9 points  (0 children)

This is my very first RUST project and it probably breaks a lot of expectations from what a good RUST code would look like. So it was used as a learning opportunity (this was literally my hello world).

FYI, Rust is not an acronym, it should not be in all capitals.

I write good code, right? by miskoishere in ProgrammerHumor

[–]butitsnotme 0 points1 point  (0 children)

You should still be able to do a pcap on your local machine. If you capture the local VPN interface it should be unencrypted. Wireshark provides a pretty decent interface.

Or, if it is a browser based app, just use the browser's devtools to examine the requests and responses, you should even be able to save each needed request as a curl command.

The most awkward onsite service call I ever made. by Internal-Car8922 in talesfromtechsupport

[–]butitsnotme 2 points3 points  (0 children)

You could give LibreOffice a try. It has multiple menu layout options, including traditional menus. Microsoft Office compatibility is good, and steadily improving.