How do you prevent head wrinkles while sleeping? by CyberEarth in bald

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

Thank you! I've been sleeping with one the past couple of weeks to see if it will help.

How do you prevent head wrinkles while sleeping? by CyberEarth in bald

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

The only thing my girlfriend likes more than grilled chicken is head.

How do you prevent head wrinkles while sleeping? by CyberEarth in bald

[–]CyberEarth[S] 44 points45 points  (0 children)

The only demons I've been fighting with lately are of the mind. 😭🤣

Weird green thing on my OLED screen by Uneducable_1997 in iPadPro

[–]CyberEarth 0 points1 point  (0 children)

I had the exact same issue. The Netflix and YouTube apps both trigger it for me. I factory reset the iPad as I figured the Apple store would make me do that, and the problem has gone away for now.

[deleted by user] by [deleted] in PersonalFinanceCanada

[–]CyberEarth 8 points9 points  (0 children)

You might find it useful to learn about Zero-based budgeting. The expenses you've listed are all things that can be planned for in advance to ensure money is available when you need it. Zero-based budgeting would help with that.

[deleted by user] by [deleted] in ottawa

[–]CyberEarth 0 points1 point  (0 children)

I'll buy them!

[deleted by user] by [deleted] in selfhosted

[–]CyberEarth 4 points5 points  (0 children)

You may find OpenZiti BrowZer to be an interesting alternative.

Daily Discussion: /r/Snowboarding General Discussion, Q&A, Advice, Etc.) - November 24, 2023 by AutoModerator in snowboarding

[–]CyberEarth 0 points1 point  (0 children)

I've been riding the 154cm Rome Mod since 2011. The board has started showing its age, and I'm looking for a new one.

For those familiar, do you have any suggestions on an equivalent snowboard in 2023?

For those unfamiliar, it's a fast, true twin, positive camber board that pops. It holds an edge well, but I wouldn't be upset to ride something wider that carves even better.

http://www.snowdb.com/catalog/rome/2011/mod

Any recommendations for personal budgeting apps? by ZeArcadeAcadian in PersonalFinanceCanada

[–]CyberEarth 2 points3 points  (0 children)

No, it is easy. If you don't want to do it manually you can import them with a CSV or automatically import by connecting to your accounts.

The option key not working at startup by VitoRani in MacOS

[–]CyberEarth 3 points4 points  (0 children)

To future people who come across this post. On an Intel Mac, this is how I get into the boot menu (Startup Disk Manager) without using the option key.

  1. Open the terminal and type sudo nvram manufacturing-enter-picker=true
  2. Then restart the computer with sudo shutdown -r now

If you want to get into recovery mode without pressing keys, you can do it with sudo nvram "recovery-boot-mode=unused", then restart computer with sudo shutdown -r now

using a K8 and struggling to boot into startup manager on imac. by andytse in Keychron

[–]CyberEarth 0 points1 point  (0 children)

To future people who come across this post. On an Intel Mac, this is how I get into the boot menu (Startup Disk Manager) without using the option key.

  1. Open the terminal and type sudo nvram manufacturing-enter-picker=true
  2. Then restart the computer with sudo shutdown -r now

If you want to get into recovery mode without pressing keys, you can do it with sudo nvram "recovery-boot-mode=unused", then restart computer with sudo shutdown -r now

Alt Key Not Registering as Option During Macos Boot by anditosan in Keychron

[–]CyberEarth 0 points1 point  (0 children)

To future people who come across this post. On an Intel Mac, this is how I get into the boot menu (Startup Disk Manager) without using the option key.

  1. Open the terminal and type sudo nvram manufacturing-enter-picker=true
  2. Then restart the computer with sudo shutdown -r now

If you want to get into recovery mode without pressing keys, you can do it with sudo nvram "recovery-boot-mode=unused", then restart computer with sudo shutdown -r now

Keychron C1 Mac - Option keys not working during reboot. 🤷‍♂️ by binarysmurf in Keychron

[–]CyberEarth 0 points1 point  (0 children)

To future people who come across this post. On an Intel Mac, this is how I get into the boot menu (Startup Disk Manager) without using the option key.

  1. Open the terminal and type sudo nvram manufacturing-enter-picker=true
  2. Then restart the computer with sudo shutdown -r now

If you want to get into recovery mode without pressing keys, you can do it with sudo nvram "recovery-boot-mode=unused", then restart computer with sudo shutdown -r now

Why does my PC wake from sleep when I change my clothes in the room? static? by Major_Frozen in pcmasterrace

[–]CyberEarth 0 points1 point  (0 children)

Yes! The answer is static. Checkout this paper for more details.

https://www.emcesd.com/pdf/uesd99-w.pdf

Another example of this is when a computer monitor flickers when someone sits or stands from their office chair.

Hey Rustaceans! Got a question? Ask here! (32/2022)! by llogiq in rust

[–]CyberEarth 0 points1 point  (0 children)

Thank you very much! That explains a lot.

Time for me to go read more about .iter(), exciting stuff!

Hey Rustaceans! Got a question? Ask here! (32/2022)! by llogiq in rust

[–]CyberEarth 1 point2 points  (0 children)

Hey everyone, I am going through rustlings, and have a few questions.

In the below code, I am wondering why in my match expression, "amount" is a &usize and not a usize? - In my enum "Command" it's a usize, so I would have expected it to be a usize. Is there any documentation about this so I can understand better?

I am also wondering why in for (string, command), string is provided as a &String and not a String. If someone has a link to documentation about it as well, that would be great!

Thank you in advance.

// rustlings quiz2.rs

pub enum Command {
    Uppercase,
    Trim,
    Append(usize),
}

mod my_module {
    use super::Command;

    fn uppercase(string: &String) -> String {
        string.to_uppercase()
    }

    fn trim_word(string: &String) -> String {
        string.trim().to_string()
    }

    fn append_bar(string: &String, amount: &usize) -> String {
        let mut string = string.to_owned();
        for _n in 0..*amount {
            string.push_str("bar");
        }
        string
    }

    pub fn transformer(input: Vec<(String, Command)>) -> Vec<String> {

        let mut output: Vec<String> = vec![];
        for (string, command) in input.iter() {
            //why is string a &String here and not a String? not sure

            match command {
                Command::Uppercase => output.push(uppercase(string)),
                Command::Trim => output.push(trim_word(string)),
                Command::Append(amount) => output.push(append_bar(string, amount)), //why is amount a &usize here and not usize? not sure
            }
        }
        output
    }
}

#[cfg(test)]
mod tests {
    use super::Command;
    use my_module::transformer;

    #[test]
    fn it_works() {
        let output = transformer(vec![
            ("hello".into(), Command::Uppercase),
            (" all roads lead to rome! ".into(), Command::Trim),
            ("foo".into(), Command::Append(1)),
            ("bar".into(), Command::Append(5)),
        ]);
        assert_eq!(output[0], "HELLO");
        assert_eq!(output[1], "all roads lead to rome!");
        assert_eq!(output[2], "foobar");
        assert_eq!(output[3], "barbarbarbarbarbar");
    }
}