diff --git "a/train.jsonl" "b/train.jsonl" new file mode 100644--- /dev/null +++ "b/train.jsonl" @@ -0,0 +1,2167 @@ +{"thread_id": "kg67jt", "question": "It says I need to close both of my label elements. Haven't I done that?", "comment": "I think the message is thrown off because you didn't close the input tags. Also, opening and closing tags need to be indented the same amount.", "upvote_ratio": 30.0, "sub": "ProgrammingQuestions"} +{"thread_id": "tkqyyc", "question": "I am new to rustc. Am I able to apply a #[derive()] to a type brought into scope with a use?\n\nI want to:\n\nuse: foo::Bar;\n\n#[derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]\nstruct A {\n b: Bar;\n c: Car;\n}\n\nbut this raises a compiler error:\nthe trait 'Archive' is not implemented for 'Bar'", "comment": "`derive` is only applied on declaration. You can't import a `struct` and change it with a `derive`. You'd have to actually go to the file where that `struct` was first declared and add the derive there.\n\nIf that's not possible, you'd need to find a way to not have `Bar` participate in that `struct` to use that specific derive.\n\nPs.: You can also just do what the `derive` is doing manually as well.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tmqc20", "question": "Clippy gives me the warning \"use of 'expect' followed by a function call\" regarding the following piece of code:\n\n`.expect(format!(\"Couldn't find position of {}\", search_word).as_str());`\n\nand advises me to use \n\n`.unwrap_or_else(|| panic!(\"Couldn't find position of {}\", search_word))`\n\ninstead. Does anyone know why this is the case?\n\nEdit:\nExplanation of all the warnings Clippy gives, which I somehow only found now some time after being helped out in this thread:\nhttps://rust-lang.github.io/rust-clippy/master/index.html", "comment": "`.unwrap_or_else(||)` is lazily evaluated, i.e. in your case the `format!()`/`panic!()` macros will get called only if the unwrapping fails. On the other hand, your `.expect()` will call `format!()` every time, even if the newly allocated string (the result of `format!()`) ends up not being used because the unwrapping succeeded. Clippy wants you to avoid an unnecessary allocation that `format!` may make.", "upvote_ratio": 310.0, "sub": "LearnRust"} +{"thread_id": "tmqc20", "question": "Clippy gives me the warning \"use of 'expect' followed by a function call\" regarding the following piece of code:\n\n`.expect(format!(\"Couldn't find position of {}\", search_word).as_str());`\n\nand advises me to use \n\n`.unwrap_or_else(|| panic!(\"Couldn't find position of {}\", search_word))`\n\ninstead. Does anyone know why this is the case?\n\nEdit:\nExplanation of all the warnings Clippy gives, which I somehow only found now some time after being helped out in this thread:\nhttps://rust-lang.github.io/rust-clippy/master/index.html", "comment": "Because the argument to `expect` is evaluated in any case (as function arguments are always evaluated before the call) so Clippy warns that you\u2019re potentially doing something expensive in *every* case even though it\u2019s only needed in the *exceptional* case.", "upvote_ratio": 110.0, "sub": "LearnRust"} +{"thread_id": "tnmcvl", "question": " I'm writing some code where I need to cast integers to float, but since the casting operation is something that happens very often in the script, I'd like to declare a constant and change the type of the casting from f32 to f64 in order to change all the casting operations immediately.\n\nIs it possible to do something like this in rust?\n\n const FLOAT: primitive type = f32; \n let x = 3 as FLOAT;", "comment": "Are you looking for the [`type` keyword](https://doc.rust-lang.org/std/keyword.type.html)?", "upvote_ratio": 180.0, "sub": "LearnRust"} +{"thread_id": "tnmcvl", "question": " I'm writing some code where I need to cast integers to float, but since the casting operation is something that happens very often in the script, I'd like to declare a constant and change the type of the casting from f32 to f64 in order to change all the casting operations immediately.\n\nIs it possible to do something like this in rust?\n\n const FLOAT: primitive type = f32; \n let x = 3 as FLOAT;", "comment": "As already said, `type` is what you are asking for. You can use it for the function and struct signatures to quickly change.\n\nBut as for the casting, eventually consider using `try_from` and `from` in place of `as` to ensure the casts don't cause unnecessary panics or unexpected behavior, especially if you want to swap across the board.\n\nRust's type-inference, combined with using `type`, can make non-panicking code that behaves consistently, and `as`, though convenient, has a bunch of possible changes. See https://rust-lang.github.io/rust-clippy/master/#as_conversions and the mentioned clippy lints for what I'm referring to.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "tp5tij", "question": "I've read a file to a String, and it ends with a '\\n' which makes me unable to convert it to a float, before moving on with other operations. I know that '/n' will have position 5, which makes hesitate between turning the string_var mutable and using string_var.pop() or going with string_var[0..5]. \n\nAre there any advantages with either of them which I should know?", "comment": "I would use [`.trim_end()`](https://doc.rust-lang.org/std/primitive.str.html#method.trim_end) (or `.trim()` if there might be whitespace at the beginning as well.)", "upvote_ratio": 120.0, "sub": "LearnRust"} +{"thread_id": "tp5tij", "question": "I've read a file to a String, and it ends with a '\\n' which makes me unable to convert it to a float, before moving on with other operations. I know that '/n' will have position 5, which makes hesitate between turning the string_var mutable and using string_var.pop() or going with string_var[0..5]. \n\nAre there any advantages with either of them which I should know?", "comment": "I might be wrong on some details but: \nSlice will create a new stack variable \nPop will (try to) get the last element and return it \n\nSo generally slice should have better performance. \nYou could also use `.truncate` which wouldn't do any bonus allocations or returns. \nBut unless it is some performance-heavy code all of them should do fine. And if it is, benchmarks are the way to go.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tptxcp", "question": "Doing rustlings I ran into \n\n match tuple {\n (r @ 0..=255, g @ 0..=255, b @ 0..=255) => Ok(Color{\n red: r as u8,\n green: g as u8,\n blue: b as u8,\n }),\n ...\n\nI never ran into syntax like this before and would like to read more about it but all I found was one line in the book. [The book appendix](https://doc.rust-lang.org/book/appendix-02-operators.html)", "comment": "It's a part of [identifier patterns](https://doc.rust-lang.org/reference/patterns.html#identifier-patterns). It matches the pattern on the right side of `@` and gives the name on the left side to the whole matched value", "upvote_ratio": 120.0, "sub": "LearnRust"} +{"thread_id": "tqey6a", "question": "I know how to print a set number of decimals, and leading white space/zeros, but I'd like to print only 3 digits of a float I'm handling (which I assume never will be > 1000, but can't guarantee won't have fewer digits than 3). Is there some built in way to do this? I can only come up with very convoluted/naive ways to achieve this myself.\n\nTo clarify, the following floats should be printed in the corresponding way: 123.45 -> 123; 12.345 -> 12.3; 1.2345 -> 1.23\n\nExample of a convoluted/naive solution:\n\nlet float\\_to\\_print: f64 = 12.345;\n\nlet non\\_digit\\_numbers = float\\_to\\_print.round().to\\_string().len();\n\nprintln!{\"{:.\\*}\", 3-non\\_digit\\_numbers, float\\_to\\_print};\n\n&#x200B;\n\nEdit:\n\nAnother possible solution which almost works, and seems better:\n\nlet float\\_to\\_print: f64 = 12.345; \nlet float\\_string = float\\_to\\_print.to\\_string(); \nlet float\\_to\\_print\\_trimmed = float\\_string\\[0..4\\].trim\\_end\\_matches('.'); \nprintln!(\"{float\\_to\\_print\\_trimmed}\");\n\n[https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=fb51b9a50c358198a76ae8493e06836d](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=fb51b9a50c358198a76ae8493e06836d)\n\nThe logic of the last solution is that if I want at least one decimal to be printed, there will be in total 4 chars (including the period). If there are no decimals to be printed, the slice will leave the string with a trailing period, which is fixed with trim\\_end\\_matches('.'). The issue which remains is that there's no guarantees that the digit won't have fewer digits than 3, which can be solved with some match-statement, but I'd prefer something that uses less resources.", "comment": "`format!(\u201c{:3}\u201d, my_float)`", "upvote_ratio": 90.0, "sub": "LearnRust"} +{"thread_id": "tqkemv", "question": "Hello everyone,\n\nI'm trying to implement some strong types for my application like `CharIndex(usize)` and `ByteIndex(usize)` which both wrap a simple number. I want these types to have basic math functions like `Add` , `Sub` , etc. which operate on the inner number. However, I don't want to have to implement all of them for every new wrapper type I make. Is there a way (or a crate) that allows reuse of the implementation of a type but with a different name? Or does nothing like that exist yet? I think writing a macro could be a solution, but I haven't written macros before and I'm wondering if there's a better solution.\n\n&#x200B;\n\nNote that a type alias is not what I want, since I would still be able to pass a `CharIndex` to a function which requires a `ByteIndex` (because they are the same type internally).", "comment": "You can use macros to implement various traits and methods for many types at once. This is the price you pay with a new type pattern, you have to explicitly define all the methods.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tqkemv", "question": "Hello everyone,\n\nI'm trying to implement some strong types for my application like `CharIndex(usize)` and `ByteIndex(usize)` which both wrap a simple number. I want these types to have basic math functions like `Add` , `Sub` , etc. which operate on the inner number. However, I don't want to have to implement all of them for every new wrapper type I make. Is there a way (or a crate) that allows reuse of the implementation of a type but with a different name? Or does nothing like that exist yet? I think writing a macro could be a solution, but I haven't written macros before and I'm wondering if there's a better solution.\n\n&#x200B;\n\nNote that a type alias is not what I want, since I would still be able to pass a `CharIndex` to a function which requires a `ByteIndex` (because they are the same type internally).", "comment": "Search on lib.rs for #newtype tag. I just did and found a few interesting takes on making newtypes more convenient:\n\nhttps://lib.rs/crates/shrinkwraprs\nhttps://lib.rs/crates/phantom_newtype\n\nShrinkwrap supports the macro approach and allows you to derive shrinkwrap and be able to access the inner value from the newtype in various ways.\n\nphantom_newtype provides 3 *structs* that implement commonly required traits and are generic over a tag which is used to make them unique to your type using phantom data. It's readme has examples.\n\nShrinkwraprs is much more battle hardened, popular, recently updated. I went to lib.rs to find it and stumbled upon phantom_newtype having never heard of it.\n\nphantom_newtype is really clever and I like the idea. It reminds me of [ghost_cell](https://lib.rs/crates/ghost-cell) and [slotmap](https://docs.rs/slotmap/latest/slotmap/) in some ways. People are able to do clever things with generics! I think you will find yourself more restricted compared to shrinkwrap, and the generics might make the code size bigger/smaller (I'm unsure) compared to shrink-wrapped newtypes.\n\nThere's also usage which looks the same as phantom_newtype but newer and only one struct. Usage has a less informative readme but you should review it if you are thinking of using a \"phantom-style\" newtype.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tquups", "question": "Hi,\n\nYes, another borrow checking challenge... The tools I have gathered so far dont work in this instance so Im in need of some help\n\nImagine a building structure that has floors, floors have apartments, and apartments have rooms. Rooms can have a depth, but also a min\\_depth. The challenge is to make sure all rooms in de building should have the largest min\\_depth as depth.\n\nI made a small code sample here, but note that there is one thing that is very important: The call to update\\_building MUST be in the for loop, because the consecutive updates depend on the result of update\\_building. This is not reflected in the code example. in other words, the `room.mindepth < room.depth` if statement in reality is a lot more complicated\n\n[https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=8a83ba92a1371f5d9837d589b0fdd9e6](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=8a83ba92a1371f5d9837d589b0fdd9e6)\n\nI tried solving this in the following ways:\n\n\\- using loops that use non-mutable variables.\n\n\\- using `while` loops and indices. Since I still need references to the apartments and rooms this also fails.\n\n\\- using `for index in 0..list.len()` kind of loops\n\n\\- cloning the building to use different versions in the for loop and in the `update_building`. This doesnt work of course since the update depends on previous updates.\n\nAll of these run into borrow checker problems, except for the last one that doesn't give correct results", "comment": "Welcome to Rust!\n\nThis is a classic case of *iterator invalidation.* The problem is that if you modify the building the `for` loop indices may now be invalid, or at least may have unintended values: the number of items at each level might be affected by the building update. This is a problem for most any imperative language, not just for Rust: the difference is mainly that Rust will catch it at compile time.\n\nIn what way does a building update depend on previous updates? Does the structure of the building change? If so, you'll have to think carefully about your algorithm and how to get it to work right in this case.", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "trn92p", "question": "I assembled a Computer Science Curriculum that helps practice the acquired academic knowledge in Rust. If you want to learn systems programming in Rust or just be a better programmer, this is for you! Critiques and Contributions are welcome!", "comment": "Thanks, I'll go over it at some point, just not now \ud83d\ude04", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "trn92p", "question": "I assembled a Computer Science Curriculum that helps practice the acquired academic knowledge in Rust. If you want to learn systems programming in Rust or just be a better programmer, this is for you! Critiques and Contributions are welcome!", "comment": "Awesome", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tsyuhb", "question": "Hello, everybody.\n\nSo I am trying to create simple file reading system, basically you can create file and write into it or you can load a file and read whats inside of it, and I am stuck at writing stuff into a file.\n\nThis is my code for reading and displaying data from a file\n\n fn load_file(){\n \n print!(\"File to load \");\n let file_name = get_input();\n let file = File::open(&file_name);\n \n match file{\n Ok(f) => {\n let reader = BufReader::new(f);\n \n println!(\"##### DISPLAYING DATA FROM FILE {} #####\", &file_name);\n for (_,line) in reader.lines().enumerate(){\n let line = line.unwrap();\n println!(\"{}\",line);\n }\n \n println!(\"\\n \");\n load_menu();\n },\n Err(_) => {\n println!(\"\\n ####### ERROR CAN'T LOAD FILE ####### \\n\");\n load_menu();\n }\n }\n }\n\nAnd this is my code for creating the file and writing data into it\n\n fn get_input() -> String{\n let mut input = String::new();\n print!(\"> \");\n io::Write::flush(&mut io::stdout()).expect(\"flush failed\");\n match io::stdin().read_line(&mut input){\n Ok(_) => String::from(input.trim()),\n Err(_) => String::from(\"Error, Wrong Input\")\n }\n }\n \n fn create_file(){\n \n print!(\"Name of the file to create \");\n let file_name = get_input();\n let file = File::create(&file_name);\n \n match file{\n Ok(_) => {\n println!(\"##### CREATING FILE {} #####\", &file_name);\n \n let user_input = get_input();\n match file.write_all(user_input.as_bytes()){\n Ok(_) => {\n println!(\"Data has been writen into the file !\")\n },\n Err(_) => {\n println!(\"ERROR: Can't write into file\")\n }\n };\n load_menu();\n },\n Err(e) => {\n println!(\"{}\",e);\n println!(\"\\n ####### ERROR CAN'T CREATE FILE ####### \\n\");\n load_menu();\n }\n };\n }\n\nI had tried using this \n\n fn write_into_file(){\n let user_input = get_input();\n let file = File::open(\"file.txt\").unwrap();\n file.write_all(user_input.as_bytes()).unwrap();\n }\n\nHowever this doens't work at all. I had followed the e-book provided by the Rust, but there is nothing about working with files.\n\n&#x200B;\n\nAnybody know better way of saving user Input into a file ?", "comment": "You didn't get the file handle out of the result of `File::create`\n\nhttps://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6d8ecb9f22174a53aaebfa378b8812d1", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "tt7z8k", "question": "I am using the `rust-decimal` crate here\n\nIf I use the following code to convert from `Decimal` to `f64`, everything works fine:\n\n```rust\nuse rust_decimal::prelude::ToPrimitive;\n\n// Create some decimal\nlet decimal_val: Decimal = Decimal::new(1, 1);\n// Convert to f64\nlet f64_val = decimal_val.to_f64();\n```\n\nBut if I want to avoid the import, and `rust_decimal` is in `Cargo.toml`. I should be able to write this as:\n\n```rust\n// Create some decimal\nlet decimal_val: Decimal = Decimal::new(1, 1);\n// Convert to f64\nlet f64_val = decimal_val.rust_decimal::prelude::ToPrimitive::to_f64();\n```\n\nThis fails with the error \n\n```rust\nlet f64_val = decimal_val.rust_decimal::prelude::ToPrimitive::to_f64();\n ^^ expected one of `(`, `.`, `;`, `?`, `else`, or an operator\n```\n\nI think I have may have the wrong syntax since this should be possible...", "comment": "I assume the function rust_decimal::prelude::ToPrimitive::to_f64 do exists and takes a self argument.\n\nYou should use the following:\n\nlet f64_val = rust_decimal::prelude::ToPrimitive::to_f64(decimal_val)", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tt7zgk", "question": "I was learning rust but I dropped the idea because I can't find any videos/articles which explain rust memory management system easily possible. I've found many videos but they just go over my head.\n\nAny resource would be helpful!", "comment": "To summarize as briefly as possible... (and I think there's something like this in the O'Reilly crab book...)\n\nEvery time the Rust compiler compiles your code, it's also constructing an automated proof that no piece of memory can be leaked, double-freed, become part of a pointer loop, get accessed by two threads at the same time, etc, etc, etc. And if you write your code in such a way that the compiler CAN'T construct such a proof... then the compiler just plain won't compile your program!\n\nNow of course you can use `unsafe{}` blocks to write code that *you're* sure are safe. But if those actually turn out to be UNSAFE and there's a memory leak or pointer loop or double-free in them that you didn't notice... guess who's to blame? Hint: NOT the compiler!\n\nThis is what all that ownership and lifetimes and mutable reference stuff boils down to. All those things are ways to manage memory, that the compiler understands well enough so it construct a memory correctness proof when it compiles your program.\n\nIf you want to know more about any specific one of those, and how it allows the compiler to know that memory management is being done correctly, then ask away. I'll do my best to answer. And if I don't know the answer, there's a good chance someone else here does.", "upvote_ratio": 100.0, "sub": "LearnRust"} +{"thread_id": "tt7zgk", "question": "I was learning rust but I dropped the idea because I can't find any videos/articles which explain rust memory management system easily possible. I've found many videos but they just go over my head.\n\nAny resource would be helpful!", "comment": "Rust memory management is just like fairly simple C memory management, except the compiler ensures you have one mutable reference or one-or-more immutable references to any given memory. But you still use stack allocations or you malloc() space, and free() gets called when the last reference goes out of scope.\n\nThere are complexities on top of that (just like there's sbrk() in C that almost nobody needs to know about), but those are implementation details you probably don't need to know if you're just writing pure Rust and not (say) jumping into other programming languages or calling the OS or implementing the OS yourself.", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "ttf6bh", "question": "I have a string of file contents: `let file_contents = fs::read_to_string(\"myfile.txt\").unwrap();`\n\n\nAnd I have some threads. The first should read the first k lines in the string (lines in the file), the second the next k, etc. The string itself is never modified (not mut). It may be that (k * number_of_threads) is greater than the number of lines in the file, in which case there should be wrap around (a Cycle iter works well). The wrap around means it is possible that the threads are not necessarily looking at distinct lines. \n\n\nHow could I do this in Rust?\n\nCurrently I have,\n\n let mut cycle_iter = file_contents.lines().cycle();\n for i in 0..num_threads {\n ...\n let processor = Processor::new(cycle_iter.clone());\n for _i in 0..per_thread_workload {\n cycle_iter.next();\n }\n \n let thread = spawn(move || processor .run());\n threads.push(thread);\n }\n\nI'm having issues with lifetimes\n\n 69 | let mut cycle_iter = file_contents.lines().cycle();\n | ^^^^^^^^^^^^^^^^^^^^^\n | |\n | borrowed value does not live long enough\n | argument requires that `file_contents` is borrowed for `'static`\n\nIs the problem that my threads may outlive the function which `file_contents` exists in (it won't because I join the threads before exiting, but I guess the compiler can't tell), meaning their iterators would be referring to garbage? If so, how can I fix this?\n\nI tried putting my string on the heap (I vaguely remember doing this for mutex so that multiple threads can make use of it properly):\n\n let file_contents = Arc::new(fs::read_to_string(\"data/packages.txt\").unwrap());\n\nbut still same problem.", "comment": "You might want to take a look at a crate called rayon. It handles parallel iterations for you quite nicely.\n\nIf it doesn't fit your needs, maybe the brand new [scoped threads api](https://doc.rust-lang.org/nightly/std/thread/fn.scope.html) will do? I just saw that it haven't landed in stable yet, thought it did in 1.61.", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "tu02ey", "question": "Does anyone have any articles, videos or walkthroughs that I can utilize to learn how to build REST APIs? \n\n\nI just finished an introductory course and wanted to build out a CLI application that would return the definition of an inputted word. I was planning on using the [Merriam-Webster api](https://dictionaryapi.com/products/api-collegiate-dictionary). I'm sure this exists as a crate, I just wanted to get the experience myself. Thanks in advance.", "comment": "I haven't read the full book but I think zero to production in rust would cover what you're trying to learn. \n\nhttps://www.zero2prod.com/\n\nI don't know of any free tutorials or videos that cover what you are asking better than that book, but there are a few other places you might look for more general rust info:\n\nhttps://thesquareplanet.com/ - his YouTube channels is fantastic. \n\nhttps://fasterthanli.me/ - a great blog with rust info. \n\n\nThese YouTube channels have rust info also, but not quite as much my first 3 suggestions. \n\nhttps://youtube.com/channel/UCRA18QWPzB7FYVyg0WFKC6g - this YouTube channel also covers rust topics. \n\nhttps://youtube.com/channel/UCDmSWx6SK0zCU2NqPJ0VmDQ - this channel has a web app series that may be useful. \n\nGood luck!", "upvote_ratio": 100.0, "sub": "LearnRust"} +{"thread_id": "tu02ey", "question": "Does anyone have any articles, videos or walkthroughs that I can utilize to learn how to build REST APIs? \n\n\nI just finished an introductory course and wanted to build out a CLI application that would return the definition of an inputted word. I was planning on using the [Merriam-Webster api](https://dictionaryapi.com/products/api-collegiate-dictionary). I'm sure this exists as a crate, I just wanted to get the experience myself. Thanks in advance.", "comment": "Hopefully these are helpful:\n\n[https://tms-dev-blog.com/jwt-security-for-a-rust-rest-api/](https://tms-dev-blog.com/jwt-security-for-a-rust-rest-api/)\n\n[https://tms-dev-blog.com/how-to-implement-a-rust-rest-api-with-warp/](https://tms-dev-blog.com/how-to-implement-a-rust-rest-api-with-warp/)", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tuu3rc", "question": "The _sync_ version of reading/writing files is as per the [rust docs](https://doc.rust-lang.org/std/fs/struct.OpenOptions.html):\n\n use std::fs::OpenOptions;\n\n let file = OpenOptions::new()\n .read(true)\n .write(true)\n .create(true)\n .open(\"foo.txt\");\n\nHow do you do this same thing [_async_ using tokio](https://docs.rs/tokio/latest/tokio/io/trait.AsyncWriteExt.html)? I only see basic examples like this:\n\n use tokio::io::{self, AsyncWriteExt};\n use tokio::fs::File;\n\n #[tokio::main]\n async fn main() -> io::Result<()> {\n let data = b\"some bytes\";\n\n let mut pos = 0;\n let mut buffer = File::create(\"foo.txt\").await?;\n\n while pos < data.len() {\n let bytes_written = buffer.write(&data[pos..]).await?;\n pos += bytes_written;\n }\n\n Ok(())\n }\n\nI am new to rust and am looking for how to achieve the equivalent of the [Node.js API](https://nodejs.org/docs/latest-v9.x/api/fs.html#fs_fs_open_path_flags_mode_callback), where you specify the file's mode and flags for read/write/create/append/etc.. Not sure the Rust way of doing this async.", "comment": "Tokio has OpenOptions:\n https://docs.rs/tokio/latest/tokio/fs/struct.OpenOptions.html\n\nHowever, keep in mind that file I/O in Tokio is quite slow. If you need it to be fast and async, consider tokio-uring.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "tvkip4", "question": "Hi, I'm creating a project which calls an external API and I wanted to create an API client struct which holds all the methods for different calls to the API.\nSo I created the stuct, but it grows and grows and the method names are getting longer because the methods call endpoints about different resources.\n\nExample:\nget_resource_by_id(id) \nget_resource_comments_page(resource_id, page_number)\n... And similar for few more resources (about 8-10)\nI was wondering if there is a better way to compose the api client, because now the struct is really bloated.\n\nMy ideas are:\n1. Create a api client per resource (e.g. UserApiClient have all methods about handling user endpoints).\n2. Similar to idea 1, but have all of these api clients under one struct as public members (or hidden behind getters) so you can call it e.g. `apiClient.user.get_by_id(id)`\n3. Having functions without struct at all, composed into different modules (so you need to call this with use of module name like `users::get_by_id(id)` and `posts::get_by_user_id(user_id)`) \n\nWhich idea should I go for? Or maybe all of this is garbage? What would be the most idiomatic way?", "comment": "Why not use a trait? Or several traits? Exposing a struct much less it's fields like this seems like a mistake imo. \n\nTraits are nicer because you can group several similar methods together, but abstract them from the implementation. \nMaking struct fields public also makes them mutable, which might invalidate the struct. It's generally best to only expose fields through immutable methods, and validate constructors / mutable methods to catch invalid inputs at their source.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "tvkip4", "question": "Hi, I'm creating a project which calls an external API and I wanted to create an API client struct which holds all the methods for different calls to the API.\nSo I created the stuct, but it grows and grows and the method names are getting longer because the methods call endpoints about different resources.\n\nExample:\nget_resource_by_id(id) \nget_resource_comments_page(resource_id, page_number)\n... And similar for few more resources (about 8-10)\nI was wondering if there is a better way to compose the api client, because now the struct is really bloated.\n\nMy ideas are:\n1. Create a api client per resource (e.g. UserApiClient have all methods about handling user endpoints).\n2. Similar to idea 1, but have all of these api clients under one struct as public members (or hidden behind getters) so you can call it e.g. `apiClient.user.get_by_id(id)`\n3. Having functions without struct at all, composed into different modules (so you need to call this with use of module name like `users::get_by_id(id)` and `posts::get_by_user_id(user_id)`) \n\nWhich idea should I go for? Or maybe all of this is garbage? What would be the most idiomatic way?", "comment": "For my crate I copied the design presented here for the gitlab crate:\n\nhttps://plume.benboeckel.net/~/JustAnotherBlog/designing-rust-bindings-for-rest-ap-is", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "twqhet", "question": "I've recently started experimenting with Rust, following the [The Rust Programming Language](https://doc.rust-lang.org/book/title-page.html) book.\n\nIn [Chapter 2](https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html) a simple tutorial for building a guessing game is introduced. The program generates a random number and the user tries to guess it.\n\nI want to implement a function `get_input` responsible for reading and validating the user's input. Until a valid input is given, the program should keep prompting the user for a number.\n\nI don't understand why, but the whole `input = match buffer.trim().parse::<u32>() {...}` block is marked as an \"unreachable expression\".\n\nFor sure there are better ways to implement this, but I'd be grateful if someone could help me understand what's wrong with this specific piece of code and how to fix it.\n\n```\n fn get_input() -> u32 {\n let mut input: u32;\n \n loop {\n println!(\"Enter a number:\");\n \n // read input from stdin and store it in buffer\n let mut buffer = String::new();\n io::stdin()\n .read_line(&mut buffer)\n .expect(\"Failed to read the line.\");\n \n // if input is not a number stay in the loop, otherwise break out\n input = match buffer.trim().parse::<u32>() {\n Ok(num) => {\n num;\n break;\n }\n Err(_) => {\n println!(\"Invalid input.\");\n continue;\n }\n };\n }\n input\n }\n \n \n fn main() {\n let input: u32 = get_input();\n println!(\"{}\", input);\n }\n```", "comment": "If I understand it correctly, neither the Ok or Err branch return anything, since one breaks outside of the loop and the other continues the loop. Hope that helps", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "tx3wdl", "question": "I don't get any Rust analyzer hints when I am working on rustlings.\n\nMy work around is I just copy it to the playground where I do get some rls(?) help.\n\nCould my issue be not launching VSCode from the correct folder? I usually just open the next file and not any folder in particular.", "comment": "If I recall correctly you have to open the rustlings folder containing the Cargo.toml file.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ty9ej0", "question": "The error I get is as follows:\n\nthread 'main' panicked at 'Git is needed to retrieve the soloud source files!: Os { code: 2, kind: NotFound, message: \"No such file or directory\" }', /home/steve/.cargo/registry/src/github.com-1ecc6299db9ec823/soloud-sys-1.0.2/build/source.rs:17:10\n\nand my Cargo.toml file contains this:\n\n\\[package\\]\n\nname = \"audiotest\"\n\nversion = \"0.1.0\"\n\nedition = \"2021\"\n\n\\# See more keys and their definitions at [https://doc.rust-lang.org/cargo/reference/manifest.html](https://doc.rust-lang.org/cargo/reference/manifest.html)\n\n\\[dependencies\\]\n\nsoloud = \"1.0.2\"\n\n&#x200B;\n\nDoes anyone know what's going wrong and/or how to fix it?", "comment": ">Git is needed to retrieve the soloud source files!\n\nInstall git", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "tydufm", "question": "Hey !\n\nI'm trying to retrieve the mode of a file in Rust, for that I'm using std::fs::FileType.\n\nfor that I create a function that return a FileType : \n\n use std::fs\n \n // s parameter stands for a file path\n fn file_mode(s: &String) -> fs::FileType {\n return fs::metadata(s).unwrap().file_type();\n }\n\nand this function return is : \n\n FileType(FileType { mode: 33188 })\n\nI can't, and to know how can access that **mode** property ?\n\n&#x200B;\n\nThanks", "comment": "By \"mode\" do you mean [\"permissions\"](https://doc.rust-lang.org/stable/std/fs/struct.Permissions.html) ?\n\n fn permissions(path: &str) -> std::io::Result<std::fs::Permissions> {\n let metadata = std::fs::metadata(path)?;\n metadata.permissions()\n }\n\nMost std::fs structs have extension traits only available on particular platforms, for example the [`PermissionsExt`](https://doc.rust-lang.org/stable/std/os/unix/fs/trait.PermissionsExt.html) trait.\n\n[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a502f354a406a53416de9620eeb927dc)\n\nYou can find the platform specifics [extension traits here](https://doc.rust-lang.org/stable/std/os/index.html).", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "tyqevp", "question": "Whenever I try to build with Cargo, I now get this error:\n\nCMake Error at CMakeLists.txt:45 (add\\_compile\\_definitions):\n\nUnknown CMake command \"add\\_compile\\_definitions\"\n\n&#x200B;\n\nIt's obviously an issue with Cmake, but I have Cmake installed and I've tried updating it, but still nothing, I looked up a solution, but all I couldn't find a solution related to Rust/Cargo\n\nIf anyone knows what's up and can give me a hand, it would be greatly appreciated", "comment": "One of your dependencies is calling CMake, most likely as part of its build script. Your version of CMake does not support all of the commands in the CMakeLists file the dependency is invoking.\n\nYour error should contain a lot more information regarding which crate is causing the error, start looking for that and see if you can locate the CMake script itself.\n\nRust / Cargo should not be relevant other than them invoking the dependency's build script, so looking for help with CMake (or your dependency) in general should be enough.\n\nWith no context other than parts of error text that's really all I can say. Neither Rust nor Cargo uses CMake, so the issue should be caused by one of your dependencies. Start looking at any crates you're pulling in that link to C/C++ libraries.\n\nIf you can't find cause, put a minimal repro on GitHub or similar and I'll take a look at it.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u0139a", "question": "I am having a problem running `cargo wasm` on a rust project and I'm afraid that it's related to the fact that I'm using an m1 mac. I did the following commands. \n`cargo generate --git https://github.com/baedrik/snip721-reference-impl.git --name my-snip721` \n`cd my-snip721` \n`cargo wasm` \n\nThis particular repo is designed to be compiled to wasm with the command `cargo wasm` and I know it works perfectly on Windows. When a ran `cargo wasm` on my m1 mac I got an endless string of similar errors. They mostly all follow this format: \n```\nerror[E0433]: failed to resolve: use of undeclared crate or module `slice`\n --> /Users/<myusername>/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1594:13\n |\n1594 | slice::from_raw_parts(src.as_ptr() as *const u64, src.len())\n | ^^^^^ use of undeclared crate or module `slice`\n``` \n\n\nI also got a bunch of errors that followed this format. \n```\nerror[E0425]: cannot find function `copy_nonoverlapping` in this scope\n --> /Users/<myusername>/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1950:13\n |\n1950 | copy_nonoverlapping(\n | ^^^^^^^^^^^^^^^^^^^ not found in this scope\n...\n2301 | unsafe_write_slice_native!(src, dst, u32);\n | ----------------------------------------- in this macro invocation\n |\n = note: this error originates in the macro `unsafe_write_slice_native` (in Nightly builds, run with -Z macro-backtrace for more info)\n``` \n\nSo what seems to be the problem. FYI, I'm using the terminal in visual studio code to run the commands. My mac is an m1 MacBook Pro (16-inch, 2021) running Monterey and I have rustup and cargo updated.", "comment": "I think you're missing the `wasm32-unknown-unknown` target. You'll get further after running:\n\n rustup target add wasm32-unknown-unknown\n\nBut you're going to run into an issue with the `secp256k1-sys` crate, as the non-rust code won't compile. See: [https://github.com/rust-bitcoin/rust-secp256k1/issues/283](https://github.com/rust-bitcoin/rust-secp256k1/issues/283)", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u0dla0", "question": " use chrono::NaiveTime;\n \n \n let match_time; \n if let true = NaiveTime::parse_from_str(&match_time_str, \"%H:%M:%S\").is_ok() { \n match_time = Some(NaiveTime::parse_from_str(&match_time_str, \"%H:%M:%S\").unwrap()) \n } else { \n match_time = None \n }", "comment": " let match_time = NaiveTime::parse_from_str(&match_time_str, \"%H:%M:%S\").ok();", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "u0dla0", "question": " use chrono::NaiveTime;\n \n \n let match_time; \n if let true = NaiveTime::parse_from_str(&match_time_str, \"%H:%M:%S\").is_ok() { \n match_time = Some(NaiveTime::parse_from_str(&match_time_str, \"%H:%M:%S\").unwrap()) \n } else { \n match_time = None \n }", "comment": "If you don't care about any error handling, then you would achieve the same thing with:\n\n```let match_time = NaiveTime::parse_from_str(&match_time_str, \"%H:%M:%S\").ok()```\n\nDocumentation on [ok](https://doc.rust-lang.org/std/result/enum.Result.html#method.ok) from Rust docs", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u0elgk", "question": "Is it possible to match String or str with enum cases? Perhaps with some casts?Or it just does not make sense?\n\n enum Command {\n add,\n edit,\n }\n \n fn read_command(arguments: &[String]) {\n let command = &arguments[0];\n let word = &arguments[1];\n \n match String::from(command) {\n Command::add => println!(\"Add command\"),\n Command::edit => println!(\"Edit command\"),\n _ => println!(\"Something else\"), \n }\n }\n\nObviously I've got an error \"**expected struct std::string::String, found enum Command**\"", "comment": "There's a million different ways you can handle this. I'll show a couple different ones.\n\nFirst: This one is your current issue which can easily be fixed. I just removed the enum and matched based off of &str. [Code Example](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=fd7cdde0deed8a48edf0e98562af6278)\n\nSecond: This one uses the enum with data in it and instead of using your &\\[String\\] we use that enum. [Code Example](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=85e642ecf9b53834d025c814dfdc4055)\n\nAgain, there are more ways you can do this. I recommend experimenting and looking at the [Rust Book](https://doc.rust-lang.org/book/ch06-00-enums.html) for more information.\n\nI always recommend using the way that makes the most sense to you. Because if you don't know how it works then how will you fix/edit it when the time comes.\n\nAnd ask questions, I or someone else can answer them.", "upvote_ratio": 140.0, "sub": "LearnRust"} +{"thread_id": "u0kvp7", "question": "Several accounts have been sending unsolicited offers to give medical advice in exchange for money or \"coffee.\" These are a violation of this subreddit's rules and likely Reddit's policies against spam. Moderators here can ban accounts from posting here, and we do, but we have no authority over DMs and chats.\n\nIf you receive such a message, you're welcome to report it to us, but there is little more we can do. **Please flag the message/chat as spam, and please report at** [**https://www.reddit.com/report**](https://www.reddit.com/report) **for admin attention!**\n\nThe only thing that can make the spam stop is Reddit administrators, and apparently the only thing that might make them take action is constant pressure.", "comment": "If anyone gives you medical advice and THEN asks for money or something in return tell em to get stuffed. Anyone withholding genuine medical advice for the same reason then tell them u got a prescription for 2 of these \ud83d\udd95\ud83c\udffesuppositories and that they need to complete the course taken 3 x a day with l a rusty meshed glove. \nI can only speak for myself, i dont get paid anywhere near my american counter parts but i am not here to make money (there are much easier and better ways with our knowledge and legitimate qualifications nevermind the ethical dilemma it unfolds) just to help people who may feel they have nowhere else to turn. If any one is in this situation and is being restricted information about their health then u can DM and i will try my best or highlight this in a post here - naming and shaming - and the rest of us will hopefully band together to help with your problem. No one is on this sub to make money and anyone who acts like they are should get an ethical slap from my four prima facie fingers + thumb. Especially a coffee. That just sounds like a dick manoeuvre", "upvote_ratio": 150.0, "sub": "AskDocs"} +{"thread_id": "u0kvp7", "question": "Several accounts have been sending unsolicited offers to give medical advice in exchange for money or \"coffee.\" These are a violation of this subreddit's rules and likely Reddit's policies against spam. Moderators here can ban accounts from posting here, and we do, but we have no authority over DMs and chats.\n\nIf you receive such a message, you're welcome to report it to us, but there is little more we can do. **Please flag the message/chat as spam, and please report at** [**https://www.reddit.com/report**](https://www.reddit.com/report) **for admin attention!**\n\nThe only thing that can make the spam stop is Reddit administrators, and apparently the only thing that might make them take action is constant pressure.", "comment": "Is it verified medical professionals doing this?", "upvote_ratio": 50.0, "sub": "AskDocs"} +{"thread_id": "u1d7av", "question": "Other than it works already why not get rid of using clib and use a rust native but functionally **equivalent** \"rlib\" at some point. Would there be a fundamental reason it would have to be a breaking change?", "comment": "Because c-lib is already in place on the target system making static binaries small and easy to install.", "upvote_ratio": 120.0, "sub": "LearnRust"} +{"thread_id": "u1d7av", "question": "Other than it works already why not get rid of using clib and use a rust native but functionally **equivalent** \"rlib\" at some point. Would there be a fundamental reason it would have to be a breaking change?", "comment": "Partly, because your system call APIs are defined in terms of C types and calling conventions. As described in [this excellent blog](https://gankra.github.io/blah/c-isnt-a-language/).\n\nYou could maybe figure out how to call fork or read directly with pure rust for a given architecture (not the c wrappers, but the system call interface directly), but doing so would be much more difficult than just calling the c wrappers, which have already been ported to all the architectures.\n\nRust standard library already replaces much of the c standard library outside of the system service APIs.", "upvote_ratio": 100.0, "sub": "LearnRust"} +{"thread_id": "u1hldq", "question": "See https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4401bd55f8a59cb6f22385f8b8f3338f\n\n fn main() {\n let mut stack = Vec::new();\n stack.push(1);\n stack.push(1);\n stack.push(stack.pop().unwrap() + stack.pop().unwrap());\n println!(\"{}\", stack.pop().unwrap());\n }\n\nseems the only way is to allocate temp variable like \n\n let b = stack.pop().unwrap();\n let a = stack.pop().unwrap();\n stack.push(a + b);\n\nis there a way I'm missing?", "comment": "You can write\n\n let total = stack.pop().unwrap() + stack.pop().unwrap();\n stack.push(total);\n\nBut yeah, short of doing some really weird stuff that wouldn't be better that's about as good as it gets.\n\nIt would be nice if the borrow checker was precise enough to figure this out, but it's currently not: it doesn't understand that the borrows in the argument to `push()` can complete before `push()` is called.", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "u23yrt", "question": "The process for replies to serious questions on r/ask requires commenters to begin a comment reply with `answer:`. Any replies that don't begin with that syntax are removed. This is a very blunt solution to the problem of redditors' attempts to be hilarious in comments where the OP has requested only serious discussion.\n\nThis has been a source of frustration for many of you who are posting well-intentioned replies that are being auto removed for not following the required syntax. \n\nBe advised that we have heard your feedback and are taking it into consideration to determine how we can best improve this process for the entire r/ask community. \n\nWe hope to strike a better balance between removing joke/non-serious replies to threads with the `serious replies only` flair and permitting the actual serious replies.\n\nWe've heard you in modmail and in the comments and will return soon with an announcement on what direction we'll take. Whatever form the new process takes, it will likely involve a greater role for user reporting so please remember that user reports are the fastest and best way to inform the moderator team of any issues with posts, comments, or users in the community.\n\nThank you for your feedback on this issue and for your continued participation on r/ask. \n\n-r/ask mod team", "comment": "I don't see what the big deal is. When the post is removed, you're notified via a message that links to the removed comment. You can still view it, so just copy your old comment, then paste it into a new comment with the required \"answer:\" in front of it. It takes five seconds to do.", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "u23yrt", "question": "The process for replies to serious questions on r/ask requires commenters to begin a comment reply with `answer:`. Any replies that don't begin with that syntax are removed. This is a very blunt solution to the problem of redditors' attempts to be hilarious in comments where the OP has requested only serious discussion.\n\nThis has been a source of frustration for many of you who are posting well-intentioned replies that are being auto removed for not following the required syntax. \n\nBe advised that we have heard your feedback and are taking it into consideration to determine how we can best improve this process for the entire r/ask community. \n\nWe hope to strike a better balance between removing joke/non-serious replies to threads with the `serious replies only` flair and permitting the actual serious replies.\n\nWe've heard you in modmail and in the comments and will return soon with an announcement on what direction we'll take. Whatever form the new process takes, it will likely involve a greater role for user reporting so please remember that user reports are the fastest and best way to inform the moderator team of any issues with posts, comments, or users in the community.\n\nThank you for your feedback on this issue and for your continued participation on r/ask. \n\n-r/ask mod team", "comment": "Answer: about fucking time. Making it inconvenient to answer a question someone is seriously asking is a stupid exploitation of the control the mods have. People are gonna troll, no reason to punish us all.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "u28t3h", "question": "Say I have a enum like the following:\n\n enum MyEnum{\n Foo,\n Bar,\n Baz,\n }\n\nI then have a vector like so:\n\n let v = vec![MyEnum::Foo, MyEnum::Foo, MyEnum::Bar];\n\nI now want to know how many instances of each variant appear in the vector. Basic questions:\n\n1. what is the most appropriate data structure to represent the mapping from variants to their counts?\n2. how do I go about computing these counts in an efficient way? \n\n\nI thought to implement this using a `HashMap::<MyEnum,usize>`, but I really don't know if that's the right way to do it. \n\nAside from these (admittedly very basic) questions, I also don't understand how I can go about identifying how many counts I even require because it's not clear to me how to identify the number of variants I have in the first place. I know that there is a \"variants\\_count\" function possibly coming in some future rust release, but it seems not to be available yet. \n\n\nNote that I am aware that I can also attach data to variants of the enum when I define, and thought that I could perhaps do this that way (somehow). However, my vector `v` in this example will eventually come via an external C application, and I am not clear how much harder it would be to define compatible types if I overcomplicate my enum definition.", "comment": "Check out [Itertools::counts](https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.counts) to get a `Hashmap::<MyEnum, usize>`. This map will only contain keys where the count is greater than 0, so \"missing\" enums will not be present. That might mean needing to deal with `None` from a `get(MyEnum::Variant)`\n\nSince the vector comes from outside your code, you are left with counting the items yourself. There are more manual ways of doing so, but they all end up involving iterating over the vector.", "upvote_ratio": 120.0, "sub": "LearnRust"} +{"thread_id": "u28t3h", "question": "Say I have a enum like the following:\n\n enum MyEnum{\n Foo,\n Bar,\n Baz,\n }\n\nI then have a vector like so:\n\n let v = vec![MyEnum::Foo, MyEnum::Foo, MyEnum::Bar];\n\nI now want to know how many instances of each variant appear in the vector. Basic questions:\n\n1. what is the most appropriate data structure to represent the mapping from variants to their counts?\n2. how do I go about computing these counts in an efficient way? \n\n\nI thought to implement this using a `HashMap::<MyEnum,usize>`, but I really don't know if that's the right way to do it. \n\nAside from these (admittedly very basic) questions, I also don't understand how I can go about identifying how many counts I even require because it's not clear to me how to identify the number of variants I have in the first place. I know that there is a \"variants\\_count\" function possibly coming in some future rust release, but it seems not to be available yet. \n\n\nNote that I am aware that I can also attach data to variants of the enum when I define, and thought that I could perhaps do this that way (somehow). However, my vector `v` in this example will eventually come via an external C application, and I am not clear how much harder it would be to define compatible types if I overcomplicate my enum definition.", "comment": "So there are two ways to go about this. One is to use, as TopGunSnake suggested, the itertools crate to do the work. And this is perfectly legitimate.\n\nNow, let's consider some alternative approaches to the problem that are instructive for ways to approach this. We can do the hash map addition manually with something like this:\n\n let mut counts = HashMap::new();\n\nv.iter().for_each(\n |val| {\n counts.entry(val)\n .and_modify(|count| { *count += 1 })\n .or_insert(1);\n }\n);\n\nprintln!(\"{counts:?}\")\n\nYou also will need to add\n\n #[derive(Eq, PartialEq, Hash, Debug)]\n\nto your declaration of `MyEnum` so that you can do the appropriate hashing and equality operations on `MyEnum`.\u00b9\n\nIf this is performance sensitive code, you may find that the default hash algorithm, which goes to some lengths to be resilient against DoS attacks is slow for your needs.\n\nNow for some dark magic as an alternative approach, if we have no fields in the values for MyEnum, we have access to the discriminant, which is just the numeric index (starting at zero) of the enum item. With this, we can construct a vec of counts as follows:\n\n let mut counts = Vec::new();\n\nv.iter().for_each(\n |&val| {\n let idx = val as usize;\n if counts.len() <= idx {\n // Make sure there are enough empty entries at the end of the \n // vec to let us accesswhere we want to be\n counts.append(&mut vec!(0;idx - counts.len() + 1))\n }\n counts[idx] += 1;\n }\n);\n println!(\"{counts:?}\");\n\n Here, we need to derive `Copy` and `Clone` for the code to work so that we can move the value out of a reference for the conversion to `usize`.\n\n&#x200B;\n\n\u2e3b\n\n1. JVM people will be well aware of the need to implement `.equals()` and `.hashCode()` any time you want to use a custom object as the index to a hash map.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u2l8z7", "question": "Hi there!\n\nI'm writing some physics code and I'd like to reserve the ability to use arbitrary precision down the road, so I wanted to use generics. Let's say I have a function like this:\n\n```\n// Speed of light in vacuum.\nconst C: f32 = 299792458.0;\n\n// Compute the Lorentz Factor for a given acceleration at time t.\npub fn lorentz<T: num_traits::float::Float>(a: T, t: T) -> T {\n let x = (a * t) / (C as T);\n T::sqrt(x)\n}\n```\n\nPredictably, this won't build, because I can't cast to type T. After Googling around, I'm stumped. There is something called constant generics, but it seems to be closer to C++ template parameters. What would be the idiomatic way of doing something like this?", "comment": "Preface with **I know nothing about this crate**. And I'm as useful as a bag of bricks when it comes to math.\n\nI found that you can cast and use it. First generic is just input type. Second is output.\n\n num_traits::cast::<_, T>(C).unwrap()\n\nWhich works. Another thing I noticed though. C is being messed up (don't know the word right now it's 4 am.)\n\nWith C as u32 it stayed the same. This is just me using println. Once in main and once in lorentz fn with cast value.\n\n const f32: 299792458.0\n println C: 299792450\n println Cast of C: 299792448.0\n \n const u32: 299792458\n println Val: 299792458\n println Cast of Val: 299792458.0\n\n**I don't know if someone else wants to chime in with some more info. I would appreciate it.**\n\nAnyways bedtime for me.", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "u2l8z7", "question": "Hi there!\n\nI'm writing some physics code and I'd like to reserve the ability to use arbitrary precision down the road, so I wanted to use generics. Let's say I have a function like this:\n\n```\n// Speed of light in vacuum.\nconst C: f32 = 299792458.0;\n\n// Compute the Lorentz Factor for a given acceleration at time t.\npub fn lorentz<T: num_traits::float::Float>(a: T, t: T) -> T {\n let x = (a * t) / (C as T);\n T::sqrt(x)\n}\n```\n\nPredictably, this won't build, because I can't cast to type T. After Googling around, I'm stumped. There is something called constant generics, but it seems to be closer to C++ template parameters. What would be the idiomatic way of doing something like this?", "comment": "You can use num_traits::NumCast `T::from(C).unwrap()`, which is required by Float.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "u3kfph", "question": "Why is this acept in Rust\n\n for i in &v { \n println!(\"{}\", i);\n } \n\nbut this isn't?\n\n for i in &my_numbers{\n println!(\"{}\",my_numbers[i]); \u00a0 \n }\n\ncould someone help me", "comment": "In the second case 'i' is your enumerator.\n\nThink of a vector containing [1,4,8].\n\nFirst case you iter through the elements 1 4 and 8.\n\nIn the second case you iter through the 1st, 4th and 8th element of your vector.", "upvote_ratio": 140.0, "sub": "LearnRust"} +{"thread_id": "u3kfph", "question": "Why is this acept in Rust\n\n for i in &v { \n println!(\"{}\", i);\n } \n\nbut this isn't?\n\n for i in &my_numbers{\n println!(\"{}\",my_numbers[i]); \u00a0 \n }\n\ncould someone help me", "comment": "When you say \n\n for item in &collection \n\nYou're telling Rust to go through the `elements` in collection and borrow them in `item`. So your first example works because it's just dealing with the values in your vector.\n\nBut in the second case, you're trying to use the value as an index. There are two problems here. One is that `i` is going to be the wrong type. You need a `usize` to index into the `vec`, and you have instead a reference to some number. Changing your index to `my_numbers[*i]` will allow rust to infer that the numbers in your `vec` are `usize` (unless you've explicitly stated otherwise), but this is almost certainly not what you want since it's unlikely that you really want to have the values in a `vec` refer to other locations in that same `vec`.\u00b9\n\nMore likely, if you want to iterate by index, you could do something like:\n\n for i in 0..my_numbers.len() \n\nwhich will iterate over the valid indices on `my_numbers`. As an added bonus, you no longer need the deref `*` so you would be able to just write `my_numbers[i]` when referring to the elements in `my_numbers`.\n\n\u2e3b\n\n1. Although not impossible, I can see using this as a means of representing a directed graph", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "u3snaa", "question": "Is something wrong with my IDE or the Rust extension? This function returns a Result.", "comment": "The `? ` operator only works when the caller also returns a Result of the same error type or a error type where From/Into is implemented.\n\nYou can actually change the signature of main to `fn main() -> Result<(), YourError> {} ` as long as YourError implements core::fmt::Display.", "upvote_ratio": 460.0, "sub": "LearnRust"} +{"thread_id": "u3snaa", "question": "Is something wrong with my IDE or the Rust extension? This function returns a Result.", "comment": "FYI: it seems you ran `cargo run` in your terminal, and it displayed the error message. This means the compiler couldn't compile your code and it should have nothing to do with your IDE or Rust analyser :)", "upvote_ratio": 100.0, "sub": "LearnRust"} +{"thread_id": "u3snaa", "question": "Is something wrong with my IDE or the Rust extension? This function returns a Result.", "comment": "main() should return a Result or Option", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u4s77q", "question": "Hi guys,\n\nWhat do you use to manage your build pipelines? \n\nSpecifically here are some things that I need to do per build:\n\n\\- separate cargo.toml settings, for example to change LTO settings\n\n\\- copying result files after the build\n\nRight now im using simple shell scripts to do it. I use Webpack a lot in other projects, and commands like 'npm run dev' allow me to do a bunch of stuff during builds. I'd love something similar for my rust project", "comment": "Maybe [profiles](https://doc.rust-lang.org/cargo/reference/profiles.html) would be a nicer solution? I\u2019m not entirely sure what you\u2019re looking for, but maybe [zero2prod](https://www.zero2prod.com/) would also be of use.", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "u4xjel", "question": "Suppose I have a method which opens the file. Since it may fails, it should returns **Result**, right?\n\n fn create_file(file_name: &str) -> Result<File, &'static str> {\n let file = OpenOptions::new()\n .write(true)\n .create(true)\n .open(file_name)\n .unwrap_or_else(|error| {\n // or more specific / non-panic error handling\n panic!(\"Problem creating the file: {:?}\", error);\n });\n \n Ok(file)\n }\n\nBut then, at place of method execution, I have to make basically the same error handling/checking:\n\n ...\n let mut file = create_file(FILE_NAME).expect(\"Unable to create new file\");\n ...\n\nOr I could jut **unwrap** since I have error handling within **open\\_file** ?\n\n let mut file = create_file(FILE_NAME).unwrap();\n\nHow to do it in a right way?", "comment": "Okay, let's take a simple example where, depending on some numeric input, we cause different errors to occur and propagate up a contrived call-chain:\n\n use std::error::Error;\n use std::fmt;\n use std::io;\n \n // our generic result type that can handle any error\n type GenResult<T> = Result<T, Box<dyn Error + 'static + Send + Sync>>;\n \n // our first error type\n #[derive(Debug)]\n struct ErrorOne {\n message: String,\n }\n \n impl ErrorOne {\n pub fn new(message: &str) -> Self {\n ErrorOne {\n message: message.to_string(),\n }\n }\n }\n \n impl fmt::Display for ErrorOne {\n fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {\n write!(f, \"{}\", self.message)\n }\n }\n \n impl Error for ErrorOne {}\n \n // our second error type\n #[derive(Debug)]\n struct ErrorTwo {\n message: String,\n }\n \n impl ErrorTwo {\n pub fn new(message: &str) -> Self {\n ErrorTwo {\n message: message.to_string(),\n }\n }\n }\n \n impl fmt::Display for ErrorTwo {\n fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {\n write!(f, \"{}\", self.message)\n }\n }\n \n impl Error for ErrorTwo {}\n \n // helper to get input\n fn get_num() -> i32 {\n let mut input = String::new();\n io::stdin()\n .read_line(&mut input)\n .expect(\"failed to read input\");\n input.trim().parse::<i32>().unwrap()\n }\n \n // the main man\n fn main() {\n let option = get_num();\n \n // need to do the check only here\n // and not in any of the lower-levels\n match foo(option) {\n Err(e) => println!(\"{}\", e),\n Ok(val) => println!(\"{}\", val),\n }\n }\n \n // foo calls bar (which can fail)\n fn foo(input: i32) -> GenResult<i32> {\n Ok(bar(input)?)\n }\n \n // bar calls baz (which can fail) and quux (which can fail)\n fn bar(input: i32) -> GenResult<i32> {\n baz(input)?;\n Ok(quux(input)?)\n }\n \n fn baz(input: i32) -> GenResult<()> {\n if input == 1 {\n Err(Box::new(ErrorOne::new(\"baz caused an issue\")))\n } else {\n Ok(())\n }\n }\n \n // quux call foobar (which can fail)\n fn quux(input: i32) -> GenResult<i32> {\n Ok(foobar(input)?)\n }\n \n fn foobar(input: i32) -> GenResult<i32> {\n if input == 2 {\n Err(Box::new(ErrorTwo::new(\"foobar caused an error\")))\n } else {\n Ok(100)\n }\n }\n \nRunning it:\n\n ~/dev/playground/result-demo:$ cargo run --release\n 0\n 100\n\n ~/dev/playground/result-demo:$ cargo run --release\n 1\n baz caused an issue\n\n ~/dev/playground/result-demo:$ cargo run --release\n 2\n foobar caused an error\n\n\nSo, in this simple (albeit contrived) example, we can start seeing the benefits of not just the `Result` type, but also the `?` operator. Have a look at the annotated code above and see if it makes sense to you.\n\ntl;dr - In your specific case, \n\n 1. Imagine that the`create_file` API is being called by several levels of clients (as in the example shown above), and you *do not* wish to have to pattern-match at each level, or indeed `unwrap` and then propagate at each level. Then having `create_file` return a `Result` starts making sense. \n\n 2. Imagine then a case like `bar` in the example above where you have multiple steps within a specific function that can potentially fail. In this case, it's even more useful using the `?` operator in conjunction with (and indeed you have to) using some sort of `Result` as the return type of the function. The alternative would be a veritable mass of spaghetti code. So, basically something like so:\n\n fn some_function() -> Result<SomeType, SomeError> {\n can_fail1()?;\n can_fail2()?;\n ...\n can_failN()?;\n\n Ok(return_this_calls_value()?)\n }\n\n Conclusion - yes, use `Result` unless you're absolutely sure that something is only called at most one level deep, or is infallible. It also helps with code documentation.", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "u4xjel", "question": "Suppose I have a method which opens the file. Since it may fails, it should returns **Result**, right?\n\n fn create_file(file_name: &str) -> Result<File, &'static str> {\n let file = OpenOptions::new()\n .write(true)\n .create(true)\n .open(file_name)\n .unwrap_or_else(|error| {\n // or more specific / non-panic error handling\n panic!(\"Problem creating the file: {:?}\", error);\n });\n \n Ok(file)\n }\n\nBut then, at place of method execution, I have to make basically the same error handling/checking:\n\n ...\n let mut file = create_file(FILE_NAME).expect(\"Unable to create new file\");\n ...\n\nOr I could jut **unwrap** since I have error handling within **open\\_file** ?\n\n let mut file = create_file(FILE_NAME).unwrap();\n\nHow to do it in a right way?", "comment": "Since your code will panic within the `create_file` function it doesn't make sense to return a `Result`. The `Err` will never actually get returned.\n\nYou need to handle the error where it is best suited, either inside the function or at the function call. I generally prefer to handle it outside the function (at the call).", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "u50cz8", "question": "I am trying to implement some vectorized math operations and struggling a bit with borrow checking when computing on vectors in place. As an example, say I want to implement a \"times two\" operation on a vector. I implement a trait for vectors like this: \n\n\n pub trait TimesTwo {\n fn timestwo(&mut self, y: &Self);\n }\n \n impl TimesTwo for [f64]\n { \n fn timestwo(&mut self, y: &[f64]){\n self.iter_mut().zip(y).for_each(|(x,y)| *x = 2. * y);\n }\n }\n\nThis is fine if want to do this:\n\n let mut x = vec![0.,0.,0.];\n let y = vec![4.,5.,6.];\n x.timestwo(&y);\n\nIt doesn't work though if want `x` to perform this operation on itself. In other words, the borrow checker won't allow this:\n\n x.timestwo(&self);\n\nThe only options I can see are either :\n\n* Add a separate function like `fn timestwo_self(&mut self);` and use that whenever I want to take `self` as an argument.\n* **only** implement the function to operate elementwise on `self`, and then copy from `y` into `x`before calling this function. \n\nNeither of these options seems ideal. The first way means I will have twice as many functions to maintain. The second way means I only have one function to write, but I effectively end up with two loops; one for the copy, and one for the operation itself. I really want to avoid this since it is for a scientific computing application. \n\n\nIs there some other way?", "comment": "Write your modifier as a separate function that takes an element and returns an updated element. Implement a method on your collection to apply modifier to each of its elements. When using with different collections, you can just use that same modifier via iterators. As a result, you only need to implement each of your modifiers once.\n \n trait InPlaceOperations {\n fn modify_with(&mut self, modifier: impl fn(f64) -> f64);\n\n fn populate_from(&mut self, from: impl Iterator<Item = f64>);\n }\n\n impl InPlaceOperations for Vec<f64> {\n fn modify_with(&mut self, modifier: impl fn(f64) -> f64) {\n for item in self {\n *item = modifier(item)\n }\n }\n fn populate_from(&mut self, from: impl Iterator<Item = f64>) {\n self.iter_mut.zip(from).for_each(|(x, y)| *x = y)\n }\n }\n\n fn times_two(input: f64) -> f64 {\n input * 2\n }\n\n fn divide_by_two(input: f64) -> f64 {\n // \u2026\n }\n\n x.modify(times_two);\n x.populate_from(y.iter().map(times_two));", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u590hi", "question": "Hello guys.Basically I just want update existing data in existing file (lets say there is some vector with strings).\n\nAm I doing it wrong?:Is there any way to read data and write from the same file (instance?) using **OpenOptions**? Suppose I have a code like this:\n\n let mut file_to_read_in = OpenOptions::new()\n .write(true)\n .truncate(true)\n .open(FILE_NAME)\n .expect(\"Could not open file\");\n\nIf I have **truncate** flag, my file will be cleared before I'll take it. I can solve my problem with having different files options instances (instances I suppose...? \ud83e\udd14) with code like this:\n\n let file_to_read_data_first = File::open(FILE_NAME).expect(\"Could not open file\");\n let mut file_to_read_in = OpenOptions::new()\n .write(true)\n .truncate(true)\n .open(FILE_NAME)\n .expect(\"Could not open file\");\n\nwhere I firstly read the data from **file\\_to\\_read\\_data\\_first**, update that data and then write to **file\\_to\\_read\\_in**. But it doesn't look good and right.", "comment": "I took a glance at the documentation of File struct.\nIf u understand it correctly, you can open the file for read and write, read the contents and then \"rewind\" that file to the beginning for writing.\nHere are docs for the rewind function: https://doc.rust-lang.org/std/io/trait.Seek.html#method.rewind\n(File implements Seek)\nTake a look into the example - there, they're using it in the opposite way, first writing to file, rewinding and then reading from the beginning.\n\nYou might also want to use `set_len` function to clear the file before writing (because when you just rewind before writing, and the new data takes less bytes, I assume the leftovers from the old contents will be left there right after your new data, possibly making your file corrupt for next read) \nhttps://doc.rust-lang.org/std/fs/struct.File.html#method.set_len\n\nKeep in mind I'm giving you these advice just after reading the documentation, I haven't used them at all, so test it properly :)", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "u5i2r5", "question": "Reading the rust book I have stumbled upon this. In the book it's said that `join()` blocks the main thread until associated thread finishes it work.\n\nNow, kindly look at this code:\n\n```rust\n1 | use std::thread;\n2 |\n3 | fn main() {\n4 | let s = String::from(\"hi\");\n5 |\n6 | let r1 = &s;\n7 |\n8 | \tlet handle = thread::spawn(move || {\n9 | println!(\"{}\", r1);\n10| \t});\n11|\n12| \thandle.join().unwrap();\n13| }\n```\n\nIn theory, as I am doing `handle.join()`, `s` should be dropped after the spawned thread finishes its work. But the error says:\n\n\n```\nlet mut s: String\nGo to String\n\n`s` does not live long enough\nborrowed value does not live long enough (rustcE0597)\nmain.rs(13, 1): `s` dropped here while still borrowed\nmain.rs(8, 18): argument requires that `s` is borrowed for `'static`\n```\n\n\nSo the error is stating that s is dropped at the end of scope while I am trying to use it in another thread. Am I understanding `join()` wrong?", "comment": "The issue is that the compiler doesn't understand that you join the thread right after, while the borrowed value is still alive. All it knows is that a new thread can only borrow values that can live as long as 'static does. You can try `crossbeam::scoped` API that has a workaround allowing you to reference variables from the main thread", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "u5qewx", "question": "PS: Sorry about the horrible formatting in the code block, I tried my best \ud83d\ude05\n\nHello Guys,\n\nI am currently writing some code where I am handling a struct, something like the following struct(only with many more fields, but the same type):\n\n struct PyData{\n val1: usize, \n val2: usize,\n val3: usize\n }\n\nI'd like to convert this struct into a HashMap since I using the PyO3 framework to make this a Python library, but I am currently ending up with this ugly thing(with PyError being a custom error type :\n\n impl PyData{\n fn get_data(&mut self) -> Result<HashMap<&'static str, usize>, PyError>{\n let data : self.get_data(); // Method to fetch the data\n match data {\n Ok(data) => {\n Ok(HashMap::from([\n (\"val1\", data.val1) \n (\"val2\", data.val2) \n (\"val3\", data.val3)\n ]))\n }\n Err(_) => Err(PyError),\n }\n }\n }\n\nIs there a better way to do this, instead of my current method? The struct I am using has 15 fields, and will grow in the future, so I would really like to avoid typing the fields in manually if I can.", "comment": "I think a good solution to this would be macros.\nEg: impl_py_data!(struct PyData{\n\u2026fields\u2026\n})\nHere\u2019s an intro to them: https://doc.rust-lang.org/rust-by-example/macros.html\n\nHopes this helps.:). \n\nSorry for bad formatting", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "u5qewx", "question": "PS: Sorry about the horrible formatting in the code block, I tried my best \ud83d\ude05\n\nHello Guys,\n\nI am currently writing some code where I am handling a struct, something like the following struct(only with many more fields, but the same type):\n\n struct PyData{\n val1: usize, \n val2: usize,\n val3: usize\n }\n\nI'd like to convert this struct into a HashMap since I using the PyO3 framework to make this a Python library, but I am currently ending up with this ugly thing(with PyError being a custom error type :\n\n impl PyData{\n fn get_data(&mut self) -> Result<HashMap<&'static str, usize>, PyError>{\n let data : self.get_data(); // Method to fetch the data\n match data {\n Ok(data) => {\n Ok(HashMap::from([\n (\"val1\", data.val1) \n (\"val2\", data.val2) \n (\"val3\", data.val3)\n ]))\n }\n Err(_) => Err(PyError),\n }\n }\n }\n\nIs there a better way to do this, instead of my current method? The struct I am using has 15 fields, and will grow in the future, so I would really like to avoid typing the fields in manually if I can.", "comment": "Maybe you can do some magic with traits and serde, since you're kinda serealizing the struct?", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u68jb0", "question": "I'm writing a program to interact with some [IOT lighting](https://us.yeelight.com/shop/yeelight-led-smart-bulb-w3-multicolor/) over TCP. The lights send status updates over this connection and you can send actions back to them.\n\nI want to be able to know if the connection is dropped, say in the case where they are hard powered off (by turning the light switch off). However, when I try to write to them after powering off the `write` call is successful and returns the correct number of bytes written. \n\nWhy is this case? And how can I figure out if they're hard powered off? I could send a message over the connection and set a timeout for a response, but wondering if there's something else I'm missing?\n\nHappens on both mac OS and Linux.\n\nCode here: https://github.com/haydenwoodhead/bulb/blob/ff881ccb273ac278bbd8732ef7805e6001b9ddeb/src/server.rs#L192", "comment": "Because a powered off client wont be able to close the stream and inform the other end. You get the same if you kill the client process instead of closing the connection. Thus, a *connection* timeout is a good recourse, as the socket waits for an acknowledgment. \n\nThe mechanism is same for both ways, if the server was abnormally terminated/killed, or the ethernet unplugged, etc.\n\nEdit: Also you are using Tokio, an async library, which means the thread wont block for a timeout before proceeding. Others used [this library](https://crates.io/crates/tokio-io-timeout)", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "u68jb0", "question": "I'm writing a program to interact with some [IOT lighting](https://us.yeelight.com/shop/yeelight-led-smart-bulb-w3-multicolor/) over TCP. The lights send status updates over this connection and you can send actions back to them.\n\nI want to be able to know if the connection is dropped, say in the case where they are hard powered off (by turning the light switch off). However, when I try to write to them after powering off the `write` call is successful and returns the correct number of bytes written. \n\nWhy is this case? And how can I figure out if they're hard powered off? I could send a message over the connection and set a timeout for a response, but wondering if there's something else I'm missing?\n\nHappens on both mac OS and Linux.\n\nCode here: https://github.com/haydenwoodhead/bulb/blob/ff881ccb273ac278bbd8732ef7805e6001b9ddeb/src/server.rs#L192", "comment": "That's what TCP keepalive is for. [https://tldp.org/HOWTO/html\\_single/TCP-Keepalive-HOWTO/](https://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/) If your operating system does support TCP keepalive, you can send keepalive messages at the application layer (see for example section 4.4 in the BGP specification https://datatracker.ietf.org/doc/html/rfc4271)", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "u6ffx4", "question": "Why not just panic with `index out of bounds` in case of e.g. -1?", "comment": "Indexing uses the [Index](https://doc.rust-lang.org/std/ops/trait.Index.html) trait, which in the case of `Vec` is implemented for `usize`.\n\nIn theory it could be implemented for other types as well, for example an implementation of `Index<isize>` could behave as you described.\n\nI'd actually like to see python-like indexing with negative numbers that index from the end of the vector, but it's probably not useful enough to be implemented.", "upvote_ratio": 90.0, "sub": "LearnRust"} +{"thread_id": "u6ffx4", "question": "Why not just panic with `index out of bounds` in case of e.g. -1?", "comment": "I\u2019m fairly sure it\u2019s because usize matches the size of the addresses that the cpu/mcu uses to find the content of each cell of the vector. A vec of 100 elements would start at a point in memory that is usize and then add the size of an element to get the position of the next element. Everyone please correct me if I said that poorly. You would have to convert what ever you used to get the element to usize eventually. Element memory address = index * size of + start, all usize is just the most efficient way.", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "u6sqzl", "question": "From what I've read it is not clear to me if there is a full web framework for Rust like rails or Phoenix. It appears to me that Rocket or Actix are closest to this but I'm not sure. Is there anything like a full web framework for Rust yet? I mean something where you get html templating with forms having csrf security and other stuff just work (even if there is more typing than rails), db management, css/js asset management, sessions (with cookies), etc. Having to type more than rails is fine it just needs to actually work without having to think about security holes like csrf. What is the closest thing to this today?", "comment": "I think these 2 posts from this sub can be helpful:\n\n* [Rust on Nails - A full stack architecture for Rust web applications](https://redd.it/u2ny6e)\n* [A Rust server / frontend setup like it's 2022 (with axum and yew)](https://redd.it/tvqlhd)", "upvote_ratio": 110.0, "sub": "LearnRust"} +{"thread_id": "u6zkud", "question": "Hi, quick question,\n\nI have a situation where I need to make sure that the result of an operation is above 0, since it will be assigned to a usize. Is there a way to do this without casting everything to isize first?\n\nlet a:usize = 3;\n\nlet b:usize = 5;\n\nlet res:usize = a - b;\n\n// panic. how to test?", "comment": "If the result is negative this code will only panic in debug mode in release mode it will silently wrap (i think). You can use checked_sub/saturating_sub/wrapping_sub to ensure it's valid. https://doc.rust-lang.org/stable/std/primitive.usize.html#method.checked_sub", "upvote_ratio": 230.0, "sub": "LearnRust"} +{"thread_id": "u6zkud", "question": "Hi, quick question,\n\nI have a situation where I need to make sure that the result of an operation is above 0, since it will be assigned to a usize. Is there a way to do this without casting everything to isize first?\n\nlet a:usize = 3;\n\nlet b:usize = 5;\n\nlet res:usize = a - b;\n\n// panic. how to test?", "comment": "`checked_sub` is one way. `saturating_sub` could also work if you want the result to be zero in the overflow case. If you want the magnitude of the difference, you can use `abs_diff`.\n (https://doc.rust-lang.org/std/primitive.usize.html)\n\nIf you want the magnitude of the difference you could check which is smaller and swap them if necessary, if you'd prefer to do it yourself for whatever reason.", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "u7cmof", "question": "I want to be able to change the desktop volume, is there any crate for this? I had a look through [crates.io](https://crates.io) and couldn't find anything, and also had a look at the linux crates but there are so many. Ideally a cross-OS abstraction, but failing that a Linux specific solution.", "comment": "you can just write your own cross-platform wrapper. there is [waveOutSetVolume](https://docs.microsoft.com/en-us/windows/win32/api/mmeapi/nf-mmeapi-waveoutsetvolume) for windows which windows-rs crate has the bindings for or you can always link Winmm.lib yourself. not sure about linux.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "u7kyyz", "question": "```rust\n\t // \n fn weighted_sum(input: &[f32], weights: &[&[f32]]) {\n ......\n }\n\n//above function wont accept\n &[&[0.1, 0.2, 0.5], &[0.6, 0.3, 0.7]] as an arguments(weights), because \"mismatched types\", but it accepts &[5.2, 0.1, 0.3] as argument(input)\n\neven more mindblowing is the error says it expect &[&[f32]] but it got &[&[f32;3];3]\n\ni could use a vec here but why doesnt this work ?\nthanks in advance\n```", "comment": "Generally Rust will deref arrays / vecs passed by reference if the function accepts a slice, but it won't do this recursively. You can use the .as_ref() method to convert the inner arrays to slices.", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "u7kyyz", "question": "```rust\n\t // \n fn weighted_sum(input: &[f32], weights: &[&[f32]]) {\n ......\n }\n\n//above function wont accept\n &[&[0.1, 0.2, 0.5], &[0.6, 0.3, 0.7]] as an arguments(weights), because \"mismatched types\", but it accepts &[5.2, 0.1, 0.3] as argument(input)\n\neven more mindblowing is the error says it expect &[&[f32]] but it got &[&[f32;3];3]\n\ni could use a vec here but why doesnt this work ?\nthanks in advance\n```", "comment": "Are you sure you provided the error correctly? This works on the [rust playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bfeddafd31abc93d293d94fe9f0803ff). Or am I misreading the post?", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "u88v0d", "question": "I am new to Rust coming from C++ so I was wondering if there was an easy way to open a file and get the integers to store in an array. I don't want to convert to string first, I would like to just read it in directly. The text file format is know and will consist of 9 lines of 9 numbers deperated bt space. I appreciate any help.", "comment": "There is no \"converting to a string first\", as the file contents is already in a string format. Note how the byte-size of a text file containing `4294967295` is 10 bytes despite the fact that 2\\^32-1 easily fits into 4 bytes and even standard machine words are 8 bytes. This is because data in text editors (human readable data) is an array of at least one byte per character, aka a string. \n\nThe reason why you don't have to manually convert it in C++, is because this conversion is done implicitly (which causes it's own problems). \n\nSo instead read the whole file into a string, `split_whitespace` and `collect` into a `Vec<&str>`, then use the method `parse::<u64>()` on the elements to convert the strs into u64s. \n\nIf you have a guarantee of the size of the integers and properties of the file then you can write a faster implementation, but the implementation above will work in the general case.", "upvote_ratio": 190.0, "sub": "LearnRust"} +{"thread_id": "u9ftdk", "question": "Hi,\n\nI'm about to finish reading the official Rust lang book and I'm interested in creating a CLI app as my next phase of learning Rust.\n\nI want to create something that will be really useful in my learning process, a medium or big project where I can practice most of Rust's features. \n\nSomething the community need or a popular app that has no Rust counterpart will be great!", "comment": "Something like `jq` in rust could be fun.", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "u9ftdk", "question": "Hi,\n\nI'm about to finish reading the official Rust lang book and I'm interested in creating a CLI app as my next phase of learning Rust.\n\nI want to create something that will be really useful in my learning process, a medium or big project where I can practice most of Rust's features. \n\nSomething the community need or a popular app that has no Rust counterpart will be great!", "comment": "I had the same \"problem\" - I've wanted to build some CLI to give Rust a first try on some project, but I had no idea what to do.\nLately I happened to be in a situation that I had to do a lot of manual work on some repositories (github, bitbucket, setting up CI configuration). So I did create CLI to automate some work for me, it was using both Bitbucket and GitHub api, used git2 for managing repositories locally and it was parsing some ci configuration files (yaml) for CI.\n\nLater on i shared it with my team so when there is a need to do some of these actions again, we already have a tool for it :) \n\nThe point is, do something for yourself first, i think this will be a better way of learning than doing something that you're not really interested in using or passionate about (leave that stuff for work \ud83d\ude05).\n\nSo I would suggest thinking of things you can automate for yourself, either personal or work-related things, but something that you care about - this will keep you looking for answers as you'd want to finish this for yourself.\n\nGood luck \ud83e\udd1e", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "ua8tla", "question": "What's the better way to write this\n\n pub fn first_n_words(text: &str, n: usize) -> String {\n let words = text.split_whitespace().collect::<Vec<&str>>();\n words[..words.len().min(n)].join(\" \")\n }\n\nI don't actually expect the input to ever be large enough to make a difference, but for the sake of learning, let's pretend it could be large.", "comment": "Since split_whitespace() returns a SplitWhitespace, and that type implements Iterator, take a look at the take() function on Iterator.\n\nYou\u2019d put a split_whitespace().take(n).collect()\n\nThere\u2019s a function in the itertools crate, I think, that can also join elements of an Iterator directly without having to collect them first, as well.", "upvote_ratio": 230.0, "sub": "LearnRust"} +{"thread_id": "ua8tla", "question": "What's the better way to write this\n\n pub fn first_n_words(text: &str, n: usize) -> String {\n let words = text.split_whitespace().collect::<Vec<&str>>();\n words[..words.len().min(n)].join(\" \")\n }\n\nI don't actually expect the input to ever be large enough to make a difference, but for the sake of learning, let's pretend it could be large.", "comment": "As u/ajf said, you want the [`take` method of `Iterator`](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.take).\n\nFor the function here, searching for the index of the `n`th word delimiter and then doing `&text[..index]` and returning that string slice _could_ be better.", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "uax3l9", "question": "Salutations,\n\nI am working on a program that I think would benefit from being able to run from inside a python program. \n\nI would like to be able to represent my enums and structs and things as Python objects, I'd like to be able to call my Rust functions from inside Python. My googeling led me to [this blogpost](https://bheisler.github.io/post/calling-rust-in-python/), but it was published five years ago and things seem to move quickly in Rust land. So is that information still up-to-date?\n\nIt looks like I somehow have to compile the Rust binary as a shared object, and then in Python-land, create a wrapper around the thing using ctypes or something similar.\n\nDoes anyone here have any experience with this kind of thing?", "comment": "You can check out [PyO3](https://pyo3.rs/), which is the library I see most people using both ways (calling rust from python, or python from rust).", "upvote_ratio": 160.0, "sub": "LearnRust"} +{"thread_id": "uax3l9", "question": "Salutations,\n\nI am working on a program that I think would benefit from being able to run from inside a python program. \n\nI would like to be able to represent my enums and structs and things as Python objects, I'd like to be able to call my Rust functions from inside Python. My googeling led me to [this blogpost](https://bheisler.github.io/post/calling-rust-in-python/), but it was published five years ago and things seem to move quickly in Rust land. So is that information still up-to-date?\n\nIt looks like I somehow have to compile the Rust binary as a shared object, and then in Python-land, create a wrapper around the thing using ctypes or something similar.\n\nDoes anyone here have any experience with this kind of thing?", "comment": "I heartily endorse pyo3. I recently wrote a project for running encrypted python code for work. It's basically a command line app that connects to a license server to get a secret key, and uses the key to decrypt an encrypted python script, and then runs it, but also provides a few functions to the python context that the script can use. So there's a rust program calling into python, which then imports a module that was created by the rust program that started the python script to begin with, and I was able to do all that without too much difficulty, by following the pyo3 documentation, and experimenting a little bit. It's quite powerful, and once you wrap your mind around the 'py lifetime, and the implicit conversions between python and rust types, pretty straightforward to do what you want. \n\nThe only thing I couldn't figure out was how to create a python class in rust that subclasses a custom class written in Python, so I opted to make the python class accept a callback in its constructor instead to inject functionality from rust. It wasn't the most elegant, but it did the trick.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "uax3l9", "question": "Salutations,\n\nI am working on a program that I think would benefit from being able to run from inside a python program. \n\nI would like to be able to represent my enums and structs and things as Python objects, I'd like to be able to call my Rust functions from inside Python. My googeling led me to [this blogpost](https://bheisler.github.io/post/calling-rust-in-python/), but it was published five years ago and things seem to move quickly in Rust land. So is that information still up-to-date?\n\nIt looks like I somehow have to compile the Rust binary as a shared object, and then in Python-land, create a wrapper around the thing using ctypes or something similar.\n\nDoes anyone here have any experience with this kind of thing?", "comment": "Second the recommendations for pyo3 and maturin, have had great experiences with those. You don't have to use ctypes; it depends on the structure of your project. Most of the time I'll write something that will compile straight to a python library or write a core rust crate and then a python bindings crate that depends on the first and basically creates a clean interface to the rust code the form of python modules, classes, functions, and exceptions.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ubwkuy", "question": "Hello! I want to understand how model checkers work, as I am planning to implement one. Also what other topics should I know before diving into model checkers?", "comment": "Are you asking about Formal Methods model checkers?", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ucany7", "question": "I am stuck between either a MacBook pro 13 in and the Air. I could buy the 16GB memory Air for less the amount of the Pro (8GB). I've watched some reviews and they say that there are totally little to no difference between the 2.", "comment": "The MacBook Air should be very similar in performance to the 13\u201c Pro if both have the m1", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "ucany7", "question": "I am stuck between either a MacBook pro 13 in and the Air. I could buy the 16GB memory Air for less the amount of the Pro (8GB). I've watched some reviews and they say that there are totally little to no difference between the 2.", "comment": "Literally any one. I use a Thinkpad x201 that's over 10 years old and is perfectly fine for running ides and doing experiments", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ucany7", "question": "I am stuck between either a MacBook pro 13 in and the Air. I could buy the 16GB memory Air for less the amount of the Pro (8GB). I've watched some reviews and they say that there are totally little to no difference between the 2.", "comment": "/r/SuggestALaptop/", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ucc9tv", "question": " \n\nHello all,\n\nAs the title suggest, I am looking for some good books to pickup Rust. I have read some blogs out there that suggest:\n\nThe Rust Programming Language (Covers Rust 2018) by Steve Klabnik and Carol Nichols\n\nMy concern is that the book says that it covers Rust 2018. After some more searching, I discovered that meant rust 1.31.x. However, Rust is now on 1.60.0. I know that Rust changes pretty frequently so my concern is the relevancy of the book and what all has changed since. Hoping that the community can spread some light on this for me.\n\nThanks in advance.", "comment": "IIRC, the book's been updated for 2021 edition i.e >=1.58", "upvote_ratio": 150.0, "sub": "LearnRust"} +{"thread_id": "ucc9tv", "question": " \n\nHello all,\n\nAs the title suggest, I am looking for some good books to pickup Rust. I have read some blogs out there that suggest:\n\nThe Rust Programming Language (Covers Rust 2018) by Steve Klabnik and Carol Nichols\n\nMy concern is that the book says that it covers Rust 2018. After some more searching, I discovered that meant rust 1.31.x. However, Rust is now on 1.60.0. I know that Rust changes pretty frequently so my concern is the relevancy of the book and what all has changed since. Hoping that the community can spread some light on this for me.\n\nThanks in advance.", "comment": "I enjoyed reading: [Programming Rust: Fast, Safe Systems Development ](https://www.amazon.com/Programming-Rust-Fast-Systems-Development/dp/1492052590) covers Rust 1.56.0 also has some interesting mini-projects where the authors implement concepts from Rust to show the reader how they work.", "upvote_ratio": 140.0, "sub": "LearnRust"} +{"thread_id": "ucc9tv", "question": " \n\nHello all,\n\nAs the title suggest, I am looking for some good books to pickup Rust. I have read some blogs out there that suggest:\n\nThe Rust Programming Language (Covers Rust 2018) by Steve Klabnik and Carol Nichols\n\nMy concern is that the book says that it covers Rust 2018. After some more searching, I discovered that meant rust 1.31.x. However, Rust is now on 1.60.0. I know that Rust changes pretty frequently so my concern is the relevancy of the book and what all has changed since. Hoping that the community can spread some light on this for me.\n\nThanks in advance.", "comment": "**Not books, but the best resources I've found for learning rust.**\n\n[Learning Rust! Going through the Rust Language book (Video series)](https://youtube.com/playlist?list=PLSbgTZYkscaoV8me47mKqSM6BBSZ73El6)\n\n[Learning Rust! Exercism.org Rust Track (Video series)](https://youtube.com/playlist?list=PLSbgTZYkscappmMh-4I6Mrro03on9RWgT)\n\n[The Rust Lang Book (Video series)](https://youtube.com/playlist?list=PLai5B987bZ9CoVR-QEIN9foz4QCJ0H2Y8)\n\n[RUST PROGRAMMING TUTORIALS (Video series)](https://youtube.com/playlist?list=PLVvjrrRCBy2JSHf9tGxGKJ-bYAN_uDCUL)\n\n[Learning rust with exercism (Video Series)](https://youtube.com/playlist?list=PLBAZWBMYeVYjK_XjNskASXldA2VJR1G04)\n\n[The Rust Programming Language Book](https://doc.rust-lang.org/book/title-page.html)\n\n[My explanation of the main concepts in Rust](https://gist.github.com/DarinM223/e7237114cfdcf3644f90)\n\n\n[Rust By Example](https://doc.rust-lang.org/book/title-page.html)\n\n[Learning Rust](https://learning-rust.github.io/)\n\n[Educative](https://www.educative.io/courses/learn-rust-from-scratch)\n\n[Tour of Rust](https://tourofrust.com/index.html)\n\n[A half-hour to learn Rust](https://fasterthanli.me/articles/a-half-hour-to-learn-rust)\n\n**Practice**\n\n[Exercism](https://exercism.org/tracks/rust)\n\n[Code Wars](https://www.codewars.com/kata/search/rust)", "upvote_ratio": 90.0, "sub": "LearnRust"} +{"thread_id": "ucfu5e", "question": "Join The Comunity;)\n\nIp:85.190.160.217:17000\n\nDiscord:[https://discord.gg/5bvKEZz5g7](https://discord.gg/5bvKEZz5g7)", "comment": "Is it memory safe?", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "ucqqjy", "question": "...now that MIPS technologies jumped to the RISC-V bandwagon?", "comment": "I don't, but I bet colleges will still be using the current instruction set in 2100.", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "ucvk1m", "question": "Hello everyone! I\u2019m an EE working with all EE\u2019s. I\u2019ve inherited a major monstrosity of a program (Python). There are methods that call methods in classes that inherit and use attributes from another classes which have methods that call other modules\u2026etc etc. I tried to track down ONE LINE in a method and I sat there going from module to module for 20 minutes until I gave up. This program has been getting patches and Frankensteined for years, and many of the original engineers either retired or no longer work with the company. I do have two engineers that worked on it briefly and they\u2019re a great resource, but I was wondering if I can some advice from CS people. Is there a methodical way to untangle spaghetti code? My goal for now is to familiarize myself with it and be comfortable going through and maybe very very carefully make some changes/additions/optimizations. Any tips would be greatly appreciated!", "comment": "Read the code\n\nTry to track whatever coherency might exist with \"find usage of\" features of an IDE. Drawing charts may help to get an idea of the callgraph.\n\nBeing completely lost is natural and encouraged -- one of the best ways to learn IMO\n\nAnd then read it again\n\nIf there aren't any tests, start adding them, so that when you refactor, you're certain you don't play whackamole with things breaking.\n\nOnce you've read it enough, try to understand what commonalities may exist, see if you can write down a plan for a refactor, and start slicing up that work into manageable chunks.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ucvk1m", "question": "Hello everyone! I\u2019m an EE working with all EE\u2019s. I\u2019ve inherited a major monstrosity of a program (Python). There are methods that call methods in classes that inherit and use attributes from another classes which have methods that call other modules\u2026etc etc. I tried to track down ONE LINE in a method and I sat there going from module to module for 20 minutes until I gave up. This program has been getting patches and Frankensteined for years, and many of the original engineers either retired or no longer work with the company. I do have two engineers that worked on it briefly and they\u2019re a great resource, but I was wondering if I can some advice from CS people. Is there a methodical way to untangle spaghetti code? My goal for now is to familiarize myself with it and be comfortable going through and maybe very very carefully make some changes/additions/optimizations. Any tips would be greatly appreciated!", "comment": "First \"methods calling methods calling methods\" is actually encouraged. The alternatives are monoliths of code that are even harder to understand and maintain.\n\nIt's always challenging to work yourself into an unknown code base, learning what is where and how everything is connected. This is always going to need time. What you can look out for is whether the method and variable names are sensible and expressive. \"Can you 'read' the code and understand the gist of it or do you need to parse everything?\"\n\nA somewhat simple example would be:\n\n #region get private phone and mobile numbers\n var eaddrs = new List();\n foreach (var eaddr in eaddrtbl)\n {\n if ((eaddr.Type == \"Mobile\" || eaddr.Type == \"Phone\") && eaddr.IsPrivate)\n {\n eaddrs.add(eaddr);\n }\n }\n #endregion\n\nOn it's own it's not terribly hard to understand but it does take up 10 lines and burdens your mind with three constructs (define-assign-separation, loop and branch). If your method does 20 such things with some additional nesting that gets hard to follow. Something like Linq can help shorten it:\n\n var eaddrs = eaddrtbl.Where(eaddr => \n (eaddr.Type == \"Mobile\" || eaddr.Type == \"Phone\") && eaddr.IsPrivate\n ).ToList();\n\nYou replaced 3 constructs and 10 lines with 1 construct and 3 lines. But a bunch of those still add up. How about:\n\n var electronicAddresses = electronicAddressTable.getPrivatePhoneOrMobiles();\n\nYou can easily have 20 such lines in a method and it's still very easy to understand. There are very few instances where such a replacement is overkill IF, and only if, your naming is expressive of what it does. Sure comments could add this information but they are inert documentation and documentation costs effort to create and maintain.\n\n // get private phone and mobile numbers\n var lstAdEl = tAdEl.getPrPh();\n\nLittle purely structural changes like that can help immensely when getting a grip on a less than ideal codebase. Martin Fowler's [website](https://refactoring.com/) and [book](http://martinfowler.com/books/refactoring.html) are something of the canonical work in this regard. Worth reading through although the above is likely going to provide you with so much low hanging fruit to pick that you'll be covered for a good while.\n\nAlso, like others said I would look into automated testing, particularly Unit Testing and start putting it into place before you start more advanced refactorings. Unit Testing allows you to define things you expect to be true from a piece of code and quickly check whether they are still true after your changes (be it from refactoring or \"productive\" modifications)\n\nFinally be aware that there is a difference between ugly code and code you just don't understand yet. But they feel very much alike when you first meet them.\n\nObviously you gonna want to have source control in place where you can check in freely so that you can rewind when you fuck up. It should go without saying these days but just in case...", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ucvk1m", "question": "Hello everyone! I\u2019m an EE working with all EE\u2019s. I\u2019ve inherited a major monstrosity of a program (Python). There are methods that call methods in classes that inherit and use attributes from another classes which have methods that call other modules\u2026etc etc. I tried to track down ONE LINE in a method and I sat there going from module to module for 20 minutes until I gave up. This program has been getting patches and Frankensteined for years, and many of the original engineers either retired or no longer work with the company. I do have two engineers that worked on it briefly and they\u2019re a great resource, but I was wondering if I can some advice from CS people. Is there a methodical way to untangle spaghetti code? My goal for now is to familiarize myself with it and be comfortable going through and maybe very very carefully make some changes/additions/optimizations. Any tips would be greatly appreciated!", "comment": "Try to split the code in \"function calling function\". For each function, describe what the function do (or what you think it does, you can change it latter). Read the code and write what you understand of the function and then go deeper. Using a debugger (pdb) could help a lot. It's not necesary to \"go deeper\" if you can summary what a function does in few words (somethimes are just edge cases for a X process, just write \"edge case for X\").\n\nThe first time is always the hardest because everything is new, but after some time doing it the function will call functions you already described. You should try to start with not so complex functions.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ud5btb", "question": "This came up in response to Elon Musks acquisition of Twitter.\n\n\nFull quote:\n\n> In principle, I don\u2019t believe anyone should own or run Twitter. It wants to be a public good at a protocol level, not a company. Solving for the problem of it being a company however, Elon is the singular solution I trust. I trust his mission to extend the light of consciousness.\n\n\nSource: https://twitter.com/jack/status/1518772756069773313\n\n\nAll I can imagine is that he believes that there should be an open protocol (like there are protocols for email, presence, etc.) that allowed different implementation of Twitter-like technology to communicate \"tweets\" and users that is outside the ownership of any single company.", "comment": "Kind\u2019ve a random word choice but he means he wants what makes Twitter a public good to be built into the platform itself. As he points out, there are two distinct components to a huge company like twitter. There is the company/shareholder/internal political side and then there is the technology that exists underneath the platform as a whole.", "upvote_ratio": 150.0, "sub": "AskComputerScience"} +{"thread_id": "ud5btb", "question": "This came up in response to Elon Musks acquisition of Twitter.\n\n\nFull quote:\n\n> In principle, I don\u2019t believe anyone should own or run Twitter. It wants to be a public good at a protocol level, not a company. Solving for the problem of it being a company however, Elon is the singular solution I trust. I trust his mission to extend the light of consciousness.\n\n\nSource: https://twitter.com/jack/status/1518772756069773313\n\n\nAll I can imagine is that he believes that there should be an open protocol (like there are protocols for email, presence, etc.) that allowed different implementation of Twitter-like technology to communicate \"tweets\" and users that is outside the ownership of any single company.", "comment": "I think he means Twitter should be something more like SMTP (the \"Email\" protocol) or HTTP (the \"Web\" protocol) - an open protocol that anyone can implement competing clients and/or servers for, rather than a single app/service provided by a single company.", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ud5btb", "question": "This came up in response to Elon Musks acquisition of Twitter.\n\n\nFull quote:\n\n> In principle, I don\u2019t believe anyone should own or run Twitter. It wants to be a public good at a protocol level, not a company. Solving for the problem of it being a company however, Elon is the singular solution I trust. I trust his mission to extend the light of consciousness.\n\n\nSource: https://twitter.com/jack/status/1518772756069773313\n\n\nAll I can imagine is that he believes that there should be an open protocol (like there are protocols for email, presence, etc.) that allowed different implementation of Twitter-like technology to communicate \"tweets\" and users that is outside the ownership of any single company.", "comment": "Stratechery wrote a piece last week about how Twitter the product can be thought of as distinct from Twitter the broadcast-service/social-graph.\n\nhttps://stratechery.com/2022/back-to-the-future-of-twitter/\n\nWhile I don't think Dorsey is arguing for the same outcome, I think they are working with similar concepts. When Dorsey talks about the protocol level, I think he is using an analogy to describe the broadcast and social graph services. Or, in other words, all the infrastructure that aggregates, routes, and distributes messages, but not the actual end-user applications themselves.", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "udhs9e", "question": "What's the best IDE for Rust?", "comment": "I think the most common editor/plugin combinations are (in no particular order):\n\n1. VS Code + Rust Analyzer extension\n2. JetBrains CLion or Intellij + Rust Plugin\n3. neovim + lsp + Rust Analyzer\n4. vim + coc + Rust Analyzer\n\nBasically any editor that supports LSP protocol with Rust Analyzer will work.", "upvote_ratio": 500.0, "sub": "LearnRust"} +{"thread_id": "udhs9e", "question": "What's the best IDE for Rust?", "comment": "Intellij comes with many features but it has a yearly fee (in my opinion worth it). VSCode is free and you can equip it with rust-analyzer (and other plugins of your choice) and you\u2019ll be set\n\nEdit: Intellij has the community (free) version too! My bad I forgot about the fact you could get the rust plugin in that one too", "upvote_ratio": 110.0, "sub": "LearnRust"} +{"thread_id": "udhs9e", "question": "What's the best IDE for Rust?", "comment": "Emacs + lsp + rust analyzer is awesome; IntelliJ + Rust plug-in is great\u2014recently published Zero to Production in Rust makes an argument for why IntelliJ is the best option as of publication. I\u2019m sure more people are using VSCode than any of the other options put together though.", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "udvlex", "question": "Hi, thanks for taking the time.\n\nI'm looking for the the rightful owner of a YouTube video.\nTried reverse video/image research with no success.\n\nany ideas would be very much appreciated", "comment": "This is one of the great mysteries of computer science, and there are entire divisions of researchers at MIT working on exactly this problem. It may take some breakthrough in quantum computing before this type of high level analysis is possible. What an incredibly relevant question to computer science as a field.", "upvote_ratio": 90.0, "sub": "AskComputerScience"} +{"thread_id": "udvlex", "question": "Hi, thanks for taking the time.\n\nI'm looking for the the rightful owner of a YouTube video.\nTried reverse video/image research with no success.\n\nany ideas would be very much appreciated", "comment": "That's a legal question.", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ue6aoe", "question": "So my lecture slides says:\n\n>Time between the moment a very short message leaves a machine A until it arrives at machine B (i.e., between A sending and B receiving)\n\nMy question is, is this measurement for 1 bit? If not, say machine A sends a group of bits. Then, does the measurement start when the first bit leaves A or when the last bit leaves A?", "comment": "I think they're saying \"a very short message\" to imply that the time between the first and last bit leaving A is negligible, in comparison to the latency of the system.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ue6aoe", "question": "So my lecture slides says:\n\n>Time between the moment a very short message leaves a machine A until it arrives at machine B (i.e., between A sending and B receiving)\n\nMy question is, is this measurement for 1 bit? If not, say machine A sends a group of bits. Then, does the measurement start when the first bit leaves A or when the last bit leaves A?", "comment": "You know, I'm not sure if I've seen a definite answer to that. We can philosophize, though: can a message be considered \"sent\" if not all of it has been sent, or considered \"received\" if not all of it has been received?", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uefjom", "question": "Background: I am an undergrad student and have been using Java for the past 5 years. In march I started applying for internships labelled \"Java\" \"Spring MVC\" \"JDBC\" \"J2EE\" etc. I got an offer from a 6 year old company with 30 employees listed in their IT department on linkedin. Now when I asked them yesterday to give me a heads up on what I'll be working with/on they tell me it would be MERN stack, C#, python and php\n\nThe internship will start in 9 days and I received that email yesterday. Please advise me how to learn all this to a level that I can at least understand what's going on if presented some code. Mind you I have never touched JS and only yesterday I realised you can make functions inside functions in it.\n\nI need serious guidance on how to handle this because I can't leave this opportunity since I don't have any other offers currently and I am still applying to as many as I can find", "comment": "MERN is MongoDB, Express, React, Node. On top of that they've thrown THREE more whole programming languages.\n\nNo way you're going to learn even the basics of all of that in 9 days.\n\nBut you've already learned one programming language, you'll be fine with the others. Yes it will take time. But more time than you have right now to get any significant head way, so - in good Dr. House fashion (no point in testing for a disease when the patient will be dead before you get the results) - ignore those. Maybe if you've got time get a feel for the syntax.\n\nYou could put some time into learning the basics of node and express. But there are no big gotchas here and a huge amount to learn. This is like trying to learn all the java framework in a week. Frameworks and APIs are always stuff that you're going to learn as you use them so don't stress it.\n\nThis leaves Mongo DB and React and these are the things I'd start with. Not only are they the only techs mentioned of their kind, they are also fundamentally different enough from what you've likely used before that they are going to be your biggest stumbling blocks.\n\nBut in the end: they accepted you for this internship knowing your qualifications. You'll be expected to learn this stuff *during* - not before - your internship.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "uehlqi", "question": "currently i have something like this: \n\n Enum1 {\n Val1(Enum2),\n Val2,\n more values...\n }\n\n Enum2 {\n Val1(String),\n Val2,\n more values...\n }\n\n let event = Enum1::Val1(Enum2::Val1(String::from(\"yay\")));\n\n match event {\n Enum1::Val1(Enum2::Val1(string_value)) {\n if string_value == \"yay\" then {\n println!(\"got yay, yay\");\n }\n }\n more patterns ...\n } \n\nIs there better way to match the string_value here?", "comment": "You could look at `if let`", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ueiw3o", "question": "If I want a local data base just for me in my computer I need to create a local server. Why aren't there any local data bases programs/frameworks/libraries that I can access just like I access a .txt file.\n\nI'm a math student solving a problem that requires a lot of memory usage and I find myself struggling with databases and I don't have too much coding experience, that is why this is a stupid question.", "comment": "There are a lot of these! I guess the most popular one is sqlite, feel free to check it out. It's super simple to setup and surprisingly well supported", "upvote_ratio": 350.0, "sub": "AskComputerScience"} +{"thread_id": "ueiw3o", "question": "If I want a local data base just for me in my computer I need to create a local server. Why aren't there any local data bases programs/frameworks/libraries that I can access just like I access a .txt file.\n\nI'm a math student solving a problem that requires a lot of memory usage and I find myself struggling with databases and I don't have too much coding experience, that is why this is a stupid question.", "comment": "I think you are misunderstanding what 'server' means in this. Basically, in a client-server style architecture, you have your client, that requests data, and your server that sends data. It's and over simplification but it should give you the picture.\n\nWhen these things say you need a local server, that just means you need to install the server side software on your system. You can then use a client to interact with it, like if you installed MySQL, you could use mysqlworkbench", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ueiw3o", "question": "If I want a local data base just for me in my computer I need to create a local server. Why aren't there any local data bases programs/frameworks/libraries that I can access just like I access a .txt file.\n\nI'm a math student solving a problem that requires a lot of memory usage and I find myself struggling with databases and I don't have too much coding experience, that is why this is a stupid question.", "comment": "They don't require a server. A .txt file absolutely can be a database. It's just at some point manipulating a text file directly is not an effective way to work with your data.\n\nIt's kinda like running a business. When it's small you might be able to do everything out of your home but as it grows eventually you rent an office suite. As it continues to grow you might need to buy a building and then multiple buildings. If sounds like you've outgrown working from home and think you need to buy a building when really you should be looking for a simple office suite.\n\nIf a simple .txt file doesn't have all the functionality you need then maybe look into using a spreadsheet. You can do a lot of basic database type stuff very easily/quickly with modern spreadsheet software. If your needs outgrow a spreadsheet then something like Microsoft Access (Open Office/Google Docs has similar tools) might be worth looking into.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ueo719", "question": "I'm looking for project ideas in AI and Software Engineering that can be done in a week.\n\nThey should be fun to do, solve a real-world problem (even though not necessarily perfectly) and finally should be generally doable in a week full-time by one individual.", "comment": "An app that supports social justice/good cause like healthcare, homelessness, etc.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "uesv85", "question": "What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think?\n\nBecause I can imagine that learning one really fast algorithm would be a good way too, is there something im missing?\n\nThanks", "comment": "In fact, you will never use any of those algorithms for sorting, and you will most likely only use the \u201cbuilt in\u201d sorting algorithm of the language you are working with (which is usually some sort of hybrid sorting algorithm, such as Timsort for Java - that is not included normally in college curriculum).\n\nThe point of learning many sorting algorithm is the following:\n\n1. It is a relatively easy and straightforward problem, that has many algorithmic solutions\n\n2. It helps you in evaluating and comparing different algorithms \n\n3. It helps you understand that sometimes more intuitive solutions can be improved upon\n\n4. It is a quite didactic intro into some algorithm design strategies, like divide and conquer in the case of mergesort and quicksort.\n\n5. EXTRA: knowing these sorting algorithms is part of the \u201ccommon knowledge\u201d of a Computer Scientist. Just like Calculus might not be the most useful subject it is just something that you should know to be in the club of engineers/scientists, the same is the case with these algorithms. Are they the most practically useful stuff? Not at all. Are they tradtionally part \u201cComputer Scientist common mythology\u201d? Definitely.", "upvote_ratio": 790.0, "sub": "AskComputerScience"} +{"thread_id": "uesv85", "question": "What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think?\n\nBecause I can imagine that learning one really fast algorithm would be a good way too, is there something im missing?\n\nThanks", "comment": "yep. and to have bubble sort as your whipping boy in the future", "upvote_ratio": 130.0, "sub": "AskComputerScience"} +{"thread_id": "uesv85", "question": "What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think?\n\nBecause I can imagine that learning one really fast algorithm would be a good way too, is there something im missing?\n\nThanks", "comment": "The first time I encountered the idea of a binary search tree was an epiphany to me. It taught me that *how data is arranged in memory has a direct impact on how quickly code can execute*. Up to that point, I only knew array and only thought of it as a general collection.\n\n\nI think teaching several different ways of sorting accomplishes something similar. It is to generate an epiphany. I.e. *there are different ways to accomplish the same thing, but there are costs are consequences to all of them*. Such an epiphany will serve the student as he/she continues to learn algorithms and data structures.\n\n----\n\nA second thing though, is that different sorting algorithms may be adapted to solve not-quite-sorting problems.\n\n\nFor example, I was once asked in a job interview to write a function that counted the inversions (i.e. how far (or close) the array is from being sorted) in an array.\n\nI wrote a naive O(n^(2)) solution.\n\nBut the winning solution was to adapt merge sort.", "upvote_ratio": 100.0, "sub": "AskComputerScience"} +{"thread_id": "uetubj", "question": "So I am 16 from the UK, and have just left school so have alot of time on my hands for a few months until I go to college. I started learning to code around 5 or 6 months ago but haven't really got that far because I keep dabbling around in different languages, I started off with Python but then I realised that I didn't really want to do Python anymore because it wasn't too good for what I wanted to do. I think I can get the basics down on a language pretty quickly so I guess thats good, but anyway I am now learning Java but I'm hearing Java isnt used as much or something, im not sure. Could anyone suggest what language would be good to learn (or should I stick with Java?)", "comment": "What language do they use for the college course, and what kind of programming are you interested in doing? Websites? Apps? Embedded? Systems Programming? Etc", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "uf9yy8", "question": "I've been working with React Native for the last month or so. My question is, if I get decently good at it, will I be able to apply for Android/iOS engineering roles?", "comment": "Only if they are using ReactNative as part of their tech stack. You won't have experience with Kotlin/Swift, so many roles will not be available.", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ufdu2w", "question": "Do you remember \"personal ads\" in the newspapers? I enjoyed reading the ads but didn't know anyone that placed one. In researching, I discovered ads from the 1800s, including whole newspapers devoted to them.", "comment": "The Village Voice (an uber artsy liberal weekly newspaper based out of New York) had an (in)famous personal ad section. \n\nIn addition to the standard, Men looking for Women and Women looking for Men, they were one of the first that also carried personal ads for gays looking or love or a hookup. They popularized abbreviations that are common today such as, GAM (Gay Asian Male), BiBF (Bisexual Black Female) and so on.\n\nSimilar to Craigslist years later, the last section of the personals was an \"anything goes\" area. People looking for pretty pretty much any sort of kink involving 2 (or more) consenting adults would place ads there. \n\nAhhh the good old days.", "upvote_ratio": 350.0, "sub": "AskOldPeople"} +{"thread_id": "ufdu2w", "question": "Do you remember \"personal ads\" in the newspapers? I enjoyed reading the ads but didn't know anyone that placed one. In researching, I discovered ads from the 1800s, including whole newspapers devoted to them.", "comment": "I'm old, so this was back in the 1980's. My divorced father in NY actually responded to an ad in Sheila Wood's Find a Friend column in one of those supermarket checkout rags. I'd always figured they were sketchy, but the woman (in Texas) responded, and they began a courtship over telephone. He owned a restaurant in a pretty remote area, and all we had was a pay phone. For the next year they called back and forth, until she moved up for their wedding. Not all telephone systems were automated at that time, and I remember the local operators giving them rolls of quarters as a wedding present. They stayed married until his death about a decade ago.\n\nSeems pretty quaint now, with all the \"swipe right\" apps available these days.\n\n(edited)", "upvote_ratio": 350.0, "sub": "AskOldPeople"} +{"thread_id": "ufdu2w", "question": "Do you remember \"personal ads\" in the newspapers? I enjoyed reading the ads but didn't know anyone that placed one. In researching, I discovered ads from the 1800s, including whole newspapers devoted to them.", "comment": "Placing a personal ad in an alternative newspaper is how I met my current (and last, I hope) SO, been together for the last 28 years.", "upvote_ratio": 270.0, "sub": "AskOldPeople"} +{"thread_id": "uffgho", "question": "I would like to start schooling for a software engineering degree but I'm not sure about the prerequisites I need. I'm 34 years old and have been working as a chef for over 15 years. I am really interested in changing careers and software engineering really appeals to me but I don't have any background in computer tech. I also only have my GED; which I received months before I would've graduated high school if I hadn't dropped out. I guess I would like to know what I should do to get a head start. I would like to start classes by the beginning of next year. Any advice would help", "comment": "GED is equivalent to hs diploma so they're interchangeable.if ur trying to get to cc just sign up and schedule meeting with a counselor and they can make you an Ed plan getting in to a uni after so long would be difficult but there's some here or there that take anyone with a pulse so it's not impossible.\n\nBut if ur just trying to do self taught get to work then start applying.\n\nThis is all assuming you're stateside.\n\nCc= community College for clarification", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uffgho", "question": "I would like to start schooling for a software engineering degree but I'm not sure about the prerequisites I need. I'm 34 years old and have been working as a chef for over 15 years. I am really interested in changing careers and software engineering really appeals to me but I don't have any background in computer tech. I also only have my GED; which I received months before I would've graduated high school if I hadn't dropped out. I guess I would like to know what I should do to get a head start. I would like to start classes by the beginning of next year. Any advice would help", "comment": "In the US definitely I would recommend the community college pathway and finish at state university. You should first try out writing code, preferably for something that you have no vested interest in because a lot of software engineering is doing to be writing software that you don't care about, so make sure you enjoy the process not necessarily the end result.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ufhpas", "question": "If you try to move, rename, or just generally modify a file in Windows while it's being used in another application, you get an error and the OS won't let you.\n\nWhy is this? Are there operating systems that *do* allow files to be modified in storage while still being used in memory? Or is there a fundamental problem with doing so?", "comment": "That's a Windows thing, and can be worked around, but that's the default behavior. On Unix-style OSes, you generally *can* delete a file (or move it) while it is open in a program.\n\nThis is because on a typical Unix-style filesystem, an open file is just a reference to a block of data on disk, and does not have the filename associated with it. So, even if that block of data gets a different name associated, or gets removed from its enclosing directory (deletion), it still exists at the same location, until everything using it is done.\n\nThis is often how you do system upgrades while it is running. You might have lots of things using a dynamic library v1.0, then your upgrade deletes that and replaces it with v2.0. All the running programs still have open handles to v1.0, and thus keep functioning. All the new programs you run will open the v2.0 one, though.\n\nIn this [SO Post](https://stackoverflow.com/questions/43758975/can-i-read-a-file-in-windows-in-c-without-locking-folder-containing-the-file), it mentions a solution on Windows of creating a hardlink. On Unix, all files are hardlinks already, essentially.", "upvote_ratio": 80.0, "sub": "AskComputerScience"} +{"thread_id": "ufhpas", "question": "If you try to move, rename, or just generally modify a file in Windows while it's being used in another application, you get an error and the OS won't let you.\n\nWhy is this? Are there operating systems that *do* allow files to be modified in storage while still being used in memory? Or is there a fundamental problem with doing so?", "comment": "In addition to what the other comment has said, one potential problem with the OS arbitrarily allowing users to modify files on disk while they are open in memory is that changes to the file do not necessarily write immediately to disk synchronously. Frequently the system will batch up changes and flush them to disk only once in a while. \n\nIf the underlying file gets changed on disk while some changes were made to the file in memory, then the system might end up in a conflict. The changes in memory and the new changes to the file in disk might contradict each other, and the system now has to guess at how to resolve that.\n\nThe warning helps prevent this from happening unintentionally.", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "ufkbfl", "question": "I'm an assistant for my university in a research project where I have to access and manipulate really really large files and change the format (JSON to db). The thing is, it's so time consuming and I can't open these files on my computer because they're too big. I'm assuming that's a limitation caused by my RAM, right? I'm currently using a json streaming library through Python. It's so slow. Every new record has to be checked against the pre-streamed records for what we're trying to accomplish. I'm working primarily from a 600 mb JSON file so I know it's not because my computer is crap.\n\nSo if I were to pay for computing access through Amazon or Google Cloud, would that help my issue? Is this what Google Compute Engine is meant for? I'm a little vague on what exactly in my hardware is the limiting factor and what to look for in a paid cloud service.", "comment": "what software are you using to open the file? are you trying to open a 600mb file in notepad or some other text editor?", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ufl8xy", "question": "At what event or occasion did you realize that you are \u201cold\u201d?", "comment": "When I went to a big concert in 2010 or so of a rock band that topped the charts in the 1970s. I saw the people waiting in line and thought, \"I didn't know old people liked this music.\" A nanosecond later it hit me that they were my age.", "upvote_ratio": 1800.0, "sub": "AskOldPeople"} +{"thread_id": "ufl8xy", "question": "At what event or occasion did you realize that you are \u201cold\u201d?", "comment": "Not wanting to get pets that will outlive me.", "upvote_ratio": 1270.0, "sub": "AskOldPeople"} +{"thread_id": "ufl8xy", "question": "At what event or occasion did you realize that you are \u201cold\u201d?", "comment": "70 here. And I've never felt my age. I'd comment that 70 is the new 50. But in Feb, I severed my right quadracep. Fell on ice, leg buckled underneath and I heard the tendon snap. This is a fall that I would have taken easily in years past without injury. But now it was a major rupture and took surgery and months of recovery and Physical Therapy. This event has made me feel my age for the first time in my life. I can no longer prance around like a teenager, and any injury is going to take more time to hear. I've never felt so old until now.", "upvote_ratio": 1150.0, "sub": "AskOldPeople"} +{"thread_id": "ufmsb8", "question": "To those who struggled with anxiety young, how did you/your relationship with it change over time?", "comment": "I left home at 18, and once I had control over my own life, that cut my anxiety down tremendously. I set up my adult life into something that minimized anxiety/stress (i.e., a career that I enjoy and that pays well, NO children, and waiting until my mid 30s to get married.)", "upvote_ratio": 170.0, "sub": "AskOldPeople"} +{"thread_id": "ufmsb8", "question": "To those who struggled with anxiety young, how did you/your relationship with it change over time?", "comment": "You learn to understand it. You know what it is and finally learn that nothing bad is going to happen if you push thru it", "upvote_ratio": 140.0, "sub": "AskOldPeople"} +{"thread_id": "ufmsb8", "question": "To those who struggled with anxiety young, how did you/your relationship with it change over time?", "comment": "Learning yoga - especially breathing and relaxation practices - has been the most effective way I've ever been able to combat anxiety. Luckily I found a good book at the library when I was a teen - and it made all the difference.", "upvote_ratio": 100.0, "sub": "AskOldPeople"} +{"thread_id": "ufozou", "question": "You live your life. learn. work. raise a family. grandkids...what's next? waiting for your final destination? seems like i'm missing something", "comment": "For me, I coast through each day, doing what I want to do. Sometimes doing \"nothing\" .", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "ufozou", "question": "You live your life. learn. work. raise a family. grandkids...what's next? waiting for your final destination? seems like i'm missing something", "comment": "I skipped the family and grandkids part (not interested). I prefer to travel. The moral of the story being you can do with your life whatever you choose... You don't need to follow the script because everybody else is doing it. Unless you're independently wealthy, you probably do need to work, but you can find work that you enjoy doing. You figure out what your interests and passions are and pursue those when you can. You only get one shot... The goal is to spend the majority of it doing things you enjoy as opposed to those you don't and get out of the experience what you can.", "upvote_ratio": 150.0, "sub": "AskOldPeople"} +{"thread_id": "ufozou", "question": "You live your life. learn. work. raise a family. grandkids...what's next? waiting for your final destination? seems like i'm missing something", "comment": "Lots of meditation. Not just 20 minutes in the morning but 5-minute sessions during the day, like 6 of them. I'm more interested in being in the vast present than tangled up in a bunch of thoughts about what's next.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "ufpbl6", "question": "So 1 byte = 8 bits\n\n2\\^10 bytes = a killobyte, why couldn\u2019t (wasn\u2019t ?) there be 3 kB ram ?\n\nIt was always 4kb, 8, 64, now 1, 2, 4, 8 gigabytes\n\nI really couldn\u2019t find an answer for a long time because if we have 8 bits that\u2019s 2\\^8 states = 256 possible states, so if we have 3 kilobytes that\u2019s 3072 bytes = (3072 \\* 8) bits and thus 2\\^(3072\\*8) possible states. Im not missing anything, so why there is no ram capacities with odd number of bytes/kilobytes/gigabytes ?", "comment": "There have been. They're just rare.\n\nMemory is addressed by an address bus, meaning a set of wires that are each connected to ground or a voltage. Say you have two wires. That means there are exactly four memory locations: each of the wires can be connected to ground or voltage, making four unique combinations. So if you build a two wire memory chip, it makes sense to put four memory registers in it. You can't put any more, because you wouldn't be able to select them uniquely.\n\nYou _could_ put in less, if you wanted. If memory registers were super expensive and you only needed three of them, you could make a two-wire, three-register memory. But as soon as you started combining them, you'd be wasting pins. Suppose your project calls for seven memory registers. You'd need three of the 3-register chip, meaning 4 address lines (two that go into the chip and two to select between the three chips). Compare this to two 4-register chips, which can do the same job with just three lines. Your CPU only has a limited number of address lines, so wasting them like this is undesirable.\n\nAs a result, memory chips intended for general use are pretty much always \"full\" - every address they can decode is mapped to a register, without any addresses wasted. And this in turn means that memory chip capacities are always a power of 2.", "upvote_ratio": 220.0, "sub": "AskComputerScience"} +{"thread_id": "ufpbl6", "question": "So 1 byte = 8 bits\n\n2\\^10 bytes = a killobyte, why couldn\u2019t (wasn\u2019t ?) there be 3 kB ram ?\n\nIt was always 4kb, 8, 64, now 1, 2, 4, 8 gigabytes\n\nI really couldn\u2019t find an answer for a long time because if we have 8 bits that\u2019s 2\\^8 states = 256 possible states, so if we have 3 kilobytes that\u2019s 3072 bytes = (3072 \\* 8) bits and thus 2\\^(3072\\*8) possible states. Im not missing anything, so why there is no ram capacities with odd number of bytes/kilobytes/gigabytes ?", "comment": "Since the CPU address bus represents a binary number, the natural size for any memory block is a power of 2. If you had an 11-bit address bus, you could address 2,048 things. A 12-bit bus addresses 4,096 things. In terms of binary addressing, your example of 3,072 is an odd number, so to speak.", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ufpbl6", "question": "So 1 byte = 8 bits\n\n2\\^10 bytes = a killobyte, why couldn\u2019t (wasn\u2019t ?) there be 3 kB ram ?\n\nIt was always 4kb, 8, 64, now 1, 2, 4, 8 gigabytes\n\nI really couldn\u2019t find an answer for a long time because if we have 8 bits that\u2019s 2\\^8 states = 256 possible states, so if we have 3 kilobytes that\u2019s 3072 bytes = (3072 \\* 8) bits and thus 2\\^(3072\\*8) possible states. Im not missing anything, so why there is no ram capacities with odd number of bytes/kilobytes/gigabytes ?", "comment": "There are Xeon boards with 3 dimm channels per cpu. If you fill them with 1GB dimms, you can end up with 3, 6, or 9GB per cpu.", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "ufs1kg", "question": "Bell-bottoms, silk shirts with art-deco patterns, platform shoes, vests and can't remember what else.", "comment": "Clothes hadn't been invented yet. We didn't wear anything.", "upvote_ratio": 40.0, "sub": "AskOldPeople"} +{"thread_id": "ufs1kg", "question": "Bell-bottoms, silk shirts with art-deco patterns, platform shoes, vests and can't remember what else.", "comment": "In the 70s (childhood), I mostly wore jeans, sneakers, and t-shirts.\n\nI did the same in the 80s and 90s.\n\nWhen the 21st century came about, I continued the trend.\n\nNow, in my 50s, I mostly wear jeans, sneakers, and t-shirts.\n\nThe only real difference is that some of the jeans in the 1970s were bell bottoms or \"cowboy cut.\"", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uftqwz", "question": "I'm 46, and I will never miss being forced to wear wool anything. What things from the past that are now gone will you also not ever miss?", "comment": "Pantyhose whenever you wore a dress or skirt. Pads that required a belt before adhesives. Huge pads while you're at it that weren't compressed like now. Tampons with just cotton on the end and no rounded plastic tips, ouch. No cell phones and being able to call for help when you break down at night.", "upvote_ratio": 2390.0, "sub": "AskOldPeople"} +{"thread_id": "uftqwz", "question": "I'm 46, and I will never miss being forced to wear wool anything. What things from the past that are now gone will you also not ever miss?", "comment": "Wool isn\u2019t gone, but I guess it is for you.\n\nI don\u2019t miss second hand smoke.", "upvote_ratio": 2340.0, "sub": "AskOldPeople"} +{"thread_id": "uftqwz", "question": "I'm 46, and I will never miss being forced to wear wool anything. What things from the past that are now gone will you also not ever miss?", "comment": "I'm 55. People whispering the word cancer. Hiding/ locking away people with disabilities or mental health problems. Marital rape being legal. Sexual harassment being the 'price' women paid to have a job. \n\nAnd cigarette smoke, except vaping is making that an issue again.", "upvote_ratio": 1240.0, "sub": "AskOldPeople"} +{"thread_id": "ufzuda", "question": "I'm a CS student who is currently feeling unmotivated to continue diving deep into the fundamentals of programming.\n\nI already know how to build websites but I still consider the kinds of stack the project might need before considering doing it, just because I find it hard to switch from language to language.\n\nTo anyone here who already finds programming language/tools less scary, how does it feel?", "comment": "It feels ok I guess.", "upvote_ratio": 350.0, "sub": "AskComputerScience"} +{"thread_id": "ufzuda", "question": "I'm a CS student who is currently feeling unmotivated to continue diving deep into the fundamentals of programming.\n\nI already know how to build websites but I still consider the kinds of stack the project might need before considering doing it, just because I find it hard to switch from language to language.\n\nTo anyone here who already finds programming language/tools less scary, how does it feel?", "comment": "My skills aren't so much my ability to remember various programming languages and produce algorithms, but more my ability to visualize all of the interactions and the knowledge that there exist algorithms to perform most of the mathematically challenging things.\n\nAnd, my ability to use google.", "upvote_ratio": 80.0, "sub": "AskComputerScience"} +{"thread_id": "ufzuda", "question": "I'm a CS student who is currently feeling unmotivated to continue diving deep into the fundamentals of programming.\n\nI already know how to build websites but I still consider the kinds of stack the project might need before considering doing it, just because I find it hard to switch from language to language.\n\nTo anyone here who already finds programming language/tools less scary, how does it feel?", "comment": "It doesn't feel like anything. It's like asking how it feels to be able to read without struggling. You just ... do it.", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ug11np", "question": "I recently saw a story of a man who got out of prison after over 4 decades and thought to myself how the world is literally like an alien world to him and how homesick he must have been. In what ways for you is the world so different that it must feel like you\u2019re in another universe?", "comment": "I miss the days when the Main Street of small towns were full of shops. I miss the small businesses, usually owned by someone you knew, and the feeling of just visiting friends when running errands. I miss the soda counters in drug stores. I miss the train stations that used to be in every small town and the street cars that could be used to get around. You really didn\u2019t need a car. I miss the community life which seems practically non existent now. No one has time for that because everyone is working all the time, just trying to make meds meet.", "upvote_ratio": 2730.0, "sub": "AskOldPeople"} +{"thread_id": "ug11np", "question": "I recently saw a story of a man who got out of prison after over 4 decades and thought to myself how the world is literally like an alien world to him and how homesick he must have been. In what ways for you is the world so different that it must feel like you\u2019re in another universe?", "comment": "The lack of just being. Sure people veg out in front of the TV/screen etc. I miss the days when my grandfather would be sitting outside and neighbors would drop by and talk for awhile. Some would bring their guitar or banjo and they would play for a couple of hours, just being. No rush, no have to do, work day was done or it was Sunday afternoon. People just enjoyed being together. Talking and laughing or talking and consoling for a loss. People knew how to be together without ever seeing a screen. If the phone rang inside, a kid ran to check it or the person would call back later, no rush to interrupt the moment. I guess all that to say, people are too busy (even when not) to just enjoy the company of another human for a bit. I\u2019m as guilty as the next person.\n\nOh and 6-8% interest earnings in my basic savings account.", "upvote_ratio": 1810.0, "sub": "AskOldPeople"} +{"thread_id": "ug11np", "question": "I recently saw a story of a man who got out of prison after over 4 decades and thought to myself how the world is literally like an alien world to him and how homesick he must have been. In what ways for you is the world so different that it must feel like you\u2019re in another universe?", "comment": "All kinds of wildlife are DECIMATED where I live.\n\nBirds. Bugs. Frogs. Deer. Rabbits. Wolves. Bobcats. Butterflies. Turtles. And that's just what's at the top of mind.\n\nI'm in a very rural place, and the extreme decline in all sorts of wildlife is heartbreaking.", "upvote_ratio": 1200.0, "sub": "AskOldPeople"} +{"thread_id": "ug7bsh", "question": "What decade of your life have you enjoyed most so far?", "comment": "40s. My career and that of my husband were going great, but no so great we had trouble finding time to take vacations. The deaths of close relatives and friends hadn't started en masse. I still got hit on at bars by guys young enough to be my kid. I could run 15 miles each Saturday just for fun, and hike in the desert sun for hours.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "ug7bsh", "question": "What decade of your life have you enjoyed most so far?", "comment": "1970-1991 when I was a flight attendant travelling around the world, seeing the sites others paid thousands to see & being paid for it. We stayed in 5-star hotels & resorts, ate exotic foods & experienced different cultures & \"partied\" on duty free booze and enjoyed life.\n\nNow for the last 4 years, I live a completely live a different lifestyle in my 70's. I live in a small village in SE Asia, get up with the sun and go to bed soon after dusk, the same as my 6 cats do. Last night I helped a guy celebrate his 30th birthday, with some of his family & friends at the family house. We sat around with plenty of food from BBQ intestines, hotdogs & pork pieces, chicken in a sour tamarind broth, and other dishes I didn't recognise, a couple of crates of beer & a large bottle of Spanish brandy. It was relaxing sitting & sipping, with nibbling and good conversation and for me a short 800 metre walk home afterwards, although several people offered to drive me home, including a 9yo, with his parents tricycle. He was the one who brought my motorcycle back after his uncle had borrowed it earlier, and to invite me to the party. I would say now is also a great period of my life.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "ug7bsh", "question": "What decade of your life have you enjoyed most so far?", "comment": "30s\n\nmore money. good job. chill boss. having two little kids. much bigger house.", "upvote_ratio": 40.0, "sub": "AskOldPeople"} +{"thread_id": "ug9y9w", "question": "Hi, I have a situation where I need to do up to 5 http requests in parallel. I have some async functions that do the requests. The 5 requests are different data sources but all return Result<FeatureCollection> which is a geodata format. \n\nHowever I don\u2019t know in advance how many I will need to run, that depends on input. \n\nHow do I make sure that the requests run concurrently, and only those that I need?\n\nI\u2019ve looked into the join and join_all macros but they seem to either assume that you know which future/request will run, or that the output will be the same\n\nI\u2019ve also tried setting up a dummy async function that has the same result type as the actual function. However the compiler does not accept this, it complains that the functions have different opaque types even though they dont. This might have to do with the result trait\n\nWhat\u2019s a good way to solve this?", "comment": "You can, for each future that needs to run call Box::pin on it and push it into a Vec::<Pin<Box<dyn Future<Output = YourResult>>>>. You can the use join_all on that.\n\nEdit: Your Problem is that the futures associated with different async functions are different types (e.g. a future with more state that needs to be preserved will neccessarilly be larger). By using Box::<dyn Future>::pin() you move each future to the heap making it possible to store pointers to them in a vector and use *dyn* amic dispatch to distigush between the different future types.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "ugajyy", "question": "For educational purpouses I want to build an API that returns a random code fragment. To gather the data I'd like to scrape open-source projects on github, but I'm unsure which licenses forbit such actions. For example GNU GPL3.0 requires that I copy the license when I copy the source code. So here's the question: Projects with which licenses can I scrape for code?", "comment": "This is really a legal question, not a computer science question.\n\nYou can redistribute code that's under any open-source license, but almost any license (not just GPL) will require that you include the original copyright notice and/or license. If you wanted to comply with this requirement, you could just make your API return that information as well. (You probably don't need to include the complete license text with every response; I would think naming the copyright owner and linking to the original repo is good enough. After all, even GitHub doesn't include the complete license text on every web page that it serves up.)\n\nThe major exception to this is if the code is in the public domain, or under a [public-domain-equivalent license](https://en.wikipedia.org/wiki/Public-domain-equivalent_license), such as CC0 or the Unlicense. In that case, it's as if the code was never copyrighted at all, and you can do anything you want with it. (At least, that's how it works in the USA. Some countries also recognize [moral rights](https://en.wikipedia.org/wiki/Moral_rights) which are separate from copyright, and may not be so easily waivable. See why this is such a complicated topic?)\n\nThe other exception would be if your API is considered to fall under [fair use](https://en.wikipedia.org/wiki/Fair_use), but that is an extremely tricky legal question that is definitely out of scope for this subreddit.", "upvote_ratio": 80.0, "sub": "AskComputerScience"} +{"thread_id": "ugav8y", "question": "I drove a maroon Chevy Vega with tan interior with poor transmission. The guys used to drive fast cars and souped up cars that they overhauled themselves. Novas, Mustangs, Firebirds, GTOs-Goats, Mach II's, Trans Ams, Jaguar's and Corvettes.", "comment": "light mint green Ford Pinto - no, it never caught on fire.\n\nedited to add that my parents had a \"Grabber Orange\" Ford Maverick", "upvote_ratio": 140.0, "sub": "AskOldPeople"} +{"thread_id": "ugav8y", "question": "I drove a maroon Chevy Vega with tan interior with poor transmission. The guys used to drive fast cars and souped up cars that they overhauled themselves. Novas, Mustangs, Firebirds, GTOs-Goats, Mach II's, Trans Ams, Jaguar's and Corvettes.", "comment": "I drove VW Beetles and learned to do my own maintenance and repairs from [The Idiot Book.](https://www.bing.com/images/search?view=detailV2&thid=AMMS_601051f457153cf31f77ffaffc574482&mediaurl=https%3a%2f%2fimages-na.ssl-images-amazon.com%2fimages%2fI%2f61J1ZJE3TQL.jpg&exph=475&expw=361&q=how+to+keep+your+volkswagen+alive+john+muir&FORM=IRPRST&selectedIndex=0&stid=83ff2e8d-6e89-9924-def5-b9dc4fe3e2d1&cbn=EntityAnswer&idpp=overlayview&ajaxhist=0&ajaxserp=0) I got to the point where I could fix flats out on the road and swap engines in a couple of hours with a sheet of plywood, jacks and basic tools. I bought my best seventies car, a 1973 Porsche 914, in the eighties.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "ugav8y", "question": "I drove a maroon Chevy Vega with tan interior with poor transmission. The guys used to drive fast cars and souped up cars that they overhauled themselves. Novas, Mustangs, Firebirds, GTOs-Goats, Mach II's, Trans Ams, Jaguar's and Corvettes.", "comment": "Never had a car until my 20s (1980s), but I had this in high school after I turned 16. ['74 Kawasaki F7 175cc enduro](https://i.imgur.com/pVKbkue.jpeg) If it was raining or too cold I got a ride from a classmate or my Dad dropped me off in his Jeep Wagoneer.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "ugddoc", "question": " \n\nHello everyone!\n\nI am new to this sub and to the field of computer science. So please explain easy and simple as possible (treat me like 7-year-old kid and sorry for the bad English).\n\nSo, I am currently reading a book about computer science, and I've encountered a problem on computing system. The book's definition of computing system is \"All basic hardware and software that work together to run program.\" At the end of the chapter, the book asked the question: \"What is a computing system and provide examples of computing systems.\" I wrote CPU, GPU, RAMS and memory cards as examples of computing systems, but the answer from the book said, \"A computing system is any kind of computing devices such as laptops, phones, and tablets.\"\n\nTo my understand, computing devices are things that have both hardware and software, however my answers are simply the hardware. But when I searched examples of computing systems on Google, there were keyboards, barcode scanner, and touchscreen and I don't think these are examples of computing devices which is not right to the definition from the book (isn't keyboard just input device (hardware)?)\n\nSo, can anyone explain what computing system is (if the book's definition is not good or if you have better definition) and examples of computing systems? Also do CPU, GPU, RAMS and memory cards can be considered as computing systems? Lastly, does \"Computing System\" the same thing as \"Computer System\"?\n\nAny help would be appreciated.\n\nThank you!", "comment": "No the book is right in both scenarios, but it wasn't a very well written question. \n\nThink of a \"computing system\" as absolutely anything that involves a computer or computer network. \n\nAll of those items you were listing were hardware components of a computing system.\n\nA web sever like \"Apache tomcat\" would be am example of a software component of a computing system. \n\nA computing system could be the phone in your hand, the cell towers that make it connect to the world, the wires and network adapters and routers and everything I'm between. \nIt could also be the POS system in a restaurant. \nThe cash registers at your local deli. \n\nThe entire financial system. \nYour bank. \nYour car's ECU, and various sensors. \n\n\nA gpu, cpu, ram, etc... those are hardware components that may or may not be used in a computing system. \n\nEmbedded software would also count by the way... embedded software is like... think...a child's fire truck toy, with lights and sirens. That is also a computer system. It has a small computer that plays the sound, and controls the lights, and listens for user input (the kid pressing the button).", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uge6w2", "question": "Yeah I know this wasn't that long ago, but I'm too young to remember this event. How big was it really? Did it affect regular people?", "comment": "If you were working for dot coms like I did it was a very big deal. The world ended. It was a litany of dot failures. Non web companies weren't hiring either. It was like a game of musical chairs ended and there were no chairs.\n\nSan Francisco went from being an unbearable boom town to a ghost town in a matter of months. \n\nIf you were not in tech you might not have noticed, however. I remember talking to folks in other parts of the country and they weren't affected at all.", "upvote_ratio": 310.0, "sub": "AskOldPeople"} +{"thread_id": "uge6w2", "question": "Yeah I know this wasn't that long ago, but I'm too young to remember this event. How big was it really? Did it affect regular people?", "comment": "It was terrible. I was in tech, but working for a university, so I thought I was safe. But with the stock market tanking, the endowment shrank. The university cut back and laid me off. And there were NO tech jobs. Nobody was hiring. And if they were you were competing with all the other laid off workers. I was in my mid 40s without the latest and greatest skills.\n\nI sold everything and went from a luxurious 2br apartment to a tiny studio in a meh neighborhood, hoping to make my money last. I gave up on tech. Started volunteering for social service agencies, considered getting a degree in social work. Ended up getting a paying job at one - at 1/4 of my former salary. Relaxing, feel-good work, though. And I was kind of burned out on tech. If it hadn't been for the dot com crash I probably wouldn't have left. So it all worked out.", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "uge6w2", "question": "Yeah I know this wasn't that long ago, but I'm too young to remember this event. How big was it really? Did it affect regular people?", "comment": "When looking back on it and hearing people talk about it, it sounds like it was a quick crash. It wasn\u2019t. It was long and drawn out and businesses were trying their best to survive as long as they could, but eventually the layoffs started and didn\u2019t stop until the majority of the tech startups had gone out of business. I was one of the last at the company I worked at. Eventually the last 8 or so of us were called to a meeting and told they were shutting down.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "ughqt2", "question": "How do quantum computers processing power compare with the computing power of 3D chips of classical binary computers?", "comment": "Classical computation fundamentally boils down to logic gates, with basic operations of AND, OR and NOT. Each of these takes one or two bits as input and returns one bit as output. A bit is a single value which is logically true or false, and may be represented in a physical computer by the presence or absence of a voltage.\n\nMany of the classical logic gate operations are irreversible: for example, given the operation 1 OR 0 = 1, the inputs cannot be retrieved if you only know the output. Landauer's principle, which is proven experimentally, states that there is a minimum energy required for an irreversible single-bit operation. This establishes an upper bound on the amount of classical computation that can be performed using a given amount of energy. This limit is millions of times faster than any actual computers we know how to build, but it still establishes a theoretical \"fastest possible computer\" that can be used in, for example, estimating the strength of cryptosystems.\n\nQuantum computers escape this limit by doing almost all of their work using reversible operations. There is no theoretical minimum energy required for this, so (as far as I know) we do not know an upper bound for the \"fastest possible quantum computer.\" In order to do useful work using reversible operations, a different system is used. Instead of bits we have qubits, which are just probabilistic bits. A classical bit can only say \"this is definitely 0\" or \"this is definitely 1\" but a qubit can say things like \"this has a 60% chance of being 1.\" There are a bunch of reversible gates with names like the Pauli gate, Hadamard gate, etc. The details won't fit into a reddit comment, but these gates allow you to construct algorithms - but they're _different_ algorithms than the ones we know using classical gates. One famous example is Shor's algorithm, which factors large numbers with asymptotic time complexity O((log n)^(3)) (or perhaps a little better). Cryptosystems that depend on the difficulty of factoring large numbers, like RSA, may become vulnerable after we succeed in building large enough quantum computers. Currently, the quantum computers we can actually build are very tiny - the largest number we have actually factored using a real quantum computer is 56153. There are also crucial technical limitations on current quantum computers, like noise, precision and so on. So RSA is safe for a while yet.\n\nBut even if we learn to build large-scale quantum computers, that doesn't mean they are \"more powerful\" than classical computers. They just do different things, and in some ways are far less powerful. They are _not_ universal Turing machines - quantum computers don't have looping, conditionals, etc. So there are many important classical algorithms that cannot, even in principle, be executed on a quantum computer, no matter how large. In the future there might be devices that combine the features of both classical and quantum computing, but we're nowhere close to this yet. For the immediately foreseeable future, quantum computers will only function as a coprocessor attached to a classical computer, with the classical computer handling everything except the actual parallel computation. (One example: nobody's crazy enough to try to write a TCP stack in quantum gate logic, and even if they were, it would be a monumental waste of qubits. So a classical computer will always be needed if we want our quantum computer to be accessible over a network. This means we can't combine quantum computers into distributed systems.)\n\nIt's a really interesting field that I wish I had more opportunity to be involved with.", "upvote_ratio": 280.0, "sub": "AskComputerScience"} +{"thread_id": "ughqt2", "question": "How do quantum computers processing power compare with the computing power of 3D chips of classical binary computers?", "comment": "[deleted]", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ugksmb", "question": "Hi, I have a program that interacts with a whole bunch of crates that have their own error types. I also have my own. In total there are like 4 or 5; the standard error, actix-web, reqwest, geojson parsing, xml parsing.\n\nHow do I let these errors bubble through the program? I get that I return result<T, Error> from function calls, but afaik I cannot mix error types right? Does that mean I have to 'convert' error types in different stages of the program? \n\nI was hoping there was some kind of way to rely on the fact that they all implement the same trait", "comment": "I would suggest using [thiserror](https://docs.rs/thiserror/latest/thiserror/) crate or [anyhow](https://docs.rs/anyhow/latest/anyhow/) crate - depending on the usage of the errors thrown by your project.\n\nIs your project a library (and the errors should be usable for anyone using your lib) or do you want to react in a special way to some of those errors from other crates? If so, then use `thiserror` - it will help you build new error types (meaningful to you or users of your lib) by wrapping the errors from different crates.\nThere are a lot of attributes that you can add to your errors to make them more usable (e.g. include the sourcing error inside your error struct/enum variant). \n\nIf you're building a binary application (e.g. a CLI) and the errors should just be reported to the user and the application should stop working - use anyhow. This will wrap the errors thrown by other crates \"automatically\", you just need to specify that your result type is either `anyhow::Result<YourType>` or `Result<YourType, anyhow::Error>` (these are equivalent, anyhow's Result type is an alias for the latter). The `anyhow` can also give you the option to pass more context to the application user so they can try to figure out what to do to fix the error (e.g. point to them that some file named `config.yml` should exist, but it's not).\n\nI'm a beginner in Rust but this is what I've seen being done so far and that's what I'm using in my projects. \n\nProbably there is a way also to combine both of them, but I've never done something like this and I'm not quite sure if this is a good idea.\n\nBased on the crates you've listed I assume you're writing some kind of backend service - for the start I'd use anyhow, just for simplicity's sake.\nIf you would see later on that you need to handle some of the errors differently, I'd move those errors to another error type using `thiserror`.\n\nEdit: fixed typos", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "ugl5z8", "question": "I am looking for help understanding how to solve this. Not the answer. Thank you", "comment": "Bunch of print to consoles would probably work, and if it works it works\n\nI take it you're an absolute beginner?", "upvote_ratio": 90.0, "sub": "AskComputerScience"} +{"thread_id": "ugl5z8", "question": "I am looking for help understanding how to solve this. Not the answer. Thank you", "comment": "I am irritated that the pole is not at the middle", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ugl5z8", "question": "I am looking for help understanding how to solve this. Not the answer. Thank you", "comment": "Ask yourself how do I print a X , and how do I print a space ? And then go from there", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ugodyc", "question": "How did your injuries and near-death experiences from unsafe equipment make you the person you are today?", "comment": "Tetherball wrapping around the pole and hitting me in the face .", "upvote_ratio": 520.0, "sub": "AskOldPeople"} +{"thread_id": "ugodyc", "question": "How did your injuries and near-death experiences from unsafe equipment make you the person you are today?", "comment": "[deleted]", "upvote_ratio": 460.0, "sub": "AskOldPeople"} +{"thread_id": "ugodyc", "question": "How did your injuries and near-death experiences from unsafe equipment make you the person you are today?", "comment": "The seesaw helped you figure out which of your friends could be trusted.", "upvote_ratio": 390.0, "sub": "AskOldPeople"} +{"thread_id": "ugpvex", "question": "So I'm still fairly new to Rust, I've worked on some projects but all of them were sync. \n\nI've been hearing some opinions on async Rust and I wanted to see what the general consensus was - is it really more complicated and less ergonomic than the rest of the language, or am I just hearing a vocal minority?\n\nRust is an extremely elegant language in my opinion so wanted to hear more about this aspect.\n\nI have played around with `tokio` and such a bit and apart from cases of `.x().await?.y().await?` which aren't a huge issue but are a bit less clean, I haven't seen anything to indicate an issue.\n\nI'm aware of async traits not being stable but there are workarounds.\n\nWhat do you think?\n\nThanks!", "comment": "I believe async is *alright*, it's generally less polished and you will eventually run into confusing error messages if you work with async functions, because they are a bit too much magic.\n\nAs a backend developer I encounter async a lot in my daily job and these async-related wtfs come up once every two months or so, and are easy to resolve but YMMV.\n\nAltogether I would not avoid async due to its issues, it can be very useful.\n\nI remember cursing at the following off the top of my head:\n- Using mutexes without care in an `async fn` can be a huge footgun\n- `async fn`-s may implicitly capture all arguments, including `&self`, and `async fn foo(&self) -> usize { 2 }` will not be a `'static` future, this can be solved by rewriting the function to return a future and async block instead: `fn foo(&self) -> impl Future<Output = 2> + 'static { async { 2 } } `.\n- Using `!Send` values across `.await` points when the future is expected to be `Send` will make the compiler go crazy, it will tell the problem but won't tell you where it is exactly.\n\nNote that the lifetime issues might be caused by `async-trait`, and will not happen with regular `async fn`s, I don't remember.", "upvote_ratio": 130.0, "sub": "LearnRust"} +{"thread_id": "ugpvex", "question": "So I'm still fairly new to Rust, I've worked on some projects but all of them were sync. \n\nI've been hearing some opinions on async Rust and I wanted to see what the general consensus was - is it really more complicated and less ergonomic than the rest of the language, or am I just hearing a vocal minority?\n\nRust is an extremely elegant language in my opinion so wanted to hear more about this aspect.\n\nI have played around with `tokio` and such a bit and apart from cases of `.x().await?.y().await?` which aren't a huge issue but are a bit less clean, I haven't seen anything to indicate an issue.\n\nI'm aware of async traits not being stable but there are workarounds.\n\nWhat do you think?\n\nThanks!", "comment": "I don't have a ton of experience with async code myself, but I see lots of examples where the solution to some problem is something like `Pin<Box<dyn Future<Output = ...>>>`. This combines several different language features that tend to be less familiar to beginners:\n\n- Both `Pin` (edit: woops I meant `Unpin`) and `Future` are traits, and they both combine beefy APIs with relatively subtle documented requirements and guarantees. Understanding every last detail of `Pin` isn't necessary to write most async code, but it does sometimes come up.\n\n- `Box<dyn Future<...>>` is a dynamic trait object. Often we just don't have to think about these, but they're another important moving part in Rust that comes with some nontrivial restrictions, like the concept of [\"object safety\"](https://doc.rust-lang.org/reference/items/traits.html#object-safety).\n\nIf you've already played around with traits and gotten familiar with associated types and generic bounds and things like that,`Future` and `Pin` might be no sweat. On the other hand, if you haven't yet gotten much exposure to traits, async Rust might force you to learn a lot all at once.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ugqqox", "question": "How did the 2007 recession mold you financially? Did it change the way you saved?", "comment": "Yes! I saw the downturn as a chance to dump a bunch of money into retirement investments, knowing that eventually it was going to turn around. \n\nIt was literally the \u201cbuy low (wait to retire) sell high\u201d investment period. I gained years of retirement savings I wouldn\u2019t have had if the market just stayed on slow growth.", "upvote_ratio": 230.0, "sub": "AskOldPeople"} +{"thread_id": "ugqqox", "question": "How did the 2007 recession mold you financially? Did it change the way you saved?", "comment": "No. I sold my house at the top of the top of the market on the west coast and 6 months later bought a house at the bottom of the market on the east coast. In 2015, I sold the east coast house and bought a house in Arizona just before the market doubled here.\n\nI turned $200K of equity in to $2M through a combination of dumb luck and good timing.", "upvote_ratio": 140.0, "sub": "AskOldPeople"} +{"thread_id": "ugqqox", "question": "How did the 2007 recession mold you financially? Did it change the way you saved?", "comment": "It made me ignore the swings (both big and small) when it comes to investing. I was reading everything I could about the economy, the roots of the problems, how QE works, derivatives, what caused the housing crisis, etc. I found it absolutely fascinating however I also found out that it was easy to get into the doom & gloom mindset. Luckily that phase didn\u2019t last long and I pretty much stayed the course and obviously my investments recovered.\n\nNow, I\u2019m pretty numb to the daily swings. I still enjoy reading about the markets but I take it all with a grain of salt and look at the overall picture. I see people worrying about how much they\u2019ve lost this year but completely ignoring how much they\u2019ve gained over the last 10. I\u2019m still following the same path for the most part (401k, dollar-cost-averaging) but I am more aggressive with my personal investment accounts when I see the opportunity.\n\nAnother by-product of living through that. It probably helped me to handle world-wide issues better. When the pandemic hit, I didn\u2019t rush out and panic. My family focused on what we could do rather than freak out about the outside world. From an investment perspective, I invested a lot more than normal in March of 2020 and that worked out well.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "ugsvmt", "question": "Hello,\n\nTher's a tiling window manager (based on Penrose library) written in Rust which I'm trying to make it run on Alpine Linux. However, after compiling when trying to run the binary I get a \"Segmentation fault\" error. From my basic undersating this must be compiled with \"--target x86\\_64-unknown-linux-musl\" but I'm still getting the same error.\n\nCan someone help me with this please?\n\nthanks", "comment": "You could share the logs for starters. Set RUST_BACKTRACE=full and run in debug mode. \n\nDid you test the app on a different OS, or is this Alpine specific? Segmentation fault after the program compiled fine is suspect.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "ugtva6", "question": "If you're a fresh Rust developer, here's a great mentorship opportunity", "comment": "\"The program requires a commitment of 170 to 340 hours for three to six months\"\n\nThat big a commitment without any pay? That's ridiculous.", "upvote_ratio": 150.0, "sub": "LearnRust"} +{"thread_id": "ugtva6", "question": "If you're a fresh Rust developer, here's a great mentorship opportunity", "comment": "I may be wrong but it looks like an unpaid internship, isn't it ?", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "ugtva6", "question": "If you're a fresh Rust developer, here's a great mentorship opportunity", "comment": "What\u2019s the difference between this and an unpaid internship?", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "uh61ji", "question": "Consider a complete graph with nonnegative weighted edges, arranged in a circle. A triangulation of a complete graph is a subgraph such that no edges in it are crossing, but adding any edge would cause edges to cross. I want to find an efficient algorithm to find a triangulation of maximum total weight. \n\nIt's clear that as you go around the edge of the circle each edge will be added since they are nonnegative and can never cause a crossing. \n\nI initially thought of greedy algorithms but I don't think any of them work. \n\nI also tried considering a divide-and-conquer algorithm, like taking any vertex and iterating through all of the edges that one could select containing it, finding the maximal triangulation of the subgraph on either side of the edge. However, when I analyzed the runtime of this it seemed exponential and therefore not efficient.", "comment": "> I also tried considering a divide-and-conquer algorithm, like taking any vertex and iterating through all of the edges that one could select containing it, finding the maximal triangulation of the subgraph on either side of the edge. However, when I analyzed the runtime of this it seemed exponential and therefore not efficient.\n\nAre you sure? I haven't worked out all the details, but it seems to me that with this approach there would be O(n^(2)) subproblems, each of which can be handled in O(n) time, which means you can use dynamic programming to get an overall time complexity of O(n^(3)). (Each subproblem corresponds to an interval between some starting and ending node on the circle, and its solution is the maximum total weight that can be obtained using only the nodes and edges within that interval.)", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uh8cxq", "question": "I love all The New Rascals songs, especially the song, How Can I Be Sure sung by Eddie Brigati.", "comment": "There's just too many to name .......but easily one of the most underrated bands are The Kinks, the put out 5 or 6 straight great albums starting in 1966 and hardly anyone seemed to notice at that time. They had been banned from performing live in the U.S.\n\nThe Rolling Stones put out some damn good music on 4 straight albums starting in 1968: Beggars Banquet, Let it Bleed, Sticky Fingers, and Exile on Main Street. 2 great non-lp singles at the same time: Jumping Jack Flash and Honky Tonk Women.\n\nThen there's Led Zeppelin, Pink Floyd, and those 3 great mid-70's Queen albums: Sheer Heart Attack, A Night at the Opera, and A Day at the Races.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "uh8cxq", "question": "I love all The New Rascals songs, especially the song, How Can I Be Sure sung by Eddie Brigati.", "comment": " Not big into favorites - I find them too limiting - but you asked about what was a golden age of music for me:\n\nSimon and Garfunkel, Beatles, Rolling Stones, Bob Seger, Motown, The Who, Creedence Clearwater, Three Dog Night, Guess Who, Eagles, Elton John, Led Zeppelin, Rod Stewart, James Taylor, Joni Mitchell, Crosby Stills Nash and sometimes Young. Kinks. Bee Gees before Disco, Alice Cooper. It goes on an and on and on.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uh8cxq", "question": "I love all The New Rascals songs, especially the song, How Can I Be Sure sung by Eddie Brigati.", "comment": "Early 60's was The Beach Boys Three Dog Night and the Byrds. Then The Who, Humble Pie, Grateful Dead, Allman Bros. Band, Dave Mason, Deep Purple, CCR, John McLaughlin and the Mahavishnu Orchestra, Jefferson Airplane/Starship, Steve Miller Band and a whole lot of other bands. I got in to \"undergrand FM\" in the L.A. area (KNAC, KPPC, KMET and KLOS). Lots of good music and concerts going around then.", "upvote_ratio": 40.0, "sub": "AskOldPeople"} +{"thread_id": "uhg8t1", "question": "What was it like to be part of the fight for the right to obtain a safe legal abortion?", "comment": "My beloved grandma - white, happily married, solidly middle class - almost died from blood loss while lying on her dining room table in the 50s following a \"successful\" abortion. She suffered for years afterwards. \n\nMy wife and I protested in DC in the late 80s to protect pro-choice laws.\n\nIt felt important then, it's just as important now. \n\nAmerica's slide into a white Christian fascist oligarchy has been depressing to experience.", "upvote_ratio": 2600.0, "sub": "AskOldPeople"} +{"thread_id": "uhg8t1", "question": "What was it like to be part of the fight for the right to obtain a safe legal abortion?", "comment": "What's it like??\n\nIt's like being the smartest, most compassionate person in a room where the people with single digit IQs and allergies to facts are making decisions. \n\nIt's like knowing the shortsightedness of the GOP will backfire spectacularly, but not before innocent lives are lost *( not talking about the fetus). \n\nIt's like having someone tell me that I can't masturbate on Sunday because they think I should be at church. \n\nIt's like yelling into a void because you know that the people on the opposing team don't give two shits about babies once they're born, but they'll \"fight for their right to live.\"\n\nThey want them BORN. Not HOUSED. Not FED. Not CARED FOR.\n\nIf they were *really* pro-life, then they'd give a shit after the baby was born. \n\nThey don't, however, and the policies of the party for which they vote clearly reflect this. \n\nThey just can't be bothered to give a shit, no matter how much lip service they pay to the topic. \n\nTheir actions speak clearly on their behalf. And their actions tell you that, as a woman , you have zero say in what happens while you are pregnant. \n\nAny of you, whether you have a penis or a vagina, who is fine with your neighbors being able to dictate whether or not you carry a pregnancy, any of you who believe you deserve a say in another woman's choice to end a pregnancy, can go str8 to hell and take your beliefs with you. \n\nThe only person you get to make reproductive decisions for is the one in the mirror. \n\nDisagree? You can die mad about it.", "upvote_ratio": 1470.0, "sub": "AskOldPeople"} +{"thread_id": "uhg8t1", "question": "What was it like to be part of the fight for the right to obtain a safe legal abortion?", "comment": "As an older woman, I will tell you that I am terrified for my granddaughter. I'm afraid for the girls she will grow up with, I'm even scared for her idiot mother. People are going to die because of this ruling. I literally,as in dictionary definition, just saw a headline that said the SC said that the leaked draft is authentic, and that Roberts is launching an investigation into the leak. I find it pathetic that they are more concerned about punishing the person who leaked this information than the people who's lives will end because of this ruling. Our grandchildren will be the people dying. \n\nLet that sink in. Someone reading this will attend a funeral caused by an unsafe abortion.", "upvote_ratio": 1240.0, "sub": "AskOldPeople"} +{"thread_id": "uhgmwl", "question": "What degree complements computer science other than science degrees like math, physics, engineering, etc?", "comment": "Linguistics, operations research.", "upvote_ratio": 240.0, "sub": "AskComputerScience"} +{"thread_id": "uhgmwl", "question": "What degree complements computer science other than science degrees like math, physics, engineering, etc?", "comment": "Pretty much all of them.\n\nThe strength of Computer Science lies in it being able to be comboed with almost anything. That said, of course some are maybe a bit better than others. Mathematics, and the natural sciences (physics, biology, earth sciences, to a lesser degree chemistry) are obvious picks.\n\nPhilosophy is of course a very sensible combination as well, Oxford university offers a CS+Phil degree for example: [https://www.ox.ac.uk/admissions/undergraduate/courses/course-listing/computer-science-and-philosophy](https://www.ox.ac.uk/admissions/undergraduate/courses/course-listing/computer-science-and-philosophy)\n\nIf you are especially interested in the business side of CS, then of course business related degrees are great. Economics, business, finance, psychology, media and communication are all possible combos that can be useful in the business arena.\n\nIf you are most interested in AI/cognitive science, then psychology, linguisitics, neurobiology are all very desirable options.", "upvote_ratio": 210.0, "sub": "AskComputerScience"} +{"thread_id": "uhgmwl", "question": "What degree complements computer science other than science degrees like math, physics, engineering, etc?", "comment": "Business, Management/Engineering Management, Psychology (for UX)", "upvote_ratio": 140.0, "sub": "AskComputerScience"} +{"thread_id": "uhhvv1", "question": "I have a function like this\n\n fn evaluate<T>(&self, s: &State, a: Option<T>) -> Option<T>\n where\n T: num::PrimInt + std::iter::Sum + WrappingAdd + WrappingSub,\n\nAnd now I realize I need to know the width of the argument.\n\n(For context, this is part of something which needs to emulate part of the [STM8 instruction set](https://www.st.com/resource/en/programming_manual/cd00161709-stm8-cpu-programming-manual-stmicroelectronics.pdf). This instruction set has many operations which can take either an 8-bit operand or a 16-bit operand, hence the Generics. But I'm particularly getting stuck on the SWAP instruction. The SWAP instruction takes two halves of the operand, and swaps them over. For example, 0x1f becomes 0xf1, but 0x1234 becomes 0x3412.)\n\nI'm looking for something like `T::width()` or something that can tell me where to actually split the word, but I can't seem to find it. Does anyone here know? Or am I simply taking the wrong approach here?\n\nEDIT: Apologies for the goofy title; I realized after I posted it there's probably a clearer way to phrase the problem", "comment": "You could possibly use [std::mem::size\\_of<T>()](https://doc.rust-lang.org/std/mem/fn.size_of.html) but that does return the aligned size rather than the raw size, however this is equal for most primitive number types so if that covers your use case then great.\n\nThe other option would be to define your own trait with a `width` function and implement that trait for all supported types, for example:\n\n trait SwapArgument\n {\n fn width() -> usize;\n }\n \n impl SwapArgument for u16\n {\n fn width() -> usize\n {\n 2\n }\n }", "upvote_ratio": 90.0, "sub": "LearnRust"} +{"thread_id": "uhhvv1", "question": "I have a function like this\n\n fn evaluate<T>(&self, s: &State, a: Option<T>) -> Option<T>\n where\n T: num::PrimInt + std::iter::Sum + WrappingAdd + WrappingSub,\n\nAnd now I realize I need to know the width of the argument.\n\n(For context, this is part of something which needs to emulate part of the [STM8 instruction set](https://www.st.com/resource/en/programming_manual/cd00161709-stm8-cpu-programming-manual-stmicroelectronics.pdf). This instruction set has many operations which can take either an 8-bit operand or a 16-bit operand, hence the Generics. But I'm particularly getting stuck on the SWAP instruction. The SWAP instruction takes two halves of the operand, and swaps them over. For example, 0x1f becomes 0xf1, but 0x1234 becomes 0x3412.)\n\nI'm looking for something like `T::width()` or something that can tell me where to actually split the word, but I can't seem to find it. Does anyone here know? Or am I simply taking the wrong approach here?\n\nEDIT: Apologies for the goofy title; I realized after I posted it there's probably a clearer way to phrase the problem", "comment": "Since you have a well-defined universe of possible types, I would be inclined to implement the actual swap as a trait on `u8` and `u16`\u00b9 and then have the generic bounded on that trait and call the trait method. This way your code would avoid an `if` branch on the static size and since the logic for an 8-bit value is going to be very different than the logic for a 16-bit value since the former needs to operate on bits while the latter on bytes (and may well compile to a single instruction in machine code).\n\nE.g.,\n\n trait Swap<T> {\n fn swap(self) -> Self;\n }\n \n impl Swap for u8 {\n fn swap(self) -> u8 {\n self.rotate_right(4)\n }\n }\n \n impl Swap for u16 {\n fn swap(self) -> u16 {\n self.swap_bytes()\n }\n }\n\n\u2e3b\n\n1. Assuming of course that these would be the correct types and not `i8` and `i16`.", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "uhhvv1", "question": "I have a function like this\n\n fn evaluate<T>(&self, s: &State, a: Option<T>) -> Option<T>\n where\n T: num::PrimInt + std::iter::Sum + WrappingAdd + WrappingSub,\n\nAnd now I realize I need to know the width of the argument.\n\n(For context, this is part of something which needs to emulate part of the [STM8 instruction set](https://www.st.com/resource/en/programming_manual/cd00161709-stm8-cpu-programming-manual-stmicroelectronics.pdf). This instruction set has many operations which can take either an 8-bit operand or a 16-bit operand, hence the Generics. But I'm particularly getting stuck on the SWAP instruction. The SWAP instruction takes two halves of the operand, and swaps them over. For example, 0x1f becomes 0xf1, but 0x1234 becomes 0x3412.)\n\nI'm looking for something like `T::width()` or something that can tell me where to actually split the word, but I can't seem to find it. Does anyone here know? Or am I simply taking the wrong approach here?\n\nEDIT: Apologies for the goofy title; I realized after I posted it there's probably a clearer way to phrase the problem", "comment": "In case you do ever need to actually get the concrete type instead of just using the size, the trait bound you will need is the [Any Trait](https://doc.rust-lang.org/std/any/trait.Any.html) which allows down casting an opaque type to a concrete type, though it does require `'static`", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "uhjd3h", "question": "We are announcing a temporary moratorium on posts related to abortion, the Supreme Court and the leaked draft. We will review this before the weekend, and may post a megathread, but our current expectation is that a moratorium outside a megathread will last until the full release of the *Dobbs v. Jackson Women's Health* order, or further news or statements from the Court provide a more complete story which will make us reconsider.\n\nThis is a historic moment, and we recognize that. There has not been a decision leak from SCOTUS in nearly 40 years, and never in history has a draft been leaked. Discussions about just this relatively apolitical event might have been welcomed.\n\nHowever, adding in the very contentious issue of abortion, a draft that is months old, and lack of any official news or statements, the comments and posts we have seen so far are not constructive to the purpose of this subreddit.\n\nWe must stress that while this is a subreddit about our culture, it is *not* a current events, debate, political news or conspiracy subreddit. People are understandably having very strong responses to this, and looking to vent with like-minded others. We try to keep things civil here, and part of that is waiting until there is more information and people are less reactionary to this shocking event.", "comment": "When discussing the matter from this point forward we have to refer to it as a \"special operation\".", "upvote_ratio": 900.0, "sub": "AskAnAmerican"} +{"thread_id": "uhjd3h", "question": "We are announcing a temporary moratorium on posts related to abortion, the Supreme Court and the leaked draft. We will review this before the weekend, and may post a megathread, but our current expectation is that a moratorium outside a megathread will last until the full release of the *Dobbs v. Jackson Women's Health* order, or further news or statements from the Court provide a more complete story which will make us reconsider.\n\nThis is a historic moment, and we recognize that. There has not been a decision leak from SCOTUS in nearly 40 years, and never in history has a draft been leaked. Discussions about just this relatively apolitical event might have been welcomed.\n\nHowever, adding in the very contentious issue of abortion, a draft that is months old, and lack of any official news or statements, the comments and posts we have seen so far are not constructive to the purpose of this subreddit.\n\nWe must stress that while this is a subreddit about our culture, it is *not* a current events, debate, political news or conspiracy subreddit. People are understandably having very strong responses to this, and looking to vent with like-minded others. We try to keep things civil here, and part of that is waiting until there is more information and people are less reactionary to this shocking event.", "comment": "I\u2019ll make sure to have popcorn ready for sale in the megathread", "upvote_ratio": 790.0, "sub": "AskAnAmerican"} +{"thread_id": "uhjd3h", "question": "We are announcing a temporary moratorium on posts related to abortion, the Supreme Court and the leaked draft. We will review this before the weekend, and may post a megathread, but our current expectation is that a moratorium outside a megathread will last until the full release of the *Dobbs v. Jackson Women's Health* order, or further news or statements from the Court provide a more complete story which will make us reconsider.\n\nThis is a historic moment, and we recognize that. There has not been a decision leak from SCOTUS in nearly 40 years, and never in history has a draft been leaked. Discussions about just this relatively apolitical event might have been welcomed.\n\nHowever, adding in the very contentious issue of abortion, a draft that is months old, and lack of any official news or statements, the comments and posts we have seen so far are not constructive to the purpose of this subreddit.\n\nWe must stress that while this is a subreddit about our culture, it is *not* a current events, debate, political news or conspiracy subreddit. People are understandably having very strong responses to this, and looking to vent with like-minded others. We try to keep things civil here, and part of that is waiting until there is more information and people are less reactionary to this shocking event.", "comment": "But we can still discuss the weather, right?", "upvote_ratio": 730.0, "sub": "AskAnAmerican"} +{"thread_id": "uhm9c9", "question": "Were you looking for it, just happened at random, was something \u201carranged\u201d (like actually arranged or even a blind date)?", "comment": "I was just 19 and was already sick of the kind of guys that were always ready to jump my bones but never put anything into any kind of real connection. I took a look at myself and honestly assessed the kind of guy that would be good for me and also the kind of guy I'm attracted to. And I was sure it would take forever to find him but I would persevere and ignore all the ones that would be no good. \n\nHe showed up about 2 weeks later although it took quite a few months for me to decide maybe he was the one. We've been married since 1980. No regrets. It's been a ride - not exactly first class but a lot more fun and never boring. I never really cared about having it all. I only needed enough and I have a lot more than that. Now if only we could actually retire...", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "uhm9c9", "question": "Were you looking for it, just happened at random, was something \u201carranged\u201d (like actually arranged or even a blind date)?", "comment": "\\> Have you ever found love? If yes, when?\n\nMultiple times.! Most recently with the wonderful woman I married several decades ago. Many years, six kids, and a bunch of grandkids ago, we're still very much in love and incredibly happy to be together.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uhm9c9", "question": "Were you looking for it, just happened at random, was something \u201carranged\u201d (like actually arranged or even a blind date)?", "comment": "I was (1970) 18. She was 16. My sister, with whom I was very close (J.D. Salinger \"Franny & Zooey\" close) introduced us. We have been married 47 years this year. She has put up with a lot of my shenanigans, but it has never been boring. We have three children who tell us their love lives were ruined because they cannot aspire to the relationship my wife and I have. We are old now and beginning to talk about what happens when one of us must go.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uhma4e", "question": "Hi,\n\nI'm slowly learning that comparing programming environments is hard and its almost impossible to say that one language will always be faster than another for certain use cases..\n\nHowever I ran into something peculiar now.\n\nI have an application where I need to calculate the Intersection between polygons as part of an actix-web server. I need to do this between two groups of polygons. For this case consider a group of 300 polygons and another group (about 50). so 15.000 comparisons. This is not atypical.\n\nI have this application in Node, using the turf module. Results vary of course, but its not strange for this to happen in around 15 seconds in the Node version. Obviously I turned to rust to speed this up.\n\nI rewrote a prototype for this in Rust with the Geo crate, and.. it takes 26 seconds on average.\n\nFirst thing I checked: Am I building a debug build? Classic error. But I wasn't. \n\nCan someone shed some light on this?\n\nsome hypotheses:\n\n\\- The turf module in Node is not actually javascript under the hood?\n\n\\- I still have some build setting messed up somewhere", "comment": "Can you show some code? Try to run benchmarks with flamegraph https://github.com/flamegraph-rs/flamegraph\n\nIt's possible that the node library has better optimizations.", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "uhma4e", "question": "Hi,\n\nI'm slowly learning that comparing programming environments is hard and its almost impossible to say that one language will always be faster than another for certain use cases..\n\nHowever I ran into something peculiar now.\n\nI have an application where I need to calculate the Intersection between polygons as part of an actix-web server. I need to do this between two groups of polygons. For this case consider a group of 300 polygons and another group (about 50). so 15.000 comparisons. This is not atypical.\n\nI have this application in Node, using the turf module. Results vary of course, but its not strange for this to happen in around 15 seconds in the Node version. Obviously I turned to rust to speed this up.\n\nI rewrote a prototype for this in Rust with the Geo crate, and.. it takes 26 seconds on average.\n\nFirst thing I checked: Am I building a debug build? Classic error. But I wasn't. \n\nCan someone shed some light on this?\n\nsome hypotheses:\n\n\\- The turf module in Node is not actually javascript under the hood?\n\n\\- I still have some build setting messed up somewhere", "comment": "> First thing I checked: Am I building a debug build? Classic error. But I wasn't. \n\nNext big gotcha areas are memory fragmentation and zillions of unnecessary copies. Putting all of you polygons in a contiguous array will likely be much much faster than putting them behind something like a hash table (where they can be strewn about the memoryspace) because of how caches work and the batch nature of your problem. If things are contiguous, make sure you're traversing your arrays in a memory-friendly way such that the \"next\" thing you're processing is the next thing _in memory_ as much as possible. And making unnecessary copies is...unnecessary. Double check that you're not `clone()`ing things you could pass by reference.", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "uhma4e", "question": "Hi,\n\nI'm slowly learning that comparing programming environments is hard and its almost impossible to say that one language will always be faster than another for certain use cases..\n\nHowever I ran into something peculiar now.\n\nI have an application where I need to calculate the Intersection between polygons as part of an actix-web server. I need to do this between two groups of polygons. For this case consider a group of 300 polygons and another group (about 50). so 15.000 comparisons. This is not atypical.\n\nI have this application in Node, using the turf module. Results vary of course, but its not strange for this to happen in around 15 seconds in the Node version. Obviously I turned to rust to speed this up.\n\nI rewrote a prototype for this in Rust with the Geo crate, and.. it takes 26 seconds on average.\n\nFirst thing I checked: Am I building a debug build? Classic error. But I wasn't. \n\nCan someone shed some light on this?\n\nsome hypotheses:\n\n\\- The turf module in Node is not actually javascript under the hood?\n\n\\- I still have some build setting messed up somewhere", "comment": "I had to make this kind of thinks to create a tile server in rust I used https://github.com/georust/rstar", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "uhss9t", "question": "Anyone got bruised up using Click Clacks?", "comment": "Yes. Bruised forearms. Bruised foreheads. Bruised cheekbones. I don't know any kid who mastered them like the ones in the TV commercials. That was before CG, so the little monsters must've really learned how to do it.", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "uhss9t", "question": "Anyone got bruised up using Click Clacks?", "comment": "Oh yes. We used to bring those to school and have contests to see who could move their hand in and out of their path unharmed. I used those until they shattered little pieces into my eyes or the string broke! Good times.", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "uhss9t", "question": "Anyone got bruised up using Click Clacks?", "comment": "Of course...downright black and blue forearms at times as a kid.\n\nSometimes more painful places like a forehead and I have a memory of clacking myself in a thoroughly double-over painful way down where the delicate bits are parked: Though I can't figure out quite how that happened 50 years later.\n\nAnd when the resin ball shattered, I remember there being blood. Both my red clackers and orange clackers eventually shattered with projectile flesh damage. Again, hard to remember if it was a Kid's version of blood where a pinprick looks like a garden hose or whether it was a bit more than that.", "upvote_ratio": 100.0, "sub": "AskOldPeople"} +{"thread_id": "uhtfb8", "question": "How many friends do you have and how often do you see them?", "comment": "Actual friends I enjoy? 3. \n\nI see them less often than I\u2019d like, but we text every day. \n\nAcquaintances bore me now. I\u2019d rather keep the circle small.", "upvote_ratio": 150.0, "sub": "AskOldPeople"} +{"thread_id": "uhtfb8", "question": "How many friends do you have and how often do you see them?", "comment": "1 ..My wifes good friends husband. We have met 3 or 5 times? exchanged polite small talk about sports and the yard and the weather and went on our seperate ways. I dont know his name and i dont think he knows mine. We both are happy as can be with it. If i see him again in 5 months or so its good.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "uhtfb8", "question": "How many friends do you have and how often do you see them?", "comment": "I have very few people who I'd rather be with, than be alone. It's nobody else's fault, I just like being alone.", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "uhvegr", "question": "[Duncan Yo Yo's 1976](https://www.youtube.com/watch?v=dfqykR14O3Y)", "comment": "Never did. I couldn't do a single thing wih a yoyo.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uhvegr", "question": "[Duncan Yo Yo's 1976](https://www.youtube.com/watch?v=dfqykR14O3Y)", "comment": "I could do \"around the world\" and \"walk the dog\". Get a good quality yo-yo. You basically fling it strongly off the top of your palm downwards, and it should stay spinning there. Take it on a walk. Give it a light yank, it comes back up.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uhvegr", "question": "[Duncan Yo Yo's 1976](https://www.youtube.com/watch?v=dfqykR14O3Y)", "comment": "It was a huge fad at our school. I was actually trying to remember if this came before or after the clickety clacks. But for a while everyone had a yoyo. \n\nIIRC, the trick is in the tensioning of the string. The string splits and rejoins around the hub, the center of the yoyo. In normal use, the string twists and gets tighter around the hub. So the trick is to extend the string and let it unwind (spin horizontally, not like a trick) then rewind it by hand. When the string has slack the yoyo can loiter at the bottom of the throw. Then you can do all the fancy tricks. Jerking the string causes it to catch and climb the string again. If you didn't want it to loiter you had to do a bunch of normal casts first. If you did a normal underhand you put a half twist in every time you did it, so it tightened up. \n\nAt one time I could do all of these. It was required if you wanted to be cool in 4th grade. Being cool was a trick I never mastered, but I could do the classic round the world, walk the dog, rock the baby. I was no Tommy Smothers, (Mr. Yoyo) but I could do all right. But the trick is properly tying and knotting the string.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uhy9wd", "question": "Theoretically, could I create some sort of program to compile clips of every single time the word \u201cballs\u201d is said on any channel on my cable box for something like 20 years? Resources unlimited.", "comment": "Not sure if you could monitor every channel with one cable box, but if you found a way to do it then it's entirely possible.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uhy9wd", "question": "Theoretically, could I create some sort of program to compile clips of every single time the word \u201cballs\u201d is said on any channel on my cable box for something like 20 years? Resources unlimited.", "comment": "Especially if you decode the closed captioning. That would be much less work. \n\nYou would get lots of baseball broadcasts.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ui1ot6", "question": "Let's keep track of latest trends we are seeing in IT. What technologies are folks seeing that are hot or soon to be hot? What skills are in high demand? Which job markets are hot? Are folks seeing a lot of jobs out there? \n\nLet's talk about all of that in this thread!", "comment": "The floodgates are open. I haven't seen this many non-IT people trying to get into IT since the dot com days. This is creating a weird situation where although there are tons of open jobs, there are even more applicants competing for those jobs. This is primarily impacting the entry-level roles - there are still a lot of open positions above that that are hard to fill.\n\nAs usual, security is by far the most flooded. Most non-IT people aren't too familiar with what roles are available besides helpdesk and security, and not too many people have a goal of working at a helpdesk - so security seems to be the default. I'd estimate that ~50% of questions in here lately are from people outside of IT wanting to get into security. While it's true that there's a growing need for security professionals, [that need is not for entry-level people](https://www.reddit.com/r/SecurityCareerAdvice/comments/s319l5/entry_level_cyber_security_jobs_are_not_entry/). Read through [the wiki](https://www.reddit.com/r/ITCareerQuestions/wiki/index) if you need a better idea of what else is available within IT.\n\nSo what should you do to get into entry-level IT? There are 4 credentials/qualities that hiring managers look for:\n\n- 4-year Degrees: No, they're not required. Yes, they will set you apart from those that don't have one. \n- Experience - this is a big differentiator, but not a lot of people trying to break in will have experience yet. Internships are the exception - always, always, always do an internship before you graduate. Always. \n- Certifications - great to have with or without a degree. In addition to a degree, they'll make you stand out more. If you don't have a degree, certs are the best way to show that you have tech knowledge.\n- Attitude - this is an often overlooked but critical aspect of the interview process. You can be the smartest IT person in the room, but if you can't deal with people, you can't showcase your skills, or you can't display good soft skills, you're going to be passed over for someone else who can.\n\nIf you're just graduating with a computer-related degree and you have at least one relevant internship completed, you'll be at the top of the list. Heck, you probably already have a job and don't even know this sub exists.\n\nIf you have any other 4-year degree, that counts as 'has a degree' to nearly all hiring managers. You don't have to go back for a computer-related degree. Add a cert or 2 and you're read to apply.\n\nCerts are the next most powerful tool to get you in line if you don't have a degree - the CompTIA ones are the baseline if you don't know what else to do.\n\nIf you have no degree, no experience, no certs and want to break into IT, just ask yourself - what do you have to offer that people with those credentials don't have? If you don't know the answer, then you should probably look at certifications to start.\n\n**PAY:** Pay is climbing pretty steadily for experienced people. It gets said in here from time to time, but in no way is IT an underpaid field. IT workers are some of the highest-paid white-collar professionals, right up there with engineers. But it IS holding rather still for entry-level - this is just due to the huge oversupply of workers who all want a job. So yes, you might make the same (or less) than someone who works at McDonalds in order to break into the industry - this is not a reason to avoid IT. If you need an explanation of that, please brush up on the [present vs future value of money](https://www.differencebetween.com/difference-between-present-value-and-vs-future-value/). If you still don't get it, take the McDonalds job. \n\n(I reposted this from April since that one got lost)", "upvote_ratio": 340.0, "sub": "ITCareerQuestions"} +{"thread_id": "ui2cjr", "question": "I recently turned 20 and I\u2019m going through a thing where I\u2019m not quite sure how I\u2019m perceived. Am I a kid? Am I a grown up you view as a fellow adult? I want to know how you or general society sees someone my age as because I feel like it\u2019s sort of a weird middle stage", "comment": "You look like something that just hatched\u2014weirdly fragile and clumsy despite obvious physical vitality.", "upvote_ratio": 1990.0, "sub": "AskOldPeople"} +{"thread_id": "ui2cjr", "question": "I recently turned 20 and I\u2019m going through a thing where I\u2019m not quite sure how I\u2019m perceived. Am I a kid? Am I a grown up you view as a fellow adult? I want to know how you or general society sees someone my age as because I feel like it\u2019s sort of a weird middle stage", "comment": "20 year olds are baby adults.\n\nSelf-sufficient, but still not all the way formed.\n\nI would treat you as an adult, though.", "upvote_ratio": 1450.0, "sub": "AskOldPeople"} +{"thread_id": "ui2cjr", "question": "I recently turned 20 and I\u2019m going through a thing where I\u2019m not quite sure how I\u2019m perceived. Am I a kid? Am I a grown up you view as a fellow adult? I want to know how you or general society sees someone my age as because I feel like it\u2019s sort of a weird middle stage", "comment": "As somebody that cares how they're perceived.\n\n&#x200B;\n\nI'm too old to care about it any more.", "upvote_ratio": 1270.0, "sub": "AskOldPeople"} +{"thread_id": "ui4kog", "question": "what did people do when they were depressed before SSRIs?", "comment": "Blamed themselves, denied, tried to suck it up, white knuckled life until it passed. If they were unable to function at all there were antidepressants, the side effect profile just made them very undesirable and a last resort.", "upvote_ratio": 1270.0, "sub": "AskOldPeople"} +{"thread_id": "ui4kog", "question": "what did people do when they were depressed before SSRIs?", "comment": "Tricyclic antidepressants were the first generation of drugs used to treat depression. They often worked and were a big step forward from ineffective non-drug treatments. But they had side effects including tiredness. weight gain, and the danger of overdose.", "upvote_ratio": 740.0, "sub": "AskOldPeople"} +{"thread_id": "ui4kog", "question": "what did people do when they were depressed before SSRIs?", "comment": "They suffered. Therapy wasn't even a thing most people would consider either (at least not in the Netherlands). That was for 'crazy' people, and I didn't feel crazy. In retrospect, I probably did have depression though. (Not anymore, thank goodness!)", "upvote_ratio": 560.0, "sub": "AskOldPeople"} +{"thread_id": "ui7nyj", "question": "With recent supreme court leaks there has been a large number of questions regarding the leak itself and also numerous questions on how the supreme court works, the structure of US government, and the politics surrounding the issues. Because of this we have decided to bring back the US Politics Megathread.\n\n**Post all your US Poltics related questions as a top level reply** to this post.\n\n**All abortion questions and Roe v Wade stuff here as well. Do not try to circumvent this or lawyer your way out of it.**\n\n**Top level comments are still subject to the normal NoStupidQuestions rules**:\n\n* We get a lot of repeats - **please search before you ask your question** *(Ctrl-F is your friend!)*. \n\n* **Be civil** to each other - which includes not discriminating against any group of people or using slurs of any kind. Topics like this can be very important to people, so let's not add fuel to the fire.\n\n* **Top level comments must be genuine questions**, not disguised rants or loaded questions. This isn't a sub for scoring points, it's about learning.\n\n* **Keep your questions tasteful and legal.** Reddit's minimum age is just *13!*", "comment": "If the supreme court overturns gay marriage is there any actions they can take to making gender affirming procedures and HRT illegal?", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "ui7nyj", "question": "With recent supreme court leaks there has been a large number of questions regarding the leak itself and also numerous questions on how the supreme court works, the structure of US government, and the politics surrounding the issues. Because of this we have decided to bring back the US Politics Megathread.\n\n**Post all your US Poltics related questions as a top level reply** to this post.\n\n**All abortion questions and Roe v Wade stuff here as well. Do not try to circumvent this or lawyer your way out of it.**\n\n**Top level comments are still subject to the normal NoStupidQuestions rules**:\n\n* We get a lot of repeats - **please search before you ask your question** *(Ctrl-F is your friend!)*. \n\n* **Be civil** to each other - which includes not discriminating against any group of people or using slurs of any kind. Topics like this can be very important to people, so let's not add fuel to the fire.\n\n* **Top level comments must be genuine questions**, not disguised rants or loaded questions. This isn't a sub for scoring points, it's about learning.\n\n* **Keep your questions tasteful and legal.** Reddit's minimum age is just *13!*", "comment": "Can't Biden just pardon anyone who gets an abortion?", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uib0kf", "question": "im a high school drop out with no math experience and i know its a long road but i really want to learn compsci and i need help knowing what sort of math i should focus on and learn for this job, i hear calc 1,2 and 3 also discrete math but idk where to start and learn. any help is much appreciated thanks!", "comment": "Compsci is a broad field. Personally I like the architecture and I suggest you this youtube playlist about cpu architecture which can be useful to understand what computer language is. It can help you to get into compsci.\n\nHow computers work - Building Scott's CPU: https://www.youtube.com/playlist?list=PLnAxReCloSeTJc8ZGogzjtCtXl_eE6yzA", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uicq7b", "question": "I\u2019m currently 23 and can\u2019t even imagine myself or what I will be like when I\u2019m in my 70\u2019s/80\u2019s. I\u2019ve heard that at this point time starts really speeding up, and I\u2019m just wondering how true you guys think that is?\n\nEdit: thank you all for your replies. It\u2019s been very insightful", "comment": "Faster than you can imagine.", "upvote_ratio": 960.0, "sub": "AskOldPeople"} +{"thread_id": "uicq7b", "question": "I\u2019m currently 23 and can\u2019t even imagine myself or what I will be like when I\u2019m in my 70\u2019s/80\u2019s. I\u2019ve heard that at this point time starts really speeding up, and I\u2019m just wondering how true you guys think that is?\n\nEdit: thank you all for your replies. It\u2019s been very insightful", "comment": "This is what it felt like for me: I blinked my eyes at 23 and I was suddenly 67\n\nIt comes so fast it will blow your mind", "upvote_ratio": 460.0, "sub": "AskOldPeople"} +{"thread_id": "uicq7b", "question": "I\u2019m currently 23 and can\u2019t even imagine myself or what I will be like when I\u2019m in my 70\u2019s/80\u2019s. I\u2019ve heard that at this point time starts really speeding up, and I\u2019m just wondering how true you guys think that is?\n\nEdit: thank you all for your replies. It\u2019s been very insightful", "comment": "It's true up to a point due to the fact that it's a matter of perspective. At 10 a week is a pretty significant portion of your life. At 60 it is less so. \n\nDoes time speed up? Technically no. But any given portion of time becomes a smaller fraction of your life, so it can easily seem to be passing faster.", "upvote_ratio": 420.0, "sub": "AskOldPeople"} +{"thread_id": "uieq53", "question": "I have a bunch of questions asking me to find the Big-theta bounds for some recurrences (assume that adequate base cases exist for each).\n\nOne example is T(n) = T(n-1) + n\n\nWould the answer be Big-Theta(n) or am I missing something else?", "comment": "Nope. In this case, you can solve for T(n) as an explicit equation: if T(0) = 0, then T(n) is the sum of all integers from 0 to n inclusive, which means T(n) = n*(n+1)/2, which is \u0398(n^(2)).", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "uij5os", "question": "Is it worth it to work through rough patches in a marriage if you\u2019re young? Do older people married many years have many issues they\u2019ve overcome?", "comment": "Been with my husband for 44 years, married for 39. We have had several occasions when I thought 'I'm done with this nonsense.'\n\nThe first time was what I call the second year slump. We'd been married for a little over a year, and he couldn't be bothered to buy me a birthday present, because he 'didn't know what to get'. I was just getting home from a long shift at my second job as he and his brother (who was visiting from out of town) were leaving to go out for dinner, with no consideration if I'd like to go along or if maybe I didn't want to be ditched on a Friday night that happened to be my birthday.\n\nWe had a few long talks about that, and what came of it is his realization that I didn't care about material gifts, but just wanted a bit of attention and affection. (This was before we'd heard of the Love Languages.)\n\nThings went much smoother after that, but there were plenty of bumps in the road along the way. We grew apart after our first born completely exhausted us during her first year. (Not her fault of course, but we should have communicated better, and we did with our second.)\n\nLater on we needed the help of a marriage counsellor who helped us in many ways.\n\nI just asked him now, and he says we're pretty happy for an old couple, and any of his unhappiness isn't caused by me. Yay!\n\nSo, yeah, we're totally okay with working to overcome issues. \n\n\"How else are you going to become a long-time couple?\" Hubby, May 4, 2022.", "upvote_ratio": 2290.0, "sub": "AskOldPeople"} +{"thread_id": "uij5os", "question": "Is it worth it to work through rough patches in a marriage if you\u2019re young? Do older people married many years have many issues they\u2019ve overcome?", "comment": "It depends on the issues. \n\nFinances? My husband and I have very different attitudes, but after we implemented a \"yours, mine, and ours\" system, we were good. We each agreed on what was fair to contribute to shared expenses, and the rest went into our personal accounts to do with as we wished. We have never, ever had a financial quibble since we did this.\n\nKids? You can't have half a kid. You either want them or you don't. That's a deal-breaker.\n\nLifestyle compatibility is important. If one of you thinks resorts and cruises are the best way to vacation and the other wants to hike the Appalachian Trail and wouldn't be caught dead on a cruise ship, you'll have some negotiating to do.\n\nFood? If you like gourmet cuisine and married a Hot Pockets type of person, you each make your own food. Easy-peasy. \n\nIn-laws? Our policy has always been that weddings and funerals are not optional. For everything else, it's, \"I'll just say you have a cold.\" \n\nNight owl vs morning lark? To each their own. It's infantilizing to tell another grownup when to wake up or go to bed. If it's causing sleep disruption, separate beds or bedrooms are fine. Don't believe the hype that you have to sleep in the same bed OR ELSE. My husband developed restless leg syndrome in the late 90s and sleeping in separate beds didn't break up our marriage. It improved it because we weren't awake and arguing all night.\n\nBut if you feel disrespected or if you are being put down, abused or stolen from, these are things you can't work your way back from without a real change on the part of the other person, backed up by therapy (theirs). \n\nHowever, never pick a fight over something dumb and petty like the color of the kitchen towels because when it's something important, you don't want your partner thinking, \"There they go again!\" I only just last week found out my husband hates the rug I bought a few years ago. He let it go, just like I let his Rush bobble head dolls become living room decor. \n\nSometimes you just have to say, \"Whatever.\"\n\nYeah, I'm GenX. Age 55 and retired.", "upvote_ratio": 2020.0, "sub": "AskOldPeople"} +{"thread_id": "uij5os", "question": "Is it worth it to work through rough patches in a marriage if you\u2019re young? Do older people married many years have many issues they\u2019ve overcome?", "comment": "Absolutely x 2! I was married to my first husband for 23 years when he passed away. I've always said making a marriage work is harder than raising children. If you love each other, however, then you SHOULD fight for it. We overcame a lot of crap. I'm now remarried and we both agree that our marriage (2nd for each of us, both lost spouse due to death) is much easier this time around. We've learned from the mistakes in our past marriages. We've grown up and are much more easy going now. It was a surprise to us both! We are greatly enjoying this new phase in our lives, especially after so much tragedy beforehand.", "upvote_ratio": 970.0, "sub": "AskOldPeople"} +{"thread_id": "uim5fv", "question": "If you are old enough to have witnessed the many tragedies that occurred pre Roe v Wade, can you educate folks on what it was like?", "comment": "My grandmother had 15 children and I am pretty sure she didn't want more after the first 5. But she had no choice because women could not obtain birth control without the consent of her husband, and were required *by law* to submit to intercourse. As far as the law was concerned, a husband could not rape his wife since he had the legal *right* to have sex.\n\nThose first 5 children raised the next set of 5. There was never enough of *anything*. Not enough food, not enough space, not enough decent clothing, and medical and dental care was nonexistent.\n\nThe oldest of the 15 was My Aunt Fran. She was essentially a house servant/slave who raised her siblings her entire childhood, getting very little education. She escaped her childhood home by marrying the first man who looked at her.\n\nShe had 5 children in 7 years. Her 6th child, Sally, came late in life and was born profoundly disabled. Fran told me years later that she *knew* there was something amiss with that pregnancy and sadly told me if she'd known how to obtain an illegal abortion, she would have done so. Fran parentified her own children, and Sally's older girl siblings were charged with feeding, changing, exercising, and monitoring Sally. They also escaped their home by marrying young.\n\nLack of choice in childbearing curtailed so many lives in so many ways. It's not limited to the gruesome stories of botched procedures or the sexual abuse of women seeking terminations. \n\nIt's how having no reproductive freedom condemned so many women to narrow limited lives sacrificed to more children than they wanted or could provide for. So much human potential was never realized.", "upvote_ratio": 3230.0, "sub": "AskOldPeople"} +{"thread_id": "uim5fv", "question": "If you are old enough to have witnessed the many tragedies that occurred pre Roe v Wade, can you educate folks on what it was like?", "comment": "My aunt had a miscarriage. The fetus didn't expel from her uterus, though. My aunt was dying, and the hospital -- St. Somebody-or-Other -- refused to do an abortion. My uncle checked her out of the hospital Against Medical Advice, and took her to a doctor he knew. The doctor performed a D&C (dilation and curettage) and saved her life. \n\n\nMy cousin was raped when she was a young teen, about 14-15, I think. She didn't dare tell her parents about that or the pregnancy. She and her friends went to a woman who performed an \"abortion,\" and then ran when she started bleeding profusely. Her friends put her in a car and drove her to the emergency room. She didn't die, but she couldn't have children. And of course, her parents found out anyway and threw her out of the house. She lived with my grandmother after that. She was also very wild and eventually died from cirrhosis. \n\n\nMy mom had my two brothers just ten months apart, and she got pregnant again while the youngest was still a baby. The doctor understood that her life was at stake, and that she had three children to take care of already. He made up some bullshit and got her a D&C. She lived to take care of us. If she'd carried that pregnancy to term, she would have died and the worst part is that our family priest told her she had to carry it to term; that was God's will. The tragedy is that my mother lost her faith then. She left the church because she didn't have the nerve to face Father What's-His-Name when he knew she had been pregnant and wasn't pregnant anymore. She couldn't face his judgment. \n\n\nBecause of her, my own story didn't end in tragedy. When I was impregnated by an abusive man who immediately became my ex after this incident, she encouraged me to get an abortion so I wouldn't be tied to a jerk my whole life. She was half a continent away at the time, but she called me the night before, the morning of, and the evening after to make sure I was okay. She told me I was doing the right thing, that the real shame would be in bearing a child I didn't want and raising it with someone I didn't love. She was right, and years later, I raised two kids I desperately wanted with someone I loved. I got a happy-ever-after because the women who came before me suffered unimaginable tragedy. \n\n\nThat's just my family. My friends would be a whole 'nother post.", "upvote_ratio": 2180.0, "sub": "AskOldPeople"} +{"thread_id": "uim5fv", "question": "If you are old enough to have witnessed the many tragedies that occurred pre Roe v Wade, can you educate folks on what it was like?", "comment": "Drug overdoses, poisonings, suicide, bleed to death, coat hangers and other crude objects, an assortment of home remedies including poisons leading to organ failure, abandonment and disowning of pregnant girl by family, pregnancy in poverty, drug addicted and malnourished babies, pregnant girls removed fr school and sent to a \u201chome\u201d then baby taken away. Unwanted children abused and neglected in home or in government care. Adults stuck in a cycle of poverty. Moral and $ costs to society.", "upvote_ratio": 1590.0, "sub": "AskOldPeople"} +{"thread_id": "uiwpen", "question": "Hi,\n\nJust wondering if in the Rust community there is a preference/most idiomatic way to assign a string out of these three? \n\n let s1:String = String::from(\"Rust\");\n let s2:String = \"Rust\".to_owned();\n let s3:String = \"Rust\".to_string();\n\nThanks in advance!", "comment": "[here](https://stackoverflow.com/questions/37149831/what-is-the-difference-between-these-3-ways-of-declaring-a-string-in-rust) you go", "upvote_ratio": 130.0, "sub": "LearnRust"} +{"thread_id": "uizhbx", "question": "I\u2019m still young, but this has been eating up my mind lately.\nIn other subreddits, it\u2019s always a concern of money and I\u2019ve looked at how much care costs for in-home, independent living, assisted living, etc. As you age, how have you gone about planning for this and how did you plan for your parents?", "comment": "I'll bet I'm not the only person here whose response would be that as an \"old person\" I already lost both parents a long time ago. \ud83d\ude1e", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "uizhbx", "question": "I\u2019m still young, but this has been eating up my mind lately.\nIn other subreddits, it\u2019s always a concern of money and I\u2019ve looked at how much care costs for in-home, independent living, assisted living, etc. As you age, how have you gone about planning for this and how did you plan for your parents?", "comment": "I got lucky. My father was as frugal as his parents had been, so when my stepmother needed assisted living, the money was there. I sure as hell didn't have it. He had no choice but to admit her because he was old and didn't have the strength or medical training to provide the level of care she needed. People who say they would never put a loved one into a care facility don't know wtf they're talking about. \n\nMy father has sufficient assets to cover his own long-term care as well, but it's not likely he'll need it. Drawn-out illnesses aren't how people in his line go down. They just drop dead after lunch on some random afternoon. And tbh, I'd rather get a call that my dad is gone than that he's now in the hospital with a tube down his throat and months or even years of suffering ahead of him.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "uizhbx", "question": "I\u2019m still young, but this has been eating up my mind lately.\nIn other subreddits, it\u2019s always a concern of money and I\u2019ve looked at how much care costs for in-home, independent living, assisted living, etc. As you age, how have you gone about planning for this and how did you plan for your parents?", "comment": "I'm very lucky. My Mom put herself in a nice continuing care facility back in 1998. She's still there and going strong today, at almost 97. She said she didn't want to be a burden to her children.\n\nThree of us are nearby, so we get to see her regularly. She is the model I want to follow. While I can't afford a place as nice as she's in, I don't want to be one of those stubborn old coots who refuses to leave their decaying house.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "uizmx2", "question": "I'm trying to create and run an extremely intensive C++ aerodynamics simulator and suspect I would need a cluster to run it effectively. What would be the most cost-effective way to do so?", "comment": "Universities often have clusters you can get access to... Probably for a fee for non-students. Just learn the tooling for that platform and code your simulation to target it.", "upvote_ratio": 90.0, "sub": "AskComputerScience"} +{"thread_id": "uizmx2", "question": "I'm trying to create and run an extremely intensive C++ aerodynamics simulator and suspect I would need a cluster to run it effectively. What would be the most cost-effective way to do so?", "comment": "Design your code to run on multiple GPUs and build a machine with as many GPUs as possible. Most motherboards support two GPUs, but there are a few that support four. If single-precision floating point computations are sufficient, use those because consumer-level GPUs are slow with double-precision floats. For more compute power, build multiple machines like that, connect them via ethernet and use sockets or MPI to transfer data. If the network throughput becomes a limiting factor, upgrade from ethernet to Infiniband.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "uizmx2", "question": "I'm trying to create and run an extremely intensive C++ aerodynamics simulator and suspect I would need a cluster to run it effectively. What would be the most cost-effective way to do so?", "comment": "Use a cloud computing provider. You can rent lots of CPUs, GPUs, and specialized processors like TPU for quite a reasonable price.\n\nDesigning your algorithm to efficiently split across many computers is not a simple problem. **However** - many people have solved this problem, and now there are many common libraries you can use which will do a lot of the hard work.\n\nIf you can split your problem into parts that don't interact (e.g. run lots of separate simulations), then you can use relatively basic libraries like Apache Beam ([https://cloud.google.com/architecture/running-external-binaries-beam-grid-computing](https://cloud.google.com/architecture/running-external-binaries-beam-grid-computing)).\n\nIf your problem doesn't split that way (e.g. if the different sub-parts of the problem interact), then you need more complicated methods, which are probably too complicated to get into in a reddit response.\n\n**Also** - the fastest approaches to this kind of problem are likely to use hardware accelerators like GPU and TPU. For GPU, you can write code yourself using CUDA to do things, although you can probably get nearly identical performance by building on top of existing libraries that implement the functionality you want. This is a pretty good reason to use something like NumPy/CuPy or Tensorflow (I know you said C++, but it might be worth it to use another language). You'd build your algorithm out of the relatively high-level operations provided by these frameworks (things like matrix operations, etc). These operations will have built in support for optimized hardware. If you're using c++, I highly recommend using Eigen as much as possible, as it has very optimized matrix operations.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "uj07ca", "question": "Most of Europe was bombed out by May 1945. But the U. S. wasn't and the Marshall plan helped Europe get back on it's feet. \n\nBut Where did that money come from? How was the war profitable? I know they sold war bonds, but how did people suddenly have money to borrow to the state?", "comment": "Well it mostly can be explained by[ this graph](https://cdn.theatlantic.com/assets/media/img/3rdparty/2012/11/debt-and-gdp-main6.png) The highest level of national debt as a proportion of GDP in the history of the US. \n\nThere was also some repayment of loans from the Lend/Lease act and reparations from Germany and Japan, but that's the gist of it.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "uj3tl6", "question": "For example, char in C++ is defined as being 8 bits in size. However, depending on the computer architecture, a memory address can hold anywhere from 8-64 bits. So, where exactly is such a variable stored within an address? Similarly, how would a variable whose size is greater than what\u2019s available in a memory address be stored?", "comment": "Every modern computer architecture that I'm aware of uses byte-addressable memory. \n\nOr to put it another way, in C++ a byte is *defined* as the smallest addressable unit of memory, and a char is defined as being 1 byte in size. (This allows you to use `char*` to manipulate regions of memory that might actually contain data of another type.) The C++ standard also guarantees that a byte will be *at least* 8 bits, and in practice it is virtually always *exactly* 8 bits.\n\nWhen you store a value that's larger than a single byte, it takes up multiple addresses. For instance, a 16-bit variable that is \"stored at address X\" really occupies the bytes at addresses X and X+1. If the variable is a numeric type, the ordering of the bytes is architecture dependent, but most architectures are little-endian (least significant byte first).", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uj4o98", "question": "Hello,\n\nI'm hoping this isn't a stupid question, if it turns out to be, I'll delete the post.\n\nI've recently started working a job where my boss stated that it'd be highly unlikely that I'd advance to management without a computer, electrical, or engineering degree. After researching the different type of degrees, I found Computer Science to be the one I would most like to pursue.\n\nI currently have a B.S. in Global Supply Chain Mgmt and when I've told friends that I want to pursue a Bachelor's in CS I keep getting asked the same thing: \"Why don't you just get a Graduates degree in CS?\" (This is coming from people who already have graduate degrees).\n\nI did well with my bachelors degree, I finished with a 3.96 gpa and consider myself a fairly intelligent and hard working person, but my computer skills are lacking. I'm proficient in common office programs like Excel, but I've never done any coding. I don't feel like I have a strong foundation and the thought of taking a Graduate degree in a subject I'm weak in is intimidating to me.\n\nSo firstly, is this even possible, to go from a B.S. MGMT degree to a Masters in CS? Secondly, if its possible, is this a good idea or should I start with an undergrad in CS?\n\nAm I just being given bad advice?\n\n&#x200B;\n\nThank you\n\n&#x200B;\n\nedit - grammar correction.", "comment": "I had an undergrad in history and am now doing a grad degree in CS. I had to take several prerequisites before starting the actual grad program. I have been interested in computers my whole life, taught myself programming years ago, and it was still a pretty tough leap to get started. I think you should go for it if you really, truly want a CS degree, but if you're just doing it for a promotion at work and you're not that interested it's going to be a very, very difficult transition.", "upvote_ratio": 110.0, "sub": "AskComputerScience"} +{"thread_id": "uj4o98", "question": "Hello,\n\nI'm hoping this isn't a stupid question, if it turns out to be, I'll delete the post.\n\nI've recently started working a job where my boss stated that it'd be highly unlikely that I'd advance to management without a computer, electrical, or engineering degree. After researching the different type of degrees, I found Computer Science to be the one I would most like to pursue.\n\nI currently have a B.S. in Global Supply Chain Mgmt and when I've told friends that I want to pursue a Bachelor's in CS I keep getting asked the same thing: \"Why don't you just get a Graduates degree in CS?\" (This is coming from people who already have graduate degrees).\n\nI did well with my bachelors degree, I finished with a 3.96 gpa and consider myself a fairly intelligent and hard working person, but my computer skills are lacking. I'm proficient in common office programs like Excel, but I've never done any coding. I don't feel like I have a strong foundation and the thought of taking a Graduate degree in a subject I'm weak in is intimidating to me.\n\nSo firstly, is this even possible, to go from a B.S. MGMT degree to a Masters in CS? Secondly, if its possible, is this a good idea or should I start with an undergrad in CS?\n\nAm I just being given bad advice?\n\n&#x200B;\n\nThank you\n\n&#x200B;\n\nedit - grammar correction.", "comment": "Lots of people do second bachelor's degrees. There's nothing wrong with it and you're entirely correct that it will likely provide a more gentle introduction to the topic. If you're just looking to check the box with the lowest possible effort, Thomas Edison State University might be worth a look.\n\nThat being said, there's no question that a master's degree is a more valuable credential. Plenty of people do a CS master's even though their undergraduate was something else, although typically people doing this already have some work experience writing code. Georgia Tech's OMSCS is worth looking at.\n\nOne crucial question is whether you have any interest or aptitude for computer science and software development. Perhaps you should take a good intro to CS course, like Harvard's CS50, and see how it goes before committing yourself to a larger program.", "upvote_ratio": 80.0, "sub": "AskComputerScience"} +{"thread_id": "uj4o98", "question": "Hello,\n\nI'm hoping this isn't a stupid question, if it turns out to be, I'll delete the post.\n\nI've recently started working a job where my boss stated that it'd be highly unlikely that I'd advance to management without a computer, electrical, or engineering degree. After researching the different type of degrees, I found Computer Science to be the one I would most like to pursue.\n\nI currently have a B.S. in Global Supply Chain Mgmt and when I've told friends that I want to pursue a Bachelor's in CS I keep getting asked the same thing: \"Why don't you just get a Graduates degree in CS?\" (This is coming from people who already have graduate degrees).\n\nI did well with my bachelors degree, I finished with a 3.96 gpa and consider myself a fairly intelligent and hard working person, but my computer skills are lacking. I'm proficient in common office programs like Excel, but I've never done any coding. I don't feel like I have a strong foundation and the thought of taking a Graduate degree in a subject I'm weak in is intimidating to me.\n\nSo firstly, is this even possible, to go from a B.S. MGMT degree to a Masters in CS? Secondly, if its possible, is this a good idea or should I start with an undergrad in CS?\n\nAm I just being given bad advice?\n\n&#x200B;\n\nThank you\n\n&#x200B;\n\nedit - grammar correction.", "comment": "[deleted]", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "uj4vmu", "question": "Hobbies, activities please. Thank you.", "comment": "Volunteer. Take part in an organization that contributes to the greater good.", "upvote_ratio": 1060.0, "sub": "AskOldPeople"} +{"thread_id": "uj4vmu", "question": "Hobbies, activities please. Thank you.", "comment": "Anything that helps others. The simplest way to start is probably volunteering to hold babies at the nearest day care or hospital. All you have to do is sit and rock, and it makes a huge difference. Another easy option is sitting with frightened dogs at the shelter, helping them learn to socialize.", "upvote_ratio": 420.0, "sub": "AskOldPeople"} +{"thread_id": "uj4vmu", "question": "Hobbies, activities please. Thank you.", "comment": "Ask their advice on a topic of interest to them. Chat about their hobbies. Gardening? I\u2019ve asked why my tomatoes had cracks in them.", "upvote_ratio": 260.0, "sub": "AskOldPeople"} +{"thread_id": "uj580c", "question": "What is your diet like?", "comment": "Mostly whiskey and chicken gristle. I eat a carrot every once in a while if I\u2019m double dared.", "upvote_ratio": 260.0, "sub": "AskOldPeople"} +{"thread_id": "uj580c", "question": "What is your diet like?", "comment": "Breakfast is 2 cups of black coffee. Afternoon I'll often have a pot of tea, maybe a tiny bit of milk, no sugar. Drink plenty of water as well.\n\nLunch is either 1) fresh whole fruit, 2) eggs and bacon, or 3) leftover veggies in scrambled eggs.\n\nDinner is either 1) a big salad with fat and protein added, or 2) roasted veggies with a serving of protein and maybe a bit of whole wheat bread.\n\nI eat about 6 to 8 cups of fresh veggies a day, along with one or two servings of animal protein. This is punctuated with small amounts of cheese, olives, nuts, or bread. Everything as high-quality as I can get it.\n\nI transformed my figure and my energy levels around the age of 40 (48yo now) by eliminating all forms of processed food from my diet. I will sometimes drink mineral water, but no soda. No fast food. No chips, candy bars, protein bars, or energy drinks. No canned or boxed processed food of any kind.\n\nFor special occasions, I'll eat something with a little sugar, like pie (has to be fresh-made, though). I always feel sluggish and tired the next day, so I plan accordingly.\n\nWhen I follow this simple routine, I have the energy of a 25-year-old. It's amazing how well it works. My digestive system hums, with no gas, bloating, or bowel issues. My skin looks great, my brain is clear.\n\nBefore I adopted this diet, I had brain fog a lot and was diagnosed with pre-diabetes and fatty liver disease. It's all gone now. I'm the same size I was at 20. I am low-carb but not full-on keto; I'll eat potatoes or corn sometimes with my veggies.\n\nPeople often think I'm a decade younger due to my energy levels and great skin.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "uj580c", "question": "What is your diet like?", "comment": "Lots of vegetables, fruit, nuts, some dairy, meat and the odd alcoholic beverage. I don't eat fast food anymore and basically cook everything myself. Mass produced convenience food isn't something I eat anymore.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "uja7z2", "question": "Computer engineers seem unanimous in regarding 2-valued logic as having a privileged position: privileged, not just in the sense of corresponding to the way we do speak, but in the sense of having no serious rival for logical reasons.\n\nIf the foregoing analysis is correct, this is a prejudice of the same kind as the famous prejudice in favor of a privileged status for Euclidean geometry (a prejudice that survives in the tendency to cite 'space has three dimensions' as some kind of 'necessary' truth).\n\nOne can go over from a 2-valued to a 3-valued logic without totally changing the meaning of 'true' and 'false'; and not just in silly ways, like the ones usually cited (e.g. equating truth with high probability, falsity with low probability, and middlehood with 'in between' probability).", "comment": "Sure. Some kinds of [ternary computers](https://en.wikipedia.org/wiki/Ternary_computer) have been tried in the past, at least in the Soviet Union.\n\nI don't know if they'd have practical advantages over binary, though. The logic circuitry would probably become more complex, and although it may sound like a three-state logic value would hold more information than a two-state one, non-binary values would also make it harder to e.g. physically distinguish between the voltages representing the different values.\n\nI'm not really an expert on the practical benefits and drawbacks of non-binary computing circuitry, though. Some potentially interesting links that might give more informed views:\n\nhttps://stackoverflow.com/questions/764439/why-binary-and-not-ternary-computing\n\nhttps://www.techopedia.com/why-not-ternary-computers/2/32427\n\nhttps://duckduckgo.com/?q=why+is+ternary+computing+not+common", "upvote_ratio": 100.0, "sub": "AskComputerScience"} +{"thread_id": "uja7z2", "question": "Computer engineers seem unanimous in regarding 2-valued logic as having a privileged position: privileged, not just in the sense of corresponding to the way we do speak, but in the sense of having no serious rival for logical reasons.\n\nIf the foregoing analysis is correct, this is a prejudice of the same kind as the famous prejudice in favor of a privileged status for Euclidean geometry (a prejudice that survives in the tendency to cite 'space has three dimensions' as some kind of 'necessary' truth).\n\nOne can go over from a 2-valued to a 3-valued logic without totally changing the meaning of 'true' and 'false'; and not just in silly ways, like the ones usually cited (e.g. equating truth with high probability, falsity with low probability, and middlehood with 'in between' probability).", "comment": "Binary logic doesn't actually have any particular advantage over other forms (it's less efficient actually). It's simply easier to construct a machine with only two states which makes scaling and error reduction very easy.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "uja7z2", "question": "Computer engineers seem unanimous in regarding 2-valued logic as having a privileged position: privileged, not just in the sense of corresponding to the way we do speak, but in the sense of having no serious rival for logical reasons.\n\nIf the foregoing analysis is correct, this is a prejudice of the same kind as the famous prejudice in favor of a privileged status for Euclidean geometry (a prejudice that survives in the tendency to cite 'space has three dimensions' as some kind of 'necessary' truth).\n\nOne can go over from a 2-valued to a 3-valued logic without totally changing the meaning of 'true' and 'false'; and not just in silly ways, like the ones usually cited (e.g. equating truth with high probability, falsity with low probability, and middlehood with 'in between' probability).", "comment": "At the electrical level it\u2019s a mess. You need to have a \u201cnoise margin\u201d between acceptable voltages, and a single trivalent wire now needs two noise margins in the voltage range. \n\nIt is used in Ethernet cables. It\u2019s more like you are allowing two steps rather than two voltages. \n\nThe concept also applies to binary division. You know how in long division you sometimes picked too big of a quotient and have to redo that digit slightly smaller.\n\nIn division hardware it\u2019s set up so that the each quotient bit can be {-1, 0, 1}. That way, if you guess wrong you can make the next bit negative. (Electrically each one is really two wires, but the math is on the pair.)", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ujamta", "question": "I'm looking to build a Beowulf cluster, likely of many identical older PCs due to budget constraints. I'll be using CPUs for my easily parallelizable computations. Do you have a recommendation for a specific one to allow a cost-effective, powerful cluster (preferably with Infiniband support), or at least the list I am thinking of?", "comment": "There's no way running your own cluster is going to be more cost-effective than the alternatives.\n\n>I'll be using CPUs for my easily parallelizable computations.\n\nWhy not GPU? \"Easily parallelizable computations\" is exactly what they are designed to do and are going to be cheaper than running second-hand enterprise boxes. An AWS instance with 4 high-end GPUs is like $5/hr.\n\n>(preferably with Infiniband support)\n\nRunning your own enterprise-grade gear with Infiniband takes this out of the hobbyist domain and squarely into \"You better be making money on this\" area.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ujba2w", "question": "Have you ever had to scold your kids as adults and rightfully so?", "comment": "Once my children reached adulthood to me they were adults and i treated them as such. I will work to guide, but never scold.", "upvote_ratio": 250.0, "sub": "AskOldPeople"} +{"thread_id": "ujba2w", "question": "Have you ever had to scold your kids as adults and rightfully so?", "comment": "Yes, sometimes it\u2019s necessary. When you\u2019re in a committed relationship, you don\u2019t flirt with your exes. It\u2019s hurtful. Watch your drinking. Moral & legal are two different things. Stuff like that. My love is unconditional for them, but we aren\u2019t religious and I feel an obligation to be somewhat of a moral compass, even tho they\u2019re grown. I\u2019m their mother, that responsibility doesn\u2019t end til the day I die.", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "ujba2w", "question": "Have you ever had to scold your kids as adults and rightfully so?", "comment": "No kids, but I did have to scold my own father.\n\nI was still working, he was retired, and it was the second year in a row that he hadn't gotten a cost of living increase on his Social Security. He was outraged. \n\nBear in mind that this is a man with two pensions, a nice inheritance, and (at the time) four paid-in-full properties. He has sold two of them since then. My stepmother was still alive at the time and working, and both of them had supplemental retirement accounts.\n\nI reminded my father that my husband and I hadn't had a cost of living increase in two years and we still had to work 40+ hours per week and pay a fucking mortgage each month on our ONE house, so he would need to look elsewhere for sympathy. I said it calmly and politely, and he never mentioned it again.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "ujehg9", "question": "Old people of Reddit who were in the Troubled Teen Industry, what was it like back then? Was it worse than today's Troubled Teen Industry or was it the same?", "comment": "Back in my day it was called 'joining the military'. Many men that were convicted of misdemeanors or low level felonies were given the choice of jail or joining the armed forces. Led to unspeakable crimes committed in Viet Nam by our own soldiers, and drug trafficking went through the roof. Families with unruly teenagers would also advise, encourage or even coerce their sons into joining the military.", "upvote_ratio": 400.0, "sub": "AskOldPeople"} +{"thread_id": "ujehg9", "question": "Old people of Reddit who were in the Troubled Teen Industry, what was it like back then? Was it worse than today's Troubled Teen Industry or was it the same?", "comment": "What is a \"Troubled Teen Industry\"?", "upvote_ratio": 280.0, "sub": "AskOldPeople"} +{"thread_id": "ujehg9", "question": "Old people of Reddit who were in the Troubled Teen Industry, what was it like back then? Was it worse than today's Troubled Teen Industry or was it the same?", "comment": "Currently, much of the troubled teen industry appears to be privatized prisons. \n\nLike many of the organizations in the long past, it is far from perfect... or legitimate. Read the [wiki article](https://en.wikipedia.org/wiki/Kids_for_cash_scandal) about it. Pennsylvania judge was receiving kickbacks for every Juvenile he had incarcerated. Many first time offenders and minor offenders had their rights ignored as he kangaroo courted them to juvie centers that were paying him. The courts are still dealing with the aftermath,", "upvote_ratio": 140.0, "sub": "AskOldPeople"} +{"thread_id": "ujgi9w", "question": "So, from my understanding, the terms are often interchangeable, but not always. All computers have a video card (my guess is it's located on the motherboard?) but not all computers have a graphics card. Would it be correct to say that all graphics cards are video cards but not all video cards are graphics cards? And since all computers have a video card, does that mean that computers with a graphics card also have a video card? If so, how does work get divided between them? Can video cards and graphics cards work in tandem?", "comment": "Video cards and graphics card (Graphics Processing Unit or GPU) are the same thing. What you might be confused about is an integrated GPU and an external GPU. Integrated GPUs are small that are often on the same chip as the CPU (example: Intel series chips without the \"F\" suffix, like i5-12400K, or AMD chips with the \"G\" suffix, like 5600G). They are generally not very powerful and can be cooled with the same cooling solution as that of the CPU. They are more than sufficient for everyday tasks and general video streaming, 2D games, and some 3D games.\n\nExternal GPUs are, as the name implies, outside of the CPU, and are huge because of the giant heatsink and fans. These are the nvidias and the bigger amd cards, like the RTX 3080 or the 6900XT. These are much more powerful. Programs that require copius amounts of math based paralleling processing (AAA gaming, cryptomining, and many scientific simulations and calculations) can make very good use of these cards.", "upvote_ratio": 90.0, "sub": "AskComputerScience"} +{"thread_id": "ujgi9w", "question": "So, from my understanding, the terms are often interchangeable, but not always. All computers have a video card (my guess is it's located on the motherboard?) but not all computers have a graphics card. Would it be correct to say that all graphics cards are video cards but not all video cards are graphics cards? And since all computers have a video card, does that mean that computers with a graphics card also have a video card? If so, how does work get divided between them? Can video cards and graphics cards work in tandem?", "comment": "So, neither of those terms is really exact with an absolute meaning, but both practically mean the same thing. There are no distinct meanings.\n\nWhat *may*, in principle, mean two different things are video cards and GPUs, or graphics processing units. Understanding that distinction might be helped by a brief look into history.\n\nTraditionally, the word \"video card\" (or \"display card\", \"video adapter\", \"display adapter\", \"graphics card\", etc.) implies a device that can feed an image output onto a display device or monitor. Video cards up to the mid-90's were meant for that, and didn't do much *processing* or computation on the graphics. They may have had some primitive 2D graphics processing capabilities but their main purpose was to get the image generated by the computer's software onto the physical display, not so much to be involved in generating or manipulating the image in the first place.\n\nIn the late 90's, consumer-grade 3D graphics accelerators were introduced. They had actual computational capabilities for processing 3D graphics. Some of them were video cards with integrated 3D graphics processing capabilities. Others were plain \"3D accelerator\" cards that successfully provided capabilities for faster and better graphics processing, but the \"getting the image onto the monitor\" part had to be done by a separate traditional video card to which the accelerator card was connected.\n\nSeparate accelerator-only cards disappeared after a few years. All new graphics accelerators would begin to ship with traditional video adapter hardware built in, so the single card fulfilled both roles. Soon almost nobody would be selling plain old video cards without acceleration/processing capabilities either, and even the cheapest and the most primitive of PC video cards started having at least some kinds of 3D graphics processing capabilities as well. The distinction between a \"graphics accelerator\" and a traditional video card practically disappeared, at least on consumer PCs.\n\nGraphics accelerators with actual processing capabilities began to be commonly called \"GPUs\" or graphics processing units at the turn of the century when NVidia started using the term for their then-latest generation of graphics cards. The term had existed before but that's when it began to be commonly used to refer to PC hardware that sported extensive graphics processing capabilities. All consumer PC video cards were also graphics processors by this point, and all graphics processors were video cards, so the distinction was no longer practically important.\n\nSince today's GPUs are extensively programmable and can be used for many kinds of heavy data processing tasks in scientific computation etc., without necessarily needing video output, GPUs without a video output may make sense once again, so you might run into a GPU that's technically not a video card. And some industrial or other non-consumer devices might have no need for even the most primitive of graphics processing but do need to output an image, so I suppose you might be able to find plain old video adapters that aren't GPUs somewhere.\n\nBut in consumer PCs, phones etc., all video cards are practically GPUs and all GPUs are practically video cards, although the terms are conceptually different.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "uji4hi", "question": "I'm writing a wallpaper browser. It would fech images from wallhaven.cc via their api and display them in a row, and then the user would click on one and it would be downloaded and have another program applied to it. I can't figure out, how to fetch the image preview in the app itself. I have a prototype in electronJS, but there I just use the img src and call it a day. Is there a sensible way to do this in rust, or should I just stick with electron?", "comment": "Displaying heavily depends on what UI toolkit are you using. \nBut to download the image you can use `reqwest` crate. And then probably convert it to raw bytes (from e. g. jpeg) using `image` crate.", "upvote_ratio": 90.0, "sub": "LearnRust"} +{"thread_id": "uji4hi", "question": "I'm writing a wallpaper browser. It would fech images from wallhaven.cc via their api and display them in a row, and then the user would click on one and it would be downloaded and have another program applied to it. I can't figure out, how to fetch the image preview in the app itself. I have a prototype in electronJS, but there I just use the img src and call it a day. Is there a sensible way to do this in rust, or should I just stick with electron?", "comment": "Well, how you get a preview depends on the API of whatever website you are using, and how you display it depends on the GUI framework that you are using. So not really a Rust question", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ujklqq", "question": "I hear so many different stories like ppl saying they didn\u2019t even know the f word existed till they got older. Edit btw can you guys mention what decade you grew up in and also I don\u2019t mean the curse words you heard in your household since nowadays it\u2019s also true parents might not curse around their kids but like at school and other environments I mean", "comment": "The main curse words we know today were all well known. Anyone telling you they didn't know about the word fuck is fucking lying.", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "ujklqq", "question": "I hear so many different stories like ppl saying they didn\u2019t even know the f word existed till they got older. Edit btw can you guys mention what decade you grew up in and also I don\u2019t mean the curse words you heard in your household since nowadays it\u2019s also true parents might not curse around their kids but like at school and other environments I mean", "comment": "The curse words are exactly the same. Some racial slurs and insulting names have changed or fallen out of favor.", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "ujklqq", "question": "I hear so many different stories like ppl saying they didn\u2019t even know the f word existed till they got older. Edit btw can you guys mention what decade you grew up in and also I don\u2019t mean the curse words you heard in your household since nowadays it\u2019s also true parents might not curse around their kids but like at school and other environments I mean", "comment": "I had a shirt in 1978 that said \"Disco Sucks\" and remember how much shit I got for it, since at the time it was the social equivalent of \"Cunts for Jesus\"\n\nSwears have become WAY more common than they were and WAY less shocking. I'm a fan.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "ujl1nh", "question": "Does drinking lots of water prevent the negative side effects of a high sodium diet (eg. increased blood pressure) ?", "comment": "A high sodium diet is dangerous for some individuals *because* of the resulting excess fluid intake. As you intake fluid to quench your resulting thirst, you increase the volume of fluid within your circulatory system. This increases your blood pressure. \n\nYour kidneys respond by working harder to remove more of the fluid from your system. For a healthy individual, this is not really a problem. Your kidneys remove the excess water and salt from your body without issue. \n\nFor someone with kidney disease, their kidneys may not be able to compensate for this excess fluid load. This results in sustained hypertension, which in addition to a vast number of other issues, further damages the glomeruli (the filters of the kidney).\n\nEDIT: As a caveat, even some healthy individuals are sodium-sensitive and may have resulting hypertension from excess sodium intake.", "upvote_ratio": 34340.0, "sub": "AskScience"} +{"thread_id": "ujl1nh", "question": "Does drinking lots of water prevent the negative side effects of a high sodium diet (eg. increased blood pressure) ?", "comment": "[removed]", "upvote_ratio": 5920.0, "sub": "AskScience"} +{"thread_id": "ujl1nh", "question": "Does drinking lots of water prevent the negative side effects of a high sodium diet (eg. increased blood pressure) ?", "comment": "It takes a lot of salt to make even a small difference in blood pressure for most people. \n\nEg reducing sodium by 4.4g per day (abour 12g salt, more than daily allowance) only reduces systolic bp by 4mm Hg, and diastolic by 2mm.\nhttps://pubmed.ncbi.nlm.nih.gov/23558162/\n\nMaybe bigger effects in people with high BP.", "upvote_ratio": 5300.0, "sub": "AskScience"} +{"thread_id": "ujl3lb", "question": "bro, i need help quick, i accidentally uninstall the whole wifi driver until the windows can't detect the wifi, help me because This is my brother laptop, and he uses it for work, he will be angry if he finds out that I did all that", "comment": "You're looking for /r/techsupport", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ujo2vd", "question": "What was the analog process for converting photos to halftone before digital desktop publishing?", "comment": "**Really old version:** You took the photo into an enlarger of sorts (a machine with a photo light and a lens with photo-reactive material under it) and scale it up or down to the size you needed. Then used a screen (a piece of mylar with a dot pattern in it where the dots were clear and the rest was black) on top of the photo-sensitive material and then make a negative with that set up. Put it through the developer, etc, then cut out the negative and put it into whatever the page was by splicing it into place with tape, etc. If it was color, you would use 4 screens to get the separate colors (C, M, Y, K) into negative form for making plates later. That process required four different pieces of mylar, all registered with register marks (a crosshair) on all sides.\n\n**Sort of old version:** You put the photo into a scanner and it would scan the photo into a dot pattern, make a negative from that scan and repeat the last steps above.\n\nAt some point, the digital version of all of this took over every step, but it was still not possible in a desktop version for quite a while. Doing page creation and popping photos into place on a screen happened in the late 80s. Prior to that you would set up the page digitally with all the graphics and type, (or even older, do a paste-up with all the elements, tedious!) but you would leave a blank square for the photos (or tape in a Xerox and write \"Size/Position ONLY\" on it). \n\nI'm probably forgetting some of this process, it's been a while. I not only did graphic design for over 40 years, but also worked part time in a color separation house for a while between jobs. A lot of various industries were wiped out due to digital desktop systems. No more type houses, no more film houses, no more developing fluid companies, etc.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "ujoeqf", "question": "I have an 8 month old son and it\u2019s going by fast. I wanted to ask if you had a favorite era or age range with your children. I know some people LOVE the newborn era and some get along much better once the kids have grown. \n\nThank you in advance if you take the time to answer!", "comment": "\u201cEvery age\u201d is the wise answer, but here\u2019s the honest one: about 5 to 9 yo. No more tantrums, interesting observations, no cynicism, great senses of humor, less constant threat of self-injury, etc. I was able to start sharing my nerdery with my kid and bonding over it. It\u2019s just a great age. \n\nMy kid is a teen now and is still lovable and loved (and we\u2019re seeing Doctor Strange together tonight!), but it\u2019s not the same.", "upvote_ratio": 3270.0, "sub": "AskOldPeople"} +{"thread_id": "ujoeqf", "question": "I have an 8 month old son and it\u2019s going by fast. I wanted to ask if you had a favorite era or age range with your children. I know some people LOVE the newborn era and some get along much better once the kids have grown. \n\nThank you in advance if you take the time to answer!", "comment": "Not the answer you probably want to hear, but them as adults (35,37,39) because I\u2019m not responsible for raising them anymore, we have a lot more things in common to discuss like politics, raising their own kids, etc and #1 they all have college educations (which I paid for), good jobs and SOs with good jobs so no more child rearing expenses for me! Now I can use whatever extra money I have on spoiling my grandkids!", "upvote_ratio": 890.0, "sub": "AskOldPeople"} +{"thread_id": "ujoeqf", "question": "I have an 8 month old son and it\u2019s going by fast. I wanted to ask if you had a favorite era or age range with your children. I know some people LOVE the newborn era and some get along much better once the kids have grown. \n\nThank you in advance if you take the time to answer!", "comment": "[deleted]", "upvote_ratio": 860.0, "sub": "AskOldPeople"} +{"thread_id": "ujomal", "question": "How to become a better programmer/computer engineer?\n\nI know this question may sound simple (considering that I could ask Google directly).\n\nBut I would like to know/read some advice from real people and their experience, about what things I can do to become a better programmer and computer engineer (career I study).\n\nRegardless of being a woman in a field where there are very few women (at least at my university), it has cost me a little more than my peers to be able to immediately learn the programming logic and programming languages themselves and many times that discourages me even though I love my career.\n\nI would like to read them to see if they have any advice to be able to see what tricks I could use to improve my good programming practices, to learn faster and in a good way.\n\nThanks in advance ;)", "comment": "I think the simple answer that most people say is, program, just something small and program it, \nmake a little console app that maybe asks for some some info, age , store that in memory, then maybe to a file, either txt or JSON \nThen read from them files and sort the data \nKeep adding to your programs and you\u2019ll learn quick about thinking ahead but don\u2019t bite too much off at the start. \n\nYou can add more complex stuff like dependency injection, add some loggers and use something like serilog to get use to nuget packages. \n\nAll of these small things in one simple console app will teach you a lot of simple but helpful things that\u2019s good to have done. \n\nA good way my teacher explained stuff to me was, you know what a tree is, you know what a tree does, but how do you say tree In Spanish, or German or Chinese, you can lean that, but first, you need to know what a tree is, \n\nSame with programming, understand what a for loop is, then you can learn the language of how to write with it.", "upvote_ratio": 80.0, "sub": "AskComputerScience"} +{"thread_id": "ujomal", "question": "How to become a better programmer/computer engineer?\n\nI know this question may sound simple (considering that I could ask Google directly).\n\nBut I would like to know/read some advice from real people and their experience, about what things I can do to become a better programmer and computer engineer (career I study).\n\nRegardless of being a woman in a field where there are very few women (at least at my university), it has cost me a little more than my peers to be able to immediately learn the programming logic and programming languages themselves and many times that discourages me even though I love my career.\n\nI would like to read them to see if they have any advice to be able to see what tricks I could use to improve my good programming practices, to learn faster and in a good way.\n\nThanks in advance ;)", "comment": "It's something that you learn by doing. There's no getting around that. Early on especially, it's quite likely to be a struggle; things that I can write in 15 minutes today took 8 hours of tearing out my hair when I started. Nothing was immediate. Everything was struggle and frustration. \n\nI wrote my first bits of code 22 years ago. And honestly, the only things that come immediately are the things that I've done in some form hundreds of times. For everything else, I've got to step back, carefully break down the problem, and start planning out the sketch of a solution, sometimes jumping between attacking it from the top (overall structure of the problem) and the bottom (building solutions for specific sub-problems).", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ujomal", "question": "How to become a better programmer/computer engineer?\n\nI know this question may sound simple (considering that I could ask Google directly).\n\nBut I would like to know/read some advice from real people and their experience, about what things I can do to become a better programmer and computer engineer (career I study).\n\nRegardless of being a woman in a field where there are very few women (at least at my university), it has cost me a little more than my peers to be able to immediately learn the programming logic and programming languages themselves and many times that discourages me even though I love my career.\n\nI would like to read them to see if they have any advice to be able to see what tricks I could use to improve my good programming practices, to learn faster and in a good way.\n\nThanks in advance ;)", "comment": "Most crafts are learned by doing them. Painters paint, singers sing, sculptors sculpt. Coders code. IOW, practice. Find problems, invent them if you have to, and then solve them. Study other people's code to learn how it works, modify it to do something different.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ujpuct", "question": "Old folks of Reddit what was it like during the USSR era?? Was it hard???", "comment": "The thing I remember most was when someone would defect and make their way to the US. The news would interview them and they\u2019d talk about how bad it was, poverty, bread lines, crime, no fuel, etc, \n\nMany of them commented on how they thought they were being tricked when they first got to the US. They\u2019d see new cars and happy people and fancy clothes, but the one that stands out was the one who went to a grocery store and thought it was a set-up. They couldn\u2019t believe we had all that food. And anyone could go buy it. And the store would put out more. The person went to a few stores to make sure they weren\u2019t being tricked.", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "ujpuct", "question": "Old folks of Reddit what was it like during the USSR era?? Was it hard???", "comment": "Not me, but a good friend grew up in Moscow int he 70's and 80's. \n\nThe school system built up a cult of personality around Leonid Brezhnev. The USA was the great enemy and only Leonid Brezhnev could protect the USSR and all the children from an invasion from America. \n\nWhen Brezhnev unexpectedly died in 1982, my friend says all the school kids were terrified America would immediately invade, destroy the country and kill/ enslave everyone. \n\nOtherwise, my friend says life in the Soviet era was boring. There was not much to do. Lucky Muscovites had dachas or country cottages to occupy their summers. Some had cars, most did not. Kids could attend summer (Pioneer) camps. But otherwise one went to school, one went home to an apartment. Nobody was hungry but aside from some playing with friends outside or reading books there was little to do . \n\nMy friend's dad was one of the few Soviet citizens able to travel overseas for work. He'd bring back a few Western consumer goods like Seiko watches which could be sold or traded in Moscow. \n\nThey went on a summer vacation to the Black Sea one summer. He remembers walking along a beach, in Ukraine, in the late 70's, dad's hand in one hand and giant boiled cob of corn on a stick in the other hand. This corn-on-a - stick was a Soviet era treat for kids. \n\nMost people in Moscow lived in an apartment, but it was common for wealthier people to have a garage or workshop elsewhere in the city. Dads could get away from the family to the garage and tinker with projects, like repairing old furniture, old appliances or brew home made hooch. \n\nSelf reliance was a big thing. Everyone knew how to sew/repair clothes, do gardening, grow vegetables, and do household repairs, leather-working and other practical skills. Few people hired people to do these things, they did it themselves.", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "ujpuct", "question": "Old folks of Reddit what was it like during the USSR era?? Was it hard???", "comment": "In some ways it was scary. Knowing any minute it could all melt away in a giant flash of light and radiation. \n\nOTOH, there was a great comfort knowing who the good guys and bad guys were. In particular, society was so busy being united behind defeating them - most years there was barely even a culture war", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "ujs34p", "question": "What is the craziest/interesting/unlikely event you have ever personally witnessed?", "comment": "Just as the Sun was setting in the West over the open ocean I saw a green flash on the horizon line. \n\nThe last section of the Sun's disc was disappearing and the yellow turned to a bright, almost neon green color for a fraction of a second. Don't know how rare the optical phenomenon is to observe, but I never saw it again since.", "upvote_ratio": 230.0, "sub": "AskOldPeople"} +{"thread_id": "ujs34p", "question": "What is the craziest/interesting/unlikely event you have ever personally witnessed?", "comment": "Trump getting elected President of the United States in 2016", "upvote_ratio": 230.0, "sub": "AskOldPeople"} +{"thread_id": "ujs34p", "question": "What is the craziest/interesting/unlikely event you have ever personally witnessed?", "comment": "When I was eight or nine, I was with the neighborhood kids on the street. For reasons I can\u2019t recall, one of the kids Darrel B. got into a disagreement with Roy W., the oldest of the family that lived across from me and my brothers. Darrel B. Lived directly across from Roy\u2019s family. \n\nDarrel who was 14 or so at the time ended up crying and proceeded to run home. \n\nAfter a few minutes, Darrel B\u2019s dad came out and confronted Roy. Words where spoken and Darrel\u2019s Dad pulled a gun and shot Roy in the chest. Roy had just turned 18.\n\n30 minutes later, I\u2019m walking down the street comforting his little sister, who has just just lost her Brother. This incident changed my perspective of my life in the United States.", "upvote_ratio": 200.0, "sub": "AskOldPeople"} +{"thread_id": "ujsz70", "question": "Many people use cloud storage nowadays. What would happen if the server your data is on breaks down? Do you lose the data or is there a backup? Is it possible for this to happen?", "comment": "Any reputable service (e.g. Dropbox, Google Drive, iCloud) has multiple copies of data such that any single server failure wouldn't matter.", "upvote_ratio": 230.0, "sub": "AskComputerScience"} +{"thread_id": "ujsz70", "question": "Many people use cloud storage nowadays. What would happen if the server your data is on breaks down? Do you lose the data or is there a backup? Is it possible for this to happen?", "comment": "Any reputable cloud storage provider will have backups, yes. Depending on the service you can even select how paranoid you want to be. Iron Mountain, for instance, will also create magnetic tape backups of the entire history of changes to the data you store. This is usually not for backup purposes but for companies that need to be able to comply with certain legal requests. They also offer services like a special facility built into a mine in case you're worried someone with an airforce might try to destroy your data.", "upvote_ratio": 70.0, "sub": "AskComputerScience"} +{"thread_id": "ujsz70", "question": "Many people use cloud storage nowadays. What would happen if the server your data is on breaks down? Do you lose the data or is there a backup? Is it possible for this to happen?", "comment": "me: worked on distributed file systems / cloud storage and map-reduce infrastructure.\n\nIt's very, very unlikely for you to lose your data stored in the cloud. Typically it is substantially less likely than losing it due to a problem on your computer such as hard disk corruption, disk crash, hardware failure, etc.\n\nWhy? Typically your data will be stored in at LEAST two places, and usually more. It will also typically be broken up into 'blocks', and those blocks will be spread across many different servers, each block being replicated to multiple servers. \n\nThere are background processes that make sure there is more than one copy of your data, and if the replication factor is e.g. 4, it will (eventually) detect if more replicas are needed, and copy one of the copies of that block to additional places to meet the replication factor. There's fancier schemes too (such as erasure coding), but it boils down to about the same thing.\n\nIn this world, in order to lose the cloud copy of your data, a bunch of different servers on different racks and possibly in different geographical locations would have to fail at about the same time. And even then, you would be talking about losing part of ONE file typically, not all of your files.\n\nCan it happen? Sure. I'm sure it's happened hundreds of times to hundreds of files over the last year. But given we're talking about billions or trillions of files, it's much more reliable than your local storage.\n\nOne last note / admission - it's entirely possible for your data to be temporarily inaccessible. For example, a power outage or a network outage isolates the machines in the datacenter for a while. But, it pretty much always comes back.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ujtwto", "question": "Diseases like Ebola and Rabies are much more fatal in humans than in their host species. Are there any diseases that are relatively safe in humans, but are lethal in animals?", "comment": "Bluetongue is fairly hard to catch and has mild symptoms in humans, but is deadly for sheep. It is a very serious disease for African pastoralists that is vectored by tiny biting sand flies.\n\nAnimals that can carry a disease that harms other animals, but has little or no ill effects for itself is called a reservoir species.\n\nEdit: I feel I need to clarify my post here. Humans, by virtue of not being able to catch bluetongue easily, are not specifically a reservoir species for bluetongue. An example of reservoir species for bluetongue would be non-sheep ruminants like cattle; cows can catch bluetongue much more easily than people, but exhibit only mild or no symptoms. OP's question was specifically about diseases that are \"safe\" for humans, but dangerous for other animals, and not specifically about reservoir species, but I thought I would mention the concept since it is a good jumping off point for looking at other examples of the same phenomena.", "upvote_ratio": 5150.0, "sub": "AskScience"} +{"thread_id": "ujtwto", "question": "Diseases like Ebola and Rabies are much more fatal in humans than in their host species. Are there any diseases that are relatively safe in humans, but are lethal in animals?", "comment": "People probably think about disease, infections, and pathogens in ways that are too binary. It's not like you have zero viruses, then one gets on you and bam you're infected. An infection is really when a microbe starts causing problems for your body. And it's not like bacteria and virus are good or bad. They're just doing their thing. Most of the time your body is fine with it, but sometimes things get out of hand.\n\nYou can have \"beneficial\" bacteria helping you in one area of your body, but that same bacteria gets somewhere it it's not supposed to be and now it's an infection. So you don't even need to look at diseases in different species. The same bacteria can be beneficial AND also lethal in the same animal.\n\nYou body is a complex ecosystem and problems arise when the ecosystem becomes unbalanced. Check out I Contain Multitudes by Ed Yong: https://www.goodreads.com/book/show/27213168-i-contain-multitudes", "upvote_ratio": 1930.0, "sub": "AskScience"} +{"thread_id": "ujtwto", "question": "Diseases like Ebola and Rabies are much more fatal in humans than in their host species. Are there any diseases that are relatively safe in humans, but are lethal in animals?", "comment": "[removed]", "upvote_ratio": 1140.0, "sub": "AskScience"} +{"thread_id": "ujuqux", "question": "Am 67. What comes to mind is Leisure Seeker, Still Alice, and On Golden Pond.", "comment": "Grumpy Old Men", "upvote_ratio": 150.0, "sub": "AskOldPeople"} +{"thread_id": "ujuqux", "question": "Am 67. What comes to mind is Leisure Seeker, Still Alice, and On Golden Pond.", "comment": "\"Older people\" is one of those generalizations. We're all over the map. I'll send you off to see \"Harold and Maude,\" if you haven't already, about a young person acting old, and an old person who's very young. I've known a Maude or two, though not in that way. ;-)", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "ujuqux", "question": "Am 67. What comes to mind is Leisure Seeker, Still Alice, and On Golden Pond.", "comment": "Older people are still individuals. I'm afraid this question is only going to yield answers that reinforce stereotypes.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "ujwvla", "question": "Noob question but why are deployment environments named like this?\n\nI mean what do they mean by \"production\"? Shouldn't it be something like \"global\" (it would make sense since the first one is \"local\")\n\nAnd what does the word \"staging\" mean?\n\nIt's a bit counterintuitive to remember each of these since the names (seemingly) don't make sense.\n\nP.S.: English isn't my first language so if the answers are obvious to someone, please keep in mind they aren't to me :)", "comment": "I kind of thought of it in terms of a theatre performance metaphor.\n\nProduction is the live site. It's the site the public visits. Like a theatre or music \"production\". It's the \"live show\" that everyone actually watches, so to speak.\n\nStaging is the final practice grounds. Where everything is finally rehearsed just before going live. This isn't the the actual production yet though, were just giving it a last trial before giving the live production. We're \"stage testing\" the performance. Seeing what it looks like in a nearly identical environment to the live production (just minus the audience, ideally).\n\n\nLocal doesn't fit the theatre metaphor that well, but it's just your local machine usually. If you want to wedge it into the metaphor, it's the place \nan individual actor/actress will learn their lines and practice their performance etc.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ujwvla", "question": "Noob question but why are deployment environments named like this?\n\nI mean what do they mean by \"production\"? Shouldn't it be something like \"global\" (it would make sense since the first one is \"local\")\n\nAnd what does the word \"staging\" mean?\n\nIt's a bit counterintuitive to remember each of these since the names (seemingly) don't make sense.\n\nP.S.: English isn't my first language so if the answers are obvious to someone, please keep in mind they aren't to me :)", "comment": "I don't know where the names actually originate, but I always assumed \"production\" was inspired by something like a factory. \"Putting something into production\" means you've finished testing your prototypes, and now you're firing up the assembly lines to make the final products that will actually be shipped to real customers.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uk2ahs", "question": "Similar to reddit, there's a constant stream of new user generated content going to my server, plus visits to the content when players share and play it. I'd like a fast way to show the most popular ones today, this week, this month, and this year. I'm not even sure what this category of algorithm is called. I've tried to google combinations of keywords like:\n\n* computer science\n* algorithm\n* top, best, sorted\n* weekly, monthly, yearly\n* rolling, rolling average\n\nBut I just get \"best computer science topics\" and \"best sorting algorithms\" and \"how to get the day of week from a date\".\n\nIt seems to me that some daily operation could combine stats into buckets of the past 7 days, the past 4 weeks, and the past 12 months, but I don't see the full picture yet.\n\nSome keywords, wiki pages, blog posts, examples, or tools would be great. Thoughts? Thanks!", "comment": "I'd describe this problem as a \"top-k query over a sliding window\". Maybe that search term will give you better results?\n\nThere are fancy algorithms to try to solve this problem incrementally and/or approximately, but unless you're talking about a huge amount of data, it probably makes sense to just periodically compute the top items with a simple database query, and cache the result. Querying over a longer time range will be slower, but it also won't need to be updated as frequently.", "upvote_ratio": 120.0, "sub": "AskComputerScience"} +{"thread_id": "uk2ahs", "question": "Similar to reddit, there's a constant stream of new user generated content going to my server, plus visits to the content when players share and play it. I'd like a fast way to show the most popular ones today, this week, this month, and this year. I'm not even sure what this category of algorithm is called. I've tried to google combinations of keywords like:\n\n* computer science\n* algorithm\n* top, best, sorted\n* weekly, monthly, yearly\n* rolling, rolling average\n\nBut I just get \"best computer science topics\" and \"best sorting algorithms\" and \"how to get the day of week from a date\".\n\nIt seems to me that some daily operation could combine stats into buckets of the past 7 days, the past 4 weeks, and the past 12 months, but I don't see the full picture yet.\n\nSome keywords, wiki pages, blog posts, examples, or tools would be great. Thoughts? Thanks!", "comment": "My intuition, having never written something like that before, is to go with a 'brute force' database implementation until you know you need something better. Shove everything into an SQL database and do a `SELECT * WHERE DATE = whatever ORDER BY 'score' LIMIT 10;` esque query. If/when you outgrow this, I'd go with separate day/week/month/year tables with an index on score (one that supports ordering) plus cronjobs that regularly drop old entries.\n\nMy other thought is I haven't used Redis much but I *think* you can make it work with sorted sets and TTL (time-to-live) values.\n\nAlso [this is not what you are asking but interesting and relevant](https://medium.com/jp-tech/how-are-popular-ranking-algorithms-such-as-reddit-and-hacker-news-working-724e639ed9f7). I found that with a search of \"top posts rolling 24 hours algorithm -instagram\" which has other interesting results.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uk3p5u", "question": "So was learning the data types part of the Rust book and saw this -\n\nWhen you\u2019re compiling in release mode with the\n\n --release\n\nflag, Rust does *not* include checks for integer overflow that cause panics. Instead, if overflow occurs, Rust performs *two\u2019s complement wrapping*. In short, values greater than the maximum value the type can hold \u201cwrap around\u201d to the minimum of the values the type can hold. In the case of a\n\n u8\n\n, the value 256 becomes 0, the value 257 becomes 1, and so on. The program won\u2019t panic, but the variable will have a value that probably isn\u2019t what you were expecting it to have. Relying on integer overflow\u2019s wrapping behavior is considered an error.\n\n&#x200B;\n\nMy question is why even perform this integer wrapping. The program will be getting a value that is unexpected and it will likely be more of a bug. Why not just perform the same thing that is in debug mode that is crash the program. ", "comment": "This is one of the few places where Rust chose a small speed increase over a fairly important safety issue. See [Issue #47739](https://github.com/rust-lang/rust/issues/47739) for a discussion. This 2016 [blog post](https://huonw.github.io/blog/2016/04/myths-and-legends-about-integer-overflow-in-rust/) on the topic is quite good.\n\nYou can enable overflow checks for release builds in your `Cargo.toml` via\n\n [profile.release]\n overflow-checks = true", "upvote_ratio": 230.0, "sub": "LearnRust"} +{"thread_id": "uk3p5u", "question": "So was learning the data types part of the Rust book and saw this -\n\nWhen you\u2019re compiling in release mode with the\n\n --release\n\nflag, Rust does *not* include checks for integer overflow that cause panics. Instead, if overflow occurs, Rust performs *two\u2019s complement wrapping*. In short, values greater than the maximum value the type can hold \u201cwrap around\u201d to the minimum of the values the type can hold. In the case of a\n\n u8\n\n, the value 256 becomes 0, the value 257 becomes 1, and so on. The program won\u2019t panic, but the variable will have a value that probably isn\u2019t what you were expecting it to have. Relying on integer overflow\u2019s wrapping behavior is considered an error.\n\n&#x200B;\n\nMy question is why even perform this integer wrapping. The program will be getting a value that is unexpected and it will likely be more of a bug. Why not just perform the same thing that is in debug mode that is crash the program. ", "comment": "I think wraping is just faster. You don't need to do anything to wrap but to panic you need to check for overflow every time.", "upvote_ratio": 160.0, "sub": "LearnRust"} +{"thread_id": "uk3p5u", "question": "So was learning the data types part of the Rust book and saw this -\n\nWhen you\u2019re compiling in release mode with the\n\n --release\n\nflag, Rust does *not* include checks for integer overflow that cause panics. Instead, if overflow occurs, Rust performs *two\u2019s complement wrapping*. In short, values greater than the maximum value the type can hold \u201cwrap around\u201d to the minimum of the values the type can hold. In the case of a\n\n u8\n\n, the value 256 becomes 0, the value 257 becomes 1, and so on. The program won\u2019t panic, but the variable will have a value that probably isn\u2019t what you were expecting it to have. Relying on integer overflow\u2019s wrapping behavior is considered an error.\n\n&#x200B;\n\nMy question is why even perform this integer wrapping. The program will be getting a value that is unexpected and it will likely be more of a bug. Why not just perform the same thing that is in debug mode that is crash the program. ", "comment": "ELI5. A computer uses a fixed size for it's number types. So every number is basically like a mileage indicator (odometer) in your car. Let's assume just for fun that your car has a milage indicator with four digits.\n\nIf your car shows 9997 miles and you add six miles your car will show 3 miles (0003).\n\nIn your computer it works exactly the same but in binary. Because of that the number of different states a number can have is always a power of 2, like 256. So if you have an u8 it overflows from 255 to 0, if you have an i8 you also have \"room\" for 256 different values but they are offset and will overflow from 127 to -128.\n\nSo in debug mode rust adds checks to every operation that can overflow to determine if it would overflow. Those checks are many CPU instructions long and cost time. In release mode rust doesn't check and just uses (in most cases) a single CPU instruction (let's ignore LLVM for now) and this unchecked simple CPU instructions works like a binary milage indicator in hardware and automatically overflows.\n\nUpdate: If you explicitly want to pay the runtime cost and make sure it doesn't overflow you could also use the \"checked_xxx\" operations like this one: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_add", "upvote_ratio": 110.0, "sub": "LearnRust"} +{"thread_id": "uk481c", "question": "Hi everyone! \n\nSo just recently, I got into the habit of devouring research papers about Software Engineering. I read on IEEE or ResearchGate; specifically on the topic of SDLC, Code Smells, Documenting Code, Security, and the like.\n\nAfter some time, I feel like doing and writing my own research too. However, the recommendations of the papers I've read so far are beyond my current skills. I then thought to myself that it's maybe because the authors of those papers are PhD holders and I'm just a college student.\n\nNow, I tried searching for thesis studies authored by an undergrad. Sadly, I didn't found much.\n\nSo I just want to ask you guys if you know some sites where I can read undergrad thesis with rich recommendations for future researchers? Or maybe you have one from your undergrad years that you're willing to share. It would be really really helpful.\n\nThank you so much for reading! Any suggestion, opinion, and answer will be greatly appreciated.", "comment": "You can find theses created at my school. Perhaps that's of interest to you? \n\nhttps://findit.dtu.dk/en/catalog?availability%5B%5D=electronic&availability%5B%5D=printed&q=type%3Athesis&type=thesis_bachelor&utf8=%E2%9C%93", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "uk481c", "question": "Hi everyone! \n\nSo just recently, I got into the habit of devouring research papers about Software Engineering. I read on IEEE or ResearchGate; specifically on the topic of SDLC, Code Smells, Documenting Code, Security, and the like.\n\nAfter some time, I feel like doing and writing my own research too. However, the recommendations of the papers I've read so far are beyond my current skills. I then thought to myself that it's maybe because the authors of those papers are PhD holders and I'm just a college student.\n\nNow, I tried searching for thesis studies authored by an undergrad. Sadly, I didn't found much.\n\nSo I just want to ask you guys if you know some sites where I can read undergrad thesis with rich recommendations for future researchers? Or maybe you have one from your undergrad years that you're willing to share. It would be really really helpful.\n\nThank you so much for reading! Any suggestion, opinion, and answer will be greatly appreciated.", "comment": "Usually, undergrads are doing research under their professors and it\u2019s rare to see a paper published by an undergrad as a first name, even rarer to see a paper published by an undergrad themself. \n\nBut really, the research process and writing doesn\u2019t change whether you\u2019re a PhD, undergrad, tenured professor or industry researcher. Your goal is to convey the problem you\u2019re studying and maybe propose a solution backed with thorough analysis. \n\nThe reason why you feel those paper are above your skill level is because the authors have spent tremendous amount of time working on that subject and have accrued great understanding of the domain in that time. \n\nMy advice is that undergrad papers aren\u2019t usually that great. Of course, there\u2019s always that rare exception. But it\u2019s best to learn and imitate the best. If you\u2019re really passionate about research and academia, perhaps talk to one of your professors and see if they need an undergrad in their research. You\u2019ll learn so much more than going solo", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uk481c", "question": "Hi everyone! \n\nSo just recently, I got into the habit of devouring research papers about Software Engineering. I read on IEEE or ResearchGate; specifically on the topic of SDLC, Code Smells, Documenting Code, Security, and the like.\n\nAfter some time, I feel like doing and writing my own research too. However, the recommendations of the papers I've read so far are beyond my current skills. I then thought to myself that it's maybe because the authors of those papers are PhD holders and I'm just a college student.\n\nNow, I tried searching for thesis studies authored by an undergrad. Sadly, I didn't found much.\n\nSo I just want to ask you guys if you know some sites where I can read undergrad thesis with rich recommendations for future researchers? Or maybe you have one from your undergrad years that you're willing to share. It would be really really helpful.\n\nThank you so much for reading! Any suggestion, opinion, and answer will be greatly appreciated.", "comment": "plural of thesis is theses.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uk4jnr", "question": "Boomer here. I was in my 20s in 1980s Southern California. I have zero memories of adolescent boys sporting bowl-over-the-head haircuts in the 1980s like many of the male leads in the TV show \u201cStranger Things\u201d. I do distinctly remember them exclusively on clueless middle-aged men, in what seemed to me to be some kind of Beatles carryover, but never on teenage boys. Was this may be a regional thing exclusive to the Midwest and/or East Coast? Or is my recollection wrong?", "comment": "I thought they were trying to look like Moe Howard.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uk4jnr", "question": "Boomer here. I was in my 20s in 1980s Southern California. I have zero memories of adolescent boys sporting bowl-over-the-head haircuts in the 1980s like many of the male leads in the TV show \u201cStranger Things\u201d. I do distinctly remember them exclusively on clueless middle-aged men, in what seemed to me to be some kind of Beatles carryover, but never on teenage boys. Was this may be a regional thing exclusive to the Midwest and/or East Coast? Or is my recollection wrong?", "comment": "I was in elementary school in the 1980s in coastal Southern California and about half the boys in my class had that exact haircut.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uk4jnr", "question": "Boomer here. I was in my 20s in 1980s Southern California. I have zero memories of adolescent boys sporting bowl-over-the-head haircuts in the 1980s like many of the male leads in the TV show \u201cStranger Things\u201d. I do distinctly remember them exclusively on clueless middle-aged men, in what seemed to me to be some kind of Beatles carryover, but never on teenage boys. Was this may be a regional thing exclusive to the Midwest and/or East Coast? Or is my recollection wrong?", "comment": "In my kindergarden pics (1974, Australia) I have what I call the [Nicholas Bradford](https://www.gettyimages.co.nz/photos/nicholas-bradford) haircut. \n\nIt was a popular look in the second half of the 1970s up to around 1981 - mainly for little boys. \n\n[Older guys had a similar cut](https://www.tvflashback.com.au/peter-mochrie-the-restless-years/) but usually more 'flicked'.\n\nAfter 1981 our haircuts were more influenced by [The Human League](https://www.officialcharts.com/artist/18435/human-league/).", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uk880b", "question": "Just saw a post here about which movies portrayed old people best; was wondering what people here thought of \u201cUp.\u201d It came out when I was a kid, so I\u2019m wondering in what ways watching it from an older perspective would be from a younger perspective.", "comment": "My husband passed away just after I turned 50, so those first few minutes were completely accurate. It happens just that fast. Suddenly, your happy-ever-after is gone, and you're facing your last twenty years all by yourself. The rest of the movie is the moral of the story -- you find something to live for, or you sit around and wait to die.", "upvote_ratio": 1520.0, "sub": "AskOldPeople"} +{"thread_id": "uk880b", "question": "Just saw a post here about which movies portrayed old people best; was wondering what people here thought of \u201cUp.\u201d It came out when I was a kid, so I\u2019m wondering in what ways watching it from an older perspective would be from a younger perspective.", "comment": "One of the best 10 minutes of any movie ever. I cried like a baby. After the first 10 minutes I was emotionally spent. Could have gone home and still felt it was one of the best movies I\u2019d seen.", "upvote_ratio": 1380.0, "sub": "AskOldPeople"} +{"thread_id": "uk880b", "question": "Just saw a post here about which movies portrayed old people best; was wondering what people here thought of \u201cUp.\u201d It came out when I was a kid, so I\u2019m wondering in what ways watching it from an older perspective would be from a younger perspective.", "comment": ">It came out when I was a kid, \n\nOkay, reading that I did a double take. Somehow in my head, that would have been just a few years ago, not the thirteen years it actually was. Fuck, I'm old.", "upvote_ratio": 700.0, "sub": "AskOldPeople"} +{"thread_id": "uk8gk1", "question": "So GPUs have VRAM. Is there something similar CPUs have? I know they have a cache, but anything more like proper RAM?\n\n&#x200B;\n\nEDIT: I just want to say, I'm just a guy. I'm not a student studying computer science, I just was curious. I'm a layman and I thought this question would be okay here. Didn't expect to anger so many people, it was certainly not my intent. I don't know much about computers and I don't claim to. I understand people can get offended if you don't have some basic knowledge but I figure better to ask a stupid question than never know. Nothing on the internet I could find could answer my question, but I understand now that it was probably because the way my question was phrased and that RAM itself being the CPUs RAM would be something you would know naturally if you studied computers. Again, I'm not a computer person or student, and I thought this question was okay, I didn't mean to anger anyone.", "comment": "For the record I don't think you're wrong to ask this question. :)", "upvote_ratio": 250.0, "sub": "AskComputerScience"} +{"thread_id": "uk8gk1", "question": "So GPUs have VRAM. Is there something similar CPUs have? I know they have a cache, but anything more like proper RAM?\n\n&#x200B;\n\nEDIT: I just want to say, I'm just a guy. I'm not a student studying computer science, I just was curious. I'm a layman and I thought this question would be okay here. Didn't expect to anger so many people, it was certainly not my intent. I don't know much about computers and I don't claim to. I understand people can get offended if you don't have some basic knowledge but I figure better to ask a stupid question than never know. Nothing on the internet I could find could answer my question, but I understand now that it was probably because the way my question was phrased and that RAM itself being the CPUs RAM would be something you would know naturally if you studied computers. Again, I'm not a computer person or student, and I thought this question was okay, I didn't mean to anger anyone.", "comment": "Not really. Computer memory is organized into hierarchies of speed and locality (distance from) to the processor pipelines. There are generally speaking 6-levels: Harddrive, RAM\\*, L3 cache, L2 cache, L1 cache, registers. Data moves through this chain as it is needed. GPU's can have more localized memory to speed things up due to the volume of data they work with, but this is more of GPU's emulating CPU's than the converse. \n\n&#x200B;\n\n\\*RAM is technically a memory model that allows reading from a selected point, instead of reading all the memory sequentially until that point. Nowadays it refers to a smaller faster (usually amnesiac) memory chip than the harddrive, as pretty much all memory follows the RAM model, including harddrives.", "upvote_ratio": 110.0, "sub": "AskComputerScience"} +{"thread_id": "uk8gk1", "question": "So GPUs have VRAM. Is there something similar CPUs have? I know they have a cache, but anything more like proper RAM?\n\n&#x200B;\n\nEDIT: I just want to say, I'm just a guy. I'm not a student studying computer science, I just was curious. I'm a layman and I thought this question would be okay here. Didn't expect to anger so many people, it was certainly not my intent. I don't know much about computers and I don't claim to. I understand people can get offended if you don't have some basic knowledge but I figure better to ask a stupid question than never know. Nothing on the internet I could find could answer my question, but I understand now that it was probably because the way my question was phrased and that RAM itself being the CPUs RAM would be something you would know naturally if you studied computers. Again, I'm not a computer person or student, and I thought this question was okay, I didn't mean to anger anyone.", "comment": "The [main memory](https://en.wikipedia.org/wiki/Computer_data_storage#Primary_storage) of the computer, often just called RAM in computer specs, is the RAM the CPU uses. The CPU also has caches, as you said, and small but very fast internal memory slots called registers that can temporarily hold individual numbers or values that the CPU is operating on.\n\nSome people probably got tripped off by the question because, to most people, video RAM and caches would seem more specific and more advanced knowledge than the fact that the CPU uses the main memory.\n\nIt's not a wrong question to ask, just a bit weird and surprising to some people.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ukb9s4", "question": "Finding Radius of Graph - is this a correct algorithm? Can someone help me analyse its runtime?", "comment": "You're calling `runBFS` many times, and often you will call it for a path that has a subpath you have already analyzed. So your runtime will be way too long.\n\nI suggest you run an all-pairs-shortest-path algorith.\n\nUnless I'm misunderstanding what you're computing.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ukc5ou", "question": "Edit: I understand that many antivirals affect the viral polymerase, but I\u2019m most interested in nucleoside analogs like molnupiravir\u2026 how do they affect only viral RNA and not host RNA?", "comment": "The drugs don\u2019t target RNA per se, but the enzymes that make the RNA. since the viral enzymes are different than human enzymes, it is possible to find drugs that inhibit viral RNA synthesis but don\u2019t inhibit RNA synthesis by our cells.", "upvote_ratio": 10280.0, "sub": "AskScience"} +{"thread_id": "ukc5ou", "question": "Edit: I understand that many antivirals affect the viral polymerase, but I\u2019m most interested in nucleoside analogs like molnupiravir\u2026 how do they affect only viral RNA and not host RNA?", "comment": "They don\u2019t target RNA. However they can target RNA dependent RNA polymerases though since humans don\u2019t have them. RNA viruses have to be able to copy RNA to RNA, something humans never do (we go DNA -> RNA only) or in the case of retroviruses reverse transcriptase (RNA -> DNA) which again humans dont do so targeting it doesn\u2019t affect your cells. \n\nThere are ways to target RNA sequences directly and they are used in research but not as antiviral treatments (at least for now).", "upvote_ratio": 870.0, "sub": "AskScience"} +{"thread_id": "ukc5ou", "question": "Edit: I understand that many antivirals affect the viral polymerase, but I\u2019m most interested in nucleoside analogs like molnupiravir\u2026 how do they affect only viral RNA and not host RNA?", "comment": "A common class of antivirals are nucleoside analogs, molecules that are very similar to the building blocks of RNA, but that screw up replication when they get incorporated into a new RNA strand, keeping the virus from being able to effectively reproduce or massively slowing it down.\n\nViruses rely on their own enzymes to replicate their genomes , different from the ones our cells use for replication and transcription. Because of this, we can look for nucleoside analogs that will \"trick\" viral enzymes from a specific virus into trying to incorporate them into new RNA, but that won't interfere with our own cellular functioning.", "upvote_ratio": 510.0, "sub": "AskScience"} +{"thread_id": "uke6bp", "question": "Is Western society the most physically comfortable and least mentally fulfilling it has ever been?", "comment": "Most physically comfortable, probably. A middle class American has luxuries Cleopatra couldn't have dreamed of.\n\nMental fulfillment is a trickier beast. If you want it, it's out there, affordable to all but the poorest. Want to learn Chinese? Want to study French literature? Want to learn physics or calculus? Do you want to make friends with people from all over the world? There has never been a better time for that.\n\nBut we suffer from overload, I think. People seem to do best when they can choose from a small array of options. Too many choices makes most people's brains shut down. Then they just heat up a Hot Pocket, turn on the TV and watch the latest superhero movie.", "upvote_ratio": 1880.0, "sub": "AskOldPeople"} +{"thread_id": "uke6bp", "question": "Is Western society the most physically comfortable and least mentally fulfilling it has ever been?", "comment": "*Physically comfortable?* \\- Very much is physically more comfortable. Example: Living conditions in the entire South of the United States have been revolutionized by air conditioning. Not everybody has it, of course, but for those who do - and in public spaces like schools - it makes all the difference.\n\nTrade allows us to eat fresh vegetables and fruit year-round. Labor-saving inventions really do save a lot labor that modern generations may not even know about, like boiling clothes over a fire in the back yard to get them clean.\n\nCars are safer by far than in the past - seat belts, safety glass, airbags, and the futuristic accouterments of new cars. They are, however, way less roomy and more like fitting into an early space capsule. \n\nTo the extent you \"believe in\" vaccines, you can be free from everything from chicken pox to shingles, and smallpox is literally gone (unless somebody breaks into a freezer somewhere).\n\n*Mentally fulfilling?* \\- There's much more access to information. I personally find this liberating, like having the world's libraries in your own house.\n\nEntertainment has reached a strange plateau, which makes it less stimulating. Note all the reboot movies, for example. That's stultifying.\n\nEducation - well, we all know what's going on with education in the U.S. I can't speak for other countries. I would put this in the less fulfilling column.\n\nStress - Yeah, there's a ton of stress right now, but there was in the past, too. No decade has been without its awfulness. So this is on the fence. We have terrorism now; there was domestic terrorism and a lot more of it around 1900; there was the Cold War, there were several real wars. The political scene now is wildly chaotic and filled with rancor like I've never seen before. To the extent that cooperation is fulfilling, we're worse off.\n\nPersonal happiness - That's hard to say. The pandemic has thrown a monkey wrench into everybody's lives, separated families, prevented travel and so on. But the basics are mostly still there. \n\nThe curious case of fraternal societies is puzzling and I'd say means less mental fulfillment. The Masons, Lions, Elks, Moose, Rotary, Sons of Hermann, Knights of Columbus, Woodmen of the World, and all the rest are slowly (no, rapidly) dying out. As are churches. Where are people getting their need for group social activity from? *Reddit?* Good lord, what does that say about us?", "upvote_ratio": 400.0, "sub": "AskOldPeople"} +{"thread_id": "uke6bp", "question": "Is Western society the most physically comfortable and least mentally fulfilling it has ever been?", "comment": "No, I don't feel like that at all. Physically comfortable yes. Mentally fulfilling too. \n\nHumans are very bad at absolutes, we just perceive relatives. And we're bad at seeing constants, we only see change.\n\nSo when things are going from bad to worse and back, we think it's good. If things are good and stay good, we think it's bad. And when things go up a lot and down a bit, we think it's very bad.\n\nIn my mother's time, it was exceptional for her to get a higher education. When she started working it was expected from her to stop when she got pregnant. People were forced into marriage, into jobs. There was illiteracy, lack of information, abuse. \n\nAll that is still there, but if you compare life now with life fifty years ago, it has improved a lot for the large majority of people. Especially mentally, if you take into account freedom of life choices, education, information.\n\nAnd yes, there are problems in the world and younger generations have real problems to deal with. Just as every younger generation before them. But I feel that saying things are worse than in the past is quite a stretch. At least in my country and with a middle class background.", "upvote_ratio": 260.0, "sub": "AskOldPeople"} +{"thread_id": "ukes5d", "question": "I know there are some examples of viruses jumping host kingdoms, but they seem relatively rare compared to how often they jump between host species. Of the examples we do have, many of them we don't have direct evidence for, the jump is inferred from evolutionary evidence because it happened too far in the past. Is the jump between kingdoms 'harder', and if so, why?", "comment": "Hierarchy of life taxa is:\n\nDomain > kingdom > phylum > class > order > family > genus > species\n\nSpecies that share a common genus (ex. Wolf vs coyote) are much, much more similar than two species that only share a common kingdom (ex. Wolf vs lobster).\n\nSimilarity (or difference) of physiological niche, likelihood of encounter, cellular microenvironment, and presence of similar host cellular receptors roughly correlate with taxonomy.", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "ukey9p", "question": "Correct any assumptions I may have made, but I have read about how allergies can come from repeated exposures to something. For example, I've read the story about how cockroach researchers eventually become allergic to them, and in turn have an allergy to instant coffee.\n\n\n\nHow come we aren't allergic to things we experience everyday in our lives? I eat wheat almost everyday, will I eventually get to the point where I die if I walk past a bakery? Will all pet owners become allergic to their pets? Will youngsters all develop an allergy to AXE bodyspray? Will someone eventually become allergic to a medication that they take chronically?", "comment": "Allergies are due to your immune system misidentifying one protein as a similar protein. So repeat exposure increases the risk of this part happening. Once this happens, your body creates antibodies that will flag those proteins for histamine attack the next time they\u2019re seen.\n\nUsually our immune systems are good at proper identification, but some genetic traits as well as look a like proteins make certain allergies more likely.", "upvote_ratio": 1570.0, "sub": "AskScience"} +{"thread_id": "ukey9p", "question": "Correct any assumptions I may have made, but I have read about how allergies can come from repeated exposures to something. For example, I've read the story about how cockroach researchers eventually become allergic to them, and in turn have an allergy to instant coffee.\n\n\n\nHow come we aren't allergic to things we experience everyday in our lives? I eat wheat almost everyday, will I eventually get to the point where I die if I walk past a bakery? Will all pet owners become allergic to their pets? Will youngsters all develop an allergy to AXE bodyspray? Will someone eventually become allergic to a medication that they take chronically?", "comment": "While it is true that repeated exposure can cause allergies, it is also true that repeated exposures can cause immune tolerance. It depends on the context of the exposure. That is why vaccines contain an adjuvant. An adjuvant is a substance that stimulates an immune response. Because of the ensuing immune response against the adjuvant, anything mixed in with the adjuvant also get mixed into the immune response.\n\nIf a \"clean\" protein is given without adjuvant, it often fails to illicit an immune response. This is something called the \"immunologist's dirty little secret.\"\n\nIn other words, context and dose matter. Large doses of a \"clean\" protein can be used to induce tolerance or anergy which is the theory behind \"allergy shots.\"", "upvote_ratio": 1190.0, "sub": "AskScience"} +{"thread_id": "ukey9p", "question": "Correct any assumptions I may have made, but I have read about how allergies can come from repeated exposures to something. For example, I've read the story about how cockroach researchers eventually become allergic to them, and in turn have an allergy to instant coffee.\n\n\n\nHow come we aren't allergic to things we experience everyday in our lives? I eat wheat almost everyday, will I eventually get to the point where I die if I walk past a bakery? Will all pet owners become allergic to their pets? Will youngsters all develop an allergy to AXE bodyspray? Will someone eventually become allergic to a medication that they take chronically?", "comment": "Allergies come from your immune system mistaking something harmless for another thing that is actually bad, and attacking it scorched-earth style with the rest of you as collateral damage.\n\nThere's a few ways this can happen. You can have a genetic abnormality that causes your immune system to make the mistake the first time it sees something that should be harmless, and keep making that mistake forever.\n\nOr, your immune system can be just fine with that thing for awhile, but then it makes a mistake when it encounters that thing again years later and starts identifying it as the bad thing instead.\n\nAnd to make matters more complicated, sometimes your body can mistake something as bad, but through encountering it enough times and realizing it didn't actually kill you, learn that it made a mistake and stop doing it.\n\nThere's a reason that immunologists need so many years of school and get paid so much. Stuff's complicated.", "upvote_ratio": 330.0, "sub": "AskScience"} +{"thread_id": "ukg99v", "question": "How prevalent were harder drugs (Cocaine, heroin etc.) back in your day?", "comment": "Had my first taste of coke in \u201872 and loved it and by \u201874 I was buying ozs of it, @$2K per, from a NJ State cop who stole it from the evidence locker and it was awesome stuff but by \u201875 I realized I had a massive coke problem and stopped using it for good. Heroin was everywhere then too, but luckily I never used it.", "upvote_ratio": 190.0, "sub": "AskOldPeople"} +{"thread_id": "ukg99v", "question": "How prevalent were harder drugs (Cocaine, heroin etc.) back in your day?", "comment": "If you worked in the restaurant business in the '80s, you could count on some of your coworkers being dealers. Usually it was just to pay for their own stuff, which was kind of reassuring since it meant they had already tried out any batch they were selling.\n\nThe coke-addict restaurant manager who screamed at the staff wasn't just a trope, it was truth. I worked at one place where the manager liked to do lines on the framed liquor license with his buddies after closing. I would find the license lying on the bar in the morning with residue still on it.\n\nIt wouldn't surprise me if restaurants are still that way today.", "upvote_ratio": 150.0, "sub": "AskOldPeople"} +{"thread_id": "ukg99v", "question": "How prevalent were harder drugs (Cocaine, heroin etc.) back in your day?", "comment": "Coke was very common in the 80s. This was before people understood how addictive it was. I did it for a little while when it was around, but then swore off of it. Someone was always coming up to you with a little spoon in their hand. Personally, I hated it. It turned people into assholes pretty quickly. \n\nHeroin was not nearly as common. I don't personally know anyone that used it.", "upvote_ratio": 100.0, "sub": "AskOldPeople"} +{"thread_id": "ukgudl", "question": "Evushield: how does it work and why isn't it called a vaccine?", "comment": "Evushield is a combination of two different antibodies against the virus that causes COVID-19. These antibodies stem from people who were recovering from COVID - that is, they were infected and their immune systems produced these antibodies. These antibodies, once identified, are replicated as \u201cmonoclonal antibodies\u201d. (Vastly simplified, white blood cells that produce the specific antibody are cloned and used to produce lots of the specific antibody which can then be purified and given to people.)\n\nOnce administered to someone, these antibodies behave as though the patient\u2019s own immune system produced them, and provide a defense against the infection.\n\nVaccines are quite different - they are not antibodies, but are a means of convincing the patient\u2019s immune system that an infection has occurred, so that the immune system will produce antibodies.\n\nPatients with compromised immune systems often cannot generate enough of their own antibodies and so vaccines are much less effective for them \u2014 but giving them actual antibodies can work well for a certain timespan.", "upvote_ratio": 220.0, "sub": "AskScience"} +{"thread_id": "ukgudl", "question": "Evushield: how does it work and why isn't it called a vaccine?", "comment": "Evusheld is a pair of long-acting monoclonal antibodies (meaning roughly, antibodies mass produced by a line of cloned cells in a lab). Monoclonal antibodies can be sourced from various types of cells; these two are produced in clones of human cells donated by people who had previously had COVID-19. Therefore they are very similar to the ones your body WOULD make after being vaccinated. They work by binding to the distinctive \"spike protein\" on the SARS-Cov-2 , marking it as a dangerous intruder and prompting your immune system to attack it. It is very similar to the antibody response your body WOULD make after being vaccinated, thereby assisting your immune system in fighting off the virus even if your immune system didn't respond well to the vaccine or if you were unable to be vaccinated for whatever reason. \n\nIt is not considered a vaccine because it does not prompt your body to produce its own antibodies. It is a timed-release drug: you get an injection of a large amount of medicine into tissue where it will take several weeks for all of it to be distributed from that location throughout the body. But when they run out, they are gone, and your immune system has not learned to make them on its own. Think of Evusheld as being more like buying oranges from the grocery store, while getting a vaccine is more like planting an orange tree at your house.\n\nFor a much more technical and detailed explanation, [click here](https://www.evusheld.com/en/hcp) and say \"yes\" that you are a healthcare provider (nobody checks)", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "ukhxs7", "question": "So while we haven't discovered any life native to Mars, are there microorganisms that live on our planet that could survive on Mars?", "comment": "NASA did some studies where they sent stuff up into the upper atmosphere and simulated the conditions on Mars, and some of the spores survived. So they believe that there are some microbes on earth that could survive at least temporarily on Mars.\n\nHowever, we haven't found any living organisms on earth that would probably thrive and reproduce successfully on Mars.\n\nThere are a few issues such a lifeform would have to deal with: Higher radiation, cold temperatures, very low pressure and oxygen, and a good bit less sunlight.", "upvote_ratio": 290.0, "sub": "AskScience"} +{"thread_id": "ukj9av", "question": "Trying to understand the societal stigma", "comment": "Here in the US, the original impetus was fashion driven. It began in the 1920's when sleeveless dresses first came into vogue.\n\nThe hippy movement in the 1960's essentially rejected the notion that leg and armpit shaving was a necessity for women.\n\nIt's my understanding that many European women do not shave their pits or legs nor was it ever commonplace for them to do so.\n\nIt's essentially an artificial social construct.\n\n\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\\_\n\nI know you didn't ask but one of the interesting aspects of aging for my 68 year old wife (which I assume may be hormonal) has been that the hairs on her legs and armpits has grown much thinner and less apparent over time. She's got much less to shave these days than she once did.", "upvote_ratio": 1120.0, "sub": "AskOldPeople"} +{"thread_id": "ukj9av", "question": "Trying to understand the societal stigma", "comment": "Most of the body hair shaming came out of the razor industry. Gotta sell more blades!", "upvote_ratio": 800.0, "sub": "AskOldPeople"} +{"thread_id": "ukj9av", "question": "Trying to understand the societal stigma", "comment": "Lol - a lot of women don\u2019t shave in Europe and the rest of the world. Why should they?", "upvote_ratio": 490.0, "sub": "AskOldPeople"} +{"thread_id": "ukl0no", "question": "Throughout random readings I\u2019ve found that the Appalachians used to be larger than the Himalayas. Are there any new ranges currently forming and will any range formed ever be as large as the Appalachians considering tectonic plate movement is gradually slowing?", "comment": "The Himalaya are still forming as the Indian subcontinent continues to move north in collision with the Eurasian plate.\n\nThere is (relatively recently initiated) subduction in Southeast Asia as well, as part of the same collision currently building the Himalayas.", "upvote_ratio": 350.0, "sub": "AskScience"} +{"thread_id": "ukl0no", "question": "Throughout random readings I\u2019ve found that the Appalachians used to be larger than the Himalayas. Are there any new ranges currently forming and will any range formed ever be as large as the Appalachians considering tectonic plate movement is gradually slowing?", "comment": "There are several competing models for the future motion of continents. We're pretty confident Africa is going to continue North into Europe, which will probably close the Mediterranean and form a more continuous range across it. If East Africa rifts away from the rest of Africa, it may swing up to the north and collide with India, forming a long mountain range there, but geologists disagree on whether it will ultimately rift away.\n\nIn the far future, we generally expect a new supercontinent to form in something like 2-300 million years, but there's a handful of different models for what that will ultimately look like.\n\n> tectonic plate movement is gradually slowing\n\nThat's not clear. Some studies seem to suggest it's actually been speeding up; the data is too patchy to be sure. But either way it won't change significantly on these timescales. We also can't really be sure exactly how high any past mountain ranges are, so we can't really make these sorts of direct comparisons.", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "ukl0no", "question": "Throughout random readings I\u2019ve found that the Appalachians used to be larger than the Himalayas. Are there any new ranges currently forming and will any range formed ever be as large as the Appalachians considering tectonic plate movement is gradually slowing?", "comment": "I've peppered the other responses that were here with this, but for the sake of completeness, **this question is fundamentally unanswerable beyond vague generalization**. As touched on by /u/loki130 in their answer (and discussed in some detail in one of our [FAQs](https://www.reddit.com/r/askscience/wiki/planetary_sciences/future_continents)), projections of future plate configurations are uncertain, so even defining *where* there might be new mountains forming in the geologic future is problematic. Even if we did know where, i.e., the plate configurations were certain, we would not have any basis with which to accurately project the rate of plate motion (which controls the rate of convergence between the plates and influences the rates of rock uplift and topographic growth), the geometry of main structures that would develop (which control how a given rate of horizontal convergence is translated into vertical motion growing topography), or the climatic context of the range that would form (which controls the details of erosional process and will ultimately dictate what the *equilibrium* height of the range is, i.e., how steep and tall does the topography need to be to balance rock uplift). And those are the main things that we might be able to make vague generalizations about, there a whole host of \"what ifs\" that could dramatically influence the topographic evolution that we would have basically zero way of predicting for a hypothetical future collision, e.g., will there be slab detachment? will there be crustal delamination? when might these occur in the lifespan of the range? etc etc. The extreme challenge of all of these pieces working together and reconstructing enough of them to work out details of past mountain range geometry/topography is bad enough (and well described by [van Hinsbergen & Boschman, 2019](https://www.science.org/doi/10.1126/science.aaw7705)), but the problem is compounded for future projections (where by definition, we have no records, only extrapolation).", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "ukledy", "question": "Why does the cost of left and right move is 1 but the the cost of up and down moves is 2.\n\n[https://imgur.com/a/oQV9AII](https://imgur.com/a/oQV9AII)", "comment": "I don't know, at a glance, what heuristic they're using. There are a few popular ones. Eg: [Solving the 8-Puzzle using\nA* Heuristic Search](https://cse.iitk.ac.in/users/cs365/2009/ppt/13jan_Aman.pdf).\n\nThe \"1\" and \"2\" numbers might be talking about the relative scores between choices, not the overal \"score of the board\", which is the usual scoring used.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ukllyj", "question": "As a young person, the world seems so heavy anymore and the future looks so dark. I know we\u2019re not the first group of people to live through difficult times, but I can\u2019t ever recall feeling so hopeless. \n\nI keep seeing suicides increasing around me and yesterday I had multiple conversations with my friends where we were all crying. \ud83e\udd72\n\nIs there hope? What advice do you have?", "comment": "Public Policy Analysis is my profession.\n\nI have a hard truth you need to learn to accept...\n\nThe world is fine.\n\nThe future is very bright.\n\nFear mongers sell fear because people buy it, that's all.\n\n Is there shit going on? Sure. There's always shit going on. Same old same old.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "ukllyj", "question": "As a young person, the world seems so heavy anymore and the future looks so dark. I know we\u2019re not the first group of people to live through difficult times, but I can\u2019t ever recall feeling so hopeless. \n\nI keep seeing suicides increasing around me and yesterday I had multiple conversations with my friends where we were all crying. \ud83e\udd72\n\nIs there hope? What advice do you have?", "comment": "There's always hope. Things do seem totally f-ed. I never thought that my generation (X) would have to step up. We were promised 'the end of history' - like in a good way. That hasn't panned out. Things will be different than what we wished, how could it be otherwise? No one knows the future.\n\nI think that it helps to take action of some kind, whether that's doing something kind for yourself (therapy or self care) or political, or in your community or family.\n\nFoster personal connection. Lean on your friends and let them lean on you.\n\nAlso have things to look forward to: small or big trips, events, people you'll see, chances to play or do good work. \n\nGet perspective. Most of history was deeply horrible for many people. It's being not-horrible that's odd. Black death, anyone? It may not be what you thought it would be, but you can only start from where you are. \n\nGet your self-talk turned around. You can do it. Today can be good. Nothing is promised, do it now. \n\n(Btw, I don't have it together. These are just the things I tell myself when I'm down.)", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "ukllyj", "question": "As a young person, the world seems so heavy anymore and the future looks so dark. I know we\u2019re not the first group of people to live through difficult times, but I can\u2019t ever recall feeling so hopeless. \n\nI keep seeing suicides increasing around me and yesterday I had multiple conversations with my friends where we were all crying. \ud83e\udd72\n\nIs there hope? What advice do you have?", "comment": "There is always horror and there is always hope. Imagine the Jewish people who lived through the Holocaust- there must have been many who chose suicide, or simply gave up.But there were many more who insisted on living despite the best efforts to kill them all. That was a dark time. \n\nThis is a dark time too, but for different reasons. It might seem that there is no hope for the world. But that\u2019s a dark lens to be looking through and it robs you of the will to fight. Look for even the small things that give you hope or comfort and find ways to amplify them. Horror and hope, it\u2019s there all around us. We get to choose which we grasp.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "ukoeuy", "question": "Hi all. I really struggle understanding programming, because there's so much vocabulary, and I get really frustrated with how redundant and contrived some of it seems to me. I'm a smart guy, but I have no patience when someone starts \"speaking\" a programming language to explain a programming concept.\n\nRight now, I'm trying to understand why a string literal, literally the string of characters, is not just called a \"string\". So far, the answers I've found are \"it's Java\" and \"it's the data in the variable\", and it's \"the initialized variable\"... Which to me, just sounds like \"it's the string\", \"it's THIS string\" and \"it's irrelevant and I shouldn't have mentioned it\"\n\nIs there any actual reason to call something a literal, specifically in the context of python? Or is it just a synonym for the actual string/integer/whatever in question? Is the string literal, literally the string, and if so, who decided that? Does Merriam Webster know about this?", "comment": "If you were to write:\n\n String A = \"my string\";\n\nThat's using a literal to assign to A\n\nIf you then wrote:\n\n String B = A;\n\nYou are no longer using any string literals. A string literal is a piece of syntax. You would never refer to a variable as a string *literal*, only text enclosed in quotation marks is a string literal.", "upvote_ratio": 160.0, "sub": "AskComputerScience"} +{"thread_id": "ukoeuy", "question": "Hi all. I really struggle understanding programming, because there's so much vocabulary, and I get really frustrated with how redundant and contrived some of it seems to me. I'm a smart guy, but I have no patience when someone starts \"speaking\" a programming language to explain a programming concept.\n\nRight now, I'm trying to understand why a string literal, literally the string of characters, is not just called a \"string\". So far, the answers I've found are \"it's Java\" and \"it's the data in the variable\", and it's \"the initialized variable\"... Which to me, just sounds like \"it's the string\", \"it's THIS string\" and \"it's irrelevant and I shouldn't have mentioned it\"\n\nIs there any actual reason to call something a literal, specifically in the context of python? Or is it just a synonym for the actual string/integer/whatever in question? Is the string literal, literally the string, and if so, who decided that? Does Merriam Webster know about this?", "comment": "A \"string literal\" is something that occurs in your *source code*, marked by quotation marks. It's distinct from the string *object* that exists when your program is running. String literals are one way to create strings, but not the only way.\n\nIf you say:\n\n s = \"abc\"\n\nthen the string literal `\"abc\"` in your source code tells the Python runtime environment to create a string object whose data consists of the characters `a`, `b` and `c`. And the variable *s* refers to that string object.\n\nBut if you do this:\n\n s = str(5*5)\n\nyou will get a string whose data contains the characters `2` and `5`, even though there is no string literal `\"25\"` in your program.\n\nThere are other kinds of literals, too. For instance, when you write an integer value in your code, you're actually writing an integer literal. But the decimal literal `25`, the hexadecimal literal `0x19` and the binary literal `0b11001` are all ways to describe the same integer value. (Or to put it differently, they all *evaluate to* integer objects with the same value.)", "upvote_ratio": 130.0, "sub": "AskComputerScience"} +{"thread_id": "ukoeuy", "question": "Hi all. I really struggle understanding programming, because there's so much vocabulary, and I get really frustrated with how redundant and contrived some of it seems to me. I'm a smart guy, but I have no patience when someone starts \"speaking\" a programming language to explain a programming concept.\n\nRight now, I'm trying to understand why a string literal, literally the string of characters, is not just called a \"string\". So far, the answers I've found are \"it's Java\" and \"it's the data in the variable\", and it's \"the initialized variable\"... Which to me, just sounds like \"it's the string\", \"it's THIS string\" and \"it's irrelevant and I shouldn't have mentioned it\"\n\nIs there any actual reason to call something a literal, specifically in the context of python? Or is it just a synonym for the actual string/integer/whatever in question? Is the string literal, literally the string, and if so, who decided that? Does Merriam Webster know about this?", "comment": "I share your frustration with things that seem redundant and contrived. A lot of things in CS seem that way at first, but very few actually are. The vast majority of CS was codified by quite thoughtful, clever people, many of whom had a formal math background. This means they were used to defining things very narrowly and carefully.\n\nIn your case, a string is a complex data type, an object, which holds an ordered list of characters along with some metadata and associated functions. If you define that list of characters in the source code literally, i.e. if you write \"this is a string\", that is the contents of the string object at runtime too, and it doesn't change. If you reserve a variable name for a string whose contents is unknown at the time of writing but will be determined at runtime (i.e. user input, network data, etc), you can use the contents of said variable as a string in your code even though you do not know the value it will eventually hold - it is a string but not a literal.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ukp3eb", "question": "What is the difference between these waves that allows something like a camera to work or not work?", "comment": "[removed]", "upvote_ratio": 9380.0, "sub": "AskScience"} +{"thread_id": "ukp3eb", "question": "What is the difference between these waves that allows something like a camera to work or not work?", "comment": "Some pretty poor answers, so I'm obliged to post a reply.\n\nTheoretically, there is no reason why we cannot build antenna for optical wavelengths and camera for radio wavelengths, and there are examples\n\nAlso, note that antenna and camera are devices that are designed to do different things - so you are not exactly comparing 2 equivalent devices. \n\nA camera is designed to do imaging - the output is a map of intensities vs. angular positions (or a 'movie' if you take data over time). In a camera, there is usually an 'optical element', such as a lens (or a system of lenses), a curved mirror (or a set of mirrors and lenses), or a simple aperture, that maps incoming light wave from 1 direction to excite only 1 detector element among an array of detector elements. This array of detector element can be either an array of solid state detectors - analog pin diodes, CCD (Charge Coupled Devices), CMOS detectors - or a thin film of photo-sensitive emulsion layer (aka photographic film).\n\nAn antenna is designed to detect intensity from all directions combined (although not all directions are given the same weight, depending on the antenna geometry) over time. An antenna is basically a detector sitting out in the open without any optical element.\n\nOptical antenna does exist. When you push a button on an IR remote control for you flat panel TV, the signal is picked up by an optical 'antenna'.\n\nThe closest thing to a radio camera is a radio telescope. Here, an optical element 'high gain antenna' which is a curved reflector that selects radio wave incoming from 1 angular direction, and feeds it to an antenna, and then you swing around the entire assembly to generate a map of intensities vs. angular position. Think of this as a one pixel camera.\n\nSource: PhD in optoelectronics", "upvote_ratio": 4100.0, "sub": "AskScience"} +{"thread_id": "ukp3eb", "question": "What is the difference between these waves that allows something like a camera to work or not work?", "comment": "The energy they contain is the difference. Radio waves are very weak when compared to visible light or UV. The antenna gives a bigger surface area and also is useful because the wave length of the radio waves is very big for a small receiver like a camera to capture. In simple words its due to the wave length that we need a different kind of setups for every other form of radiation IR needs a specific set of lasers and UV needs a filter to differentiate it from the visible light etc. The longer the wavelength the bigger your sensors have to be. Radio waves has the biggest wavelength so we need a highly sensitive antenna which is at least one quarter wavelength wide or high.\n\nEdit : someone in comments corrected a error.\nEdit 2: I had another error corrected by someone.", "upvote_ratio": 480.0, "sub": "AskScience"} +{"thread_id": "ukpc15", "question": "I'm studying ichthyosaur fins for my university dissertation, and I'm looking at polyphalangy (defined as phalanges branching from digits) and hyperphalangy (additional phalanges added linearly onto digits) (see this image from Fedak and Hall, 2004 [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1571266/figure/fig01/](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1571266/figure/fig01/)).\n\nObviously there's polydactyly in humans, with extra fingers, but I was wondering if there's 'hyperdactyly', with more than 3 phalanges in a finger? I'd imagine that if both conditions occur in ancient organisms then they could also occur in humans?\n\nedit: terminology", "comment": "Yes! [There have been rare cases of hyperphalangy in humans ](https://onlinelibrary.wiley.com/doi/abs/10.1002/ajmg.1320460215), also sometimes referred to as having \u201csupernumerary phalanges\u201d. [In hyperphalangy associated with Brachydactyly Type C,](https://rarediseases.org/gard-rare-disease/brachydactyly-type-c/) the bones of the index and/or middle finger are shorter, but sometimes one is duplicated. In cases of Catel-Manzke syndrome, there can be a host of other skeletal defects, but also sometimes a single extra duplicated phalange in the index finger. And there is a condition called [triphalangial thumb](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6297898/) where the thumb has three phalanges instead of two.\n\nNone of these have much in common with the hyperphalangy of whales, ichthyosaurs or plesiosaurs\u2026where there are many, many extra phalanges. (Actually whales are a little more constrained than the reptiles but still.) Human hyperphalangy is nearly always limited to a single extra phalange in one or two digits.", "upvote_ratio": 150.0, "sub": "AskScience"} +{"thread_id": "ukpoiq", "question": "Are there any examples of a species disappearing from the fossil record because of a predator species being so successful in hunting it? (Other than extinctions humans have caused?)", "comment": "Fossilization is actually a pretty rare phenomenon. Only a tiny fraction of all living beings get trapped as fossils. That make it pretty difficult to make the types of conclusions you are asking about using the fossil record.", "upvote_ratio": 330.0, "sub": "AskScience"} +{"thread_id": "ukpoiq", "question": "Are there any examples of a species disappearing from the fossil record because of a predator species being so successful in hunting it? (Other than extinctions humans have caused?)", "comment": "Here\u2019s a paper suggesting that gnathostomes (jawed fish) heavily predated on agnathostomes (jawless fish), contributing to extinction of ostracoderms (armoured jawless fish) in the Upper Devonian (around 372MYA) \n\nBite marks and predation of fossil jawless fish during the rise of jawed vertebrates\n\nhttps://royalsocietypublishing.org/doi/10.1098/rspb.2019.1596", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "ukpoiq", "question": "Are there any examples of a species disappearing from the fossil record because of a predator species being so successful in hunting it? (Other than extinctions humans have caused?)", "comment": "this indubitably happens often, if a generalist predator hunts 2 prey animals, one that can cope with the hunting and another that cannot, the one that cannot will go extinct/disappear from the area because even if their numbers decrease the predators won't become more rare. the smaller the area and the lower the population the more likely this would be. any animals that develop on islands usually meet this fate when introduced to species from the mainland. \n\nI can't recall exactly where but certain giant bugs that evolved on island cannot handle rats that were introduced there for example, so they are probably going to go extinct once we stop protecting them. \n\nspecies that co-evolved as the hunter and the prey are much less likely to have this happen to them, for example when there are many lynx the number of rabbits decreases dramatically, but when they run out of food the lynx start dying en-masse allowing rabbit populations to skyrocket, making the lynx population rise back up soon after over and over again.", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "ukqpkp", "question": "For example, dogs experience nausea and it is often indicated by drooling and excessive swallowing, and anti-emetic medications work for dogs. But outside of observed behaviors, do scientists have other ways of knowing whether nausea is something that all mammals experience? Could it be determined by studying mammalian brains?", "comment": "Nausea is a subjective experience of a physiological phenomenon. It's qualia rather than an objective, measurable state. We can definitely say that animals experience the physiological indicators of nausea but whether they experience nausea as a subjective, conscious thing is an extremely difficult and perhaps impossible question to answer.\n\nIt's like pain vs nociception.", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "ukqti1", "question": "Are there foods that actually are superfoods? I mean, are there any foods out there that extremely effect your body from just one eat?", "comment": "Superfood :\n\n>The term has no official definition by regulatory authorities in major consumer markets, such as the United States Food and Drug Administration and Department of Agriculture or the European Food Safety Authority. It appears to have been first used in a Canadian newspaper in 1949 when referring to the supposed nutritional qualities of a muffin.\n\nalso:\n\n>According to Cancer Research UK, \"the term 'superfood' is really just a marketing tool, with little scientific basis to it\".\n\nIt is generally accepted that diet and dietetics should be approached in the form of a nutrition plan and not a list of foods. It is important to favour a varied diet and to cook unprocessed food, stuffing yourself with \"super food\" will only have an effect on your wallet.", "upvote_ratio": 27250.0, "sub": "AskScience"} +{"thread_id": "ukqti1", "question": "Are there foods that actually are superfoods? I mean, are there any foods out there that extremely effect your body from just one eat?", "comment": "[removed]", "upvote_ratio": 12130.0, "sub": "AskScience"} +{"thread_id": "ukqti1", "question": "Are there foods that actually are superfoods? I mean, are there any foods out there that extremely effect your body from just one eat?", "comment": "> Are there foods that actually are superfoods? \n\nNo, \"superfood\" is a marketing term, it has no unofficial or official definition and is just being used to try to sell things to you. \n\nThe term 'superfood\" is being applied to foods that are claimed to be better for you and healthier if consumed in moderate amounts over a lifetime. Problem is, almost ALL natural foods (excluding highly processed products) can be superfoods in a way, a widely varied diet that's made up mostly (but not exclusively) of good quality vegetables and fruits (of all colors), lower glycemic index starches like whole grains and beans, oily fish, nuts, eggs, fermented foods, and small amounts of lean meats, definitely has health benefits. However, no food is a \"superfood\" in the sense that if you ate just that one food, or ate large amounts of it every day to the exclusion of other types of food, you would be healthier or live longer than someone with a more moderate, varied diet. \n\n>I mean, are there any foods out there that extremely effect your body from just one eat?\n\nWater. Otherwise, no, not really.... unless your body is extremely deficient in one nutrient or another because of a lack of intake. Even then, it takes more than one serving, and more than a day or two, for your body to repair damage from a deficiency disorder. Scurvy or vitamin C deficiency for instance, takes a couple days of treatment to see any improvement at all, and takes weeks or months to cure.", "upvote_ratio": 4340.0, "sub": "AskScience"} +{"thread_id": "ukr4cx", "question": "How was your sex life in the 60s and the 70s?", "comment": "Non-existent. The 80s, however, are a different story.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uksg30", "question": "Curious if this is something not talked about as much when you\u2019re young \u2014 how many of you and your friends have virgin teeth? As opposed to dentures, veneers, crowns etc.", "comment": "My husband is 13 years younger than me and and he ended up with a complete set of false teeth last year at 45. \n\nI'm coming up on 59 this year and it looks like I'll be in the same boat in a few years. We really both lost the genetics lotteries in both of our families.\n\nIt's not just that though. Speaking for myself, I had years of jobs with no health care where I thought just brushing my teeth was enough. Each time I'd end up with good Dental Care, we'd play catch up with deep cleanings, more fillings and crowns over that were covered in my plans each year and so on. But eventually, you can't catch up any more and I wasn't able to make up for years of brushing but not flossing + genetics. Depression had it's hand in there as well.\n\nWhat ever age you are, but especially if you are young, make a commitment to start taking better care of your teeth. If you already do, keep it up!", "upvote_ratio": 640.0, "sub": "AskOldPeople"} +{"thread_id": "uksg30", "question": "Curious if this is something not talked about as much when you\u2019re young \u2014 how many of you and your friends have virgin teeth? As opposed to dentures, veneers, crowns etc.", "comment": "I won't tell you the story of my soft teeth and bad gums. It's been a horrible struggle, but at 78 I have full dentures that snap in for strength. At least the pain is finally gone.", "upvote_ratio": 350.0, "sub": "AskOldPeople"} +{"thread_id": "uksg30", "question": "Curious if this is something not talked about as much when you\u2019re young \u2014 how many of you and your friends have virgin teeth? As opposed to dentures, veneers, crowns etc.", "comment": "I had my first 2 crowns in my 20s. It's not just an age thing.", "upvote_ratio": 340.0, "sub": "AskOldPeople"} +{"thread_id": "ukt5rb", "question": "This is mostly regarding psychoactive substances, but it seems for most substances, the half-life is much longer than the duration you actually feel the drug's effects.\n\nTake ativan for example. It's half life seems to be around 12 hours, although apparently a better estimate is between 10 and 12 hours. Yet it does not seem to ease anxiety for nearly that long. Another example would be adderall. It's half life is over 12 hours, yet its effects last for around 6 hours.\n\nEven alcohol seems to be weird in this regard. It's half-life is 4-5 hours, but you're also able to process a drink in around an hour. If I had a drink and then waited an hour, I would blow a 0.0 BAC, but it would still be in my system?\n\nCan anyone clear this up for me? Is it that the drugs still have a psychoactive affect, but it is just no longer noticeable or what?", "comment": "The answer is that the processes involved are complicated. For oral drugs, absorption peaks some time after digestion, so there is not a simple decay, more of a peak followed by a drop off. In addition, the effect of most drugs are not linearly dependent on the concentration in the target tissue, because of saturation effects, among other complications. \n\n\nhttps://en.wikipedia.org/wiki/Bioavailability", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "ukt5rb", "question": "This is mostly regarding psychoactive substances, but it seems for most substances, the half-life is much longer than the duration you actually feel the drug's effects.\n\nTake ativan for example. It's half life seems to be around 12 hours, although apparently a better estimate is between 10 and 12 hours. Yet it does not seem to ease anxiety for nearly that long. Another example would be adderall. It's half life is over 12 hours, yet its effects last for around 6 hours.\n\nEven alcohol seems to be weird in this regard. It's half-life is 4-5 hours, but you're also able to process a drink in around an hour. If I had a drink and then waited an hour, I would blow a 0.0 BAC, but it would still be in my system?\n\nCan anyone clear this up for me? Is it that the drugs still have a psychoactive affect, but it is just no longer noticeable or what?", "comment": "There's a threshold concentration in the body needed for an effect to be observed.\n\nWhether or not that threshold is achieved, and for how long, depends on the size of the dose, the number of doses and the time between doses.\n\nThe half-life is just the amount of time it takes for half the drug to be cleared (assuming the kinetics meets certain conditions). It has no direct relationship to the effect of the drug. A well-designed dosing regimen ensures that the concentration of the drug stays above the required levels necessary to have an effect, even taking account the half-life.\n\n[This is a good illustration](https://www.cambridgemedchemconsulting.com/resources/ADME/halflife_files/repeated.png).", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "ukt5rb", "question": "This is mostly regarding psychoactive substances, but it seems for most substances, the half-life is much longer than the duration you actually feel the drug's effects.\n\nTake ativan for example. It's half life seems to be around 12 hours, although apparently a better estimate is between 10 and 12 hours. Yet it does not seem to ease anxiety for nearly that long. Another example would be adderall. It's half life is over 12 hours, yet its effects last for around 6 hours.\n\nEven alcohol seems to be weird in this regard. It's half-life is 4-5 hours, but you're also able to process a drink in around an hour. If I had a drink and then waited an hour, I would blow a 0.0 BAC, but it would still be in my system?\n\nCan anyone clear this up for me? Is it that the drugs still have a psychoactive affect, but it is just no longer noticeable or what?", "comment": "On my opinion, the key is distribution. Usually half life is expressed in a certain media (eg plasma, brain, whole organism, etc). That localization though may not be relevant to the effect the drug is supposed to do. Without specific knowledge about it, and taking your example (all data is not validated and given to exemplify the case) for alcohol:\n1. Ingestion. Assuming no metabolism yet.\n2. Absorption through GI tract. Assuming 100% bioavailability within 30 min. There will be a peak after 15 min.\n3. All the alcohol is in blood but it starts to distribute from t0 to brain, liver, etc.\n4. Brain is no good processing alcohol, so whatever fraction makes it, causes the effect to your conduct. What you really experience. After 1h, the effect is gone as either your receptors saturate (you'll only feel pressure in your arm for a couple of minutes, after that, you don't feel it anymore) or otherwise there is no more input from other sources. Keep drinking and you'll keep feeling drunk.\n5. Liver instead, keeps working hard at metabolizing alcohol, into substances such as fat, sugars, or other substances that will be excreted from the body.\n6. Some other tissues may accumulate more or less alcohol or their metabolites.\n7. Eventually, all alcohol is eliminated from the body.\nIn this case, half life could refer to the amount of time alcohol would be showing up in a blood test, or accumulation in the whole body (all organs).\nBoth cases are very different and can clearly illustrate how half life doesn't always correlate with effect.\nHope this helps.", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "uktxrb", "question": "I'm pretty new to programming. I've learned only Python yet and some Django too. I was thinking about starting to learn Rust but I don't know anything about... So can anyone tell me if I should learn it or not.. if yes, what type of things can I do with this language?..", "comment": "As you can imagine, this is a pretty common question. If you Google it, you'll probably get some reasonable stuff in the first page of results. I'll highlight an interesting posts taking the opposite angle, why you might _not_ want to learn Rust, written a well-known Rustacean: https://matklad.github.io/2020/09/20/why-not-rust.html", "upvote_ratio": 80.0, "sub": "LearnRust"} +{"thread_id": "uktxrb", "question": "I'm pretty new to programming. I've learned only Python yet and some Django too. I was thinking about starting to learn Rust but I don't know anything about... So can anyone tell me if I should learn it or not.. if yes, what type of things can I do with this language?..", "comment": "\\>> what type of things can I do with this language\n\nIn a nutshell: Rust tries to solve a problem that other languages tend to solve in a different way, but with downsides. Which is that its difficult to manage memory. Other languages like JS and Python solve this by completely taking this problem off your hands by using a garbage collector. the downside is that those languages have a tendency to be slower.\n\nBut note that this downside is not always a problem. Usually it isn't. \n\nSo if you're looking for a language that can be very fast, and also helps you to avoid very complicated bugs, then rust is great. \n\nDo note that it really helps if you know other languages first. So maybe dont start out with Rust.\n\nIts also a nice language in general, albeit with a steep learning curve. But once you get it, it kinda clicks very nicely.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "uktxrb", "question": "I'm pretty new to programming. I've learned only Python yet and some Django too. I was thinking about starting to learn Rust but I don't know anything about... So can anyone tell me if I should learn it or not.. if yes, what type of things can I do with this language?..", "comment": "I wouldn\u2019t recommend learning rust for a beginner. I recommend keep going with more mature and higher-level languages such as python or JavaScript", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ukv31g", "question": "Can a region anywhere on earth possibly experience the worst climate in the next 5 or 10 years rather than in 50-70 years in this century? Or will climate change make it certain that the worst is going to happen only after 50 or so years?", "comment": "This is hard to answer with certainty. To understand why, we can do a little thought experiment, but it first requires that we think a bit about how we describe the statistics of \"extreme weather\". For our \"extreme weather\", let's specifically focus on rainfall. We generally expect rainfall (i.e., storm) events for a particular region to be characterized by a probability distribution. There are a few different distributions that have been used for rainfall, and specifically to describe the frequency of large events, but for this, we'll follow [Wilson & Toumi, 2005](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2005GL022465) and consider the [Weibull distribution](https://en.wikipedia.org/wiki/Weibull_distribution) (note that Wilson & Toumi discuss this as the stretched exponential, which is just the name given to the complementary cumulative distribution function of the Weibull distribution). In the context of the Weibull, there are two parameters that define a probability of an event, a scale parameter (which relates to the mean storm depth, i.e., the mean magnitude of rainfall events, typically considered in terms of daily means) and a shape parameter (which relates to the frequency of storms). Together, these define the probability of a particular magnitude of storm event occurring. Also of relevance is that largely we can consider the probability of rainfall events as time independent, meaning that the probability of a given magnitude event does not change as a function of the past history (i.e., if there is a 1% chance of a storm that produces 15 mm of rain in day and such a storm occurs, the probability of another storm producing 15 mm of rain is still 1% the next day).\n\nNow, bringing in climate change, generally for a given region, Wilson & Toumi argue that the variability of events (i.e., the shape parameter) for rainfall distributions are not likely to change, but that the mean depth (i.e., the scale parameter) will change. If we assume this is correct, because the scale changes though time, the magnitude of a given probability event will change, e.g., if the scale increases the magnitude of what was a rainfall event with a 2 year return period will increase. \n\nWhy does all this matter? If we think about assembling a hypothetical time series for the next 50 years assuming we knew how the scale parameter for a particular place would change, e.g., we knew in 50 years the scale parameter would go from 5 to 10 so we broke our future record into 5, 10 year long steps and at each step drew 10 years worth of random daily means based on the current shape parameter and future scale parameters and then assembled that into our \"record\". Now, over time, larger events (with respect to the modern) would become more common as the underlying distribution shifted to the right, but statistically within particular decade you were in with a fixed shape and scale the probability of extreme events would not be changing. Looking over the whole 50 year record though, the most likely outcome would be that you would see larger (i.e., more extreme) events further in the future specifically if you're considering them with reference to what constituted \"extreme\" at the beginning of the record. This would broadly suggest that the scenario you laid out (that there is more extreme weather in the next 10 years than in the following 40) would be unlikely. However, because we're considering these as time independent probabilities, there's nothing theoretically to preclude a scenario where an extremely low probability event (i.e., a very large event) occurs early in the record, which is not exceeded in the remainder of the 50 year record even with the shift in the mean. Importantly, this is focused just on rainfall (where the other types of events may have different changes in their probabilities), is ignoring a lot of complications (changes in seasonality, etc), and assuming that Wilson & Toumi's arguments about global trends hold locally (i.e., there might be areas where both the scale and shape parameter will change, which would complicate our thought experiment a bit), but highlights that dealing with stochastic processes like storms and making definitive statements about very detailed future trends is problematic (and also why tying a single, low probability event to climate change is challenging, but defining trends in changes in extreme events more broadly is possible).", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "ukvh8x", "question": "I recently learned how avocados are not true to seed plants and by that meaning planting them doesn't give you the same fruit.\n\nThis is very intriguing and strange. Aren't we all the product of our DNA. And isnt that DNA embedded within the seed?", "comment": "some species have male/female plants.\n\nthere you get a mix of genes from each parent, and so the offspring will be mixed.\n\nother plants can be hermaphraditic, or self-fertilizing (all the genes come from the same single parent.) So their offspring are more like clones (true to seed).\n\n\nim pretty sure thats pretty close to the deal....", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "ukwuee", "question": "There's likely to be a major interaction between our galaxy and the Andromeda Galaxy at some point. There are models showing what we expect to happen. Have we imaged anything that looks like galaxies interacting, or the remnants of that interaction? How closely do they resemble the models?", "comment": "We've seen plenty of interacting and merging galaxies - it happens quite frequently in the universe between all different shapes and sizes of galaxies - and they tend to somewhat resemble merging models (within reason) because the models tend to be based on observing these galaxies and trying to model how they behave: if the models didn't resemble the galaxies, they wouldn't be very good models..\n\nSome rather famous examples of merging galaxies include the whirlpool galaxy: [https://en.wikipedia.org/wiki/Whirlpool\\_Galaxy](https://en.wikipedia.org/wiki/Whirlpool_Galaxy)\n\nThe antennae galaxies: [https://en.wikipedia.org/wiki/Antennae\\_Galaxies](https://en.wikipedia.org/wiki/Antennae_Galaxies)\n\nAnd quite a few others: [https://en.wikipedia.org/wiki/Category:Interacting\\_galaxies](https://en.wikipedia.org/wiki/Category:Interacting_galaxies)\n\nNearly every galaxy in the universe has undergone quite a few large mergers at some point in its history, and we believe elliptical galaxies tend to be the end result of tons and tons of mergers over billions of years. Elliptical galaxies lack any clear structure, instead being a hazy roughly-ellipsoid cloud of stars on random, chaotic orbits. They also tend to lose most or all of their gas & dust, stunting new star formation and leaving mostly older, smaller stars.\n\nWe don't really have any exceptional ellipticals as close to us as Andromeda to reference, but many nearby galaxy groups do have massive elliptical galaxies in them, such as Messier 87 in the Virgo cluster: [https://en.wikipedia.org/wiki/Messier\\_87](https://en.wikipedia.org/wiki/Messier_87) \n\nAlthough this galaxy is way more massive than anything the Milky Way and Andromeda could form, it is a rough idea of what such a combined galaxy may end up looking like in the distant future, after the initial chaos of the merging galaxies settles down.", "upvote_ratio": 320.0, "sub": "AskScience"} +{"thread_id": "ukxkgu", "question": "And would this also increase volcanic activity on the side facing away from the star?", "comment": "If the planet is tidally locked then we are in a one sided equilibrium. The tidal force still exists but there is no spatio-temproal variation, that is, given a point in space on the planet the tidal force remains constant in time. So all that tides then do is act to adjust the equilibrium shape of the body.\n\nYou can be tidally locked and still have some tidal effects such as from precession due to a slight departure from a perfectly circular orbit (like occur for the Moon). However, these are negligibly small.", "upvote_ratio": 310.0, "sub": "AskScience"} +{"thread_id": "ukxkgu", "question": "And would this also increase volcanic activity on the side facing away from the star?", "comment": "What habitable zone do you think has to do with volcanic activity?\n\nAnyway, /u/dukesdj already answered to your question.\n\nIf you was thinking something about habitability, then I could add to that that tidally locked planets aren't best candidates, they probably don't have much water on the hot size, and they probably would have frozen oceans on the cold side, with only a small barely habitable strip of land along terminator line, but it probably would experience immense winds. I could speculate that it would probably be a cold winds, as denser cold air would travel closer to the ground from cold to hot side, heat up there, uprise and then travel back to the cold side at top of the troposphere.", "upvote_ratio": 70.0, "sub": "AskScience"} +{"thread_id": "ukxqb1", "question": "7/45 of the worlds biggest caves are in Georgia, including the top 4. Why is this? What is so special about the geology of such a small country that in contains such deep caves?", "comment": "Georgia has a lot of conditions that favor cave (karst) formation, mostly related to aspects of the formation of the Greater Caucasus mountains which dominate much of geography of the country. Specifically, there's a lot of limestone (because the rocks of the Greater Caucasus reflect a marine basin that was closed and deformed), it's very wet (in part because the Caucasus interact with the Westerlies to concentrate a significant amount of precipitation to fall on their southwestern side, i.e., Georgia), there's a lot of groundwater (again, likely in part related to the humid conditions, plus a lot of conduits for fluid flow via faults related to the formation of the Greater Caucasus), there's active magmatism which provides a lot of dissolved gases which can help react with carbonates plus active hydrothermal systems (again likely related to the Greater Caucasus, but the exact origin of the magmatism in this region remains a bit elusive), and their is a lot of relief (where the \"erosional base level\" and changes in it can influence the depth of cave systems that develop). Karst geology is not my specialty (the geology of the Caucasus is though), but based on a basic understanding of karst processes (e.g., [Ford & Williams, 2007](https://onlinelibrary.wiley.com/doi/book/10.1002/9781118684986)), all of the factors above would contribute (at least in part) to making Georgia an ideal environment for making large karst systems. Maybe someone with more expertise in karst processes specifically can fill in some additional details.\n\n**EDIT:** For the variety of people responding with things about the US state of Georgia, both OP and I are talking about the country of [Georgia](https://en.wikipedia.org/wiki/Georgia_%28country%29).", "upvote_ratio": 22200.0, "sub": "AskScience"} +{"thread_id": "ukxqb1", "question": "7/45 of the worlds biggest caves are in Georgia, including the top 4. Why is this? What is so special about the geology of such a small country that in contains such deep caves?", "comment": "I remember a story of cavers exploring a previously unexplored cave in Georgia. As they were deep in the cave, they came across a chasm that seemed to go down forever. And what was even more surprising was that somebody had tied a rope that went to the chasm. As far as they knew, they were the first people there. So they started going down the chasm, and found a dead body hanging from the rope 1 kilometre down. There was about 1 more kilometre to go to the bottom.\n\nPreviously, on Reddit: https://www.reddit.com/r/todayilearned/comments/qjjp3s/til\\_about\\_the\\_veryovkina\\_cave\\_the\\_worlds\\_deepest/", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "ukxtkg", "question": "\u201cThe first article that I wrote for the elementary school newspaper was on the fall of Barcelona \\[in 1939\\],\u201d\n\n\u201cI haven\u2019t changed my opinion since, it\u2019s just gotten worse,\u201d\n\n\u201cwe\u2019re approaching the most dangerous point in human history\u2026 We are now facing the prospect of destruction of organised human life on Earth.\u201d\n\n\u201cBecause of Trump\u2019s fanaticism, the worshipful base of the Republican Party barely regards climate change as a serious problem. That\u2019s a death warrant to the species.\u201d\u00a0\n\n\u201cThere are plenty of young people who are appalled by the behaviour of the older generation, rightly, and are dedicated to trying to stop this madness before it consumes us all. Well, that\u2019s the hope for the future.\u201d\n\nMore here: [https://www.newstatesman.com/encounter/2022/04/noam-chomsky-were-approaching-the-most-dangerous-point-in-human-history](https://www.newstatesman.com/encounter/2022/04/noam-chomsky-were-approaching-the-most-dangerous-point-in-human-history)", "comment": "> There are plenty of young people who are appalled by the behaviour of the older generation\n\nThat could have been written in 1968 about the hippies (who are now the older generation). Nothing new here.", "upvote_ratio": 310.0, "sub": "AskOldPeople"} +{"thread_id": "ukxtkg", "question": "\u201cThe first article that I wrote for the elementary school newspaper was on the fall of Barcelona \\[in 1939\\],\u201d\n\n\u201cI haven\u2019t changed my opinion since, it\u2019s just gotten worse,\u201d\n\n\u201cwe\u2019re approaching the most dangerous point in human history\u2026 We are now facing the prospect of destruction of organised human life on Earth.\u201d\n\n\u201cBecause of Trump\u2019s fanaticism, the worshipful base of the Republican Party barely regards climate change as a serious problem. That\u2019s a death warrant to the species.\u201d\u00a0\n\n\u201cThere are plenty of young people who are appalled by the behaviour of the older generation, rightly, and are dedicated to trying to stop this madness before it consumes us all. Well, that\u2019s the hope for the future.\u201d\n\nMore here: [https://www.newstatesman.com/encounter/2022/04/noam-chomsky-were-approaching-the-most-dangerous-point-in-human-history](https://www.newstatesman.com/encounter/2022/04/noam-chomsky-were-approaching-the-most-dangerous-point-in-human-history)", "comment": "I mean yeah he\u2019s been saying this type shit forever so is this new or something?", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "ukxtkg", "question": "\u201cThe first article that I wrote for the elementary school newspaper was on the fall of Barcelona \\[in 1939\\],\u201d\n\n\u201cI haven\u2019t changed my opinion since, it\u2019s just gotten worse,\u201d\n\n\u201cwe\u2019re approaching the most dangerous point in human history\u2026 We are now facing the prospect of destruction of organised human life on Earth.\u201d\n\n\u201cBecause of Trump\u2019s fanaticism, the worshipful base of the Republican Party barely regards climate change as a serious problem. That\u2019s a death warrant to the species.\u201d\u00a0\n\n\u201cThere are plenty of young people who are appalled by the behaviour of the older generation, rightly, and are dedicated to trying to stop this madness before it consumes us all. Well, that\u2019s the hope for the future.\u201d\n\nMore here: [https://www.newstatesman.com/encounter/2022/04/noam-chomsky-were-approaching-the-most-dangerous-point-in-human-history](https://www.newstatesman.com/encounter/2022/04/noam-chomsky-were-approaching-the-most-dangerous-point-in-human-history)", "comment": "i do not think humans are able to solve all the problems that do arise. \n\nAnd I do not think Chomsky is the one who knows the best answers.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "uky99r", "question": "I studied that in Linux, user level threads are mapped 1:1 to kernel level threads, and threads have the same type of PCB that we are for processes. About Windows, what's the difference with Linux? I studied that Windows threads are mapped m:n with pools of worker threads. So:\n\n* Are the created threads just shown in the system process table (the table that contains all the pid and the pointers to the relative PCB in memory) like all the processes, or they aren't? If not, where are they stored? How can the scheduler decide if they are not in the system process table?\n* Since when I start a simple process, it is itself a thread (I can check it via ps command, and on Windows it should be the same), what's the difference between them? Is there a difference on how the system (Linux or Windows) *see* them? Or are they the same thing but the the \"non-main\" threads(the ones created within the process) share the same virtual address space with the main-thread(the process that created them)?\n* How are threads told to access only certain things, if they have the same \"block map table\" in the PCB since they have the same virtual address space (and thus could in theory access everything)? Who sets and sees the constraints? Where are these constraints written?\n* Does pthread library simply provides API that will create a kernel level thread starting from a user level thread(so 1:1 mapping), setting the relative priority(I can do it via pthread, but I don't know how this scheduling priority is handled) of the kernel level thread that will be seen by the kernel in scheduling act? Or maybe EVERY time the kernel level thread corresponding to one of my user level threads is scheduled, pthread MUST act as middleman and then there is this forced \"bridge\" and this overhead maybe because pthread library can manage scheduling things (again like I said before, when I start a thread with pthread, I can set some scheduling priority in my threads) so maybe it can *dynamically* choose which of its (pthread's) user level thread to run, when any of the kernel level thread of its (pthread's) is scheduled?", "comment": "I don't know the details of how it works in Windows, but on Linux:\n\nBecause of the way threads were \"retrofitted\" onto the Linux kernel after it was originally designed, there's a bit of a mismatch in terminology between the way user-space tools talk about threads and the kernel's view. From the kernel's perspective, each thread has its own thread ID (TID), and also a TGID (thread group ID). For a single-threaded program, the TID and TGID are the same; for a multithreaded program, each thread has its own TID, and each thread's TGID is set to the TID of the main thread.\n\nFrom the perspective of userspace tools like `ps` and system calls like `getpid`, when they refer to a PID, they're usually actually talking about a TGID. For clarity, I'll use the kernel's terminology in the rest of this comment.\n\n> Are the created threads just shown in the system process table (the table that contains all the pid and the pointers to the relative PCB in memory) like all the processes, or they aren't?\n\nYes, from the scheduler's perspective, threads are just processes that happen to have the same TGID.\n\n> Is there a difference on how the system (Linux or Windows) see them?\n\nDepends on the context. In some cases, threads are independent; for instance, when the scheduler is choosing a thread to run, it doesn't need to care if it's a single-threaded process, or one thread among many with the same TGID.\n\nBut in other contexts, threads are treated as a group. As you mentioned, they share an address space, so that e.g. calling `mmap` in one thread is visible to the others. They also share a single file descriptor, and if one thread performs an action that would terminate the \"process\" (e.g. calling `exit`, `execve`, or receiving an unhandled signal) then all other threads are terminated as well.\n\n> How are threads told to access only certain things, if they have the same \"block map table\" in the PCB since they have the same virtual address space (and thus could in theory access everything)? Who sets and sees the constraints? \n\nFrom the kernel's perspective, there are no \"constraints\". Threads share the same virtual address space, so in principle nothing stops them from clobbering each other's memory.\n\nWithin a program, you can \"tell\" a thread to only access certain things in the same way you would \"tell\" a function what to do: by passing it arguments. Each thread has its own stack pointer register, so when you create a new thread you also allocate a region of memory to serve as its stack. And you can push arguments onto that stack, which the thread's main function will be able to access just as if it were called within the same thread.\n\nOnce the threads are running, they can also access each others' memory or global shared objects via pointers. Obviously, this has to be done very carefully if you don't want to end up with race conditions or other bugs.\n\n> Or maybe EVERY time the kernel level thread corresponding to one of my user level threads is scheduled, pthread MUST act as middleman \n\nNo, the pthread library doesn't do its own scheduling. Each user-level thread is its own kernel thread, and the kernel is responsible for scheduling them.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ukynrg", "question": "I've read IMMUNE from Kurzgesagt, and now I'm watching Breaking Bad. So I want to know how cancer can spread into your lymph node. Thanks!!", "comment": "The \u201chow\u201d is cancer is cells that have broken outside the control of the cell cycle, they have signals to make them grow/proliferate turned on and signals to stop growth turned off. Under ordinary circumstances cells from one part of your body would die in another part, but cancer cells can adapt to new conditions because they have turned off the things that would stop them. \n\nAs for the \u201cwhy\u201d lymph nodes you have to understand one of the jobs of the lymphatic system is to collect fluid/debris that have leaked into tissues, \u201cfilter\u201d it at the lymph nodes and release it back into the subclavian vein for recirculation. As cancer cells metastasize out from the tumor they can often end up in this \u201cdrainage system\u201d only unlike most pathogens they are your cells so the immune system doesn\u2019t \n destroy them as readily (although it can destroy them). From there the cancer will continue branching out and metastasizing until you get noticeable symptoms and go to the doctor.", "upvote_ratio": 150.0, "sub": "AskScience"} +{"thread_id": "ukzc2c", "question": "If in some species males also can be pregnant then what tell scientists that this one should be called male and other one female?", "comment": "Whichever one makes the bigger gamete (sex cell) is the female. Easy example is egg (big) vs sperm (small), but it's not always so clear. As you point out, it doesn't always correlate with pregnancy or dedication to the young.", "upvote_ratio": 230.0, "sub": "AskScience"} +{"thread_id": "ukzfir", "question": "I've recently reading about new advances in rocket propulsion technology. Leaving aside other considerations like ionizability, chemical stability, etc., why does either propulsion system prefer the \"opposite\" extreme of propellant molecular weight? From what I gather online, ion engines tend towards xenon, while the proposed nuclear thermal rockets in development generally adopt hydrogen. \n\nAm an engineer myself, so feel free to explain in depth. Thanks!", "comment": "The short answer is that lower molecular weight result in higher Isp but lower thrust. For ion engines you can easily get too much Isp and too little thrust.\n\nI am going to assume you know what specific impulse means (Isp). Let me know if it's not the case.\n\nIn a rocket engine the power in the jet is something like:\n\n P = n * 1/2*m_dot*V^2\n\nwith n the efficiency of the engine, m\\_dot the propellant mass flow rate and V the exhaust velocity.\n\nYou can also rewrite this as\n\n P= 1/2*T*Isp/g\n\nwith `T` being the thrust (`=m_dot*V` from momentum), `Isp` the specific impulse and `g` gravitational acceleration on Earth (`Isp=V*g` from the definition). So for a fixed power (which is usually what you have) you get to trade between the thrust you get and how efficient you are with your propellant.\n\nIn most rocket engines you want to maximize your Isp to get the most efficient use of your propellant. You can rewrite the Isp as follow by introducing `M` the molar mass, `q_dot` the molar flux (mol/s) and `E` the energy per mol of propellant.\n\n P = 1/2 *M *q_dot * Isp^2 *g^2\n E = 1/2 *M * Isp^2 *g^2\n Isp= 1/g * sqrt(2*E/(M))\n\nFor thermal rockets (chemical or nuclear) the energy per mol is going to be limited by the temperature of your hot source. For an ideal gas you get the famous `E~3/2*k_b*T` and it's more or less always proportional to the temperature.\n\nSo if you want to increase your Isp you either increase the temperature or decrease the molecular weight `M`. Even you take very low molecular weight propellant like hydrogen and the highest melting point materials (\\~2500K) you still end up with a max Isp in the order of 1000 to 2000s before the nuclear fuel starts to become too fragile and melt.\n\nFor electrostatic ion thrusters the energy in each particles is just the potential energy from the voltage difference `V` between electrodes. So\n\n E= e*V*N_A\n\nAssuming that each particles as a single elementary charge `e`. So you end up with\n\n Isp= 1/g * sqrt(2*e*V*N_A/M)\n\nSo in this you have two things you can tweak, the acceleration voltage `V` and the molecular weight. At a fixed voltage going from Xenon (131.29 AMU) to hydrogen (1 AMU) would let you increase your Isp by a factor 11. That sounds amazing in principle. You would need so much less propellant! But if you look at the 2nd equation in the post you also end up having to either increase your power by 11 (which means a lot of mass) or decrease your thrust by that much. The issue is that the less thrust you get the more time if take to get to destination and you also have to use less optimal thrust windows.\n\nPlugging rough numbers: For a lot of reasons, some of them related to plasma stability and general efficiency you usually need the acceleration potential 200V or above. So your Isp end up with something in the order of 2000s for xenon. The system efficiency is around 50% so you end up with about 50 to 60 mN/kW. The big geostationary spacecraft have something like 15 to 20kW of solar panel installed and still take 4 months to get from GTO to GEO orbit. To give you an idea that is equivalent to 0 to 100km/h in about 3 days.\n\nOf course you can increase the size of the panels, but that adds mass and you end up with less mass available for your payload. Turns out that the sweet spot for most mission in terms of transit time and payload mass is for Isp around 1500 to 3000s.\n\nYou can actually write a modified \"rocket equation\" that includes mass of your power supply and `C` weight to power ratio of your power system. [It looks something like this](https://i.imgur.com/VoBgN2F.png). `V_e` is the exhaust velocity (`Isp*g`) and delta-T the transfer time.\n\nIf we found ways to make drastically lighter power source the balance would change and higher Isp would be interesting. In that case we could choose to go with lighter propellants. In theory there is nothing stopping use from making ion engines with Isp of 10,000 to 20,000s but they would have too low of a thrust to be really useful for much.", "upvote_ratio": 790.0, "sub": "AskScience"} +{"thread_id": "ul019c", "question": "There was a problem in which we were asked to compute the throughput of various window sizes. I noticed that, as we increase the window size, we get better throughput (because we have less and less idle time). My question is, then why can't we have an arbitrarily large window size? What is the disadvantage?\n\nThe question I'm referring to is this:\n\n>Consider an error-free 64-kbps satellite channel used to send 512-byte \ndata frames in one direction, with very short acknowledgments coming \nback the other way. \nWe know that the round trip time from earth to satellite is 540 msec. \nFind the throughput for window sizes 1, 7, 15, and 127. \n(Assume the processing time at the receiver side can be neglected.)", "comment": "A larger window size requires more memory on both participants in the connection, and implies a longer delay before the application sees any data.\n\nThe memory is self explanatory. If we blow the window size up to something preposterous like 1 GB, both participants need to store the last gigabyte of packets they\u2019ve sent, so if they get a re-send request they\u2019ll have that data cached and ready to go.\n\nSimilarly, if the window is 1 GB then we may wait to receive an entire gigabyte of packets before letting the other end know \u201chey we missed one\u201d, receiving the missing packet and re-ordering our buffer, and then delivering to the application. The network throughput is technically quite high, but the data observed by the application is extremely bursty.", "upvote_ratio": 80.0, "sub": "AskComputerScience"} +{"thread_id": "ul0bah", "question": "How do you view a 25 year old?", "comment": "Depends on their personality and interactions with society....that should be how a person is viewed....being a good human or a raging ass has no age limits or age ranges", "upvote_ratio": 170.0, "sub": "AskOldPeople"} +{"thread_id": "ul0bah", "question": "How do you view a 25 year old?", "comment": "[deleted]", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "ul0bah", "question": "How do you view a 25 year old?", "comment": "Binoculars?", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "ul3x3m", "question": "the title. I want to design a messaging system where the server rejects messages unless they are encrypted. but if they are, then the server passes the message to the client who then decrypts it privately.\n\nI'm pretty sure I remember reading that real cipher text should not be distinguishable from random data. But it wouldnt hurt to ask, perhaps someone has developed something like this recently, where a data payload is \"signed\" but instead of from a sender its signed as proof it is indeed encrypted if you knew the key. TIA", "comment": "Do you want to prove to the server that the sender knows a key and plaintext that encrypt into the ciphertext they have in front of them, or would it be enough for the sender to just tell the server \"I want to send this on to the recipient, and here's a piece of evidence you can use to prove to the recipient that I'm really the one who sent this thing in case the recipient complains you forwarded them garbage.\"", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ul525j", "question": "I took a Java beginners course my last semester, and have decided to major in computer science. But I felt so behind because I did not have any prior experience with programming. So I wanted to learn some Java over the summer break and familiarize myself. What website would you recommend for someone like me?", "comment": "Hackerrank.com is great for learning Java, as well as general problem solving, algorithms, and data structures in many different languages.\n\nIn general, what you are looking for are code challenges or coding competition websites. I think the UVA online judge is still online. One of the benefits of practicing your coding with these is that companies base their tech interview questions on these problems almost all the time. For better or worse, this will help you with half of your code interview.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ul525j", "question": "I took a Java beginners course my last semester, and have decided to major in computer science. But I felt so behind because I did not have any prior experience with programming. So I wanted to learn some Java over the summer break and familiarize myself. What website would you recommend for someone like me?", "comment": "https://java-programming.mooc.fi/\n\nThis is often brought up as one of the best online courses for Java. It's free, through the University of Helsinki. I finished both of their Java courses and I found them pretty helpful, covering basic to advance topics, with good explanations and a ton of programming challenges.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "ul525j", "question": "I took a Java beginners course my last semester, and have decided to major in computer science. But I felt so behind because I did not have any prior experience with programming. So I wanted to learn some Java over the summer break and familiarize myself. What website would you recommend for someone like me?", "comment": "[codingbat.com](https://codingbat.com) has slowly graduated. Java exercises for beginners, I think it's a great place to start/refresh basic programming skills. Then move on to something more project based.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "ul66lu", "question": "Does this mean that \u03c0 is Turing complete?\n\nIf you picked the correct spot to start reading the \"tape\", \u03c0 may be functional code.\n\nIs the answer only \"no\" until that spot is found?", "comment": "It's actually a common misconception that pi contains all possible strings of numbers 0-9. Some people suspect it, but this property hasn't been proven. You can read [this](https://math.stackexchange.com/questions/216343/does-pi-contain-all-possible-number-combinations) for more information.\n\nEven if it were true, you couldn't consider pi itself Turing complete, it would just be a storage device. In other words, it could be used as tape that a Turing machine could use, but that wouldn't make it the Turing machine or Turing complete in itself.", "upvote_ratio": 390.0, "sub": "AskComputerScience"} +{"thread_id": "ul66lu", "question": "Does this mean that \u03c0 is Turing complete?\n\nIf you picked the correct spot to start reading the \"tape\", \u03c0 may be functional code.\n\nIs the answer only \"no\" until that spot is found?", "comment": "Pi (at some offset and numerical base) would be an input for some kind of computing device. i.e. you'd have to apply some model of computation to the data.\n\nPi itself is just data.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "ul6okz", "question": "What were your thoughts?", "comment": "It seemed like such a huge deal at the time. Ken Starr. Republicans losing their minds. The moral outrage!!! I was a Republican at the time, didn\u2019t like the Clintons, and couldn\u2019t have cared less about it. \n\nNow? Well, now we have a sitting representative who trafficked minors, paid them by Venmo, and had his partner in the deal flip on him\u2026and he still has his parking spot and no one seems to be doing anything about it.", "upvote_ratio": 1890.0, "sub": "AskOldPeople"} +{"thread_id": "ul6okz", "question": "What were your thoughts?", "comment": "i remember. i hated the hate that lewinsky dealt with.", "upvote_ratio": 1480.0, "sub": "AskOldPeople"} +{"thread_id": "ul6okz", "question": "What were your thoughts?", "comment": "Consensual sex between 2 adults, not that big a deal. Cheating on your wife with someone half your age, amoral. Lying about it under oath, criminal.\n\nBut we know JFK screwed anything that moved, and other presidents have had affairs (FDR, LBJ). So why it became a big concern with Clinton one can only speculate.\n\nMy parents were lifelong die hard Republicans and the Clinton scandal turned them into Democrats. They thought it was disgusting that the president's sex life was being aired in public and that the Republicans should mind their own business and be less sex obsessed.", "upvote_ratio": 1120.0, "sub": "AskOldPeople"} +{"thread_id": "ul6xki", "question": "As title. Both have the function of waiting for an async function to complete.\n\nAdditionally why can\u2019t I run an async function with an await from a synchronous function? What could go wrong if that was allowed?", "comment": "Well, there is a bit of confusion about what an async function does, so lets start from the problem it solves. Imagine that you are writing a piece of software that needs to listen for incoming connections, so what you do is you call `.listen` and wait, this is called blocking behaviour, but what if you wanted to do other things while you wait? Well, you could use threads, but what if you didn't want to?\n\nWhat if we had a function, that when it needs to wait it just returns to the caller, lets you do something else, notifies you when it has finished waiting, and automatically resumes back where it left off? That's exactly what `Future` is, which is a generalization of an async function (async fn **are** `Future`'s).\n\nSo what is `await` doing? Well it's a way of saying \"pass the wait along\". It doesn't block, it just \"propagates the wait\", so you can still do other things.\n\nWhat about `block_on`? `block_on` is different because it doesn't \"propagate the wait\" it just block until the future is finished, it doesn't return to the caller of the future. It doesn't allow you to do other things, it waits until the future has finished.\n\nSo the main difference between `await` and `block_on` is how the handle a future which needs to wait. `await` passes the wait along, allowing you to return and do other stuff, but only works in async contexts, while `block_on` actually blocks until the future has finished, and while you could use it in an async context, it's a **terrible** idea (`Future`'s **must** not block).\n\nAnd finally, nothing could go wrong if you run async functions in sync ones, it's just not possible. The problem is that async is not magic, it needs a bunch of logic to control which futures are ready, which are waiting, and in general a whole lot of keeping track of things. That's not something you want to keep around even if you are not using it. So in order to use that extra stuff you need to create a special thing called a runtime, which does the book keeping. In a sense, `block_on` is a runtime, it only allows one future and runs on the current thread, blocking until it has finished, but it's still a runtime.", "upvote_ratio": 200.0, "sub": "LearnRust"} +{"thread_id": "ul6xki", "question": "As title. Both have the function of waiting for an async function to complete.\n\nAdditionally why can\u2019t I run an async function with an await from a synchronous function? What could go wrong if that was allowed?", "comment": "Look into how the `Future` trait works, the base idea is rather simple.\n\nOmitting all detais `async` blocks are just futures that the compiler generates for you.\n\nYou can think of it roughly something like this:\n\n```\nasync {\n foo_future.await;\n 1_usize\n}\n```\n\nturns into something like:\n\n```\nimpl Future for SomeGeneratedType {\n type Output = usize;\n fn poll(self: ...) -> Poll<...> {\n match self.foo_future.poll(...) {\n Poll::Ready(_) => {},\n Poll::Pending => return Poll::Pending\n };\n Poll::Ready(1_usize)\n }\n}\n```\n\nThis transformation does not make a lot of sense outside futures, what would the compiler generate for `.await` in a function?\n\n`block_on` is _simply_ a function that repeatedly calls (again, omitting details) `poll` of the given future and returns the result whenever it returns `Poll::Ready`.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "ul8bzb", "question": "I've heard that Dazed and Confused (released in 1993) depicts the late '70s really well. Any other movies that came out years after the era they depict that represent that era very accurately?", "comment": "I love coming of age-type era movies. I just watched Summer days, summer nights (2018) playing in 1982. Music, cloths, cars all from the \"groovy\" 80s. It really was a bit of a blast of the past.\n\nI think there are a few more like that but American Graffiti (1973) playing in 1962 is the original for me and my all-time favorite!\n\n&#x200B;\n\nEDIT Just added \"Not Fade Away\" (2012) \"Set in suburban New Jersey the 1960s, a group of friends form a rock band and try to make it big in this music-driven coming of age story.\" The period details are spot-on and the soundtrack is great.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "ul8bzb", "question": "I've heard that Dazed and Confused (released in 1993) depicts the late '70s really well. Any other movies that came out years after the era they depict that represent that era very accurately?", "comment": "Boogie Nights", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "ul8bzb", "question": "I've heard that Dazed and Confused (released in 1993) depicts the late '70s really well. Any other movies that came out years after the era they depict that represent that era very accurately?", "comment": "Not a movie but Stranger Things was right on with most things. I was a kid around the age of the characters at that time and all the cars and furnishings and stuff are spot on. Except for a very noticeable inappropriate power strip that showed up in a shed, I think it was in Season 2. Very off-putting. Otherwise the props people and set dressers did a great job.\n\nIn fact I got so obsessed with that inappropriate power strip that a friend who works in props helped me trace it to a model that would have first been sold in the 1990s. I think it only really bothered me because the show was so good otherwise (in the period appropriateness).", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "ul8g9w", "question": "That movie makes 1970s New York seem like a dystopian hell. Was New York as bad as that movie makes it seem like?", "comment": "Absolutely depended on the neighborhood street.\n\nNeighborhoods that were stable and had either homeowners or people in rent-controlled apartments tended to stay long term, cared about their street and kept an eye out for others. But this was literally street by street. It wasn't an area that was good or bad. It was a single block on a single street.\n\nNeighborhoods with apartment complexes that cycled people through constantly, were half empty, or had drugs/prostitution going on were completely shady. Needles. Condoms. Ick.\n\nTimes Square was awful. As teens, we were always in a pack. I never walked alone in that area at night.\n\nIn the 80s, the gentrification started. Yuppies moved in, took over lofts and the run down buildings. The City hopped on the gentrification train in the 90s. \n\nNYC became much more aware of tourism dollars. But if you watch NYC news, it's still bad at night, especially in some areas. There was just a murder in Times Square a couple days ago.", "upvote_ratio": 1040.0, "sub": "AskOldPeople"} +{"thread_id": "ul8g9w", "question": "That movie makes 1970s New York seem like a dystopian hell. Was New York as bad as that movie makes it seem like?", "comment": "NYC almost declared bankruptcy in 1975. The state took control of the city\u2019s finances and made drastic cuts in municipal services and spending, cut city employment, froze salaries and raised bus and subway fares. \n\nThe New York City blackout of 1977 struck on July 13 of that year and lasted for 25 hours, during which black and Hispanic neighborhoods fell prey to destruction and looting. By the end of the 1970s, nearly a million people had left NYC, a population loss that would not be made up for another twenty years.\n\nThat said, there were still nice neighborhoods in NYC, just not as many of them. Crime movies focused on the worst neighborhoods, but comedies and romances focused on the nicer neighborhood. \n\nThe TV show *All in the Family* was set in a middle class neighborhood in Queens. The spin off *The Jeffersons* was set in an upper class neighborhood on the East Side. The Woody Allen movies *Annie Hall* and *Manhattan* made NYC look great. \n\nSo it was not all bad. But it was pretty bad, especially compared to today.", "upvote_ratio": 600.0, "sub": "AskOldPeople"} +{"thread_id": "ul8g9w", "question": "That movie makes 1970s New York seem like a dystopian hell. Was New York as bad as that movie makes it seem like?", "comment": "To me, yes. I was born and raised in Manhattan in a not-great neighborhood. I left in 1972 and felt reborn. Frequent visits home during the 70s reinforced this feeling. Dystopian hell is exactly what it felt like.\n\nOn the other hand, my family and oldest friends did not feel the same way I did. They stayed and continued to love it. My mother lived there her entire life and would not have lived anywhere else. \n\nIn the late 80s and 90s my family moved to much nicer neighborhoods than the one I grew up in, the city got safer and cleaner and I started to enjoy visiting a lot.", "upvote_ratio": 460.0, "sub": "AskOldPeople"} +{"thread_id": "ul92gk", "question": "How did your parents react to the music?", "comment": "My dad\u2019s priest counseled him to talk to me about my heavy metal problem. Mid-1980s, loads of devil imagery. I\u2019d moved on to punk and we laughed over some of the album covers. The priest was later accused of molesting altar boys and I still like metal.", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "ul92gk", "question": "How did your parents react to the music?", "comment": "Metal....hair metal, glam metal, hard metal, punk...geezus I had a lot of fun. Anyway, my mother hated it ALL. She thought I was going to end up like Nancy Spungen. The day Sid Vicious died, I was coming in the door from school and she said \"that asshole from that band you like so much is dead.\" She thought the New York Dolls were all (non pc term redacted); The Ramones were dirty bums; Marc Bolan was a \"sissy\"; and Steven Tyler was a \"screaming lunatic\"....Happy Mother's Day ma...RIP.", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "ul92gk", "question": "How did your parents react to the music?", "comment": "My parents were born in the early 1920s. When rock was new, I was a small child. However, I suspect my parents weren't big fans of Elvis, Chuck Berry or Little Richard. Mom loved Sinatra, Perry Como, Patty Page, etc. Dad loved Hank Williams, Ernest Tubb, Lefty Frizzell, etc.\n\nI guess I would call Led Zeppelin one of the first bands that could be referred to as metal. Mom and dad didn't like them either.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "ula8he", "question": "Thirty Seconds Over Winterland and Bless Its Pointed Little Head (Jefferson Airplane) come to mind. Coincidentally both are live albums.", "comment": "[Weasels Ripped My Flesh](https://en.m.wikipedia.org/wiki/Weasels_Ripped_My_Flesh)", "upvote_ratio": 140.0, "sub": "AskOldPeople"} +{"thread_id": "ula8he", "question": "Thirty Seconds Over Winterland and Bless Its Pointed Little Head (Jefferson Airplane) come to mind. Coincidentally both are live albums.", "comment": "You Can Tune a Piano But You Can't Tuna Fish by REO Speedwagon.", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "ula8he", "question": "Thirty Seconds Over Winterland and Bless Its Pointed Little Head (Jefferson Airplane) come to mind. Coincidentally both are live albums.", "comment": "nothing implied about the actual music, but here are some titles that i like:\n\n\\- the smoker you drink, the player you get - joe walsh\n\n\\- sunday morning coming down - kristofferson? cash?\n\n\\- dancing in the dragon's jaws, bruce cockburn", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "ulbj4n", "question": "What is a strong belief that has been consistent throughout your life?", "comment": "That animals deserve our kindness and compassion.", "upvote_ratio": 350.0, "sub": "AskOldPeople"} +{"thread_id": "ulbj4n", "question": "What is a strong belief that has been consistent throughout your life?", "comment": "That I don\u2019t want children.", "upvote_ratio": 310.0, "sub": "AskOldPeople"} +{"thread_id": "ulbj4n", "question": "What is a strong belief that has been consistent throughout your life?", "comment": "Religion does more harm than good.", "upvote_ratio": 280.0, "sub": "AskOldPeople"} +{"thread_id": "ulcg1r", "question": "What was the harshest you punished your kids and why?", "comment": "I sent them to bed without dinner once. I swear the way they were crying you would think I was killing them. \n\n After about an hour I sent my husband in with sandwiches for them. \n\n We were at a family members house and they would not stop fighting, constant bickering and I had it up to my chin. I told them, if they did not get along or at least separate into different places, they would be sent to their rooms with no dinner. \n\n They did not learn their lesson I just learned different ways to handle three young mischievous children. Like, not taking them places that are so boring that they have nothing better to do than fight. I don't care what my mother said, small kids are not built for being still for very long.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "ulcg1r", "question": "What was the harshest you punished your kids and why?", "comment": "had a bad habit of screwing around in the morning getting ready for school making her mom late for work way to often. Mom was a pushover. The delay was often debates about what to wear and getting dressed. \n\n3nd grade. \n\nI took a morning off work and decided i was fixing this. She fucked around and found out. \n\nI took her to wal mart and got her 3 kids golf shirts (red) and three khaki shorts that day. she wore her \"uniform\" the next 4 months. Her school didnt have uniforms. She did. \n\nShe hated it for a week then started to like it once she figured out nobody cared and mornings went much better.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "ulcg1r", "question": "What was the harshest you punished your kids and why?", "comment": "I spanked my 3 yo son for running out in the street between two parked cars. Only spanking he ever got. Never forgot the lesson either.", "upvote_ratio": 40.0, "sub": "AskOldPeople"} +{"thread_id": "uldard", "question": "Where was the Hawaiian islands/hotspot located in the Mesozoic? I believe that the current islands didn\u2019t exist until the Cenozoic, and that the oldest of the Emperor Seamounts existed during the Cretaceous period, but I have no idea where the hotspot was located or when it was created.\n\nAlso, I\u2019m wondering what climate the islands were.", "comment": "Generally, when [mantle plumes](https://en.wikipedia.org/wiki/Mantle_plume) (hotspots) first reach the surface, the arrival of the plume head is accompanied by the formation of a [large igneous province](https://en.wikipedia.org/wiki/Large_igneous_province) or LIP. When a LIP erupts through oceanic lithosphere, it typically produces an [oceanic plateau](https://en.wikipedia.org/wiki/Oceanic_plateau), whereas when it erupts through continental lithosphere, it can produce continental flood basalts, like the [Deccan Traps](https://en.wikipedia.org/wiki/Deccan_Traps) or the [Columbia River Basalts](https://en.wikipedia.org/wiki/Columbia_River_Basalt_Group). For some plumes, we can trace them back along the characteristic \"hotspot track\" to where the plume first erupted, this is the case for both the [Reunion Hotspot](https://en.wikipedia.org/wiki/R%C3%A9union_hotspot) and [Yellowstone Hotspot](https://en.wikipedia.org/wiki/Yellowstone_hotspot), where the Deccan Traps and Columbia River Basalts represent the LIPs associated with the initial arrival of the plume head at the surface and there are \"tracks\" of volcanism between these LIPs and the modern plume location. In the case of the [Hawaii-Emperor](https://en.wikipedia.org/wiki/Hawaiian%E2%80%93Emperor_seamount_chain) chain and associated hotpsot, if we follow the track back, we don't find a LIP, but instead find that the chain terminates into the corner between the Kamchatka and Aleutian subduction zones. This implies that the LIP that would mark the initiation of the Hawaii-Emperor seamount chain was subducted. The oldest remaining portions of the chain (that are about to enter the Kamchatka trench) are ~81 million years old (so not that far back into the [Mesozoic](https://en.wikipedia.org/wiki/Mesozoic). The best constraint we have on how much of the chain we've lost to subduction and when the plume initiated comes from mantle tomography, where we use changes in the speed of seismic waves from earthquakes as they pass through material of different densities/temperatures to produce \"images\" of the mantle, kind of like a giant ultrasound. Specifically, [Wei et al., 2020](https://www.science.org/doi/full/10.1126/science.abd0312) used mantle tomography to potentially identify the subducted oceanic plateau that would mark the arrival of the Hawaii-Emperor plume head at the surface. From this, they back out that the oceanic plateau was probably subducted beneath Kamchatka about 20-30 million years ago and that the plateau itself formed 100 million years ago on the Pacific plate (so again, not terribly far back into the Mesozoic all things considered). \n\nAs to where this oceanic plateau was located when it formed, largely in the same location as the modern plume is today in terms of latitude-longitude / distance from the poles. In general, hotspots are approximately fixed with respect to the rotational axes of the Earth (in detail, they're not truly fixed and they do \"drift\" a bit, e.g., see this [FAQ](https://www.reddit.com/r/askscience/wiki/planetary_sciences/hawaii_seamount_bend) entry considering how drift of Hawaii-Emperor seamount plume may factor into the prominent bend in the chain, but for our purposes, we can consider them close enough to being fixed to say that the plume was basically in the same place when it formed as today). The plates have moved with respect to this (and other) hotspots since their formation, so in the simplest sense, hotspot tracks mostly reflect plate motion, not motion of the hotspot (kind of like moving a piece of paper above the tip of a candle, burning a track into it). Thus, if we could go back in time to 100 Ma to watch the formation of the Hawaii-Emperor oceanic plateau (that's now hanging out at about ~850 km down in the mantle underneath Kamchatka), it would be at the approximately the same latitude and longitude as the modern big island of Hawaii, at least likely within a few degrees. If we could stay hovering above this exact spot for the next 100 million years, we would watch motion of the Pacific plate advect older seamounts and volcanoes away from the plume location and toward the Kamchatka trench, until the plateau and additional portions of the seamount chain started to be subducted.", "upvote_ratio": 6230.0, "sub": "AskScience"} +{"thread_id": "ulga33", "question": "My parents bought me the new M1 air (16RAM/512GB). Could it handle projects (like UNITY) and some 3D rendering. Maybe some video and music editing too. I'm currently a freshman.", "comment": "No, you\u2019ll spill some soda innit or have it stolen from your backpack while in the library.", "upvote_ratio": 220.0, "sub": "AskComputerScience"} +{"thread_id": "ulga33", "question": "My parents bought me the new M1 air (16RAM/512GB). Could it handle projects (like UNITY) and some 3D rendering. Maybe some video and music editing too. I'm currently a freshman.", "comment": "Not really the right subreddit, but almost certainly. 16Gb of RAM might be a little limiting towards the end of your schooling but generally you should be able to get 5-6 years out of it.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "uljuvj", "question": "How does our heart produce its electric current?", "comment": "Via the [sinus node](https://en.m.wikipedia.org/wiki/Sinoatrial_node) but the rate is controlled via the [medulla](https://en.m.wikipedia.org/wiki/Heart_rate).\n\nInteresting side note, the \"heartbeat\" in the 6-week abortion heartbeat bill is actually the embryonic SA node producing an electric pulse. The proper heart isn't fully formed until 10-12 weeks, doesn't start relieving placental circulatory resistance until 16 weeks and is difficult to monitor for developmental issues until around 20 weeks.", "upvote_ratio": 250.0, "sub": "AskScience"} +{"thread_id": "uljuvj", "question": "How does our heart produce its electric current?", "comment": "There are a series of active pumps, the most important one being the Na-K-ATPase pump as well as a series of ion channels. The electricity is caused by flow of ions through the various channels which can fluctuate between open and closed states.", "upvote_ratio": 170.0, "sub": "AskScience"} +{"thread_id": "uljuvj", "question": "How does our heart produce its electric current?", "comment": "The cells that make up the sinoatrial node are pretty cool. They have channels that produce what is called the \"Funny Current\" which was named that because researchers observing it could not figure out what it was at first and its behavior was pretty odd (or \"funny\"). \n\nCells use the gradients of ions (Calcium, Sodium, Potassium, Chloride) across their membranes to generate currents, and trigger action potentials. In the case of the Sinoatrial (SA) node which controls the initiation of the heartbeat, the cycle of the action potential is an increase in cytoplasmic calcium that reaches a threshold, and triggers an action potential, this then triggers voltage gated potassium channels to bring the potential back down (hyperpolarize). Normally that cycle is the end of the story until some external stimuli triggers another action potential. \n\nIn the SA node however, there is the funny current. HCN ion channels responsible for creating the funny current, will spontaneously open when the cell gets hyperpolarized by the potassium currents, and allow for sodium to flow into the cell. This depolarized the cells enough to trigger the calcium channels which initiate the next action potential.", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "uljygg", "question": "Do our bodies have defences against prions?", "comment": "TL:DR Prions are a normal part healthy cells. They are not something the body needs to protect against, in most cases. Prions, in very rare cases (very rare) , can become misshapen and cause problems. \n\nPrion diseases, also known as transmissible spongiform encephalopathies or TSEs, are a group of rare, fatal brain diseases that affect animals and humans.\u00a0 They are caused by an infectious agent known as a prion, which is derived from a misfolded version of a normal host protein known as prion protein. Prion diseases include bovine spongiform encephalopathy (BSE or \"mad cow\" disease) in cattle, Creutzfeldt-Jakob disease (CJD) and variant CJD\u00a0in humans, scrapie in sheep, and chronic wasting disease (CWD)\u00a0in deer, elk, moose and reindeer.\u00a0\n\nPrion diseases are associated with the prion protein, which is found in many body tissues, including the brain. Normally, prion protein does not cause disease and resides on the surface of many cell types. Though under investigation, scientists think normal prion protein might help protect the brain from damage. They do know that when many normal prion protein molecules change their shape and clump together, they can aggregate in brain tissue and form the infectious prions that cause prion disease. Prion diseases are therefore caused by an infectious, abnormally shaped and aggregated prion protein. Scientists are not sure why normal prion protein become misshapen. NIAID scientists co-discovered the prion protein gene and were among the first to show that abnormal prion protein can change normal prion protein to the abnormal, infectious form. \n\nSource, NIAID research, a part of the NIH", "upvote_ratio": 1120.0, "sub": "AskScience"} +{"thread_id": "uljygg", "question": "Do our bodies have defences against prions?", "comment": "Yes! Your body does have defenses against prions.\n\nBefore we get into it, we should define some terms since it can get confusing talking about prions, prion proteins, and prion diseases.\n\n[Prion](https://en.wikipedia.org/wiki/Prion)\\- a class of misfolded proteins that induce normally folded proteins to misfold. Importantly they are self-replicating (induce normal proteins and misfold) and are infectious (may be spread from one organism to another). As a class of proteins, the term prions refers to multiple proteins.\n\n[Prion protein](https://en.wikipedia.org/wiki/PRNP) (PrP) - a specific protein that may become a prion if it misfolds. PrP is the only known prion in humans and is the cause for Creutzfeldt Jakob disease (CJD, some variants known as Mad Cow Disease or transmissible spongiform encephalopathy). There are other proteins that are considered prions but most of the known ones are [yeast proteins](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2376760/).\n\nSo PrP is normally found in humans and has a role in normal cell function. But when it misfolds (either due to a genetic mutation or from being exposed to a misfolded PrP from another diseased individual) it can cause disease (CJD).\n\n**The cells' defense:**\n\nCells have an extensive system in place to protect against misfolded proteins. While not all misfolded proteins are prions, they do have a tendency to aggregate and cause dysfunction. This is evident from the multitude of protein aggregation disorders found in humans both in the brain (CJD, Alzheimer's, Parkinson's, Huntington's, ALS, etc) and in the rest of the body (amyloidosis, inclusion body myopathy, Paget's disease of the bone, etc).\n\nIf your cell detects an accumulation of misfolded proteins (prions or others), it activates the unfolded protein response (UPR). This is an intricate system designed with multiple layers designed to try and fix misfolded proteins, degrade them if they are unable to be fixed, or kill off the cell if its unable to degrade misfolded proteins. It's very complex so I'll briefly describe some steps here but I'll link an excellent review below that goes into the nitty gritty.\n\nEssentially, your cells detect misfolded proteins and upregulate chaperone proteins which help guide proteins to be properly folded. If these chaperones are unable to properly folded the misfolded proteins, the misfolded proteins will be tagged for degradation with ubiquitin (a small protein used for signaling). Generally this is done by the proteasome which cleaves proteins in small pieces which can be recycled. However, larger aggregates of misfolded proteins may be degraded via autophagy which engulfs the aggregate in a compartment and then dissolves it in acid (fusion with a lysosome). If there is sustained and continued stress that is unable to be resolved by chaperones, the proteasome, or autophagy, then the cell begins programmed cell death known as apoptosis. Eventually the cell will break down resident immune cells (generally macrophages but may be others) will come by and clean up the mess.\n\n**How prions evade this defense:**\n\nProteins misfold all the time during normal cell function. As with any manufacturing plant, there will be some defects in the products. The UPR is constantly at work in all your cells and does a great job at preventing accumulation of misfolded proteins. So how do prions or other proteins that aggregate in disease escape this mechanism? When these aggregation prone proteins misfold, they form ultra-stable conformations known as stacked beta sheets (though there are other conformations as well). These beta sheets are incredibly hydrophobic and are very resistant to degradation. So aggregation prone proteins will go from cell to cell inducing normally folded proteins to misfold, become ultra stable, and when the cell cannot degrade them, it will undergo apoptosis.\n\nIt's important to note that this is not a black and white scenario as your cells are able to clear prions but when they begin to build up over time it becomes unmanageable. This is, in part, why prion disease and nearly all neurodegenerative diseases occur in the elderly.\n\nEDIT: this series of events is also why terminally differentiated cells (cells unable to divide such as neurons, myocytes, and osteocytes) are particularly vulnerable to protein aggregation. Actively dividing cells can undergo asymmetric mitosis where one daughter cell gets the bulk of the aggregates and the other remains healthy. Thus making tissues with actively dividing cells more resilient to protein aggregation including prions.\n\n[Unfolded protein response overview](https://www.nature.com/articles/nrm3270)\n\n[Prion disease and the unfolded protein response](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2838391/)", "upvote_ratio": 300.0, "sub": "AskScience"} +{"thread_id": "uljygg", "question": "Do our bodies have defences against prions?", "comment": "Not really. Most prion diseases are caused by misfolding of a specific protein. In its normal form, it's called PrPc, and it's found on the surface of healthy, normal neurons in the brain and spinal cord. As of now, we're not specifically sure what it does.\n\nWhat's interesting about PrPc is that it has a tendency to misfold into a form we call PrPsc. Simplified, the bad form (PrPsc) bumps into the good form (PrPc) and unfolds it using hydrogen bonds. Then, it refolds and clumps together. This creates a collection of bad proteins that ends up killing the neurons through a still unclear process. \n\nThe immune system, when faced with a problem, reacts in two main ways. It has the troops on the ground (innate immunity) that react to the signals put out by bacteria, parasites, and viruses. This is blind immunity: those cells don't know what they're fighting and can go full scorched earth. This is what causes initial inflammation. The body also has the specialized troops (adaptive immunity) that release special antibodies tailored to whatever bad things it's fighting. In the case of cancer, the body has built-in mechanisms to signal \"This cell is broken! Its DNA is damaged and it's dividing wrong, so kill it!\"\n\nIn the case of prions, none of these mechanisms are triggered. There isn't a pathogen that the immune system is recognizing, nor is there a \"take care of me, I'm broken\" signal. Our bodies' protective mechanism aren't triggered with prion diseases because it's just a surface protein that changes. Meanwhile, the prion works its way across the brain, misfolding and causing cell death. Because neurons in the brain have a miniscule potential to regenerate, you thus get the brain damage and signature death from prion diseases. \n\nThe reason I say \"not really\" instead of \"no\" is that there's new research suggesting that microglia (defensive macrophages/ground troops of the brain) may have a protective effect against prions by clearing up the plaques and misfolded proteins. However, there's other research that suggests that microglia are actually \"misfiring\" during prion diseases and make things worse. Like with many parts of the brain, there's still a lot we don't know.\n\nSources:\n\nhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC1986710/#__ffn_sectitle \n\nhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC5874746/\n\nhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC5750587/\n\nhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC2258253/?report=reader\n\nhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC2672014/#:~:text=Prion%20diseases%20are%20fatal%20disorders,(PrP)%3B%20and%20(5)\n\nhttps://pubmed.ncbi.nlm.nih.gov/29769333/\n\nhttps://pubmed.ncbi.nlm.nih.gov/30650564/", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "ull014", "question": "When 9/11 happened, did any of you think it suspicious at the time? Any of you witness it in person? \nDo you believe it to have been a conspiracy?", "comment": "I don't think it was a conspiracy. Never did. It opened the door to some really dark shit, though.", "upvote_ratio": 260.0, "sub": "AskOldPeople"} +{"thread_id": "ull014", "question": "When 9/11 happened, did any of you think it suspicious at the time? Any of you witness it in person? \nDo you believe it to have been a conspiracy?", "comment": "When the second tower hit, yes, I was suspicious that the first one wasn\u2019t a freak accident. \n\nLater, I learned that it was indeed a conspiracy among operatives of an extremist group called al Qaeda.", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "ull014", "question": "When 9/11 happened, did any of you think it suspicious at the time? Any of you witness it in person? \nDo you believe it to have been a conspiracy?", "comment": "\"Do you believe it to have been a conspiracy\"\n\nhell yes. \n\nI also belive\n\nJewish Space Lasers started wildfires. \n\nmicrowaves turn into cameras' and can spy on us\n\nbill gates is trying to microchip us all.\n\ncovid is fake.\n\nthe bowling green massacare coud have been prevented. \n\nand many more very provable things normal people dismiss. \n\n\n\nJust kidding. I am not insane nor stupid.", "upvote_ratio": 150.0, "sub": "AskOldPeople"} +{"thread_id": "ullk4w", "question": "Hey y\u2019all. Just got a flu jab. Should I rest and deal with side effects or head out for an hour long walk? I have read that exercising after a flu shot can give a better immune boost. But I want the least side effects possible. So would a better immune response equal more side effects? \n\nI hope this makes sense. Please direct to the right sub if not the right place to ask. Thanks", "comment": "The CDC recommends exercising to reduce side effects:\n\n>To reduce pain and discomfort where the shot is given\n> * Apply a clean, cool, wet washcloth over the area.\n> * Use or exercise your arm.\n\n--[Possible Side Effects After Getting a COVID-19 Vaccine](https://www.cdc.gov/coronavirus/2019-ncov/vaccines/expect/after.html)\n\nMore generally, exercise helps immunity without increasing side effects:\n\n>\tAn unconventional behavioral \u201cadjuvant\u201d is physical exercise at the time of vaccination. \u2026 The results show that 90 min of exercise consistently increased serum antibody to each vaccine four weeks post-immunization, and IFN\u03b1 may partially contribute to the exercise-related benefit. \u2026 These findings suggest that adults who exercise regularly may increase antibody response to influenza or COVID-19 vaccine by performing a single session of light- to moderate-intensity exercise post-immunization.\n\n\u2014[Exercise after influenza or COVID-19 vaccination increases serum antibody without an increase in side effects](https://www.sciencedirect.com/science/article/pii/S0889159122000319)", "upvote_ratio": 190.0, "sub": "AskScience"} +{"thread_id": "ulmd2m", "question": "I want to make a sudoku game for a computer competition with a national phasea and my teacher recommended me to do it graphically. What should i use? (i only know c++ at the moment)", "comment": "I highly recommend you to check out the [OneLoneCoder Pixel Engine](https://github.com/OneLoneCoder/olcPixelGameEngine) It is a very nice graphics library to create games and it is just an .hpp file.", "upvote_ratio": 240.0, "sub": "cpp_questions"} +{"thread_id": "ulmd2m", "question": "I want to make a sudoku game for a computer competition with a national phasea and my teacher recommended me to do it graphically. What should i use? (i only know c++ at the moment)", "comment": "I would recommend SFML or SDL2. Raylib is also a solid choice, but I haven't used it personally.", "upvote_ratio": 190.0, "sub": "cpp_questions"} +{"thread_id": "ulmd2m", "question": "I want to make a sudoku game for a computer competition with a national phasea and my teacher recommended me to do it graphically. What should i use? (i only know c++ at the moment)", "comment": "I\u2019d say SDL2 as it can be used for many game related things and has tons of online help", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "ulnkiy", "question": "Was it common for healthcare professionals, undertakers, etc to catch influenza from handling bodies in the 1918 Flu epidemic?", "comment": "I was not able to find extremely specific information, but I cobbled some things up. \n\nThe short answer is that influenza doesn't survive well in dead bodies so the risk of getting it from a body is small. \n\nI found this guideline for body handlers in Australia that specifically mentions that there is basically no risk of catching the virus from a dead body who reached the mortuary or funeral home and that the risk is mostly from the family of the victim. \n\nhttps://www.health.nsw.gov.au/environment/factsheets/Pages/bodies-influenza.aspx\n\nWhile there is a small chance for a medical professional who deals with the very recently deceased to contact the disease from him, this didn't really happen during the height of the 1918 Flu Epidemic as the whole world was overrun with bodies. I've found this chilling article explaining how bodies were put in piles on the edges of the city or kept inside the home with ice on them to prevent decomposition. Basically, by the time someone was able to get to the body, the risk of getting infected was not present. \n\nhttps://www.history.com/.amp/news/spanish-flu-pandemic-dead", "upvote_ratio": 4870.0, "sub": "AskScience"} +{"thread_id": "ulnkiy", "question": "Was it common for healthcare professionals, undertakers, etc to catch influenza from handling bodies in the 1918 Flu epidemic?", "comment": "Nurses definitely got it. One of the things that slowed down the response to the pandemic in 1918 was the fact that the people who were working hardest on treatment and trying to develop vaccines kept getting sick\n\nAs for handling the dead, probably not, as a respiratory virus it's just not that dangerous when the patient isn't breathing.", "upvote_ratio": 760.0, "sub": "AskScience"} +{"thread_id": "ulnkiy", "question": "Was it common for healthcare professionals, undertakers, etc to catch influenza from handling bodies in the 1918 Flu epidemic?", "comment": "\"During the fall and winter months of 1918, mortality rates among physicians and nurses presumed to have influenza were 0.64% and 0.53%, respectively.\" \nhttps://www.centerforhealthsecurity.org/cbn/2011/cbnreport_02042011.html", "upvote_ratio": 390.0, "sub": "AskScience"} +{"thread_id": "ulnvy4", "question": "The mullet, the crazy hairspray hair, it felt like everyone thought the bigger their hair was, the better. I always thought men were hotter when they had short hair. I didn't care for Kevin Costner until he got short hair for THE BODYGUARD and in that movie, it was hubba hubba. Before when he had the mullet, he looked like Billie Jean King. \n\nAnd thank god women stopped putting hairspray. Nothing ages you more than helmet hair or that hairspray hair that makes you look like you have a crown.", "comment": "Twenty years from now you're going to cringe when you see photos of the hairstyle you have now.", "upvote_ratio": 170.0, "sub": "AskOldPeople"} +{"thread_id": "ulnvy4", "question": "The mullet, the crazy hairspray hair, it felt like everyone thought the bigger their hair was, the better. I always thought men were hotter when they had short hair. I didn't care for Kevin Costner until he got short hair for THE BODYGUARD and in that movie, it was hubba hubba. Before when he had the mullet, he looked like Billie Jean King. \n\nAnd thank god women stopped putting hairspray. Nothing ages you more than helmet hair or that hairspray hair that makes you look like you have a crown.", "comment": "The man bun is the mullet of the current era. It will be mocked in the future.", "upvote_ratio": 100.0, "sub": "AskOldPeople"} +{"thread_id": "ulnvy4", "question": "The mullet, the crazy hairspray hair, it felt like everyone thought the bigger their hair was, the better. I always thought men were hotter when they had short hair. I didn't care for Kevin Costner until he got short hair for THE BODYGUARD and in that movie, it was hubba hubba. Before when he had the mullet, he looked like Billie Jean King. \n\nAnd thank god women stopped putting hairspray. Nothing ages you more than helmet hair or that hairspray hair that makes you look like you have a crown.", "comment": "Every generation manages to come up with styles that the succeeding generations think look stupid. The 80s were no exception.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "ulpzod", "question": "During Polymerase Chain Reaction, Why does Taq polymerase only extend the primer-DNA hybrid upto 1.5 kilo base pairs and not beyond that?", "comment": "Processivity has to do with the likelihood of the polymerase falling off the DNA. In cells there is a protein called the clamp which literally clamps around the DNA and anchors the polymerase to the DNA. This increases processivity enormously. Its not included in the PCR design because its an extra step that is hard to control by temperature alone and requires ATP to reload the clamp every time. For most gene lengths it turns out to not be necessary in a PCR.", "upvote_ratio": 250.0, "sub": "AskScience"} +{"thread_id": "ulqhld", "question": "Some of my team members argue that we should not use anything from the standard library or the standard template library, anything that starts with \"std ::\", as it may use dynamic memory allocation and we are prohibited to use that (embedded application). I argue that it is crazy to try to write copies of standard functions and you can always see which functions would need dynamic memory.\n\nPlease help me with some arguments. (Happy for my opinion but if you can change my mind I will gladly accept it.)", "comment": "That wording is already way too broad. Are you going to write your own `std::cos` function? I doubt it. Not to mention the few places where the core language is inseperably connected with parts of `std::`.\n\nYou can find out what parts of the standard \"may\" allocate memory. \n\nFor example `std::find` wont allocate memory, and `std::move` (both the utility as well as the algorithm) certainly wont.\n\nSure, the string and containers (apart from `std::array`) will allocate memory - but that is their entire point. Further, you could provide a custom alloctor if you need to.\n\nBanning \"all of std::\" is nonsensical. Go write assembly if you want.", "upvote_ratio": 790.0, "sub": "cpp_questions"} +{"thread_id": "ulqhld", "question": "Some of my team members argue that we should not use anything from the standard library or the standard template library, anything that starts with \"std ::\", as it may use dynamic memory allocation and we are prohibited to use that (embedded application). I argue that it is crazy to try to write copies of standard functions and you can always see which functions would need dynamic memory.\n\nPlease help me with some arguments. (Happy for my opinion but if you can change my mind I will gladly accept it.)", "comment": "I would say, \"What do you mean by 'may'? Like, maybe on a whim, because it's a Monday, that today's the day this function decides to allocate?\" Like, what's this \"may\" shit? You either know what you're talking about, or you don't know what you're talking about. Does a given thing allocate or not? And if so, how? It may blow your colleagues minds but you actually get a lot of control over such things in the STL because they tend to delegate important things to traits and policies. Your colleagues need to read a little, as it might save you all a shitload of work.\n\nThen again, writing your own dodgy stl-like library is not actually working on the real problem, which some people like to do, and it lends to job security because it's going to be such a pile of shit you guys would be at a loss to lose any of the original implementors. You see this project sabotage often in the industry.\n\nI am aware the STL isn't always available on an embedded platform, and that may be how you guys end up. I'm merely making the case that their arguments are lazy, if not dismissively ignorant. They want to sound like they know what they're talking about when it actually sounds like they don't. But if you have a whole team trying to agree with one another over this, it sounds like no one is really interested in the truth.", "upvote_ratio": 320.0, "sub": "cpp_questions"} +{"thread_id": "ulqhld", "question": "Some of my team members argue that we should not use anything from the standard library or the standard template library, anything that starts with \"std ::\", as it may use dynamic memory allocation and we are prohibited to use that (embedded application). I argue that it is crazy to try to write copies of standard functions and you can always see which functions would need dynamic memory.\n\nPlease help me with some arguments. (Happy for my opinion but if you can change my mind I will gladly accept it.)", "comment": "Writing your own implementation of something because you can't be bothered to look up whether it does dynamic memory allocation is clearly insane. If you don't have dynamic memory allocation, it should be pretty instantly obvious when you try to use something that needs it and it fails to work properly. std explicitly has stuff like std::array for situations where std::vector is inappropriate.", "upvote_ratio": 300.0, "sub": "cpp_questions"} +{"thread_id": "ulqwij", "question": "I'm working on legacy code that has the following three constructors:\n\n // Constructor 1\n ICLoggerFile(\n const QString& filename = QString(),\n ICLoggerModel::ICLoggerModelLogLevel level = ICLoggerModel::eICLoggerModelErrorLevel,\n quint32 maxsize = 0,\n quint32 backupfiles = 0,\n bool append = true\n );\n \n // Constructor 2\n ICLoggerFile(\n FILE* file,\n ICLoggerModel::ICLoggerModelLogLevel level = ICLoggerModel::eICLoggerModelErrorLevel,\n const QString& filename = QString()\n );\n \n // Constructor 3\n ICLoggerFile(\n void* hnd,\n ICLoggerModel::ICLoggerModelLogLevel level = ICLoggerModel::eICLoggerModelErrorLevel,\n const QString& filename = QString()\n );\n\nInside one of our unit tests, we create an object of the `ICLoggerFile` class as follows:\n\n ICLoggerFile logfile(\"fooBar.log\");\n\nWe are using a 64-bit build (VS2019). The strange thing is that on my local machine, the \\*first\\* constructor is called (as I would expect), but on our Jenkins build server, the \\*third\\* constructor is called, which is not what we want.\n\nMy educated guess is that `\"fooBar.log\"` is of type `const char*`, and for some reason on my local machine this string gets implicitly converted to a `const QString&` and the first constructor is called, while on our Jenkins build server, this does not happen and the third constructor is called.\n\nMy questions are:\n\n1. Is my reasoning correct?\n2. Why does this work on my own laptop, but not on our Jenkins build server? Does this code have undefined behavior or a bug in it somewhere?\n3. How to refactor this code in two ways:\n 1. With as few changes as possible to make the problem go away, but maybe a bit less 'clean'.\n 2. With all the required changes to make the problem go away, and have a 'clean' solution.", "comment": "Picking the 3^rd is wrong since a pointer to const something is not convertible to a pointer to non-const void.\n\nIf your local and CI builds are using the same compiler, then they must be using different switches. MSVC used to be lax about string conversions, so I guess you have some permissive switch set.\n\nEdit : yes, there you go : https://godbolt.org/z/G89qd3qfv", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "ulrgn5", "question": "So my thought is simple, \n\nIf you see clearer at a further distance vs avg population, then your brain in turn has to process more data. \n\nOver the growth of a child, I have to imagine that much keener sight would cause a noticeable difference in ability to process information as you have to always process more. \n\nAny input on this curiosity?", "comment": ">If you see clearer at a further distance vs avg population, then your brain in turn has to process more data. \n\nThat matches intuition, but it ends up not being how neurovisual brain activity works. It's easy to think of ourselves as computers processing pixels in a classical computing loop (more pixels mean more processing, duh!) but we're not classical computing devices.\n\nLower-quality input signal can actually *increase* processing overhead in neural network processing, as more resolution of ambiguity, more interpolation, and more use of higher-order reanalysis is needed to check things.\n\nYou can observe this in people when you see someone who's visually challenged squint for a very long time to read something they might read quickly with correction or an easier task. They aren't generally collecting a bunch more raw visual data, but rather *thinking really hard*, in a specific way, to resolve poor signal.\n\nI'm approaching this from a computing background but I'd strongly suspect substantiation if we looked at something like fMRIs during increasingly difficult visual challenges \u2014 whether by different baseline acuity or just harder tasks, people's brains likely work a lot harder when things get blurrier.\n\nThat said, what gets particularly interesting is looking at neurological *development* in early life. The brain absolutely optimizes around signal received during a \"critical period\" and this leads to things uncorrected astigmatism and amblyopia creating neurologically ingrained visual deficits \u2014 and potentially downstream deficits to other modes, though that gets increasingly more speculative.\n\nhttps://pubmed.ncbi.nlm.nih.gov/29929004/", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "ulsdsi", "question": "I'm working on a compiler for one of the courses I need for my degree and I need to modify a major part of it (the expression evaluator) to handle optional references (I could just overload the entire thing but I don't want to duplicate code and create more work for myself). I came across `std::reference_wrapper` (and its helper functions, `std::ref` and `std::cref`). My question is: is it legal and okay to create an `std::optional<std::reference_wrapper<T>>` as a function parameter (since an `std::optional<T&>` is illegal)? If I, say, have an `std::optional<std::reference_wrapper<std::stringstream>>` and I want to write data to it and have that data remain when I return to the caller, would it be fine to use that (`std::optional<std::reference_wrapper<std::stringstream>>`) when declaring the function, or is this bad practice? Is there some better way I can use (while trying to avoid pointers)?", "comment": "That is fine and what `reference_wrapper` is intended for.\n\nBut let me suggest an alternative: A raw pointer. It is an indirection and it can be null. Problem sovled.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "ulskr9", "question": "Well , the question is in the title , I've found **a lot** more websites that offer c++ courses/tutorials for starters than for C \n\n\nBut from my humble understanding : C is more simple than cpp and I may make some software for my Ubuntu pc with C \n\n\n\nAnyway, probably learning cpp is better, but the question still stands...", "comment": "> Is it worth to learn C before cpp ?\n\nNo. It is akin to learning latin before you learn italian.\n\nThere is nothing that you would learn in C that you cannot (and wont) learn in C++ (apart from the appriciation of C++'s features). At the same time, a lot of regular C would be pretty bad if not illegal C++.\n\nIn fact, by learning the \"simpler\" language first, you additionally burden yourself with doing a lot of stuff manually, that would take no effort in C++.\n\n---\n\n#www.learncpp.com\n\nis the best free tutorial out there. It covers everything from the absolute basics to advanced topics. It follows modern and best practice guidelines.\n\n---\n\nGeneric resource macro below:\n\n---\n\n#www.cppreference.com\n\nis the best language reference out there.\n\n---\n\nStay away from cplusplus.com ([reason](https://www.reddit.com/r/cpp_questions/comments/hjdaox/is_cpluspluscom_reliable_are_there_any/fwljj4w/)), w3schools ([reason](https://www.reddit.com/r/cpp_questions/comments/slvj8m/best_way_to_learn_c/hwczl34/)), geeks-for-geeks ([reason](https://www.reddit.com/r/cpp_questions/comments/p6305k/ways_to_learn_cpp/h9axoo7/)) and educba.com ([reason](https://www.reddit.com/r/cpp_questions/comments/rz5fkl/why_do_functions_pertaining_to_strings_on_visual/hrt7ez8/))\n\nMost youtube tutorials are of low quality, I would recommend to stay away from them as well. A notable exception are the [CppCon Back to Basics](https://www.youtube.com/user/CppCon/search?query=back%20to%20basics) videos. They are good, topic oriented and in depth explanations. However, they assume that you have *some* knowledge languages basic features and syntax and as such arent a good entry point into the language.\n\nAs a tutorial www.learncpp.com is just better than any other resource.", "upvote_ratio": 310.0, "sub": "cpp_questions"} +{"thread_id": "ulskr9", "question": "Well , the question is in the title , I've found **a lot** more websites that offer c++ courses/tutorials for starters than for C \n\n\nBut from my humble understanding : C is more simple than cpp and I may make some software for my Ubuntu pc with C \n\n\n\nAnyway, probably learning cpp is better, but the question still stands...", "comment": "Obligated mention: [CppCon 2015: Kate Gregory \u201cStop Teaching C\"](https://www.youtube.com/watch?v=YnWhqhNdYyk)", "upvote_ratio": 180.0, "sub": "cpp_questions"} +{"thread_id": "ulskr9", "question": "Well , the question is in the title , I've found **a lot** more websites that offer c++ courses/tutorials for starters than for C \n\n\nBut from my humble understanding : C is more simple than cpp and I may make some software for my Ubuntu pc with C \n\n\n\nAnyway, probably learning cpp is better, but the question still stands...", "comment": "They are separate languages. The important thing is that they have different idioms. What is good C is often bad C++. It's all too common that C programmers write a lot of really bad C++.\n\nBut there are lessons you can learn from C expressly for the purpose of learning C++. Namely, you don't have to make a class for every god damn thing. The problem with C++ is people mistaken it as an OOP language. It's not, it's a multi-paradigm language, that only so happens to include OOP. It's also a functional language for almost as long as it's been an OOP language. The vast majority of the STL was donated to C++98 by HP from their in-house Functional Template Library. The point is, classes and inheritance should be among the last things you reach for from the toolbox when crafting a solution.\n\nC++ is indeed a huge language, and learning it is hard because while you can pick up on the syntax quicky, it's the idioms that you really need to master. You can write a lot of really terrible code in C++ by virtue of being a big language. Then again you can write a lot of terrible C code by virtue of being akin to high level assembler. It's not, of course, but the comparison is often made for a reason.", "upvote_ratio": 170.0, "sub": "cpp_questions"} +{"thread_id": "ulswlv", "question": "I was just at the dentist who mentioned that he gets a lot of new mothers who need serious fillings or root canals, even if they had really healthy teeth pre-pregnancy and took good care of their dental health. I didn't get to ask deeply about it but physiologically, how does getting pregnant affect dental health so badly?", "comment": "It has to do with nutrition and vitamins! Basically when people make jokes about babies being parasites, there is a reason for that. The body has to provide to make the baby, and it just so happens that calcium is one of the things they need a massive amount of- for all those bones and calcium rich body parts (like teeth!)\n\nIt\u2019s also why some folks bones become more fragile during pregnancy.", "upvote_ratio": 410.0, "sub": "AskScience"} +{"thread_id": "ulswlv", "question": "I was just at the dentist who mentioned that he gets a lot of new mothers who need serious fillings or root canals, even if they had really healthy teeth pre-pregnancy and took good care of their dental health. I didn't get to ask deeply about it but physiologically, how does getting pregnant affect dental health so badly?", "comment": "Pregnancy-induced Gingivitis is extremely common, and is caused by the fluxuations and different hormones one goes through whilst pregnant. This can make it more difficult to properly clean the teeth due to the swollen tissues, or even dissuade people from doing so because of bleeding and soreness.\n\nAlso, morning sickness creates a higher acid level in the mouth which increases the rate of decay. And, even if there isn't vomitting, if there is heartburn/acid reflux/bile in the throat it does seep up into the oral cavit. And the growing pressure on the abdominal area only decreases the size of the stomach, which can also cause acid reflux. And don't get me started on frequent vomitting and its effect on teeth. (It can erode teeth very quickly and intensely.)", "upvote_ratio": 280.0, "sub": "AskScience"} +{"thread_id": "ulswlv", "question": "I was just at the dentist who mentioned that he gets a lot of new mothers who need serious fillings or root canals, even if they had really healthy teeth pre-pregnancy and took good care of their dental health. I didn't get to ask deeply about it but physiologically, how does getting pregnant affect dental health so badly?", "comment": "[removed]", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "ultkcv", "question": "Could there be cave paintings containing animals we haven't found fossil records for yet? And if there were, how would we tell if the animal being depicted was actually real and not some made up creature?", "comment": "Not as old as cave paintings but still pretty old is the Set animal. Some sort of canine with a forked tail, square ears and a long curved nose. Could be fanciful or a stylistic representation of a known animal or something that went extinct we haven't identified. Most experts lean to the fanciful, but we really don't know and the other gods are associated with real animals.", "upvote_ratio": 30580.0, "sub": "AskScience"} +{"thread_id": "ultkcv", "question": "Could there be cave paintings containing animals we haven't found fossil records for yet? And if there were, how would we tell if the animal being depicted was actually real and not some made up creature?", "comment": "Not a cave painting, but there's always the case of the \"[Meidum goose](https://news.artnet.com/art-world/extinct-goose-egypt-mona-lisa-1947028)\". The Meidum mural is one of Egypt's most famous ancient artworks, a 4,600-year-old painting found in the tomb of a prince named Nefermaat. One of the most interesting details of the mural is a picture of two geese, which have traditionally been identified as red-breasted geese, a species native to Siberia and not found anywhere near Egypt. However, there are a number of differences between the geese in the mural and real red-breasted geese. The red areas on their faces and breasts are smaller, and they have larger white patches on their necks and cheeks. \n\nThis has led to the suggestion that the Meidum geese are not, in fact, red-breasted geese at all, but the only known depiction of a goose native to Egypt that is now extinct. We already have remains of some animals that became extinct during the time of ancient Egypt, such as the Bennu heron (a giant heron that inspired the Egyptian mythical bird known as the Bennu), but not of these geese. Egypt, at the time, was much wetter than it is today, and a number of animals are depicted in ancient Egyptian art that are now either extinct worldwide or no longer found in Egypt.", "upvote_ratio": 10240.0, "sub": "AskScience"} +{"thread_id": "ultkcv", "question": "Could there be cave paintings containing animals we haven't found fossil records for yet? And if there were, how would we tell if the animal being depicted was actually real and not some made up creature?", "comment": "We obviously know about horses, but there are petroglyphs of what appear to be horses and people on horseback in South America hundreds (possibly even thousands) of years after horses are believed to have gone extinct in the Americas. It is unclear if horses persisted within native oral tradition for dozens of generations (which is an incredible feat if true), or if horses persisted in areas long after the known fossil record indicates.", "upvote_ratio": 6470.0, "sub": "AskScience"} +{"thread_id": "ului03", "question": "Hi,\n\nI have a web service that does some reqwest calls to other services. I had quite a challenge to implement it in such a way that the request calls run in parallel, but only those that I need. In the end I got it working like this\n\n`let mut requests: Vec<Pin<Box<dyn Future<Output = Result<FeatureCollection>>>>> = vec![];`\n\nand then later\n\n`let mut responses: Vec<Result<FeatureCollection>> = futures::future::join_all(requests).await;`\n\nAll requests return Featurecollections which is a geo format. So far so good. The web server was `actix_web`, and it worked. Now I need to migrate away from `actix` to `warp`, and this is where I run into problems. If I run this code in the handler\n\n pub async fn handler(mut body: impl Buf) -> Result<impl Reply, Rejection> {\n // call above code through async functions\n }\n\nThe compiler complaints as follows:\n\n error: future cannot be sent between threads safely\n --> src/main.rs:24:10\n |\n 24 | .and_then(handlers::plots::handler);\n | ^^^^^^^^ future returned by `handler` is not `Send`\n |\n = help: the trait `std::marker::Send` is not implemented for `dyn warp::Future<Output = std::result::Result<geojson::FeatureCollection, Rejection>>`\n note: future is not `Send` as this value is used across an await\n --> src/controllers/plots.rs:46:92\n |\n 20 | let mut requests: Vec<Pin<Box<dyn Future<Output = Result<FeatureCollection>>>>> = vec![];\n | ------------ has type `Vec<Pin<Box<dyn warp::Future<Output = std::result::Result<geojson::FeatureCollection, Rejection>>>>>` which is not `Send`\n ...\n 46 | let mut responses: Vec<Result<FeatureCollection>> = futures::future::join_all(requests).await;\n | ^^^^^^ await occurs here, with `mut requests` maybe used later\n\nI sort of get what the error means I think. apparently the trait Send is needed in order for this to work in a multithreaded environment, and Box/Pin don't implement that trait.\n\nBut how do I fix it?", "comment": "You can't implement Send yourself, the compiler is the one that decides if a type is Send or not.\n\nRead [this chapter](https://doc.rust-lang.org/book/ch16-03-shared-state.html) of the book, it describes how to share data between threads.", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "ulw45v", "question": "I was infusing some whiskey and had overfilled the bottle. I noticed when I attempted to force the cork on wood chips that had been floating quickly sank only to rise when I removed the cork. It was overfilled to the point there was no airgap so it didn't seem I was forcing air into the solution and shaking the bottle with the cork forced on didn't cause any change so it's more than currents from the motion of corking. \n\nMy next guess was when you first cork the density at the top of the bottle was higher and it needed time to reach equilibrium. But the. Holding it for a minute or two the pieces never rose until I uncorked it again. \n\nI may be totally misremembering college physics but If I'm increasing pressure I should be slightly compressing the ethanol and increasing the density of it which increases the buoyant forces acting on the chips?\n\nMy only guess is the increased pressure pushed fluid into airpockets in the wood forcing the air out, like cloth getting wet. But then why is it so easily reversible, when I release the cork how is air getting back into those pockets?", "comment": "The increased pressure on the liquid could have compressed the air in the wood chips. That would increase the density of the wood chips, and they sink.\n\nWhen you take the cork out, pressure drops. The air bubbles in the wood chips push the liquid back out, density drops, and the chips float.\n\nThe air might be staying in the chips, just shrinking and expanding as the liquid pressure changes.", "upvote_ratio": 70.0, "sub": "AskScience"} +{"thread_id": "ulw45v", "question": "I was infusing some whiskey and had overfilled the bottle. I noticed when I attempted to force the cork on wood chips that had been floating quickly sank only to rise when I removed the cork. It was overfilled to the point there was no airgap so it didn't seem I was forcing air into the solution and shaking the bottle with the cork forced on didn't cause any change so it's more than currents from the motion of corking. \n\nMy next guess was when you first cork the density at the top of the bottle was higher and it needed time to reach equilibrium. But the. Holding it for a minute or two the pieces never rose until I uncorked it again. \n\nI may be totally misremembering college physics but If I'm increasing pressure I should be slightly compressing the ethanol and increasing the density of it which increases the buoyant forces acting on the chips?\n\nMy only guess is the increased pressure pushed fluid into airpockets in the wood forcing the air out, like cloth getting wet. But then why is it so easily reversible, when I release the cork how is air getting back into those pockets?", "comment": "Liquids are often not noticeably compressible under normal human temperatures and pressures.\n\nIs it possible that what happened is the compression was (near) entirely forced on the cork which was compressed until it no longer displaced its weight and therefore lost buoyancy?", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "ulw45v", "question": "I was infusing some whiskey and had overfilled the bottle. I noticed when I attempted to force the cork on wood chips that had been floating quickly sank only to rise when I removed the cork. It was overfilled to the point there was no airgap so it didn't seem I was forcing air into the solution and shaking the bottle with the cork forced on didn't cause any change so it's more than currents from the motion of corking. \n\nMy next guess was when you first cork the density at the top of the bottle was higher and it needed time to reach equilibrium. But the. Holding it for a minute or two the pieces never rose until I uncorked it again. \n\nI may be totally misremembering college physics but If I'm increasing pressure I should be slightly compressing the ethanol and increasing the density of it which increases the buoyant forces acting on the chips?\n\nMy only guess is the increased pressure pushed fluid into airpockets in the wood forcing the air out, like cloth getting wet. But then why is it so easily reversible, when I release the cork how is air getting back into those pockets?", "comment": "[removed]", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "ulx2s9", "question": "Where did you attend college, what years, and what was the overall experience like?", "comment": "Undergrad is in agriculture from a college in the Deep South. If you\u2019ve seen Letterkenny, it was that, but without hockey.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "ulx2s9", "question": "Where did you attend college, what years, and what was the overall experience like?", "comment": "It was great being away from my awful parents, but my fellow students were such dumbasses. People will reminisce about the great friends they still have from college and I'll wonder why the fuck there didn't seem to be anyone great at my college.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "ulx2s9", "question": "Where did you attend college, what years, and what was the overall experience like?", "comment": "Went straight from high school in '77 to working in a publishing career. Lied a little in the interview. Fake it till ya make it. Seems like a lifetime ago. Oh, it was!", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "ulxe65", "question": "What was it like living during the AIDS/HIV crisis, was it scary?", "comment": "It was the best of times, it was the worst of times. In 1980 at age 22 I took a semester off, moved to Austin, Texas and jumped into the gay crowd with both feet. I made a number of good friends, almost all of them are dead now. The first couple years of the decade were a blast. Then the plague came. Some people were terrified, others were stunned and became reclusive (for many, it was too late). After the test came out in 85(?), the first question acquaintences would ask is \"did you get / are you getting the test.\" I didn't for some years, more on that below. Society in general was still freaking out - absolute hysteria. Everyone was afraid, some with good reason (\\*raises hand*) but a fuckload of people were just reacting hysterically. You never saw someone go into the hospital, but people were disappearing from the scene and we didn't bother wondering what happened to them. A lot of people did like me, and tried to ignore it, but I did start having safer sex. So for me, the latter part of the decade was spent expecting to get sick and die at some point before too long. \n\nWhen I had returned to school in 89, I just assumed that I was infected. Turns out I was right but I wouldn't know that for another years and a half. During which time I met a guy and fell in love. When we hit \"move in together\" we decided that it was probably best too know for sure. Not because there was much that could make a difference in the end but for his sake. So in 91 I got tested. Funny story - the counselor was a friend of his, an acquaintence for me, and when we went to get the test results she was more rattled by my being HIV+ about it than either of us was. He was an AIDS educator, we had discussed it a lot, and I had been prepping myself for years. He promised to stick by me to the end. I had so few CD4 cells that I was thinking about giving them names, so we expected the end to happen fairly soon - doctors gave me six to twelve months. (HAH HAH, I say in Nelson Muntz's voice - I didn't die ppthhpththtp.) Somehow I managed to stay alive, we never had to do the home hospice thing, and next month we'll celebrate the 30th anniversary of our commitment ceremony.", "upvote_ratio": 2510.0, "sub": "AskOldPeople"} +{"thread_id": "ulxe65", "question": "What was it like living during the AIDS/HIV crisis, was it scary?", "comment": "I studied for my doctorate with two people, one of whom (a gay man) had AIDS. He was a funny, brave, smart, wonderful person. We helped each other prepare for orals and our dissertation defenses. \n\nAt first we didn't realize he was sick but then he began to fail quickly. I went to visit him in the hospital and this was at the height of people treating those with AIDS as if they were lepers. The fourth or fifth time I visited it was clear he wouldn't last much longer. In addition to everything else he suffered (rife with Kaposi's sarcoma), he seemed fearful. I remember holding his hand, and how he suddenly found some physical strength in how tightly he gripped mine. \n\nWhen I was leaving I knew in my heart that all the fears about touching someone with AIDS were wrong and that it wasn't a guarantee you would Catch It Too. I bent over to kiss him on the head and we embraced. I knew we were saying goodbye.\n\nThere was not widespread, casual acceptance of alternate lifestyles in the Reagan era. The terrible things people said about gay men at that time are now kind of coming back to me in the hateful way that people interact today regarding some political issues. \n\nHe was a kindhearted, witty, good person; he passed away a few months before getting his degree conferred. Myself, our co-studier, and our professors paid tribute to him at the convocation. It was an impossibly sad time, there was so much sadness it's hard to explain, and so many fine people were lost. \n\nWill always miss you, Doug.", "upvote_ratio": 1910.0, "sub": "AskOldPeople"} +{"thread_id": "ulxe65", "question": "What was it like living during the AIDS/HIV crisis, was it scary?", "comment": "As someone who was (as far as I knew then) straight, not promiscuous (i.e., a loser), and living in a place (Trenton NJ) not particularly known as a gay hotspot?\n\nIt was still fucking terrifying. Yeah, it was originally billed as \"Gay Cancer,\" but it was pretty quickly established that it's not a gay disease. Anyone could get this thing.\n\nI moved to San Francisco in 1996, when I was just turning 23. Made friends with many, many people who were DIRECTLY affected by AIDS - lost loved ones or were HIV positive. The stories are bone-chilling, horrible, they made me literally weep out of empathy.", "upvote_ratio": 1280.0, "sub": "AskOldPeople"} +{"thread_id": "ulxgmo", "question": "Hi Everyone,\n\nHere is my Matrix Multiplication C++ OpenMP code that I have written. I am trying to use OpenMP to optimize the program. The sequential code speed was 7 seconds but when I added openMP statements but it only got faster by 3 seconds. I thought it was going to get much faster and don't understand if I'm doing it right.\n\nThe OpenMP statements are in the fill\\_random function and in the matrix multiplication triple for loop section in main.\n\nI would appreciate any help or advice you can give to understand this!\n\n&#x200B;\n\n #include <iostream>\n #include <cassert>\n #include <omp.h>\n #include <chrono>\n \n using namespace std::chrono;\n \n \n double** fill_random(int rows, int cols )\n {\n \n double** mat = new double* [rows]; //Allocate rows.\n #pragma omp parallell collapse(2) \n for (int i = 0; i < rows; ++i)\n {\n mat[i] = new double[cols]; // added\n for( int j = 0; j < cols; ++j)\n {\n mat[i][j] = rand() % 10;\n }\n \n }\n return mat;\n }\n \n \n double** create_matrix(int rows, int cols)\n {\n double** mat = new double* [rows]; //Allocate rows.\n for (int i = 0; i < rows; ++i)\n {\n mat[i] = new double[cols](); //Allocate each row and zero initialize..\n }\n return mat;\n }\n \n void destroy_matrix(double** &mat, int rows)\n {\n if (mat)\n {\n for (int i = 0; i < rows; ++i)\n {\n delete[] mat[i]; //delete each row..\n }\n \n delete[] mat; //delete the rows..\n mat = nullptr;\n }\n }\n \n int main()\n {\n int rowsA = 1000; // number of rows\n int colsA= 1000; // number of coloumns\n double** matA = fill_random(rowsA, colsA);\n \n \n int rowsB = 1000; // number of rows\n int colsB = 1000; // number of coloumns\n double** matB = fill_random(rowsB, colsB);\n \n \n //Checking matrix multiplication qualification\n assert(colsA == rowsB);\n \n \n double** matC = create_matrix(rowsA, colsB);\n \n //measure the multiply only\n const auto start = high_resolution_clock::now();\n \n //Multiplication\n #pragma omp parallel for \n \n for(int i = 0; i < rowsA; ++i)\n {\n for(int j = 0; j < colsB; ++j)\n {\n for(int k = 0; k < colsA; ++k) //ColsA..\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n }\n \n }\n \n const auto stop = high_resolution_clock::now();\n const auto duration = duration_cast<seconds>(stop - start);\n \n std::cout << \"Time taken by function: \" << duration.count() << \" seconds\" << std::endl;\n \n \n \n //Clean up..\n destroy_matrix(matA, rowsA);\n destroy_matrix(matB, rowsB);\n destroy_matrix(matC, rowsA);\n \n return 0;\n }", "comment": "Move the `matC[i][j]` assignment out of the loop.\n\nAnd pls, no more nested arrays. Double indirection on every element access isn't a great idea. Just use 1D `std::vector`.\n\n*And if I enable AVX2+fp:fast on MSVC, I get FMA instructions.\n\n*`std::for_each(std::execution::par` appears to be slightly faster, but you need an index iterator.\n\n*I'm getting this inner loop:\n\n\t00007FF6BE8417A2 vmovsd xmm0,qword ptr [r8-10h] \n\t00007FF6BE8417A8 vfmadd231sd xmm2,xmm0,mmword ptr [r9+r13*8] \n\t00007FF6BE8417AE vmovsd xmm0,qword ptr [r8-8] \n\t00007FF6BE8417B4 vfmadd231sd xmm2,xmm0,mmword ptr [r9+r15*8] \n\t00007FF6BE8417BA vmovsd xmm1,qword ptr [r8] \n\t00007FF6BE8417BF vfmadd231sd xmm2,xmm1,mmword ptr [r9] \n\t00007FF6BE8417C4 vmovsd xmm0,qword ptr [r8+8] \n\t00007FF6BE8417CA vfmadd231sd xmm2,xmm0,mmword ptr [r9+r12*8] \n\t00007FF6BE8417D0 add r9,r14 \n\t00007FF6BE8417D3 lea r8,[r8+20h] \n\t00007FF6BE8417D7 sub rcx,1 \n\t00007FF6BE8417DB jne `main'::`4'::<lambda_1>::operator()+0D2h (07FF6BE8417A2h) \n\nOddly, when I do it the \"cache friendly\" way (with `vfmadd231pd`), it's much slower.\n\n*https://codereview.stackexchange.com/questions/177616/avx-simd-in-matrix-multiplication\n\n*https://gist.github.com/nadavrot/5b35d44e8ba3dd718e595e40184d03f0\n\n*A simple blocking gives a decent speed up:\n\n\tfor (int j = 0; j < localColsB; j += 8)\n\t{\n\t\tdouble x[8]{};\n\t\tfor (int k = 0; k < localColsA; ++k)\n\t\t\tfor (int jj = 0; jj < 8; ++jj)\n\t\t\t\tx[jj] += rowA[k] * localMatB(k, j + jj);\n\t\tfor(int jj = 0; jj < 8; ++jj)\n\t\t\trowC[j + jj] = x[jj];\n\t}\n\n*Fixed bug. Cache friendly version is much faster. 30ms on 12600. Same result hash as original code.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "ulxixy", "question": "I\u2019ve been obsessed with aging recently (not in a good way, mind you) and I can\u2019t help but notice that I\u2019ve yet to meet a single person who\u2019s 40 or older that still has fun like they did in their teens, 20s, and 30s. Does anyone still get drunk as fuck at parties? Is romance still exciting? Do wild ass things still happen to you that\u2019ll be stories you tell for years to come? I\u2019m terrified of life becoming as boring as it seems when I look at all the older people I know.", "comment": "Do people still do some of that? Sure. But I don't, and I have awesome times. As you get older what you find enjoyable changes.\n\nI mean, in another universe there's someone who's posted to r/ask20somethings asking \"do people in their 20s and 30s still have fun? I mean like, watching cartoons, going down the slide FRONTWARDS AND BACKWARDS, drinking whole sodas? I'm 11 now and it just seems like people in their 20s seem to be boring as shit\"", "upvote_ratio": 1270.0, "sub": "AskOldPeople"} +{"thread_id": "ulxixy", "question": "I\u2019ve been obsessed with aging recently (not in a good way, mind you) and I can\u2019t help but notice that I\u2019ve yet to meet a single person who\u2019s 40 or older that still has fun like they did in their teens, 20s, and 30s. Does anyone still get drunk as fuck at parties? Is romance still exciting? Do wild ass things still happen to you that\u2019ll be stories you tell for years to come? I\u2019m terrified of life becoming as boring as it seems when I look at all the older people I know.", "comment": "Absolutely still having a blast in my 50s. Just not doing stupid shit like I did in my 20s.", "upvote_ratio": 540.0, "sub": "AskOldPeople"} +{"thread_id": "ulxixy", "question": "I\u2019ve been obsessed with aging recently (not in a good way, mind you) and I can\u2019t help but notice that I\u2019ve yet to meet a single person who\u2019s 40 or older that still has fun like they did in their teens, 20s, and 30s. Does anyone still get drunk as fuck at parties? Is romance still exciting? Do wild ass things still happen to you that\u2019ll be stories you tell for years to come? I\u2019m terrified of life becoming as boring as it seems when I look at all the older people I know.", "comment": "I had _more_ fun in my 40s than in my 20s. Including great parties, great travel experiences, awesome friends. I\u2019ve had much more exciting romance in my 40s than in my 20s. I love going to metal gigs.\n\nI still get somewhat drunk sometimes, but \u201cgetting drunk as fuck at parties\u201d really does get boring as you get older, so I wouldn\u2019t call that fun.\n\nYour idea of fun changes as you get older. When I hear my step daughter talking with her friends about partying and going out that sounds mind numbingly boring to me. And of course she thinks what my gf and I talk about is boring as well.\n\nSo you may not be meeting many 40yr olds you think aren\u2019t boring, but that\u2019s just because those 40yr olds aren\u2019t interested in the same stuff young people are into.", "upvote_ratio": 420.0, "sub": "AskOldPeople"} +{"thread_id": "ulzraf", "question": "Edit: I was thinking about kidney and liver transplants, where the donor may still be alive.", "comment": "Interesting question. \n\nBroadly, there are three types of rejection: hyperacute, acute and chronic.\n\nIn hyperacute rejection the organ gets damaged really quickly by premade antibody and immune cell activity. I reckon by the time this was diagnosed the organ would be pretty badly damaged. \n\nIn acute and chronic rejection there is an influx of immune cells which recognise the organ as foreign. In general, this process is recognised by deteriorating graft function, and treated by altering immunosuppression. In this case there are two issues. \n\nThe first is that organ dysfunction has already occurred. This is not necessarily irreparable, but makes retransplanting an organ a challenging proposition. \n\nThe other is that the organ is now suffused with immune cells from the recipient, so transplanting these back into the original donor may have some negative effect, similar to graft Vs host disease. Except we already know they are primed against the donors cells, and theres a lot of inflammation around, so even more risky.\n\nThese issues, combined with the fact that you wouldn't take an organ from someone who couldn't tolerate losing it, and the ever present risk of major surgery, mean that it would never be in the donors best interest to get a retransplant of their own organ. \n\nI can't find any literature on the issue on a cursory look, but will update if I find anything. And am always happy to be corrected.\n\nEdit:\n\n[This](https://onlinelibrary.wiley.com/doi/10.1111/ctr.14554) paper talks about retransplanting transplanted kidneys in the absence of rejection into new recipients (I.e. not the original donor). It has happened 4 times in Europe in the past 20 years. It shows at least that a previously transplanted kidney can be retransplanted safely.", "upvote_ratio": 1180.0, "sub": "AskScience"} +{"thread_id": "ulzraf", "question": "Edit: I was thinking about kidney and liver transplants, where the donor may still be alive.", "comment": "Unfortunately for most organ transplants the donor is dead, so it wouldn't be much use to them. The time window for transplants is pretty small and the rejection would damage the organ really badly, so I doubt it would be much use to anyone else either", "upvote_ratio": 290.0, "sub": "AskScience"} +{"thread_id": "ulzraf", "question": "Edit: I was thinking about kidney and liver transplants, where the donor may still be alive.", "comment": "Well there are instances of healthy donor organs being re-donated and used if that person were to die, but I think if the organ were rejected it would be too damaged to be useful in anyone else. As far as being given back to the donor I don't think that would be possible because of blood supply issues. Like you could remove Kidney A and later put it where B is, but you couldn't put it back where it originally was because the blood supply would no longer be there. But I could be wrong.", "upvote_ratio": 70.0, "sub": "AskScience"} +{"thread_id": "um18by", "question": "Hi. I came across an AI engineer mentioning in an interview that \"AI is just compression\". I was struggling to understand what this means. I figured he was talking about the link of information theory to AI but not sure. He also mentioned the hutter prize which led him to this epiphany of \"AI is just compression\". It seems like a gross oversimplification but maybe there is some logic in there that I am unable to understand.\n\nAlso, can you guys point me towards some resources on this topic. I would love to learn more about \"AI is just compression\"\n\n&#x200B;\n\nEdit: I am talking about these 2 things\n\n[https://en.wikipedia.org/wiki/Hutter\\_Prize](https://en.wikipedia.org/wiki/Hutter_Prize)\n\n[https://youtu.be/boiW5qhrGH4](https://youtu.be/boiW5qhrGH4)", "comment": "EDIT: There's some criticism of my use of the term \"AI\" versus \"ML\". I'm answering the question as I think OP intended it, which is covering the subset of AI which is popular today, which is really ML. So if you read this, and it bugs you that I use AI, please read ML instead, it's what I really mean. If it's not immediately obvious to you why there's a difference or distinction between AI and ML, then there are some interesting discussion in this thread about it.\n\nIt\u2019s probably better to start by saying \u201cAI is just statistics\u201d. \n\nMost AI techniques boil down to [curve fitting](https://en.m.wikipedia.org/wiki/Curve_fitting) (effectively). You take a bunch of data points and try to come up with a function which would generate those same data points given the same inputs (for input/output pairs you already know) and the \u201cright\u201d output for inputs where you don\u2019t already know the answer. \n\nThe big difference with AI is how many data points you feed in to your fitting process, and how many dimensions your curve function has. Dimensions means the number of inputs and outputs. \n\nYou might have trillions of data points you\u2019re fitting and and your curve might have thousands of dimensions. \n\nTaking a huge amount of data and finding a way to represent that data as a (relatively) simple curve or function is \u201cjust compression\u201d. So it\u2019s ok to say that \u201cAI is just compression\u201d \n\nYou won\u2019t really find a book or text on this topic. It\u2019s just a cute observation by someone who knows the subject matter really well. It\u2019s kind of an oversimplification, but it\u2019s a good one.", "upvote_ratio": 480.0, "sub": "AskComputerScience"} +{"thread_id": "um18by", "question": "Hi. I came across an AI engineer mentioning in an interview that \"AI is just compression\". I was struggling to understand what this means. I figured he was talking about the link of information theory to AI but not sure. He also mentioned the hutter prize which led him to this epiphany of \"AI is just compression\". It seems like a gross oversimplification but maybe there is some logic in there that I am unable to understand.\n\nAlso, can you guys point me towards some resources on this topic. I would love to learn more about \"AI is just compression\"\n\n&#x200B;\n\nEdit: I am talking about these 2 things\n\n[https://en.wikipedia.org/wiki/Hutter\\_Prize](https://en.wikipedia.org/wiki/Hutter_Prize)\n\n[https://youtu.be/boiW5qhrGH4](https://youtu.be/boiW5qhrGH4)", "comment": "Are you sure he said AI and not machine learning?\n\nMachine learning can be seen as function estimation. For a given ML problem, there is some true function which is either intractable or unknown, and the task of ML is to come up with a good guess of a function that gets the right answers most of the time (or perhaps we make the stronger claim of getting right answers to within a formally bounded degree of correctness).\n\nThis can be seen as a form of compression. The mapping of problem cases to answers is the uncompressed data, the true function is the output of lossless compression (assuming no noise in the data set), and the ML-discovered function is the output of lossy compression.\n\nIt seems like overstating the case to say that ML _is_ compression, though. And certainly there's more to AI than just ML, and a lot of the non-ML parts of AI don't seem to be about compression. (Except in the trivial sense that all cognition is kinda-sorta about compression: when we come up with a category like \"tree\" or \"dog\" and classify certain objects into it, we are using \"compression\" to avoid the mental effort that would otherwise be required to know the properties of every individual object.)", "upvote_ratio": 160.0, "sub": "AskComputerScience"} +{"thread_id": "um18by", "question": "Hi. I came across an AI engineer mentioning in an interview that \"AI is just compression\". I was struggling to understand what this means. I figured he was talking about the link of information theory to AI but not sure. He also mentioned the hutter prize which led him to this epiphany of \"AI is just compression\". It seems like a gross oversimplification but maybe there is some logic in there that I am unable to understand.\n\nAlso, can you guys point me towards some resources on this topic. I would love to learn more about \"AI is just compression\"\n\n&#x200B;\n\nEdit: I am talking about these 2 things\n\n[https://en.wikipedia.org/wiki/Hutter\\_Prize](https://en.wikipedia.org/wiki/Hutter_Prize)\n\n[https://youtu.be/boiW5qhrGH4](https://youtu.be/boiW5qhrGH4)", "comment": "Your brain doesn't actually store data but it learns how to reproduce by conditioning your neurones. Instead of storing big amounts of data, you can train a set of neurones, which will consume less space compared to the data itself, hence compression.\n\nIt won't be bit perfect though. Using AI for *real* compression is not a good solution.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "um1faj", "question": "What signals are they receiving and why would an enemy plane or munition emit these signals in the first place?", "comment": ">What signals are they receiving \n\nImagine you're hiding in a dark room. And you know someone is looking for you: because in that darkness you can see someone using a flashlight, inspecting every dark corner where you might be hiding ...\n\nIt's the same thing with whatever electromagnetic signal you're using to find and track enemy airplanes: There's got to be a constant stream (like a flashlight in a dark room) of signals (e.g. radio waves emitted by a radar) in order to see anything.\n\nBack to you in the dark room: How do you know you were found? Because the person holding the flashlight is shining the light directly into your face, dead on, and they have stopped looking into other corners ... They obviously know exactly where you are, right?\n\nSame thing with e.g. radar-tracking: Once a radar is starting to track and aim at a target that airplane will know it's being aimed at because there will be a constant beam of radio waves in frequencies that are very typical for a radar...\n\nIn modern military airplanes the radar warning should go off and warn the pilot that he's being aimed at.\n\nSame thing if you use other tracking methods, e.g. laser: Modern military airplanes and helicopters have a laser-warning sensor too.\n\n&#x200B;\n\n>why would an enemy plane or munition emit these signals in the first place?\n\nSee the analogy with the dark room: how are you going to find someone in a very very dark room without a flashlight? Stumble in blindly and just touch everything, hoping your sense of touch will do the job? Yell and shout into the room and politely ask the other person to come out? The flashlight is the easiest and safest way.\n\nSame thing with finding and tracking enemy airplanes: you have to emit signals (e.g. radar) or else you're blind. But it also means that the other side can detect where that signal came from...\n\nIt's a \"cat and mouse\" game.", "upvote_ratio": 600.0, "sub": "AskScience"} +{"thread_id": "um1faj", "question": "What signals are they receiving and why would an enemy plane or munition emit these signals in the first place?", "comment": "In short, the different mechanisms for achieving the lock can be detected. Active radar homing has a radar in the missile sending out signals. Those signals can be detected and classified by the target aircraft. Passive radar homing has a receiver in the missile reacting to specific signals bounced off of the target by the launching system.\n\nTo your question about \u201cwhy would it be built that way\u201d, in order for the attacking plane\u2019s lock to work, those signals need to be in place. No one has created a way to effectively mask the signal in a way that would persist the target lock. So, science to mask the signal hasn\u2019t caught up with science to achieve the lock in the first place.", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "um1faj", "question": "What signals are they receiving and why would an enemy plane or munition emit these signals in the first place?", "comment": "Combat aircraft will have an RWR (radar warning receiver). This will alert them to the radar signals of various possible threats. Most RWR's will be able to tell the difference between various threats, like a specific type of enemy aircraft, or specific type of surface to air missle system.\n\nIt also knows when one of the threats is specifically tracking them, or \"locking them up\". It knows this because instead of seeing a blip of radar energy every few seconds as the radar sweeps across the sky, it sees a constant focus of radar on them as the tracking radar basically points right at them.", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "um28lu", "question": "i.e. the '60s, '70s, etc...", "comment": "The 2020s already seem like a full fricking decade.", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "um28lu", "question": "i.e. the '60s, '70s, etc...", "comment": "2020", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "um28lu", "question": "i.e. the '60s, '70s, etc...", "comment": "The 80s, simply because I spent so much of them waiting to be older, to be out of high school, out of my parents house and away from the boring, parochial, minuscule town they'd settled in.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "um4vqh", "question": "Imagine a struct, having 5 doubles as members + implicit constructors. An instance of this obj is passed to a function by value. Before the function does anything, in the debugger you see that the members are different than their assignments. What might be modifying this copy constructed temp object? We had to pass the obj by reference to solve the issue.", "comment": "Maybe nothing was wrong and the function simply didn't set itself up yet.", "upvote_ratio": 120.0, "sub": "cpp_questions"} +{"thread_id": "um4vqh", "question": "Imagine a struct, having 5 doubles as members + implicit constructors. An instance of this obj is passed to a function by value. Before the function does anything, in the debugger you see that the members are different than their assignments. What might be modifying this copy constructed temp object? We had to pass the obj by reference to solve the issue.", "comment": "The function will expand the stack space to accommodate your struct, and then copy the values from the callee into that space. Before the copy, however, the struct will contain uninitialized values - garbage left over from previous calls. \n\nWith the debugger, always assume that the function starts at the *first statement* inside the scope.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "um5fkv", "question": "There are some movies that whenever they are on, I have to stop what I am doing and watch them. Yes, I've seen them TONS of time but they grab me everytime. Know what I mean? What are yours?\n\n\\#1 Shawshank Redemption \n\\# 2 Peggy Sue Got Married \n\\# 3 Die Hard", "comment": "You may not like my answer, since it's not a movie (well, it *was* a movie, but. . .), but anytime I come across an episode of M.A.S.H. I always watch. It doesn't matter that I've seen every episode a half-dozen times.", "upvote_ratio": 360.0, "sub": "AskOldPeople"} +{"thread_id": "um5fkv", "question": "There are some movies that whenever they are on, I have to stop what I am doing and watch them. Yes, I've seen them TONS of time but they grab me everytime. Know what I mean? What are yours?\n\n\\#1 Shawshank Redemption \n\\# 2 Peggy Sue Got Married \n\\# 3 Die Hard", "comment": "On the lighter side *The Princess Bride* is not something I'll miss if available and for something more dramatic *Master and Commander: The Far side of the World* with Russell Crowe. Is there a better period style actor out there? *Gladiator* is another solid historical movie.", "upvote_ratio": 240.0, "sub": "AskOldPeople"} +{"thread_id": "um5fkv", "question": "There are some movies that whenever they are on, I have to stop what I am doing and watch them. Yes, I've seen them TONS of time but they grab me everytime. Know what I mean? What are yours?\n\n\\#1 Shawshank Redemption \n\\# 2 Peggy Sue Got Married \n\\# 3 Die Hard", "comment": "O Brother Where Art Thou", "upvote_ratio": 240.0, "sub": "AskOldPeople"} +{"thread_id": "um5gwq", "question": "I'm asking this as a fellow \"old person\". (44 F).\n\nIs there a meal service geared toward senior citizens?\nMy mom, who just turned 75, barely eats anything. She's maybe 90 pounds. She has to do a low sodium diet per her doctor because of heart problems. She doesn't like to cook so she eats mostly toast with jam or TV dinners. Those aren't low sodium but it's basically all she eats in a day. \n\nI know there are meal delivery services like Hello Fresh where they send you ingredients to cook every week unless you opt out. She's looking for precooked meals that you just heat up. But it seems like most of these are geared towards a family, there is no \"single \" option unless you want to pay top dollar. Another difficulty is she doesn't have any internet service. \n\nMeals on Wheels wouldn't work for her as she's a capable adult who can drive. She's willing to pay. Is there anything she can do?", "comment": "I don\u2019t know the answer as an \u201cold person\u201d, but as a nurse of 30 years, I\u2019d call her doctor, tell him/her your concerns, and let the multitude of social service options rain on your mother.\n\nI know it seems overwhelming, but there really is a way in this country to feed the elderly; if you need reassurance, send me a DM, tell me where you live, and I\u2019m happy to research your options. Got your back, and thanks for caring so much about your mom; in my experience, that\u2019s not always happening. Take care.", "upvote_ratio": 200.0, "sub": "AskOldPeople"} +{"thread_id": "um5gwq", "question": "I'm asking this as a fellow \"old person\". (44 F).\n\nIs there a meal service geared toward senior citizens?\nMy mom, who just turned 75, barely eats anything. She's maybe 90 pounds. She has to do a low sodium diet per her doctor because of heart problems. She doesn't like to cook so she eats mostly toast with jam or TV dinners. Those aren't low sodium but it's basically all she eats in a day. \n\nI know there are meal delivery services like Hello Fresh where they send you ingredients to cook every week unless you opt out. She's looking for precooked meals that you just heat up. But it seems like most of these are geared towards a family, there is no \"single \" option unless you want to pay top dollar. Another difficulty is she doesn't have any internet service. \n\nMeals on Wheels wouldn't work for her as she's a capable adult who can drive. She's willing to pay. Is there anything she can do?", "comment": "I volunteer for Meals on Wheels in my area. At least here,there is no restriction based on ability to drive. If you need/want the service,you can participate. If low income,there are subsidies. If not,you can pay the full price. However,the meals are not low sodium or made with individual dietary concerns. I myself ,age 64 ,use Daily Harvest,which is plant based,very healthy and frozen. You heat up in microwave or toss in blender for smoothies. Pretty tasty. Not cheap but not overly expensive in my opinion. You could order for your mom based on her preferences. Also,sometimes eating alone is not enjoyable and some company at mealtimes makes all the difference in how much food is consumed.", "upvote_ratio": 100.0, "sub": "AskOldPeople"} +{"thread_id": "um5gwq", "question": "I'm asking this as a fellow \"old person\". (44 F).\n\nIs there a meal service geared toward senior citizens?\nMy mom, who just turned 75, barely eats anything. She's maybe 90 pounds. She has to do a low sodium diet per her doctor because of heart problems. She doesn't like to cook so she eats mostly toast with jam or TV dinners. Those aren't low sodium but it's basically all she eats in a day. \n\nI know there are meal delivery services like Hello Fresh where they send you ingredients to cook every week unless you opt out. She's looking for precooked meals that you just heat up. But it seems like most of these are geared towards a family, there is no \"single \" option unless you want to pay top dollar. Another difficulty is she doesn't have any internet service. \n\nMeals on Wheels wouldn't work for her as she's a capable adult who can drive. She's willing to pay. Is there anything she can do?", "comment": "Get an Instant Pot or slow cooker, make soup or stew by the gallon, and freeze it for her in individual microwave containers. You can do several different batches so that she\u2019s always got some variety.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "um8ehb", "question": "Hi, I've been trying to cross compile my C++ code using the \"-arch i386\" and GCC outputs that it's deprecated for mac OS. I just wanted to know if there is any work around.", "comment": "Cross-compile it to what target? \n\nYou could also compile up your own toolchain. But afaik: macOS stopped supporting 32-bit some time ago.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "um8nb0", "question": "I've been using Dev C++, but it often crashes/closes itself and I lose all unsaved stuff. \n\nI've already tried Visual Studio Code (couldn't make it work correctly), Code::Block (it doesn't seems to have skin support?).\n\nIf those are the best IDEs, how do I compile by cli? I don't really mind using notepad++. lol...", "comment": "You making your life hell. Download visual studio 2022 community edition. And make it easy on yourself.", "upvote_ratio": 130.0, "sub": "cpp_questions"} +{"thread_id": "um8t09", "question": "I am asking because I am learning remotely and trying to prioritize which subjects to focus on. Like how much should they know about each of these topics more or less and which matter the most? Are any other points more important that I should have included? Or are there too many types of jobs using C++ to make any generalizations? To be clear, me being able to make this list only means that I at least know that each item exists, not that I already know a lot about each of them, that is why I am asking this:\n\n* Classes, Objects, Constructors, and Destructors\n* Data Types and Keywords\n* Namespaces\n* Overloading Operators\n* Inheritance\n* Polymorphism\n* Move Semantics\n* Smart Pointers & RAII\n* Exception Handling\n* I/O and Streams\n* Iterators\n* <Algorithm> \n\n* STL\n* Lambdas, Function Objects and Function Pointers\n* Generic Templating\n* Creating and Linking Libraries\n* Cmake\n* Unit Testing\n* Concurrency\n* 3rd Party Libraries\n* Data Structures\n* Sorting Algorithms\n* IPC\n* Debuggers\n* Differences between Compilers\n* Using Different Compiler Flag Options\n* Memory Debugging, Memory Leak Detection, and Profiling\n* Differences between the C++ Standards\n* Differences between Operating Systems\n* Different Ways of Allocating\n\nThank you", "comment": "What very often people do not want to admit is that you are expected to know all of this in entry level. What is not expected is how to combine all of this to solve a problem.", "upvote_ratio": 560.0, "sub": "cpp_questions"} +{"thread_id": "um8t09", "question": "I am asking because I am learning remotely and trying to prioritize which subjects to focus on. Like how much should they know about each of these topics more or less and which matter the most? Are any other points more important that I should have included? Or are there too many types of jobs using C++ to make any generalizations? To be clear, me being able to make this list only means that I at least know that each item exists, not that I already know a lot about each of them, that is why I am asking this:\n\n* Classes, Objects, Constructors, and Destructors\n* Data Types and Keywords\n* Namespaces\n* Overloading Operators\n* Inheritance\n* Polymorphism\n* Move Semantics\n* Smart Pointers & RAII\n* Exception Handling\n* I/O and Streams\n* Iterators\n* <Algorithm> \n\n* STL\n* Lambdas, Function Objects and Function Pointers\n* Generic Templating\n* Creating and Linking Libraries\n* Cmake\n* Unit Testing\n* Concurrency\n* 3rd Party Libraries\n* Data Structures\n* Sorting Algorithms\n* IPC\n* Debuggers\n* Differences between Compilers\n* Using Different Compiler Flag Options\n* Memory Debugging, Memory Leak Detection, and Profiling\n* Differences between the C++ Standards\n* Differences between Operating Systems\n* Different Ways of Allocating\n\nThank you", "comment": "You get paid to get shit done, not how many language feature checkboxes you can tick off. The programming language is just scratching the surface of what\u2019s important in a software engineering job.", "upvote_ratio": 270.0, "sub": "cpp_questions"} +{"thread_id": "um8t09", "question": "I am asking because I am learning remotely and trying to prioritize which subjects to focus on. Like how much should they know about each of these topics more or less and which matter the most? Are any other points more important that I should have included? Or are there too many types of jobs using C++ to make any generalizations? To be clear, me being able to make this list only means that I at least know that each item exists, not that I already know a lot about each of them, that is why I am asking this:\n\n* Classes, Objects, Constructors, and Destructors\n* Data Types and Keywords\n* Namespaces\n* Overloading Operators\n* Inheritance\n* Polymorphism\n* Move Semantics\n* Smart Pointers & RAII\n* Exception Handling\n* I/O and Streams\n* Iterators\n* <Algorithm> \n\n* STL\n* Lambdas, Function Objects and Function Pointers\n* Generic Templating\n* Creating and Linking Libraries\n* Cmake\n* Unit Testing\n* Concurrency\n* 3rd Party Libraries\n* Data Structures\n* Sorting Algorithms\n* IPC\n* Debuggers\n* Differences between Compilers\n* Using Different Compiler Flag Options\n* Memory Debugging, Memory Leak Detection, and Profiling\n* Differences between the C++ Standards\n* Differences between Operating Systems\n* Different Ways of Allocating\n\nThank you", "comment": "I would argue everything from the first block. However, you don't have to know everything in detail.\nFor example: \nYou should know how to use streams, though special stuff as using std::fill I've never used in my 10 year career. Even when useful, I would expect someone to give you std::format instead.\n\nI wouldn't expect you to know the second block (given some exceptions like unit testing), i do expect that they'll teach you where relevant.\n\nIn general, I'm convinced when you are able to demonstrate usage of algorithms and unique_ptr. This combines containers and their iterators, lambdas, RAII, templates (calling them), function overloading, lifetime ...\nAfterwards, I would expect you to be able to explain what you did and how it works. \n\nI believe that when you are able to understand this, you can learn everything else. So if you never used a function pointer, some googling or asking around will most likely be sufficient to use it in its basic form. When a company is deep into something, I would expect them to either be explicit about it or teach you. It's not acceptable to assume any developer to understand the whole of c++", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "um9oz4", "question": "Hi guys, nooby question from an electronics tinkerer. For reference this is for a microcontroller with very minimal resources.\n\nThe WiFi api for my microcontroller (ESP32) requires me to set a struct member that is a `uint8_t[32]` for the SSID. The docs simply showed `xyz.ssid = \"name\"` but that gives the error \"must be modifiable lvalue\". A typecast gives an error for loss of precision. I've tried implementing a c-string strcpy, but can't make it work.\n\nI ended up implementing a disgusting process of setting each ssid array element to an individual char to make it work but it feels hacky and wrong. \n\nI'm sure there is a better way to do this, can anyone help?", "comment": "> For reference this is for a microcontroller with very minimal resources and I'm trying to avoid including lots of headers.\n\nThese two statements do not correlate. A header does not have any runtime overhead in and of itself. The code in the headers is likely much more optimised that what you or I could write.", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "um9vff", "question": "Which book does it exactly refers to?", "comment": "Are you asking about \"a book that specifically provides an introduction to programming\"? There are tons of intro books out there, and I don't think they're referring to a specific one. Here's my favorite: https://openbookproject.net/thinkcs/python/english3e/", "upvote_ratio": 140.0, "sub": "LearnRust"} +{"thread_id": "um9vff", "question": "Which book does it exactly refers to?", "comment": "It\u2019s not referring to a literal book. [The book](https://doc.rust-lang.org/book/) is just a Medium sized online course so that you can get started with rust.", "upvote_ratio": 120.0, "sub": "LearnRust"} +{"thread_id": "umb4gq", "question": "Can non alcoholic beer grow botulism , especially If the cans are a little swollen at the top and one of the bottoms of the cans was popped outwards. You always hear about how you should never consume anything from a swollen or dented can, but what is the likelihood of botulism spores growing in a commercially sold non alcoholic beer?", "comment": "The most important component for botulism risk is pH. The sterilized canning method is a primary means of safety but having acidity in the food is considered a secondary safety barrier. A swollen can is likely over-pressure caused by secondary fermentation, spoilage, or freezing. Botulinum growth of course doesn't necessary produce any noticeable signs of spoilage so something appearing fine could in fact be contaminated with toxin. Botulinum spores are ubiquitous in the environment so improper canning technique should be assumed to be contaminated and unsafe for consumption. This precisely why we commonly see headlines like these: [Soul Cedar Farm recalls peppers over Clostridium botulinum contamination](https://www.foodsafetynews.com/2022/04/soul-cedar-farm-recalls-peppers-over-clostridium-botulinum-contamination/)\n\nCDC of course recommends \"When in doubt, throw it out\" which is really great advice. Botulism really, really sucks.\n\n[https://www.cdc.gov/botulism/consumer.html](https://www.cdc.gov/botulism/consumer.html)", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "umb7p8", "question": "In my custom class I would like to overload & operator so that it returns the address of a member variable.\nIs this a safe approach as I assume it would make it impossible to get the address of the class object or should I just use a 'getMemberAddr()' function", "comment": "> I assume it would make it impossible to get the address of the class object \n \nIt would still be possible using [`std::address_of`](https://en.cppreference.com/w/cpp/memory/addressof). \n \nIn general, it is highly discouraged to overload the unary `&` operator. I think adding the `getMemberAddr()` function would be a better approach. \n \nAlternatively, you might also consider having an accessor `getMember()`, having it return a (potentially const) reference, and using it like so `&obj.getMember()`. I think this is a bit more consistent with how most people write accessors.", "upvote_ratio": 80.0, "sub": "cpp_questions"} +{"thread_id": "umb7p8", "question": "In my custom class I would like to overload & operator so that it returns the address of a member variable.\nIs this a safe approach as I assume it would make it impossible to get the address of the class object or should I just use a 'getMemberAddr()' function", "comment": "The important consideration to make is how confusing this implementation will be to someone who's seeing it with no context. Operators are defined with a very specific set of semantics in mind. If you start changing what those semantics mean, your code suddenly becomes unintelligible to anyone not already familiar with it, or worse, apparently intelligible but secretly doing something unexpected behind-the-scenes.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umbn40", "question": "I am just curious if it is better practice to use a macro instead of creating a new variable?\n\n void csvParser::formatImportCell(csvCell& _cell)\n {\n \n std::string& cellReference = _cell.getCellReference();\n // #define cellReference _cell.getCellReference()\n \n // Remove enclosing quotes\n if (cellReference[0] == '\\\"') {\n stringLibrary::chopLeft(cellReference, 1);\n stringLibrary::chopRight(cellReference, 1);\n }\n \n // Remove double quotes\n stringLibrary::replace(cellReference,\"\\\"\\\"\", \"\\\"\");\n \n // #undef cellReference\n \n }\n\nin this case, I would replace the variable with the macro to the function. \n\n(If I remember correctly I should also use Macros as all caps lock, but I have just left it with the same as the variable name for clarity)", "comment": "Using a macro in modern C++ is (almost) never a good idea. You should try to never have to use them.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "umbn40", "question": "I am just curious if it is better practice to use a macro instead of creating a new variable?\n\n void csvParser::formatImportCell(csvCell& _cell)\n {\n \n std::string& cellReference = _cell.getCellReference();\n // #define cellReference _cell.getCellReference()\n \n // Remove enclosing quotes\n if (cellReference[0] == '\\\"') {\n stringLibrary::chopLeft(cellReference, 1);\n stringLibrary::chopRight(cellReference, 1);\n }\n \n // Remove double quotes\n stringLibrary::replace(cellReference,\"\\\"\\\"\", \"\\\"\");\n \n // #undef cellReference\n \n }\n\nin this case, I would replace the variable with the macro to the function. \n\n(If I remember correctly I should also use Macros as all caps lock, but I have just left it with the same as the variable name for clarity)", "comment": "It would be absolutely atrocious to define a macro like what you just showed there:\n\n1. Macros are entities only the preprocessor can see. When you compile your code the file is first passed through the preprocessor and your macro will mean that at every point after that macro definition the word `cellReference` will be replaced by `_cell.getCellReference()`, even outside this function! You can of cause `#undef cellReference` at the last line of the function, but that just adds complexity. Macros don't know scope - they are not C++ code!\n\n2. Your alternative is a reference variable. A reference variable is not required to actually have a place in memory - in your case it will almost surely just be an alias, i.e. the compiler will actually do what you want: it will just replace `cellReference` with `_cell.getReference()` within the scope where `cellReference` is visible.\n\nAs others said: Macros are almost always a bad idea. If you think \"Should I use a macro here?\" the answer is in 99.999% of cases \"No\". Don't use macro unless there is literally NO OTHER WAY. Macros are for doing one thing on Windows and another on Linux, or one thing on x86-64 and another on ARM, or sometimes you can use paramterized macros for code generation in e.g. unit testing frameworks. But that's it. There are proper C++ constructs for all other cases, and they will have no performance penalty.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umbn80", "question": "For the wisest among us, what would be the best advice you would say to your loved ones about life?", "comment": "Well, I don't know if I am \"the wisest\" of folks, but after 50 years of marriage, raising two kids, being on a job site for 45 years, getting & remaining sober for 18,000+ days, and retiring, becoming a widower, a grandfather, and now being a great-grandfather, my advice to my loved ones is the same as always:\n\nDear Loved Ones: \n\nTake good care of your teeth. You will not regret it. \n\nYou do not have to say everything you think. Sometimes just keeping your mouth shut is a good idea. \n\nIt costs you nothing to be kind to the people, and the animals, you love. Taking a moment to share a kind word or a smile is time well spent. \n\nDon't forget to flirt with your spouse. Just because you have been married for awhile does not mean you need to stop having fun, holding hands, or making out in the car in the driveway. It just means you do it in your own driveway, not your parent's. Treat your life partner well, with love, kindness, and respect, not because of some holiday or anniversary, but because that is how you show your love for the loved ones in your life.\n\nFall down? Get up, brush yourself off, and start again. Repeat as needed.\n\nFind a hobby, sport or pasttime that you can do any time you want, and really enjoy it. Let it become a source of pleasure and joy in your life, something you can turn to when you are stressed out, bored, or worried. You will never regret having interests that bring you joy, make you smarter, relax you, or give you the opportunity to meet others.\n\nLearn to cook. \n\nHang up the phone. Don't forget to spend time in nature. Move your body every day, out from in front of screens and into the sunshine or the rain. Your physical and mental health will benefit from daily outdoor activities, even if you just walk around the block.\n\nTravel when you can, even if it's in your own part of the world. Play music. Fall in love. Life is a gift - open it and do everything. \n\nLearn something every day. At 72 years old, I still have lots on my \"To Do\" list, and I don't let a single day go by without learning something. \n\nHope you all are doing well. Your friend, Herman\u2764", "upvote_ratio": 190.0, "sub": "AskOldPeople"} +{"thread_id": "umbn80", "question": "For the wisest among us, what would be the best advice you would say to your loved ones about life?", "comment": "It is not even remotely fair. Get over the notion that it will be and you will be better prepared for the crap that will come your way.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "umbn80", "question": "For the wisest among us, what would be the best advice you would say to your loved ones about life?", "comment": "Live it. Do it. Love who you love with reckless abandon and take chances. Travel. Never stop learning. \n\nAlso, a fucked up brain chemistry can take you down deeper than you know. Be aware not everyone can do what you can. Be patient with small children and old people and pets. Be kind to others and to yourself. \n\n\nYou like those flowers? Send some to yourself! Money in the bank is great, but not at the cost of not enjoying the now. Skinny dip at least once. Respect nature. Youth is fleeting and one day you'll wake up and 20 years have passed.\n\n\nIf you have a child, know one day you won't know will be the last time you won't be carrying them in your arms. And you won't even be aware, so don't bemoan their dependency on you. \n\n\nOne day you'll talk to your parents and end with an \"ok,ttyl, love you too\" and the next they'll be gone. Tell them now how you remember those little things, promise, they'll remember checking you out of school to go on that picnic too. \n\n\nDon't be unmoving in your opinions, politics, and religion or lack of. Time changes us all.\n\n\nBe the best you ...doesn't matter if you're an astronaut or a vagabond, just give it a decent shot.\n\n\nI miss my parents so much right now. Even though they didn't teach me those things, I learned them anyway and understand their flaws. They probably did the best they could with what they knew or were capable of. \n\n\nForgive.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "umbwe2", "question": "I have as a resource `std::ifstream filestream`, and re-use it for a loop that iterates over filenames:\n```\nfor ( string &filename : filenames ) {\n filestream.open(filename);\n sleep(1); //work\n filestream.close();\n}\n```\nIs my understanding correct:\n- I believe this introduces a memory leak, if the process exits during the `//work` portion of the code.\n- One way to solve this is to make filestream a `std::unique_ptr<std::ifstream>`. This works because both the allocated ifstream and the unique_ptr stay in scope, and ifstream remains re-usable for a call to `open()` after `filestream.get().close()` has been closed on it.\n\nAlso, is this the best way to go about this? (see question title)", "comment": "Why are you reusing that filestream? For performance? Are you actually resuing it? Calling open() and close() is like constructing and destructing that object, so why not just move it inside the scope of for? Then you'll have a perfectly standard RAII stream.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "umbwe2", "question": "I have as a resource `std::ifstream filestream`, and re-use it for a loop that iterates over filenames:\n```\nfor ( string &filename : filenames ) {\n filestream.open(filename);\n sleep(1); //work\n filestream.close();\n}\n```\nIs my understanding correct:\n- I believe this introduces a memory leak, if the process exits during the `//work` portion of the code.\n- One way to solve this is to make filestream a `std::unique_ptr<std::ifstream>`. This works because both the allocated ifstream and the unique_ptr stay in scope, and ifstream remains re-usable for a call to `open()` after `filestream.get().close()` has been closed on it.\n\nAlso, is this the best way to go about this? (see question title)", "comment": "`ifstream` closes in its destructor, it is already a proper RAII type.\n\nthe code is perfectly fine as it is and changing it will make it much worse. \nit may make sense to just not reuse it though and make a local `ifstream` inside the loop.\n\nif it were a `std::vector`, reusing it is much more beneficial", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "umbyou", "question": "Is there a way to get nex element when using a ranged for loop?\n\nFor example can you implement a basic bouble sort with 2 for range?", "comment": "no, you will need to manually loop with index or iterators for sorting", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "umdbot", "question": "I wrote a little bit ago a cmd based program to track my status of series i watch with my girlfriend. The data is saved in a .csv like \u201eSeriesname(char[40]);actualseason(int);actualepisode(int);allseasons(int);allepisodes(int);restepisodes(int)\u201c. The variables are created by a structarray which gets it\u2019s length by the number of lines in the .csv.\n\nThe program works fine via the command input, but I hate to do everytime the inputline in cmd. I thought about transform my program to winapi, wich i never used before. I get started with a tutorial and kind of understand how it works. I was able to create a button, Textfield and listbox and debug it with a cmd output to see what happens.\n\nI implemented the csv read function and i can output everything in cmd. I tried to send the Names via Sendmessage to my listbox, with \u201e(LPARAM)\u201cthis is a Name\u201c\u201c I could fill the listbox, but with \u201e(LPARAM)Struct.Seriesname\u201c it do not work. So it must be the wrong type I think, but I did not find a solution by google it.\n\nIs there an easy way to fix this?\n\nI can provide my code when I\u2019m at home if needed.", "comment": "Do yourself a favour, and use a modern UI framework, such as Qt, or WxWidgets instead of fighting with the Windows API.", "upvote_ratio": 70.0, "sub": "cpp_questions"} +{"thread_id": "ume5c8", "question": "I feel bad for the horny ppl of the past specifically women\n\nhttps://mobile.twitter.com/broyeanice/status/1443665239132839938", "comment": "I rather doubt these are real. It\u2019s easy to fake something to look old. Some of the items on the list are not suspect but some of them just sound like what people today think happened back then. Maybe I missed it but I don\u2019t see any sources cited for this.\n\nIt\u2019s been attributed to McCall\u2019s magazine from 1958. After thinking about it some more, I actually don\u2019t see that many differences between it and what Cosmopolitan magazine suggests. They are equally idiotic. So to be fair, some of those tips are not bad in truth. Get a dog and walk it? I don\u2019t see anything bad there. Even if you don\u2019t catch a husband, you have a nice pet and you\u2019re getting some exercise. Win-win lol.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "ume5c8", "question": "I feel bad for the horny ppl of the past specifically women\n\nhttps://mobile.twitter.com/broyeanice/status/1443665239132839938", "comment": "No first hand experience, but the family history of those days is filled with frustration, forced and failed marriages, judging other family members for seeking happiness, women seen as spinsters at 25, not allowed to educate themselves and forced to stop working when pregnant, partners deemed unfit and other questionable things. And yes, that advice was taken seriously, or at least seen as serious advice. \n\nAnd while some advice was clearly bad and discriminating, some of it was very important. As moving too fast forward with a relationship could easily lead to contracting a disease, becoming pregnant and/or ending up in poverty. As health care and birth control was lacking and poverty was much more common.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "ume5c8", "question": "I feel bad for the horny ppl of the past specifically women\n\nhttps://mobile.twitter.com/broyeanice/status/1443665239132839938", "comment": "People like to read, and so other people crank out shit for them to read. It's better to think of that shit as shit to read, and maybe add some of your own shit if you're reading it in the outhouse, and if you're the type of person who takes that shit seriously, there's a good chance you do use an outhouse. \n\ntldr: It's bung-fodder.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "umegcg", "question": "Why We won't have to move to RUST?", "comment": "You don't have to move to Rust, but you can. It's quite nice there: https://en.wikipedia.org/wiki/Rust%2C_Burgenland", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "umg72y", "question": "I am working on a system in which some actions are time critical, and other actions have to be executed periodically without particular schedule. I can do a certain number of actions until I need to do the time critical stuff again. This number is not always the same. At the moment I use a loop like this:\n \n int actions_allowed, state = 0; \n while (true){ \n // Time critical stuff, actions_allowed is calculated here\n \n while (actions_allowed-- > 0){\n switch (state++){\n case 0:\n // Do stuff...\n break;\n case 1:\n // Do stuff...\n break;\n ...\n case 25:\n state = 0;\n //do stuff\n }\n }\n }\n\nThis is a bit tedious to write. The numbers don't have actual meaning, they just represent an order. If I want to insert something between case 5 and casee 4 I have to change 20 numbers manually. Is there a smarter way to do this?\n\nI thought of the way below, is this less efficient as it uses a lot of incrementation and if statements as opposed to a switch statement?\n\n while (actions_allowed-- > 0){\n int comparator = 0;\n if (state == comparator++){\n // do stuff\n } else if (state == comparator++){\n // do stuff\n } else if (state == comparator++){\n // do stuff\n ...\n } else {\n state = -1;\n }\n state++;\n }", "comment": "Function pointers are awesome for this sort of thing.", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "umg72y", "question": "I am working on a system in which some actions are time critical, and other actions have to be executed periodically without particular schedule. I can do a certain number of actions until I need to do the time critical stuff again. This number is not always the same. At the moment I use a loop like this:\n \n int actions_allowed, state = 0; \n while (true){ \n // Time critical stuff, actions_allowed is calculated here\n \n while (actions_allowed-- > 0){\n switch (state++){\n case 0:\n // Do stuff...\n break;\n case 1:\n // Do stuff...\n break;\n ...\n case 25:\n state = 0;\n //do stuff\n }\n }\n }\n\nThis is a bit tedious to write. The numbers don't have actual meaning, they just represent an order. If I want to insert something between case 5 and casee 4 I have to change 20 numbers manually. Is there a smarter way to do this?\n\nI thought of the way below, is this less efficient as it uses a lot of incrementation and if statements as opposed to a switch statement?\n\n while (actions_allowed-- > 0){\n int comparator = 0;\n if (state == comparator++){\n // do stuff\n } else if (state == comparator++){\n // do stuff\n } else if (state == comparator++){\n // do stuff\n ...\n } else {\n state = -1;\n }\n state++;\n }", "comment": "How about:\n\n static constexpr std::array<void(*)(), 25> actions {&action_0, &action_1, /*...*/, &action_25};\n\nNow you can write a simple algorithm:\n\n std::for_each(std::begin(actions), std::next(std::begin(actions), allowed_actions), std::invoke<void()>);", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "umg72y", "question": "I am working on a system in which some actions are time critical, and other actions have to be executed periodically without particular schedule. I can do a certain number of actions until I need to do the time critical stuff again. This number is not always the same. At the moment I use a loop like this:\n \n int actions_allowed, state = 0; \n while (true){ \n // Time critical stuff, actions_allowed is calculated here\n \n while (actions_allowed-- > 0){\n switch (state++){\n case 0:\n // Do stuff...\n break;\n case 1:\n // Do stuff...\n break;\n ...\n case 25:\n state = 0;\n //do stuff\n }\n }\n }\n\nThis is a bit tedious to write. The numbers don't have actual meaning, they just represent an order. If I want to insert something between case 5 and casee 4 I have to change 20 numbers manually. Is there a smarter way to do this?\n\nI thought of the way below, is this less efficient as it uses a lot of incrementation and if statements as opposed to a switch statement?\n\n while (actions_allowed-- > 0){\n int comparator = 0;\n if (state == comparator++){\n // do stuff\n } else if (state == comparator++){\n // do stuff\n } else if (state == comparator++){\n // do stuff\n ...\n } else {\n state = -1;\n }\n state++;\n }", "comment": "You could use an enum to avoid manually shifting the numbers when you want to insert a step into the middle:\n\nhttps://godbolt.org/z/vTrhrMa4M\n\nAdding the post_init step in order just means making sure it is in order inside the enum, it doesn't matter where it ends up in the switch (though you should prefer in order there as well.) \n\nBe aware the static cast in this example could result in narrowing conversion if you have too many states.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umgtsg", "question": "Basically a question on self sufficiency!", "comment": "Most states would be fucked in this context. The US is reliant on cross-border travel for just about everything", "upvote_ratio": 4380.0, "sub": "AskAnAmerican"} +{"thread_id": "umgtsg", "question": "Basically a question on self sufficiency!", "comment": "I feel like most states would struggle for a while if this happened. We would have serious water issues to deal with.", "upvote_ratio": 3970.0, "sub": "AskAnAmerican"} +{"thread_id": "umgtsg", "question": "Basically a question on self sufficiency!", "comment": "Extremely. A lot of people won't be able to get to work or home. Even using public transit to travel within the state will become impossible.", "upvote_ratio": 3760.0, "sub": "AskAnAmerican"} +{"thread_id": "umhb2t", "question": "With the symptoms being so close to the common cold or a flu, wouldn't most doctors have simply assumed that the first patients were suffering from one of those instead? What made us suspect it was a new virus, and not an existing one?", "comment": "The symptoms were nothing like the cold or flu, thousands were dying in Asia. Virus samples are frequently DNA sequenced worldwide as part of a monitoring program. A new sequence was correlated with high death rates or need for ventilators. \n\nA better question is once we knew for certain we had a new and deadly variant of coronavirus, why did most of the world do nothing to prevent inter-country spread until mid 2020. Protocols were developed in 2003 during the SARS outbreak, and none were followed.", "upvote_ratio": 28150.0, "sub": "AskScience"} +{"thread_id": "umhb2t", "question": "With the symptoms being so close to the common cold or a flu, wouldn't most doctors have simply assumed that the first patients were suffering from one of those instead? What made us suspect it was a new virus, and not an existing one?", "comment": "I work in Healthcare. Let me tell you, COVID is nothing like the cold or flu. We had people coming into the hospital being so sick and not recovering no matter what we did for them. We immediately knew something was wrong and that a ton of people were developing this illness, we just didn't know what it was right away. I can recall patients being sick at the end of 2019 and the healthcare team (us) being on edge because they weren't necessarily recovering. Then 2020 rolls around and this new illness is classified as COVID.\n\nEdit: Clarifying", "upvote_ratio": 3640.0, "sub": "AskScience"} +{"thread_id": "umhb2t", "question": "With the symptoms being so close to the common cold or a flu, wouldn't most doctors have simply assumed that the first patients were suffering from one of those instead? What made us suspect it was a new virus, and not an existing one?", "comment": "It was not really that close to the common cold or the flu. People seem to forget how serious COVID-19 was when it first broke out. Our current situation with the Delta and Omicron, which have a lot lower mortality, has changed our perception of COVID.\n\nSerious cases of COVID required ventilators, which the cold and flu usually don't need. There was also clotting and organ damage. There is also the loss of taste, which is a very strange symptom. They would have noticed these strange symptoms and investigated, especially after autopsies. Then they would have done numerous tests for bacteria, fungi and virus due to the number of patients, and found out about COVID.", "upvote_ratio": 2000.0, "sub": "AskScience"} +{"thread_id": "umhioy", "question": "Mine were Betty Rubble (*The Flintstones*), Mary Ann Summers (*Gilligan's Island*), and Jeannie (*I Dream of Jeannie*).\n\nEdit: I just remembered another early TV crush, Agent 99 on *Get Smart*.", "comment": "The original Batgirl, Yvonne Craig (from the Adam West Batman).", "upvote_ratio": 400.0, "sub": "AskOldPeople"} +{"thread_id": "umhioy", "question": "Mine were Betty Rubble (*The Flintstones*), Mary Ann Summers (*Gilligan's Island*), and Jeannie (*I Dream of Jeannie*).\n\nEdit: I just remembered another early TV crush, Agent 99 on *Get Smart*.", "comment": "The 3 girls skinny dipping in the water tower at the beginning of Petticoat Junction.", "upvote_ratio": 370.0, "sub": "AskOldPeople"} +{"thread_id": "umhioy", "question": "Mine were Betty Rubble (*The Flintstones*), Mary Ann Summers (*Gilligan's Island*), and Jeannie (*I Dream of Jeannie*).\n\nEdit: I just remembered another early TV crush, Agent 99 on *Get Smart*.", "comment": "Keith Partridge (David Cassidy) from \u2018The Partridge Family\u2019 \ud83d\ude0d\u2764\ufe0f", "upvote_ratio": 360.0, "sub": "AskOldPeople"} +{"thread_id": "umhwwc", "question": "I'm currently writing a novel and trying to find (semi-)plausible reasons for how and why future rich people are able to change fundamental characteristics of their own bodies. Those changes would range from eye- or haircolor to changes in hormone production or even changing which parts of the body are able to regenerate and which are not. My limited knowledge makes me think it's indeed not possible but I'm definitely not qualified to make any assumptions which is why I'm asking here!", "comment": "Not with our technological level.\n\nColor change might be possible in future, eg. by gene editing therapy(eg. Imprinting gene code with virus), assuming that method will be faster than organism autocorrection mechanisms. Even then- it will take time, enough time for old cells to die off specifically speaking\n\nRegeneration of lost body parts would need changes that would make subject not longer a human. \"Lab\" grown tissue technically can be transplanted in place of lost one", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "umhwwc", "question": "I'm currently writing a novel and trying to find (semi-)plausible reasons for how and why future rich people are able to change fundamental characteristics of their own bodies. Those changes would range from eye- or haircolor to changes in hormone production or even changing which parts of the body are able to regenerate and which are not. My limited knowledge makes me think it's indeed not possible but I'm definitely not qualified to make any assumptions which is why I'm asking here!", "comment": "I can imagine an engineered virus with a crispr protein specifically tailored to the target person's genes to change a trait like that. If normal biology would not replace the cells fast enough I'm sure there's a hormone cocktail that could be locally administered to help. Maybe this is a taxing operation, or maybe they have drugs to help with that?\n\nCould also be interesting if, say, the targeted virus accidentally started to work on a family member who was not supposed to know about some deception, but they weren't getting the localized helper medications so it just takes a really long time to \"reveal\"?", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "umhwwc", "question": "I'm currently writing a novel and trying to find (semi-)plausible reasons for how and why future rich people are able to change fundamental characteristics of their own bodies. Those changes would range from eye- or haircolor to changes in hormone production or even changing which parts of the body are able to regenerate and which are not. My limited knowledge makes me think it's indeed not possible but I'm definitely not qualified to make any assumptions which is why I'm asking here!", "comment": "[removed]", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "umhysk", "question": "What facts about the United States do foreigners not believe until they come to America?", "comment": "I've encountered many people who underestimate how big it is. I know some folks from South Korea, whose country is functionally an island (ocean on three sides and a closed border on the fourth). They can drive from one end of the country to the other in a matter of hours.\n\nThey intellectually knew America was very large, but until they spent hours in a jet it didn't click just how incredibly huge it really is. Try flying over the southwestern desert regions and realizing \"Holy crap, it just *keeps going*.\"", "upvote_ratio": 12290.0, "sub": "AskAnAmerican"} +{"thread_id": "umhysk", "question": "What facts about the United States do foreigners not believe until they come to America?", "comment": "This might be better addressed to non-Americans. But visitors I've met had a hard time understanding the size of the country, the distances Americans routinely drive, and the lack of good alternatives to driving or flying.", "upvote_ratio": 8950.0, "sub": "AskAnAmerican"} +{"thread_id": "umhysk", "question": "What facts about the United States do foreigners not believe until they come to America?", "comment": "My dad was an immigrant from Britain in the 60s. All his family is still over there. So I'll share some things that have mystified my relatives over the years, when they visited.\n\nThe spread-out nature of things, obviously. Intersections of two four-lane streets seem like parking lots to them.\n\nInsect life. My cousins were baffled by the winking green lights in the air in the summer, and thought I was messing with them when I told them they were bugs. I had to catch one and show them. Some of my relatives have been genuinely freaked out by how LOUD the cicadas and crickets and grasshoppers can get in the evening. The idea of that density of insects, that they can be loud enough you have to raise your voice to be heard over them, was freaky to them.\n\nThe heat. They would always arrive excited for warm weather, and then after a couple of days they'd realize there is a difference between warm and HOT. Fortunately my parents' house had a pool so they could jump in there and recuperate from the high-90s weather.\n\nGuns. It seemed so weird to them that we would drive down my city's main drag and pass four or five gun stores, or be on the highway and see a huge billboard reading \"GUNS NEXT EXIT.\" I remember my cousin saying \"Who is buying guns so casually that they're on their way to somewhere else and see this billboard, and they're like *oh let's pull off here and get some guns*?\" Or how so many shops and restaurants have signs on the door saying \"Weapons prohibited.\" The fact that we need to *specify that* is crazy to them.\n\nThe free refills thing, and soft drinks coming out of \"taps\" (drinks fountains) baffled my one cousin when we were kids, and as adults he told me he had assumed there were underground pipes for every conceivable soft drink beneath every American town, because he thought of them as taps and that's how water gets to water taps.\n\nWhen we were teenagers I tried to take my cousins camping and caving. The caving terrified them, and after that they flat-out refused to sleep in a tent in the woods so we had to get a motel room. I'm not an hardcore outdoorsy guy, but I took it for granted they would enjoy some outdoors like I did. They did not. Years later they are still telling people about their crazy American cousin taking them down into the perilous inky black bowels of the earth hahaha. One of them has a wife, and she was laughing about this family legend, and I was like, \"You know that cave I took them to that they still haven't forgiven me for? That was where I took my wife on our first date.\" And they all just shook their heads.\n\nCountry poverty. They have poor people everywhere, but in Europe it's mostly urban I guess, and rural poverty looks different, and more depressing.", "upvote_ratio": 8870.0, "sub": "AskAnAmerican"} +{"thread_id": "umik09", "question": "Why is there no tick prevention for humans? You can buy prevention for dogs that lasts for months without reapplication, but for humans the best we can do is a bug spray that sometimes works.", "comment": "There is a project underway to develop a 'vaccine' to ticks. Normally we don't notice ticks as their bites don't cause an immune reaction. If we can prime the immune system to react to tick bites, then the resulting inflammation and itching would let us know it was there, and allow removal before it had a chance to properly feed and transmit Lyme or similar diseases.\n\nhttps://www.newscientist.com/article/2297648-mrna-vaccine-against-tick-bites-could-help-prevent-lyme-disease/", "upvote_ratio": 45350.0, "sub": "AskScience"} +{"thread_id": "umik09", "question": "Why is there no tick prevention for humans? You can buy prevention for dogs that lasts for months without reapplication, but for humans the best we can do is a bug spray that sometimes works.", "comment": "[removed]", "upvote_ratio": 31750.0, "sub": "AskScience"} +{"thread_id": "umik09", "question": "Why is there no tick prevention for humans? You can buy prevention for dogs that lasts for months without reapplication, but for humans the best we can do is a bug spray that sometimes works.", "comment": "The main thing only touched upon is simply: Humans regularly bathe. The dogs get the chemical into them and it settles on their skin, and that\u2019s that. It will say right on the application notes that any regular swimming or bathing will necessitate earlier reapplication. Imagine bathing every 0.5-2 days for the entire month, with soap. \n\nNot to mention humans change their \u201cfur\u201d daily also which will also carry away some of the chemical.\n\nThis is from the [K9 Advantix II Tick/Flea FAQ](https://ca.mypetandi.com/our-products/advantix/)\n\n>\tBaths can be given as often as once per month without affecting the performance of the product. If more than one bath is given, K9 Advantix\u00aeII should be reapplied after the second bath.\n\nSo basically you get one bathing before the product is no longer effective. So you could do it and just not bathe for a month if you\u2019d want.", "upvote_ratio": 12750.0, "sub": "AskScience"} +{"thread_id": "umkpaf", "question": "When did you realize that Lily Tomlin was married to a lady?", "comment": "I didn\u2019t notice. \n\nAnd now that I know I still don\u2019t care.", "upvote_ratio": 250.0, "sub": "AskOldPeople"} +{"thread_id": "umkpaf", "question": "When did you realize that Lily Tomlin was married to a lady?", "comment": "Just now, from you, OP. Now I have another irrelevant, unsurprising factoid cluttering up my brain. Thanks.", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "umkpaf", "question": "When did you realize that Lily Tomlin was married to a lady?", "comment": "Apparently today.", "upvote_ratio": 140.0, "sub": "AskOldPeople"} +{"thread_id": "uml7ef", "question": "What facts do Americans usually not believe about the rest of the world, until they see or experience it for themselves?", "comment": "I wouldn't have guessed that Quebec has a French-language version of American pop country music. But then I strayed into the upper range of the SiriusXM dial.", "upvote_ratio": 3980.0, "sub": "AskAnAmerican"} +{"thread_id": "uml7ef", "question": "What facts do Americans usually not believe about the rest of the world, until they see or experience it for themselves?", "comment": "I didn\u2019t think the Swiss were so crazily rules oriented until I went there and saw a sign with a high heel shoe with a circle and slash through it.\n\nThis was on a mountain ridge trail in the high alps. They felt the need to make sure no one was trying to hike that trail in high heels.\n\nAnother trail had a sign that asked you to keep your children on a leash. It looked just like the ones for dogs but had a symbol for a kid rather than a dog.", "upvote_ratio": 3140.0, "sub": "AskAnAmerican"} +{"thread_id": "uml7ef", "question": "What facts do Americans usually not believe about the rest of the world, until they see or experience it for themselves?", "comment": "The US isn't the most -ist or -phobe country by a long shot.\n\nIt's just one of the countries that actually shine a light on it.", "upvote_ratio": 3010.0, "sub": "AskAnAmerican"} +{"thread_id": "umlyj7", "question": "First love. 1967, Ford Galaxy Police Tin Cruiser. What was yours?", "comment": "1960 Karmann Ghia", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "umnbhx", "question": "What star was closest to the Sun 305 million years ago? Is it even possible to predict their positions that far back?", "comment": "Sun [orbits Milky Way every 230 million years. ](https://astronomy.com/magazine/ask-astro/2020/07/in-which-direction-does-the-sun-move-through-the-milky-way) 305 million / 230 million = 1.3 orbits in the past. \n\n305 million years ago the Sun was surrounded by a group of stars, one of which would have been the closest. [This video shows that nearby stars](https://youtu.be/hvEHnvkABas) orbiting the Milky Way get smeared out into a long arc. \n\n[This article](http://beyondearthlyskies.blogspot.com/2013/04/nearest-stars-past-present-and-future.html?m=1) shows the closest star to Earth is going to change in about 25,000 years. \n\nThese two points suggest to me that astronomers can't determine the closest star to the Sun 305 million years ago.", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "umnbhx", "question": "What star was closest to the Sun 305 million years ago? Is it even possible to predict their positions that far back?", "comment": "It's currently impossible to know what the closest star to the Sun was 305 million years ago. It may be possible in many decades, but currently our best information can only tell us the closest stars +/- about 2-3 million years from now.", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "umnmhb", "question": "I am working on the following problem regarding RTL notation.\n\nWhat is the effect of the following sequence of RTL instructions? Describe each one individually and state the overall effect of these operations. Note that the notation \\[x\\] means the contents of memory location x.\n\na. \\[5\\] \u2190 2\n\nb. \\[6\\] \u2190 12\n\nc. \\[7\\] \u2190 \\[5\\] + \\[6\\]\n\nd. \\[6\\] \u2190 \\[7\\] + 4\n\ne. \\[5\\] \u2190 \\[\\[5\\] + 4\\]\n\nI understand what is happening in a - d. However the double brackets in e. are confusing me. Is it saying place the contents of memory location 5 are being added to the contents of memory location 4 and stored back into 5? That would make the most sense, only that nothing was ever loaded into \\[4\\]...so that just throws me off a bit..\n\nLike I said I understand everything else. I appreciate any help or direction.\n\nedit: Thank you to everyone that helped!", "comment": "> Is it saying place the contents of memory location 5 are being added to the contents of memory location 4 and stored back into 5?\n\nNo, that would be [5] \u2190 [5] + [4].\n\nYou can analyze expressions like this by looking at them \"inside-out\". That is:\n\n* What does it mean to evaluate the expression [5]? You're given the definition: it means reading the contents of memory location 5?\n* What does it mean to evaluate the expression [5]+4? It means to add the expression [5] (which you figured out in the previous step) to the *value* 4.\n* What does it mean to evaluate [[5]+4]? I'll leave this one for you.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "umnmhb", "question": "I am working on the following problem regarding RTL notation.\n\nWhat is the effect of the following sequence of RTL instructions? Describe each one individually and state the overall effect of these operations. Note that the notation \\[x\\] means the contents of memory location x.\n\na. \\[5\\] \u2190 2\n\nb. \\[6\\] \u2190 12\n\nc. \\[7\\] \u2190 \\[5\\] + \\[6\\]\n\nd. \\[6\\] \u2190 \\[7\\] + 4\n\ne. \\[5\\] \u2190 \\[\\[5\\] + 4\\]\n\nI understand what is happening in a - d. However the double brackets in e. are confusing me. Is it saying place the contents of memory location 5 are being added to the contents of memory location 4 and stored back into 5? That would make the most sense, only that nothing was ever loaded into \\[4\\]...so that just throws me off a bit..\n\nLike I said I understand everything else. I appreciate any help or direction.\n\nedit: Thank you to everyone that helped!", "comment": "Brackets are denoting memory location.\n\nc is saying that the contents of memory address 7 will contain the result of adding the contents of memory address 5 with the contents of memory address 6.\n\nd is saying that the contents of memory address 6 will contain the result of adding the contents of memory address 7 with the number 4.\n\nNothing is stored in memory address 4.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "umnpdc", "question": "So recently I learned that there are about 1 million people of romani gypsy descent in the U.S. Do they face discrimination like in Europe? Are most people cool with them?\n\nI am just an European and thought it was interesting to know because here racism against them is Jim Crow era style.\n\nThanks for all the replies in advance.", "comment": "Not in any real sense.\n\nThe word \"gypsy\" itself has little real meaning in the United States.", "upvote_ratio": 15180.0, "sub": "AskAnAmerican"} +{"thread_id": "umnpdc", "question": "So recently I learned that there are about 1 million people of romani gypsy descent in the U.S. Do they face discrimination like in Europe? Are most people cool with them?\n\nI am just an European and thought it was interesting to know because here racism against them is Jim Crow era style.\n\nThanks for all the replies in advance.", "comment": "Americans largely don't have a concept of \"gypsies.\" In America, \"traveler\" means something different and is definitely not an ethnic/racial group - it generally means people of all backgrounds who are some type of homeless, and go from place to place. Perhaps some proportion of the roma population in America are \"travelers\" but I don't know. This is not something most people here really think about.", "upvote_ratio": 6790.0, "sub": "AskAnAmerican"} +{"thread_id": "umnpdc", "question": "So recently I learned that there are about 1 million people of romani gypsy descent in the U.S. Do they face discrimination like in Europe? Are most people cool with them?\n\nI am just an European and thought it was interesting to know because here racism against them is Jim Crow era style.\n\nThanks for all the replies in advance.", "comment": "I didn't learn that Gypsy was considered a slur (or even what it actually meant) until I was in my 20s. it's widely used to mean, like, someone who is a free spirit/hippie type (and not in a negative way). \n\nthere's a Lady Gaga song called gypsy that basically refers to \"gypsy life\" as having no plans and being free or whatever. it's a good look into what the word means for most Americans. \n\nso, no, I don't think there's the same kind of discrimination against Romani people here. my guess is that if a Romani person told a random American they are Romani, they'd have to explain what that is.", "upvote_ratio": 5680.0, "sub": "AskAnAmerican"} +{"thread_id": "umo52o", "question": "I\u2019m starting to wonder if there\u2019s any evidence of humans beings purposefully eradicating another species, purely for the benefit of our survival. I know we\u2019ve already made efforts to eliminate the Guinea worm and are pretty close on that end, but I\u2019m wondering if there are other species that used to exist but we had to kill off because it was too dangerous to co-habilitate with.", "comment": "The smallpox virus is as good as extinct. \nThere are still some samples of it [kept in Russian and USA labs for research purposes.](https://www.niaid.nih.gov/diseases-conditions/smallpox)\n\nWe are working on making polio extinct. \n\nMy vote goes to making bedbugs extinct next!\n\nEdit: \u2026 and pubic lice are becoming rare in the West due to the fashion for shaving pubic hair, but I consider that to be a happy side-effect of fashion and not intentional.", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "umo52o", "question": "I\u2019m starting to wonder if there\u2019s any evidence of humans beings purposefully eradicating another species, purely for the benefit of our survival. I know we\u2019ve already made efforts to eliminate the Guinea worm and are pretty close on that end, but I\u2019m wondering if there are other species that used to exist but we had to kill off because it was too dangerous to co-habilitate with.", "comment": "This isn\u2019t a proper answer because the species has survived, but it\u2019s my impression that we almost did this to the American bison. \n\nI remember learning in social studies classes ages ago that the company or companies that built the transcontinental railroad hired hunters to slaughter as many of them possible. (\u201cBuffalo Bill, Buffalo Bill, / Never missed and never will / And the company pays his buffalo bill.\u201d) \n\nI seem to remember that the reason was two-fold. I seem to remember that they thought the vast migrating herds might have caused problems with the building and maintenance of the tracks. Also\u2014and perhaps more important\u2014they were the primary resource native groups on the Great Plains relied on, so slaughtering them was basically an indirect form of genocide, which the railroad companies and the settlers and the US government considered desirable. So it was basically an example of trying to eradicate another species as a way of eradicating a group of people.\n\nI have read that the population of bison collapsed from tens of millions to less than a thousand in the late 1800s, so that was quite close to total extinction. It\u2019s my understanding that the species only survived because aggressive conservation measures were undertaken at that point.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "umo52o", "question": "I\u2019m starting to wonder if there\u2019s any evidence of humans beings purposefully eradicating another species, purely for the benefit of our survival. I know we\u2019ve already made efforts to eliminate the Guinea worm and are pretty close on that end, but I\u2019m wondering if there are other species that used to exist but we had to kill off because it was too dangerous to co-habilitate with.", "comment": "[removed]", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "umostn", "question": "As the title explains I'm looking for a plotting library for C++ that is simple to use and that can be compiled on windows with the MinGW g++ compiler. I have been looking for a while but can't find anything that compiles correctly. Are there any go-to libraries that you guys use that are simple to start using?", "comment": "> Are there any go-to libraries that you guys use that are simple to start using?\n\nPython and matplotlib.\n\nI write my simulation code in C++, write out datafiles, load them in python and then plot there. \n\nDo you really need plotting capability in C++? \n\nUsually you write C++ because you need the speed and usually your programs take quite a while to run. So you will have to store the results anyways, as you wouldnt want to rerun the entire thing just because an axis label is wrong. Hence you might as well use the frankly superior matplotlib.", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "umostn", "question": "As the title explains I'm looking for a plotting library for C++ that is simple to use and that can be compiled on windows with the MinGW g++ compiler. I have been looking for a while but can't find anything that compiles correctly. Are there any go-to libraries that you guys use that are simple to start using?", "comment": "Maybe Matplot++ is the solution. You can check more info in https://github.com/alandefreitas/matplotplusplus", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "umostn", "question": "As the title explains I'm looking for a plotting library for C++ that is simple to use and that can be compiled on windows with the MinGW g++ compiler. I have been looking for a while but can't find anything that compiles correctly. Are there any go-to libraries that you guys use that are simple to start using?", "comment": "I'd recommend just writing the data out to file and using gnuplot. Its scripting language is a little quirky but since it's a domain-specific language designed for plotting it'll feel more natural than anything else. Plus with some tweaking the output looks really good.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umpirv", "question": "Context: I'm a software engineer with about 10 years of experience, all in higher-level languages (C#, Scala, Python, Typescript). I learned enough C to wrap my head around the C memory model. But parts of C++ memory management are still throwing me for a loop. Specifically, I'm finding it *very* hard to figure out when constructors are called implicitly, and particularly when move constructors are called implicitly.\n\nSo Explain it Like I'm Five: how to move constructors work, when and where are they called implicitly, and what should a correctly written move constructor do?", "comment": "First note that all of this also applies to the distinction between copy- and move-assignment operators.\n\n> how to move constructors work,\n\nDepends entirely how you define them. There is nothing in C++ that forces you to define a move constructor. You can get away with just a copy constructor (and maybe a copy assignment operator).\n\nThat said, the core point on why we have copy vs move comes from an intersection of ownership and object lifetimes.\n\nA class may own some resource external to it, e.g. a `std::string` owns a dynamically allocated array that is external to it, which is managed through the `string` object. \n\nTo ensure consistency, if you copy the string, then you want the array to be copied, meaning a new allocation would happen. But sometimes the copy is undesired. For a function parameter you could pass by reference, but that doesnt always apply. That is why we have move semantics. To pass ownership of some resource owned by one object into another object.\n\n> when and where are they called implicitly\n\nRarely. Most of your objects will have a name or some way to reference them(e.g. an index into an array), meaning they are all l-values leading to copy constructor calls.\n\nYou only move from an object when you know that you wont need it anymore. Generally the language does not make that assumption (even though it may be able to prove that you dont use an object anymore).\n\nMove-assignment operators are probably more commonly implicitly invoked:\n\n vector<int> f()\n {\n return { 0, 1, 2, 3 };\n }\n\n vector<int> vec = f(); //gets entirely ellided, with no special constructor called.\n vec = f(); //does move assignment.\n\n> and what should a correctly written move constructor do?\n\nIt should move the ownership from one objec to another and leave the moved-from object in at least a valid-to-destroy state. It is however usually advised to leave the moved-from object in the same astats as a default constructed object.\n\nWhat this means in practice of course depends on your type.\n\nConsider\n\n struct my_string\n {\n char* data = nullptr;\n\n // ... loads of cool code to make this thing useful ...\n\n my_string( my_string&& other ) noexcept \n : data( std::exchange( other.data, nullptr ) ) \n { }\n\n ~my_string()\n {\n delete[] data;\n }\n };\n\nSo the move constructor does two things:\n\n1. It takes the pointer that is originally in `other` into its own internal pointer. This way its \"taking ownership\"\n1. It sets `other.data` to `nullptr`. That way when `other` is destroyed, it doesnt delete the buffer we took ownership of.", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "umpirv", "question": "Context: I'm a software engineer with about 10 years of experience, all in higher-level languages (C#, Scala, Python, Typescript). I learned enough C to wrap my head around the C memory model. But parts of C++ memory management are still throwing me for a loop. Specifically, I'm finding it *very* hard to figure out when constructors are called implicitly, and particularly when move constructors are called implicitly.\n\nSo Explain it Like I'm Five: how to move constructors work, when and where are they called implicitly, and what should a correctly written move constructor do?", "comment": "https://www.youtube.com/watch?v=Bt3zcJZIalk", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "umqweo", "question": "For a template class `A`I can do template instantiation like this `template class MyClass<int>` and put into a cpp file. How would do this if I have templated function `A::foo` as shown below?\n\n void A {\n template<typename T>\n //edit: made typo and didn't include arguments\n void foo(T t);\n };\n\nOkay figured it out:\n\n template A::foo(int);", "comment": "template void A::foo<int>();\n\nAfter your edit, as you deduced\n\ntemplate A::foo(int);\n\nor\n\ntemplate A::foo<int>(int);", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umrg1y", "question": "Wikipedia says that it's pending, and that there are a bit of divergence on wether or not to declare it extinct. Why is that?", "comment": "Congaree National Park is a vast area near where I live that is presumed to be one place the Ivory-Billed woodpecker might be. Friends of mine that are interested in the champion trees of the park talk about four-day expeditions through the swampland, and say that it could very well exist there, but it\u2019s so hard to navigate some areas. \n\nThere\u2019s a video out there of a potential sighting, it\u2019s incredibly grainy and likely a decade old at this point. This is 100% hearsay, but I think it strikes at why they aren\u2019t entirely considered extinct. \n\nHopefully we can find one in the swamps soon, because they are truly beautiful birds (although I have only seen pictures). They have plenty of hiding places in the park, haha", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "umrg1y", "question": "Wikipedia says that it's pending, and that there are a bit of divergence on wether or not to declare it extinct. Why is that?", "comment": "US Fish and Wildlife declared it extinct last fall.\n\nHowever.\n\nThere is a [pre-published journal article](https://www.discoverwildlife.com/news/new-paper-suggests-that-ivory-billed-woodpeckers-still-live-on/) floating around, recently, that claims to have video evidence of Ivory-Billed in a remote Louisiana forest. We will have to wait on the authors and journal process to see what this new evidence is.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "ums6bd", "question": "The [video](https://www.youtube.com/watch?v=73uATsa8y5Y).\n\nAlso, do you, as natives, have some problems with understanding some specific dialects/accents?", "comment": "I definitely couldn't figure out all the words, but it's partially because I'm not really used to listening to Scottish accents. I've found that the more I hear someone speaking with a particular accent, the easier it is for me to understand other people with the same accent.", "upvote_ratio": 490.0, "sub": "AskAnAmerican"} +{"thread_id": "ums6bd", "question": "The [video](https://www.youtube.com/watch?v=73uATsa8y5Y).\n\nAlso, do you, as natives, have some problems with understanding some specific dialects/accents?", "comment": "Here's what I got with the first 30 seconds or so, with no captions (Scout's honor):\n\n(\"Kevin, what's your name?\") \"My name's Kevin Patterson, and I'm a guide at \\[Something something\\]. We're standing here, down in the Borders, and we're just outside of Melrose, which is a famous town. Over to the back of us here, we have the \\[no idea\\], one of the most famous landmarks in the Borders, it's three hills. And the myth is that Merlin the Magician split one hill into three. At the left, the two hills at the back of us, which you can see...\"\n\n\\[Something about how if they're covered in fog/clouds, you won't be getting good weather. He then describes that he's a guide on the River Tweed.\\]\n\nI don't see doing all 4:35, but does that give you a rough idea of what got through?", "upvote_ratio": 370.0, "sub": "AskAnAmerican"} +{"thread_id": "ums6bd", "question": "The [video](https://www.youtube.com/watch?v=73uATsa8y5Y).\n\nAlso, do you, as natives, have some problems with understanding some specific dialects/accents?", "comment": "He speaks a bit fast, but I can understand him. His accent isn't the problem, it's the speed and enunciation. \n\nIs the interviewer Southern? The guy asking the questions sounds like he could be from Tennessee.", "upvote_ratio": 280.0, "sub": "AskAnAmerican"} +{"thread_id": "ums8uw", "question": "Can anyone correct my understanding of the two. From what I can see associated functions are functions that don't have self as a parameter and methods are the ones which do? Is that correct or\n\nall functions defined within an imp block are associated functions even the methods with self parameter??", "comment": "Your second definition is correct. See the [relevant section](https://doc.rust-lang.org/book/ch05-03-method-syntax.html#associated-functions) of the rust book. All functions defined on a type in an `impl` block are associated functions as they are associated with a specific type. Methods are simply associated functions with a receiver of `self`, `&self`, `&mut self`, `self: Box<Self>` etc. and can be called with the [dot operator](https://doc.rust-lang.org/nomicon/dot-operator.html) as `foo.bar()` rather than just `Foo::bar()`.", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "umsfya", "question": "no i do not have obsession with modern c++, BUT i have a project where i have to use every possible way to make it as modern as it can get.\n\ni worked with old c like apis, and i worked with std::11 supported systems, but not with \"ultra modern\"\n\nexample:\n\n\\- no raw pointer, only smart ones. \n\\- lambdas everywhere \n\\- thing what can be done with std::11,14,17,20 so for example no int arr\\[10\\] -> i use vector.\n\nmy question, can you please help me with examples?\n\nfor example what can i change #define MY\\_CONST\\_STRING \"my\\_const\\_string\"? \nshould i use constexpr std::string\\_view{\"my\\_const\\_string\"}?", "comment": "Using features for the same of it can lead to pretty bad code.\n\nThere is nothing wrong with a raw pointer (as long as its not owning and couldnt be a reference instead).\n\nThere is nothing wrong with plain functions (even though a lambda might enable better optimizations).\n\nFor a list of new and old features as well as their support status, refer to https://en.cppreference.com/w/cpp/compiler_support", "upvote_ratio": 240.0, "sub": "cpp_questions"} +{"thread_id": "umsfya", "question": "no i do not have obsession with modern c++, BUT i have a project where i have to use every possible way to make it as modern as it can get.\n\ni worked with old c like apis, and i worked with std::11 supported systems, but not with \"ultra modern\"\n\nexample:\n\n\\- no raw pointer, only smart ones. \n\\- lambdas everywhere \n\\- thing what can be done with std::11,14,17,20 so for example no int arr\\[10\\] -> i use vector.\n\nmy question, can you please help me with examples?\n\nfor example what can i change #define MY\\_CONST\\_STRING \"my\\_const\\_string\"? \nshould i use constexpr std::string\\_view{\"my\\_const\\_string\"}?", "comment": "Lambdas and smart pointers are 20 years old. Hardly \"modern\". Also, depending what you mean with \"lambdas everywhere\", that's not modern, that's just a bad idea. \n\nThis is weird request, but what you probably want is to go to C++23 draft, check what's implemented and then go back using the highlights. The `const(init,eval,expr)` keywords, concepts, contracts (?), spaceship. fmt, ranges etc.", "upvote_ratio": 190.0, "sub": "cpp_questions"} +{"thread_id": "umsfya", "question": "no i do not have obsession with modern c++, BUT i have a project where i have to use every possible way to make it as modern as it can get.\n\ni worked with old c like apis, and i worked with std::11 supported systems, but not with \"ultra modern\"\n\nexample:\n\n\\- no raw pointer, only smart ones. \n\\- lambdas everywhere \n\\- thing what can be done with std::11,14,17,20 so for example no int arr\\[10\\] -> i use vector.\n\nmy question, can you please help me with examples?\n\nfor example what can i change #define MY\\_CONST\\_STRING \"my\\_const\\_string\"? \nshould i use constexpr std::string\\_view{\"my\\_const\\_string\"}?", "comment": "Make the entire library constexpr.\n\nNever take an exact type as a parameter, template every constructor and function argument and use concepts to constrain them.\n\nMake sure that a noexcept version of every function, constructor, operator, etc is possible so that you don't have to pay for what you don't want to use.\n\nEmbrace transactional programming techniques to make your code and your user's code as exception-resilient as possible (but not in noexcept call paths, as it creates unnecessary runtime costs)\n\nInheritance by composition and polymorphism by type erasure and templatization only.\n\nWherever SIMD vectorization is possible, make it happen.\n\nEvery object that internally allocates should take as a template argument a type that is constrained by a concept to match the public API of pmr::memory_resource except the requirements that functions are virtual (or better yet, the composable allocator API that Andrei Alexandrescu recommended in his 2015 cppcon talk about allocators: see https://github.com/lukaszlaszko/allocators )\n\nDon't forget to aggressively support coroutines.", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "umsvcb", "question": "Did you cohabitate before marriage?", "comment": "Born in 67. Never thought about it. Lived with both my ex wives before marriage. Apparently I'm a shitty husband or ignore red flags. My guess is both. \n\nMy parents were born in the late 30's. They both lived with partners after they were divorced. I think it's been pretty normal since the late sixties unless you grew up in a very conservative area.", "upvote_ratio": 770.0, "sub": "AskOldPeople"} +{"thread_id": "umsvcb", "question": "Did you cohabitate before marriage?", "comment": "I wouldn't marry someone I hadn't lived with for at least two years I also wouldn't live with someone unless marriage was in the future. You learn a lot about someone when you live with them. \n\nWhen I was growing up, I'm 55, it was fairly common to cohabitate before marriage.", "upvote_ratio": 540.0, "sub": "AskOldPeople"} +{"thread_id": "umsvcb", "question": "Did you cohabitate before marriage?", "comment": "You\u2019re dumb if you don\u2019t. Bought our first house before we were married, lived together a while before that. Never knew anyone that really frowned on it", "upvote_ratio": 480.0, "sub": "AskOldPeople"} +{"thread_id": "umtasc", "question": "Is Computer Science considered Engineering even though there isn't technically a governing body for it?", "comment": "Computer Science (especially theoretical computer science) is sometimes classified more as a branch of mathematics.\n\nMakes more sense to talk about engineering in terms of software development. A lot of software developers hold a computer science degree, which I think is where the overlap is. In many places, they're commonly called \"software engineers\", but this sometimes upsets licensed Engineers, regulatory boards, etc. I'm not sure of the current state, legally-speaking, in many places. I found [an announcement](https://ncees.org/ncees-discontinuing-pe-software-engineering-exam/) that the National Council of Examiners for Engineering and Surveying was discontinuing their PE exam for Software Engineering after the 2019 session, due to lack of interest.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "umtasc", "question": "Is Computer Science considered Engineering even though there isn't technically a governing body for it?", "comment": "It started in Mathematics.", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "umvae3", "question": "Hi there! I'm a software engineer (25 years old), developing apps using Flutter. I like it, there are many cool aspects but a great piece of my heart is C++ lover and I try to keep studying it. I bought \"The C++ programming language\" by Stroustrup, I'm half way right now and it explains a lot of things but I think I need to read it more times. Meanwhile I try to code in C++ what my brain can imagine, for example I'm writing a repository on GitHub composed by many algorithms all written in C++ where I try to use all my new knowledge but I feel that isn't enough.\n\nI would like to make desktop apps, work with DBs...But if I don't have a specific job to do I feel like this is something but isn't enough to really dirt my hands, furthermore I have already seen these stuffs, now I would like to know and do something more that Dart (or other high level languages) can't allow me to do (use pointers for example).\n\nWith Flutter the beginning was easier for me because there are many discord servers, videos...I mean, make apps with it is also intuitive because we use apps daily but C++ is like something that you don't see but it's there and you can do so many things that find the right one to start could be very hard.\n\nThat's why I'm here, do you have any suggestion on what I could do to improve my skills in a serious manner? I can join projects to help people, I would be very happy to join a team and meet new people with my same interests so we can grow together.", "comment": "Do some projects, try some code challenges in c++, try fixing a bug in some open source software.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "umvae3", "question": "Hi there! I'm a software engineer (25 years old), developing apps using Flutter. I like it, there are many cool aspects but a great piece of my heart is C++ lover and I try to keep studying it. I bought \"The C++ programming language\" by Stroustrup, I'm half way right now and it explains a lot of things but I think I need to read it more times. Meanwhile I try to code in C++ what my brain can imagine, for example I'm writing a repository on GitHub composed by many algorithms all written in C++ where I try to use all my new knowledge but I feel that isn't enough.\n\nI would like to make desktop apps, work with DBs...But if I don't have a specific job to do I feel like this is something but isn't enough to really dirt my hands, furthermore I have already seen these stuffs, now I would like to know and do something more that Dart (or other high level languages) can't allow me to do (use pointers for example).\n\nWith Flutter the beginning was easier for me because there are many discord servers, videos...I mean, make apps with it is also intuitive because we use apps daily but C++ is like something that you don't see but it's there and you can do so many things that find the right one to start could be very hard.\n\nThat's why I'm here, do you have any suggestion on what I could do to improve my skills in a serious manner? I can join projects to help people, I would be very happy to join a team and meet new people with my same interests so we can grow together.", "comment": "Just code. Build a desktop music file organizer. Or build a http server, or build a messaging app. Just code.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "umvjq4", "question": "Right now I'm riding on \"Think you used enough dynamite there, Butch?\"", "comment": "Gentlemen, you can't fight in here! This is the War Room!", "upvote_ratio": 200.0, "sub": "AskOldPeople"} +{"thread_id": "umvjq4", "question": "Right now I'm riding on \"Think you used enough dynamite there, Butch?\"", "comment": "\"What we're dealing with here is a complete lack of respect for the law.\"", "upvote_ratio": 100.0, "sub": "AskOldPeople"} +{"thread_id": "umvjq4", "question": "Right now I'm riding on \"Think you used enough dynamite there, Butch?\"", "comment": "[\"could be raining\"](https://www.youtube.com/watch?v=mC4VflOayBw)\n\n*Young Frankenstein (1974)*", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "umvkle", "question": "I've been on diets since I was 12. I understand the importance of being at a healthy weight, but for hell's sake it's getting harder and harder to lose weight as I age (I'm female). Did you give up or do you continue to work at being your best self instead of eating all of the things?", "comment": "Never decided *that*. \n\nI watched my dad and my uncle and my mom all get fat when they hit their 40s. I vowed not to let that happen and so far so good. Portion sizes, what you bring into the house (they were avid pop, ice cream, chips kind of people) and what you use as cooking oil are important. Also movement and activity. My grandfather was my size and weight all his life and I intend on walking in his footsteps. Still use a pushmower to cut my lawn, still do a big veg garden, still go for a mile walk every night and yoga before bed. Zero snacks is a biggie.", "upvote_ratio": 600.0, "sub": "AskOldPeople"} +{"thread_id": "umvkle", "question": "I've been on diets since I was 12. I understand the importance of being at a healthy weight, but for hell's sake it's getting harder and harder to lose weight as I age (I'm female). Did you give up or do you continue to work at being your best self instead of eating all of the things?", "comment": "I'm the opposite. I've been fat most of my life and never put priority on getting into shape, but getting closer to retirement made me kick things into gear. What's the point of all the retirement money I've been saving if I'm not healthy enough to enjoy it, y'know? I'm in my late forties and lost 50 pounds in the past year with this motivation.", "upvote_ratio": 390.0, "sub": "AskOldPeople"} +{"thread_id": "umvkle", "question": "I've been on diets since I was 12. I understand the importance of being at a healthy weight, but for hell's sake it's getting harder and harder to lose weight as I age (I'm female). Did you give up or do you continue to work at being your best self instead of eating all of the things?", "comment": "Eat all the things. Gave up this year. 52.", "upvote_ratio": 340.0, "sub": "AskOldPeople"} +{"thread_id": "umvm1o", "question": "can someone help me with some <graphics.h> fonctions in c++ ,thank you", "comment": "`<graphics.h>` is a museum piece now. How about something non-ancient like SFML.", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "umvyo9", "question": "Background: I've got an abscessed tooth right now, and in addition to antibiotics, my dentist prescribed T3s for pain management.\n\nIt suddenly occurred to me that across two countries, three cities, five dentists, and ~50 years, I have NEVER been given any other painkiller prescription.\n\nFor non-dental surgery I've had a wide gamut of painkillers: T3, Oxycodone, Naproxen, and a whole pile of others. But for dental work, it's Tylenol 3, only and exclusively.\n\nIs there something about it that is particularly well-suited for dental work, or is it more a case of tradition?\n\n(Aside: Ibuprofen is currently working far better for my pain than the T3s, presumably because it's reducing inflammation.)", "comment": "I am in dental school and we were just talking about this today. Atleast in the USA, 10 or so years ago dentists were among the the highest over prescribers on narcotics aka opium derived pain killers such as hydrocodone. Dentists were an easy target for narcotic seekers, especially young dentists who just graduated and did t know any better. According to our professor.\n\nThere have been studies done that show most dental work only requires Tylenol or Ibuprofen for dental work. Ibuprofen when there is inflammation. T3 w/ codeine the one that is still prescribed sometimes otherwise our school does not prescribe any other narcotics for dental work. And that is from the lead oral surgeon professor who deals with the cases that theoretically should have the most possible pain.", "upvote_ratio": 240.0, "sub": "AskScience"} +{"thread_id": "umvyo9", "question": "Background: I've got an abscessed tooth right now, and in addition to antibiotics, my dentist prescribed T3s for pain management.\n\nIt suddenly occurred to me that across two countries, three cities, five dentists, and ~50 years, I have NEVER been given any other painkiller prescription.\n\nFor non-dental surgery I've had a wide gamut of painkillers: T3, Oxycodone, Naproxen, and a whole pile of others. But for dental work, it's Tylenol 3, only and exclusively.\n\nIs there something about it that is particularly well-suited for dental work, or is it more a case of tradition?\n\n(Aside: Ibuprofen is currently working far better for my pain than the T3s, presumably because it's reducing inflammation.)", "comment": "Alternating acetaminophen and ibuprofen every three hours is commonly advised for dental pain at the dental school clinic in my area. I'd expect them to be on top of best practices. \n\nhttps://www.ada.org/resources/research/science-and-research-institute/oral-health-topics/oral-analgesics-for-acute-dental-pain\n\n>A recent systematic overview in JADA including data on over 58,000 patients following third-molar extractions found that when comparing the pain-reducing efficacy of NSAIDs and opioid analgesics, the combination of 400 mg ibuprofen with 1,000 mg acetaminophen was more effective than any opioid-containing regimen and was also associated with a lower risk of adverse events.", "upvote_ratio": 70.0, "sub": "AskScience"} +{"thread_id": "umvyo9", "question": "Background: I've got an abscessed tooth right now, and in addition to antibiotics, my dentist prescribed T3s for pain management.\n\nIt suddenly occurred to me that across two countries, three cities, five dentists, and ~50 years, I have NEVER been given any other painkiller prescription.\n\nFor non-dental surgery I've had a wide gamut of painkillers: T3, Oxycodone, Naproxen, and a whole pile of others. But for dental work, it's Tylenol 3, only and exclusively.\n\nIs there something about it that is particularly well-suited for dental work, or is it more a case of tradition?\n\n(Aside: Ibuprofen is currently working far better for my pain than the T3s, presumably because it's reducing inflammation.)", "comment": "Studies (Moore et al.) show that staggering ibuprofen and Tylenol is actually the most effective course for dental pain, such as after an extraction. If you\u2019re in pain because of an infection - which is very often the case, an antibiotic is often what will actually manage the pain much more effectively, as it is actually helping what is causing the pain. \n\nI see dozens of emergency walk ins / toothaches a week, and I maybe write for controlled substances less than 5 times a week. What I tell patients is that narcotics don\u2019t really do much for dental pain, they more help you sleep / make the acute phase more manageable if it\u2019s something that is just crazy painful - but there are better ways to manage it.\n\nPatients regularly tell me that ibuprofen is more effective than Norco for their dental pain.\n\nWhen I was in school we would routinely give 20+ Vicodin for an easy tooth extraction. The reasoning? We were told that it was what patients expected and if we didn\u2019t give them out in private practice patients would be upset / not come back because they thought we were mean. And then the opioid epidemic hit and it\u2019s now the total opposite , but honestly it\u2019s for the best. I see so many patients that are in recovery, and many of them had their first exposure to drugs from a dentist when they got their wisdom teeth taken out.", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "umvzho", "question": "Did anyone ride a motorcycle during those years and if so what year, make and model? I had a friend who had a restored Triumph Tiger and it was a cool bike.", "comment": "I rode a Tiger a few times. Liked it. I was heavy into MC between about 63 and 68. Road raced up and down the West Coast, traveled with a Suzuki dealership that also sold Triumphs, and whoa, did we ever like the Suzuki better. Japanese bikes were still pretty much disposable at the time, but they were getting as fast as the British bikes in some ways, and the 250cc class was dominating road racing, beating bigger bikes. \n\nMy best bike was a Suzuki X6, AKA T-20, AKA \"Hustler\". A two-stroke twin with a 6 speed transmission, and slingshot acceleration. Our dealership built one into a full-blown road racer that was competitive at the national level. We won a bunch of trophies, and novice-professional points, and when our probationary period was up, we quit. Serious professional racing required more to win, than we had available to offer. Tons of fun while it lasted. \n\nI've owned several bikes since then, and wouldn't mind one today. I've never been a \"biker\", although I sense that their love of motorcycles is as real as mine. I just don't see the need for it to be an entire way of life. Even though it was for a few years, I looked like a normal norman off the bike.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "umvzho", "question": "Did anyone ride a motorcycle during those years and if so what year, make and model? I had a friend who had a restored Triumph Tiger and it was a cool bike.", "comment": "I am woman and I used to ride motorcycles but not until 1998. I'm disabled now mentally and physically and will never ride again, but I used to say that riding a MC was like being on a carnival ride for hours at a time. My license plate frame says, \"Live to ride.\"", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "umvzho", "question": "Did anyone ride a motorcycle during those years and if so what year, make and model? I had a friend who had a restored Triumph Tiger and it was a cool bike.", "comment": "I had a 1963 Honda 150 ([CA95](https://www.bike-urious.com/baby-dream-1964-honda-ca95-benly/)) in high school (1970).", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "umw3ig", "question": "Hi team,\n\nAs the title, any good lightweight c++ local socket library recommendation for embedded Linux for inter process communication?\n\nthanks guys!", "comment": "ZeroMQ for the win!\n\nhttps://zeromq.org/\n\nThey recently introduced new thread safe patterns of scatter/gather and client/server, in addition to the many previous other patterns. (By thread-safe they mean more than one thread can read/write to the same socket.)\n\nIt is ultra-high performance (it was selected as the protocol for the large hadron collider at CERN which deals in tera and peta-byte scale - per day - processing). \n\nWe are talking hundreds of thousands of messages per second.\n\nWhat's better is you can easily switch from in-memory message transfer between threads, to interprocess communication using Unix sockets for IPC, to TCP to scale up your deployments from multi-threaded to multi-process to multi-server deployments simply by changing your urls protocol and addresses and appropriate. Currently supported protocols include tcp, udp, pgm, epgm, inproc and ipc.\n\nFinally, it is ported to many programming languages. Say you want to do some high speed processing in C++, send some data to a python app to do machine learning with TensorFlow, and then return the result to C++ to resume high performance process. With ZeroMQ this becomes very easy. Combine that with a high performance messaging serialization library like Google protocol buffers and now you can weave magical constructs, scaling to hundreds or thousands of nodes.\n\nI have had very good results with both of these technologies on raspberry pi.\n\nHappy coding!\n\n\n/Edit for typos", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "umw3ig", "question": "Hi team,\n\nAs the title, any good lightweight c++ local socket library recommendation for embedded Linux for inter process communication?\n\nthanks guys!", "comment": "I've found NNG to be high quality, also has less restrictive license. https://nng.nanomsg.org/\n\nZeroMQ is another one.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umw3ig", "question": "Hi team,\n\nAs the title, any good lightweight c++ local socket library recommendation for embedded Linux for inter process communication?\n\nthanks guys!", "comment": "I'd look for some shared memory libraries. Lower overhead than sockets.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "umw5mv", "question": "Hi all. I found that on [this webstite](https://www.digitalwelt.org/en/digital-subcultures/scam-baiting-hacking/) there are some words that won't show anything on Google if I copy-paste them (\"Vayne-RaT\" for instance). \n\n[Webpage section with unsearchable words](https://preview.redd.it/rxl4m32qhqy81.png?width=823&format=png&auto=webp&s=f8555f3a6061d9a5ae8a12575b3828613e267b3f)\n\nI've found that actually what is going to the clipboard is a weird formatted string disguised as the normal text, for this I have used a clipboard viewer tool. This is the content that is being sent to the clipboard:\n\n[Clippboard content with weird-formatted words highlighted](https://preview.redd.it/cxn4l3k0iqy81.png?width=821&format=png&auto=webp&s=15a5cd4ac23d5a8a28ee79c374102638ae5410cf)\n\nSo the question is, how did he do that?", "comment": "Looks like he's replacing characters in the strings with ones which look very similar (or identical) in Unicode (vs plain ascii).\n\nFor example:\n\n`CrunchRAT` typed out manually == `43 72 75 6e 63 68 52 41 54` \nhttps://cyberchef.org/#recipe=To_Hex('Space',0)&input=Q3J1bmNoUkFU\n\n&nbsp;\n\n`\u0421run\u0441hR\u0410\u03a4` copied from his article == `d0 a1 72 75 6e d1 81 68 52 d0 90 ce a4` \nhttps://cyberchef.org/#recipe=To_Hex('Space',0)&input=0KFydW7RgWhS0JDOpA\n\n&nbsp;\n\nI used CyberChef to pull/identify these (links above)", "upvote_ratio": 100.0, "sub": "AskComputerScience"} +{"thread_id": "umw5mv", "question": "Hi all. I found that on [this webstite](https://www.digitalwelt.org/en/digital-subcultures/scam-baiting-hacking/) there are some words that won't show anything on Google if I copy-paste them (\"Vayne-RaT\" for instance). \n\n[Webpage section with unsearchable words](https://preview.redd.it/rxl4m32qhqy81.png?width=823&format=png&auto=webp&s=f8555f3a6061d9a5ae8a12575b3828613e267b3f)\n\nI've found that actually what is going to the clipboard is a weird formatted string disguised as the normal text, for this I have used a clipboard viewer tool. This is the content that is being sent to the clipboard:\n\n[Clippboard content with weird-formatted words highlighted](https://preview.redd.it/cxn4l3k0iqy81.png?width=821&format=png&auto=webp&s=15a5cd4ac23d5a8a28ee79c374102638ae5410cf)\n\nSo the question is, how did he do that?", "comment": "The way the author did it isn't difficult, etagawesome\n has a great explanation. \n\nThe thing I wonder is *why* the author would do it. It seems like strange wannabe hacker tactics; anyone reading the article could obviously search for the terms, but why would they want to prevent people from searching it in the first place?", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "umw5mv", "question": "Hi all. I found that on [this webstite](https://www.digitalwelt.org/en/digital-subcultures/scam-baiting-hacking/) there are some words that won't show anything on Google if I copy-paste them (\"Vayne-RaT\" for instance). \n\n[Webpage section with unsearchable words](https://preview.redd.it/rxl4m32qhqy81.png?width=823&format=png&auto=webp&s=f8555f3a6061d9a5ae8a12575b3828613e267b3f)\n\nI've found that actually what is going to the clipboard is a weird formatted string disguised as the normal text, for this I have used a clipboard viewer tool. This is the content that is being sent to the clipboard:\n\n[Clippboard content with weird-formatted words highlighted](https://preview.redd.it/cxn4l3k0iqy81.png?width=821&format=png&auto=webp&s=15a5cd4ac23d5a8a28ee79c374102638ae5410cf)\n\nSo the question is, how did he do that?", "comment": "whatever technique he used, it doesnt work in firefox, nothing is obfuscated, copy-pasting vayne-rat works\n\nedit: \n \n Feature Policy: Skipping unsupported feature name \u201caccelerometer\u201d. www-widgetapi.js:961:251\n Feature Policy: Skipping unsupported feature name \u201cautoplay\u201d. www-widgetapi.js:961:251\n Feature Policy: Skipping unsupported feature name \u201cclipboard-write\u201d. www-widgetapi.js:961:251\n Feature Policy: Skipping unsupported feature name \u201cencrypted-media\u201d. www-widgetapi.js:961:251\n Feature Policy: Skipping unsupported feature name \u201cgyroscope\u201d. www-widgetapi.js:961:251\n Feature Policy: Skipping unsupported feature name \u201cpicture-in-picture\u201d. www-widgetapi.js:961:251\n\nfound that in the console, i see some clipboard-write stuff", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "umwxey", "question": "When you make a root beer float, do you put in the ice cream or soda first?", "comment": "Ice cream then soda. If you put the ice cream in after it'll splash.", "upvote_ratio": 1440.0, "sub": "AskAnAmerican"} +{"thread_id": "umwxey", "question": "When you make a root beer float, do you put in the ice cream or soda first?", "comment": "ice cream!", "upvote_ratio": 1340.0, "sub": "AskAnAmerican"} +{"thread_id": "umwxey", "question": "When you make a root beer float, do you put in the ice cream or soda first?", "comment": "Ice cream. Fill the glass. The root beer fills the cracks, and partially solidifies, coating the scoops of ice cream with sweet goodness.", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "umxe7i", "question": "Mine is Sicilian & Eskimo cultures.", "comment": "Yeast. Very versitile. Very underappreciated even among biologists.", "upvote_ratio": 1290.0, "sub": "AskAnAmerican"} +{"thread_id": "umxe7i", "question": "Mine is Sicilian & Eskimo cultures.", "comment": "Kefir. Yogurt cultures get a lot of attention for promoting gut health, but kefir is the top notch probiotic option.", "upvote_ratio": 490.0, "sub": "AskAnAmerican"} +{"thread_id": "umxe7i", "question": "Mine is Sicilian & Eskimo cultures.", "comment": "They all have some good little thing going for them.\n\nBut as a whole, Western Civilization, obviously, whatever its imperfections. There's just no contest.", "upvote_ratio": 230.0, "sub": "AskAnAmerican"} +{"thread_id": "umxgx4", "question": "I am very new to C++ and programming in general. I don't understand why this is happening. Thank you in advance for any help. I feel very lost.\n\nThe error messages look like this:\n\n`Error C2039 'print': is not a member of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'`\n\nI get an error for every function from student.h when I use it in roster.cpp.\n\nroster.cpp\n\n #include <iostream>\n #pragma once\n #include <ostream>\n #include \"roster.h\"\n #include \"student.h\"\n #include <string>\n \n using namespace std;\n \n void Roster::classRosterParse(string studentData) {\n \n \tsize_t rhs = studentData.find(\",\");\n \tstring studentID = studentData.substr(0, rhs);\n \n \tsize_t lhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tstring firstName = studentData.substr(lhs, rhs-lhs);\n \n \tlhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tstring lastName = studentData.substr(lhs, rhs - lhs);\n \n \tlhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tint age = stoi(studentData.substr(lhs, rhs - lhs));\n \n \tlhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tint daysInCourse1 = stoi(studentData.substr(lhs, rhs - lhs));\n \n \tlhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tint daysInCourse2 = stoi(studentData.substr(lhs, rhs - lhs));\n \n \tlhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tint daysInCourse3 = stoi(studentData.substr(lhs, rhs - lhs));\n \n \tlhs = rhs + 1;\n \trhs = studentData.find(\",\", lhs);\n \tstring strDegreeProgram = studentData.substr(lhs, rhs - lhs);\n \n \tDegreeProgram degreeProgram = SECURITY;\n \tif (strDegreeProgram == \"Network\") {\n \t\tdegreeProgram = DegreeProgram::NETWORK;\n \t}\n \telse if (strDegreeProgram == \"Software\") {\n \t\tdegreeProgram = DegreeProgram::SOFTWARE;\n \t};\n };\n \n void Roster::printDegree(DegreeProgram degreeProgram) {\n \tfor (int i = 0; i < Roster::amountOfStudents; i++) {\n \t\tif (classRosterArray[i]->getDegreeProgram() == degreeProgram) {\n \t\t\tclassRosterArray[i]->print();\n \t\t};\n \t}\n };\n \n void Roster::printInvalidEmail() {\n \tbool any = false;\n \t\tfor (int i = 0; i < Roster::amountOfStudents; i++) {\n \t\t\tstring emailAddress = (classRosterArray[i]->getEmailAddress());\n \t\t\tif (emailAddress.find(\" \") ||\n \t\t\t\t!emailAddress.find(\"@\") ||\n \t\t\t\t!emailAddress.find(\".\")) {\n \t\t\t\tany = true;\n \t\t\t\tcout << classRosterArray[i]->getEmailAddress() << endl;\n \t\t\t};\n \t\t}\n \tif (!any) cout << \"NO INVALID EMAILS\" << endl;\n };\n \n \n void Roster::printAverageDaysInCourse(string studentID) {\n \tfor (int i = 0; i < Roster::amountOfStudents; i++) {\n \t\tcout << (classRosterArray[i]->getDaysInCourse()[0] + classRosterArray[i]->getDaysInCourse()[1] + classRosterArray[i]->getDaysInCourse()[2]) / 3 << endl;\n \t}\n };\n \n void Roster::addStudentData(string studentID, string firstName, string lastName, string emailAddress, int age,\n \tint daysInCourse1, int daysInCourse2, int daysInCourse3, DegreeProgram degreeProgram) {\n \t\tint daysArray[3] = {\n \t\t\tdaysInCourse1, daysInCourse2, daysInCourse3\n \t\t};\n //\t\t\tclassRosterArray[amountOfStudents+1] = new student(studentID, firstName, lastName, emailAddress, age,\n \t\t//\t\tdaysArray, degreeProgram);\n };\n \n void Roster::removeStudentData(string studentID) {\n \tfor (int i = 0; i <= amountOfStudents; i++) {\n \t\tif (classRosterArray[i]->getStudentID() == studentID);\n \t}\n };\n \n void Roster::printAll() {\n \tfor (int i = 0; i < Roster::amountOfStudents; i++) {\n \t\tclassRosterArray[i]->print();\n \t}\n };\n \n void print();\n \n\nstudent.h\n\n #pragma once\n #include <iostream>\n #include <iomanip>\n #include <stdio.h>\n #include \"degree.h\"\n using std::string;\n using std::cout;\n \n class student {\n \n public:\n \n \tstudent();\n \tstudent(string studentID, string firstName, string lastName, string emailAddress, int age,\n \t\tint daysInCourse[], DegreeProgram degreeProgram);\n \t~student();\n \n \t//how many classes they were taking\n \tconst static int totalDays = 3;\n \t\n private:\n \t//defines the format of the information for each student\n \n \tstring studentID;\n \tstring firstName;\n \tstring lastName;\n \tstring emailAddress;\n \tint age = {};\n \tint daysInCourse[totalDays] = {};\n \tDegreeProgram degreeProgram = {};\n \n public:\n \t//getters\n \n \tstring getStudentID();\n \tstring getFirstName();\n \tstring getLastName();\n \tstring getEmailAddress();\n \tint getAge();\n \tint* getDaysInCourse();\n \tDegreeProgram getDegreeProgram();\n \n \t//mutators\n \n \tvoid editStudentID(string studentID);\n \tvoid editFirstName(string firstName);\n \tvoid editLastName(string lastName);\n \tvoid editEmailAddress(string emailAddress);\n \tvoid editAge(int age);\n \tvoid editDaysInCourse(int daysInCourse[]);\n \tvoid editDegreeProgram(DegreeProgram degreeProgram);\n \n \tvoid print();\n };\n\nstudent.cpp\n\n #include <iostream>\n #include \"student.h\"\n using std::string;\n \n using namespace std;\n \n \tconst static int totalDays = 3;\n \n \t//getters\n \tstring student::getStudentID() {\n \t\treturn studentID;\n \t};\n \tstring student::getFirstName() {\n \t\treturn firstName;\n \t};\n \tstring student::getLastName() {\n \t\treturn lastName;\n \t};\n \tstring student::getEmailAddress() {\n \t\treturn emailAddress;\n \t};\n \tint student::getAge() {\n \t\treturn age;\n \t};\n \tint* student::getDaysInCourse() {\n \t\treturn daysInCourse;\n \t};\n \tDegreeProgram student::getDegreeProgram() {\n \t\treturn degreeProgram;\n \t};\n \n \n \t//mutators\n \t//\"this->\" is a pointer that you use when two elements have the same name, use it to link to the class object\n \tvoid student::editStudentID(string studentID) {\n \t\tthis->studentID = studentID;\n \t};\n \tvoid student::editFirstName(string firstName) {\n \t\tthis->firstName = firstName;\n \t};\n \tvoid student::editLastName(string lastName) {\n \t\tthis->lastName = lastName;\n \t};\n \tvoid student::editEmailAddress(string emailAddress) {\n \t\tthis->emailAddress = emailAddress;\n \t};\n \tvoid student::editAge(int age) {\n \t\tthis->age = age;\n \t};\n \tvoid student::editDaysInCourse(int daysInCourse[]) {\n \t\tfor (int i = 0; i < totalDays; i++)\n \t\t\tthis->daysInCourse[i] = daysInCourse[i];\n \t};\n \tvoid student::editDegreeProgram(DegreeProgram degreeProgram) {\n \t\tthis->degreeProgram = degreeProgram;\n \t};\n \n \n \t//whole record\n \n \tvoid student::print() {\n \t\tstd::cout << getStudentID();\n \t\tstd::cout << \"First Name:\" << getFirstName();\n \t\tstd::cout << \"Last Name:\" << getLastName();\n \t\tstd::cout << \"Email Address:\" << getEmailAddress();\n \t\tstd::cout << \"Age:\" << getAge();\n \t\tstd::cout << \"Days In Course:\" << getDaysInCourse();\n \t\tstd::cout << \"Degree Program:\" << getDegreeProgram();\n };\n\ndegree.h\n\n #pragma once\n #include <iostream>\n \n enum DegreeProgram { SECURITY, NETWORK, SOFTWARE };\n\nroster.h\n\n #pragma once\n #include <iostream>\n #include \"student.h\"\n #include \"degree.h\"\n using std::string;\n \n int amountOfStudents = 5;\n \n class Roster {\n \n \tstatic const int amountOfStudents = 5;\n public: \n \n \tRoster();\n \n \t//null pointer doesn't have to point to an object, just acts as a placeholder that will be replaced later\n \tstring* classRosterArray[amountOfStudents];\n \n \tvoid classRosterParse(string studentData);\n \tvoid printAll();\n \tvoid printDegree(DegreeProgram degreeProgram);\n \tvoid printInvalidEmail();\n \tvoid printAverageDaysInCourse(string studentID);\n \tvoid addStudentData(string studentID, string firstName, string lastName, string emailAddress, int age,\n \t\tint daysInCourse1, int daysInCourse2, int daysInCourse3, DegreeProgram degreeProgram);\n \tvoid removeStudentData(string studentID);\n };\n\nmain.cpp\n\n #include <iostream>\n #include \"degree.h\"\n #include \"student.h\"\n #include \"roster.h\"\n \n using namespace std;\n \n int main()\n {\n const string studentData[] =\n {\n \"A1,John,Smith,John1989@gm ail.com,20,30,35,40,SECURITY\",\n \"A2,Suzan,Erickson,Erickson_1990@gmailcom,19,50,30,40,NETWORK\",\n \"A3,Jack,Napoli,The_lawyer99yahoo.com,19,20,40,33,SOFTWARE\",\n \"A4,Erin,Black,Erin.black@comcast.net,22,50,58,40,SECURITY\",\n \"A5,Trenton,Hallman,Trentonhallman@gmail.cosm,19,30,35,52,SOFTWARE\" \n };\n \n \n Roster classRoster;\n {\n //classRoster.printAll();\n //for (int i = 0; i < amountOfStudents; i++) {\n // classRosterParse(string studentData).studentData[i];\n //};\n };\n return 0;\n }", "comment": "\n string* classRosterArray[amountOfStudents];\n\n\nclassRosterArray is an array of pointers to string\n\n classRosterArray[i]->print();\n\nstd:: string doesn't have a member called `print`", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "umyimx", "question": "You know how people especially some young people say the dislike modern music/society/style. Were there people who felt the same or because they didn't have internet to compare it to anything they never really felt to complain about it.", "comment": "Interesting question. \n\nI was a kid in the 70s \n\nAdolescent in the 80s \n\nCollege in the 90s\n\nLooking back it never occurred to me the living in the 90s was a blessing and a great time to be alive. At the same time, I was also too young to know if the 80s and 70s were good or bad. I was a kid\u2026you just rode your skateboard and saved paper route money for the new Dead Kennedys record. Life was simple; but I wasn\u2019t an adult with adult perspectives. \n\nLooking back\u2026would you relive the 90s? Abso-fucking-loutley", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "umyimx", "question": "You know how people especially some young people say the dislike modern music/society/style. Were there people who felt the same or because they didn't have internet to compare it to anything they never really felt to complain about it.", "comment": "In the 80s I and all my peers thought America, and specifically its youth culture, was as shallow and dumb as it could possibly get. We looked back on the 60s with nostalgia.", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "umyimx", "question": "You know how people especially some young people say the dislike modern music/society/style. Were there people who felt the same or because they didn't have internet to compare it to anything they never really felt to complain about it.", "comment": "There was plenty to dislike about both decades, but particularly the 1970s, what with Vietnam, Watergate, stagflation, the oil crisis, high unemployment, high inflation, cities cutting services, high crime -- it was bad. The early 1980s was more of the same, then the economy recovered but we still had the crack epidemic and the AIDS crisis. Plus the whole country took a sharp turn to the right. \n\nMany of the problems of today -- climate change, income disparity, conservative judges, Evangelical Christian control over the Republicans, fear of minorities, militarization of the police, deregulation, abandonment of antitrust law, betrayal of the unions, worship of billionaires -- started in the 1980s. Heck, young Donald Trump began his self-mythologizing in the 1980s. He built Trump Tower in 1983, using his father's political connections to get the project approved.", "upvote_ratio": 110.0, "sub": "AskOldPeople"} +{"thread_id": "umyxn9", "question": "When traveling internationally, when do you decide to exchange your money? Before your trip or after arriving at your destination?", "comment": "In my case, always after arrival. \n \nGet a Schwab high yield checking account. Use it to withdraw cash at the ATM in your destination country. Schwab will reimburse most ATM and conversion fees. So much more cost-effective than getting foreign money from your bank stateside, or at a foreign currency exchange abroad. \n \nHeck, even using your debit card from your regular bank is still more cost-effective than walking into your bank or using an exchange kiosk. But you probably won't get your ATM fees reimbursed like with Schwab.", "upvote_ratio": 990.0, "sub": "AskAnAmerican"} +{"thread_id": "umyxn9", "question": "When traveling internationally, when do you decide to exchange your money? Before your trip or after arriving at your destination?", "comment": "I get the local currency from an ATM there. Pulling directly from the ATM gives you the best exchange rate\n\nEdit: a few more tips\n\n-exchange desks/kiosks will always have a worse conversion rate than the ATM so they can make money, ATMs will use the true rate\n\n-get a debit card that reimburses ATM fees, mine does $20 a month so I rarely pay these when traveling\n\n-bring some USD with you that can be converted at an exchange just in case you can't immediately get to an ATM but this should be your reserve\n\n-get a credit card with no foreign transaction fees and pay with this as much as you can. In my experience Visa > Mastercard > Amex in terms of what is accepted more abroad\n\n-whenever you pay with card, always choose to pay in the local currency. Similar to using the ATM, when you pay in the local currency the bank will do the conversion to USD using the true rate. If you choose to pay in USD, the vendor gets to decide what the conversion rate is (usually says on the machine) and it will almost always be worse than the true rate", "upvote_ratio": 780.0, "sub": "AskAnAmerican"} +{"thread_id": "umyxn9", "question": "When traveling internationally, when do you decide to exchange your money? Before your trip or after arriving at your destination?", "comment": "[deleted]", "upvote_ratio": 610.0, "sub": "AskAnAmerican"} +{"thread_id": "un1nhe", "question": "https://mars.nasa.gov/raw_images/1064629/\n\nPicture that has people already racing to conclusions about Aliens.", "comment": "This looks like a chunk of rock has weathered/fallen out between the intersection of two [joints](https://en.wikipedia.org/wiki/Joint_%28geology%29), i.e., two Mode I (extensional) fractures. If you look at the point at the top of the \"door\" and then beyond onto the outcrop surface above it, you can see the continuation of these fractures (and where they intersect along that weathered surface, further back into the image). Joints are extremely common on Earth and form through a variety of mechanisms. If they are joints as opposed to shear fractures (i.e., Mode II or Mode III, it's hard to tell from a photo like this, but I'd still bet joints though in reality, a conjugate set of shear fractures would give you the same end result), the expectation is that they would form parallel to the direction of maximum stress and in a condition where tensile fractures are possible. This typically means either that they form in the very shallow subsurface (where confining pressure is low enough to not preclude fractures forming in the tensile regime) or in the presence of sufficiently high pore fluid pressure to allow tensile fractures to still form (for any of you [Mohr circle](https://en.wikipedia.org/wiki/Mohr's_circle) fans out there, this implies that the pore fluid pressure is sufficient to shift the minimum principal stress into the tensile regime but that differential stress is still low enough to intersect the failure envelope in the tensile regime). It's also extremely common for multiple sets (where a set implies a group of semi-evenly spaced joints with a common orientation) of joints to form and for blocks of rock defined by these intersections to weather out of an outcrop surface, leaving behind angular crevices, not unlike this feature. So yeah, there are probably millions upon millions of similar rock faces on Earth that if photographed from a particular angle with the light right conditions would appear to form a \"door way\" like this.", "upvote_ratio": 750.0, "sub": "AskScience"} +{"thread_id": "un21dy", "question": "I really look forward to that.", "comment": "Some time after it is implemented in the three most common compilers.", "upvote_ratio": 290.0, "sub": "cpp_questions"} +{"thread_id": "un21dy", "question": "I really look forward to that.", "comment": "When the STL is standardized as a module so probably sometime after C++23", "upvote_ratio": 170.0, "sub": "cpp_questions"} +{"thread_id": "un21dy", "question": "I really look forward to that.", "comment": "Don't know but I really like them, I hope they become more popular soon.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "un40af", "question": "How does fruit bats actually transmit diseases to us ? Because we won't know whether the fruits in our supermarkets are bitten by bats, but we still eat them carelessly. But whether there is a nipah outbreak people in some communities blame nearby bats and start killing bats. Can we really blame bats or is deforestation/ pig farms the cause?", "comment": "It\u2019s a little bit of all these things. Nipah is naturally found in fruit bats, they\u2019re the reservoir species. It could potentially spread to pigs if a pig were to eat fruit that an infected bat had bitten or had other body fluids on. From there it could spread to other pigs and people. Deforestation brings wildlife into closer contact with people and makes these spillover events more likely. The bats have likely been living with it for a long time, it\u2019s just that we\u2019re having more wildlife contact as we remove their habitat. If you\u2019re interested in this sort of thing, I highly recommend the book, Spillover. It\u2019s all about diseases that jump from species to species.", "upvote_ratio": 110.0, "sub": "AskScience"} +{"thread_id": "un4pau", "question": "Hey guys I am a big fan of multilingual learning and I am willing to become a translator in the U.S cuz I heard translator is not paid badly there.(btw I am computer science student) If everything goes well I will choose writer/cartoonist as my avocation also.", "comment": "You will do best in the medical field, but you will have to do a bit of schooling for it. You have to learn a lot of medical terms in both languages and take tests, but I'm sure it's a rewarding job. I loved working with the translators.", "upvote_ratio": 140.0, "sub": "AskAnAmerican"} +{"thread_id": "un4pau", "question": "Hey guys I am a big fan of multilingual learning and I am willing to become a translator in the U.S cuz I heard translator is not paid badly there.(btw I am computer science student) If everything goes well I will choose writer/cartoonist as my avocation also.", "comment": "Translation pay is directly tied to your qualifications. For example, translating legal contracts, patents, medical research, etc. pays one hell of a lot more than virtually everything else (entertainment, packaging, instruction manuals, and the like). \n\nTo get translation jobs in such fields, however, you generally need to be a good writer in the target language plus have specific knowledge in the domain in demand.\n\nIf you really want to go down this path the best option is to build experience in house at a large firm or government agency that has a need for a specific type of translation that you are qualified or willing to learn about, and then build up your profile and eventually go freelance.\n\nOne good source on all this is [Nataly Kelly of Hubspot](https://borntobeglobal.com/).", "upvote_ratio": 70.0, "sub": "AskAnAmerican"} +{"thread_id": "un4pau", "question": "Hey guys I am a big fan of multilingual learning and I am willing to become a translator in the U.S cuz I heard translator is not paid badly there.(btw I am computer science student) If everything goes well I will choose writer/cartoonist as my avocation also.", "comment": "I literally have no context for how the translation field works, how well translators get paid, or how much demand there is for English to Mandarin translation.", "upvote_ratio": 30.0, "sub": "AskAnAmerican"} +{"thread_id": "un4qt1", "question": "I\u2019m currently Uk based, and am open to the idea of moving abroad to expand my life and work horizons.\n\nI have been warned by my colleagues that the work/life balance is terrible for my counter parts in in America. \n\nAt the moment, I work 38 hour weeks, and I am not expected to work overtime. I have 30 paid vacation days off. Including an additional week for Christmas, and around 8 bonus bank holidays scattered thou out the year.\n\nHow does this compare to my counterparts on your side of the pond?", "comment": "\"STEM\" is such a wide range of careers it's impossible to answer on that basis. My wife and I both work in STEM fields and our jobs are extremely different.\n\nThe only thing I notice is that you have a few more vacation days. I have 15 days PTO, 5 sick days, plus our 11 federal holidays off. My wife has been with her company longer so she gets 5 extra.\n\nBut I work 100% from home, 40 hours a week. In reality I spend about half that time actually working. Can't get more balanced than that.", "upvote_ratio": 150.0, "sub": "AskAnAmerican"} +{"thread_id": "un4qt1", "question": "I\u2019m currently Uk based, and am open to the idea of moving abroad to expand my life and work horizons.\n\nI have been warned by my colleagues that the work/life balance is terrible for my counter parts in in America. \n\nAt the moment, I work 38 hour weeks, and I am not expected to work overtime. I have 30 paid vacation days off. Including an additional week for Christmas, and around 8 bonus bank holidays scattered thou out the year.\n\nHow does this compare to my counterparts on your side of the pond?", "comment": "In general the work life balance is better in the UK but our pay is higher. \n\nIt's largely going to be dependent on your job and where you work though.", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "un4qt1", "question": "I\u2019m currently Uk based, and am open to the idea of moving abroad to expand my life and work horizons.\n\nI have been warned by my colleagues that the work/life balance is terrible for my counter parts in in America. \n\nAt the moment, I work 38 hour weeks, and I am not expected to work overtime. I have 30 paid vacation days off. Including an additional week for Christmas, and around 8 bonus bank holidays scattered thou out the year.\n\nHow does this compare to my counterparts on your side of the pond?", "comment": "You're not going to notice any major differences. Did your colleagues see that in a movie? I don't know where people get this stuff. As long as you're not working somewhere for the glamour of it and you have the ability to separate yourself from your work, you'll be fine. You're probably not going to get 30 days + 1 week of vacation, but you'll probably also only be putting in 30 hours of real work a week in an office job, if that.", "upvote_ratio": 90.0, "sub": "AskAnAmerican"} +{"thread_id": "un52qh", "question": "As an expatriate, I\u2019m endlessly amused at how possums can freak out people who\u2019ve never seen one before.", "comment": "The Bison\n\nMajestic and beautiful beasts.", "upvote_ratio": 200.0, "sub": "AskAnAmerican"} +{"thread_id": "un52qh", "question": "As an expatriate, I\u2019m endlessly amused at how possums can freak out people who\u2019ve never seen one before.", "comment": "'Possums are cool enough, for sure!\n\nBut my little vote goes to Bobcats. They're kind of a mini-me version of a panther. All the same characteristics, just a lot smaller. \n\nThey can be just as dangerous as a panther though, so if you spot one you need to stay clear. Bobcats are crazy territorial and will most definitely ruin your day if you step on their turf.", "upvote_ratio": 140.0, "sub": "AskAnAmerican"} +{"thread_id": "un52qh", "question": "As an expatriate, I\u2019m endlessly amused at how possums can freak out people who\u2019ve never seen one before.", "comment": "[mountain goats](https://en.wikipedia.org/wiki/Mountain_goat) - To me, they don\u2019t really look like goats that can be found elsewhere, but maybe I\u2019ve not seen enough of the world\u2019s goats. Either way, they\u2019re pretty nimble for being so brawny.\n\nEdit: Reading a bit of the article, they\u2019re not goats despite the name. So, that explains it then.", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "un552t", "question": "The resonance of the American accent is quite the most difficult part for me to understand.\nIt's there with every word but still hard to imitate.\nAngggg kind of sound. \nCan you suggest how a non native speaker learn this resonance? \nOr is it just Vocal Fry?", "comment": "Is there any certain part of America you're referring to? Accents vary greatly depending on where you are.", "upvote_ratio": 730.0, "sub": "AskAnAmerican"} +{"thread_id": "un552t", "question": "The resonance of the American accent is quite the most difficult part for me to understand.\nIt's there with every word but still hard to imitate.\nAngggg kind of sound. \nCan you suggest how a non native speaker learn this resonance? \nOr is it just Vocal Fry?", "comment": "OP you may be talking about vocal fry?\n\nhttps://www.voices.com/blog/vocal-fry/\n\nIn which case it's not an accent, it's a... Fad? Not sure the exact definition, but it's definitely not used by everyone. Mainly young women.", "upvote_ratio": 440.0, "sub": "AskAnAmerican"} +{"thread_id": "un552t", "question": "The resonance of the American accent is quite the most difficult part for me to understand.\nIt's there with every word but still hard to imitate.\nAngggg kind of sound. \nCan you suggest how a non native speaker learn this resonance? \nOr is it just Vocal Fry?", "comment": "I don't notice a buzz in any of the American accents I have encountered.", "upvote_ratio": 390.0, "sub": "AskAnAmerican"} +{"thread_id": "un5yll", "question": "By **technological standard** I mean OSI (TCP\\\\IP) protocol, SQL commands, XML, JSON, coding standards KISS, DRY, YAGNI, design patters\n\nBy **IT trends** I mean UML, microservices, project manifestations AGILE, SCRUM, REST and SOAP protocols, NoCode, latest programming languages (Go, Rust, Typescript, Kotlin)\n\nOne time you think Java and Objective C are standard for mobile development and now Kotlin and Swift took their niche\n\nI can be wrong categorizing concepts above because of little experience in programming so I would like ask your view of technologies", "comment": "There are two kinds of standard: de jure and de facto.\n\nDe jure, \"by right\", standards are written down and backed by a recognised body, often a standards body but not necessarily. For example ISO/IEC 27001 and ANSI Common Lisp and ANSI C.\n\nDe facto, \"in fact, whether by right or not\", standards are not backed by a recognised body as a standard, and are probably not written down. They're just what everyone does. SABSA is the de facto (it's the only) security architecture method for example. Objective-C, and now Swift, are a kind of de facto standard for Apple devices, because that's what Apple has decided it will be. (Not sure Java was ever a mobile device standard).\n\nAn industry trend is just the latest fashion, there are no standards for a trend, e.g. cloud or zero trust, although there might eventually be for specific ways of delivering on the trend. Object oriented analysis/design/programming is (hopefully was) an industry trend, UML was a standard (it is a de jure standard) originally created by a modelling tool maker, Rational, who wanted to make sure the OO world didn't fragment and so they could sell more copies of Rose. UML was later adopted by the OMG (Object Management Group, a standards group, not Oh My God!).\n\nI wouldn't call KISS or DRY or YAGNI standards or industry trends: they're more heuristics or principles. A crutch, monkey-see-monkey-do, rules for the less capable, if I am being rude. Because in 90% of cases they're right but in 10% they aren't.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "un61oz", "question": "Do Americans strictly trace their ages using their birthdays? Is it unusual to consider yourself one year older when the new year comes? Even though your birthday hasn't come yet?", "comment": "Yes we count our age by our last birthday.\n\nBetween times or close to our next birthday, we might say \"almost\" the next age.", "upvote_ratio": 670.0, "sub": "AskAnAmerican"} +{"thread_id": "un61oz", "question": "Do Americans strictly trace their ages using their birthdays? Is it unusual to consider yourself one year older when the new year comes? Even though your birthday hasn't come yet?", "comment": "I count my age by how many trips I take around the Sun, not how many trips the Earth takes around the Sun . \n\nStrictly my birthday. Same for anyone I know.", "upvote_ratio": 280.0, "sub": "AskAnAmerican"} +{"thread_id": "un61oz", "question": "Do Americans strictly trace their ages using their birthdays? Is it unusual to consider yourself one year older when the new year comes? Even though your birthday hasn't come yet?", "comment": "Wait...is there somewhere that uses New Years?", "upvote_ratio": 160.0, "sub": "AskAnAmerican"} +{"thread_id": "un626k", "question": "What do you think about that it is mandatory to vote in Australia? would it change America?", "comment": "Australian here and honestly I'd prefer the American system.\n\nEveryone should be allowed to vote, but not required by law to.", "upvote_ratio": 980.0, "sub": "AskAnAmerican"} +{"thread_id": "un626k", "question": "What do you think about that it is mandatory to vote in Australia? would it change America?", "comment": "We\u2019d certainly have a lot more uninformed voters. They\u2019d probably all vote for [insert party here].", "upvote_ratio": 740.0, "sub": "AskAnAmerican"} +{"thread_id": "un626k", "question": "What do you think about that it is mandatory to vote in Australia? would it change America?", "comment": "I'd like to see how many votes there are for fictional, dead, or otherwise unknown characters in countries that force you to vote. There are people that do that here when you don't have to vote.", "upvote_ratio": 600.0, "sub": "AskAnAmerican"} +{"thread_id": "un66b6", "question": "Which state(s) would you say generally range between 65-75F the most often, with an ideal amount of humidity? Ive lived in Arizona where the heat is far too intense, and in illinois where the humidity is enough to kill you. Looking to move somewhere with much better weather.\n\nEdit: For those claiming illinois humidity is nothing, its currently at 90% and regularly is this high during summer.", "comment": "No state does that. San Diego is close, but is generally a bit warmer than that.", "upvote_ratio": 8640.0, "sub": "AskAnAmerican"} +{"thread_id": "un66b6", "question": "Which state(s) would you say generally range between 65-75F the most often, with an ideal amount of humidity? Ive lived in Arizona where the heat is far too intense, and in illinois where the humidity is enough to kill you. Looking to move somewhere with much better weather.\n\nEdit: For those claiming illinois humidity is nothing, its currently at 90% and regularly is this high during summer.", "comment": "Southern coastal California has some of the most consistent and ideal weather conditions for human life in the world. It's actually so consistent it kinda gets boring. It does get chilly at night during the winter but on average you'll find the weather somewhere between 60-80f but usually in the 70s.", "upvote_ratio": 5660.0, "sub": "AskAnAmerican"} +{"thread_id": "un66b6", "question": "Which state(s) would you say generally range between 65-75F the most often, with an ideal amount of humidity? Ive lived in Arizona where the heat is far too intense, and in illinois where the humidity is enough to kill you. Looking to move somewhere with much better weather.\n\nEdit: For those claiming illinois humidity is nothing, its currently at 90% and regularly is this high during summer.", "comment": "I'm gonna preface that there's only a few places like that in the US and they're all eye-wateringly expensive (like, the *cheapest* home is $1M+).\n\nThe only places that come to mind are San Diego and Berkeley/Emeryville/Oakland.\n\nThere's places that have a little bit colder winters (50F/10C) like Santa Barbara and Santa Cruz. And any place along the Bay Area peninsula from Burlingame to Sunnyvale.", "upvote_ratio": 2040.0, "sub": "AskAnAmerican"} +{"thread_id": "un73pn", "question": "I was always interested in that, since small towns in America usually has very limited transport options , unlike suburbs of big cities. Especially those who are younger than 16 and don't have driver's license. Are there school buses for that cases, or the school buses are used generally only for elementary school? In Europe, they usually use train or bus 'cause there is high population density and many local lines.", "comment": "There are school buses almost everywhere, including for high school students. We don\u2019t expect children, including teenagers, to use public transportation to get to school.", "upvote_ratio": 740.0, "sub": "AskAnAmerican"} +{"thread_id": "un73pn", "question": "I was always interested in that, since small towns in America usually has very limited transport options , unlike suburbs of big cities. Especially those who are younger than 16 and don't have driver's license. Are there school buses for that cases, or the school buses are used generally only for elementary school? In Europe, they usually use train or bus 'cause there is high population density and many local lines.", "comment": "To school, you take a school bus for all grades.\n\nTo larger towns, you get a ride with a parents or friend or you bike or walk. I know people who biked 10 to 15 miles to work as teens in rural New England. If you can't get a ride, you don't go.\n\nEdit: added units.", "upvote_ratio": 310.0, "sub": "AskAnAmerican"} +{"thread_id": "un73pn", "question": "I was always interested in that, since small towns in America usually has very limited transport options , unlike suburbs of big cities. Especially those who are younger than 16 and don't have driver's license. Are there school buses for that cases, or the school buses are used generally only for elementary school? In Europe, they usually use train or bus 'cause there is high population density and many local lines.", "comment": "Public schools they have to bus you. The ride to school may be 45 min to an hour. They don't pick you up from your house, but rather a set location where other kids will gather. \n\nIf private school, you can pay for a busing service, depending, or you drive your kids yourself. \n\nUsually kids in the city are okay on public transportation, but depending on the location. At our school in inner Milwaukee, the school bus service was the safer option for the kids.", "upvote_ratio": 200.0, "sub": "AskAnAmerican"} +{"thread_id": "un75f0", "question": "Hi, I've been recently given this task where there's a file given named \"test.txt\" and within the file there's a line, now I've to sort them alphabetically. I'm aware of how to sort them but can't figure out how do I read the words as separate strings so that I can perform sort on them.\n\nDone this as of now, thanks!!\n\n #include <iostream>\n #include <string>\n #include <fstream>\n \n int main()\n {\n fstream myFile(\"test.txt\",ios::in);\n string str;\n getline(myFile,str);\n \n string s;\n \n return 0;\n }\n\nThe given text in the file is \"The main thing that propelled the development of the aeroplanes at such a fast pace was, however, the first and the second world war.\"", "comment": "You can use the `>>` to read a single word, i.e. all characters up to a whitespace:\n\n string word;\n fstream >> word;\n\nAlternatively you can read the entire line as you do now and implement you own function that splits the line into words. Basically you do this by iterating over every character in the line and if it isn't a whitespace you add that character to the current word, if it is a whitespace you put the current word in a list, and start a new current word.\n\nThen you just need to iterate over all the words in the line, see https://www.learncpp.com/cpp-tutorial/input-and-output-io-streams/\n\nThen you need to put each word into a list, I suggest you to use `std::vector`, see https://www.learncpp.com/cpp-tutorial/an-introduction-to-stdvector/, unless you are not allowed to by your teacher. There are already functions in the C++ standard library to sort the elements in a vector, see https://en.cppreference.com/w/cpp/algorithm/sort", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "un7vhd", "question": "Im curious, I've seen it in movies bunch of times in suburban area the guy is pulling his wheelie bin on sidewalk and leaves is there.\n\nHow does that work? You get the bin from local waste collection company or you have to buy your own? Then what, you just leave it on sidewalk at certain time and get it back to your yard after collection?", "comment": "Garbage truck comes a certain day of the week, that morning you leave it by the curb and the truck empties the bin into the back of the truck and leaves the bin where it was. You can then put it back where it goes wherever.\n\nWho gets the garbage bin is entirely dependent on city, I have had it supplied to me and had to source it myself.\n\nNote to Brits, garbage bin is a larger device that is used to hold multiple trash bags for a while, not a garbage can which is used to store a singular trash bag and is usually inside the house.", "upvote_ratio": 1030.0, "sub": "AskAnAmerican"} +{"thread_id": "un7vhd", "question": "Im curious, I've seen it in movies bunch of times in suburban area the guy is pulling his wheelie bin on sidewalk and leaves is there.\n\nHow does that work? You get the bin from local waste collection company or you have to buy your own? Then what, you just leave it on sidewalk at certain time and get it back to your yard after collection?", "comment": "It depends where you live. Generally you wheel the bin down on a designated day and pick it back up after the garbage man empties it.", "upvote_ratio": 430.0, "sub": "AskAnAmerican"} +{"thread_id": "un7vhd", "question": "Im curious, I've seen it in movies bunch of times in suburban area the guy is pulling his wheelie bin on sidewalk and leaves is there.\n\nHow does that work? You get the bin from local waste collection company or you have to buy your own? Then what, you just leave it on sidewalk at certain time and get it back to your yard after collection?", "comment": "I don\u2019t see it mentioned here, but some places do not have any government subsidized trash collection at all. I have some friends who have to load their stuff in their vehicle and drive it to the dump. They live out in the country, however. Suburban or urban areas will have some kind of collection service. I think. Probably be a literal shitshow if they didn\u2019t.", "upvote_ratio": 240.0, "sub": "AskAnAmerican"} +{"thread_id": "un8cgg", "question": "I recently saw an article claiming that right and left wing people have the areas of the brain responsible for fear and empathy developed differently and that this was the cause of their political differences. Does this hypothesis has any merit among neuroscientists?", "comment": "I say *no* (I am a neuroscientist)\n\nWhat usually happens is, you collect a bunch of MRI data. This takes the form of a huge block of data, a datapoint for every cubic millimeter or so of brain tissue, every second or so (called a \"voxel\"). You collect an hours worth of this data for dozens of individuals - now you have *billions* of voxels.\n\nDo your preprocessing and your stats right, and you can find statistically significant differences between *any* two groupings of people you choose. Now you look through where those differences show up, and if you find you are able to construct a fun story out of the differences you observe and the way you sliced your subject sample, you write a paper! Voil\u00e0!\n\nThis is a bit cynical, sure: these supposed differences are a result of \"p-hacking\" with monstrous datasets. That's probably not all there is to it, but go look at some of these papers that correlate e.g. functional activity between some brain areas with certain personality attributes - you find that the 'differences' are between strongly overlapping groups. They are merely \"statistically significant\" which is a seriously fraught concept. \n\nLook at Figures 1 and 2 [here] (https://www.nature.com/articles/s41562-017-0248-5) or figure 3 in [this] (https://academic.oup.com/scan/article/13/1/43/4596542) to see what I'm talking about. These are the sorts of studies that are the basis for the ideas you are bringing up. If there are differences in the amygdala that account for political differences, they are faint and certainly not the fundamental component in the story.\n\n\"Causation\" is another fraught element here. If conservatives are *slightly* more likely to have a large amygdala (for example), that doesn't mean it's the *cause* of their politics. It might just as well be that having those opinions, over time, resulted in some differential growth of the amygdala. i.e. it might be an *effect* (albeit a very weak one) rather than a cause.\n\nOn the other hand, since the human mind *just is* the brain, it must be true that when there are differences between minds, there are differences between brains. But in my personal and professional opinion, these kinds of differences cannot be measured by any existing neuroimaging methods - they are a matter of fine-grained connectivity between relatively small numbers of neurons.", "upvote_ratio": 10010.0, "sub": "AskScience"} +{"thread_id": "un8cgg", "question": "I recently saw an article claiming that right and left wing people have the areas of the brain responsible for fear and empathy developed differently and that this was the cause of their political differences. Does this hypothesis has any merit among neuroscientists?", "comment": "We talked about it in grad school(political science), I am going to try to find [source](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3092984/) \n\nThe gist of it though is there is a difference in the brain as you said, and it is statistically relevant, but the effect is just not that strong. There is also still no good evidence of which way the causal arrow points, as in we don\u2019t know if the different brain structure leads to certain political ideologies, or if different ideologies shape parts of our brains differently.", "upvote_ratio": 1000.0, "sub": "AskScience"} +{"thread_id": "un8cgg", "question": "I recently saw an article claiming that right and left wing people have the areas of the brain responsible for fear and empathy developed differently and that this was the cause of their political differences. Does this hypothesis has any merit among neuroscientists?", "comment": "As tempting as it is to judge one's ideological opposites, and how satisfying it might be to have some scientific data that could be massaged to support that judgement, I think causation and correlation's on-again-off-again, tempestuous relationship is important to think about here. I don't personally think structural *brain differences* at adulthood **cause** anything, necessarily, any more than they might **result** from, say, environmental, genetic, and social factors over a person's lifetime.\n\nSo, I don't think saying different brains result in different politics is a valid scientific hypothesis, because there's no possible way to separate nature from nurture, here. People's beliefs are demonstrably affected by who and what they're exposed to over their lives, and brain structures demonstrably change in response to different external pressures and thinking patterns over time...so, really, I think your question is kind of backwards.", "upvote_ratio": 300.0, "sub": "AskScience"} +{"thread_id": "un975o", "question": "Trump vs Biden again? And if yes, who do you think will win and WHY?", "comment": "My head hurts.", "upvote_ratio": 6110.0, "sub": "AskAnAmerican"} +{"thread_id": "un975o", "question": "Trump vs Biden again? And if yes, who do you think will win and WHY?", "comment": "God fucking kill me.", "upvote_ratio": 3520.0, "sub": "AskAnAmerican"} +{"thread_id": "un975o", "question": "Trump vs Biden again? And if yes, who do you think will win and WHY?", "comment": "I think they are both going to be done and buried tbh\u2026 hope someone way younger gets the spot. Tired of seeing these old geezers in office.", "upvote_ratio": 1860.0, "sub": "AskAnAmerican"} +{"thread_id": "un9aln", "question": "[Previous weeks!](https://www.reddit.com/r/AskHistorians/search?sort=new&restrict_sr=on&q=flair%3ASASQ)\n\n**Please Be Aware**: We expect everyone to read the rules and guidelines of this thread. Mods *will* remove questions which we deem to be too involved for the theme in place here. We *will* remove answers which don't include a source. These removals will be without notice. Please follow the rules.\n\nSome questions people have just don't require depth. This thread is a recurring feature intended to provide a space for those simple, straight forward questions that are otherwise unsuited for the format of the subreddit.\n\nHere are the ground rules:\n\n* Top Level Posts should be questions in their own right.\n* Questions should be clear and specific in the information that they are asking for.\n* Questions which ask about broader concepts may be removed at the discretion of the Mod Team and redirected to post as a standalone question.\n* We realize that in some cases, users may pose questions that they don't realize are more complicated than they think. In these cases, we will suggest reposting as a stand-alone question.\n* Answers **MUST** be *properly* sourced to respectable literature. Unlike regular questions in the sub where sources are only required upon request, the lack of a source *will* result in removal of the answer.\n* Academic secondary sources are prefered. Tertiary sources are acceptable *if* they are of academic rigor (such as a book from the 'Oxford Companion' series, or a reference work from an academic press).\n* The *only* rule being relaxed here is with regard to depth, insofar as the anticipated questions are ones which do not require it. All other rules of the subreddit are in force.", "comment": "There's a trope of a medieval knight and his trusty squire traveling through the countryside on quests.\n\nI know quests didn't really happen but how many squires or servants would accompany an average, mid level knight on his journeys?\n\nLike for example, a knight has his knight's fee in Swabia and he's traveling to Italy to see the Emperor during the Hohenstaufen dynasty. He's not on campaign but there may or may not be some fighting. Would the knight still spend a large chunk of his earnings to arm himself and 10 others just in case Or would he travel himself prepared for battle but only with a squire or two so they could set the camps and tend the horses?\n\nWhat and how many would accompany a traveling knight?", "upvote_ratio": 100.0, "sub": "AskHistorians"} +{"thread_id": "un9aln", "question": "[Previous weeks!](https://www.reddit.com/r/AskHistorians/search?sort=new&restrict_sr=on&q=flair%3ASASQ)\n\n**Please Be Aware**: We expect everyone to read the rules and guidelines of this thread. Mods *will* remove questions which we deem to be too involved for the theme in place here. We *will* remove answers which don't include a source. These removals will be without notice. Please follow the rules.\n\nSome questions people have just don't require depth. This thread is a recurring feature intended to provide a space for those simple, straight forward questions that are otherwise unsuited for the format of the subreddit.\n\nHere are the ground rules:\n\n* Top Level Posts should be questions in their own right.\n* Questions should be clear and specific in the information that they are asking for.\n* Questions which ask about broader concepts may be removed at the discretion of the Mod Team and redirected to post as a standalone question.\n* We realize that in some cases, users may pose questions that they don't realize are more complicated than they think. In these cases, we will suggest reposting as a stand-alone question.\n* Answers **MUST** be *properly* sourced to respectable literature. Unlike regular questions in the sub where sources are only required upon request, the lack of a source *will* result in removal of the answer.\n* Academic secondary sources are prefered. Tertiary sources are acceptable *if* they are of academic rigor (such as a book from the 'Oxford Companion' series, or a reference work from an academic press).\n* The *only* rule being relaxed here is with regard to depth, insofar as the anticipated questions are ones which do not require it. All other rules of the subreddit are in force.", "comment": "Would the annexation of serbia, even though that was unlikely an initial goal of Austro-Hungarian empire, have gone to Austrian empire or Hungarian kingdom? I'm sure the Austrians would have wanted to keep it, but it mostly bordered Hungary and sounds like a disrupting event had it succeeded .", "upvote_ratio": 50.0, "sub": "AskHistorians"} +{"thread_id": "un9aln", "question": "[Previous weeks!](https://www.reddit.com/r/AskHistorians/search?sort=new&restrict_sr=on&q=flair%3ASASQ)\n\n**Please Be Aware**: We expect everyone to read the rules and guidelines of this thread. Mods *will* remove questions which we deem to be too involved for the theme in place here. We *will* remove answers which don't include a source. These removals will be without notice. Please follow the rules.\n\nSome questions people have just don't require depth. This thread is a recurring feature intended to provide a space for those simple, straight forward questions that are otherwise unsuited for the format of the subreddit.\n\nHere are the ground rules:\n\n* Top Level Posts should be questions in their own right.\n* Questions should be clear and specific in the information that they are asking for.\n* Questions which ask about broader concepts may be removed at the discretion of the Mod Team and redirected to post as a standalone question.\n* We realize that in some cases, users may pose questions that they don't realize are more complicated than they think. In these cases, we will suggest reposting as a stand-alone question.\n* Answers **MUST** be *properly* sourced to respectable literature. Unlike regular questions in the sub where sources are only required upon request, the lack of a source *will* result in removal of the answer.\n* Academic secondary sources are prefered. Tertiary sources are acceptable *if* they are of academic rigor (such as a book from the 'Oxford Companion' series, or a reference work from an academic press).\n* The *only* rule being relaxed here is with regard to depth, insofar as the anticipated questions are ones which do not require it. All other rules of the subreddit are in force.", "comment": "(Book suggestion on Christianity)\n\nI would like to read a book on the history of the early Christian church (up through and including the East-West Schism). The two books I'm looking at are MacCulloch's *Christianity: The First Three Thousand Years* and Robert Louis Wilken's *The First Thousand Years: A Global History of Christianity*. MacCulloch's appears to be more popular, but Wilken's is published by Yale and is shorter. Can someone recommend either of these, or perhaps something else? Thanks!", "upvote_ratio": 30.0, "sub": "AskHistorians"} +{"thread_id": "un9u8w", "question": "So I was looking for job offers, and I came across an HTML email developer, it pays a bit more than what I am doing right now (technical designer), but I never heard of this kind of jobs, in my mind, it sounds like quite simple. I googled and I found that it was mostly doing HTML and debugging through different browsers/email clients.\nSo my question is, is there some hidden things that I am missing? What does the job actually entails? Is there potentially an HTML email developer that can enlighten me?\nPS: and an extra question, what portfolio would be considered good for this kind of job?", "comment": "The HTML in HTML emails is a tightly restricted subset of HTML since it can only be what's safe enough to embed in a webmail client. So I imagine it would be pretty annoying since so much of what you Google wouldn't be usable and most of the techniques you end up using would be considered bad practices on normal web pages, specifically using tables for layout.", "upvote_ratio": 280.0, "sub": "AskProgramming"} +{"thread_id": "un9u8w", "question": "So I was looking for job offers, and I came across an HTML email developer, it pays a bit more than what I am doing right now (technical designer), but I never heard of this kind of jobs, in my mind, it sounds like quite simple. I googled and I found that it was mostly doing HTML and debugging through different browsers/email clients.\nSo my question is, is there some hidden things that I am missing? What does the job actually entails? Is there potentially an HTML email developer that can enlighten me?\nPS: and an extra question, what portfolio would be considered good for this kind of job?", "comment": "It's basically doing 90s style HTML (and very limited inline CSS)... because most email clients only support very old + basic HTML/CSS. \n\nIt's fairly straight forward work, because not much changes... you just need to do lots of compatibility testing.\n\nBut it can be frustrating, because you won't be getting to play with any new tech, and the work will be quite repetitive. Also not the best thing to have on your resume in the future if you want to move on to more modern webdev etc. It won't really make you look like much of a \"programmer\".\n\nBut it might be suited to people who don't really like programming that much, and just want a fairly straight forward tech job where you don't need to learn a lot or keep up to date with new tech. i.e. Very little creativity, it's kinda like being a factory line worker of the dev world.", "upvote_ratio": 90.0, "sub": "AskProgramming"} +{"thread_id": "un9u8w", "question": "So I was looking for job offers, and I came across an HTML email developer, it pays a bit more than what I am doing right now (technical designer), but I never heard of this kind of jobs, in my mind, it sounds like quite simple. I googled and I found that it was mostly doing HTML and debugging through different browsers/email clients.\nSo my question is, is there some hidden things that I am missing? What does the job actually entails? Is there potentially an HTML email developer that can enlighten me?\nPS: and an extra question, what portfolio would be considered good for this kind of job?", "comment": "I imagine a large part of the job will be finding ways to bypass the spam filters on gmail and outlook", "upvote_ratio": 70.0, "sub": "AskProgramming"} +{"thread_id": "un9vmo", "question": "The Stonewall Riots were a watershed moment in American queer history, but personally I didn't hear about them until some point in college - they weren't even mentioned in any history or social studies classes. I'm curious whether they're at all widely known outside of the New York area.", "comment": "They were briefly covered in AP US history in my high school in the late 90s.\n\nMy teacher was a very liberal activist type teacher. I don\u2019t know if it was part of the normal AP US History curriculum.\n\nMost of what I know about them was from just reading about history after high school.", "upvote_ratio": 250.0, "sub": "AskAnAmerican"} +{"thread_id": "un9vmo", "question": "The Stonewall Riots were a watershed moment in American queer history, but personally I didn't hear about them until some point in college - they weren't even mentioned in any history or social studies classes. I'm curious whether they're at all widely known outside of the New York area.", "comment": "When I went to school (80s-90s), History covered very little after WW2, except for brief discussions of Korea, Vietnam, and the Cold War. Anything recent of a more cultural nature we were expected to just pick up ourselves, I think; to be fair, that mostly worked. Now that we\u2019re talking about something over 50 years ago instead of 20, I would bet it\u2019s in more books.", "upvote_ratio": 180.0, "sub": "AskAnAmerican"} +{"thread_id": "un9vmo", "question": "The Stonewall Riots were a watershed moment in American queer history, but personally I didn't hear about them until some point in college - they weren't even mentioned in any history or social studies classes. I'm curious whether they're at all widely known outside of the New York area.", "comment": "They're mentioned, but typically as an example of the general societal unrest during the 60s rather than directly focused upon.", "upvote_ratio": 60.0, "sub": "AskAnAmerican"} +{"thread_id": "unaazq", "question": "So, several times in my career over the years, I have contemplated a switch to an IT career. My focus would be networks and/or security. My father in an IT lifer and have several good friends in the IT field. I myself am an industry biologist. While I absolutely love science and am passionate about my work, some toxic work environments I have found myself in have pushed me to go in a different direction. IT has always one of those things I think I could be really happy doing. I have always had a knack for understanding computers and how to troubleshoot them, I have never ventured beyond the hobbyist sort of computer nerd. I have always wanted to step up my credentials in my desired path and become a professional.\n\nEach time I try, my IT buddies are always a bit pessimistic. Before now, say about 10 years ago, the reaction was \"You will not make a lot of money starting out in IT\" and various other arguments about starting IT from the bottom. BTW, the money in biology isn't great either. But if your a science nerd like me, biological lab and field work can be rewarding. \n\nSo now, at 40, and again in a toxic environment and industry job, I am looking to make an exit and find another passion to pursue professionally. Now, my friends say that I have no chance to beat out a recent college grad with no experience for a job. The idea is that put a recent college grad with little to no xp vs a motivated 40 year old with little to no xp, HR will always go with the college grad, hands down. So it seems they are telling me that I missed the boat and stick to biology.\n\nWhat do you guys think? Would it be a waste of time to seek out some certifications and head for the nearest help desk wanted ad?\n\nEdit: Some great advice and feeling the reddit love. But want to clear up one topic. I know the money won't be anywhere near what I make now. I have an established career and some serious credentials backing up my experience currently. I am not looking for a change to make the money. I want the change to reinvigorate me. I want a job that I can learn and growth with in something new and exciting (for me). I also know that toxic work environments are everywhere. I just am just stuck in one right now and that is what is spurring the change.", "comment": "I'm 38, went back to school at 35 and got my associates degree in CIS/MIS. Graduated a year ago. I'm finishing up my second contracted project this month and starting my first direct hire IT role next month in desktop support. Ill be enrolling in the fall to pursue my bachelor's as well. I also have a wife and 3 kids, one of them being just 3 weeks old. \n\nThe point of that is...fuck your friends. \n\nGo for it. \n\nIf I can do it then so can you.", "upvote_ratio": 4390.0, "sub": "ITCareerQuestions"} +{"thread_id": "unaazq", "question": "So, several times in my career over the years, I have contemplated a switch to an IT career. My focus would be networks and/or security. My father in an IT lifer and have several good friends in the IT field. I myself am an industry biologist. While I absolutely love science and am passionate about my work, some toxic work environments I have found myself in have pushed me to go in a different direction. IT has always one of those things I think I could be really happy doing. I have always had a knack for understanding computers and how to troubleshoot them, I have never ventured beyond the hobbyist sort of computer nerd. I have always wanted to step up my credentials in my desired path and become a professional.\n\nEach time I try, my IT buddies are always a bit pessimistic. Before now, say about 10 years ago, the reaction was \"You will not make a lot of money starting out in IT\" and various other arguments about starting IT from the bottom. BTW, the money in biology isn't great either. But if your a science nerd like me, biological lab and field work can be rewarding. \n\nSo now, at 40, and again in a toxic environment and industry job, I am looking to make an exit and find another passion to pursue professionally. Now, my friends say that I have no chance to beat out a recent college grad with no experience for a job. The idea is that put a recent college grad with little to no xp vs a motivated 40 year old with little to no xp, HR will always go with the college grad, hands down. So it seems they are telling me that I missed the boat and stick to biology.\n\nWhat do you guys think? Would it be a waste of time to seek out some certifications and head for the nearest help desk wanted ad?\n\nEdit: Some great advice and feeling the reddit love. But want to clear up one topic. I know the money won't be anywhere near what I make now. I have an established career and some serious credentials backing up my experience currently. I am not looking for a change to make the money. I want the change to reinvigorate me. I want a job that I can learn and growth with in something new and exciting (for me). I also know that toxic work environments are everywhere. I just am just stuck in one right now and that is what is spurring the change.", "comment": "Why do you care what your friends think? If they're not ambitious, that's their problem. You can make plenty of money as a 40 year old just starting in IT. Go for it.", "upvote_ratio": 840.0, "sub": "ITCareerQuestions"} +{"thread_id": "unaazq", "question": "So, several times in my career over the years, I have contemplated a switch to an IT career. My focus would be networks and/or security. My father in an IT lifer and have several good friends in the IT field. I myself am an industry biologist. While I absolutely love science and am passionate about my work, some toxic work environments I have found myself in have pushed me to go in a different direction. IT has always one of those things I think I could be really happy doing. I have always had a knack for understanding computers and how to troubleshoot them, I have never ventured beyond the hobbyist sort of computer nerd. I have always wanted to step up my credentials in my desired path and become a professional.\n\nEach time I try, my IT buddies are always a bit pessimistic. Before now, say about 10 years ago, the reaction was \"You will not make a lot of money starting out in IT\" and various other arguments about starting IT from the bottom. BTW, the money in biology isn't great either. But if your a science nerd like me, biological lab and field work can be rewarding. \n\nSo now, at 40, and again in a toxic environment and industry job, I am looking to make an exit and find another passion to pursue professionally. Now, my friends say that I have no chance to beat out a recent college grad with no experience for a job. The idea is that put a recent college grad with little to no xp vs a motivated 40 year old with little to no xp, HR will always go with the college grad, hands down. So it seems they are telling me that I missed the boat and stick to biology.\n\nWhat do you guys think? Would it be a waste of time to seek out some certifications and head for the nearest help desk wanted ad?\n\nEdit: Some great advice and feeling the reddit love. But want to clear up one topic. I know the money won't be anywhere near what I make now. I have an established career and some serious credentials backing up my experience currently. I am not looking for a change to make the money. I want the change to reinvigorate me. I want a job that I can learn and growth with in something new and exciting (for me). I also know that toxic work environments are everywhere. I just am just stuck in one right now and that is what is spurring the change.", "comment": "You have a STEM degree, you have a good story to tell, you (presumably) have a work ethic that will enable you to be successful. Go for it.", "upvote_ratio": 700.0, "sub": "ITCareerQuestions"} +{"thread_id": "unacle", "question": "I am experimenting with A\\* pathfinding, and I have been using the Wikipedia pseudo code for reference. It works fine, but I have a question regarding optimization...\n\nTowards the end, I have to check if a node is in the open list:\n\n if neighbor not in openSet \n\nAssuming the openSet is a min heap, what is the most efficient way of doing this? Right now I am just iterating through the container (which is a vector turned min heap) to see if I find the element, but this means I have to check every element if it's not there.\n\nIs there a better way to do it, or am I overthinking this and is this fine?", "comment": "Hashsets, bitsets.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "unaikd", "question": "Welcome to our weekly feature, Ask Anything Wednesday - this week we are focusing on **Biology, Chemistry, Neuroscience, Medicine, Psychology**\n\nDo you have a question within these topics you weren't sure was worth submitting? Is something a bit too speculative for a typical /r/AskScience post? No question is too big or small for AAW. In this thread you can ask any science-related question! Things like: \"What would happen if...\", \"How will the future...\", \"If all the rules for 'X' were different...\", \"Why does my...\".\n\n**Asking Questions:**\n\nPlease post your question as a top-level response to this, and our team of panellists will be here to answer and discuss your questions. The other topic areas will appear in future Ask Anything Wednesdays, so if you have other questions not covered by this weeks theme please either hold on to it until those topics come around, or go and post over in our sister subreddit /r/AskScienceDiscussion , where every day is Ask Anything Wednesday! Off-theme questions in this post will be removed to try and keep the thread a manageable size for both our readers and panellists.\n\n**Answering Questions:**\n\nPlease only answer a posted question if you are an expert in the field. [The full guidelines for posting responses in AskScience can be found here](http://www.reddit.com/r/askscience/wiki/index#wiki_answering_askscience). In short, this is a moderated subreddit, and responses which do not meet our quality guidelines will be removed. Remember, peer reviewed sources are always appreciated, and anecdotes are absolutely not appropriate. In general if your answer begins with 'I think', or 'I've heard', then it's not suitable for /r/AskScience.\n\nIf you would like to become a member of the AskScience panel, [please refer to the information provided here](https://www.reddit.com/r/askscience/about/sticky).\n\nPast AskAnythingWednesday posts [can be found here](http://www.reddit.com/r/askscience/search?q=flair%3A%27meta%27&restrict_sr=on&sort=new&t=all). Ask away!", "comment": "[Neuroscience] \nIt\u2019s said that, when you go though some trauma (I\u2019m thinking about ptsd) your brain is physically damaged in the process. How can that happen? How does that actually happen? (So what is damaged and how)\n\nThanks!", "upvote_ratio": 240.0, "sub": "AskScience"} +{"thread_id": "unaikd", "question": "Welcome to our weekly feature, Ask Anything Wednesday - this week we are focusing on **Biology, Chemistry, Neuroscience, Medicine, Psychology**\n\nDo you have a question within these topics you weren't sure was worth submitting? Is something a bit too speculative for a typical /r/AskScience post? No question is too big or small for AAW. In this thread you can ask any science-related question! Things like: \"What would happen if...\", \"How will the future...\", \"If all the rules for 'X' were different...\", \"Why does my...\".\n\n**Asking Questions:**\n\nPlease post your question as a top-level response to this, and our team of panellists will be here to answer and discuss your questions. The other topic areas will appear in future Ask Anything Wednesdays, so if you have other questions not covered by this weeks theme please either hold on to it until those topics come around, or go and post over in our sister subreddit /r/AskScienceDiscussion , where every day is Ask Anything Wednesday! Off-theme questions in this post will be removed to try and keep the thread a manageable size for both our readers and panellists.\n\n**Answering Questions:**\n\nPlease only answer a posted question if you are an expert in the field. [The full guidelines for posting responses in AskScience can be found here](http://www.reddit.com/r/askscience/wiki/index#wiki_answering_askscience). In short, this is a moderated subreddit, and responses which do not meet our quality guidelines will be removed. Remember, peer reviewed sources are always appreciated, and anecdotes are absolutely not appropriate. In general if your answer begins with 'I think', or 'I've heard', then it's not suitable for /r/AskScience.\n\nIf you would like to become a member of the AskScience panel, [please refer to the information provided here](https://www.reddit.com/r/askscience/about/sticky).\n\nPast AskAnythingWednesday posts [can be found here](http://www.reddit.com/r/askscience/search?q=flair%3A%27meta%27&restrict_sr=on&sort=new&t=all). Ask away!", "comment": "If a physically and psychologically healthy person experiences no significant situations of fear, stress or excitement on any given day, will adrenaline still have a role to play in their bodily function on that day?\n\nIn other words, does adrenaline have a role to play outside of the fight-or-flight response?", "upvote_ratio": 170.0, "sub": "AskScience"} +{"thread_id": "unaikd", "question": "Welcome to our weekly feature, Ask Anything Wednesday - this week we are focusing on **Biology, Chemistry, Neuroscience, Medicine, Psychology**\n\nDo you have a question within these topics you weren't sure was worth submitting? Is something a bit too speculative for a typical /r/AskScience post? No question is too big or small for AAW. In this thread you can ask any science-related question! Things like: \"What would happen if...\", \"How will the future...\", \"If all the rules for 'X' were different...\", \"Why does my...\".\n\n**Asking Questions:**\n\nPlease post your question as a top-level response to this, and our team of panellists will be here to answer and discuss your questions. The other topic areas will appear in future Ask Anything Wednesdays, so if you have other questions not covered by this weeks theme please either hold on to it until those topics come around, or go and post over in our sister subreddit /r/AskScienceDiscussion , where every day is Ask Anything Wednesday! Off-theme questions in this post will be removed to try and keep the thread a manageable size for both our readers and panellists.\n\n**Answering Questions:**\n\nPlease only answer a posted question if you are an expert in the field. [The full guidelines for posting responses in AskScience can be found here](http://www.reddit.com/r/askscience/wiki/index#wiki_answering_askscience). In short, this is a moderated subreddit, and responses which do not meet our quality guidelines will be removed. Remember, peer reviewed sources are always appreciated, and anecdotes are absolutely not appropriate. In general if your answer begins with 'I think', or 'I've heard', then it's not suitable for /r/AskScience.\n\nIf you would like to become a member of the AskScience panel, [please refer to the information provided here](https://www.reddit.com/r/askscience/about/sticky).\n\nPast AskAnythingWednesday posts [can be found here](http://www.reddit.com/r/askscience/search?q=flair%3A%27meta%27&restrict_sr=on&sort=new&t=all). Ask away!", "comment": "I've always wondered if the electricity in our bodies has been observed to dissipate when we die or when we go to sleep.", "upvote_ratio": 130.0, "sub": "AskScience"} +{"thread_id": "unbdc6", "question": "What condiments do NOT go with barbecue?", "comment": "This is going to be a proxy war for people slamming different regional barbecue sauces", "upvote_ratio": 1690.0, "sub": "AskAnAmerican"} +{"thread_id": "unbdc6", "question": "What condiments do NOT go with barbecue?", "comment": "Ketchup. You can use it as a base for making a barbecue sauce if you want (there are better ways) but don't ever give me ketchup itself.", "upvote_ratio": 1020.0, "sub": "AskAnAmerican"} +{"thread_id": "unbdc6", "question": "What condiments do NOT go with barbecue?", "comment": "Maple flavored corn syrup.", "upvote_ratio": 650.0, "sub": "AskAnAmerican"} +{"thread_id": "unc1ll", "question": "Yesterday I went to a cheesecake factory that opened in my country with a friend from the US, everything was delicious and very big, but it was quite pricey (I mean they serve a lot so it wasn't going to be cheap) but then I ordered a cheesecake slice with strawberry and it was very expensive for what I got IMO, and my friend said that it wasn't that expensive, that in usa the majority of restaurants cost around the same, that I just felt it expensive because food in Mexico is super cheap, is that true?", "comment": "They're on the expensive side of the average but they are far from \"very expensive\".", "upvote_ratio": 1670.0, "sub": "AskAnAmerican"} +{"thread_id": "unc1ll", "question": "Yesterday I went to a cheesecake factory that opened in my country with a friend from the US, everything was delicious and very big, but it was quite pricey (I mean they serve a lot so it wasn't going to be cheap) but then I ordered a cheesecake slice with strawberry and it was very expensive for what I got IMO, and my friend said that it wasn't that expensive, that in usa the majority of restaurants cost around the same, that I just felt it expensive because food in Mexico is super cheap, is that true?", "comment": "Cheesecake Factory is typically a full service restaurant mostly based out of malls. It is probably a higher price point for the more casual sit-down dining (think TGI Fridays, Applebees). The prices aren't budget prices, but you're getting a lot of food and they specifically promote that \"everyone leaves with a doggy bag\" or whatever.\n\nIt isn't an every day thing for most people though. It isn't even a every weekend-thing. Its where you go with your family on a night out, or when you want to splurge a little.\n\nBut it also isn't fine dining where you can easily spend $100-150 per person.\n\nAlso I imagine most Cheesecake Factories abroad are probably in tourist areas catering to American or western tourists. They may even be more expensive than they are back home.", "upvote_ratio": 1360.0, "sub": "AskAnAmerican"} +{"thread_id": "unc1ll", "question": "Yesterday I went to a cheesecake factory that opened in my country with a friend from the US, everything was delicious and very big, but it was quite pricey (I mean they serve a lot so it wasn't going to be cheap) but then I ordered a cheesecake slice with strawberry and it was very expensive for what I got IMO, and my friend said that it wasn't that expensive, that in usa the majority of restaurants cost around the same, that I just felt it expensive because food in Mexico is super cheap, is that true?", "comment": "I would put them above average, and not really worth it unless you just love cheesecake.", "upvote_ratio": 960.0, "sub": "AskAnAmerican"} +{"thread_id": "unc50n", "question": "So I have heard that infra-red radiation is heat. In other words that IR is a certain frequency of electromagnetic radiation, like visible light and radio waves. I also know that heat is something like the energy in a system, or that it\u2019s kind of a measure of how much molecules are vibrating. \n\nSo are heat and IR one and the same? Or is IR one type of heat? I\u2019m a little confused about the exact definitions here.", "comment": "This question has a lot to unpack. \n\nFirst, IR is not the same thing as heat, as you surmised. Heat is energy, which is transferred in a thermodynamic system. IR is electromagnetic radiation- so while IR *has* energy, it's not right to say that is *is* energy/heat. \n\nSo, what are the connections between heat and IR? First, there is the fact that radiation is one of the methods to transfer heat. The \"big three\" ways of transferring heat is via conduction (two objects touch, heat flows between the two objects), convection (there is a fluid like air or water between two objects, and the heat is carried by the fluid from one object to another), and radiation (Electromagnetic radiation leaves one object and is absorbed by another). \n\nOn Earth, the primary way things are heated is via convection (there is something hot in your room, it heats the air, the air heats you). In Space, the primary way things are heated or cooled is radiation (radiation from the Sun hits the space shuttle, the space shuttle absorbs it, heating up). This is why things heat up and cool off much slower in space than perhaps people expect- radiative heating/cooling is much slower than convective heating/cooling. So, if you were ejected into deep space far from a star, even though it's \"very cold\" there, it would take some time for you to cool off, because the only way for you to lose heat is via radiative cooling. (Also of interest, there are [infrared heaters](https://home.howstuffworks.com/home-improvement/heating-and-cooling/infrared-heaters.htm) which are more efficient than regular heaters because it heats you instead of all of the air). \n\nSo, IR is a type of radiation, meaning it can carry heat. But this leads to the next question- if any electromagnetic radiation can carry heat, why IR, and not- say, visible light or X-Rays? The answer lies in [blackbody radiation](https://en.wikipedia.org/wiki/Black-body_radiation) which essentially says \"the hotter an object, the shorter the wavelength of light it emits\" (while there's a lot more to it than that, that's the important part for this). So the Sun is really hot, and emits visible light (this is also how incandescent light bulbs work- they just heat up really hot to emit visible light). But that is hotter than we normally want things- so IR radiation is radiated by things which are the temperature we normally want things to be. So something that's like 100 F (aka- about a human body), will emit IR radiation. \n\nThis is also how passive night vision goggles work- instead of looking in the visible spectrum, they see in the IR spectrum, tuned towards the temperatures we would expect things to be (aka, around body temperature). So, warm objects (like humans) emit IR radiation, via black body radiation, and these goggles see those, and then convert that into visible light in your goggles.", "upvote_ratio": 820.0, "sub": "AskScience"} +{"thread_id": "unc50n", "question": "So I have heard that infra-red radiation is heat. In other words that IR is a certain frequency of electromagnetic radiation, like visible light and radio waves. I also know that heat is something like the energy in a system, or that it\u2019s kind of a measure of how much molecules are vibrating. \n\nSo are heat and IR one and the same? Or is IR one type of heat? I\u2019m a little confused about the exact definitions here.", "comment": "Since it has already been explained quite thoroughly by others, let me add this sidenote that might help:\n\nAny objects with a temperature radiate that thermal energy away slowly to its surroundings. Take for example a book that is lying on your desk. It is constantly radiating away its energy to its surroundings. But because the rest of your room is probably almost the same temperature as the book, the room is also radiating its energy back to the book. In this dance, everything is constantly emitting, and absorbing energy. In a room where everything is the same temperature, this simply cancels eachother out. If you place something hot, like a cup of coffee, in the room however, it's radiating out more energy than it is receiving, thus it loses heat to radiation. \n\nThis electromagnetic radiation that an object emits, consists of a distribution of various wavelengths of light. At the temperatures we see in our everyday life, these wavelengths are almost all in the infrared regime. That is why you can see the temperature of objects with an infrared camera. [As objects heat up however, this distribution shifts towards the lower wavelengths - and into the visible light regime.](https://en.wikipedia.org/wiki/Black-body_radiation#/media/File:Black_body.svg) That is why you can see metal glow when it gets hot enough.", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "uncjr1", "question": " have you met any veterans?", "comment": "Gen Xer here. I went back to school last year to complete my degree and currently I'm taking US History, post 1865 (just after the Civil War). The book we are using is Give Me Liberty by Eric Foner. Let me just say, I cannot recommend this book enough. My comment doesn't answer your question, but if you want an accurate and well-written account of US history, including our involvement in WWI, this book is IT! I did terribly in high school, and paid zero attention in history class. Now I have a 100% grade and we are almost finished (finals this week). That's all, just a nerdy book recommendation. :)", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "uncjr1", "question": " have you met any veterans?", "comment": "My great uncle was a veteran of WW1. He didn\u2019t say much about it, but then he didn\u2019t talk much. He was a bit of a recluse. He did give me peppermints whenever I saw him though.", "upvote_ratio": 180.0, "sub": "AskOldPeople"} +{"thread_id": "uncjr1", "question": " have you met any veterans?", "comment": "My grandfather was a US Army veterinarian who treated horses. He was in France in WW1 but never spoke about what he did or saw there.", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "uncvn4", "question": "For example I was born in the late 90s, and I can\u2019t imagine what technology would be like in 2050 and beyond, I imagine it\u2019d blow me away", "comment": "Some folks think everyone over 60 have problems w technology. But the truth is, most of us who still have our faculties, don\u2019t. \n\nWe totally grew up w it; ALL of it. The good, bad and ugly. However, it was an option whether you chose to use it, evolve w it, or live with it. \n\nI was born in 50\u2019s and technological change was a slow moving train until about 2010.", "upvote_ratio": 2090.0, "sub": "AskOldPeople"} +{"thread_id": "uncvn4", "question": "For example I was born in the late 90s, and I can\u2019t imagine what technology would be like in 2050 and beyond, I imagine it\u2019d blow me away", "comment": "Well it would be a shock if you had a time machine and could get there instantly. But change happens over time. We were there for the small, incremental changes that gave us the modern technology. Some things were shockingly \u2018fast\u2019 because we didn\u2019t see or hear of the research that lead to it. The first heart transplant for instance, or the first \u2018test tube baby\u2019 or the first cloned sheep. Those seemed shocking because we had no idea they were on the horizon", "upvote_ratio": 1480.0, "sub": "AskOldPeople"} +{"thread_id": "uncvn4", "question": "For example I was born in the late 90s, and I can\u2019t imagine what technology would be like in 2050 and beyond, I imagine it\u2019d blow me away", "comment": "71 here...\n\nIt just creeps in quietly. With each new thing, there's no watershed moment.\n\nI once asked my grandmother [b.1886] what she thought when she saw her first airplane. She didn't remember it. \n\nThat's how that shit goes.", "upvote_ratio": 1200.0, "sub": "AskOldPeople"} +{"thread_id": "und2mk", "question": "In a field dominated by introverts, I haven't met many (if any) extrovert developers. To those that are extroverts, do you like being a programmer? Do you think you'd be happier in another career where you could check more of your extrovert boxes?", "comment": "I do. I don't think I agree with the premise that it's introvert-dominated tbh\n\nThe fact you haven't met any extroverts makes me think you've either been worked in very homogeneous companies, or you don't really understand introversion/extraversion", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "und2mk", "question": "In a field dominated by introverts, I haven't met many (if any) extrovert developers. To those that are extroverts, do you like being a programmer? Do you think you'd be happier in another career where you could check more of your extrovert boxes?", "comment": "> In a field dominated by introverts\n\nThat's more a stereotype than reality.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "undd0a", "question": "When you give it day and leave work - what do you do?", "comment": "Lay in bed and rethink my life choices\n\nThen I get a snack", "upvote_ratio": 1410.0, "sub": "AskAnAmerican"} +{"thread_id": "undd0a", "question": "When you give it day and leave work - what do you do?", "comment": "I usually pick up shifts at my second job where I work as Lead Patriarch and Diaper Technician.", "upvote_ratio": 820.0, "sub": "AskAnAmerican"} +{"thread_id": "undd0a", "question": "When you give it day and leave work - what do you do?", "comment": "Go home to the wife and kids. \nGo and coach my son's ice hockey team. \nGo to one of my hockey games.", "upvote_ratio": 340.0, "sub": "AskAnAmerican"} +{"thread_id": "unds1k", "question": "At first I presumed it was because they were polymorphs, but that doesn't seem to be the case. It also doesn't seem to be a result of particle size (i.e. like maybe only nanoscale particles appear red). What's going on here?", "comment": "I think fully anhydrous iron(III) oxide is black, so when macrocrystalline (as in haematite) it appears silvery. Much like a metal - metal powders are black, but the crystalline material is silvery. It's almost certainly not the same physical phenomenon causing the shininess though.\n\nRust is red, orange, yellow etc. because it is hydrated to varying degrees, and this differing colour is due to differences in the crystal field splitting", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "unds1k", "question": "At first I presumed it was because they were polymorphs, but that doesn't seem to be the case. It also doesn't seem to be a result of particle size (i.e. like maybe only nanoscale particles appear red). What's going on here?", "comment": "Huh, I had always assumed it is different forms of rust, like hydrated iron oxide Fe2O3 being red, waterless iron oxide being brown, iron oxide-hydroxide being yellow and Iron II oxide being black.\n\nCurious to see if theres something more to it.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "undwpj", "question": "I work at a thrift store and my job is to inspect everything that gets donated to make sure we are able to sell it. I've noticed that a lot of items have social security numbers carved into them. I see it a lot with old cameras, but I've also seen it on the bottoms of statues and even on a piano once. It's really confusing to me because my generation was raised to never give out our social security numbers because of identity theft, but I guess that was less of a concern pre-internet. However, I don't understand the point of writing it on a random object. Is it so the item can be returned to you in case it is stolen? Would love to learn more about the reasoning for this.", "comment": "When I was in college, it was my student ID number. \nThe kind of identity theft we worry about now just didn\u2019t exist. Getting any sort of credit was a difficult process and needed a lot of face to face interactions to procure.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "undwpj", "question": "I work at a thrift store and my job is to inspect everything that gets donated to make sure we are able to sell it. I've noticed that a lot of items have social security numbers carved into them. I see it a lot with old cameras, but I've also seen it on the bottoms of statues and even on a piano once. It's really confusing to me because my generation was raised to never give out our social security numbers because of identity theft, but I guess that was less of a concern pre-internet. However, I don't understand the point of writing it on a random object. Is it so the item can be returned to you in case it is stolen? Would love to learn more about the reasoning for this.", "comment": "In 84-86 when I was in tech school, they requested our SSN as ID when cashing checks. I actually had it printed on my checks because it was much easier than writing it out every time.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "undwpj", "question": "I work at a thrift store and my job is to inspect everything that gets donated to make sure we are able to sell it. I've noticed that a lot of items have social security numbers carved into them. I see it a lot with old cameras, but I've also seen it on the bottoms of statues and even on a piano once. It's really confusing to me because my generation was raised to never give out our social security numbers because of identity theft, but I guess that was less of a concern pre-internet. However, I don't understand the point of writing it on a random object. Is it so the item can be returned to you in case it is stolen? Would love to learn more about the reasoning for this.", "comment": "Ignorance and because in the \"good old days\" there was virtually no way for the average criminal to take advantage of having that social security number. It was not like today where any idiot can strip the other needed information from the internet to be able to do some identity theft.\n\nFor some weird reason, people thought that if the item was stolen, cops could ID you and get the item back to you with your SS number. That was never true. In that era, they usually recommended your state and driver's license number be engraved on expensive stuff. Even that was hit and miss.\n\nNow the cops rarely even try and return stuff--they assume insurance took care of it and just ship it off to auction in most larger cities (because they benefit from auction proceeds in most cases.)", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "une32d", "question": "I finished 2/3 of this computer science assignment, but I am stuck on the last part, and to be honest I am not 100% sure what it is asking. So in part 2 of the assignment I created a a decryption program \u201cdecrypt.cc\u201d (https://pastebin.com/ST21nEY3) that is called from the terminal like this: \u201c$ echo input | ./decrypt 10\u201d (an example: if the input is \u201cROVVY\u201d then the output is \u201cHELLO\u201d). Part 3 of the assignment is supposed to crack a key, and is based on the decrypt.cc program. Specifically, you\u2019re used to replicate the decryption code, count the number of E\u2019s in the decrypted text, and print the key that produces the decrypted text with the most E\u2019s. As a reference, the file encrypted.enc (https://pastebin.com/tsSSquXj ) has been encrypted with the key 15.\nI am unclear on how to do this, and how key is being defined here (is key literally the variable key? Is it a line? Is it the x variable?) Any clarification or tips would be appreciated.", "comment": ">is key literally the variable key?\n\nIt would appear so. More generally, it is the key provided to do encryption / decryption, so the number on the command line in your case.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "unehbf", "question": "Hi all, \n\nI'm interested in learning cpp and found [this](https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) SO post that outlines some books to use whilst learning. However, my question is does the cpp version that the book uses matters all that much to me?\n\nThanks", "comment": "> does the cpp version that the book uses matters all that much to me?\n\nNot as long as you stick to at least C++11.\n\nSubsequent C++ standards generally dont invalidate old ones, they add new features (which may make some older patterns obsolecent).\n\n---\n\nObligatory mention of www.learncpp.com as the best free online resource out there.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "unemde", "question": "This question mainly pertains to people in my age group (Millennials) but everyone is welcome to comment!\n\nI was talking to a foreign friend of mine and he recently just started watching old Nickelodeon American sitcoms. (Not really old just shows that some of us in our 20s-30s grew up watching.) Shows like Zoey 101, Drake & Josh, iCarly, etc. He asked me if these shows accurately portray American culture. I said \"Sure\" but I honestly I didn't really think of it. So im asking other fellow Americans if you believe those tv shows are accurate examples of the USA or maybe not?", "comment": "Yes, every court case ends with sending in the dancing lobsters. ^(I wish)", "upvote_ratio": 680.0, "sub": "AskAnAmerican"} +{"thread_id": "unemde", "question": "This question mainly pertains to people in my age group (Millennials) but everyone is welcome to comment!\n\nI was talking to a foreign friend of mine and he recently just started watching old Nickelodeon American sitcoms. (Not really old just shows that some of us in our 20s-30s grew up watching.) Shows like Zoey 101, Drake & Josh, iCarly, etc. He asked me if these shows accurately portray American culture. I said \"Sure\" but I honestly I didn't really think of it. So im asking other fellow Americans if you believe those tv shows are accurate examples of the USA or maybe not?", "comment": "TiL that those shows are \u201cold\u201d and here I am having grown up with \u201cSalute your Shorts\u201d \u201cPete & Pete\u201d and \u201cHey Dude\u201d", "upvote_ratio": 380.0, "sub": "AskAnAmerican"} +{"thread_id": "unemde", "question": "This question mainly pertains to people in my age group (Millennials) but everyone is welcome to comment!\n\nI was talking to a foreign friend of mine and he recently just started watching old Nickelodeon American sitcoms. (Not really old just shows that some of us in our 20s-30s grew up watching.) Shows like Zoey 101, Drake & Josh, iCarly, etc. He asked me if these shows accurately portray American culture. I said \"Sure\" but I honestly I didn't really think of it. So im asking other fellow Americans if you believe those tv shows are accurate examples of the USA or maybe not?", "comment": "For what it's worth I think those shows you named will connect more with younger millennials, I'm in my early 30s and they were all a little bit after my time. I couldn't tell you what any of them were like.", "upvote_ratio": 160.0, "sub": "AskAnAmerican"} +{"thread_id": "unf88w", "question": "TL; DR: How do i display things such as a\\* pathfinding algorithm with c++ (preferable in linux)\n\nSo how do i make a window, where i can display things, such as a grid where i use the pathfinding algorithm a\\* to find the shortest path between a and b. \n\nI know how to do all the coding a\\*, but i don't know how i can display it. If i were to google how to make a\\*, i always tend to find anything else than c++, such as javascript where you do it on a website, but i don't want to do i with javascript because it is so much slower.\n\nBy the way, i have a dual boot (windows for shcool, and linux for programming) and i definetly prefer linux, so i would prefer if there is any other way than visual studio to do this. I have installed eclipse and tried using it, but it doens't have the prebuilt window application thing that visual studio has, and haven't been able to find any tutorials on how to make a window in eclipse (that i can understand).", "comment": "Ui frameworks or libraries: wxwidgets, qt\n\nRendering abstractions: sfml, sdl\n\nRendering api: opengl, dx11, dx12, vulkan\n\nFor a quick job I'd stick with sfml/sdl", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "unfc4j", "question": "Try this experiment: film your face with your phone as you look to the side and try to move your eyes smoothly across the screen. You can't. All you'll see is *saccadic* eye movement (rapid little darts in eye position).\n\nNext, hold your finger behind your phone and focus on it while you move your finger from one side to the other. You'll see that your eyes move perfectly smooth while they track your finger.\n\nWhy is this the case? I can already imagine evolutionary motivations for it: when we look out into our environment, we are performing **visual search** so rapid, darting eye movements are good for snapping from one area of interest to another. But, when tracking a moving object of interest (such as prey) it is important to be able to smoothly fixate on it.\n\n\nBut my question is, do we know the **cortical or neuromuscular mechanisms** involve in this? Is there some sort of reflex involved?", "comment": "When you fixate on a target you do what\u2019s called a pursuit eye movement as you track it. These are smooth almost involuntarily extra ocular muscle movements to maintain binocular fixation of the retinal image on the fovea (area with the most dense photo receptors)\nWhen you try to voluntarily do the same thing you have no retinal image to tell the brain to fixate on. So it jumps around and cannot track it. \nThese eye movements are more jumpy as you try to find an object to fixate one this is a saccade. The initiation of both come from different areas in the brain. The Frontal eye field initiates both saccades (jumpy eye movement) and smooth pursuit tracking I believe. Could be wrong about that part. It\u2019s been a while since I got out of optometry school.\nHere\u2019s something else that\u2019s interesting. You have involuntary eye muscle movements of a stationary object when your in motion. Look at your phone camera and start turning your head up down left and right. Your eyes will be turning smoothly to track a stationary object without any input from you to move the eyes. This comes from the input from a combination of cranial nerves and is called the vestibulo ocular reflex. It\u2019s like a natural image stabilization for our eyes", "upvote_ratio": 290.0, "sub": "AskScience"} +{"thread_id": "unfdqk", "question": "I ll be travelling to the US soon, and I heard here and there that the testing requirements will be soonish dropped when wanting to fly to the us. But its difficult to search us news when living abroad. So i was wondering if there are any meetings planned or discussions on this topic in the us. When can i expect the testing requirement for fully vaccinated people to be dropped?", "comment": "Anybody saying they know anything for sure regarding covid rules and regs is lying to you.", "upvote_ratio": 1200.0, "sub": "AskAnAmerican"} +{"thread_id": "unfdqk", "question": "I ll be travelling to the US soon, and I heard here and there that the testing requirements will be soonish dropped when wanting to fly to the us. But its difficult to search us news when living abroad. So i was wondering if there are any meetings planned or discussions on this topic in the us. When can i expect the testing requirement for fully vaccinated people to be dropped?", "comment": "Lemme gather my fellow US homies for a quick meeting about this and we\u2019ll get back to you.", "upvote_ratio": 560.0, "sub": "AskAnAmerican"} +{"thread_id": "unfdqk", "question": "I ll be travelling to the US soon, and I heard here and there that the testing requirements will be soonish dropped when wanting to fly to the us. But its difficult to search us news when living abroad. So i was wondering if there are any meetings planned or discussions on this topic in the us. When can i expect the testing requirement for fully vaccinated people to be dropped?", "comment": "We are not privy to the internal meeting schedule of the CDC.", "upvote_ratio": 260.0, "sub": "AskAnAmerican"} +{"thread_id": "unfgrk", "question": "So, I am a qualified researcher in machine learning and am doing my second post-doc in Germany.\n\nNot trying to blow my own trumpet, but I need to set my qualifications straight to ensure that my question is not taken as a casual novice question.\n\nI am well-versed in Python, C++ and Rust. But in machine learning research I have always used Python to experiment when writing all my papers.\n\n&#x200B;\n\nI now want to establish myself as someone who is a prized asset in ML industry. Apart from my theoretical knowledge and experience with projects, would it help if I develop myself in C++ for machine learning as well ?\n\n&#x200B;\n\nThis brings me to the heart of my question : What are the prospects of C++ and Rust for machine learning in industry really ? Is it a prized skill ? I am looking for some pointers from people who are experienced in ML industry.", "comment": "That depends on what exactly you are planning to do. If you're primarily interested in exploring models then I'd stick to Python, the interface is simply much nicer. E.g. if you're doing things \"I'd like to have a layer with feature X, then another layer with Y activation function, then Z more layers, ... and compare that against A's model in our ML football games\".\n\nIf you plan on implementing the underlying libraries like tensorflow or writing the functionalities found in those libraries yourself then you kinda need to go with C++. Or if you're on restricted hardware that doesn't have a python environment or even OS (robotics).\n\nAll current ML frameworks are written in C++ (the Python layer is just the nice to use interface on top) so knowing that helps. You could write those things in Rust too but C++ has a much larger ecosystem.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "unfmt7", "question": "There are some really impressive hardware pieces on the market (usually made for specific purposes) that are way beyond their common counterparts (Samsung's new 512GB RAM, some audio cards, network cards that can reach absurd speeds -think I saw this one on LTT, etc), but the one thing they all have in common is that they use PCIe instead of their normal connectors.\nWhy don't we use PCIe for everything (I mean, slowly transition into it) since it is so much better for larger and faster bandwith? That way we open the possibilities for that hardware to come to consumers who want to pay for them or, although not likely because there would hardly be any necessity, become part of the norm as the high-end hardware for enthusiasts.", "comment": "There seems to be a bit of a disconnect between the title of your question and the body. As you've already noticed, hardware manufacturers do use PCIe where it makes sense to do so. They don't use it *everywhere* because of cost-benefit tradeoffs: either PCIe isn't better than the alternatives, or it isn't *sufficiently* better to justify the additional cost.\n\nFor example:\n\n* Hardware that can actually transmit/receive data over a PCIe bus at those blistering speeds is expensive, both in terms of silicon die area and power consumption. That means it costs extra to add PCIe support to a peripheral. It also means your CPU can only support a limited number of PCIe lanes.\n\n* Many devices don't *need* lots of bandwidth, and can easily get away with using a much slower bus such as USB, I2C or SPI. For instance, keyboards, mice, fan controllers, BIOS flash chips, etc.\n\n* PCIe is not unequivocally superior to the alternatives. For instance, it requires many more signal lines than USB, and the lines have to be carefully designed and laid out on circuit boards to deal with things like impedance matching. (There are PCIe \"extension cables\", but they're vastly more expensive than USB cables.) \n\n* On the other hand, you wouldn't want to access all of your system's RAM over PCIe. As the name suggests, RAM performance in practice is largely constrained by random-access latency, and PCIe has much greater latency than a standard SDRAM bus. The Samsung PCIe RAM module that you mentioned is designed for specialized workloads that need more RAM than would otherwise be physically possible, and are willing to pay a latency penalty for it.\n\n> but the one thing they all have in common is that they use PCIe instead of their normal connectors\n\nI'm not sure what you mean by \"normal connectors\" -- PCIe *is* normal for things like sound cards and NICs.", "upvote_ratio": 130.0, "sub": "AskComputerScience"} +{"thread_id": "unfscf", "question": "Hey folks so I am currently going through the Rust book and had this doubt. So if I have the following code -\n\n enum Message {\n Quit,\n Move { x: i32, y: i32 },\n Write(String),\n ChangeColor(i32, i32, i32),\n }\n \n impl Message {\n fn move_call(&self) {\n println!(\"{}, {}\", self.x, self.y);\n }\n }\n fn main() {\n let direction = Message::Move { x: 32, y: 45 };\n direction.move_call()\n }\n\nI want to access the values of x and y in the move\\_call method but I cannot. I get -\n\n error[E0609]: no field `x` on type `&Message`\n --> src\\main.rs:16:33\n |\n 16 | println!(\"{}, {}\", self.x, self.y)\n | ^\n \n error[E0609]: no field `y` on type `&Message`\n --> src\\main.rs:16:41\n |\n 16 | println!(\"{}, {}\", self.x, self.y)\n\nI checked what self is representing using Debug trait which is -\n\n Move { x: 32, y: 45 }\n\nAnd I know that we can access fields of a struct using dot notation-\n\n struct Move {\n x: i32,\n y: i32,\n }\n \n let dir = Move {\n x: 21,\n y: 32\n };\n \n println!(\"{}, {}\", dir.x, dir.y)\n\nSo why is it in the enum case I cannot access x and y??\n\n&#x200B;\n\nMy understanding here and I could be wrong is that we cannot just simply access one of the variants of the enum. The code wants us to write the cases for the other variants as well hence we need to resort to a match expression.", "comment": ">My understanding here and I could be wrong is that we cannot just simply access one of the variants of the enum. The code wants us to write the cases for the other variants as well hence we need to resort to a match expression.\n\nYeap, that's exactly right.\n\nSo your `move call` could look like this:\n```\nimpl Message {\n fn move_call(&self) {\n match self {\n // destructuring assignment\n Message::Move { x, y } => println!(\"{}, {}\", x, y),\n // ignore all other cases for now\n _ => (),\n }\n }\n}\n```\n\nLink to full working example in Rust playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=09d160baf48ba48577f30a5a729551ae", "upvote_ratio": 70.0, "sub": "LearnRust"} +{"thread_id": "unglm9", "question": "I\u2019m going to the US and Canada for 27 days total in the summer and was wondering if around $50 a day will be enough to enjoy myself there. I\u2019m aware I\u2019d be able to survive on this amount but was wondering if eating out, drinking and clubbing occasionally could be covered by this amount. I\u2019m going to NYC, Toronto and LA and am aware of just how expensive some of these places can get. If $50 is too little, then what amount would be recommended?\n\nEdit: Accommodation and flights have been sorted.\n\nTo rephrase the question differently, is ~$1,300 enough for 27 days?\n\nAlso how could I survive on $50 then?", "comment": "> survive\n\nAbsolutely, no problem.\n\n> drinking\n\nOf course, as long as you're not picky!\n\n> clubbing \n\nUhhhh....\n\n> NYC, Toronto and LA\n\nI give you approximately 1.5 days.", "upvote_ratio": 22070.0, "sub": "AskAnAmerican"} +{"thread_id": "unglm9", "question": "I\u2019m going to the US and Canada for 27 days total in the summer and was wondering if around $50 a day will be enough to enjoy myself there. I\u2019m aware I\u2019d be able to survive on this amount but was wondering if eating out, drinking and clubbing occasionally could be covered by this amount. I\u2019m going to NYC, Toronto and LA and am aware of just how expensive some of these places can get. If $50 is too little, then what amount would be recommended?\n\nEdit: Accommodation and flights have been sorted.\n\nTo rephrase the question differently, is ~$1,300 enough for 27 days?\n\nAlso how could I survive on $50 then?", "comment": "Visiting the 3 most expensive cities on the continent. I\u2019d plan for double or even triple your assessment or get creative. Outside of those areas you might be able to get by with that though\u2026", "upvote_ratio": 9870.0, "sub": "AskAnAmerican"} +{"thread_id": "unglm9", "question": "I\u2019m going to the US and Canada for 27 days total in the summer and was wondering if around $50 a day will be enough to enjoy myself there. I\u2019m aware I\u2019d be able to survive on this amount but was wondering if eating out, drinking and clubbing occasionally could be covered by this amount. I\u2019m going to NYC, Toronto and LA and am aware of just how expensive some of these places can get. If $50 is too little, then what amount would be recommended?\n\nEdit: Accommodation and flights have been sorted.\n\nTo rephrase the question differently, is ~$1,300 enough for 27 days?\n\nAlso how could I survive on $50 then?", "comment": "You're gonna need to quadruple that for la and NYC idk bout Toronto", "upvote_ratio": 6460.0, "sub": "AskAnAmerican"} +{"thread_id": "ungm6s", "question": "also if you're not flaired tell us what region this is applicable to", "comment": "How much does their shittiest beer cost? I'm not necessarily going to order it, but it tends to correlate with pretentiousness in my experience.", "upvote_ratio": 310.0, "sub": "AskAnAmerican"} +{"thread_id": "ungm6s", "question": "also if you're not flaired tell us what region this is applicable to", "comment": "Places that barely pass health and safety inspections>>>>>>\n\nBest food on earth", "upvote_ratio": 310.0, "sub": "AskAnAmerican"} +{"thread_id": "ungm6s", "question": "also if you're not flaired tell us what region this is applicable to", "comment": "For a bar, I\u2019m mostly looking for the atmosphere. I\u2019ll sometimes test them a bit by ordering a basic cocktail like an old fashioned. If they screw that up, I know to order beer from them on. I once ordered a Manhattan and got a shot of bourbon with a cherry in it. \n\nFor restaurants, I look online to see the menu and reviews.", "upvote_ratio": 180.0, "sub": "AskAnAmerican"} +{"thread_id": "ungxwc", "question": "Does the atmosphere bulge at the equator like the land/water does?", "comment": "Yes.", "upvote_ratio": 120.0, "sub": "AskScience"} +{"thread_id": "unhzm3", "question": "Can be entrees drinks or sides or all three together", "comment": "Cheddar Bay Biscuits from Red Lobster", "upvote_ratio": 2450.0, "sub": "AskAnAmerican"} +{"thread_id": "unhzm3", "question": "Can be entrees drinks or sides or all three together", "comment": "The blooming onions at Outback from like 25 years ago. \nAnd their bread and butter.", "upvote_ratio": 1590.0, "sub": "AskAnAmerican"} +{"thread_id": "unhzm3", "question": "Can be entrees drinks or sides or all three together", "comment": "The All-Star Special at Waffle House can't be beat. Huge waffle, 2 eggs, toast, hash browns, and your choice of one - bacon, sausage or ham for 7.50 in my neck of the woods", "upvote_ratio": 1370.0, "sub": "AskAnAmerican"} +{"thread_id": "uni1tr", "question": "Does anyone have an example of erathostenes sieve for only odd numbers? like v[10] corresponds to 19 and so on?", "comment": "Im confused how an erathostenes sieve with even numbers would look like", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uni6sa", "question": "Currently, I am practicing my Java and DSA skills on [hyperskill.org](https://hyperskill.org), although they are fantastic for Java and Python, unfortunately C++ is not available on their website.\n\n&#x200B;\n\nDoes anyone know whether there is any website that can provide c++ like Hyperskills?", "comment": "Why is there no rules on this subreddit against thinly veiled marketing of sketchy Chinese websites?\n\nIncase you request was in at the very least somewhat genuine, just try to do the same exercises in C++.\n\nEDIT: OP corrected a typo in their post, website linked originally was incorrect.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "unibap", "question": "I was thinking about this between delicious sneezing episodes. Anecdotal, but I know immigrants who claim they\u2019ve never had issues with pollen in their home countries but after arriving here they suddenly started succumbing to Big Pollen. What gives?\n\nSide note, the people I\u2019ve asked have been mainly from warmer countries", "comment": "[https://www.immunology.org/news/molecular-mechanism-allergies-discovered](https://www.immunology.org/news/molecular-mechanism-allergies-discovered)\n\n\"For a long time, we\u2019ve been aware that allergies occur much more frequently in Western countries\"\n\nDeveloped countries suffer from allergies more often.", "upvote_ratio": 70.0, "sub": "AskScience"} +{"thread_id": "unikqz", "question": "Humans are very culturally different across the globe. They learn different things from their culture, then think and act a certain way because of what they\u2019ve learned and how they were raised. Are there any examples of animals who have similarly profound cultural differences based on where they are from?", "comment": "[Cultural change in animals](https://www.nature.com/articles/s41599-019-0271-4)\n\n[Strongest evidence of animal culture in monkeys and whales](https://www.science.org/content/article/strongest-evidence-animal-culture-seen-monkeys-and-whales)\n\n[Geographical and cultural differences in orangutan behavior](https://www.sciencedirect.com/science/article/pii/S0960982211010190)\n\n[Geographical difference in bat echolocation](https://pubmed.ncbi.nlm.nih.gov/25664901/)\n\nFor more examples Google search cultural difference animals or geographical differences animal behavior", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "unikqz", "question": "Humans are very culturally different across the globe. They learn different things from their culture, then think and act a certain way because of what they\u2019ve learned and how they were raised. Are there any examples of animals who have similarly profound cultural differences based on where they are from?", "comment": "You can see it all over the place once you realize that culture doesn't have to look as extravagant or complex as humans happen to have taken it. Cultural knowledge are ideas and behaviors that, once learned, spread through certain populations usually because they are proven useful (even though they sometimes stick around even after they are stop being useful).\n\nOur primate cousins are well-known to exhibit these sorts of behaviors. Many learn all about what foods to eat, where to find them, when and how to eat them from their parents, meaning that rehabilitating orphaned primates usually requires teaching them this knowledge before they can be released back into the wild.\n\nBut it's not just that different species of primates have different diets. With many, especially apes, we see that different groups in one region have developed different dietary preferences and processing methods than other groups in other regions. Take orangutans: some populations use leaves as napkins while others do not. Some may use leaves as cushions, instead, lining a gnarly branch with them before sitting down. Others use leaves like gloves to handle thorny branches. Different sized leaves may serve difference purposes, or a whole branch of them might be used as an umbrella. The point is that not all orangutans exhibit all these behaviors, but orangutans tend to exhibit more similar behaviors the more they share their ranges with each other, which more than suggests that they share and mimic one another's good ideas.\n\nSimilar examples of culture is also well documented in chimpanzees, bonobos, and gorillas. Gibbons sing, and they learn their songs from their parents. The practice of washing sweet potatoes in the ocean spread through a group of macaques after just one of them did so.\n\nFrans de Waal has a great book called \"Are We Smart Enough to Know How Smart Animals Are?\" that goes into many of these examples and more, with representatives from throughout the animal kingdom.", "upvote_ratio": 70.0, "sub": "AskScience"} +{"thread_id": "unildl", "question": "Hi, I hope this isn't the wrong place to ask this. I'm a college student about to start my internship. I've been thinking about getting something like the rocket book or an e-ink tablet, like the supernote or remarkable for school, and was wondering how often a notebook comes in handy in a professional environment before I decide, one, if I should purchase one now, or wait until my next semester after the summer, as well a if I should spend more money on the e-ink or less in the rocket book since I only have the one semester left.\n\nAny advice is appreciated! Sorry if this is the wrong place to ask.", "comment": "It sort of depends on the job and the individual. I've always been happy with just a smartphone, to jot a couple reminders or take a picture of a whiteboard discussion. I know people with my exact same role though who absolutely depend on a notebook.\n\nOn a more general note, workplaces are much more collaborative than school, and you don't typically go to meetings where there is a ton of information dispensed that you'll be expected to remember. If I were you, I would stick to a paper notebook until I understood for myself what the environment is like.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "unildl", "question": "Hi, I hope this isn't the wrong place to ask this. I'm a college student about to start my internship. I've been thinking about getting something like the rocket book or an e-ink tablet, like the supernote or remarkable for school, and was wondering how often a notebook comes in handy in a professional environment before I decide, one, if I should purchase one now, or wait until my next semester after the summer, as well a if I should spend more money on the e-ink or less in the rocket book since I only have the one semester left.\n\nAny advice is appreciated! Sorry if this is the wrong place to ask.", "comment": "I just use a paper notepad for scrawling down stuff during meetings.\n\nIt depends on the job really.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "unj838", "question": "Watched a documentary there called American Factory where a huge corporation spy\u2019s on its workers to see who\u2019s in a union and find ways to fire those who support it. In school I was also taught that when the mafia was prevalent they were able to corrupt a number of unions. Do you feel any unions in the US are effective nowadays. Here in Ireland we really don\u2019t have a strong union for any industry bar the Luas industry. Often what happens is a small minority in a union for one industry will feel not cared for and will form a new union and send conflicting messages and demands to the employers and government.", "comment": ">Do you feel any unions in the US are effective nowadays.\n\nIt's hit or miss. I've worked with union guys that worked hard and were extremely professional. I've also worked with union guys that were so drunk by lunch they couldn't walk and they still didn't get fired. \n\n>huge corporation spy\u2019s on its workers to see who\u2019s in a union\n\nThere's no need to spy, it's pretty common knowledge whose in a union in at a business", "upvote_ratio": 220.0, "sub": "AskAnAmerican"} +{"thread_id": "unj838", "question": "Watched a documentary there called American Factory where a huge corporation spy\u2019s on its workers to see who\u2019s in a union and find ways to fire those who support it. In school I was also taught that when the mafia was prevalent they were able to corrupt a number of unions. Do you feel any unions in the US are effective nowadays. Here in Ireland we really don\u2019t have a strong union for any industry bar the Luas industry. Often what happens is a small minority in a union for one industry will feel not cared for and will form a new union and send conflicting messages and demands to the employers and government.", "comment": "> spy\u2019s on its workers to see who\u2019s in a union and find ways to fire those who support it.\n\nHaven't seen the movie, but I suspect that they were trying to identify workers who were trying to form a *new* union, rather than workers who were already part of a pre-existing union. It's very common for companies to discourage workers from forming unions, because unions are intended to force changes that benefit the workers at the expense of the company. It is illegal to fire a worker for trying to form or encourage a union, but companies can legally fire workers for all manner of other petty reasons, so union promoters should expect to be under increased scrutiny. Anyway, once the union exists, there's no secret about who's a member.\n\nI've never been a member of a union. I've worked alongside union members in various job functions. Some unions are a pain in the ass to deal with, some are not. Some are effective at improving working conditions, some are not. Some are corrupt, some are not.", "upvote_ratio": 190.0, "sub": "AskAnAmerican"} +{"thread_id": "unj838", "question": "Watched a documentary there called American Factory where a huge corporation spy\u2019s on its workers to see who\u2019s in a union and find ways to fire those who support it. In school I was also taught that when the mafia was prevalent they were able to corrupt a number of unions. Do you feel any unions in the US are effective nowadays. Here in Ireland we really don\u2019t have a strong union for any industry bar the Luas industry. Often what happens is a small minority in a union for one industry will feel not cared for and will form a new union and send conflicting messages and demands to the employers and government.", "comment": "Some unions prey on the employees that they're supposed to support. \n\nSome unions are wildly corrupt.\n\nSome are inefficient and obstructionist.\n\nSome are mostly good, but made mistakes.\n\nAnd some are pretty great.\n\nI was in a union that was corrupt and preyed on their own people. I was offered a job selling insurance to union members where the insurance company deliberately misrepresented itself and the coverage and bribed the union bosses to look the other way (I declined). I'm currently in a great union. If I wasn't working here, I wouldn't believe that a union could be this good, working with the business as a partner, not looking for problems but addressing them when they come up, and defending the employees when needed (which is rare because the business isn't shady).", "upvote_ratio": 130.0, "sub": "AskAnAmerican"} +{"thread_id": "unjawi", "question": "Would you have to have an older sample too? How's that work?\n\nEdit: You guys are very informed in your fields. I'm impressed. A lot of academic communities act aggressively to those that are uninformed. Thank you all for your answers. Almost like I would need a few years to comprehend your discussions adequately. Weird, huh?", "comment": "No, you cannot see them with standard DNA sequencing. Although egenetic changes do modify the DNA, they do not modify the actual sequence. You can detect epigenetic modifications with techniques such as chromatin IP, bisulfite sequencing, ATAC-sequencing, and Western blotting, among others; the technique you use depends on the precise modification you're interested in and how sensitive you need it to be.", "upvote_ratio": 380.0, "sub": "AskScience"} +{"thread_id": "unjawi", "question": "Would you have to have an older sample too? How's that work?\n\nEdit: You guys are very informed in your fields. I'm impressed. A lot of academic communities act aggressively to those that are uninformed. Thank you all for your answers. Almost like I would need a few years to comprehend your discussions adequately. Weird, huh?", "comment": "There is the added complication that there may be tissue-specific differences in epigenetic marks, so you'd need to sample across multiple locations (unlike the case for your genomic sequence, which with some exceptions should be about the same in every cell in your body).", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "unlj00", "question": "~43% of sites worldwide use Wordpress, however 99% of the front end job descriptions I\u2019ve seen never mention Wordpress and instead mention JS frameworks.\n\n1.\tWhy do you think that is?\n2.\tAm I pigeonholing myself if I were to take a job where they use Wordpress instead of JS framework?\n3.\tSay I take the job and stick with it for 2-3 years where I\u2019m gaining experience with Wordpress, PHP, vanilla JS, CSS/Sass - do you think it\u2019d be hard to switch into a development role using something like React?", "comment": ">1.\tWhy do you think that is?\n\nMost WordPress sites need minimal development. 90% of it can be managed by a random guy in marketing. That's actually one of the main selling points of WordPress: you don't need to hire a lot of expensive developers.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "unlj00", "question": "~43% of sites worldwide use Wordpress, however 99% of the front end job descriptions I\u2019ve seen never mention Wordpress and instead mention JS frameworks.\n\n1.\tWhy do you think that is?\n2.\tAm I pigeonholing myself if I were to take a job where they use Wordpress instead of JS framework?\n3.\tSay I take the job and stick with it for 2-3 years where I\u2019m gaining experience with Wordpress, PHP, vanilla JS, CSS/Sass - do you think it\u2019d be hard to switch into a development role using something like React?", "comment": "Because companies don't generally need full time employees to build them a static website, and keep it going. The majority of Wordpress sites are built by design agencies and lone wolf designers, or people doing it themselves. This isn't in any way to denigrate Wordpress or the people that use it, by the way. Far from it. But once a WP site is up, the work of the person designing it is largely done.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "unlolu", "question": "Solved:\n\nThank you for your answers, I found perf, gprof, gprof2dot and hotspot, that helps a lot. This tools are available in Linux (Ubuntu/Fedora).\n\n\\####################\n\nHi.\n\nI don't know how to implement this question. The thing is, I am following some tutorials for developing games with SDL2: Madsycode(youtube), Limeoats(youtube), Pikuma(was in Udemy, now he has his own page).\n\n* One of the many things that I like in the Pikuma tutorial, is that the programs is so lightweight, ECS, integration with Lua.\n* In the Limeoats, I like that you can print with animations tilemaps and some physics.\n* With Madsycode, I like the organization of the code.\n\n&#x200B;\n\n This is each game running and measuring using htop, bpytop, btop.\n | SDL | threads | RAM | CPU |\n | ------ | ------- | --- | --------------- |\n | Mad | 12 | 79M | (2.5 to 3.5) |\n | Lime | 11 | 69M | (1.9 to 2.6) |\n Pikuma doesn't measured because its the lighter :D\n\n**But,** comparing Mad and lime, the consume are almost similar. Is there a way to know which thread/method/function is consuming more? Or, Which method do you use for lightweight your program?", "comment": "For windows, I love perfview. Steep learning curve though but it will serve you well to invest the time.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "unn41s", "question": "What would you personally have done more of in your younger life so that you can feel more fulfilled now?", "comment": "Learned more about finance and invested more, sooner. I\u2019m not doing badly now, but I could have done much better, much earlier if I\u2019d made some relatively small changes to my money habits.", "upvote_ratio": 920.0, "sub": "AskOldPeople"} +{"thread_id": "unn41s", "question": "What would you personally have done more of in your younger life so that you can feel more fulfilled now?", "comment": "Say no about 10x more often. I can't stress this enough. If you feel like somebody can't handle your no, then you are being bullied, pushed around, manipulated, etc by that person. It's a huge red flag. \n\nAddress elephants in rooms every time I see one (because I'm gonna be the one to do it anyway. I may as well get it over with asap.)\n\nSelf-care. I still suck at it, but I think I probably had a better chance of making it habitual if I had recognized the need 30 years ago. \n\nBe less shy and afraid to participate in things.", "upvote_ratio": 760.0, "sub": "AskOldPeople"} +{"thread_id": "unn41s", "question": "What would you personally have done more of in your younger life so that you can feel more fulfilled now?", "comment": "Education, education, education. \n\nHave the skills to support yourself. Never depend on a spouse or SO to pay the rent.", "upvote_ratio": 660.0, "sub": "AskOldPeople"} +{"thread_id": "unnbft", "question": "Pretty much just the title. Any help would be appreciated just wondering how much of a benefit it is when looking for a job", "comment": "It's required for certain government or government contractor jobs. However, (in the U.S. at least), you can't just get a clearance if you want one. You require a reason and a sponsor for the clearance. That means you can't get a security clearance until you have landed a job that requires one.", "upvote_ratio": 120.0, "sub": "AskProgramming"} +{"thread_id": "unnbft", "question": "Pretty much just the title. Any help would be appreciated just wondering how much of a benefit it is when looking for a job", "comment": "Already having been cleared in the past is gets you a pretty good leg up on other applicants, and being eligible at all opens up opportunities in a smaller applicant pool than if you aren't, in aerospace (and other military contractors, but the big ones that are hiring in droves are the aerospace people). \n\nBut you either already have one or you don't. It's not like you can just apply for one.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "unngx6", "question": "Do most world maps look like [this](https://geology.com/world/world-map.shtml) or like [this](https://www.mapshop.com/world-physical-map-with-wonders-pacific-centered-light-oceans/) \n\nI\u2019ve seen some people say the US uses the world map that splits Europe in half and the US is in the middle, but I don\u2019t think that people actually use that.", "comment": "The first one is pretty standard.", "upvote_ratio": 1680.0, "sub": "AskAnAmerican"} +{"thread_id": "unngx6", "question": "Do most world maps look like [this](https://geology.com/world/world-map.shtml) or like [this](https://www.mapshop.com/world-physical-map-with-wonders-pacific-centered-light-oceans/) \n\nI\u2019ve seen some people say the US uses the world map that splits Europe in half and the US is in the middle, but I don\u2019t think that people actually use that.", "comment": "New world on the left, Old world on the right is pretty standard.", "upvote_ratio": 1080.0, "sub": "AskAnAmerican"} +{"thread_id": "unngx6", "question": "Do most world maps look like [this](https://geology.com/world/world-map.shtml) or like [this](https://www.mapshop.com/world-physical-map-with-wonders-pacific-centered-light-oceans/) \n\nI\u2019ve seen some people say the US uses the world map that splits Europe in half and the US is in the middle, but I don\u2019t think that people actually use that.", "comment": ">I\u2019ve seen some people say the US uses the world map that splits Europe in half and the US is in the middle, but I don\u2019t think that people actually use that. \n\nI think that is a type of nautical map, and it's done so both the Atlantic and Pacific can be seen in their entirety", "upvote_ratio": 760.0, "sub": "AskAnAmerican"} +{"thread_id": "uno33m", "question": "So i came across AWS and i wanted to know to know if amazon hires those without experience in this field.\nI wanna learn a lot about AWS from cloud Practioner, developer and devops engineer, i know amazon has resources on their webistes for this but if i were to pass my AWS exam(s) what will the chances be of getting hired in this area", "comment": "Maybe work for a Fortune 500 then transfer into the role like I did better option that wait if you wait a little bit skips all the It low wages stuff", "upvote_ratio": 70.0, "sub": "ITCareerQuestions"} +{"thread_id": "uno33m", "question": "So i came across AWS and i wanted to know to know if amazon hires those without experience in this field.\nI wanna learn a lot about AWS from cloud Practioner, developer and devops engineer, i know amazon has resources on their webistes for this but if i were to pass my AWS exam(s) what will the chances be of getting hired in this area", "comment": "You may be able to find an junior level AWS position like this one.\n\n[https://lensa.com/junior-cloud-engineer--aws-python-rust-java-jobs/des-moines/jd/bc90f1ba802f35dc09592275490716ae?utm\\_campaign=google\\_jobs\\_apply&utm\\_source=google\\_jobs\\_apply&utm\\_medium=organic](https://lensa.com/junior-cloud-engineer--aws-python-rust-java-jobs/des-moines/jd/bc90f1ba802f35dc09592275490716ae?utm_campaign=google_jobs_apply&utm_source=google_jobs_apply&utm_medium=organic)\n\nIts not directly with AWS, but its a start. That being said, you may have to get some formal IT experience if you cannot break in this way. I would advise looking for other entry level IT positions as well as throwing your resume to junior level AWS positions as well.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "unof2v", "question": "Hey guys, I am a soon to be physics grad, and while I have always enjoyed coding I do think I am a core science at my heart. So why programming? Because I need the money to sustain myself and pay my way through a masters, which can be quite expensive. Also, I need a break from physics for a while. Also can't stay with my parents no more. Bunch of stuff. \n\nSo I wanna know which programming language should I focus and learn in the next 6 months in the hope of landing an alright job. I can program in python, C++ up until linked lists etc., and I have a solid understanding of control flow for most languages, and thus my confidence that I'll understand most languages. Also, the answers will help me get a nerve of what the programming world looks like right now and what is in demand.\n\nAny and all suggestions/criticism welcome.\n\n&#x200B;\n\nPS: I'm in the UK if that helps.", "comment": "What the heck does \u201cup until linked lists\u201d mean?\n\nThat you can\u2019t write code more complex than a linked list? Read it? Understand it?\n\nAlso, how are you even defining \u201cmore complex\u201d, if that\u2019s even what you meant?\n\nAnd, \u201cgood understanding of control flow\u201d? I\u2019m no physicist, but sounds like to me: \u201cI have a good understanding of F = ma. What does the particle physics market look like, and what kinda job can I get at CERN??\u201d", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "unogs1", "question": "I've made a small CLI program in python that solves a problem for me, and could be useful to others. It takes a .json file and converts an array within it to a csv to be edited, then you can send the csv back to overwrite the original array with the new key value pairs in the csv file. There's a few other minor things, but that's the gist of it.\n\nNow, I would like to monetize it. This script solves a problem I have with software that's $500/year, so I feel I can sell a few of these. Problem is, I'm not sure how to go about it.\n\nAbout me, I've published an android app in kotlin. I'm relatively familiar with kotlin and a little of python. I could probably pickup enough java quickly to get it done there. I've tried using tkinter to build a gui in python, but it's turning out to be way more work than I expected, and I don't know how I could monetize an .exe without having users just share the executable, circumventing having to pay for it. I would like to avoid having to manage my own backend for validation (hence using google auth).\n\nI thought of creating a web app that uses google authentication, but I can't find much information about how to do that (perhaps I am not looking in the right places... I don't know what I don't know, you know?) I've used apps script extensively to automate and log data (from g-services as well as rpi's).\n\nI guess my question is, how would you do this? It needs to accept a file from the user, ask some questions, generate a new file with that information, and spit out that different file to the user. I'm open to learning some of a new language if it's going to be easier, but would like to stick with kotlin/java/python if possible.", "comment": "Open source it, put it up on github, use it as motivation to either get a higher paying job or a better increase from your employer. Profit!", "upvote_ratio": 80.0, "sub": "AskProgramming"} +{"thread_id": "unogs1", "question": "I've made a small CLI program in python that solves a problem for me, and could be useful to others. It takes a .json file and converts an array within it to a csv to be edited, then you can send the csv back to overwrite the original array with the new key value pairs in the csv file. There's a few other minor things, but that's the gist of it.\n\nNow, I would like to monetize it. This script solves a problem I have with software that's $500/year, so I feel I can sell a few of these. Problem is, I'm not sure how to go about it.\n\nAbout me, I've published an android app in kotlin. I'm relatively familiar with kotlin and a little of python. I could probably pickup enough java quickly to get it done there. I've tried using tkinter to build a gui in python, but it's turning out to be way more work than I expected, and I don't know how I could monetize an .exe without having users just share the executable, circumventing having to pay for it. I would like to avoid having to manage my own backend for validation (hence using google auth).\n\nI thought of creating a web app that uses google authentication, but I can't find much information about how to do that (perhaps I am not looking in the right places... I don't know what I don't know, you know?) I've used apps script extensively to automate and log data (from g-services as well as rpi's).\n\nI guess my question is, how would you do this? It needs to accept a file from the user, ask some questions, generate a new file with that information, and spit out that different file to the user. I'm open to learning some of a new language if it's going to be easier, but would like to stick with kotlin/java/python if possible.", "comment": "Quite frankly, this sounds like the kind of quick script that folks bang out every day.\n\nHowever, does this accomplish something that is critical to whatever processes the workflow involving the licensed software requires, and is it something that would normally be done many times during a given project?\n\nIf so, the simplest approach would be to build the functionality into a webapp, using a framework that supports authentication (Laravel, etc), and can be integrated with a payment processor (Square, etc).\n\nIf the solution you provide is cost-effective, you *might* make something from it. No harm in trying.\n\nBy building a webapp, instead of a standalone application, you don\u2019t have to worry about space pirates.", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "unoruu", "question": "Let me give some example:\n\n int a = 3;\n #ifdef a\n cout << a;\n #else\n cout << (++a);\n #endif\n\nWith the printed result `4`.\n\nBased on this example, I assume that preprocessor symbols are not the same as postprocessor symbols, AKA the `a` in `#ifdef a` isn't the same as the `a` in `int a = 3;`. I make this assumption, because if they were the same, I would assume `#ifdef a` to be a branch that is hit rather than missed. But evidently it missed.\n\nSo in order to test that assumption, I make a new example:\n\n #define a\n int a = 3;\n #ifdef a\n cout << a;\n #else\n cout << (++a);\n #endif\n\nSince I believe the two `a`s to be separate, I expect this to compile. It does not.\n\nSo now I have evidence both for and against the idea that these two symbols `a` are the same.\n\n&#x200B;\n\nSomebody please tell me what the hell is going on here, I don't understand.", "comment": "The preprocessor doesn't give a flying crap about your C++ code, other than being syntactically compatible.\n\n> \\#define a\n\n`a` identifiers are now replaced with nothing. You can check by dumping the preprocessed output.\n\nhttps://www.learncpp.com/cpp-tutorial/introduction-to-the-preprocessor/", "upvote_ratio": 230.0, "sub": "cpp_questions"} +{"thread_id": "unoruu", "question": "Let me give some example:\n\n int a = 3;\n #ifdef a\n cout << a;\n #else\n cout << (++a);\n #endif\n\nWith the printed result `4`.\n\nBased on this example, I assume that preprocessor symbols are not the same as postprocessor symbols, AKA the `a` in `#ifdef a` isn't the same as the `a` in `int a = 3;`. I make this assumption, because if they were the same, I would assume `#ifdef a` to be a branch that is hit rather than missed. But evidently it missed.\n\nSo in order to test that assumption, I make a new example:\n\n #define a\n int a = 3;\n #ifdef a\n cout << a;\n #else\n cout << (++a);\n #endif\n\nSince I believe the two `a`s to be separate, I expect this to compile. It does not.\n\nSo now I have evidence both for and against the idea that these two symbols `a` are the same.\n\n&#x200B;\n\nSomebody please tell me what the hell is going on here, I don't understand.", "comment": "The pre-processor is an entirely separate language applied to the source text before the C++ compiler sees it. The preprocessor macros are independent of the language identifiers. In the first example, there is no `a` preprocessor macro defined, so the `#ifdef` branch is elided from the source text as seen by the compiler and it sees:\n\n int a = 3;\n cout << (++a);\n\nAnd thus prints out `4`. In the second example, you've defined a preprocessor macro `a` to be an empty string. The preprocessor spits out the text:\n\n int = 3;\n cout << ;\n\nWhich will not compile.", "upvote_ratio": 130.0, "sub": "cpp_questions"} +{"thread_id": "unoruu", "question": "Let me give some example:\n\n int a = 3;\n #ifdef a\n cout << a;\n #else\n cout << (++a);\n #endif\n\nWith the printed result `4`.\n\nBased on this example, I assume that preprocessor symbols are not the same as postprocessor symbols, AKA the `a` in `#ifdef a` isn't the same as the `a` in `int a = 3;`. I make this assumption, because if they were the same, I would assume `#ifdef a` to be a branch that is hit rather than missed. But evidently it missed.\n\nSo in order to test that assumption, I make a new example:\n\n #define a\n int a = 3;\n #ifdef a\n cout << a;\n #else\n cout << (++a);\n #endif\n\nSince I believe the two `a`s to be separate, I expect this to compile. It does not.\n\nSo now I have evidence both for and against the idea that these two symbols `a` are the same.\n\n&#x200B;\n\nSomebody please tell me what the hell is going on here, I don't understand.", "comment": " #define a\n\nmeans replace `a` with nothing.\n\nSo the next line becomes\n\n int = 3\n\nwhich is meaningless.\n\n`-E` is your friend : https://godbolt.org/z/MsG3EM4Wr", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "unoyir", "question": "So I'm an experienced self taught dev working in the software industry for the past 5 years. My experience with programming includes JS/TS (React), Python and Go. I've been looking to learn a new programming language in my spare time and I'm thinking to branching into a systems/non-gc programming language but im not sure which to pick. This will be half learning exercise, half increasing my skills to further increase my employability. \n\nI've thought about C, C++, Rust, Nim and potentially Zig although i think C (been told everyone should learn this language to understand how computers work but probably wont get me a job) and Rust are on my shortlist", "comment": "C", "upvote_ratio": 40.0, "sub": "AskProgramming"} +{"thread_id": "unoyir", "question": "So I'm an experienced self taught dev working in the software industry for the past 5 years. My experience with programming includes JS/TS (React), Python and Go. I've been looking to learn a new programming language in my spare time and I'm thinking to branching into a systems/non-gc programming language but im not sure which to pick. This will be half learning exercise, half increasing my skills to further increase my employability. \n\nI've thought about C, C++, Rust, Nim and potentially Zig although i think C (been told everyone should learn this language to understand how computers work but probably wont get me a job) and Rust are on my shortlist", "comment": "I'd say C all the way. There are some languages that are arguably better or nicer, but C really forces you to learn it well.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "unp4h2", "question": "Why are there multiple programming languages?", "comment": "We've been designing programming languages for about 70 years, and have learned a thing or two in that time. Following from that, researchers like playing with new ideas, and sometimes they catch on outside of an academic context too, and a new language is built around the new idea.\n\nLanguages have trade-offs. One well-suited for one purpose may be poorly-suited for other purposes.", "upvote_ratio": 170.0, "sub": "AskProgramming"} +{"thread_id": "unp4h2", "question": "Why are there multiple programming languages?", "comment": "Because anyone can write a language.\n\nEveryone is smarter than the last person so theirs is the best way.\n\nWould it be better if there were only one? And one OS, and one model of car?", "upvote_ratio": 100.0, "sub": "AskProgramming"} +{"thread_id": "unp4h2", "question": "Why are there multiple programming languages?", "comment": "Why are there multiple flavors of food?\n\nWhy are there different colors of paint?\n\nWhy are there different kitchen utensils?\n\nWhy are there different tools?\n\nWhy are there different sports?", "upvote_ratio": 100.0, "sub": "AskProgramming"} +{"thread_id": "unpguo", "question": "I only made a `bidirectional iterator` once before and that was for a `list` a long time ago. So I am uncertain how to do it for a `map` now concerning the `member typedefs` of `std::iterator_traits<It>`. If I am doing `template <tyename K, typename v>` where K is the `key` and V is the `value`, then would this ok for the `member typedefs`?:\n\n template <typename K, typename V>\n struct Iterator {\n using value_type = V;\n using difference_type = ptrdiff_t;\n using pointer = V*;\n using reference = V&;\n using iterator_category = std::bidirectional_iterator_tag;\n }; \n\nThanks", "comment": "`value_type` for associative containers is generally `pair<const Key, Value>`, with everything else following from that.\n\n//edit: In case your map type does not store its nodes in a pair, you could consider something like `pair<const Key&, Value&>`.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "unppsp", "question": "Satellites can sit in orbit. Can missiles do the same?", "comment": "[Yes.](https://en.wikipedia.org/wiki/Fractional_Orbital_Bombardment_System)", "upvote_ratio": 240.0, "sub": "AskScience"} +{"thread_id": "unppsp", "question": "Satellites can sit in orbit. Can missiles do the same?", "comment": "It's called Fractional Orbital Bombardment system. It does require a missile designed for it. The delta V (change in velocity) requirement is higher than for an ICBM, so it needs either a more powerful missile or/and a lighter warhead, and the missile needs to perform the reentry burn meaning there's different control requirements after the boost phase.\n\nEdit: Or just orbital bombardment if the missile loiters in orbit for ages. Doing that with nuclear warheads would break international treaties.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "unppsp", "question": "Satellites can sit in orbit. Can missiles do the same?", "comment": "[removed]", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "unpriy", "question": "For me, I think you can get better Italian food than in Italy in some places in the US. What are some foods like this for y\u2019all?", "comment": "I\u2019m gonna throw a weird one out there, but bagels.", "upvote_ratio": 6050.0, "sub": "AskAnAmerican"} +{"thread_id": "unpriy", "question": "For me, I think you can get better Italian food than in Italy in some places in the US. What are some foods like this for y\u2019all?", "comment": "May be an unpopular opinion but I prefer American pizza over Italian pizza\u2026 and I don\u2019t mean that chain restaurant pizza, but those from small businesses. I remember eating this delicious cheese pizza from NYC on my trip last year and it was better than any pizza I tried at Italy when I went on summer trip there 3 years ago\u2026 and believe me, I tried a good amount of places. May just be my taste buds tho\u2026.", "upvote_ratio": 5620.0, "sub": "AskAnAmerican"} +{"thread_id": "unpriy", "question": "For me, I think you can get better Italian food than in Italy in some places in the US. What are some foods like this for y\u2019all?", "comment": "Sorry Germany. America took your burger, ran with it, and got all the gold medals.", "upvote_ratio": 3770.0, "sub": "AskAnAmerican"} +{"thread_id": "unq2ic", "question": "And when I mean modern, I mean the last 10-15 years. What old techology do you really miss?", "comment": "i dont covet old technology but i do think social media has ruined humanity.", "upvote_ratio": 390.0, "sub": "AskOldPeople"} +{"thread_id": "unq2ic", "question": "And when I mean modern, I mean the last 10-15 years. What old techology do you really miss?", "comment": "I've become a luddite of sort as well. I don't know if I am quite old enough to comment yet (40, b. 1981) but I miss technology from 15 years ago. Algorithms have ruined social media. All these places used to have NO ADS. You OWNED your software and no one could force you to update anything. I read somewhere on reddit that taking tests in school requires eye tracking software and I think I'd rather be temporarily blind than submit to that. \n\n\n\nA pesky example: My Samsung just \"updated\" recently and tore out a function that I used a LOT, the health heartbeat and O2 meter, and the only option now is to get a 3rd party app that has invasive ads or pay even more money for the same thing I already had. I'm going to be salty and cantankerous about it for a while too, so I am feeling like an old curmudgeon.", "upvote_ratio": 200.0, "sub": "AskOldPeople"} +{"thread_id": "unq2ic", "question": "And when I mean modern, I mean the last 10-15 years. What old techology do you really miss?", "comment": "I\u2019m the 51 year old tech support manager for an office of lawyers ranging in age from late 20s to early 70s. In my experience, no one hates any and all technology like a 35 year old lawyer. I send them instructions on how to change their default browser and they react like I told them they have to compile their own source code. \n \nFor myself, I\u2019ve always been a techie guy, but I don\u2019t like a lot of the ways that\u2019s technology is progressing. \nI don\u2019t like when things are hidden from me in the interest of making them easier to use. \nI don\u2019t like how everything wants to tie me down to monthly fees. I pay monthly for Adobe Photoshop and Lightroom, which means that as soon as I stop paying, my photo libraries become useless. I subscribe to Apple Music, which is super convenient, but as soon as I stop paying I no longer have any music. If I were to \u201cbuy\u201d a movie from the Google Play store, do I really own it? What if they scrap the store like they did with Google Music? \nI don\u2019t like the massive harvesting of personal information. \nI don\u2019t like ads everywhere. Instagram is now showing a \u201cpersonalized\u201d ad for every 3 pictures. \n\nI miss buying something like an new CD player or vhs player, buying some tapes or CDs, and just playing them. If the thing breaks, I can get it fixed and use it until the tapes wear out. \nNo license agreements, no giving them my email address or phone number, not having to opt out of sending usage statistics to \u201cimprove my experience\u201d. Just leave me alone.", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "unqo55", "question": "Can decompression sickness cause pneumocephalus (air in the cranial cavity)?", "comment": "I don\u2019t think so:\n\n* decompression sickness (DCS) doesn\u2019t cause \\*air\\* anywhere, only nitrogen\n* nitrogen equilibrates between environment, lungs and blood relatively slowly (compared to oxygen and CO2): DCS is caused by an imbalance between higher tissue concentrations and lower ambient (partial) pressures - nitrogen bubbles then form, best pictured by all the bubbles appearing in fizzy drink when opened. \n* these bubbles will form where tissue nitrogen concentrations are highest. This can be in general tissues, but is usually within plasma, liver and muscle. They therefore form within the blood vessels rather than as free gas within the brain or CSF. Although the latter is possible I think neurological DCS is still a manifestation of circulatory dysfunction secondary to bubble formation, not direct formation of bubbles in neurological tissue. \n\nThis is Reddit so I could be wrong, but the basics will be sound so the answer is likely to be \u2018no\u2019", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "unqui2", "question": " Hello! Logins will be held in a SQL database. We want to limit access to 5 devices simultaneously. If a user will connect from a 6th device and if our app/client is working on all 5 devices, he won't log in.", "comment": "This works for 5 browsers not 5 devices. \n\nStore a generated ID in a cookie and send it with each request, keep an array of the ID associated with the user in the database. Limit the IDs to 5 in the DB. If a request comes from the user and the ID passed with the request isn't in the database IDs, reject the request.", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "unr0ga", "question": " I mean we do have Lady liberty, and uncle sam. Columbia too, along with the obsolete and dated personifications. Like brother Jonathan. But if we were to really capture the USA under one person, who or what would it be?", "comment": "Lady Liberty isn't a personification. It's a symbol for what we strive to be\n\n[It's why China will never see Spiderman: No Way Home](https://screenrant.com/spiderman-no-way-home-finale-china-edit-request/)", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "unr0ga", "question": " I mean we do have Lady liberty, and uncle sam. Columbia too, along with the obsolete and dated personifications. Like brother Jonathan. But if we were to really capture the USA under one person, who or what would it be?", "comment": "Hey now, let's put some respect on Miss Columbia's name why don't we\n\nShe was a girlboss throughout the 1800s/early 1900s until she was unfairly killed off by the world wars and the \"need\" for a masculine personification\n\nIn political comics, she was always a better personification (as was shown to care more about justice/equality/democracy) than Uncle Sam. She was used to represent the American people while Uncle Sam was used to represent the federal government.\n\nEidt\n\nOf course, the answer to this question can be answered by Hetalia", "upvote_ratio": 200.0, "sub": "AskAnAmerican"} +{"thread_id": "unr0ga", "question": " I mean we do have Lady liberty, and uncle sam. Columbia too, along with the obsolete and dated personifications. Like brother Jonathan. But if we were to really capture the USA under one person, who or what would it be?", "comment": "Trying to capture it as one person would be a disservice to the nation itself.", "upvote_ratio": 130.0, "sub": "AskAnAmerican"} +{"thread_id": "unrc4v", "question": "(Sorry I know this is a cpp subreddit but c seems to be inactive)\n\nThe following is intended to print out statements but in different lines:\n\n #include <stdio.h>\n \n int main(){\n printf(\"Hello World!\");\n printf(\" \");\n \n int number= 1;\n float percentage= 3.14;\n char letter = 'A';\n \n printf(\"This is the number: %d\", number);\n printf(\"This is the percentage: %f\", percentage);\n printf(\"This is the character: %c\", letter);\n \n return 0;\n }\n\nHowever, it all prints on the same line.\n\nOutput:\n\n Hello World! This is the number: 1This is the percentage: 3.140000This is the character: A\n\nI also tried doing it so that it prints the percentage sign on line 12:\n\n printf(\"This is the percentage: %f%\", percentage);\n\nbut I got an error, what can I do?\n\nI am coding on Ubuntuu text editor, using terminal to run my code, and an online compiler. Both print on the same line.", "comment": "printf doesn't automatically add a newline. u need to add `\\n`, ie `printf(\"hello\\n\")`.\n\nfor the percent sign you probably need to escape it since it is a special character. Try `printf(\"This is the percentage: %f\\%\", percentage);`", "upvote_ratio": 70.0, "sub": "cpp_questions"} +{"thread_id": "uns7h7", "question": "Like if I wanted to stand at the highest and lowest point where would I need to go?", "comment": "Highest: Mount Whitney\n\nLowest: Death Valley\n\nApparently these are also the highest and lowest points in the contiguous United States.", "upvote_ratio": 350.0, "sub": "AskAnAmerican"} +{"thread_id": "uns7h7", "question": "Like if I wanted to stand at the highest and lowest point where would I need to go?", "comment": "Tallest: Mt Elbert - 14,439 ft. \n\nLowest: Lauren Boebert\u2019s district.", "upvote_ratio": 160.0, "sub": "AskAnAmerican"} +{"thread_id": "uns7h7", "question": "Like if I wanted to stand at the highest and lowest point where would I need to go?", "comment": "[https://en.wikipedia.org/wiki/Britton\\_Hill](https://en.wikipedia.org/wiki/Britton_Hill) comes in at a whooping 345 feet summit. Pretty much everywhere else is coast line.", "upvote_ratio": 140.0, "sub": "AskAnAmerican"} +{"thread_id": "unsbpq", "question": "Is isolationist sentiment on the rise? Do you think it will continue to grow?", "comment": "Yes, on both sides of the political spectrum but for different reasons.\n\nRepublicans are saying other countries have taken advantage of the USA, that they're not paying their fair share to our commitments, and we shouldn't be spending money on foreign aid that could be going to Americans here. \n\nDemocrats are saying we shouldn't be intervening in other countries affairs, that we have a history of destabilizing and overthrowing governments that don't follow our orders, and that we shouldn't be telling other nations how to live when we have a myriad of issues at home we should be focusing on. \n\nBoth sides essentially want isolationism, their reasoning for it differs a little though. But what will ultimately win out in politics is business interests and business interests benefit more from our global position than they would an isolationist one", "upvote_ratio": 640.0, "sub": "AskAnAmerican"} +{"thread_id": "unsbpq", "question": "Is isolationist sentiment on the rise? Do you think it will continue to grow?", "comment": "Nice try Vladimir", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "unsbpq", "question": "Is isolationist sentiment on the rise? Do you think it will continue to grow?", "comment": "I think we should help Ukraine, but if you compare the numbers Europe isn't stepping up and doing their fair share. As usual.", "upvote_ratio": 400.0, "sub": "AskAnAmerican"} +{"thread_id": "unsdlz", "question": "Evidently there is sulfur and oxygen in magma and it combines to form SO2. What magma chemistry leads to this being a primary constituent of volcanic eruptions?", "comment": "You answered your question pretty well in asking it:\n\nIt's a major volcanic emission because sulfur is in solution in magma. There's a fair amount in the earth in general, and it ends up in most magma in some amount, just like silicon, iron, aluminum, calcium, and sodium.\n\nWhen the magma cools, near the surface in the case of a volcano, the sulfur is one of the last things in the liquid magma to be in an 'active' state (I think it's technically a superfluid under these conditions, but it might just be a gas dissolved in mostly solid rock?).\n\nThis sulfur escapes through micro- or macroscopic cracks (or the bubbling surface of a lava lake or flow, or mixed with ash and CO2 and water in an explosive eruption) and reacts with air to form sulfur dioxide.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "unsdz4", "question": "Would the blood be \u2018tainted\u2019? Could it potentially get someone sick? Asking out of curiosity all I could find online is \u201cdon\u2019t donate until one week free of symptoms\u201d.", "comment": "First up, respiratory viruses are not known to be transmitted through blood transfusions. This was confirmed many times during Covid-19. Respiratory viruses mostly live in cells in your airways, they aren't in your blood stream.\n\nEven then, not a problem for the recipient (mostly) due to how donated blood is processed.\n\nLet's specifically look at *whole blood* donation in wealthy countries.\n\nYour individual donation is often these days mixed in with a lot of other people before any testing. It all depends on the centre that does the collection and company that does the processing. But let's assume individual testing.\n\nIt is tested for blood groups, red cell antibodies and then a handful of blood borne infectious diseases such as HIV, hepatitis, syphilis, HTLV, CMV and malaria if you checked that box. Others too depending on where you live.\n\nWorth mentioning that even those are removed in later processes by washing. More on that below.\n\nYour blood is then broken down into it's components using a centrifuge. Red blood cells, plasma, or platelets are extracted using specialised machines. There are also special detergents and soaps to remove viruses or proteins that are not wanted. This is called [blood washing](https://en.wikipedia.org/wiki/Washed_red_blood_cells). It's rare these days to get given a packet of blood that was taken directly from the host without processing.\n\nAny cold viruses will be removed by washing. They aren't there, but if they were somehow, they are removed.\n\nFrom [the WHO website](https://www.who.int/news-room/fact-sheets/detail/blood-safety-and-availability): 37% of the blood collected in low-income countries is separated into components, 69% in lower-middle-income countries, 95% in upper-middle-income countries, and 97% in high-income countries.\n\nYour two main concerns not addressed above are \n\n* Allergic reactions to proteins and/or cells in the transfusion (not related to colds)\n\n* Fever due to special proteins called *cytokines* in the transfusion. These reactions are called febrile nonhemolytic transfusion reactions (FNHTRs) (related to colds)\n\nCytokines are special proteins you make to trigger your immune system. You can think of it as you get a respiratory virus, your body then sounds the alarm (cytokines) to make an immune response. After a transfusion the host body is confused at why the alarm is sounding so it starts an immune response just in case. Important note: the host doesn't have an infection, their body is responding as if it has.\n\nPartly, we don't need a patient starting an immune response when they already under stress for whatever reason they need the blood. However, the trauma requiring a blood transfusion is probably so serious that a fever is least of their problems.\n\nMostly, *we want you to wait for your own health*. After a cold your body is stressed and we don't want to cause you harm too. Your blood volume is higher in white blood cells, but not a problem as all those white blood cells will be removed and thrown away / turned into products.\n\nFun fact: the preferred process to dispose of waste human blood is to pour down the regular domestic sewer drain for disposal. This is completely legal and safe. Should a blood processer decide a batch is (1) too old and unusable or (2) contaminated in some way that it is too expensive to purify or (3) too much was collected, they will pour it down the drain.", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "unsdz4", "question": "Would the blood be \u2018tainted\u2019? Could it potentially get someone sick? Asking out of curiosity all I could find online is \u201cdon\u2019t donate until one week free of symptoms\u201d.", "comment": "It's actually....really, really bad if a cold virus gets from your nose/throat/lungs to your blood. Sometimes your digestive tract gets infected, too, but a typical cold infection would leave various *markers* of the infection, from white blood cells etc going to the linings of your airways and other immune processes on-site, but hypothetically no living cold virus.\n\nThe rules are to be careful in the 0.1% (or some other very small percent) of cases where that isn't the case, and someone vulnerable gets REALLY sick.\n\nEDIT: thought about this some more. I think there may be active virus in your blood with a 'normal' cold, but not at concentrations where it can successfully start infecting more of your cells elsewhere in your body. One problem they hope to avoid is that your blood might go to someone with next to no working immune system who could get a systemic infection from a tiny viral load in donated blood. I think. Folks who aren't the nerd kid of two nerd nurses feel free to weigh in.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "unspbx", "question": "I've got the following function, which uses `std::make_unique`:\n\n void from_json(const nl::json& json, std::unique_ptr<b2Shape>& shape)\n {\n const int type{json.at(\"type\").get<int>()};\n const nl::json& value = json.at(\"value\");\n \n switch (type)\n {\n case 0:\n shape = std::make_unique<b2CircleShape>(value.get<b2CircleShape>());\n break;\n \n case 1:\n shape = std::make_unique<b2EdgeShape>(value.get<b2EdgeShape>());\n break;\n \n case 2:\n shape = std::make_unique<b2PolygonShape>(value.get<b2PolygonShape>());\n break;\n \n case 3:\n shape = std::make_unique<b2ChainShape>(value.get<b2ChainShape>());\n break;\n \n default:\n throw util::Io_error{\"unknown shape type\"};\n }\n }\n\nHow can I make a `void from_json(const nl::json& json, std::shared_ptr<b2Shape>& shape)` version without duplicating code? The signature must be as described so the json library can recognize the function.\n\nOne idea is to just call `new`, but is there a better way?", "comment": "You can construct a shared_ptr by moving from a unique_ptr\n\nSo have the shared from_json call the unique one", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "untk4o", "question": "I'm trying to do my own clicker game, and I'd like to do a map like Pok\u00e9clicker have, with different single color tiles next to another, with a light grey grid to show the mark between 2 tiles. Any idea how to code that in a proper manner ? \n\n\nI'm thinking something like this [https://i.redd.it/rr4q4mfrbqe61.png](https://i.redd.it/rr4q4mfrbqe61.png) in the bottom part of the screen, in the middle. \n\n\nI'm thinking array of arrays with a color each, an printing color\\[0\\] + separator + color\\[1\\] ... for each line, separated by a line of separator or something like that. Sounds kinda basics, so I figured they were better ways to do it.", "comment": "Sounds like you want to implement a two-dimensional array: https://math.hws.edu/javanotes/c7/s5.html", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "untutd", "question": "In my country same retail chain has different prices for same product in different places which depends on purchasing power of region. Is this a thing in US?", "comment": "Due to different costs in different states, even different municipalities can have different prices.\n\nCalifornia retail prices are higher than retail prices in in Texas, for example. You can check [numbeo.com](https://numbeo.com).\n\nRetail sites also often ask you to enter to your ZIP code.\n\nNominally, chains like Dollar Tree might say that they try to maintain consistent prices, but in reality their prices must vary to keep up with fluctuating costs.", "upvote_ratio": 190.0, "sub": "AskAnAmerican"} +{"thread_id": "untutd", "question": "In my country same retail chain has different prices for same product in different places which depends on purchasing power of region. Is this a thing in US?", "comment": "I believe the Costco food court has the same prices nationwide. other than that, no. Varying cost of living and tax rates make prices fluctuate a lot", "upvote_ratio": 30.0, "sub": "AskAnAmerican"} +{"thread_id": "untutd", "question": "In my country same retail chain has different prices for same product in different places which depends on purchasing power of region. Is this a thing in US?", "comment": "Not really. Sales tax varies though.", "upvote_ratio": 30.0, "sub": "AskAnAmerican"} +{"thread_id": "untx5n", "question": "Do you need a supercomputer to train a neural network?", "comment": "This depends entirely on the size/complexity of the neural network and the data you're working with\n\nA neural network can be anything from single-digit amount of neurons to billions, if not trillions, of neurons such as for example GTP-3\n\nYou can train a relatively simple neural network on your home computer in a reasonable timeframe.", "upvote_ratio": 100.0, "sub": "AskComputerScience"} +{"thread_id": "untx5n", "question": "Do you need a supercomputer to train a neural network?", "comment": "No. \n\nYou might want a bunch of regular computers depending on the size of the net", "upvote_ratio": 40.0, "sub": "AskComputerScience"} +{"thread_id": "unu2s0", "question": "My dentist is mad about the stuff, reckons if I can only do one I should floss rather than brush. Good way to stop teeth decay. But what do First Nations culture use if they don\u2019t have plastic?", "comment": "While dental floss may not have existed many cultures used miswak or need branches that people chew on. They have antimicrobial properties and the ends can be used to dislodge food and brush one's teeth.\n\nI'm sure other cultures had similar technology.", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "unuevz", "question": "What are some crazy/weird laws in your state?", "comment": "It's illegal to hunt whales in Oklahoma.\n\nhttps://www.knowledgetribe.in/articles/7-unusual-laws-around-world#:~:text=Oklahoma%20has%20a%20law%20which,stringent%20law%20banning%20the%20pastime.", "upvote_ratio": 130.0, "sub": "AskAnAmerican"} +{"thread_id": "unuevz", "question": "What are some crazy/weird laws in your state?", "comment": "In Colorado it's a fairly significant misdemeanor, with possible penalties of up to a year in jail prior to March 1 (not sure how this offense was reclassified), to throw a cigarette out the window of a car\n\nIt makes sense when you think about the wildfire problems here, but definitely shocking to see how severe it is", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "unuevz", "question": "What are some crazy/weird laws in your state?", "comment": "Restaurants and bars are required to specify which they are. So a restaurant will have a sign stating \"This establishment is a restaurant\" and a bar stating \"This establishment is a bar\" or something like that. Up until a year or so ago we weren't allowed to have the same percentage of ABV in our beer as every other state. I believe the maximum ABV you can purchase outside of a liquor store is 5% now, it was like 3.5% before.", "upvote_ratio": 90.0, "sub": "AskAnAmerican"} +{"thread_id": "ununpf", "question": "One that sticks with me is \"Hold onto yourself, Bartlett. You're twenty feet short.\"", "comment": "\"Serpentine! Serpentine!\"", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "ununpf", "question": "One that sticks with me is \"Hold onto yourself, Bartlett. You're twenty feet short.\"", "comment": "I love the smell of Napalm in the morning\n\nApocalypse Now", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "ununpf", "question": "One that sticks with me is \"Hold onto yourself, Bartlett. You're twenty feet short.\"", "comment": "'Don't be stoopid. Nobody's jugs're bigger than their neck. ' *Grease*", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "unv7pf", "question": "I am from india and casual sex is not very common here.And i always hear a lot about america that casual sex and kink parties are common.Can anyone give some idea?\n\nBy casual sex,i mean people involving physically with other people if they are mutually attracted to each other without committing to one long term partner.", "comment": "casual sex between two people? very common, mostly through dating apps/college scenes etc. \n\n\nsex parties/orgies? not very common.", "upvote_ratio": 1750.0, "sub": "AskAnAmerican"} +{"thread_id": "unv7pf", "question": "I am from india and casual sex is not very common here.And i always hear a lot about america that casual sex and kink parties are common.Can anyone give some idea?\n\nBy casual sex,i mean people involving physically with other people if they are mutually attracted to each other without committing to one long term partner.", "comment": "I used to spend a lot of time in India and I was always surprised at how much sex you guys think goes on here. Like, I used to check into hotels with my wife and they would assume that we were casual friends who were sleeping together (They would say things like, \"So, I assume a one-bed room for you and your... Friend?\"). We were wearing wedding bands and everything, although I guess culturally that's not always how you guys represent marriage over there huh? \n\nAnyway, I used to get the distinct impression that a lot of people in India think that way about America because of our TV shows. Sit-coms like Friends and stuff. There is definitely more causal sex in America than in India, but certainly not as much as those TV shows make it seem. Kind of like how a bunch of Indian soap operas make it look like everyone has a ton of money and lives in really nice houses, and wears a ton of gold jewelry everyday? Similar in America.", "upvote_ratio": 970.0, "sub": "AskAnAmerican"} +{"thread_id": "unv7pf", "question": "I am from india and casual sex is not very common here.And i always hear a lot about america that casual sex and kink parties are common.Can anyone give some idea?\n\nBy casual sex,i mean people involving physically with other people if they are mutually attracted to each other without committing to one long term partner.", "comment": "> casual sex \n> \n>kink parties\n\nThese two are not as connected as you'd like to think. \n\nIts interesting one side of the world thinks we're these sex crazed maniacs and the other side of the world thinks we're stuck up prudes.", "upvote_ratio": 700.0, "sub": "AskAnAmerican"} +{"thread_id": "unv8bo", "question": "So I made a little program to calculate marks for test. It's my first project so I may have done something wrong.\n\nHere's the code:\n\n #include <iostream>\n #include <fstream>\n #include <cmath>\n using namespace std;\n \n struct {\n string fach;\n float maxP;\n float yourP;\n float note;\n }note;\n string mid = \" \";\n string line = \" \";\n string notes = \" \";\n bool s;\n \n string getNot(string str1, int num1){\n string note = \" \";\n int pos1 = 0;\n for(int i=num1; i <= str1.length(); i++){\n note[0]=str1[i];\n }\n return note;\n }\n \n int main(){\n ofstream file(\"data.txt\", std::ios_base::app);\n cout << \"Deine Punktzahl:\" << endl;\n cin >> note.yourP;\n cout << \"Max. Punktzahl:\" << endl;\n cin >> note.maxP;\n note.note = ceil(((note.yourP/note.maxP)*5+1) * 100.0) / 100.0;\n if(note.note >7){\n cout << \"FALSCHE PUNKTZAHL\" << endl;\n return 0;\n }else if(note.note < 7 && note.note > 6){\n note.note = 6;\n }\n cout << \"Fach:\" << endl;\n cout << \"SH - Software Hardware\";\n cout << \" M - Mathe\" ;\n cout << \" P - Physik\" << endl;\n cout << \"I - Informatik\" ;\n cout << \" EK - Elektronik\";\n cout << \" ET - Elektrotechnik\" << endl;\n cin >> note.fach;\n cout << note.note <<endl;\n cout << \"Save?\" << endl;\n cin >> s;\n if(s){\n file<<\"f:\"<< note.fach <<\"|yP\"<< note.yourP <<\"|mP \"<< note.maxP <<\"|nt \"<< note.note << endl;\n }\n file.close();\n ifstream fileR;\n fileR.open(\"data.txt\");\n if(!fileR){\n cout << \"Unable to open file\" << endl;\n exit(1);\n }\n cout << \"Welche Noten?\" << endl;\n cin >> mid;\n if(mid != \".\"){\n size_t pos;\n while(fileR.good()){\n getline(fileR,line); // get line from file\n pos=line.find(mid); // search\n if(pos!=string::npos){\n pos=line.find(\"nt\")+3;\n break;\n }\n }\n notes = getNot(line, pos);\n cout << notes << endl;\n }\n return 0;\n }\n\nThe problem is that the `getNot(line, pos);` doesn't return the string. I have checked and in the function itself it does write to `note`, but it doesn't return the `note` string. Have I missed something?\n\nEDIT: I havent even noticed that I left the 0 in `note[0]`, now I see it will only return one character. Thanks for helping me spot the problem", "comment": "You can return strings, exactly like that. Your problem is somewhere else.\n\n1. `struct {...} note;` is a terrible idea. Unnamed types are very rarely useful.\n2. Don't use `using namespace std;`\n3. Don't use (mutable) global variables\n4. `for(int i=num1; i <= str1.length(); i++)` is going out of bounds for `str1[i]`.\n5. `note[0]=str1[i];` Are you sure you want to overwrite the first char over and over?\n6. Why are you using floats? You're using double literals for the calculations anyway so even if you had a reason to use floats (and you don't) it would be screwed up at that point.\n7. You need to `#include <string>` if you use `std::string` and `std::getline`.\n8. Why do you hate whitespace that much? Code is way more readable if you put spaces around operators.\n9. Why are you writing things to file just to read them again? Just use the data directly and then write to the file at the end if you have to save it.", "upvote_ratio": 120.0, "sub": "cpp_questions"} +{"thread_id": "unv8bo", "question": "So I made a little program to calculate marks for test. It's my first project so I may have done something wrong.\n\nHere's the code:\n\n #include <iostream>\n #include <fstream>\n #include <cmath>\n using namespace std;\n \n struct {\n string fach;\n float maxP;\n float yourP;\n float note;\n }note;\n string mid = \" \";\n string line = \" \";\n string notes = \" \";\n bool s;\n \n string getNot(string str1, int num1){\n string note = \" \";\n int pos1 = 0;\n for(int i=num1; i <= str1.length(); i++){\n note[0]=str1[i];\n }\n return note;\n }\n \n int main(){\n ofstream file(\"data.txt\", std::ios_base::app);\n cout << \"Deine Punktzahl:\" << endl;\n cin >> note.yourP;\n cout << \"Max. Punktzahl:\" << endl;\n cin >> note.maxP;\n note.note = ceil(((note.yourP/note.maxP)*5+1) * 100.0) / 100.0;\n if(note.note >7){\n cout << \"FALSCHE PUNKTZAHL\" << endl;\n return 0;\n }else if(note.note < 7 && note.note > 6){\n note.note = 6;\n }\n cout << \"Fach:\" << endl;\n cout << \"SH - Software Hardware\";\n cout << \" M - Mathe\" ;\n cout << \" P - Physik\" << endl;\n cout << \"I - Informatik\" ;\n cout << \" EK - Elektronik\";\n cout << \" ET - Elektrotechnik\" << endl;\n cin >> note.fach;\n cout << note.note <<endl;\n cout << \"Save?\" << endl;\n cin >> s;\n if(s){\n file<<\"f:\"<< note.fach <<\"|yP\"<< note.yourP <<\"|mP \"<< note.maxP <<\"|nt \"<< note.note << endl;\n }\n file.close();\n ifstream fileR;\n fileR.open(\"data.txt\");\n if(!fileR){\n cout << \"Unable to open file\" << endl;\n exit(1);\n }\n cout << \"Welche Noten?\" << endl;\n cin >> mid;\n if(mid != \".\"){\n size_t pos;\n while(fileR.good()){\n getline(fileR,line); // get line from file\n pos=line.find(mid); // search\n if(pos!=string::npos){\n pos=line.find(\"nt\")+3;\n break;\n }\n }\n notes = getNot(line, pos);\n cout << notes << endl;\n }\n return 0;\n }\n\nThe problem is that the `getNot(line, pos);` doesn't return the string. I have checked and in the function itself it does write to `note`, but it doesn't return the `note` string. Have I missed something?\n\nEDIT: I havent even noticed that I left the 0 in `note[0]`, now I see it will only return one character. Thanks for helping me spot the problem", "comment": "##include <string>", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "unv8bo", "question": "So I made a little program to calculate marks for test. It's my first project so I may have done something wrong.\n\nHere's the code:\n\n #include <iostream>\n #include <fstream>\n #include <cmath>\n using namespace std;\n \n struct {\n string fach;\n float maxP;\n float yourP;\n float note;\n }note;\n string mid = \" \";\n string line = \" \";\n string notes = \" \";\n bool s;\n \n string getNot(string str1, int num1){\n string note = \" \";\n int pos1 = 0;\n for(int i=num1; i <= str1.length(); i++){\n note[0]=str1[i];\n }\n return note;\n }\n \n int main(){\n ofstream file(\"data.txt\", std::ios_base::app);\n cout << \"Deine Punktzahl:\" << endl;\n cin >> note.yourP;\n cout << \"Max. Punktzahl:\" << endl;\n cin >> note.maxP;\n note.note = ceil(((note.yourP/note.maxP)*5+1) * 100.0) / 100.0;\n if(note.note >7){\n cout << \"FALSCHE PUNKTZAHL\" << endl;\n return 0;\n }else if(note.note < 7 && note.note > 6){\n note.note = 6;\n }\n cout << \"Fach:\" << endl;\n cout << \"SH - Software Hardware\";\n cout << \" M - Mathe\" ;\n cout << \" P - Physik\" << endl;\n cout << \"I - Informatik\" ;\n cout << \" EK - Elektronik\";\n cout << \" ET - Elektrotechnik\" << endl;\n cin >> note.fach;\n cout << note.note <<endl;\n cout << \"Save?\" << endl;\n cin >> s;\n if(s){\n file<<\"f:\"<< note.fach <<\"|yP\"<< note.yourP <<\"|mP \"<< note.maxP <<\"|nt \"<< note.note << endl;\n }\n file.close();\n ifstream fileR;\n fileR.open(\"data.txt\");\n if(!fileR){\n cout << \"Unable to open file\" << endl;\n exit(1);\n }\n cout << \"Welche Noten?\" << endl;\n cin >> mid;\n if(mid != \".\"){\n size_t pos;\n while(fileR.good()){\n getline(fileR,line); // get line from file\n pos=line.find(mid); // search\n if(pos!=string::npos){\n pos=line.find(\"nt\")+3;\n break;\n }\n }\n notes = getNot(line, pos);\n cout << notes << endl;\n }\n return 0;\n }\n\nThe problem is that the `getNot(line, pos);` doesn't return the string. I have checked and in the function itself it does write to `note`, but it doesn't return the `note` string. Have I missed something?\n\nEDIT: I havent even noticed that I left the 0 in `note[0]`, now I see it will only return one character. Thanks for helping me spot the problem", "comment": "The function certainly returns a string. But the question is what string? What do you want the function to do? I don't think it does what you want: currently it returns a string which consists of a single character which is the last character of the input argument `str1` unless `num1` is equal to or larger than the length of `str1` in which case it just returns a string with a space: \" \". Also the variable `pos1` is completely unused. I don't know what the function is supposed to do, so I can't really help you more than that.\n\nHere are some other suggestions for improving your code in general:\n\nYou are using old C-style declarations of structs - don't do that, do:\n\n struct note {\n string fach;\n float maxP;\n float yourP;\n float note;\n };\n\n(notice position of name `node` should immediately follow `struct`)\n\nDon't use global variables (except for global constants)! Just don't! This is a bad practice that will quickly lead to errors. Instead declare and define them in the scope/function where they are needed - in your case you can move the definition of `mid`, `line`, `notes` and `s` into the `main` function.\n\nUse (long) descriptive variable names. In three hours you have already forgotten what `mid`, `s`, `num1` and `pos1` refer to. Use *descriptive* names: `do_save`, `start_index` etc.\n\nEnable all (or almost all) warnings for your compiler. If you're using Visual Studio you can use `/Wall` or `/W4`, on gcc/clang you can use `-Wall -Wpedantic -Wextra`\n\nEnsure that you use an IDE (like Visual Studio or CLion) or a Text Editor that can show code hints, auto-completion and compiler warnings.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "unvbom", "question": "Hi!, I recently bought a 7tb hdd and replaced a 1tb one in my pc, along with replacing an 220gb system ssd for a bigger one (500gb). I've noticed that after that upgrade, file explorer freezes 50% of the time, working in Blender (software), is much slower, and overall the pc is seeming to struggle. How much does disk space influence the stats of the pc? \n\nIs there any easy solution?", "comment": "Try r/techsupport. As the [posting guidelines](https://old.reddit.com/r/AskComputerScience/comments/bl37qz/read_before_posting/) suggest, this sub is rather for questions about [computer science](https://en.wikipedia.org/wiki/Computer_science).\n\nAnyway, to answer the more general question, increased disk space shouldn't slow anything down.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "unvdzr", "question": "Why not just use plates?", "comment": "There\u2019s a sheet of wax paper in it. Easy to toss and clean the basket without wasting a whole plate", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "unvdzr", "question": "Why not just use plates?", "comment": "Food safety laws are different in every state, but in mine (California) and I assume in many others, the major benefit is cleaning time. Baskets do need to be washed/disinfected, but considering there's rarely any actual food on them once the liner is thrown out, doing so is very fast and easy. They also stack easily, are less prone to breaking, and cheaply replaceable, theres also time saved on the serving end of things, if you have waiters who clean the tables, its much faster to dump a basket out than it is to scrape a plate off, or if you rely on customers to return their baskets on their own, you save time having front of house staff put away dishes, and they can focus on cleaning tables/seats instead. \n\nThe restaurant I work at personally serves items like burgers, chicken strips, and fries in baskets, while most of the rest of the menu is served on plates and bowls. I also happen to be the dishwasher during closing shifts, we run a dish-pit with no machine, which means every item is hand rinsed, soaked, and sanitized by yours truly. the difference in time that it takes me to wash 50 baskets vs 50 plates is immense.", "upvote_ratio": 150.0, "sub": "AskAnAmerican"} +{"thread_id": "unvdzr", "question": "Why not just use plates?", "comment": "To be clear, fast food (McDonald\u2019s, Burger King, Wendy\u2019s, etc) doesn\u2019t have baskets, at least any I\u2019ve ever seen. Places like food stands and diners do. So your question is moot.", "upvote_ratio": 60.0, "sub": "AskAnAmerican"} +{"thread_id": "unwbsj", "question": "Are there any free tools and resources to practice with Oracle Cloud Applications? I have seen an internal job opportunity for \u201c Oracle Cloud Applications Administrator\u201d and was thinking about going for it. Anyone have any experience in a similar position and can provide some insight on what the position does?", "comment": "Here you go:\n\n* https://education.oracle.com/learning-explorer\n* https://www.oracle.com/education/\n* https://education.oracle.com/oracle-certification-paths-all\n\nOracle was giving away free training and exam vouchers for months earlier this year so you might want to keep an eye out to see if they offer more this year.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "unwk5i", "question": "As the title says.\n\nI'm a 25-year old Filipino expat in UAE currently working as a call center rep and I am considering switching to IT field. I do not have a related degree nor work experience in this field but as I did my research online, I can get certifications and start with the basics such as A+ and work my way up from there which is what I wanted to do. However, I did my research here in UAE and it appears that only a few training centers offer the A+ certification, training takes roughly 4 to 6 weeks before taking the certification exam. \n\nI wanted to ask you all if this timeframe will be enough to cover the entire course or should I consider self-studying to give myself more time to prepare and then do an online certification exam? Also, what are my odds of passing the certification exam if I self-study? \n\nYour thoughts and opinions will be helpful. Thank you.", "comment": "Jason Dion and Prof Messer Practice tests along with Messer's study groups/videos and ExamCram is what I used for the A+. I'd suggest self study. 4-6 weeks is very rushed. If you practice a lot you'll be fine.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "unwq4z", "question": "I like Java, C++ and Javascript. However if there's one language that gives me the heebie jeebies........it's Bash \ud83d\ude10 It's so weird. The fact that spaces are important in syntax and how easy it is to overlook an error because of just a space!? And the code itself looks like it was written by an alien.", "comment": "Like Bash, Perl is a bit of a syntax bastard", "upvote_ratio": 150.0, "sub": "AskProgramming"} +{"thread_id": "unwq4z", "question": "I like Java, C++ and Javascript. However if there's one language that gives me the heebie jeebies........it's Bash \ud83d\ude10 It's so weird. The fact that spaces are important in syntax and how easy it is to overlook an error because of just a space!? And the code itself looks like it was written by an alien.", "comment": "100% Javascript!", "upvote_ratio": 130.0, "sub": "AskProgramming"} +{"thread_id": "unwq4z", "question": "I like Java, C++ and Javascript. However if there's one language that gives me the heebie jeebies........it's Bash \ud83d\ude10 It's so weird. The fact that spaces are important in syntax and how easy it is to overlook an error because of just a space!? And the code itself looks like it was written by an alien.", "comment": "Well OP, just wait for the fun you\u2019ll have with whitespace when you use YAML \ud83d\ude02\n\nI guess PHP and people still using JSP or whatever that ancient Java thing was gives me heebies jeebies, but I generally avoid these things \ud83d\ude1b", "upvote_ratio": 90.0, "sub": "AskProgramming"} +{"thread_id": "unxgdl", "question": "Our project is compiling with C++17 at the moment and we consider moving up to C++20. \nWe compile to Windows only at the moment, but the issue is that it is very likely that we will have to port it to MacOS and Linux in the future (let's say it for sure won't happen in the next 6 months)\n\nI know that gcc and clang are lagging behind MSVC when it comes to C++20 support, but assuming we stay away from modules at the moment, anyone has an idea of how likely are we to encounter incompatibilities between MSVC/gcc/clang? (i.e code that compiles in one compiler but fails to compile in another due to a bug or a feature that is not yet fully supported)", "comment": "https://en.cppreference.com/w/cpp/compiler_support/20\n\nSo basically modules and std::format are not portable right now, have fun with the rest.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "unxo55", "question": "I know it is more of a QoL thing since you can just achieve it through telling everyone on the team to not use it, but it would be very helpful in a codebase touched by many people.", "comment": "You probably can't within the language. The reason is that `int32_t` is very often just something like `typedef int int32_t;`. Things like [std::is\\_same](https://en.cppreference.com/w/cpp/types/is_same) also [think they're the same type](https://godbolt.org/z/v15fv5Mo1). You probably need some compiler-specific stuff if it's even possible.", "upvote_ratio": 250.0, "sub": "cpp_questions"} +{"thread_id": "unxo55", "question": "I know it is more of a QoL thing since you can just achieve it through telling everyone on the team to not use it, but it would be very helpful in a codebase touched by many people.", "comment": "Id install [git hooks](https://git-scm.com/docs/githooks) to ensure nothing with `int` can be pushed", "upvote_ratio": 240.0, "sub": "cpp_questions"} +{"thread_id": "unxo55", "question": "I know it is more of a QoL thing since you can just achieve it through telling everyone on the team to not use it, but it would be very helpful in a codebase touched by many people.", "comment": "There is no way to do it within the language because the type system does not distinguish between them \u2014 `int32_t` is simply a typedef for (typically) either `int` or `long`, meaning they are exactly the same type.\n\nThat said, there are external tools that can do this for you. I believe there is a clang-tidy rule to enforce this style, for instance. It would be nice to get that as a built-in (optional) compiler warning.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "unxqbz", "question": "I've been working as application support/developer for the last 15 years, and now that I've turned 40, I've found that I am no longer able to effectively deal with the random incidents and major outages, that I used to be able to shrug off and deal with when younger. \n\nI'm worried the crushing stress from trying to get a major production system back online during an outage might be affecting my health in potentially dangerous ways now. As such, I was wondering what, if any, alternative jobs I could consider moving into, that didn't come with the fortnightly all-day MIM/bridge/customer-yelling/panic attack merry go round? I'm just looking for ideas at this point :)", "comment": "You could move into project management? You have the tech background and it\u2019s not firefighting.", "upvote_ratio": 700.0, "sub": "ITCareerQuestions"} +{"thread_id": "unxqbz", "question": "I've been working as application support/developer for the last 15 years, and now that I've turned 40, I've found that I am no longer able to effectively deal with the random incidents and major outages, that I used to be able to shrug off and deal with when younger. \n\nI'm worried the crushing stress from trying to get a major production system back online during an outage might be affecting my health in potentially dangerous ways now. As such, I was wondering what, if any, alternative jobs I could consider moving into, that didn't come with the fortnightly all-day MIM/bridge/customer-yelling/panic attack merry go round? I'm just looking for ideas at this point :)", "comment": "Security is an option. Compliance is nice in that aspect, you come in to work, tell everyone how they are doing everything wrong and leave while they stay and fix. \n\nThere are other parts of security that don\u2019t deal with incidents as well. Your previous experience is a big advantage when working security as well.", "upvote_ratio": 520.0, "sub": "ITCareerQuestions"} +{"thread_id": "unxqbz", "question": "I've been working as application support/developer for the last 15 years, and now that I've turned 40, I've found that I am no longer able to effectively deal with the random incidents and major outages, that I used to be able to shrug off and deal with when younger. \n\nI'm worried the crushing stress from trying to get a major production system back online during an outage might be affecting my health in potentially dangerous ways now. As such, I was wondering what, if any, alternative jobs I could consider moving into, that didn't come with the fortnightly all-day MIM/bridge/customer-yelling/panic attack merry go round? I'm just looking for ideas at this point :)", "comment": "Look for a new job as a systems architect.", "upvote_ratio": 420.0, "sub": "ITCareerQuestions"} +{"thread_id": "uny1np", "question": "Hi !\n\nI'm having trouble implementing firebase in an iOS app using cpp... I hope you'll be able to help me ^^'\n\nHere are the three troublesome files :\n\nFirst, the listener interface from firebase :\n\nclass Listener {\n public:\n virtual ~Listener();\n\n /// Called on the client when a message arrives.\n ///\n /// @param[in] message The data describing this message.\n virtual void OnMessage(const Message& message) = 0;\n\n /// Called on the client when a registration token arrives. This function\n /// will eventually be called in response to a call to\n /// firebase::messaging::Initialize(...).\n ///\n /// @param[in] token The registration token.\n virtual void OnTokenReceived(const char* token) = 0;\n};\n\nThen, my own listener for iOS, h file\n\n#ifndef NotificationHandlerIOS_hpp\n#define NotificationHandlerIOS_hpp\n#include \"NotificationHandler.h\"\n#include <iostream>\n#include \"firebase/messaging.h\"\n\nstruct NotificationHandlerIOS : public firebase::messaging::Listener\n{\n ~NotificationHandlerIOS() override;\n void OnMessage(const ::firebase::messaging::Message& message) override final;\n void OnTokenReceived(const char* token) override final;\n\n};\n#endif /* NotificationHandlerIOS_hpp */\n\nAnd finally, the cpp file\n\n#include \"NotificationHandlerIOS.hpp\"\n#include \"NotificationHandler.h\"\n#include <iostream>\n\n\nvoid NotificationHandlerIOS::OnMessage(const ::firebase::messaging::Message& message)\n{\n qDebug() << message.raw_data;\n}\n\nvoid NotificationHandlerIOS::OnTokenReceived(const char* token)\n{\n qDebug() << token;\n NotificationHandler::GetInstance()->RegisterToken(token);\n}\n\n\nNow, the fun part, the error :\n\nUnimplemented pure virtual method 'OnMessage' in 'NotificationHandlerIOS'", "comment": "Your posts seem to contain unformatted code. Please make sure to format your code otherwise your post may be removed.\n\nRead [our guidelines](https://www.reddit.com/r/cpp_questions/comments/48d4pc/important_read_before_posting/) for how to format your code.\n\n\n*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/cpp_questions) if you have any questions or concerns.*", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "uny3eq", "question": "Have you ever eaten horseradish?", "comment": "If we count wasabi as horseradish then yes,a lot of times... every time I eat sushi.", "upvote_ratio": 2030.0, "sub": "AskAnAmerican"} +{"thread_id": "uny3eq", "question": "Have you ever eaten horseradish?", "comment": "As a Jew I must eat horseradish at least once a year at passover. It's also good with roast beef.", "upvote_ratio": 1840.0, "sub": "AskAnAmerican"} +{"thread_id": "uny3eq", "question": "Have you ever eaten horseradish?", "comment": "Yes indeed. Particularly if you count cocktail sauce - horseradish being a primary constituent.", "upvote_ratio": 1310.0, "sub": "AskAnAmerican"} +{"thread_id": "unybzo", "question": "altho i learned C/C++ , pointers , OOP design , etc in school but everything i do in job i ve learned on my own during summer breaks or weekends . Go , React , Git , docker to name a few and i believe that this is the case for most of my classmates if not for everyone who works as SWE , it's true that school taught me a lot of things but i just don't use IAbstractAbstractFactory nor all those OOP heavy design patterns that i had been taught in univ .\n\nso what's the real difference between Self-taught and CS grad if they both taught them selves frameworks and languages (we talking about normal web stack not all those data eng,low level jobs ) ?", "comment": "Kind of. \nWithout a traditional CS education - you can go a whole career without understanding the likes of path finding algorithms, OS internals, distributed synchronization primitives, etc so you aren\u2019t forced to learn those things by the industry.\n\nHowever, understanding these concepts will make you a better software engineer and will give you the right intuitions to make sound engineering decisions.", "upvote_ratio": 2650.0, "sub": "CSCareerQuestions"} +{"thread_id": "unybzo", "question": "altho i learned C/C++ , pointers , OOP design , etc in school but everything i do in job i ve learned on my own during summer breaks or weekends . Go , React , Git , docker to name a few and i believe that this is the case for most of my classmates if not for everyone who works as SWE , it's true that school taught me a lot of things but i just don't use IAbstractAbstractFactory nor all those OOP heavy design patterns that i had been taught in univ .\n\nso what's the real difference between Self-taught and CS grad if they both taught them selves frameworks and languages (we talking about normal web stack not all those data eng,low level jobs ) ?", "comment": "IME, the difference between self-taught programmers and formally taught programmers mainly boils down to whether someone else forced them to put some uncommon tools in their \u201cmental toolbox\u201d. Those tools aren\u2019t always used every day (if they were, self-taught folks would learn them), but they are useful occasionally and are necessary to efficiently tackle some types of problems (which are fortunately somewhat uncommon in actual business products). \n\nTL;DR: it\u2019s hard to know what you don\u2019t know, so if you teach yourself without getting feedback from someone who knows more, you tend to end up with gaps around the difficult/uncommon topics.", "upvote_ratio": 2540.0, "sub": "CSCareerQuestions"} +{"thread_id": "unybzo", "question": "altho i learned C/C++ , pointers , OOP design , etc in school but everything i do in job i ve learned on my own during summer breaks or weekends . Go , React , Git , docker to name a few and i believe that this is the case for most of my classmates if not for everyone who works as SWE , it's true that school taught me a lot of things but i just don't use IAbstractAbstractFactory nor all those OOP heavy design patterns that i had been taught in univ .\n\nso what's the real difference between Self-taught and CS grad if they both taught them selves frameworks and languages (we talking about normal web stack not all those data eng,low level jobs ) ?", "comment": "a CS degree teaches you the fundamentals that you can apply to most languages", "upvote_ratio": 520.0, "sub": "CSCareerQuestions"} +{"thread_id": "unyg77", "question": "Three years ago, we revealed the first image of a black hole. Today, we announce groundbreaking results on the center of our galaxy.\n\nWe'll be answering questions from 1:30-3:30 PM Eastern Time (17:30-19:30 UTC)!\n\nThe Event Horizon Telescope (EHT) - a planet-scale array of eleven ground-based radio telescopes forged through international collaboration - was designed to capture images of a black hole. As we continue to delve into data from past observations and pave the way for the next generation of black hole science, we wanted to answer some of your questions! You might ask us about:\n\n+ Observing with a global telescope array\n+ Black hole theory and simulations\n+ The black hole imaging process\n+ Technology and engineering in astronomy\n+ International collaboration at the EHT\n+ The next-generation Event Horizon Telescope (ngEHT)\n+ ... and our recent results!\n\nOur Panel Members consist of:\n\n+ Michi Baub\u00f6ck, Postdoctoral Research Associate at the University of Illinois Urbana-Champaign\n+ Nicholas Conroy, Astronomy PhD Student at the University of Illinois Urbana-Champaign\n+ Vedant Dhruv, Physics PhD Student at the University of Illinois Urbana-Champaign\n+ Razieh Emami, Institute for Theory and Computation Fellow at the Center for Astrophysics | Harvard & Smithsonian\n+ Joseph Farah, Astrophysics PhD Student at University of California, Santa Barbara\n+ Raquel Fraga-Encinas, PhD Student at Radboud University Nijmegen, The Netherlands\n+ Abhishek Joshi, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Jun Yi (Kevin) Koay, Support Astronomer at the Academia Sinica Institute of Astronomy and Astrophysics, Taiwan\n+ Yutaro Kofuji, Astronomy PhD Student at the University of Tokyo and National Astronomical Observatory of Japan\n+ Noemi La Bella, PhD Student at Radboud University Nijmegen, The Netherlands\n+ David Lee, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Amy Lowitz, Research Scientist at the University of Arizona\n+ Lia Medeiros, NSF Astronomy and Astrophysics Fellow at the Institute for Advanced Study, Princeton\n+ Wanga Mulaudzi, Astrophysics PhD Student at the Anton Pannekoek Institute for Astronomy at the University of Amsterdam\n+ Alejandro Mus, PhD Student at the Universitat de Val\u00e8ncia, Spain\n+ Gibwa Musoke, NOVA-VIA Postdoctoral Fellow at the Anton Pannekoek Institute for Astronomy, University of Amsterdam\n+ Ben Prather, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Jan R\u00f6der, Astrophysics PhD Student at the Max Planck Institute for Radio Astronomy in Bonn, Germany\n+ Jesse Vos, PhD Student at Radboud University Nijmegen, The Netherlands\n+ Michael F. Wondrak, Radboud Excellence Fellow at Radboud University Nijmegen, The Netherlands\n+ Gunther Witzel, Staff Scientists at the Max Planck Institute for Radioastronomy, Germany\n+ George N. Wong, Member at the Institute for Advanced Study and Associate Research Scholar in the Princeton Gravity Initiative\n\nIf you'd like to learn more about us, you can also check out our [Website](https://eventhorizontelescope.org/), [Facebook](https://www.facebook.com/ehtelescope/), [Twitter](https://twitter.com/ehtelescope),\n[Instagram](https://www.instagram.com/ehtelescope), and [YouTube](https://www.youtube.com/channel/UC4sItzYomoJ6Flt0aDyHMOQ). We look forward to answering your questions!\n\nUsername: /u/EHTelescope", "comment": "What is the groundbreaking result?", "upvote_ratio": 1470.0, "sub": "AskScience"} +{"thread_id": "unyg77", "question": "Three years ago, we revealed the first image of a black hole. Today, we announce groundbreaking results on the center of our galaxy.\n\nWe'll be answering questions from 1:30-3:30 PM Eastern Time (17:30-19:30 UTC)!\n\nThe Event Horizon Telescope (EHT) - a planet-scale array of eleven ground-based radio telescopes forged through international collaboration - was designed to capture images of a black hole. As we continue to delve into data from past observations and pave the way for the next generation of black hole science, we wanted to answer some of your questions! You might ask us about:\n\n+ Observing with a global telescope array\n+ Black hole theory and simulations\n+ The black hole imaging process\n+ Technology and engineering in astronomy\n+ International collaboration at the EHT\n+ The next-generation Event Horizon Telescope (ngEHT)\n+ ... and our recent results!\n\nOur Panel Members consist of:\n\n+ Michi Baub\u00f6ck, Postdoctoral Research Associate at the University of Illinois Urbana-Champaign\n+ Nicholas Conroy, Astronomy PhD Student at the University of Illinois Urbana-Champaign\n+ Vedant Dhruv, Physics PhD Student at the University of Illinois Urbana-Champaign\n+ Razieh Emami, Institute for Theory and Computation Fellow at the Center for Astrophysics | Harvard & Smithsonian\n+ Joseph Farah, Astrophysics PhD Student at University of California, Santa Barbara\n+ Raquel Fraga-Encinas, PhD Student at Radboud University Nijmegen, The Netherlands\n+ Abhishek Joshi, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Jun Yi (Kevin) Koay, Support Astronomer at the Academia Sinica Institute of Astronomy and Astrophysics, Taiwan\n+ Yutaro Kofuji, Astronomy PhD Student at the University of Tokyo and National Astronomical Observatory of Japan\n+ Noemi La Bella, PhD Student at Radboud University Nijmegen, The Netherlands\n+ David Lee, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Amy Lowitz, Research Scientist at the University of Arizona\n+ Lia Medeiros, NSF Astronomy and Astrophysics Fellow at the Institute for Advanced Study, Princeton\n+ Wanga Mulaudzi, Astrophysics PhD Student at the Anton Pannekoek Institute for Astronomy at the University of Amsterdam\n+ Alejandro Mus, PhD Student at the Universitat de Val\u00e8ncia, Spain\n+ Gibwa Musoke, NOVA-VIA Postdoctoral Fellow at the Anton Pannekoek Institute for Astronomy, University of Amsterdam\n+ Ben Prather, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Jan R\u00f6der, Astrophysics PhD Student at the Max Planck Institute for Radio Astronomy in Bonn, Germany\n+ Jesse Vos, PhD Student at Radboud University Nijmegen, The Netherlands\n+ Michael F. Wondrak, Radboud Excellence Fellow at Radboud University Nijmegen, The Netherlands\n+ Gunther Witzel, Staff Scientists at the Max Planck Institute for Radioastronomy, Germany\n+ George N. Wong, Member at the Institute for Advanced Study and Associate Research Scholar in the Princeton Gravity Initiative\n\nIf you'd like to learn more about us, you can also check out our [Website](https://eventhorizontelescope.org/), [Facebook](https://www.facebook.com/ehtelescope/), [Twitter](https://twitter.com/ehtelescope),\n[Instagram](https://www.instagram.com/ehtelescope), and [YouTube](https://www.youtube.com/channel/UC4sItzYomoJ6Flt0aDyHMOQ). We look forward to answering your questions!\n\nUsername: /u/EHTelescope", "comment": "I was surprised to see that Sag A* changed in such a short timescale. What's the time resolution you can achieve? I guess you can't image events shorter than one hour or so. What's the limiting factor? Can a image taken over a shorter length of time become less blurred, or is the optical resolution the cause of the blurriness of the image of Sag A*?", "upvote_ratio": 1230.0, "sub": "AskScience"} +{"thread_id": "unyg77", "question": "Three years ago, we revealed the first image of a black hole. Today, we announce groundbreaking results on the center of our galaxy.\n\nWe'll be answering questions from 1:30-3:30 PM Eastern Time (17:30-19:30 UTC)!\n\nThe Event Horizon Telescope (EHT) - a planet-scale array of eleven ground-based radio telescopes forged through international collaboration - was designed to capture images of a black hole. As we continue to delve into data from past observations and pave the way for the next generation of black hole science, we wanted to answer some of your questions! You might ask us about:\n\n+ Observing with a global telescope array\n+ Black hole theory and simulations\n+ The black hole imaging process\n+ Technology and engineering in astronomy\n+ International collaboration at the EHT\n+ The next-generation Event Horizon Telescope (ngEHT)\n+ ... and our recent results!\n\nOur Panel Members consist of:\n\n+ Michi Baub\u00f6ck, Postdoctoral Research Associate at the University of Illinois Urbana-Champaign\n+ Nicholas Conroy, Astronomy PhD Student at the University of Illinois Urbana-Champaign\n+ Vedant Dhruv, Physics PhD Student at the University of Illinois Urbana-Champaign\n+ Razieh Emami, Institute for Theory and Computation Fellow at the Center for Astrophysics | Harvard & Smithsonian\n+ Joseph Farah, Astrophysics PhD Student at University of California, Santa Barbara\n+ Raquel Fraga-Encinas, PhD Student at Radboud University Nijmegen, The Netherlands\n+ Abhishek Joshi, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Jun Yi (Kevin) Koay, Support Astronomer at the Academia Sinica Institute of Astronomy and Astrophysics, Taiwan\n+ Yutaro Kofuji, Astronomy PhD Student at the University of Tokyo and National Astronomical Observatory of Japan\n+ Noemi La Bella, PhD Student at Radboud University Nijmegen, The Netherlands\n+ David Lee, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Amy Lowitz, Research Scientist at the University of Arizona\n+ Lia Medeiros, NSF Astronomy and Astrophysics Fellow at the Institute for Advanced Study, Princeton\n+ Wanga Mulaudzi, Astrophysics PhD Student at the Anton Pannekoek Institute for Astronomy at the University of Amsterdam\n+ Alejandro Mus, PhD Student at the Universitat de Val\u00e8ncia, Spain\n+ Gibwa Musoke, NOVA-VIA Postdoctoral Fellow at the Anton Pannekoek Institute for Astronomy, University of Amsterdam\n+ Ben Prather, Physics PhD Student at University of Illinois Urbana-Champaign\n+ Jan R\u00f6der, Astrophysics PhD Student at the Max Planck Institute for Radio Astronomy in Bonn, Germany\n+ Jesse Vos, PhD Student at Radboud University Nijmegen, The Netherlands\n+ Michael F. Wondrak, Radboud Excellence Fellow at Radboud University Nijmegen, The Netherlands\n+ Gunther Witzel, Staff Scientists at the Max Planck Institute for Radioastronomy, Germany\n+ George N. Wong, Member at the Institute for Advanced Study and Associate Research Scholar in the Princeton Gravity Initiative\n\nIf you'd like to learn more about us, you can also check out our [Website](https://eventhorizontelescope.org/), [Facebook](https://www.facebook.com/ehtelescope/), [Twitter](https://twitter.com/ehtelescope),\n[Instagram](https://www.instagram.com/ehtelescope), and [YouTube](https://www.youtube.com/channel/UC4sItzYomoJ6Flt0aDyHMOQ). We look forward to answering your questions!\n\nUsername: /u/EHTelescope", "comment": "Can you tell us a bit more about the user interface with the telescope? I can't imagine you're taking turns looking through a single eyeglass.", "upvote_ratio": 860.0, "sub": "AskScience"} +{"thread_id": "unym8g", "question": "What American people think about Malcolm X beliefs (the beliefs that he held before his pilgrimage to Mecca) ?", "comment": "I doubt most Americans have any idea what those beliefs were.", "upvote_ratio": 1400.0, "sub": "AskAnAmerican"} +{"thread_id": "unym8g", "question": "What American people think about Malcolm X beliefs (the beliefs that he held before his pilgrimage to Mecca) ?", "comment": "Complex guy and certainly a product of a system that thoroughly oppressed black people. I think he was very bitter before and after the Nation of Islam. One could hardly blame him.", "upvote_ratio": 840.0, "sub": "AskAnAmerican"} +{"thread_id": "unym8g", "question": "What American people think about Malcolm X beliefs (the beliefs that he held before his pilgrimage to Mecca) ?", "comment": "Some oc his beliefs have been distorted in the historiography, but he was clearly antisemitic.", "upvote_ratio": 500.0, "sub": "AskAnAmerican"} +{"thread_id": "unzh6q", "question": "I need a car in LA on short notice. I am worried I am gonna book a Mustang and end up in a Sebring. SIXT also seems so cheap, why does nobody talk about them?", "comment": "If you're having to book last minute you're kinda shit outta luck", "upvote_ratio": 320.0, "sub": "AskAnAmerican"} +{"thread_id": "unzh6q", "question": "I need a car in LA on short notice. I am worried I am gonna book a Mustang and end up in a Sebring. SIXT also seems so cheap, why does nobody talk about them?", "comment": "I\u2019ve never heard of them. A quick search came up with the fact that they have few locations in the US and very low customer satisfaction ratings.\n\nI would try to find a more reputable company if it\u2019s a possibility, but if you proceed with this one, make sure you take photos of the car inside and out before you leave the lot and after you return it.", "upvote_ratio": 150.0, "sub": "AskAnAmerican"} +{"thread_id": "unzh6q", "question": "I need a car in LA on short notice. I am worried I am gonna book a Mustang and end up in a Sebring. SIXT also seems so cheap, why does nobody talk about them?", "comment": "Good news! Sebrings haven't been made for like 10 years. Pretty sure the only convertibles in mainstream rental fleets currently are Mustangs and Camaros. Don't expect a V8, though.\n\n(I assume you're talking about convertibles, because how else would a Mustang and a Sebring be in the same class?)\n\nThe \"or similar\" categories are always a bit of a crapshoot.\n\nRental cars are expensive right now because the companies sold off their fleets in 2020 when nobody was traveling and the new car market has since gone nuts.\n\nTuro may be worth a look, especially if you want something fun or interesting. It's Airbnb for cars, basically. I haven't used them, but I've heard that they have tons of hidden taxes and fees that blow the final price significantly higher than you might expect.", "upvote_ratio": 110.0, "sub": "AskAnAmerican"} +{"thread_id": "unzjbt", "question": "I am referring to a ram and not a particular memory address. Do rams' not have single input output?", "comment": "It really depends on the system architecture. If there are multiple memory controllers or if the memory controller can queue/coalesce multiple requests into one cycle then yes multiple processes can technically access memory at the same time. Keep in mind that cpus also use cache on the chip so often times in a multi core environment you can have concurrent processes that get all the data they need from the cache.", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "uo00s4", "question": "Redditors of U.S.A, is there at least free healthcare for children in your country? Or is there at least some sort of support system established if the child is ill and is in dire need of medical attention?", "comment": "I'm not defending the US healthcare system because it DOES suck...but I find it so funny that the foreign perception of it is so dystopian.", "upvote_ratio": 580.0, "sub": "AskAnAmerican"} +{"thread_id": "uo00s4", "question": "Redditors of U.S.A, is there at least free healthcare for children in your country? Or is there at least some sort of support system established if the child is ill and is in dire need of medical attention?", "comment": "Yes to both, more or less. \n\nChildren are covered under their parents insurance, which the vast majority of people have. If they are living at poverty levels they are eleigible for government paid healthcare. \n\nEmergency services can not be denied to any person by federal law.", "upvote_ratio": 380.0, "sub": "AskAnAmerican"} +{"thread_id": "uo00s4", "question": "Redditors of U.S.A, is there at least free healthcare for children in your country? Or is there at least some sort of support system established if the child is ill and is in dire need of medical attention?", "comment": "It's amazing at how foreign posters have access to the greatest medical care in the world while the US has none but we at least have search engines that work.", "upvote_ratio": 290.0, "sub": "AskAnAmerican"} +{"thread_id": "uo0clb", "question": "I'd like to practice the low level socket programming and Rust at the same time. From what I've seen so far is that socket2 crate is the most suitable for this. It is small, lean with pretty much no overhead. In top of that it supports multiple OS. So, this is what I'm gonna use. \nHowever, I was wondering if you could recommend any resources just for the sockets, so that I can learn how to use them at the low level (and actually start utilizing the socket2)? I believe both Berkeley and Winsock have similar APIs, but I would like to avoid getting into reading the RFCs or detailed docs at this stage, and focus on something light, just to get me started. Any suggestions?", "comment": "> I was wondering if you could recommend any resources just for the sockets, so that I can learn how to use them\n\nBeej's Guide to Network Programming is frequently recommended in cases like these - https://beej.us/guide/bgnet/", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "uo0d0r", "question": "What are long term side effects of tonsils removal ?", "comment": "[removed]", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "uo18uw", "question": "How do I find a room in US before arriving? I got accepted to a program in US and start my degree in september this year. I want to start looking for a place now and not leave it to the end", "comment": "Absolutely contact your school. Almost every college or university has an office specifically tasked with helping international students with questions just like this. \n\nI will say it is good you are starting early but given how college rentals work you may not be able to find a place until closer to the time you want to begin rent. However, you can get advice from your school administrators and they will know best what the local market is like.", "upvote_ratio": 370.0, "sub": "AskAnAmerican"} +{"thread_id": "uo18uw", "question": "How do I find a room in US before arriving? I got accepted to a program in US and start my degree in september this year. I want to start looking for a place now and not leave it to the end", "comment": "Use the housing resources of the school you are attending. The people you worked with for your admission are the first people you should be asking. Room and housing rentals around schools are very localized, often owned by private landlords who don't need to use websites. Start with the school website or office for international students.", "upvote_ratio": 110.0, "sub": "AskAnAmerican"} +{"thread_id": "uo18uw", "question": "How do I find a room in US before arriving? I got accepted to a program in US and start my degree in september this year. I want to start looking for a place now and not leave it to the end", "comment": "Going to chime into the group as well, and say reach out to the school.\n\nHowever, if it's some type of program that doesn't have your typical school resources, feel free to give us an idea where and maybe we can suggest local resources. Or look for a subreddit that is local to where you are going to be, and ask there.", "upvote_ratio": 50.0, "sub": "AskAnAmerican"} +{"thread_id": "uo1f4l", "question": "So i have a `TextureManager` class and there is a function to draw sprite sheets. I have a `static int32_t` inside the function because the draw function is called inside a while loop, and it is initialized to 0 at the beginning. The issue is when I call the function many times, its clashing with the other sprite sheet animations which use the same method. How can I make a static variable specific to that function and so that a new one is created every time the function is called? (or something along those lines)\n\nThanks in advance! (please forgive any grammatical errors or typos)\n\nEDIT: I was able to solve this issue thanks to everyone's help, i created a new class for the sprite which stores the information needed, again a huge thanks to everyone!", "comment": "> How can I make a static variable specific to that function and so that a new one is created every time the function is called?\n\nDon't make it `static`? Uh, I guess.\n\n> because \n\nNo, there's probably a way to avoid it.", "upvote_ratio": 70.0, "sub": "cpp_questions"} +{"thread_id": "uo1f4l", "question": "So i have a `TextureManager` class and there is a function to draw sprite sheets. I have a `static int32_t` inside the function because the draw function is called inside a while loop, and it is initialized to 0 at the beginning. The issue is when I call the function many times, its clashing with the other sprite sheet animations which use the same method. How can I make a static variable specific to that function and so that a new one is created every time the function is called? (or something along those lines)\n\nThanks in advance! (please forgive any grammatical errors or typos)\n\nEDIT: I was able to solve this issue thanks to everyone's help, i created a new class for the sprite which stores the information needed, again a huge thanks to everyone!", "comment": ">so that a new one is created every time the function is called? (or something along those lines)\n\nYou just described a local variable.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "uo1f4l", "question": "So i have a `TextureManager` class and there is a function to draw sprite sheets. I have a `static int32_t` inside the function because the draw function is called inside a while loop, and it is initialized to 0 at the beginning. The issue is when I call the function many times, its clashing with the other sprite sheet animations which use the same method. How can I make a static variable specific to that function and so that a new one is created every time the function is called? (or something along those lines)\n\nThanks in advance! (please forgive any grammatical errors or typos)\n\nEDIT: I was able to solve this issue thanks to everyone's help, i created a new class for the sprite which stores the information needed, again a huge thanks to everyone!", "comment": "Each sprite sheet needs to be its own object, this is kind of the main reason classes and instantiated objects of classes exist.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo1k0g", "question": "There are many cases of species evolving to lose limbs for a snake-like bodyplan or losing other organs, is there any occasion where a species regains the use of a vestigial body part?", "comment": "I don't know if it qualifies as a body part but primates did regain color vision, a trait that all early mammals had lost in favor of better night vision.\n\nThe commonly accepted theory is that it was an evolutionary trait the benefited primates in determining what fruits were ripe to eat as well as differentiating different fruits by color.", "upvote_ratio": 100.0, "sub": "AskScience"} +{"thread_id": "uo1m7j", "question": "Specifically, what age do you guys pay off your full mortgage loan usually?\n\nEdit: as far as I understand from the comments people usually BUY houses when creating a family. Do you guys have some kind of benefits for young families/young families with kids?", "comment": "\u201cGet your own place\u201d and \u201cpay off your mortgage loan\u201d are not synonymous in the US. \u201cGet your own place\u201d usually means moving out of your parents\u2019 home into a home that you\u2019re paying for. That usually happens between 18 and 25, but it\u2019s becoming more normal to go longer. People usually don\u2019t pay off their mortgage until their 50s at least. I\u2019m not going to pay mine off until I\u2019m 56 at least. For others it will be longer.", "upvote_ratio": 4050.0, "sub": "AskAnAmerican"} +{"thread_id": "uo1m7j", "question": "Specifically, what age do you guys pay off your full mortgage loan usually?\n\nEdit: as far as I understand from the comments people usually BUY houses when creating a family. Do you guys have some kind of benefits for young families/young families with kids?", "comment": "> what age do you guys pay off your full mortgage loan usually?\n\nThe only people I know that have paid off mortgages are in their 50s or older. Our mortgages typically run 30 years.\n\n[According to credit agencies](https://www.experian.com/blogs/ask-experian/research/average-age-to-buy-a-house/), the average age of a first time homeowner in the US is 34. So they'll be free when they're 64.", "upvote_ratio": 1170.0, "sub": "AskAnAmerican"} +{"thread_id": "uo1m7j", "question": "Specifically, what age do you guys pay off your full mortgage loan usually?\n\nEdit: as far as I understand from the comments people usually BUY houses when creating a family. Do you guys have some kind of benefits for young families/young families with kids?", "comment": "I\u2019m wondering what you imagine life is like in a house before you fully pay off your mortgage.\n\nHaving a house that you still owe on the mortgage is just having a house. You own it. You can paint it or add a room or convert the garage or whatever else you want to do. You owe money and the bank could theoretically take the house if you stop paying them back. But if you bought a house where the mortgage is in your budget that hopefully won\u2019t be an issue.\n\nLiving in a house you own but still owe money on is very much \u201chaving your own place.\u201d", "upvote_ratio": 810.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2e0o", "question": "Apologies if this has been asked before but I couldn't find any conclusive answer.\n\nI've decided to learn C++ over the summer and so was wondering what IDE to use. For information I have a 2020 M1 MacBook Pro. Thanks in advance.", "comment": "Clion is my favorite but quite expensive", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo2e0o", "question": "Apologies if this has been asked before but I couldn't find any conclusive answer.\n\nI've decided to learn C++ over the summer and so was wondering what IDE to use. For information I have a 2020 M1 MacBook Pro. Thanks in advance.", "comment": "I do all my development on an M1 mac (then port to Linux and Windows), Install xcode and the tools (it does come in handy from time to time), In particular you can just install the command line tools if you are not using xcode.\n\nThen install VSCode and CMake and use that. It is by far the best cross platform solution and works really well. I find xcode over complicated for basic C++ development (for example adding frameworks / libraries) as apposed to using something like vcpkg and cmake.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo2e0o", "question": "Apologies if this has been asked before but I couldn't find any conclusive answer.\n\nI've decided to learn C++ over the summer and so was wondering what IDE to use. For information I have a 2020 M1 MacBook Pro. Thanks in advance.", "comment": "If you\u2019re on Mac then Xcode is your best bet. Especially for c++. You could use VS Code with some kind of c++ compiler, and learn how to use the command line but that would be a little more involved. Xcode gets the job done if this is your introduction into programming", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo2j0i", "question": "How much of your monthly wage is spent on rent/mortage?\nIn my country people usually have to spent more than a half of their wage for being able to afford rent", "comment": "$4000/month for a 2br apartment in Central Boston (Seaport).", "upvote_ratio": 1030.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2j0i", "question": "How much of your monthly wage is spent on rent/mortage?\nIn my country people usually have to spent more than a half of their wage for being able to afford rent", "comment": "Don't pay rent. I currently live in my car because San Diego housing\n\nIt's that or spend 50% of my monthly income on a room", "upvote_ratio": 880.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2j0i", "question": "How much of your monthly wage is spent on rent/mortage?\nIn my country people usually have to spent more than a half of their wage for being able to afford rent", "comment": "My mortgage is 1200 and we are < 4 years from paying that bitch off.\n\nNo more debt after then. Just in time for the apocalypse.", "upvote_ratio": 760.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2mel", "question": "There are systems with multiple stars, red and blue giants that would consume our sun for a breakfast, stars that die and reborn every couple of years and so on. Is there anything that set our star apart from the others like the ones mentioned above? Anything that we can use to make aliens jealous?", "comment": "Well, the stars that you mention are less common than our little yellow dwarf star, which is a pretty common size (in general: the smaller the main sequence star, the more of them there are and the longer they live). It's also high-medium in metal, which makes sense given its robust planetary system, so that make our solar system 2nd or later generation supernova remains, which is also exceptionally common among stars in the observable universe. We're also in the middle of a medium-sized arm of the Milky Way, which is a medium-large galaxy in a fairly average-density region of the observable universe.", "upvote_ratio": 5580.0, "sub": "AskScience"} +{"thread_id": "uo2mel", "question": "There are systems with multiple stars, red and blue giants that would consume our sun for a breakfast, stars that die and reborn every couple of years and so on. Is there anything that set our star apart from the others like the ones mentioned above? Anything that we can use to make aliens jealous?", "comment": "Yes.\n\nThere is 1 aspect of the sun that is rare and that is solar variability. Our sun is unusually stable in terms of it's output and this has actually had an impact on our search for exoplanets. [Cool Worlds has done a video on it](https://youtu.be/TAQKJ41eDTs?t=801), and also [how this affected the Kepler Mission search for exoplanets](https://www.youtube.com/watch?v=IFx3r32r-GU&t=1334s).\n\nBasically, our sun was considered an \"average\" star in regards to variability when they were designing the Kepler mission. Surprisingly, this was not correct - and the noisiness of other stars meant that Kepler could no longer distinguish the transit of an Earth-like planet in front of a Sun-like star from noise during the original mission time-frame. An extension could have solved this by gathering more data points, but the telescope broke down before they got enough data.\n\nWhether our Sun's unusually stability has contributed to life emerging and flourishing is up for debate. But one can certainly see the benefits of having a stable home star - more stable climate, fewer freak radiation events, etc.", "upvote_ratio": 2470.0, "sub": "AskScience"} +{"thread_id": "uo2mel", "question": "There are systems with multiple stars, red and blue giants that would consume our sun for a breakfast, stars that die and reborn every couple of years and so on. Is there anything that set our star apart from the others like the ones mentioned above? Anything that we can use to make aliens jealous?", "comment": "Not really. Our star is part of the \"main sequence\" i.e. pretty typical. Though, technically, binary systems are more common than single star systems, so ours is slightly unusual in that respect. But single star systems are still pretty common.", "upvote_ratio": 2360.0, "sub": "AskScience"} +{"thread_id": "uo2sl9", "question": "there's an argument that its actually better for the west if Saudi Arabia and China remain dictatorships because if they had changes of government every several years it would disrupt the supply or oil and manufactured goods respectively.", "comment": "The US isn\u2019t reliant on oil from the Middle East, which accounts for 8% of the total imported to the country from that region. The most important oil producing country to the United States is Canada.\n\nThe US intervenes in the Middle East because so much of the rest of the world is dependent on their petroleum, not because we are. I think a better question is: since petroleum from the Middle East, especially Saudi Arabia, is necessary for the global economy to function, would those countries intervene?\n\nhttps://www.eia.gov/energyexplained/oil-and-petroleum-products/imports-and-exports.php", "upvote_ratio": 910.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2sl9", "question": "there's an argument that its actually better for the west if Saudi Arabia and China remain dictatorships because if they had changes of government every several years it would disrupt the supply or oil and manufactured goods respectively.", "comment": "Welcome back Grapp. \n\nI suspect we would if they asked us to. I would hope not.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2sl9", "question": "there's an argument that its actually better for the west if Saudi Arabia and China remain dictatorships because if they had changes of government every several years it would disrupt the supply or oil and manufactured goods respectively.", "comment": "IMHO, the US cares less about Saudi Arabia with each passing day. We don't even need their oil or airfields as much as we used to. Notice the deafening silence after Iran attacked the Saudi oil facilities. The US pretty much just shrugged.\n\nThe House of Saud has been so evil and duplicitous over the years that we will be glad to be rid of them. Negotiate with whoever emerges as the winner. They need our Navy to protect the Gulf much more than we need them for... well.. anything.", "upvote_ratio": 290.0, "sub": "AskAnAmerican"} +{"thread_id": "uo2xhy", "question": "I looked at multiple libraries online but all of them were either too complicated to learn to use or just straight up did not work. I am really demotivated to learn to make something like that because of the lack of good sources to learn and I thought about writing some code that opens geogebra with the function I give it displaying. But unfortunatelly I have no idea how to do that and it may not even be possible to make it in c++. If you can help me in any way I would really apreciate it? I consider myself a beginner so I don't really want anything complicated.", "comment": "C++ is Turing complete. If a computer is able to do it, c++ can do it.\n\nAlso, You're going to be a beginner forever unless you're willing to take some complicated things onto your plate.\n\nAre you attempting to make some sort of wrapper around this geogebra thing or do you legitimately want to do it all yourself and save it as png?\n\nWhat do you have so far? Have you put the carriage before the horses and started looking up rendering libs before you've worked on the graphing part of your codebase? Are you going to write an entire parser for the equations?\n\nWhat I want is more details about how you're wanting to do this.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo2xhy", "question": "I looked at multiple libraries online but all of them were either too complicated to learn to use or just straight up did not work. I am really demotivated to learn to make something like that because of the lack of good sources to learn and I thought about writing some code that opens geogebra with the function I give it displaying. But unfortunatelly I have no idea how to do that and it may not even be possible to make it in c++. If you can help me in any way I would really apreciate it? I consider myself a beginner so I don't really want anything complicated.", "comment": "https://github.com/nothings/stb. specifically `stb_image_write.h`. This is a \"library\" (it's 1 file) which allows you to take an array of pixels and encode it as a PNG, if this is what you're looking for.\n\nYou can graph your function in this array of pixels by effectively treating it as a coordinate grid.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo311l", "question": "In my experience, it seems like a great motivator for office based employees to wake up and get to work on time.\n\nThe pandemic and remote work is not the right answer here because many many companies were not giving free food before the pandemic, so it would just be an excuse for them at this point.", "comment": "Hahah I'd be inclined to go into an office if it meant I didn't have to figure out what to feed myself everyday", "upvote_ratio": 5830.0, "sub": "CSCareerQuestions"} +{"thread_id": "uo311l", "question": "In my experience, it seems like a great motivator for office based employees to wake up and get to work on time.\n\nThe pandemic and remote work is not the right answer here because many many companies were not giving free food before the pandemic, so it would just be an excuse for them at this point.", "comment": "I personally would not mind a \"free\" (no cost to you) meal offered by my employer. Big G had(maybe still do) snack bars within fifteen feet of cubicles, so it keeps workers more productive.", "upvote_ratio": 3780.0, "sub": "CSCareerQuestions"} +{"thread_id": "uo311l", "question": "In my experience, it seems like a great motivator for office based employees to wake up and get to work on time.\n\nThe pandemic and remote work is not the right answer here because many many companies were not giving free food before the pandemic, so it would just be an excuse for them at this point.", "comment": "It\u2019s actually extremely expensive. Like $20/employee/meal at one place I worked. That\u2019s like a $5000/yr cost per employee.\n\nI\u2019d rather have the $5000.", "upvote_ratio": 1910.0, "sub": "CSCareerQuestions"} +{"thread_id": "uo32h6", "question": "Hi all, I've been away from programming for a minute. When I first went through my programming level 2 course at university, I remember a bunch of the content and information being presented about static, abstract, static-abstract, and class methods. Most of it was really intuitive but there's a bunch of minutia that had to be kept in mind when making decisions architecturally. I haven't been able to find the book or my notes about that. I was wondering if anyone out there had recommendations on a good general Object Oriented Programming reference guide that would explain \"static methods act like this, they can do this, they can't access that. Class methods act like this...\" etc...\n\nThanks everyone in advance.", "comment": "Every language is slightly different. The details won't be the same everywhere.\n\nBut the basics are:\n\n- static methods don't use class instance, regular methods do\n- therefore, you can call a static method without an object\n- static fields don't use class instance either; they're essentially glorified globals\n- abstract methods are declared in base class but defined in derived class\n- therefore, a class with abstract methods cannot be instantiated (because there's no method implementation)\n- static abstract methods are only ever useful for generic code and few languages support them to start with\n\nFor everything else, refer to the beginner tutorial of the language of choice. It'll have everything you want to know, and what you read there probably won't be applicable to other languages.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uo32h6", "question": "Hi all, I've been away from programming for a minute. When I first went through my programming level 2 course at university, I remember a bunch of the content and information being presented about static, abstract, static-abstract, and class methods. Most of it was really intuitive but there's a bunch of minutia that had to be kept in mind when making decisions architecturally. I haven't been able to find the book or my notes about that. I was wondering if anyone out there had recommendations on a good general Object Oriented Programming reference guide that would explain \"static methods act like this, they can do this, they can't access that. Class methods act like this...\" etc...\n\nThanks everyone in advance.", "comment": "I understand what you are asking, but I will contend that such a thing as you have described does not exist, not \"language agnostic\" in any case.\n\nAs soon as you talk about \"classes\" or \"methods\", the discussion is no longer language agnostic. After all, Scheme doesn't use classes, and neither does JavaScript. Meanwhile Objective-C doesn't have methods, it has messages. These are not merely semantic differences either - they are language-specific functional differences.\n\nAll of that to say, I would be weary of information that was presented in an early-level university course on the topic. It may have been presented in a language-agnostic manner, but I'm willing to bet the content was tailored toward the language(s) used in the course. Treating it as universal can surely lead to problems if the information is applied without caution. Especially when you start talking about \"\\_\\_\\_\\_\\_ methods do this\" or \"\\_\\_\\_\\_\\_ classes do that\" - it's always going to have a \"flavor\" of the particular programming language.\n\nIf you are looking for information on overarching design methodology, there is of course the classic text [Design Patterns](https://en.wikipedia.org/wiki/Design_Patterns). There are valid criticisms of the book - it should not be taken as complete gospel, but it is really the only book of its kind, and it is absolutely required reading if you're trying to plan a large project. Read the book, understand the patterns, then once you pick a language for your project, search \"design patterns in {language}\" to get language-specific implementation ideas.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uo344v", "question": "Hi,\n\nLong story short, I\u2019m a bit lost and bit stuck. I\u2019ve been working in IT Support for almost 7 years and I\u2019m beginning to want more from it. I don\u2019t feel like I know it all, but I feel like this job is becoming easy and repetitive. I\u2019ve changed companies 3 times and each one has been very different but still I feel the same.\n\nI\u2019m looking to expand my knowledge and become a specialist. Whether that be security, networking, development, application testing etc I\u2019m not sure\u2026 I\u2019d like some fundamentals to put on my CV to get an opportunity. I was thinking of going for the MDM100 and MDM101 qualifications to get started, are there any recommendations on how to get out of 1st line?", "comment": "I left the front line to do analyst work. At first process analysis, then business analysis and now consulting. I love it. The day is always different and there is never a shortage of things to focus on. \n\nI have Lean IT, ITIL3, and ITIL4 certs. I\u2019m getting agile product owner certified in July. \n\nI guess I\u2019m telling you all this because IT is a space where people think they need to have all these technical certs and programming experience to move up. But there is a business side to it too that you can transfer to any other industry.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo3c5j", "question": "I\u2019m new to programming and I\u2019m looking to figure out the certifications that\u2019ll give me an edge over my peers while interviewing for programming related jobs, any ideas", "comment": "The only certs that people are generally going to care about are DevOps-type certs like AWS stuff.", "upvote_ratio": 4780.0, "sub": "LearnProgramming"} +{"thread_id": "uo3c5j", "question": "I\u2019m new to programming and I\u2019m looking to figure out the certifications that\u2019ll give me an edge over my peers while interviewing for programming related jobs, any ideas", "comment": "Devops and system admin certs. \n\nLanguage specific is laughable. Example: I\u2019m a ciw certified web master, from 2003. It has NEVER been talked about.", "upvote_ratio": 1270.0, "sub": "LearnProgramming"} +{"thread_id": "uo3c5j", "question": "I\u2019m new to programming and I\u2019m looking to figure out the certifications that\u2019ll give me an edge over my peers while interviewing for programming related jobs, any ideas", "comment": "No one cares about certifications.", "upvote_ratio": 1210.0, "sub": "LearnProgramming"} +{"thread_id": "uo3k07", "question": " \n\n**My main question is how to prepare myself for this role with only 30 days left. Should I do TryHackMe, study for security+, both, etc. This internship will likely expose me and have me do work in cybersecurity risk, compliance, and incident response (Which I am most worried about).**\n\n**Second question: How is it possible that I was selected for this role, out of hundreds that applied????**\n\nFor context, the interview I had wasn't technical at all. All they asked me about was what the CIA triad was and explain how the 3-way handshake works (Which I didn't even know, but they were fine with it). The rest was all behavioral and interpersonal. I didn't lie or exaggerate on my resume either. I didn't list any cybersecurity tools and have no certifications, as I'm only a sophomore. They made little to no reference to my resume either and they never asked for references (At least till now). I also only had one interview and it lasted for approximately 50 minutes. Also, for those wondering, these people are not a scam or whatever, its an official agency. \n\nHowever, the job posting itself didn't have any technical requirements either. All it said was that I would serve as a cybersecurity analyst and will have exposure and do work within different departments (Risk, Compliance, Incident Response, etc.) inside the cybersecurity office. Also, during the interview, they were interested in whether I would want to stay long-term after finishing university, which I say yes to. **So, I suspect maybe they knew about my lack of qualifications, but saw I had growth potential and thought I could maybe be trained to fit their needs in the long-term. But I'm not 100% sure.** \n\n[Here is a link to my resume](https://imgur.com/BuZYrST)\n\nAlso, my prior internship work at the private intelligence company was not technical at all, aside from Tableau. The company is focused on foreign affairs, international relations, intelligence security work, etc. My \"OSINT\" experience was not technical and instead just limited to using pre-existing and internal company tools to conduct investigations.\n\nI'm really passionate about cybersecurity, but I had absolutely zero expectations that I would land this role, but I somehow magically did. Most of my applications were for basic IT/help desk roles. Any help/advice would be greatly appreciated cause I'm really stressed out. Also, let me know if you need more information. Thanks!", "comment": "It is an internship. You are there to learn and they will reach you. They won't let you do anything that could cause major damage. Relax, go forth and learn. Keep a positive attitude and always be willing to learn something new.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo3k07", "question": " \n\n**My main question is how to prepare myself for this role with only 30 days left. Should I do TryHackMe, study for security+, both, etc. This internship will likely expose me and have me do work in cybersecurity risk, compliance, and incident response (Which I am most worried about).**\n\n**Second question: How is it possible that I was selected for this role, out of hundreds that applied????**\n\nFor context, the interview I had wasn't technical at all. All they asked me about was what the CIA triad was and explain how the 3-way handshake works (Which I didn't even know, but they were fine with it). The rest was all behavioral and interpersonal. I didn't lie or exaggerate on my resume either. I didn't list any cybersecurity tools and have no certifications, as I'm only a sophomore. They made little to no reference to my resume either and they never asked for references (At least till now). I also only had one interview and it lasted for approximately 50 minutes. Also, for those wondering, these people are not a scam or whatever, its an official agency. \n\nHowever, the job posting itself didn't have any technical requirements either. All it said was that I would serve as a cybersecurity analyst and will have exposure and do work within different departments (Risk, Compliance, Incident Response, etc.) inside the cybersecurity office. Also, during the interview, they were interested in whether I would want to stay long-term after finishing university, which I say yes to. **So, I suspect maybe they knew about my lack of qualifications, but saw I had growth potential and thought I could maybe be trained to fit their needs in the long-term. But I'm not 100% sure.** \n\n[Here is a link to my resume](https://imgur.com/BuZYrST)\n\nAlso, my prior internship work at the private intelligence company was not technical at all, aside from Tableau. The company is focused on foreign affairs, international relations, intelligence security work, etc. My \"OSINT\" experience was not technical and instead just limited to using pre-existing and internal company tools to conduct investigations.\n\nI'm really passionate about cybersecurity, but I had absolutely zero expectations that I would land this role, but I somehow magically did. Most of my applications were for basic IT/help desk roles. Any help/advice would be greatly appreciated cause I'm really stressed out. Also, let me know if you need more information. Thanks!", "comment": "Keyword is \u201cinternship\u201d. They are a way for you to hands on learn (and make some cash). You\u2019ll be fine, I\u2019d be surprised if they sent you off to do something important without a seasoned person with you. Just enjoy the ride, take in all the info, be sure to network while you\u2019re there, and if you think you\u2019re going to screw something up just ask your trainer. Grats on the role bro!", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo3md1", "question": "My father was a big time cocaine dealer for Fleetwood Mac, Kenny Loggins, Marsha Brady to name a few, in Los Angeles. AMA", "comment": "Does he have any memorabilia from the era? Is he still alive? Using?", "upvote_ratio": 2440.0, "sub": "AMA"} +{"thread_id": "uo3md1", "question": "My father was a big time cocaine dealer for Fleetwood Mac, Kenny Loggins, Marsha Brady to name a few, in Los Angeles. AMA", "comment": "What other kind of legitimate work did he do?\n\nHow did you find out?\n\nHow does your mom feel about it all?", "upvote_ratio": 1080.0, "sub": "AMA"} +{"thread_id": "uo3md1", "question": "My father was a big time cocaine dealer for Fleetwood Mac, Kenny Loggins, Marsha Brady to name a few, in Los Angeles. AMA", "comment": "Craziest anecdote he fed you about the scene back then?", "upvote_ratio": 810.0, "sub": "AMA"} +{"thread_id": "uo3mq3", "question": "This might be a question for 70 somethings since I'm 61, but for me it's TicToc. I did Facebook. I did Twitter. I did Instagram. Here I am on Reddit. I started creating a Tictoc account and felt the life force drain out of me. I simply closed the browser and went to watch Food Network. What's your \"no more\" moment?", "comment": "A bit long; sorry.\n\nOld academic here. I was there at the \"dawn of the internet\" so to speak.\n\nI sat at tables in the early 90s when we discussed where the internet was going. Much of the content in those days was academic stuff, researchers, nothing commercial, a few early adopters with files up on a server somewhere. We messed around sending huge files ftping (old dos commands for those too young to remember) them from Canada to California and were happy when it all went well. \n\nWhen we started talking about user generated content I was mystified about what the average person had to really contribute to this new digital world. Not trying to be elitist, everyone is not an expert and no, most of your life is not interesting enough to be documented daily. I kept asking the question...what the heck is all this user generated content going to be?\n\nWell here we are \"the pinnacle of human technology\" (maybe) and we spend our time hating each other, having opinions make one wonder wtf, denigrating and debasing each other via a keyboard, and making cat videos and porn\n\nI have a love hate relationship with technology and the digital world. We did not have to scratch very hard to see some of the best and worst of human nature, all while never uttering a word in person. \n\nI have never had facebook, twitter or instagram. I have been on reddit with several user names through the years since about 2008 or so. I limit my online presence. I know that the data is the gold and I am not giving up mine without something more than access to some website.\n\nEDIT: short answer about 1998", "upvote_ratio": 1760.0, "sub": "AskOldPeople"} +{"thread_id": "uo3mq3", "question": "This might be a question for 70 somethings since I'm 61, but for me it's TicToc. I did Facebook. I did Twitter. I did Instagram. Here I am on Reddit. I started creating a Tictoc account and felt the life force drain out of me. I simply closed the browser and went to watch Food Network. What's your \"no more\" moment?", "comment": "Just gone through surgical menopause. My remaining fucks magically disappeared along with my uterus. I feel much better all round.", "upvote_ratio": 1420.0, "sub": "AskOldPeople"} +{"thread_id": "uo3mq3", "question": "This might be a question for 70 somethings since I'm 61, but for me it's TicToc. I did Facebook. I did Twitter. I did Instagram. Here I am on Reddit. I started creating a Tictoc account and felt the life force drain out of me. I simply closed the browser and went to watch Food Network. What's your \"no more\" moment?", "comment": "When everything quit being words and turned into film clips. that isn't interaction. \n I cant .", "upvote_ratio": 1050.0, "sub": "AskOldPeople"} +{"thread_id": "uo3quw", "question": "//--TO DO--//\n\n//add biome system |Check|\n\n//add per biome mob and structure system |Alted due to minor priority|\n\n//add format to cout for inventory and armor |Check|\n\n//upgrade damage and armor system\n\n//add objects quantity\n\n//add a save and load system |Not working|\n\n//add crafting system |Make a true shaped crafing system|\n\n//add a a inventory managment system\n\n//--TO FIX--//\n\n//|Check| When you encounter a creeper and after you walk you will die for no reason {\n\n//Possible cause: probably the program subtract 10 hp twice instead it should remove 10 hp per creeper encounter\n\n//Possible fix: fix Mattia's brain}\n\n//|Check| Trying to use for loop to detect with item is inserted into the crafting table {\n\n//Result: program crashed\n\n//Possible fix: learn how to use for loop or contact loxo}\n\n//Mattia's knowledge of C++ {\n\n//Possible cause: Mattia's bad knowledge about C++\n\n//Possible fix: Read a book}\n\n//When you save the armor array, you are also saving junk{\n\n//Result: garbage data into the save file\n\n//Possible fix: (bad idea) dissect and save single array elemnt or wait to put element int it before saving}\n\n\\#include <iostream>\n\n\\#include <string.h>\n\n\\#include <iomanip>\n\n\\#include <time.h>\n\n\\#include <fstream>\n\n\\#define objsnum 6\n\n\\#define invnum 9\n\n\\#define biomesnum 6\n\nusing namespace std;\n\n//#pragma pack(4)\n\nstruct plys{\n\nint hp;\n\nint exp;\n\nstring inv\\[invnum\\]={\"air\",\"air\",\"air\",\"air\",\"air\",\"air\",\"air\",\"air\",\"air\"};\n\nstring arms\\[4\\]={\"slot1\",\"slot2\",\"slot3\",\"slot4\"};\n\nint armor;\n\nint dmg;\n\nstring biome;\n\nstring sword;\n\n}player;\n\nstruct mobs{\n\nint mdmg;\n\nint resis;\n\n}creeper,zombie,husk;\n\n//insert into inventory//\n\nvoid insinv(string item, int len){\n\nfor(int i=0; i<len; i++){\n\nif(player.inv\\[i\\]==\"air\"){\n\nplayer.inv\\[i\\]=item;\n\nbreak;\n\n}\n\n}\n\n}\n\nvoid savload(int type){\n\nstring buffinv\\[invnum\\];\n\nifstream testread(\"mine-save.bin\");\n\nFILE \\* pFile;\n\nstring output;\n\nint sizestr=sizeof(struct plys);\n\nint sizeinv=sizeof(player.inv\\[invnum\\]);[//player.inv](//player.inv)\\[invnum\\].size();\n\nint sizearmor=sizeof(player.arms\\[4\\]);[//player.arms](//player.arms)\\[4\\].size();\n\nint sizsinv=player.inv\\[invnum\\].size();\n\nint sizsarm=player.arms\\[4\\].size();\n\nint leninv=player.inv\\[invnum\\].length();\n\nint lenarm=player.arms\\[4\\].length();\n\nint aligstr=alignof(struct plys);\n\nint aliginv=alignof(player.inv\\[invnum\\]);\n\nint aligarm=alignof(player.arms\\[4\\]);\n\nint sizsword=player.sword.size();\n\nint sizbiome=player.biome.size();\n\nint sizhp=sizeof(player.hp);\n\nif(type==1){\n\n//for(int i; i>invnum; i++)buffinv\\[i\\]=\"air\";\n\n//memcpy(buffinv,player.inv,invnum);\n\ncopy(begin(player.inv), end(player.inv), begin(buffinv));\n\npFile = fopen (\"mine-save.bin\", \"wb\");\n\nfwrite (buffinv , sizeof(string), buffinv\\[invnum\\].size(), pFile);\n\nfclose (pFile);\n\ncout<<\"invetory saved (hopefully, i don't know how to make an actual check)\"<<endl;\n\nreturn;\n\n}\n\nif(type==2){\n\nfor(int i; i>invnum; i++)buffinv\\[i\\]=\"air\";\n\ntestread.seekg (0, testread.beg);\n\nwhile (getline (testread,output)) {\n\nfor(int i; i>invnum;i++)\n\nbuffinv\\[i\\]=output;\n\n}\n\ntestread.close();\n\n//copy(begin(buffinv),end(buffinv),begin(player.inv));\n\nmemcpy(player.inv,buffinv,invnum);\n\ncout<<\"loaded (hopefully, i don't know how to make an actual check)\"<<endl;\n\nreturn;\n\n}\n\n}\n\n//game function//\n\nvoid game(){\n\nsrand ( time(NULL) );\n\n//player varibale//\n\nplayer.hp=20;\n\nplayer.exp=0;\n\nplayer.dmg=1;\n\n//mobs damages//\n\nint dmgt=0;\n\n//Creeper\n\ncreeper.mdmg=10;\n\n//Zombie\n\nzombie.mdmg=2;\n\n//Husk\n\nhusk.mdmg=3;\n\n//variables//\n\nint stptot;\n\nint act;\n\nint invsl;\n\nint crfsl;\n\nbool debug=true;\n\nchar y;\n\nchar action;\n\nchar actin;\n\nchar actcr;\n\n//armor types and protection values//\n\n//Leather\n\nint lhlpr=1; //helmet\n\nint lchpr=3; //chestplate\n\nint llgpr=2; //leggings\n\nint lbtpr=1; //boots\n\n//Iron\n\nint ihlpr=2; //helmet\n\nint ichpr=6; //chestplate\n\nint ilgpr=5; //leggings\n\nint ibtpr=4; //boots\n\nstring crftb\\[9\\]={\"slot0\",\"slot1\",\"slot2\",\"slot3\",\"slot4\",\"slot5\",\"slot6\",\"slot7\",\"slot8\"};\n\nstring objs\\[objsnum\\]={\"Tree\",\"Creeper\",\"Cow\",\"Water\",\"Zombie\",\"Lava\"};\n\n//string \\*pobjs =objs;\n\nstring biomes\\[biomesnum\\]={\"Plains\",\"Desert\",\"Forest\",\"Hills\",\"Ice-Peeks\",\"Dark-Forest\"};\n\nstring buffinv\\[invnum\\];\n\nstring buffarmor\\[4\\];\n\nstring loadinv\\[invnum\\];\n\n//cout<<\"tutorial: to play type a number of steps\\\\n every ten steps you may find something\"<<endl;\n\n//armor calculator//\n\nif(player.arms\\[0\\]==\"air\")player.armor=player.armor+0;\n\nif(player.arms\\[1\\]==\"air\")player.armor=player.armor+0;\n\nif(player.arms\\[2\\]==\"air\")player.armor=player.armor+0;\n\nif(player.arms\\[3\\]==\"air\")player.armor=player.armor+0;\n\n//leather//\n\nif(player.arms\\[0\\]==\"let\\_helmet\")player.armor=player.armor+lhlpr;\n\nif(player.arms\\[1\\]==\"let\\_leggings\")player.armor=player.armor+lchpr;\n\nif(player.arms\\[2\\]==\"let\\_chestplate\")player.armor=player.armor+llgpr;\n\nif(player.arms\\[3\\]==\"let\\_boots\")player.armor=player.armor+lbtpr;\n\nwhile(true){\n\nsrand ( time(NULL) );\n\nif(debug==true)cout << \"\\\\033\\[1;31mATTENTION\\\\033\\[0m\\\\ndebug menu enabled\\\\ntype 5 to access it\"<<endl;\n\ncout<<\"type:\\\\n\\[1\\] Walk\\\\n\\[2\\] Browse and manage the invetory\\\\n\\[3\\] Crafting table\\\\n\\[4\\]Save or load (only player invemtory for now)\"<<endl;\n\ncin>>act;\n\nswitch(act){\n\ncase 1:{\n\n//core gameplay loop//\n\nint RandDis = rand() % 10;\n\nint RandBiomes = rand() % biomesnum;\n\nint RandDrop = rand() % 5;\n\nif(player.sword.empty())player.sword=\"bare-fists\";\n\nif(player.biome.empty()){\n\nRandBiomes = rand() % biomesnum;\n\nplayer.biome=biomes\\[RandBiomes\\];\n\n}\n\ncout<<\"type 'w' to walk and you may find something\"<<endl;\n\ncout<<\"current biome: \"<<player.biome<<endl;\n\ncout<<\"your current sword: \"<<player.sword<<endl;\n\ncin>>action;\n\nif(action=='m')return;\n\nif(player.hp<=0){\n\ncout<<\"you died!\"<<endl;\n\nexit(EXIT\\_SUCCESS);\n\n}\n\nif(action=='w'){\n\nint RandStp = rand() % 10;\n\nRandStp = rand() % 10;\n\nstptot=RandStp+10;\n\nif(debug==true){\n\ncout<<\"steps: \"<<RandStp<<endl;\n\ncout<<\"steps to another biome (if is 20 or 19 you enter into a new biome): \"<<stptot<<endl;\n\ncout<<\"RandDis: \"<<RandDis<<endl;\n\n}\n\nif(stptot==19)stptot=stptot+1;\n\nif(stptot==20){\n\nRandBiomes = rand() % biomesnum;\n\nplayer.biome=biomes\\[RandBiomes\\];\n\ncout<<\"congratulation you enter into a new biome: \"<<player.biome<<endl;\n\n}\n\nif(RandStp==RandDis){\n\nint RandIndex = rand() % objsnum;\n\n//int RandIndexi = rand() % invnum;\n\nRandIndex = rand() % objsnum;\n\ncout << objs\\[RandIndex\\]<<endl;\n\nif(objs\\[RandIndex\\]==\"Tree\"){\n\ncout<<\"you found a tree!\"<<endl;\n\ncout<<\"do you want to harvest it and obtain a tree log?\"<<endl;\n\ncin>>y;\n\nif(y=='y')insinv(\"Log\",invnum);[//player.inv](//player.inv)\\[RandIndexi\\]=\"Log\";\n\n}\n\nif(objs\\[RandIndex\\]==\"Zombie\"){\n\nif(player.sword==\"bare-fists\"){\n\nplayer.hp=player.hp-zombie.mdmg;\n\ncout<<\"you punch the zombie in the face, but is not enough to stop it\"<<endl;\n\ncout<<\"The zombie hit you\"<<endl;\n\ncout<<\"now you have \"<<player.hp<<\" health points\"<<endl;\n\n}else cout<<\"your mighty \"<<player.sword<<\" kill the zombie\"<<endl;\n\n}\n\nif(objs\\[RandIndex\\]==\"Creeper\"){\n\n//cout<<\"you have ten seconds to type 'w' to escape the creeper explosion\"<<endl;\n\n//cout<<\"due to a stupid bug the creeper is temporany disabled\"<<endl;\n\nif(player.sword==\"bare-fists\"){\n\nplayer.hp=player.hp-creeper.mdmg;\n\ncout<<\"your fists are not enough powerfull to kill the creeper\"<<endl;\n\ncout<<\"The creeper explode in front of you\"<<endl;\n\ncout<<\"now you have \"<<player.hp<<\" health points\"<<endl;\n\n}else cout<<\"you kill the creeper\"<<endl;\n\n}\n\nif(objs\\[RandIndex\\]==\"Cow\"){\n\nRandDrop;\n\ncout<<\"do you want to kill the cow to obtain one leather pice?\\\\nand also you might obatain a raw beef piece?\"<<endl;\n\ncin>>y;\n\nif(RandDrop==5){\n\ncout<<\"you obtain a raw beef piece\"<<endl;\n\ninsinv(\"Raw-Beef\",invnum);\n\n}\n\nif(y=='y')insinv(\"Leather\",invnum);[//player.inv](//player.inv)\\[RandIndexi\\]=\"Leather\";\n\n}\n\nif(player.biome!=\"Desert\"){\n\nif(objs\\[RandIndex\\]==\"Water\"){\n\ncout<<\"you found a water pond\"<<endl;\n\n}\n\n}else cout<<\"there is no water here\"<<endl;\n\n}\n\n}\n\nbreak;\n\n}\n\ncase 2:{\n\nwhile(true){\n\n//player invemtory//\n\ncout<<\"Player health points: \"<<player.hp<<endl;\n\ncout<<\"PLayer damage points: \"<<player.dmg<<endl;\n\ncout<<\"Player inventory \"<<endl;\n\nfor (int i=0; i<invnum; i++)\n\ncout << player.inv\\[i\\]<<endl;\n\ncout<<\"Player armor points: \"<<player.armor<<endl;\n\ncout<<\"Player armor\"<<endl;\n\nfor (int i=0; i<4; i++)\n\ncout << player.arms\\[i\\]<<\",\";\n\n//cout<<player.arms\\[0\\]<<\",\"<<player.arms\\[1\\]<<\",\"<<player.arms\\[2\\]<<\",\"<<player.arms\\[3\\]<<\",\"<<player.arms\\[4\\]<<endl;\n\ncout<<\"inventory managment:\\\\n'e' allows you to eat and regain health\\\\ntype 'c' to exit\"<<endl;\n\ncin>>action;\n\nif(action=='e'){\n\ncin>>invsl;\n\nif(player.inv\\[invsl\\]==\"Raw-Beef\"){\n\nplayer.inv\\[invsl\\]=\"air\";\n\nif(player.hp<20){\n\nplayer.hp=player.hp+5;\n\ncout<<\"you eat the \"<<player.inv\\[invsl\\]<<\"pice and you regeberate 5 hp\"<<endl;\n\n}\n\nif(player.hp==20)cout<<\"no need to eat your health is full\"<<endl;\n\n}else cout<<\"you can not eat \"<< player.inv\\[invsl\\]<<endl;\n\n}\n\nif(action=='c')break;\n\n}\n\nbreak;\n\n}\n\ncase 3:{\n\ncout<<\"crafting table:\"<<endl;\n\ncout <<setw(3)<<crftb\\[0\\]<<\",\"<<setw(3)<<crftb\\[1\\]<<\",\"<<setw(3)<<crftb\\[2\\]<<endl;\n\ncout <<setw(3)<<crftb\\[3\\]<<\",\"<<setw(3)<<crftb\\[4\\]<<\",\"<<setw(3)<<crftb\\[5\\]<<endl;\n\ncout <<setw(3)<<crftb\\[6\\]<<\",\"<<setw(3)<<crftb\\[7\\]<<\",\"<<setw(3)<<crftb\\[8\\]<<endl;\n\ncout<<\"to insert items into the crafting table\\\\nyou need to type the 'i' followed by the inventory slot (remeber slot ranged from 0 to 8)\\\\n followed by the crafting table (that also range from 0 to 8) \"<<endl;\n\ncin>>actin>>invsl>>crfsl;\n\nif(actin=='i'){\n\ncrftb\\[crfsl\\]=player.inv\\[invsl\\];\n\nplayer.inv\\[invsl\\]=\"air\";\n\n}\n\nif(actin=='c')break;\n\ncout<<\"crafting table:\"<<endl;\n\n//for (int i = 9 - 1; i >= 0; i--)\n\ncout <<setw(3)<<crftb\\[0\\]<<\",\"<<setw(3)<<crftb\\[1\\]<<\",\"<<setw(3)<<crftb\\[2\\]<<endl;\n\ncout <<setw(3)<<crftb\\[3\\]<<\",\"<<setw(3)<<crftb\\[4\\]<<\",\"<<setw(3)<<crftb\\[5\\]<<endl;\n\ncout <<setw(3)<<crftb\\[6\\]<<\",\"<<setw(3)<<crftb\\[7\\]<<\",\"<<setw(3)<<crftb\\[8\\]<<endl;\n\nfor(int i=0; i<9; i++){\n\nif(crftb\\[i\\]==\"Log\"){\n\ninsinv(\"Planks\",invnum);\n\ncout<<\"crafted planks\"<<endl;\n\n}\n\nif((crftb\\[i\\]==\"Planks\")&&(crftb\\[i\\]==\"Planks\")&&(crftb\\[i\\]==\"Planks\")){\n\ninsinv(\"Wooden-sword\",invnum); //temporaney i want a shaped crafting for sword\n\nplayer.sword==\"Wooden-sword\";\n\n}\n\n}\n\nbreak;\n\n}\n\ncase 4:{\n\ncout<<\"type 's' to save or 'l' to load\\\\n ATTENTION this feature is under developmnet, for now only the inventory will get saved\"<<endl;\n\ncin>>action;\n\nif(action=='s')savload(1);\n\nif(action=='l')savload(2);\n\n}\n\ncase 5:{\n\nifstream testread(\"mine-save.bin\");\n\nFILE \\* pFile;\n\nstring output;\n\nint z;\n\nint sizestr=sizeof(struct plys);\n\nint sizeinv=sizeof(player.inv\\[invnum\\]);[//player.inv](//player.inv)\\[invnum\\].size();\n\nint sizearmor=sizeof(player.arms\\[4\\]);[//player.arms](//player.arms)\\[4\\].size();\n\nint sizsinv=player.inv\\[invnum\\].size();\n\nint sizsarm=player.arms\\[4\\].size();\n\nint leninv=player.inv\\[invnum\\].length();\n\nint lenarm=player.arms\\[4\\].length();\n\nint aligstr=alignof(struct plys);\n\nint aliginv=alignof(player.inv\\[invnum\\]);\n\nint aligarm=alignof(player.arms\\[4\\]);\n\nint sizsword=player.sword.size();\n\nint sizbiome=player.biome.size();\n\nint sizhp=sizeof(player.hp);\n\nfor(int i=0;i>4;i++)buffarmor\\[i\\]=\"air\";\n\nif(debug==true){\n\ncout<<\"debug menu:\\\\n\\[1\\]remove ten health points\\\\n\\[2\\]size of the struct and arrays in it with their alignment\\\\n\\[3\\]give you a bunch of stuff\\\\n\\[4\\]clear your inventory\\\\n\\[5\\]save inventory (and extra junk) to a binary file\\\\n\\[6\\]dump the save file into the console\\\\n\\[7\\]memcpy save test\"<<endl;\n\ncout<<\"Please don't use \\[5\\] or \\[7\\] options\"<<endl;\n\ncin>>z;\n\nif(z==3){\n\ninsinv(\"Planks\",invnum);\n\ninsinv(\"Planks\",invnum);\n\ninsinv(\"Planks\",invnum);\n\ninsinv(\"Raw-Beef\",invnum);\n\ninsinv(\"Log\",invnum);\n\n}\n\nif(z==1)player.hp=player.hp-10;\n\nif(z==2){\n\ncout<<\"size of player struct: \"<<sizestr<<endl;\n\ncout<<\"size of player inventory: \"<<sizeinv<<endl;\n\ncout<<\"size of player armor: \"<<sizearmor<<endl;\n\ncout<<\"size (.size()) of inventory: \"<<sizsinv<<endl;\n\ncout<<\"size (.length()) of inventory: \"<<leninv<<endl;\n\ncout<<\"size (.size()) of armor: \"<<sizsarm<<endl;\n\ncout<<\"size (.length()) of armor: \"<<lenarm<<endl;\n\ncout<<\"alignamanet of player struct: \"<<aligstr<<endl;\n\ncout<<\"alignamanet of inventory: \"<<aliginv<<endl;\n\ncout<<\"alignment of armor: \"<<aligarm<<endl;\n\n//remainder//\n\n//the alignment is a divisor of it size\n\n}\n\nif(z==4){\n\nfor(int i=0; i<invnum; i++)\n\nplayer.inv\\[i\\]=\"air\";\n\n}\n\nif(z==5){\n\n//Save to binary using copy//\n\n//FILE \\* pFile;\n\n//char buffer\\[\\] = { 't' , 'e' , 's' , 't' };\n\ncopy(begin(player.inv), end(player.inv), begin(buffinv));\n\n//copy(begin(player.arms), end(player.arms), begin(buffarmor));\n\npFile = fopen (\"mine-save-c.bin\", \"wb\");\n\nfwrite (buffinv , sizeof(string), sizeof(buffinv), pFile);\n\n//fwrite (buffarmor , sizeof(string), sizeof(buffarmor), pFile);\n\nfclose (pFile);\n\n}\n\nif(z==6){\n\n//print save file in the terminal//\n\nstring out;\n\nwhile (getline (testread,out)) {\n\ncout << out;\n\n}\n\ntestread.close();\n\n}\n\nif(z==7){\n\n//Save to binary using memcpy//\n\nmemcpy(buffinv,player.inv,sizeinv);\n\nmemcpy(buffarmor,player.arms,sizearmor);\n\npFile = fopen (\"mine-save.bin\", \"wb\");\n\nfwrite (buffinv , sizeof(string), sizeof(buffinv), pFile);\n\n//fwrite (buffarmor , sizeof(string), sizeof(buffarmor), pFile);\n\nfclose (pFile);\n\n}\n\nif(z==8){\n\n;\n\n}\n\n}else cout<<\"enable debug to acess it\"<<endl;\n\nbreak;\n\n}\n\n}\n\n}\n\n}\n\nint main(){\n\nint sel;\n\ncout<<\"Welcome to Mattia's Software minetext\"<<endl;\n\nwhile(true){\n\ncout<<\"--Minetext--\\\\n\\[1\\] Singleplayer\\\\n\\[2\\] Credits\\\\n\\[3\\] Comands list\"<<endl;\n\ncin>>sel;\n\nswitch(sel){\n\ncase 1:\n\n{\n\ngame();\n\nbreak;\n\n}\n\ncase 2:\n\n{\n\ncout<<\"Author: Mattia's Software\\\\n Based upon Minecraft\"<<endl;\n\ncout<<\"Thanks to Loxo, that help me with some stuffs\"<<endl;\n\nbreak;\n\n}\n\ncase 3:\n\n{\n\ncout<<\"List of useful comands:\\\\n'w': allows you to walk a random number of steps\\\\n'm':allows you to return to the main menu\\\\n'e':allows you to eat and regain health\\\\n to use it you need to type 'e' and then the inventory slot were the food is contained\\\\n you can type those comands when you choose the walk option during the game\"<<endl;\n\nbreak;\n\n}\n\n}\n\n}\n\n}\n\nPlease ignore the case 5 inside the switch(act) in void game().\n\nI tried to implement a save and load system inside the savload(int type) function, i was tryng to write the player inventory (player.inv\\[invnum\\]) that is inside of a struct called plys into a binary file called mine-save.bin . I tried to directly save data from player.inv array, but it did not worked, so i tried to copy player.inv into an array called buffinv, first with copy and then with memcpy, but that did not work either.\n\nnote that writing the player.arms array in to the save file will fill it up with junk data.\n\n\nAnd also I want to point out that I am a hobbyist, i program for fun, and as a challenge I tried to do Minecraft as a text based game", "comment": "1. Please format your code.\n1. Dont use `FILE*`. You are writing C++. Use `ofstream`\n1. It *appears* that you are \n 1. `memcpy`ing objects that most likely are not memcpy-able. Dont ever use `memcpy` unless you are really 110% sure you know what you are doing and that its a good idea.\n 1. Trying to write strings into a file by writing the bits of the string object. That does not work. A string stores its text outside of itself, you can access those bytes via `.c_str()`.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "uo3quw", "question": "//--TO DO--//\n\n//add biome system |Check|\n\n//add per biome mob and structure system |Alted due to minor priority|\n\n//add format to cout for inventory and armor |Check|\n\n//upgrade damage and armor system\n\n//add objects quantity\n\n//add a save and load system |Not working|\n\n//add crafting system |Make a true shaped crafing system|\n\n//add a a inventory managment system\n\n//--TO FIX--//\n\n//|Check| When you encounter a creeper and after you walk you will die for no reason {\n\n//Possible cause: probably the program subtract 10 hp twice instead it should remove 10 hp per creeper encounter\n\n//Possible fix: fix Mattia's brain}\n\n//|Check| Trying to use for loop to detect with item is inserted into the crafting table {\n\n//Result: program crashed\n\n//Possible fix: learn how to use for loop or contact loxo}\n\n//Mattia's knowledge of C++ {\n\n//Possible cause: Mattia's bad knowledge about C++\n\n//Possible fix: Read a book}\n\n//When you save the armor array, you are also saving junk{\n\n//Result: garbage data into the save file\n\n//Possible fix: (bad idea) dissect and save single array elemnt or wait to put element int it before saving}\n\n\\#include <iostream>\n\n\\#include <string.h>\n\n\\#include <iomanip>\n\n\\#include <time.h>\n\n\\#include <fstream>\n\n\\#define objsnum 6\n\n\\#define invnum 9\n\n\\#define biomesnum 6\n\nusing namespace std;\n\n//#pragma pack(4)\n\nstruct plys{\n\nint hp;\n\nint exp;\n\nstring inv\\[invnum\\]={\"air\",\"air\",\"air\",\"air\",\"air\",\"air\",\"air\",\"air\",\"air\"};\n\nstring arms\\[4\\]={\"slot1\",\"slot2\",\"slot3\",\"slot4\"};\n\nint armor;\n\nint dmg;\n\nstring biome;\n\nstring sword;\n\n}player;\n\nstruct mobs{\n\nint mdmg;\n\nint resis;\n\n}creeper,zombie,husk;\n\n//insert into inventory//\n\nvoid insinv(string item, int len){\n\nfor(int i=0; i<len; i++){\n\nif(player.inv\\[i\\]==\"air\"){\n\nplayer.inv\\[i\\]=item;\n\nbreak;\n\n}\n\n}\n\n}\n\nvoid savload(int type){\n\nstring buffinv\\[invnum\\];\n\nifstream testread(\"mine-save.bin\");\n\nFILE \\* pFile;\n\nstring output;\n\nint sizestr=sizeof(struct plys);\n\nint sizeinv=sizeof(player.inv\\[invnum\\]);[//player.inv](//player.inv)\\[invnum\\].size();\n\nint sizearmor=sizeof(player.arms\\[4\\]);[//player.arms](//player.arms)\\[4\\].size();\n\nint sizsinv=player.inv\\[invnum\\].size();\n\nint sizsarm=player.arms\\[4\\].size();\n\nint leninv=player.inv\\[invnum\\].length();\n\nint lenarm=player.arms\\[4\\].length();\n\nint aligstr=alignof(struct plys);\n\nint aliginv=alignof(player.inv\\[invnum\\]);\n\nint aligarm=alignof(player.arms\\[4\\]);\n\nint sizsword=player.sword.size();\n\nint sizbiome=player.biome.size();\n\nint sizhp=sizeof(player.hp);\n\nif(type==1){\n\n//for(int i; i>invnum; i++)buffinv\\[i\\]=\"air\";\n\n//memcpy(buffinv,player.inv,invnum);\n\ncopy(begin(player.inv), end(player.inv), begin(buffinv));\n\npFile = fopen (\"mine-save.bin\", \"wb\");\n\nfwrite (buffinv , sizeof(string), buffinv\\[invnum\\].size(), pFile);\n\nfclose (pFile);\n\ncout<<\"invetory saved (hopefully, i don't know how to make an actual check)\"<<endl;\n\nreturn;\n\n}\n\nif(type==2){\n\nfor(int i; i>invnum; i++)buffinv\\[i\\]=\"air\";\n\ntestread.seekg (0, testread.beg);\n\nwhile (getline (testread,output)) {\n\nfor(int i; i>invnum;i++)\n\nbuffinv\\[i\\]=output;\n\n}\n\ntestread.close();\n\n//copy(begin(buffinv),end(buffinv),begin(player.inv));\n\nmemcpy(player.inv,buffinv,invnum);\n\ncout<<\"loaded (hopefully, i don't know how to make an actual check)\"<<endl;\n\nreturn;\n\n}\n\n}\n\n//game function//\n\nvoid game(){\n\nsrand ( time(NULL) );\n\n//player varibale//\n\nplayer.hp=20;\n\nplayer.exp=0;\n\nplayer.dmg=1;\n\n//mobs damages//\n\nint dmgt=0;\n\n//Creeper\n\ncreeper.mdmg=10;\n\n//Zombie\n\nzombie.mdmg=2;\n\n//Husk\n\nhusk.mdmg=3;\n\n//variables//\n\nint stptot;\n\nint act;\n\nint invsl;\n\nint crfsl;\n\nbool debug=true;\n\nchar y;\n\nchar action;\n\nchar actin;\n\nchar actcr;\n\n//armor types and protection values//\n\n//Leather\n\nint lhlpr=1; //helmet\n\nint lchpr=3; //chestplate\n\nint llgpr=2; //leggings\n\nint lbtpr=1; //boots\n\n//Iron\n\nint ihlpr=2; //helmet\n\nint ichpr=6; //chestplate\n\nint ilgpr=5; //leggings\n\nint ibtpr=4; //boots\n\nstring crftb\\[9\\]={\"slot0\",\"slot1\",\"slot2\",\"slot3\",\"slot4\",\"slot5\",\"slot6\",\"slot7\",\"slot8\"};\n\nstring objs\\[objsnum\\]={\"Tree\",\"Creeper\",\"Cow\",\"Water\",\"Zombie\",\"Lava\"};\n\n//string \\*pobjs =objs;\n\nstring biomes\\[biomesnum\\]={\"Plains\",\"Desert\",\"Forest\",\"Hills\",\"Ice-Peeks\",\"Dark-Forest\"};\n\nstring buffinv\\[invnum\\];\n\nstring buffarmor\\[4\\];\n\nstring loadinv\\[invnum\\];\n\n//cout<<\"tutorial: to play type a number of steps\\\\n every ten steps you may find something\"<<endl;\n\n//armor calculator//\n\nif(player.arms\\[0\\]==\"air\")player.armor=player.armor+0;\n\nif(player.arms\\[1\\]==\"air\")player.armor=player.armor+0;\n\nif(player.arms\\[2\\]==\"air\")player.armor=player.armor+0;\n\nif(player.arms\\[3\\]==\"air\")player.armor=player.armor+0;\n\n//leather//\n\nif(player.arms\\[0\\]==\"let\\_helmet\")player.armor=player.armor+lhlpr;\n\nif(player.arms\\[1\\]==\"let\\_leggings\")player.armor=player.armor+lchpr;\n\nif(player.arms\\[2\\]==\"let\\_chestplate\")player.armor=player.armor+llgpr;\n\nif(player.arms\\[3\\]==\"let\\_boots\")player.armor=player.armor+lbtpr;\n\nwhile(true){\n\nsrand ( time(NULL) );\n\nif(debug==true)cout << \"\\\\033\\[1;31mATTENTION\\\\033\\[0m\\\\ndebug menu enabled\\\\ntype 5 to access it\"<<endl;\n\ncout<<\"type:\\\\n\\[1\\] Walk\\\\n\\[2\\] Browse and manage the invetory\\\\n\\[3\\] Crafting table\\\\n\\[4\\]Save or load (only player invemtory for now)\"<<endl;\n\ncin>>act;\n\nswitch(act){\n\ncase 1:{\n\n//core gameplay loop//\n\nint RandDis = rand() % 10;\n\nint RandBiomes = rand() % biomesnum;\n\nint RandDrop = rand() % 5;\n\nif(player.sword.empty())player.sword=\"bare-fists\";\n\nif(player.biome.empty()){\n\nRandBiomes = rand() % biomesnum;\n\nplayer.biome=biomes\\[RandBiomes\\];\n\n}\n\ncout<<\"type 'w' to walk and you may find something\"<<endl;\n\ncout<<\"current biome: \"<<player.biome<<endl;\n\ncout<<\"your current sword: \"<<player.sword<<endl;\n\ncin>>action;\n\nif(action=='m')return;\n\nif(player.hp<=0){\n\ncout<<\"you died!\"<<endl;\n\nexit(EXIT\\_SUCCESS);\n\n}\n\nif(action=='w'){\n\nint RandStp = rand() % 10;\n\nRandStp = rand() % 10;\n\nstptot=RandStp+10;\n\nif(debug==true){\n\ncout<<\"steps: \"<<RandStp<<endl;\n\ncout<<\"steps to another biome (if is 20 or 19 you enter into a new biome): \"<<stptot<<endl;\n\ncout<<\"RandDis: \"<<RandDis<<endl;\n\n}\n\nif(stptot==19)stptot=stptot+1;\n\nif(stptot==20){\n\nRandBiomes = rand() % biomesnum;\n\nplayer.biome=biomes\\[RandBiomes\\];\n\ncout<<\"congratulation you enter into a new biome: \"<<player.biome<<endl;\n\n}\n\nif(RandStp==RandDis){\n\nint RandIndex = rand() % objsnum;\n\n//int RandIndexi = rand() % invnum;\n\nRandIndex = rand() % objsnum;\n\ncout << objs\\[RandIndex\\]<<endl;\n\nif(objs\\[RandIndex\\]==\"Tree\"){\n\ncout<<\"you found a tree!\"<<endl;\n\ncout<<\"do you want to harvest it and obtain a tree log?\"<<endl;\n\ncin>>y;\n\nif(y=='y')insinv(\"Log\",invnum);[//player.inv](//player.inv)\\[RandIndexi\\]=\"Log\";\n\n}\n\nif(objs\\[RandIndex\\]==\"Zombie\"){\n\nif(player.sword==\"bare-fists\"){\n\nplayer.hp=player.hp-zombie.mdmg;\n\ncout<<\"you punch the zombie in the face, but is not enough to stop it\"<<endl;\n\ncout<<\"The zombie hit you\"<<endl;\n\ncout<<\"now you have \"<<player.hp<<\" health points\"<<endl;\n\n}else cout<<\"your mighty \"<<player.sword<<\" kill the zombie\"<<endl;\n\n}\n\nif(objs\\[RandIndex\\]==\"Creeper\"){\n\n//cout<<\"you have ten seconds to type 'w' to escape the creeper explosion\"<<endl;\n\n//cout<<\"due to a stupid bug the creeper is temporany disabled\"<<endl;\n\nif(player.sword==\"bare-fists\"){\n\nplayer.hp=player.hp-creeper.mdmg;\n\ncout<<\"your fists are not enough powerfull to kill the creeper\"<<endl;\n\ncout<<\"The creeper explode in front of you\"<<endl;\n\ncout<<\"now you have \"<<player.hp<<\" health points\"<<endl;\n\n}else cout<<\"you kill the creeper\"<<endl;\n\n}\n\nif(objs\\[RandIndex\\]==\"Cow\"){\n\nRandDrop;\n\ncout<<\"do you want to kill the cow to obtain one leather pice?\\\\nand also you might obatain a raw beef piece?\"<<endl;\n\ncin>>y;\n\nif(RandDrop==5){\n\ncout<<\"you obtain a raw beef piece\"<<endl;\n\ninsinv(\"Raw-Beef\",invnum);\n\n}\n\nif(y=='y')insinv(\"Leather\",invnum);[//player.inv](//player.inv)\\[RandIndexi\\]=\"Leather\";\n\n}\n\nif(player.biome!=\"Desert\"){\n\nif(objs\\[RandIndex\\]==\"Water\"){\n\ncout<<\"you found a water pond\"<<endl;\n\n}\n\n}else cout<<\"there is no water here\"<<endl;\n\n}\n\n}\n\nbreak;\n\n}\n\ncase 2:{\n\nwhile(true){\n\n//player invemtory//\n\ncout<<\"Player health points: \"<<player.hp<<endl;\n\ncout<<\"PLayer damage points: \"<<player.dmg<<endl;\n\ncout<<\"Player inventory \"<<endl;\n\nfor (int i=0; i<invnum; i++)\n\ncout << player.inv\\[i\\]<<endl;\n\ncout<<\"Player armor points: \"<<player.armor<<endl;\n\ncout<<\"Player armor\"<<endl;\n\nfor (int i=0; i<4; i++)\n\ncout << player.arms\\[i\\]<<\",\";\n\n//cout<<player.arms\\[0\\]<<\",\"<<player.arms\\[1\\]<<\",\"<<player.arms\\[2\\]<<\",\"<<player.arms\\[3\\]<<\",\"<<player.arms\\[4\\]<<endl;\n\ncout<<\"inventory managment:\\\\n'e' allows you to eat and regain health\\\\ntype 'c' to exit\"<<endl;\n\ncin>>action;\n\nif(action=='e'){\n\ncin>>invsl;\n\nif(player.inv\\[invsl\\]==\"Raw-Beef\"){\n\nplayer.inv\\[invsl\\]=\"air\";\n\nif(player.hp<20){\n\nplayer.hp=player.hp+5;\n\ncout<<\"you eat the \"<<player.inv\\[invsl\\]<<\"pice and you regeberate 5 hp\"<<endl;\n\n}\n\nif(player.hp==20)cout<<\"no need to eat your health is full\"<<endl;\n\n}else cout<<\"you can not eat \"<< player.inv\\[invsl\\]<<endl;\n\n}\n\nif(action=='c')break;\n\n}\n\nbreak;\n\n}\n\ncase 3:{\n\ncout<<\"crafting table:\"<<endl;\n\ncout <<setw(3)<<crftb\\[0\\]<<\",\"<<setw(3)<<crftb\\[1\\]<<\",\"<<setw(3)<<crftb\\[2\\]<<endl;\n\ncout <<setw(3)<<crftb\\[3\\]<<\",\"<<setw(3)<<crftb\\[4\\]<<\",\"<<setw(3)<<crftb\\[5\\]<<endl;\n\ncout <<setw(3)<<crftb\\[6\\]<<\",\"<<setw(3)<<crftb\\[7\\]<<\",\"<<setw(3)<<crftb\\[8\\]<<endl;\n\ncout<<\"to insert items into the crafting table\\\\nyou need to type the 'i' followed by the inventory slot (remeber slot ranged from 0 to 8)\\\\n followed by the crafting table (that also range from 0 to 8) \"<<endl;\n\ncin>>actin>>invsl>>crfsl;\n\nif(actin=='i'){\n\ncrftb\\[crfsl\\]=player.inv\\[invsl\\];\n\nplayer.inv\\[invsl\\]=\"air\";\n\n}\n\nif(actin=='c')break;\n\ncout<<\"crafting table:\"<<endl;\n\n//for (int i = 9 - 1; i >= 0; i--)\n\ncout <<setw(3)<<crftb\\[0\\]<<\",\"<<setw(3)<<crftb\\[1\\]<<\",\"<<setw(3)<<crftb\\[2\\]<<endl;\n\ncout <<setw(3)<<crftb\\[3\\]<<\",\"<<setw(3)<<crftb\\[4\\]<<\",\"<<setw(3)<<crftb\\[5\\]<<endl;\n\ncout <<setw(3)<<crftb\\[6\\]<<\",\"<<setw(3)<<crftb\\[7\\]<<\",\"<<setw(3)<<crftb\\[8\\]<<endl;\n\nfor(int i=0; i<9; i++){\n\nif(crftb\\[i\\]==\"Log\"){\n\ninsinv(\"Planks\",invnum);\n\ncout<<\"crafted planks\"<<endl;\n\n}\n\nif((crftb\\[i\\]==\"Planks\")&&(crftb\\[i\\]==\"Planks\")&&(crftb\\[i\\]==\"Planks\")){\n\ninsinv(\"Wooden-sword\",invnum); //temporaney i want a shaped crafting for sword\n\nplayer.sword==\"Wooden-sword\";\n\n}\n\n}\n\nbreak;\n\n}\n\ncase 4:{\n\ncout<<\"type 's' to save or 'l' to load\\\\n ATTENTION this feature is under developmnet, for now only the inventory will get saved\"<<endl;\n\ncin>>action;\n\nif(action=='s')savload(1);\n\nif(action=='l')savload(2);\n\n}\n\ncase 5:{\n\nifstream testread(\"mine-save.bin\");\n\nFILE \\* pFile;\n\nstring output;\n\nint z;\n\nint sizestr=sizeof(struct plys);\n\nint sizeinv=sizeof(player.inv\\[invnum\\]);[//player.inv](//player.inv)\\[invnum\\].size();\n\nint sizearmor=sizeof(player.arms\\[4\\]);[//player.arms](//player.arms)\\[4\\].size();\n\nint sizsinv=player.inv\\[invnum\\].size();\n\nint sizsarm=player.arms\\[4\\].size();\n\nint leninv=player.inv\\[invnum\\].length();\n\nint lenarm=player.arms\\[4\\].length();\n\nint aligstr=alignof(struct plys);\n\nint aliginv=alignof(player.inv\\[invnum\\]);\n\nint aligarm=alignof(player.arms\\[4\\]);\n\nint sizsword=player.sword.size();\n\nint sizbiome=player.biome.size();\n\nint sizhp=sizeof(player.hp);\n\nfor(int i=0;i>4;i++)buffarmor\\[i\\]=\"air\";\n\nif(debug==true){\n\ncout<<\"debug menu:\\\\n\\[1\\]remove ten health points\\\\n\\[2\\]size of the struct and arrays in it with their alignment\\\\n\\[3\\]give you a bunch of stuff\\\\n\\[4\\]clear your inventory\\\\n\\[5\\]save inventory (and extra junk) to a binary file\\\\n\\[6\\]dump the save file into the console\\\\n\\[7\\]memcpy save test\"<<endl;\n\ncout<<\"Please don't use \\[5\\] or \\[7\\] options\"<<endl;\n\ncin>>z;\n\nif(z==3){\n\ninsinv(\"Planks\",invnum);\n\ninsinv(\"Planks\",invnum);\n\ninsinv(\"Planks\",invnum);\n\ninsinv(\"Raw-Beef\",invnum);\n\ninsinv(\"Log\",invnum);\n\n}\n\nif(z==1)player.hp=player.hp-10;\n\nif(z==2){\n\ncout<<\"size of player struct: \"<<sizestr<<endl;\n\ncout<<\"size of player inventory: \"<<sizeinv<<endl;\n\ncout<<\"size of player armor: \"<<sizearmor<<endl;\n\ncout<<\"size (.size()) of inventory: \"<<sizsinv<<endl;\n\ncout<<\"size (.length()) of inventory: \"<<leninv<<endl;\n\ncout<<\"size (.size()) of armor: \"<<sizsarm<<endl;\n\ncout<<\"size (.length()) of armor: \"<<lenarm<<endl;\n\ncout<<\"alignamanet of player struct: \"<<aligstr<<endl;\n\ncout<<\"alignamanet of inventory: \"<<aliginv<<endl;\n\ncout<<\"alignment of armor: \"<<aligarm<<endl;\n\n//remainder//\n\n//the alignment is a divisor of it size\n\n}\n\nif(z==4){\n\nfor(int i=0; i<invnum; i++)\n\nplayer.inv\\[i\\]=\"air\";\n\n}\n\nif(z==5){\n\n//Save to binary using copy//\n\n//FILE \\* pFile;\n\n//char buffer\\[\\] = { 't' , 'e' , 's' , 't' };\n\ncopy(begin(player.inv), end(player.inv), begin(buffinv));\n\n//copy(begin(player.arms), end(player.arms), begin(buffarmor));\n\npFile = fopen (\"mine-save-c.bin\", \"wb\");\n\nfwrite (buffinv , sizeof(string), sizeof(buffinv), pFile);\n\n//fwrite (buffarmor , sizeof(string), sizeof(buffarmor), pFile);\n\nfclose (pFile);\n\n}\n\nif(z==6){\n\n//print save file in the terminal//\n\nstring out;\n\nwhile (getline (testread,out)) {\n\ncout << out;\n\n}\n\ntestread.close();\n\n}\n\nif(z==7){\n\n//Save to binary using memcpy//\n\nmemcpy(buffinv,player.inv,sizeinv);\n\nmemcpy(buffarmor,player.arms,sizearmor);\n\npFile = fopen (\"mine-save.bin\", \"wb\");\n\nfwrite (buffinv , sizeof(string), sizeof(buffinv), pFile);\n\n//fwrite (buffarmor , sizeof(string), sizeof(buffarmor), pFile);\n\nfclose (pFile);\n\n}\n\nif(z==8){\n\n;\n\n}\n\n}else cout<<\"enable debug to acess it\"<<endl;\n\nbreak;\n\n}\n\n}\n\n}\n\n}\n\nint main(){\n\nint sel;\n\ncout<<\"Welcome to Mattia's Software minetext\"<<endl;\n\nwhile(true){\n\ncout<<\"--Minetext--\\\\n\\[1\\] Singleplayer\\\\n\\[2\\] Credits\\\\n\\[3\\] Comands list\"<<endl;\n\ncin>>sel;\n\nswitch(sel){\n\ncase 1:\n\n{\n\ngame();\n\nbreak;\n\n}\n\ncase 2:\n\n{\n\ncout<<\"Author: Mattia's Software\\\\n Based upon Minecraft\"<<endl;\n\ncout<<\"Thanks to Loxo, that help me with some stuffs\"<<endl;\n\nbreak;\n\n}\n\ncase 3:\n\n{\n\ncout<<\"List of useful comands:\\\\n'w': allows you to walk a random number of steps\\\\n'm':allows you to return to the main menu\\\\n'e':allows you to eat and regain health\\\\n to use it you need to type 'e' and then the inventory slot were the food is contained\\\\n you can type those comands when you choose the walk option during the game\"<<endl;\n\nbreak;\n\n}\n\n}\n\n}\n\n}\n\nPlease ignore the case 5 inside the switch(act) in void game().\n\nI tried to implement a save and load system inside the savload(int type) function, i was tryng to write the player inventory (player.inv\\[invnum\\]) that is inside of a struct called plys into a binary file called mine-save.bin . I tried to directly save data from player.inv array, but it did not worked, so i tried to copy player.inv into an array called buffinv, first with copy and then with memcpy, but that did not work either.\n\nnote that writing the player.arms array in to the save file will fill it up with junk data.\n\n\nAnd also I want to point out that I am a hobbyist, i program for fun, and as a challenge I tried to do Minecraft as a text based game", "comment": "Your posts seem to contain unformatted code. Please make sure to format your code otherwise your post may be removed.\n\nRead [our guidelines](https://www.reddit.com/r/cpp_questions/comments/48d4pc/important_read_before_posting/) for how to format your code.\n\n\n*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/cpp_questions) if you have any questions or concerns.*", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo41zb", "question": "Especially on Reddit, India and Egypt (and sometimes Morocco) tend to be cited more often than other countries as being dangerous for women to travel in, even more so alone. However, a lot of people still express interest in then, despite the dangers, because of their history and culture. How would you personally feel if someone close to you was interested in traveling there?", "comment": "I\u2019m an adult woman. I can make my own decisions and go where I want. We don\u2019t need to be chaperoned and we\u2019re not stupid.", "upvote_ratio": 470.0, "sub": "AskAnAmerican"} +{"thread_id": "uo41zb", "question": "Especially on Reddit, India and Egypt (and sometimes Morocco) tend to be cited more often than other countries as being dangerous for women to travel in, even more so alone. However, a lot of people still express interest in then, despite the dangers, because of their history and culture. How would you personally feel if someone close to you was interested in traveling there?", "comment": "I'd tell them to be careful. I would also say the same thing to a guy going abroad.", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "uo41zb", "question": "Especially on Reddit, India and Egypt (and sometimes Morocco) tend to be cited more often than other countries as being dangerous for women to travel in, even more so alone. However, a lot of people still express interest in then, despite the dangers, because of their history and culture. How would you personally feel if someone close to you was interested in traveling there?", "comment": "If any of my friends plans a trip like that, I\u2019d trust her to be smart enough to do her own research. She\u2019s an adult, she knows the risks. I\u2019m not her dad.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uo428d", "question": "I recently read Shelby Foote\u2019s Narrative of the Civil War. Something that stuck out to me was how even after the war, the southern leaders insisted that the South and North were separate nations bound together in the same country, like England and Scotland are separate nations in the UK. How prevalent is this thought today? Are we one nation, or multiple?", "comment": "One nation.\n\nThe similarities outweigh the differences by *far*.", "upvote_ratio": 1470.0, "sub": "AskAnAmerican"} +{"thread_id": "uo428d", "question": "I recently read Shelby Foote\u2019s Narrative of the Civil War. Something that stuck out to me was how even after the war, the southern leaders insisted that the South and North were separate nations bound together in the same country, like England and Scotland are separate nations in the UK. How prevalent is this thought today? Are we one nation, or multiple?", "comment": "Unless you're counting nations like the [Navajo Nation](https://www.navajo-nsn.gov/), no.\n\nWe were never multiple countries assembled into Voltron States of America.\n\nA group of seditionist traitors does not make us 2 nations.", "upvote_ratio": 920.0, "sub": "AskAnAmerican"} +{"thread_id": "uo428d", "question": "I recently read Shelby Foote\u2019s Narrative of the Civil War. Something that stuck out to me was how even after the war, the southern leaders insisted that the South and North were separate nations bound together in the same country, like England and Scotland are separate nations in the UK. How prevalent is this thought today? Are we one nation, or multiple?", "comment": "This is just a matter of semantics. Traditionally a \u201cnation\u201d was more or less synonymous with ethnicity, and a country was a legal authority that controlled a particular territory.\n\nSo, countries like Austria-Hungary were usually considered \u201cmulti-national states\u201d as they contained various distinct peoples.\n\nToday, nation and country have become synonymous in common parlance. So, in that sense the US is one nation. In the older sense, America is as far from being \u201cone nation\u201d as any country in human history lol.", "upvote_ratio": 770.0, "sub": "AskAnAmerican"} +{"thread_id": "uo44ud", "question": "I have an SM-T290 Samsung tablet, and I want to know if I can make it think it's a phone without flashing a new OS. If this is possible, please tell me.", "comment": "What exactly are you trying to accomplish?", "upvote_ratio": 80.0, "sub": "AndroidQuestions"} +{"thread_id": "uo4apa", "question": "Hello r/AskHistorians,\n\nI recently finished reading David Graeber and David Wengrow's Dawn of Everything. In the book, they make an interesting claim: that the European Enlightenment was, in many ways, started by Native American philosophers criticizing European customs. They bring up the example of Kondiaronk, a Native Chief, who conducted a series of interviews in which he laid out his view on white customs and society. This apparently was widely read in Europe and inspired people like Rousseau. He also brings up several passages written by European missionaries, in which Natives bring up points that seem eerily reminiscent of later Enlightenment thinkers. This is an interesting take on the Enlightenment. How much weight does it hold? Also, could you recommend any further reading on this subject?", "comment": "I have been looking for more resources on Kandiaronk ever since I read it as well and what I've been left to grapple with are the critical reviews of Graber and Wengrow's second chapter, so that is what I'll share here. Said critiques rely heavily on assuming that Lahontan, the author of *The Dialogues*, the work that entails the conversations between Lahontan and Kandiaronk in which Kandiaronk lays out his criticism of European society, was the creator of the critiques of European society that Graeber and Wengrow ascribe to Kandiaronk. David Bell, an American historian who wrote [this](https://www.persuasion.community/p/a-flawed-history-of-humanity?s=r) critique of the chapter, claims that Lahontan used Kandiaronk as a literary device to carry his own critiques of European society, as many written philosophical works in Europe at the time were written as fictional stories and used a literary tradition Anthony Pagden calls the \u201csavage critic.\u201d Although there are cases of this type of writing being used, it is wildly ahistorical for Bell to assume Lahontan was engaging in this kind of writing. Why would Lahontan, a French soldier with no notoriety as an intellectual in Europe prior to the release of his *The Dialogues*, intentionally frame his own criticisms of Europe as that of a Native American? Even Bell acknowledges that in Lahontan's work, the fictional character Adairo, who frequently repels Lahontan's articulations of the superiority of Christianity and Europe, was most likely Kandiorank. There is no evidence that supports the idea that Lahontan created a dialogue between him and someone who by even critiques accounts was loosely based on Kandiorank as his own besides thinking since other authors did, we can assume Lahontan did as well. The evidence for Adairo representing Kandiaronk is building, but not concrete either - take the work 'Native American Speakers of the Eastern Woodlands', by Barbara Alice Mann, which Bell even uses himself and attempts to dispute using the following logic- *Mann argued that the \u201cflat dismissal\u201d of the Dialogues as an authentic transcript of a Native American voice reflected racism and a \u201cwestern sneer.\u201d She argues that in fact a \u201cbeguiled Lahontan\u201d took elaborate notes as he conversed with Kandiaronk, and then later put them together into the Dialogues. But what is Mann\u2019s principal evidence? In her book, she triumphantly quotes Lahontan himself: \u201cWhen I was in the village of this \\[Native\\] American, I took on the agreeable task of carefully noting all his arguments. No sooner had I returned from my trip to the Canadian lakes than I showed my manuscript to Count Frontenac, who was so pleased to read it that he made the effort to help me put these Dialogues into their present state.\u201d The case seems irrefutable, except for one important point: These words come from the preface to the Dialogues themselves.*\n\nSo, Bell's critique of Mann's framing of *The Dialogues* relies upon the same guesswork he criticizes Graber and Wengrow of committing. The evidence suggests *The Dialogues* are a verbatim account of the debates between Kandiaronk and Lahontan. To act as if a colonial soldier looking to spread Christianity would come up with these critiques himself, after meeting with Kandiaronk, who we know was an incredible orator and brilliant statesman, (for more on him look [here](https://www.wyandot.org/intro.htm)) is a line of thought consistent with the Western chauvinism Graeber and Wengrow looked to dispel and it's emergence can be attributed to a reflex reaction from historians who have based their work off a certain story of European enlightenment. What The Dawn of Everything shows us is that the origin of enlightenment ideals are more murky than previously thought, and that we should continue to question the seemingly concrete ways we tell the story of our civilization and how it is set up.", "upvote_ratio": 2830.0, "sub": "AskHistorians"} +{"thread_id": "uo4apa", "question": "Hello r/AskHistorians,\n\nI recently finished reading David Graeber and David Wengrow's Dawn of Everything. In the book, they make an interesting claim: that the European Enlightenment was, in many ways, started by Native American philosophers criticizing European customs. They bring up the example of Kondiaronk, a Native Chief, who conducted a series of interviews in which he laid out his view on white customs and society. This apparently was widely read in Europe and inspired people like Rousseau. He also brings up several passages written by European missionaries, in which Natives bring up points that seem eerily reminiscent of later Enlightenment thinkers. This is an interesting take on the Enlightenment. How much weight does it hold? Also, could you recommend any further reading on this subject?", "comment": "[removed]", "upvote_ratio": 670.0, "sub": "AskHistorians"} +{"thread_id": "uo4apa", "question": "Hello r/AskHistorians,\n\nI recently finished reading David Graeber and David Wengrow's Dawn of Everything. In the book, they make an interesting claim: that the European Enlightenment was, in many ways, started by Native American philosophers criticizing European customs. They bring up the example of Kondiaronk, a Native Chief, who conducted a series of interviews in which he laid out his view on white customs and society. This apparently was widely read in Europe and inspired people like Rousseau. He also brings up several passages written by European missionaries, in which Natives bring up points that seem eerily reminiscent of later Enlightenment thinkers. This is an interesting take on the Enlightenment. How much weight does it hold? Also, could you recommend any further reading on this subject?", "comment": "[removed]", "upvote_ratio": 520.0, "sub": "AskHistorians"} +{"thread_id": "uo4ff5", "question": "I've been in restaurants since I could work and I'm looking to get into a help desk role. I've messed with home lab stuff on and off, but nothing to really add to my resume (basic active directory, setting up servers and VMs). \n\n&#x200B;\n\nI just feel stuck on my resume and feel like I've looked at it so much it doesn't even look right anymore. can anyone point me in the correct direction?\n\n&#x200B;\n\n[My Resume](https://ibb.co/zxknFXT)\n\nEdit: I realized I uploaded the wrong resume. I\u2019m at work and can\u2019t change it", "comment": "I also came from a restaurant industry and transitioned into IT. Your resume has a lot of restaurant bullet points -- which is irrelevant to IT. Recruiter's are not gonna read most of it. Change the first two bullets to something about customer service. That's a big overlapping skill. (for example: dealing with an irate customer and how you learned to deal with the situation).\n\nAlso, add more IT achievements. Feel free to add a new section \"current projects\" or something and talk about what you're currently doing to learn / practice IT. For example, a homelab or practicing on a VM. Mention *any* relative IT experience. Any school projects you did.\n\nIn the beginning, *any* experience holds a lot of weight.", "upvote_ratio": 110.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo4ff5", "question": "I've been in restaurants since I could work and I'm looking to get into a help desk role. I've messed with home lab stuff on and off, but nothing to really add to my resume (basic active directory, setting up servers and VMs). \n\n&#x200B;\n\nI just feel stuck on my resume and feel like I've looked at it so much it doesn't even look right anymore. can anyone point me in the correct direction?\n\n&#x200B;\n\n[My Resume](https://ibb.co/zxknFXT)\n\nEdit: I realized I uploaded the wrong resume. I\u2019m at work and can\u2019t change it", "comment": "Get a free AWS or Azure cloud account - spend some time there.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo4ff5", "question": "I've been in restaurants since I could work and I'm looking to get into a help desk role. I've messed with home lab stuff on and off, but nothing to really add to my resume (basic active directory, setting up servers and VMs). \n\n&#x200B;\n\nI just feel stuck on my resume and feel like I've looked at it so much it doesn't even look right anymore. can anyone point me in the correct direction?\n\n&#x200B;\n\n[My Resume](https://ibb.co/zxknFXT)\n\nEdit: I realized I uploaded the wrong resume. I\u2019m at work and can\u2019t change it", "comment": "Incoming list of puns: \n\nExperience managing servers \n\nFamiliarity with embedded Linux systems (POS)\n\nDebugging \n\nExperience operating bare metal (knives, utensils)\n\n\nIn all seriousness though, you\u2019ve got this :)", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo4sf1", "question": "I\u2019ll go first. \n\n\u201cOld people don\u2019t understand technology.\u201d Who do you think invented the technology? Plus, we\u2019ve been around this whole time, it\u2019s not like we time traveled from the past. *Some* old people may have trouble with *some* technology \u2014 but have you ever seen how nervous young people get about making an actual phone call?", "comment": "I'm tired of hearing how fucked they are, mostly because it's true, and I can't do anything about it. I want things to be better for them. I am so mad that they are paying impossible tuition rates to get degrees for shit jobs that don't pay well and then if they get sick, they might go bankrupt. \n\nI know a lot of young couples who look at having kids like a luxury item these days. \"Who can afford the daycare, formula, diapers, and losing time from work? it's a full time job on top of my already full time job. I am stressed out and don't need to come home to some screaming health risk that could lead to bankruptcy. I am depressed and anxious all the time. It's irresponsible to have kids. Besides, the population needs curbed anyway.\"\n\nI help where I can, but I can't help everyone.", "upvote_ratio": 1440.0, "sub": "AskOldPeople"} +{"thread_id": "uo4sf1", "question": "I\u2019ll go first. \n\n\u201cOld people don\u2019t understand technology.\u201d Who do you think invented the technology? Plus, we\u2019ve been around this whole time, it\u2019s not like we time traveled from the past. *Some* old people may have trouble with *some* technology \u2014 but have you ever seen how nervous young people get about making an actual phone call?", "comment": "When it comes to technology, fashion, trends, etc, a lot of people mistake a lack of interest for an inability to learn. \n\nI'm finding that retirement is the biggest hit to my interest level. I have no need to pay attention to the latest fashions if I'm not going to the office. I have no need to pay any attention to current music and celebrities so that I won't feel out of touch at the water cooler. \n\nAs far as technology is concerned, my needs are pretty simple. If anything, computing technology is far simpler than it used to be. I used to build PCs from parts, configure them in DOS, then load Windows and configure that, and finally load additional programs that my customers wanted. I wrote scripts and macros, and set up their programs as well. I taught myself DOS, C, HTML and PHP. Now what do people do? They download the app or program they want and usually the default settings are all they need. Nothing could be easier. If I'm not on Tik Tok, it's because I don't want to be!", "upvote_ratio": 1020.0, "sub": "AskOldPeople"} +{"thread_id": "uo4sf1", "question": "I\u2019ll go first. \n\n\u201cOld people don\u2019t understand technology.\u201d Who do you think invented the technology? Plus, we\u2019ve been around this whole time, it\u2019s not like we time traveled from the past. *Some* old people may have trouble with *some* technology \u2014 but have you ever seen how nervous young people get about making an actual phone call?", "comment": "\"Being a young person is SO much harder now than it used to be.\"\n\n&#x200B;\n\nyes, young people today have some challenges we didn't have. But we had many they don't. \n\n&#x200B;\n\nTeens to 20s has never been an easy time of life for anyone!", "upvote_ratio": 940.0, "sub": "AskOldPeople"} +{"thread_id": "uo4tss", "question": "Is it safe to download dev c++ from sourceforge? https://sourceforge.net/projects/orwelldevcpp/", "comment": "Safe? Sure. That's an outdated version of that IDE though. A company called Embarcadero has been maintaining it for the past couple of years. I think the last Orwell release was from 2015.\n\nOn Windows, I'd typically go for Visual Studio. There's a Community Edition that's free.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo4tss", "question": "Is it safe to download dev c++ from sourceforge? https://sourceforge.net/projects/orwelldevcpp/", "comment": "Just download [Visual Studio](https://visualstudio.microsoft.com/vs/community/) instead.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo504c", "question": "I\u2019m 36 I\u2019ve worked my whole life in retail in different positions pretty much done it all. \nI work for verizon now, I don\u2019t have much any formal education just high school. I\u2019m some what ok with using a PC at work and just got a MacBook personally. \nI make about 80k with commissions and all. Money is decent but there is no growth and the way retail store closures are going I\u2019m pretty sure mine is on the chopping block too, I have excellent people skills and I\u2019m a fast learner. Someone recommended get an A+ to under the core and then see what\u2019s in demand as a certification. \nWhat would you guys recommend? Tia", "comment": "The only challenge I see here is you have no formal technical training or work history, and you are making 80k a year which is easily a mid level career in IT. If you want to make a jump into IT, it is possible to do, but you will probably have to take a lower paying job and work your way up.\n\nAnother option you have, instead of looking at technical IT work, is to look at IT sales. It sounds like you are already doing that at your retail job and you may be able to slide into a role like that. You don't have to be overly technical to do that work, and you will have sales engineers you can lean on for heavy technical stuff.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo504c", "question": "I\u2019m 36 I\u2019ve worked my whole life in retail in different positions pretty much done it all. \nI work for verizon now, I don\u2019t have much any formal education just high school. I\u2019m some what ok with using a PC at work and just got a MacBook personally. \nI make about 80k with commissions and all. Money is decent but there is no growth and the way retail store closures are going I\u2019m pretty sure mine is on the chopping block too, I have excellent people skills and I\u2019m a fast learner. Someone recommended get an A+ to under the core and then see what\u2019s in demand as a certification. \nWhat would you guys recommend? Tia", "comment": "Have you considered asking about open positions in other parts of the company? As long as the pay is comparable, I should think you would do well at a help desk position or even higher.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo545e", "question": "I feel like the reason (correct me if I'm wrong) why healthcare is so expensive is because of the much higher quality of medical equipment and doctors in the US compared to the rest of the world. Being a doctor or surgeon in the US is one of the highest paying professions in the world, alongside access to many of the best medical procedures compared to other countries. \n\nAs such, will you be in favor of granting universal healthcare to all Americans, but in return reducing the quality of healthcare provided in public hospitals, and making premium healthcare in private clinics even more expensive than what it currently is?", "comment": "That's not the reason healthcare is so expensive. It's because its a for-profit system with middlemen like private health insurance running up the cost. Regulations on what these companies can charge are relatively poor when compared to countries with universal healthcare.", "upvote_ratio": 580.0, "sub": "AskAnAmerican"} +{"thread_id": "uo545e", "question": "I feel like the reason (correct me if I'm wrong) why healthcare is so expensive is because of the much higher quality of medical equipment and doctors in the US compared to the rest of the world. Being a doctor or surgeon in the US is one of the highest paying professions in the world, alongside access to many of the best medical procedures compared to other countries. \n\nAs such, will you be in favor of granting universal healthcare to all Americans, but in return reducing the quality of healthcare provided in public hospitals, and making premium healthcare in private clinics even more expensive than what it currently is?", "comment": "The quality of doctors and care in the US is not at all proportional to their cost and although we do have many excellent doctors, that is not the reason healthcare is so expensive here. Administrative bloat in the healthcare industry is a far bigger contributor. The lack of legal regulations and price caps is also a major factor. Prescription drugs are a great example of this. You can pay 3-4 times more for a drug in the US compared to getting *the same exact drug* elsewhere. Obviously there is no quality difference since it is the same exact drug. The price is high because pharma companies can charge a much as they want due the lack of legal regulations.\n\nEdit: spelling", "upvote_ratio": 190.0, "sub": "AskAnAmerican"} +{"thread_id": "uo545e", "question": "I feel like the reason (correct me if I'm wrong) why healthcare is so expensive is because of the much higher quality of medical equipment and doctors in the US compared to the rest of the world. Being a doctor or surgeon in the US is one of the highest paying professions in the world, alongside access to many of the best medical procedures compared to other countries. \n\nAs such, will you be in favor of granting universal healthcare to all Americans, but in return reducing the quality of healthcare provided in public hospitals, and making premium healthcare in private clinics even more expensive than what it currently is?", "comment": "I don't think this is an inherent tradeoff for universal healthcare", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "uo56or", "question": "I am writing a class that needs to be templated on two types which, in turn, must both be templated on the *same* type.\n\nThis isn't it:\n\n template<typename T, typename Lower<T>, typename Upper<T>>\n\nBut what is?", "comment": "\ttemplate<class A, class B>\n\tstruct Fluffy;\n\n\ttemplate<class T, template<class> class A, template<class> class B>\n\tstruct Fluffy<A<T>, B<T>> : std::true_type\n\t{\n\t};", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo57ee", "question": "Like would there be a case of a President assuming he or she would have enough support to invade another country? Between 2022 and 2028 it\u2019s likely the President will be either Biden or Trump (and potentially Harris). The most likely nations that were to be invaded in recent years have been Iran and Venezuela. Although there have also been strong words towards Cuba and North Korea (though really doubt it considering they have nukes).", "comment": "I've got $5 on Liechtenstein.\n\nThey know what they did.", "upvote_ratio": 480.0, "sub": "AskAnAmerican"} +{"thread_id": "uo57ee", "question": "Like would there be a case of a President assuming he or she would have enough support to invade another country? Between 2022 and 2028 it\u2019s likely the President will be either Biden or Trump (and potentially Harris). The most likely nations that were to be invaded in recent years have been Iran and Venezuela. Although there have also been strong words towards Cuba and North Korea (though really doubt it considering they have nukes).", "comment": "No.\n\nIt's a wildly unpopular idea on both sides of the political spectrum. At most you can expect stuff like we are doing with Ukraine.", "upvote_ratio": 290.0, "sub": "AskAnAmerican"} +{"thread_id": "uo57ee", "question": "Like would there be a case of a President assuming he or she would have enough support to invade another country? Between 2022 and 2028 it\u2019s likely the President will be either Biden or Trump (and potentially Harris). The most likely nations that were to be invaded in recent years have been Iran and Venezuela. Although there have also been strong words towards Cuba and North Korea (though really doubt it considering they have nukes).", "comment": "Not really. There\u2019s more to evaluating the potential of American military intervention than simply \u201cwe don\u2019t like them.\u201d", "upvote_ratio": 240.0, "sub": "AskAnAmerican"} +{"thread_id": "uo58lt", "question": "Hello I am an Australian who is currently backpacking around Europe who is considering hopping over to the USA for 3 to 4 weeks before I go down to South America. My main issue is that the USA is very expensive for backpackers with hostel dorms ranging from $50-100 AUD a night. I would love to explore parts of the east coast flying into New York City and either going up through New England or south and visit places like Charleston, Asheville and the smoky mountains.\n\nI was just wondering if anyone had any tips on how to save money on a trip like this, is hiring a car the best option or is there buses I can take through the country.\n\nPs I actually do have a good bit of money saved up I would just prefer to have some left when I return home.", "comment": "You may have better luck with hotels than hostels. How do you plan on getting around? Hitchhiking is illegal in most of the U.S... Bus services are limited or can take a bit of time outside big cities and the northeast. We have virtually no passenger rail service again outside the Northeast.", "upvote_ratio": 670.0, "sub": "AskAnAmerican"} +{"thread_id": "uo58lt", "question": "Hello I am an Australian who is currently backpacking around Europe who is considering hopping over to the USA for 3 to 4 weeks before I go down to South America. My main issue is that the USA is very expensive for backpackers with hostel dorms ranging from $50-100 AUD a night. I would love to explore parts of the east coast flying into New York City and either going up through New England or south and visit places like Charleston, Asheville and the smoky mountains.\n\nI was just wondering if anyone had any tips on how to save money on a trip like this, is hiring a car the best option or is there buses I can take through the country.\n\nPs I actually do have a good bit of money saved up I would just prefer to have some left when I return home.", "comment": "The big question is what is your budget? Hostels aren't really a thing in most places", "upvote_ratio": 580.0, "sub": "AskAnAmerican"} +{"thread_id": "uo58lt", "question": "Hello I am an Australian who is currently backpacking around Europe who is considering hopping over to the USA for 3 to 4 weeks before I go down to South America. My main issue is that the USA is very expensive for backpackers with hostel dorms ranging from $50-100 AUD a night. I would love to explore parts of the east coast flying into New York City and either going up through New England or south and visit places like Charleston, Asheville and the smoky mountains.\n\nI was just wondering if anyone had any tips on how to save money on a trip like this, is hiring a car the best option or is there buses I can take through the country.\n\nPs I actually do have a good bit of money saved up I would just prefer to have some left when I return home.", "comment": "If you're backpacking -- especially in the American sense of the word -- why not go camping? It's often very cheap and sometimes even free to camp in a national or state park.\n\n\nThere are buses and trains you can take but if you are interested in nature it's harder. The stops are mostly only in urban centers, away from where you'd be hiking.", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "uo5i4i", "question": "So I\u2019m in a situation where I love learning about IT and tech and like the work duties but I abhor doing any home lab or practice labs outside of work. I enjoy taking notes while learning the theory. Is this a red flag?\n\nI\u2019m currently in a networking gig and I\u2019m motivated more when I have a work problem to solve than to emulate one on my own or to even lab. Even with coding, I don\u2019t enjoy building projects on my own unless someone gives me a problem to solve along with specific requirements. I don\u2019t think this is a focus issue bc it has been ruled out for me.\n\nHow can I get motivated with simple labs and enjoy breaking things in IT and in coding? Should I pursue more research-oriented tech careers or am I good?", "comment": "Labbing should be done on work time, it is training for your job imo.", "upvote_ratio": 1920.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo5i4i", "question": "So I\u2019m in a situation where I love learning about IT and tech and like the work duties but I abhor doing any home lab or practice labs outside of work. I enjoy taking notes while learning the theory. Is this a red flag?\n\nI\u2019m currently in a networking gig and I\u2019m motivated more when I have a work problem to solve than to emulate one on my own or to even lab. Even with coding, I don\u2019t enjoy building projects on my own unless someone gives me a problem to solve along with specific requirements. I don\u2019t think this is a focus issue bc it has been ruled out for me.\n\nHow can I get motivated with simple labs and enjoy breaking things in IT and in coding? Should I pursue more research-oriented tech careers or am I good?", "comment": "If you're learning enough during work hours, why spend the time at home doing it, especially if you don't like it?", "upvote_ratio": 1440.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo5i4i", "question": "So I\u2019m in a situation where I love learning about IT and tech and like the work duties but I abhor doing any home lab or practice labs outside of work. I enjoy taking notes while learning the theory. Is this a red flag?\n\nI\u2019m currently in a networking gig and I\u2019m motivated more when I have a work problem to solve than to emulate one on my own or to even lab. Even with coding, I don\u2019t enjoy building projects on my own unless someone gives me a problem to solve along with specific requirements. I don\u2019t think this is a focus issue bc it has been ruled out for me.\n\nHow can I get motivated with simple labs and enjoy breaking things in IT and in coding? Should I pursue more research-oriented tech careers or am I good?", "comment": "Not at all, the whole schtick a couple years ago about \"tech bros need home labs or they're just after the money!!\" Was and is retarded.\n\nThere's something complimentary about people who self select into fields they're passionate about and homelab on the weekends because they think it's cool, but the inverse is not a red flag, for sure.\n\nDuring college I homelabbed like crazy, because I was hungry and poor and unsure if I'd ever be able to pay of my student loans. After getting a job and learning to do my job well, I stopped all that shit.\n\nI chill in my free time, if company wants something, they can pay me.\n\n\nNot a red flag, do you playboi, we all gonna die someday and I guarantee folks on they death bed ain't concerned about not home labbing for their work enough", "upvote_ratio": 760.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo5jja", "question": "What major events in your lifetime do you think should be in school textbooks but aren't?", "comment": "hard to answer because i have no idea whats been in school textbooks since the 90s", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "uo5jja", "question": "What major events in your lifetime do you think should be in school textbooks but aren't?", "comment": "I think there should be a whole semester on medical history. Start with the dark ages and move up to the amazing medical discoveries of the present. Cover vaccines, how they work, and what they accomplished.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "uo5jja", "question": "What major events in your lifetime do you think should be in school textbooks but aren't?", "comment": "Looks like we old timers pretty much have the same response so I'll share something that happened BEFORE my lifetime that should be in school textbooks..\n\nThere is a city in Arkansas known as Pine Bluff. For thousands of years prior to being settled the region was subject to flooding from what would become known as the Arkansas River. The river also shifted over time and the cumulative effect was the buildup of rich, fertile land for planting crops.\n\nBy pre-Civil War era Pine Bluff had become a boom town. Farmers bought huge numbers of slaves to work the miles of farms and river access meant goods went out and money came in fast. Then the Civil War happened. Soon to be freed slaves were running all over the south for their lives, where would you go? For many slaves in Arkansas, the answer was obvious. Pine Bluff already had the highest concentration of slaves so they began heading that way.\n\nThe Confederate army, however, eventually begun running raids on the city. The Battle of Pine Bluff occurred when armed slaves joined forces with an arriving detachment of Union Troops to fend off the Confederates and save the city.\n\nNEVER in my life, much less at school, did I ever hear about armed slaves joining up with Union forces to save a city. I grew up pre-internet, obviously, so thanks to lots of research I now know WHY this and no telling how many stories like it have been lost although in hindsight it isn't that great a leap to make. Yes, the North won the Civil War but after the slaves were \"freed\" they still lived in the south with a bunchy of extremely pissed off racists who owned every damn thing in sight. Their descendants used their combined influence to drive these communities into poverty and anguish, all the while blaming black people for every bad thing that happens to them. Women, children, old folks... fish in a barrel. Once you lock up the breadwinner in a poverty level household you own every person living there.\n\nI seem to remember my History book jumping straight from the Civil War to the Industrial Revolution as if a magic wand had been waved and all the bad times for black folks were basically over? Until we get to Dr. King of course, but by then the discussion about black communities seems to move to what was going on in big cities. To this day all my homies down south are just flapping in the breeze because ARKANSAS? Who cares about Arkansas, right?? :/", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uo5lcf", "question": "I have worked at a variety of large corporations and all the PMs are only useful for scheduling meetings, that's it. \n\nThey can't communicate properly, because they usually mess up important details, so us technical resources do all the communications because we always have to do damage control when the PM inevitably communicates something completely wrong.\n\nI have never had a PM or BA make any project documents (Project charter, plan, work breakdown structure, etc), every project I've been on the technical resources do all of that. \n\nI have never had a requirement given to me, as a technical resource I have always had to elicit those, and usually they are completely contradictory to the scope of the project. \n\nProject managers say they manage \"time, quality, and budget\", but the vast majority of projects are over budget and not on time. Quality is laughable, most PMs have no idea what tech they are working with. Would you let someone with no mechanical skills judge the quality of a transmission change? \n\nOverall, I see project managers going way the dodo, most of what they do can be EASILY automated. good riddance", "comment": "Ah, I used to believe similar, than I started working with better and better PM's.\n\nTheir job isn't to hold your hand or provide documents for you, it's to liason between business and engineering and the domain leads for the impacted platforms to coordinate timelines, budget, etc.\n\nGood PM's are rare, But they do exist, and that skillet, done correctly, is well worth the cost. I don't need another tech nerd to explain some obscure detail that doesn't move the needle.\n\nWhy are they so rare, probably because they can really suck at their job and noone will notice until a couple projects down the line. Same with product managers.", "upvote_ratio": 170.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo5lcf", "question": "I have worked at a variety of large corporations and all the PMs are only useful for scheduling meetings, that's it. \n\nThey can't communicate properly, because they usually mess up important details, so us technical resources do all the communications because we always have to do damage control when the PM inevitably communicates something completely wrong.\n\nI have never had a PM or BA make any project documents (Project charter, plan, work breakdown structure, etc), every project I've been on the technical resources do all of that. \n\nI have never had a requirement given to me, as a technical resource I have always had to elicit those, and usually they are completely contradictory to the scope of the project. \n\nProject managers say they manage \"time, quality, and budget\", but the vast majority of projects are over budget and not on time. Quality is laughable, most PMs have no idea what tech they are working with. Would you let someone with no mechanical skills judge the quality of a transmission change? \n\nOverall, I see project managers going way the dodo, most of what they do can be EASILY automated. good riddance", "comment": "* Conflict Resolution is HARD. Those that are good at this usually move into management rather quickly.\n* You have to know a lot about a lot. Being able to logically come up with a way to complete a project when it's having trouble isn't necessarily a straightforward thing, and understanding the business and how it interacts is a lot to know.\n* Most PM departments aren't setup correctly. If you're working at a company where you have a PM assigned to each project, projects start on the basis of someone just wanting a project started, and the only thing the PM does is scheduling - then your company is doing it wrong. Projects should be scored based on the same metrics - metrics derived from the goals of the company, Project Managers should be resolve conflicts between stakeholders, they should be helping plan out the individual tasks needed to complete the project, they should be managing stakeholder expectations, they should be resolving resource and time constraints when issues arise in the project - furthermore, the project management process should be governed by a Project Management Office - which should be completely separate from the Project Management team.\n\nI think you have a narrow outlook of what a Project Manager does and what their job is. The Project Manager isn't there to work FOR you. The Project Manager exists to work for the business, to make sure that the goals of the business are met for any given project. They are not technical experts, they are not meant to know how something should be implemented - that's your job. Their job is to facilitate whatever is needed for the implementation, to manage expectations of that implementation, and to make sure that implementation is happening that are within the bounds of the scope of the project.", "upvote_ratio": 100.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo5lcf", "question": "I have worked at a variety of large corporations and all the PMs are only useful for scheduling meetings, that's it. \n\nThey can't communicate properly, because they usually mess up important details, so us technical resources do all the communications because we always have to do damage control when the PM inevitably communicates something completely wrong.\n\nI have never had a PM or BA make any project documents (Project charter, plan, work breakdown structure, etc), every project I've been on the technical resources do all of that. \n\nI have never had a requirement given to me, as a technical resource I have always had to elicit those, and usually they are completely contradictory to the scope of the project. \n\nProject managers say they manage \"time, quality, and budget\", but the vast majority of projects are over budget and not on time. Quality is laughable, most PMs have no idea what tech they are working with. Would you let someone with no mechanical skills judge the quality of a transmission change? \n\nOverall, I see project managers going way the dodo, most of what they do can be EASILY automated. good riddance", "comment": "I've worked with a handful of good ones, but you're right: most of them are glorified admin assistants. I think the reason good ones are so hard to come by is that in order to be effective they really need to have at least a high-level understanding of the pieces in play and how they all fit together, and that's simply not always the case. I don't expect a project manager to have in-depth knowledge of the entire tech stack, but they need to know (or be willing/able to learn) enough to be able to participate in the project beyond simply scheduling meetings.", "upvote_ratio": 100.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo5r1m", "question": "Parents often teach their children second languages during their critical period, but does the same principle apply to musical instruments? Do we have so many extremely talented young musicians because of their developmental period, or do the parents just push their children to their limits?", "comment": "Language is a specialised function of the brain with dedicated areas. These have probably derived from evolutionary processes because language serves a selective function. In other words, we are predisposed to learn languages, especially during the first years of life.\n\nPlaying music is different, as we probably have not evolved to do that, albeit it builds on some basic evolved functions like rhythm, auditory discrimination and so on. It is much more of an acquired skill like learning to write or play chess.\n\nMost things in life are easier to learn when you're young as the brain is more plastic. I don't think there's anything special about playing music.", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "uo5r1m", "question": "Parents often teach their children second languages during their critical period, but does the same principle apply to musical instruments? Do we have so many extremely talented young musicians because of their developmental period, or do the parents just push their children to their limits?", "comment": "Music is practice. The more you practice, the more proficient you are. Thus, anyone can jam a violin\u2026with enough practice. \n\nSome people will have a knack, but those people still need to practice. The person who practices daily for a year, will be better than the person with a knack.", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "uo5snn", "question": "Just bought an S21 Ultra and right out of the box the phone wouldn't turn on/battery seemed dead. After plugging it in, the screen showed the circle as if it was charging, but showed no percentage amount.\n \nAfter about 20 minutes it finally showed 1%, but has been charging really slowly. Is this normal? Roughly 30 minutes after plugging it in to charge and it's at 2%.\n \nI know they don't ship with a charger block but at least assumed it would still be charged a little. :(", "comment": "20 minutes for 1%.\n\nI'd be getting that replaced. That's not right.", "upvote_ratio": 90.0, "sub": "AndroidQuestions"} +{"thread_id": "uo5snn", "question": "Just bought an S21 Ultra and right out of the box the phone wouldn't turn on/battery seemed dead. After plugging it in, the screen showed the circle as if it was charging, but showed no percentage amount.\n \nAfter about 20 minutes it finally showed 1%, but has been charging really slowly. Is this normal? Roughly 30 minutes after plugging it in to charge and it's at 2%.\n \nI know they don't ship with a charger block but at least assumed it would still be charged a little. :(", "comment": "Well there's usually some amount of charge in the battery, but how much of that original charge remains, sort of depends on how long that particular unit has been sitting in inventory. The longer its been sitting there, the more of the original charge will have slowly dissipated.", "upvote_ratio": 70.0, "sub": "AndroidQuestions"} +{"thread_id": "uo5snn", "question": "Just bought an S21 Ultra and right out of the box the phone wouldn't turn on/battery seemed dead. After plugging it in, the screen showed the circle as if it was charging, but showed no percentage amount.\n \nAfter about 20 minutes it finally showed 1%, but has been charging really slowly. Is this normal? Roughly 30 minutes after plugging it in to charge and it's at 2%.\n \nI know they don't ship with a charger block but at least assumed it would still be charged a little. :(", "comment": "Try a different cable and/or block.", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "uo5y00", "question": "I\u2019m tired and I need answers about this.\n\nSo I\u2019ve googled it and I haven\u2019t gotten a trusted, satisfactory answer. Is bar soap just a breeding ground for bacteria?\n\nMy tattoo artist recommended I use a bar soap for my tattoo aftercare and I\u2019ve been using it with no problem but every second person tells me how it\u2019s terrible because it\u2019s a breeding ground for bacteria. I usually suds up the soap and rinse it before use. I also don\u2019t use the bar soap directly on my tattoo.\n\nEdit: Hey, guys l, if I\u2019m not replying to your comment I probably can\u2019t see it. My reddit is being weird and not showing all the comments after I get a notification for them.", "comment": "In general, bar soap is inhospitable to most bacteria & viruses . Poorly made, extra ingredients (lotion/scents etc) and water-sogginess from age can all change the alkaline nature of the soap. But, for the most part, bar soaps are pretty dang good. \nPersonally, I prefer bar soap over liquid, but both are alkaline enough to kill organisms and clean well. \n\n(Been a chemist in soap & cleaning industry)", "upvote_ratio": 82600.0, "sub": "AskScience"} +{"thread_id": "uo5y00", "question": "I\u2019m tired and I need answers about this.\n\nSo I\u2019ve googled it and I haven\u2019t gotten a trusted, satisfactory answer. Is bar soap just a breeding ground for bacteria?\n\nMy tattoo artist recommended I use a bar soap for my tattoo aftercare and I\u2019ve been using it with no problem but every second person tells me how it\u2019s terrible because it\u2019s a breeding ground for bacteria. I usually suds up the soap and rinse it before use. I also don\u2019t use the bar soap directly on my tattoo.\n\nEdit: Hey, guys l, if I\u2019m not replying to your comment I probably can\u2019t see it. My reddit is being weird and not showing all the comments after I get a notification for them.", "comment": "There is a lot of hype around this. My understanding is that bar soap acts as a surfactant, removing the oils and dirt that hold bacteria in suspension. Properly washing and rinsing should remove the majority of the bacteria, whether it comes from the soap or the surface. Rinsing bar soap and storing it in a clean location seems like a good idea.\n\nHere's a page with a lot of articles on the subject that seem a little more credible than the hype-y articles written by liquid soap companies: https://pubmed.ncbi.nlm.nih.gov/3402545/", "upvote_ratio": 7970.0, "sub": "AskScience"} +{"thread_id": "uo5y00", "question": "I\u2019m tired and I need answers about this.\n\nSo I\u2019ve googled it and I haven\u2019t gotten a trusted, satisfactory answer. Is bar soap just a breeding ground for bacteria?\n\nMy tattoo artist recommended I use a bar soap for my tattoo aftercare and I\u2019ve been using it with no problem but every second person tells me how it\u2019s terrible because it\u2019s a breeding ground for bacteria. I usually suds up the soap and rinse it before use. I also don\u2019t use the bar soap directly on my tattoo.\n\nEdit: Hey, guys l, if I\u2019m not replying to your comment I probably can\u2019t see it. My reddit is being weird and not showing all the comments after I get a notification for them.", "comment": "[removed]", "upvote_ratio": 3630.0, "sub": "AskScience"} +{"thread_id": "uo5znp", "question": "Me and my mates have been thinking of doing route 66 for a while now and I think we're gonna pull the trigger next summer. Any good ideas or recommendations on what we should do? Don't mind going a bit of course if it means we have a good time.\n\nAlso, should we rent a big car for the journey? Can we pick up a car in Chigaco and drop it of in L.A?", "comment": "Make sure you do your research. Route 66 was decommissioned in 1985. It is no longer considered a US highway and does not appear on modern maps. Large portions of the road simply do not exist anymore. There are maps you can get that outline how to follow the route as close as possible. Some are paved and some are dirt roads.", "upvote_ratio": 430.0, "sub": "AskAnAmerican"} +{"thread_id": "uo5znp", "question": "Me and my mates have been thinking of doing route 66 for a while now and I think we're gonna pull the trigger next summer. Any good ideas or recommendations on what we should do? Don't mind going a bit of course if it means we have a good time.\n\nAlso, should we rent a big car for the journey? Can we pick up a car in Chigaco and drop it of in L.A?", "comment": "Generally you should stay on Route 66.\n\nJust sayin\u2019.\n\nSeriously though. In New Mexico, El Morro and El Malpais are just off the route. Santa Fe is a great side trip. Chaco and Bandelier are amazing. \n\nFlagstaff and Sedona are there. Grand Canton isn\u2019t too far off it.\n\nSedona if you go south off the road.\n\nPetrified Forest is awesome and right there.\n\nDeath Valley is there. If you can make it happen and it\u2019s definitely off the beaten path the Eureka Dunes. But you better have four wheel drive and plenty of water and probably spare gas.", "upvote_ratio": 210.0, "sub": "AskAnAmerican"} +{"thread_id": "uo5znp", "question": "Me and my mates have been thinking of doing route 66 for a while now and I think we're gonna pull the trigger next summer. Any good ideas or recommendations on what we should do? Don't mind going a bit of course if it means we have a good time.\n\nAlso, should we rent a big car for the journey? Can we pick up a car in Chigaco and drop it of in L.A?", "comment": "Having done this:\n\n* Our route was Chicago-Sioux Falls-Mt Rushmore-Denver-Salt Lake City-Las Vegas-Las Angeles. Old 66 sent you through a *lot* of the Great Plains (cause it's easier to build highways there) instead of through the more rugged parts of the country, but the rugged parts are much more interesting than corn forever. Our attitude was basically \"what's left of Route 66 is the road trip as an experience, not the route itself.\"\n* The only part of \"Route 66\" that has the vibes you probably think of when you think \"Route 66\" is in Arizona, where it parallels I-40 between Kingman and Seligman.\n* On the other hand, I-90 across South Dakota has very much the hokey vibes you'd expect from Route 66: there's a weird tourist trap every 15 minutes. Highly recommend Wall Drug, Original 1880 Pioneer Town (nothing original about it), Porter Sculpture Park, and the Corn Palace. Plus Mt Rushmore, of course.\n* I highly recommend crossing the Rockies in Colorado. It's gorgeous.", "upvote_ratio": 150.0, "sub": "AskAnAmerican"} +{"thread_id": "uo667e", "question": "Edit: Something having to do with installing clang-format in vs code messed up my copy paste and turned `=` into `==` in a couple places so I just re-edited them back correctly. Original post:\n\nOk, still trying to make my `iterator` for my `red black tree` which is roughly a `map`. I feel I know how to assign `begin()` but not `end()` so much, so I decided to do as I often do which is observe behaviours and try to imitate them so I make a simple piece of code to do that with `std::map`. \n\nNow, I don't know if I am doing something wrong or not but my results are tripping me out here. I am unable to cause any `segfault`s by supposedly going out of range. Is this an `associative container` thing I am supposed to be aware of? Am I doing something wrong or is this behaviour really desirable?\n\nThis is the output of my code:\n\n Entered the following code:\n std::map<int, char> tree;\n tree[0] = 'a';\n tree[10] = 'b';\n tree[5] = 'c';\n auto itEnd = tree.end();\n auto itBegin = tree.begin();\n --itBegin;\n\n Derenferencing after using the pre-decrement operator on an iterator set to begin()\n and just creating another iterator set to end():\n\n itBegin->first = 3, itBegin->second =\n itEnd->first = 3, itEnd->second = \n\n Derenferencing after taking those same iterators and , pre-decrementing again the one\n initially set to begin() and pre-incrementing the one set to end():\n\n itBegin->first = 10, itBegin->second = b\n itEnd->first = 10, itEnd->second = b\n\nThis is my code:\n\n #include <iostream>\n #include <map>\n\n int main() {\n std::map<int, char> tree;\n tree[0] = 'a';\n tree[10] = 'b';\n tree[5] = 'c';\n auto itEnd = tree.end();\n auto itBegin = tree.begin();\n --itBegin;\n\n std::cout << \"\\nEntered the following code:\"\n << \"\\nstd::map<int, char> tree;\\ntree[0] = 'a';\"\n << \"\\ntree[10] = 'b';\\ntree[5] = 'c';\"\n << \"\\nauto itEnd = tree.end();\"\n << \"\\nauto itBegin = tree.begin();\\n--itBegin;\" << std::endl;\n std::cout << \"\\nDerenferencing after using the pre-decrement operator on an \"\n \"iterator set to \"\n \"begin()\\n and just creating another iterator set to end():\\n\"\n << std::endl;\n std::cout << \"itBegin->first = \" << itBegin->first\n << \", itBegin->second = \" << itBegin->second << std::endl;\n std::cout << \"itEnd->first = \" << itEnd->first\n << \", itEnd->second = \" << itEnd->second << std::endl;\n\n --itBegin;\n ++itEnd;\n std::cout\n << \"\\nDerenferencing after taking those same iterators and , \"\n \"pre-decrementing again \"\n \"the one\\n initially set to begin() and pre-incrementing the one \"\n \"set to end():\\n\"\n << std::endl;\n std::cout << \"itBegin->first = \" << (*itBegin).first\n << \", itBegin->second =\" << itBegin->second << std::endl;\n std::cout << \"itEnd->first = \" << itEnd->first\n << \", itEnd->second = \" << itEnd->second << std::endl;\n puts(\"\");\n return 0;\n }", "comment": "I am fairly sure that\n\n auto itBegin = tree.begin();\n --itBegin;\n\nis undefined behaviour as you are moving an iterator out of the valid range. The libstdc++ debug mode says its illegal: https://godbolt.org/z/8E33EKzs4 . Certainly dereferencing `itBegin` after moving it out of range is UB.\n\nSimilarly, incrementing `itEnd` and dereferencing an end iterator are UB as well.\n\nBy the nature of UB, *anything* can happen. By definition you cannot reason about it or have any expectations.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "uo667e", "question": "Edit: Something having to do with installing clang-format in vs code messed up my copy paste and turned `=` into `==` in a couple places so I just re-edited them back correctly. Original post:\n\nOk, still trying to make my `iterator` for my `red black tree` which is roughly a `map`. I feel I know how to assign `begin()` but not `end()` so much, so I decided to do as I often do which is observe behaviours and try to imitate them so I make a simple piece of code to do that with `std::map`. \n\nNow, I don't know if I am doing something wrong or not but my results are tripping me out here. I am unable to cause any `segfault`s by supposedly going out of range. Is this an `associative container` thing I am supposed to be aware of? Am I doing something wrong or is this behaviour really desirable?\n\nThis is the output of my code:\n\n Entered the following code:\n std::map<int, char> tree;\n tree[0] = 'a';\n tree[10] = 'b';\n tree[5] = 'c';\n auto itEnd = tree.end();\n auto itBegin = tree.begin();\n --itBegin;\n\n Derenferencing after using the pre-decrement operator on an iterator set to begin()\n and just creating another iterator set to end():\n\n itBegin->first = 3, itBegin->second =\n itEnd->first = 3, itEnd->second = \n\n Derenferencing after taking those same iterators and , pre-decrementing again the one\n initially set to begin() and pre-incrementing the one set to end():\n\n itBegin->first = 10, itBegin->second = b\n itEnd->first = 10, itEnd->second = b\n\nThis is my code:\n\n #include <iostream>\n #include <map>\n\n int main() {\n std::map<int, char> tree;\n tree[0] = 'a';\n tree[10] = 'b';\n tree[5] = 'c';\n auto itEnd = tree.end();\n auto itBegin = tree.begin();\n --itBegin;\n\n std::cout << \"\\nEntered the following code:\"\n << \"\\nstd::map<int, char> tree;\\ntree[0] = 'a';\"\n << \"\\ntree[10] = 'b';\\ntree[5] = 'c';\"\n << \"\\nauto itEnd = tree.end();\"\n << \"\\nauto itBegin = tree.begin();\\n--itBegin;\" << std::endl;\n std::cout << \"\\nDerenferencing after using the pre-decrement operator on an \"\n \"iterator set to \"\n \"begin()\\n and just creating another iterator set to end():\\n\"\n << std::endl;\n std::cout << \"itBegin->first = \" << itBegin->first\n << \", itBegin->second = \" << itBegin->second << std::endl;\n std::cout << \"itEnd->first = \" << itEnd->first\n << \", itEnd->second = \" << itEnd->second << std::endl;\n\n --itBegin;\n ++itEnd;\n std::cout\n << \"\\nDerenferencing after taking those same iterators and , \"\n \"pre-decrementing again \"\n \"the one\\n initially set to begin() and pre-incrementing the one \"\n \"set to end():\\n\"\n << std::endl;\n std::cout << \"itBegin->first = \" << (*itBegin).first\n << \", itBegin->second =\" << itBegin->second << std::endl;\n std::cout << \"itEnd->first = \" << itEnd->first\n << \", itEnd->second = \" << itEnd->second << std::endl;\n puts(\"\");\n return 0;\n }", "comment": "What are you think you are doing with --itBegin? That's not a valid operation.\n\nitEnd doesn't refer to an item in the map. Standard container end() returns \"one past the end\" so while you can compare some iterator to it, you can't \"derference\" it like you are doing.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "uo66oj", "question": ">Hello, \n> \n>I cannot get my code to compile and cannot figure out why the code is not working either. The purpose of the code is to have a fictional store with allowing the user to enter: \n> \n>case 1: add new item containing upc number, item name, cost, and quantity in inventory \n> \n>case 2: print entire hashtable \n> \n>case 3: find/search for an item by the id (or upc) \n> \n>case 4: find/search for an item by its name \n> \n>case 5: sort all items in hashtable by alphabetical order \n> \n>case 6: quit \n> \n>Any assistance is greatly appreciated! I have included the replit link here to access the code [https://replit.com/@kylemark608/KylesKode#main.cpp](https://replit.com/@kylemark608/KylesKode#main.cpp) \n> \n> \n> \n>Files needed: \n> \n>main.cpp \n> \n>kyleskode.cpp \n> \n>kyleskode.hpp", "comment": "I suggest you simply start by addressing each compiler error one by one. Each one is pretty obvious: just read the error message and do something about it. If there is an error where you do not understand what it says, then ask for clarification here - but first read it at least three times trying to decipher it, then try to read it aloud as if explaining it to an imaginary friend (or use a rubber duck) - don't just glimpse over it. Read it, study it, google it, read some more, make an effort - that is how you learn!", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "uo6f3l", "question": "Hi friends. I'm trying to figure out which way to take my career and could use some advice. I feel kind of split between cloud engineer and architect. I've been in technical roles for 15+ years, most recently a member of a cloud engineering team managing a multi-region, multi-account AWS footprint (\\~$3m/yr) for about a year. SysAdmin/Cloud Ops for Windows/Linux for about five years with some blending between that role and the current one. I obtained my AWS Cloud Practitioner cert earlier this year and found it easy. I'll be taking the Solutions Architect - Associate exam next week and expect to pass.\n\nThe AWS environment I manage now is 90% IaC/CI/CD managed (though I am more a consumer of those pipelines than a maintainer). I really enjoy building solutions and putting the AWS lego blocks together utilizing IaC as much as possible. More recently diving into Lambda and APIGW. Intimately familiar with most of the core services, EC2/S3/EFS/VPC/TGW/IAM etc etc. \n\nMy mentor recently left for a role at AWS (you're probably reading this, you bastard) and now I find myself in a position with a high degree of responsibility but without any in-house technical mentorship. I've greatly benefited from such relationships over my career and I fear I'll stagnate without it. Combine this with a company that is beginning to depend on individual contributors not knowing their worth, I think it's time to move on. I'm interested in Cloud Engineer and Cloud Architect roles, potentially at AWS, but I'm not sure which would best align with my skill set or which direction I should develop. DevOps is interesting to me and is probably a good fit mid-term but I would need to find a way to get more hands on experience beyond personal projects. I've nearly finished the Cloud Resume Challenge, probably a little below my skill set but added some CI/CD spice and other flare to explore more services. \n\n\nThanks for reading. Any advice is appreciated.", "comment": "across industry- these roles are basically the same. There's a ton of overlap.\n\nAt AWS- it highly depends on which business unit you sit in. Cloud Engineer should feed to architect. DevOps should align with SWE, in most cases, SWEs at AWS ARE devops but it's culturally built into the SWE teams. There ARE DevOps engineer titles but by in large most are just SWEs.\n\nIf you're customer facing- it more tends to be cloud engineer->TAM->SA or AM", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo6lmi", "question": "What is the best sandwich?", "comment": "Reuben!", "upvote_ratio": 340.0, "sub": "AskOldPeople"} +{"thread_id": "uo6lmi", "question": "What is the best sandwich?", "comment": "Good French dip with proper au jus.", "upvote_ratio": 280.0, "sub": "AskOldPeople"} +{"thread_id": "uo6lmi", "question": "What is the best sandwich?", "comment": "A nice MLT \u2013 mutton, lettuce and tomato sandwich, where the mutton is nice and lean and the tomato is ripe. They\u2019re so perky, I love that.", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "uo6mp3", "question": "I'm sure throughout our nation's history, there has been some association between the president and the economy, but it seems like it's at an absolute fever pitch lately. The notion of the free market is supposed to be such that the government can only have certain (quite limited) impacts on the economy. That's mostly true in America, but it seems like the public discourse has made it seem like the economy is the individual president's only responsibility. When did that dynamic begin to emerge? I have my own thoughts but would like to hear others.\n\nEdit: I believe this will inevitably lead to nationalization of some industries. What do you think will be nationalized first? In the name of \"protecting the economy\"", "comment": "Voters only care about two things when they go to vote...who is in charge...and how is my life going. That's it.", "upvote_ratio": 630.0, "sub": "AskAnAmerican"} +{"thread_id": "uo6mp3", "question": "I'm sure throughout our nation's history, there has been some association between the president and the economy, but it seems like it's at an absolute fever pitch lately. The notion of the free market is supposed to be such that the government can only have certain (quite limited) impacts on the economy. That's mostly true in America, but it seems like the public discourse has made it seem like the economy is the individual president's only responsibility. When did that dynamic begin to emerge? I have my own thoughts but would like to hear others.\n\nEdit: I believe this will inevitably lead to nationalization of some industries. What do you think will be nationalized first? In the name of \"protecting the economy\"", "comment": "I think the federal reserve act and Glass Steagall created the expectation that the economy was ultimately under the control of politicians rather than bankers.", "upvote_ratio": 550.0, "sub": "AskAnAmerican"} +{"thread_id": "uo6mp3", "question": "I'm sure throughout our nation's history, there has been some association between the president and the economy, but it seems like it's at an absolute fever pitch lately. The notion of the free market is supposed to be such that the government can only have certain (quite limited) impacts on the economy. That's mostly true in America, but it seems like the public discourse has made it seem like the economy is the individual president's only responsibility. When did that dynamic begin to emerge? I have my own thoughts but would like to hear others.\n\nEdit: I believe this will inevitably lead to nationalization of some industries. What do you think will be nationalized first? In the name of \"protecting the economy\"", "comment": "WAY too many people think that the president is directly in control of EVERYTHING now. Blame instant mass-media and everyone's expectation of a quick instant answer to all ills.", "upvote_ratio": 490.0, "sub": "AskAnAmerican"} +{"thread_id": "uo6tzp", "question": "Do we have any estimate for how much a person can actually know? And what happens when they reach that limit? Does learning new things become impossible? Do older memories simply get overwritten? Or do things just start to get jumbled like a double-exposed piece of film?", "comment": "You seem to think that biological memory storage is in any way similar to computer memory. The two cannot be more different. You have to come up with a completely different way to measure \u201cmemory capacity\u201d for your question to make sense. \n\nIn biology minor details are unimportant and easily replaceable. Generalization and reconstruction from those generalizations are the norm. Selectively forgetting is in fact one of the most important function of our brain. It\u2019s how generalization becomes possible. \n\nIf you know something about polynomial approximations, the brain is like a very high order polynomial approximating that data that you think it\u2019s storing. It would gladly replace one similar situation by another and interpolate your memories to fit. Save for a few highly-trained or neuro-diverse individuals, memory is very unreliable when it comes to specific details from long ago. Only the contours remain.", "upvote_ratio": 960.0, "sub": "AskScience"} +{"thread_id": "uo6tzp", "question": "Do we have any estimate for how much a person can actually know? And what happens when they reach that limit? Does learning new things become impossible? Do older memories simply get overwritten? Or do things just start to get jumbled like a double-exposed piece of film?", "comment": "Approx 2.5 petabytes or a million gigabytes, all things being equal. This is about the same as almost 4,000 avg 256 gig laptops. You might think \"then why can I not compute like a computer?\" but you have to remember all the \"background process and apps (breathing, blood pressure regulation, hormonal regulation, etc)\" your body has going on at any one point. Also, it didn't evolve to make you a successful human by computing mathematics at a high level like a computer can do. It's also having to construct reality at all conscious moments using your senses. We never experience actual reality, only what our brain represents as reality. This takes a lot of computing power. The graphics and refresh rate are intense...", "upvote_ratio": 860.0, "sub": "AskScience"} +{"thread_id": "uo6tzp", "question": "Do we have any estimate for how much a person can actually know? And what happens when they reach that limit? Does learning new things become impossible? Do older memories simply get overwritten? Or do things just start to get jumbled like a double-exposed piece of film?", "comment": "One thing is you're comparing digital data to analog data.\n\nI'll give a quick overview of how I think the biggest differences are between neuroscience and computer science.\n\nMost real objects in real life are **analog, or scalar**, meaning they have a theoretical range, and usually a theoretical minimum, and maximum. I use theoretical because it's not a mathematical definition, just, in theory here...\n\nMinimum knowledge and intelligence could be assumed to be just during birth, at about 0 seconds old, or even near death, where all knowledge of existence for you would fade away, as it when the brain \"starts up\" or \"ceases to function\", so that would be the \"minimum capacity\". That's not really a scientific thing to say, but that's what I'm going with.\n\nMaximum capacity is extremely harder to define, and very subjective. The brain ages as someone gets older, obviously. But while brain ages, and synapses become engaged, some even disengage or regress as we get even older.\n\nI already know IQ isn't a good study of how smart or wise someone is, since IQ is assigning digital data (a digital, numerical score rating) to the human brain's knowledge, intelligence and wisdom (analog).\n\nBut remember the brain performs a lot of functions in the body, not just for thinking. Some of these functions \"work best\" at a very certain age, during very certain situations, or are even environmentally dependent, or even based on genetics. In a terrorist or life-threatening situation, your brain would work differently than is it was relaxed or on drugs/medication.\n\nThe thing is, you ever wonder why scientists like Einstein, Hawking, Carl Sagan, Curie, and so many others *are* like geniuses? It isn't \"brain capacity\", it's not \"how smart you are\". It's your ability to innovate, to think outside the box, the prove your theory is correct after hours and hours of hard work and intense thoughts.\n\nIt takes a special person to be like that, or even dedicate their whole life to science as a passion. Even though a lot of us like to believe we are not special deep down inside, I still consider every person as unique, because every person is an individual physical, separate body, and spiritualists think differently, but I'm trying to talk science here, what we already know is true.\n\nTherefore we are all special, we have individual and unique thoughts that are thought up of our own, and some of these thoughts originate from not very special or not very unique things in life, but the person who is \"I\" only has these special thoughts, if we're talking psychology here.\n\n**Digital data**, on the other hand, is defined more with math and logic, as having sets of numbers, usually a number base definition like data can be stored as binary, which is the most usual type of digital storage, or octal, decimal, etc... It usually has fixed or variable capacity, **not scalar**, and we know the minimum is always zero, and the maximum is the storage capacity. \n\nYou can't say that the brain's minimum capacity is zero. that just makes no sense. if the brain has zero knowledge, you might as well say exactly that **there is no brain at all**. The brain has to be holding some knowledge in order for it to function and make you become alive, like how to breathe, eat, or take a shit.\n\nSo comparing a human brain to a CPU in a computer is just a really bad idea for the sake of science. Don't do it. They're really not the same thing.\n\nSame thing when people argue that your cameras are like eyes, and \"how many FPS can we see?\" or \"what is the maximum resolution that we can see?\" or that the ears are microphones, and \"what are exactly the maximum frequencies we can hear?\"\n\nNot only are those all going to result in different answers for most individuals, they are just not really well defined. We haven't advanced enough in neuro-technology and the sciences in general to make comparisons like that, and answer questions like that. It's pretty pointless to ask right now until we get to a stage where we're already building personal consumer androids for our homes with the latest AI, and then we want to make them be \"as human-like as possible\".\n\nSo ask it in the next 3000 years, and I'm sure people will answer differently.", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "uo6x77", "question": "Basically, I was reached out to by a recruiter from a contracting company who wants me to be a contractor for American Red Cross. It's a Level 1 helpdesk position. The recruiter told me that I was the best candidate they had seen so far. I live in a low cost of living southeast town, and both curious if a 6 month contractor position is a bad idea, and if the company is legit.", "comment": "1. I don't know if Yoh is legit.\n2. Contractor positions can be OK. As you already stated, its short term and there most likely won't be benefits.\n3. $18/hr seems to be about the going rate these days, depending on location. Things to keep in mind:\n 1. Its entry level work\n 2. Your cost of living may be high\n 3. Your lifestyle may not be supported\n4. It could be a good jumping off spot for you to get some experience.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo76gp", "question": "Obligatory, sorry for formating (on mobile).\n\nSo, I have an internship lined up with one of the silicon valley boys this summer, and, until now, the whole on boarding process has seemed fairly sporadic and disorganized. Nothing insane, just kind of a lack of information disclosure and not meeting set timelines for getting information to interns.\n\nHowever, I just received an email from my team manager specifying that our team will be working entirely remotely. Now, I would be fine with this if I was told a month ago, but I am a few weeks from my start date. I have already signed a lease for the summer and now find myself spending thousands on an apartment that I do not need.\n\nI guess I'm just reaching out to see if anyone else has had a similar experience/if anyone has advice on what I could do in this situation.\n\nEdit: Thanks for all the great advice! After mulling it over myself and talking with my manager, I'm going to take many of you guy's advice and move out there anyway. While it is expensive I think it will be a great time and an amazing opportunity.(Also it does give me a chance to test drive west coast living before committing to a full time job out there, which is really nice)", "comment": "lol this guy is gonna get his lease transfered and one week before the internship find out its no longer remote", "upvote_ratio": 5190.0, "sub": "CSCareerQuestions"} +{"thread_id": "uo76gp", "question": "Obligatory, sorry for formating (on mobile).\n\nSo, I have an internship lined up with one of the silicon valley boys this summer, and, until now, the whole on boarding process has seemed fairly sporadic and disorganized. Nothing insane, just kind of a lack of information disclosure and not meeting set timelines for getting information to interns.\n\nHowever, I just received an email from my team manager specifying that our team will be working entirely remotely. Now, I would be fine with this if I was told a month ago, but I am a few weeks from my start date. I have already signed a lease for the summer and now find myself spending thousands on an apartment that I do not need.\n\nI guess I'm just reaching out to see if anyone else has had a similar experience/if anyone has advice on what I could do in this situation.\n\nEdit: Thanks for all the great advice! After mulling it over myself and talking with my manager, I'm going to take many of you guy's advice and move out there anyway. While it is expensive I think it will be a great time and an amazing opportunity.(Also it does give me a chance to test drive west coast living before committing to a full time job out there, which is really nice)", "comment": "Leverage the fact you are in the bay area. Attend meetups, mingle, connect with people from other tech companies, join internship programs / events on campus, visit stanford, visit the parks. It can be much more than just an internship.", "upvote_ratio": 2950.0, "sub": "CSCareerQuestions"} +{"thread_id": "uo76gp", "question": "Obligatory, sorry for formating (on mobile).\n\nSo, I have an internship lined up with one of the silicon valley boys this summer, and, until now, the whole on boarding process has seemed fairly sporadic and disorganized. Nothing insane, just kind of a lack of information disclosure and not meeting set timelines for getting information to interns.\n\nHowever, I just received an email from my team manager specifying that our team will be working entirely remotely. Now, I would be fine with this if I was told a month ago, but I am a few weeks from my start date. I have already signed a lease for the summer and now find myself spending thousands on an apartment that I do not need.\n\nI guess I'm just reaching out to see if anyone else has had a similar experience/if anyone has advice on what I could do in this situation.\n\nEdit: Thanks for all the great advice! After mulling it over myself and talking with my manager, I'm going to take many of you guy's advice and move out there anyway. While it is expensive I think it will be a great time and an amazing opportunity.(Also it does give me a chance to test drive west coast living before committing to a full time job out there, which is really nice)", "comment": "That\u2019s sucks man. See if you buy out the lease for a 50% of the total. Or maybe the landlord will let you out if he can find another tenant and you only pay for the days between your lease start and when he gets a new lease signed. I\u2019d ask. People are sometimes reasonable.", "upvote_ratio": 2820.0, "sub": "CSCareerQuestions"} +{"thread_id": "uo7fmh", "question": "If bleach is used to sanitize, say, a bathroom, is there any practical risk to using other cleaners on the same surfaces shortly after? e.g. bleach is used to clean a bathroom counter, and Windex is used to spray the mirror above in the same cleaning session where some spray is likely to hit the counter; or a shower is cleaned with a bleach solution, and next day a citric acid-based daily shower spray is used on the same surfaces.\n\nI'm assuming there's going to be some residual bleach, for some period of time after using it to clean. But I have no idea what amount would produce enough fumes to be dangerous.", "comment": "*Concentration* and *quantity* are both important.\n\n* *Quantity* of two sprays accidentally mixing together is going to be an absolutely tiny. \n\n* *Concentration* when mixing on a hard flat surface open to a big room with (probably) okay air flow - also tiny.\n\nStories you read of people mixing two incompatible chemicals together tend to be dumping a whole bottle of each into a closed vessel like a toilet. They get a sudden blast of fumes, almost like standing over a chimney. But even then, fairly quickly the fumes dissipate into the room.\n\nBoth of those chemicals you mention a very soluble in water, and realstically, very reactive. That means it's intense but they also go away quickly. Your bleach has a half-life on a surface measured in minutes, or realistically only seconds if you're following the instructions on the label.\n\nAdded effect of a wet room with high humidity, steam, active fan/window extraction and water flowing. Yeah, you're going to be completely fine.", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "uo7fmh", "question": "If bleach is used to sanitize, say, a bathroom, is there any practical risk to using other cleaners on the same surfaces shortly after? e.g. bleach is used to clean a bathroom counter, and Windex is used to spray the mirror above in the same cleaning session where some spray is likely to hit the counter; or a shower is cleaned with a bleach solution, and next day a citric acid-based daily shower spray is used on the same surfaces.\n\nI'm assuming there's going to be some residual bleach, for some period of time after using it to clean. But I have no idea what amount would produce enough fumes to be dangerous.", "comment": "But why though? The mirror example makes sense, and no that\u2019s not enough to have a reaction big enough to worry about. The other example, why would you need to clean a thing that you just bleached? Is it not clean enough? If so then why even use the bleach? \n\nAnyway to answer, it\u2019s probably not enough to worry about, but probably best I just throw some water over the area that might have residual bleach before spraying the citric acid solution. Water. That\u2019s all", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "uo7s3a", "question": "Common optimization flags for compilers like gcc or clang have the O2 or O3 flag. I am willing to increase compile time to optimize the program more, such as better code generation, more precise ILP solution. Is there a way to specify this in gcc or clang?", "comment": "Besides `-O3`, also be sure you allow the compiler to use all the possible extra CPU instructions the architecture you aim support, see: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html Note however, that this means that the binary won't necessarily be portable across different CPUs.\n\nYou can also look into Profile Guided Optimizations, see e.g.: https://rigtorp.se/notes/pgo/\n\nBesides that there isn't much more you can do: run your code through a profiler (like [Intel VTune](https://www.intel.com/content/www/us/en/developer/tools/oneapi/vtune-profiler.html)) and do manual optimizations.\n\nEDIT: I know you specify ILP, but if you by any chance also do floating point math, then be sure to also enable `-ffast-math`.", "upvote_ratio": 90.0, "sub": "cpp_questions"} +{"thread_id": "uo7s3a", "question": "Common optimization flags for compilers like gcc or clang have the O2 or O3 flag. I am willing to increase compile time to optimize the program more, such as better code generation, more precise ILP solution. Is there a way to specify this in gcc or clang?", "comment": "Is there anything you can pre compute? Maybe constexpr can be your friend.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo7ufj", "question": "I read upto lists and dictionaries in Automate the Boring stuff, and watched the videos on youtube for those chapters. The excercises seemed to ask for stuff that i had not learnt or were far ahead of my learning so far. \n\nDived into 'Python Crash Course' and haven't looked back. This book is fun, engaging, and all the excersises are relevant to what you have just learnt. \n\nI will go back to 'Automate' but was overwhelmed and skipped most of the chapter excercises, as they seemed too difficult", "comment": "They are aimed at different audiences\n\nI like the content in PCC, but ATBS is still the best thing to hand a frustrated desk jockey with limited time who wants to make their lives easier\n\nIt pays immediate practical dividends, which is the most important thing for keeping those sorts of people motivated and learning", "upvote_ratio": 1910.0, "sub": "LearnPython"} +{"thread_id": "uo7ufj", "question": "I read upto lists and dictionaries in Automate the Boring stuff, and watched the videos on youtube for those chapters. The excercises seemed to ask for stuff that i had not learnt or were far ahead of my learning so far. \n\nDived into 'Python Crash Course' and haven't looked back. This book is fun, engaging, and all the excersises are relevant to what you have just learnt. \n\nI will go back to 'Automate' but was overwhelmed and skipped most of the chapter excercises, as they seemed too difficult", "comment": "PCC is for programming/software engineering\n\nATBS is for automating things\n\nEach has their own audience", "upvote_ratio": 730.0, "sub": "LearnPython"} +{"thread_id": "uo7ufj", "question": "I read upto lists and dictionaries in Automate the Boring stuff, and watched the videos on youtube for those chapters. The excercises seemed to ask for stuff that i had not learnt or were far ahead of my learning so far. \n\nDived into 'Python Crash Course' and haven't looked back. This book is fun, engaging, and all the excersises are relevant to what you have just learnt. \n\nI will go back to 'Automate' but was overwhelmed and skipped most of the chapter excercises, as they seemed too difficult", "comment": "+1\n\nPCC is also more interesting. But the first part of atbs (the one covering basics) is slightly more detailed than pcc.\n\nThe second part of atbs is just too much for beginners, imo and also not interesting at all, but YMMV.", "upvote_ratio": 260.0, "sub": "LearnPython"} +{"thread_id": "uo7ulk", "question": "I'm currently working as an SRE in Europe and would like to move to another country.\n\nWhats the best way to look for jobs that are willing to hire people from other countries?", "comment": "The best way is to get a local job with a company that has offices in the country you're interested in, and then work on an international transfer within that company.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo82u5", "question": "Currently I troubleshoot and repair laptops. I\u2019ve been looking to get the Trifecta but I wondered if that\u2019s necessary. Anything else I should look into?", "comment": "A+ is the way to go here.", "upvote_ratio": 80.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo8410", "question": "I am in college and getting a degree and was wondering, is a computer science degree the best degree to get for landing various types of IT jobs and having that strong foundation to enter various/most types of IT/tech/cs related jobs?\n\nI know for specific areas I will upskill by adding relevant certifications, and outside self learning, projects, homelabs etc,\n\nBut to get that strong foundation for career in IT, would it be one of the best degrees to get? I feel it be better than a information systems, management information systems, or information technology degree. Would you agree? ", "comment": "If you are willing to put in the work, you should absolutely get a CS degree instead of an IT degree. It will open more doors.\n\nHowever, there is no free lunch. A CS degree is difficult, and a good program will have a lot of math. CS programs have an incredibly high number of dropouts into other majors as a result. The level to which you'll learn hands-on vs. learning applied mathematics and theory depends on the university and the program. Some schools, for example, offer two separate degrees in Computer Science and Software Engineering.", "upvote_ratio": 70.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo8410", "question": "I am in college and getting a degree and was wondering, is a computer science degree the best degree to get for landing various types of IT jobs and having that strong foundation to enter various/most types of IT/tech/cs related jobs?\n\nI know for specific areas I will upskill by adding relevant certifications, and outside self learning, projects, homelabs etc,\n\nBut to get that strong foundation for career in IT, would it be one of the best degrees to get? I feel it be better than a information systems, management information systems, or information technology degree. Would you agree? ", "comment": "I would say Computer Science is one of the best degrees because it would let you transition into Software Engineering if you wanted. That is a much, much more lucrative career path in today's world. Management Information Systems would probably be better if you were dead set on just IT itself as it's also a business degree and will help you out in the future going for high-level management positions.\n\nOr you don't have to get any degree and can just work your way up the ladder at potentially a slightly slower pace but still will end up in a good place if you continue to keep up on your own education and switching jobs when you hit a point at an employer where you can't really grow any further.", "upvote_ratio": 70.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo8410", "question": "I am in college and getting a degree and was wondering, is a computer science degree the best degree to get for landing various types of IT jobs and having that strong foundation to enter various/most types of IT/tech/cs related jobs?\n\nI know for specific areas I will upskill by adding relevant certifications, and outside self learning, projects, homelabs etc,\n\nBut to get that strong foundation for career in IT, would it be one of the best degrees to get? I feel it be better than a information systems, management information systems, or information technology degree. Would you agree? ", "comment": "CS is the best degree for tech, and opens many more doors than IT/MIS/IS, and I myself have an IT degree. If you can manage the extra math and theory courses, you'll have a much easier time finding an internship, jobs, and at better places. An IT degree can open doors for sys admin, helpdesk, or other related roles, but CS does the same in addition to SWE/DevOps/SRE. \n\nStarting salaries are higher for CS because of these other jobs you can get and at better companies which pay much more.", "upvote_ratio": 60.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo8bbk", "question": "If a person dont know about python programming, how he able to know how long it will take for a developer to implement that idea?\n\nI have an idea, where i need to hire someone to creat web app.\n\nWould you please able to give some suggestion / idea how can i estimate my project time and cost.\n\nAm i need to hire freelance software engineer to plan that project sprint by sprint or full stack develoer who able to give whole project plan then i will hire any junior developer?\n\nIf i ask on upwork different developer give different price. Some of them are quoting 300 - 500$ some are quoting 4k to 7k. This price change totally confuse me.\n\nI need your help what step i should take to minimize cost and successfully launch my project.\n\nWhat i need to ask? Line of code he wrote? Feature he include? Scaleablity?", "comment": "Anybody quoting less than $1000 for a non-trivial software project is either completely unaware of the value of their labor (suggesting inexperience), or isn't particularly motivated by cash, and by extension, not very motivated by you. That's like 2 days at a junior dev salary, or less than a day of a consultant's time.\n\nThe 4-7k quotes, if based on actually hearing your project pitch, sound reasonable for a basic website or app and the corresponding simple backend tied to a database, being done by someone who basically understands what they're doing but doesn't have great job prospects, maybe because they're a student or something. Given those circumstances, I would probably pitch a timeframe 2-6 weeks, depending on whether the dev is working on the project full time or not.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uo8qqj", "question": "enable_if stopped working for constructors. Can someone check please. thanks!\n\nEDIT: The issue is with the copy constructor with enable_if being deleted when the move constructor is defined without enable_if. Same issue on GCC.", "comment": "https://godbolt.org/z/ec9q7qesr", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo8qqj", "question": "enable_if stopped working for constructors. Can someone check please. thanks!\n\nEDIT: The issue is with the copy constructor with enable_if being deleted when the move constructor is defined without enable_if. Same issue on GCC.", "comment": "If it did stop working, we'd have to call it SFIAE.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uo95nq", "question": "Or is it only me? I just like the way it sounds. It's also a good replacement for cussing.", "comment": "There\u2019s a large enough Jewish population that some Yiddish words have slipped into the English language", "upvote_ratio": 6640.0, "sub": "AskAnAmerican"} +{"thread_id": "uo95nq", "question": "Or is it only me? I just like the way it sounds. It's also a good replacement for cussing.", "comment": "Sure do. I use a handful of other Yiddish phrases in daily life too. Schvitzing, schmuck, schlep, a few more. I think it's because of a combination of my parents being from the NYC area and watching a lot of Seinfeld as a kid.\n\nEdit: also putz, keister, schmendrick, mazel tov, and I use shekels as slang for money pretty often haha", "upvote_ratio": 2840.0, "sub": "AskAnAmerican"} +{"thread_id": "uo95nq", "question": "Or is it only me? I just like the way it sounds. It's also a good replacement for cussing.", "comment": "Username does not check out", "upvote_ratio": 840.0, "sub": "AskAnAmerican"} +{"thread_id": "uo9dtq", "question": "I have a branch I created last Friday and updated 1 line. Other programmers have pushed a bunch of code in master since. \n\nI want to do a PR to merge mine into master. Will this make any unintentional changes ?", "comment": "Pull master into your own branch and find out!", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uo9g03", "question": "Heyo, if you have used Unity the game engine in the past, you know that you can build the same application for multiple platforms with the push of a button. Does anyone know about any other IDE or app that will help me perform similar feats? Preferably I would like the app to build an application for Mac, Windows, Android and iOs", "comment": "Thats not dependent on the IDE. It depends on the Language/Framework you are using and how you compile/interpret it. \n\nJava for example, with the JVM it is possible to run it on macOs, Windows, Linux, ...\n\nC# can be used multiplatform with .NET Core.\n\nAnd then there are other languages like Python, Kotlin, Go, ... which can also be used crossplatform, but only if you compile it properly for your target.\n\nThe IDE ist just a Tool, which supports you, taking care of alot of things you'd have to do manually else (for example compiling and running it).", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uo9ifx", "question": "I am still new to C++ (just started this sem). I am supposed to create an airline reservation system for my final project. Although creating the project is not a problem for me where the outputnisbin cmd, I don't know ANYTHING about GUIs. We are being pushed to imolement GUI for our codes. Can anyone please help me?", "comment": "Qt is industry standard and it's the base of KDE on Linux.", "upvote_ratio": 170.0, "sub": "cpp_questions"} +{"thread_id": "uo9ifx", "question": "I am still new to C++ (just started this sem). I am supposed to create an airline reservation system for my final project. Although creating the project is not a problem for me where the outputnisbin cmd, I don't know ANYTHING about GUIs. We are being pushed to imolement GUI for our codes. Can anyone please help me?", "comment": "Check out Dear ImGui.", "upvote_ratio": 170.0, "sub": "cpp_questions"} +{"thread_id": "uo9ifx", "question": "I am still new to C++ (just started this sem). I am supposed to create an airline reservation system for my final project. Although creating the project is not a problem for me where the outputnisbin cmd, I don't know ANYTHING about GUIs. We are being pushed to imolement GUI for our codes. Can anyone please help me?", "comment": "If you want a traditional desktop UI you could use wxwidgets, qt, or gtk. They all have their own quirks.", "upvote_ratio": 140.0, "sub": "cpp_questions"} +{"thread_id": "uo9iuw", "question": "I landed a great entry level job, and everything seems perfect, the only problem is that I have been waiting 3 weeks for my offer letter. I have contacted my hiring manager about it and they said that there\u2019s some internal issues and that they are very sorry about the delay. It has been another week since then. What should I do? Is there anyway I can speed up the process or should I just be patient.", "comment": "Be patient and keep applying for other positions in the mean time. Don\u2019t put all your eggs in a basket. They don\u2019t owe you a position and you shouldn\u2019t feel like you owe them either. \n\nI would follow up once per week, after the 6th week or so, follow up every two weeks or just stop.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uo9iuw", "question": "I landed a great entry level job, and everything seems perfect, the only problem is that I have been waiting 3 weeks for my offer letter. I have contacted my hiring manager about it and they said that there\u2019s some internal issues and that they are very sorry about the delay. It has been another week since then. What should I do? Is there anyway I can speed up the process or should I just be patient.", "comment": "Keep looking and interviewing, you're the backup hire and they have you on hold in case their #1 falls through.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoalnf", "question": "I've been applying to a lot of IT related jobs. Wasn't getting any interviews so I found a reddit post where this guy started using a cover letter.\n Right after I used a cover letter, I got an interview for a state Drupal Web Developer position. \n\nI did the interview on Monday. It was my first virtual interview and they asked what was my fav project, what feature of a project you worked on was your hardest, etc. I felt like it went well, and I was a bit nervous tbh. Anyways, I thought it went well and they said they'll send me a coding challenge on TestDome.\n\nIt was 1.3 hours long and 4 questions. The first question was a simple \"replaceAtag\" where you replaced a href's link using JS's replace. The 2nd was simply adding a table with the DOM with the same amount of rows and cells of the last. The 3rd was a CSS one where you had to change the first element of a LI tag to the color red, and some other things. 4th one was to extract a \"privacy number\" like \"231-24-5712\" in PHP, and replace it with \"231/24/5712\" (hyphens could be used anywhere in a text). \n\nI completed the TestDome exam and today got a not selected email. I'm not sure what they want? \n\nIs there something I'm doing wrong, I felt so good throughout the process. Maybe too nervous during the interview? Any advice is appreciated, ty", "comment": "You can do everything right and not get hired because they just had a better \"feeling\" about someone else. Job hunting sucks. Rejection is the norm.", "upvote_ratio": 3580.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoalnf", "question": "I've been applying to a lot of IT related jobs. Wasn't getting any interviews so I found a reddit post where this guy started using a cover letter.\n Right after I used a cover letter, I got an interview for a state Drupal Web Developer position. \n\nI did the interview on Monday. It was my first virtual interview and they asked what was my fav project, what feature of a project you worked on was your hardest, etc. I felt like it went well, and I was a bit nervous tbh. Anyways, I thought it went well and they said they'll send me a coding challenge on TestDome.\n\nIt was 1.3 hours long and 4 questions. The first question was a simple \"replaceAtag\" where you replaced a href's link using JS's replace. The 2nd was simply adding a table with the DOM with the same amount of rows and cells of the last. The 3rd was a CSS one where you had to change the first element of a LI tag to the color red, and some other things. 4th one was to extract a \"privacy number\" like \"231-24-5712\" in PHP, and replace it with \"231/24/5712\" (hyphens could be used anywhere in a text). \n\nI completed the TestDome exam and today got a not selected email. I'm not sure what they want? \n\nIs there something I'm doing wrong, I felt so good throughout the process. Maybe too nervous during the interview? Any advice is appreciated, ty", "comment": "Don\u2019t feel down. When I was searching for my first job I nailed multiple technical interviews and coding assignments and felt great! Then the rejection came and I was always super bummed out. Just keep sticking with it, it will come soon!", "upvote_ratio": 470.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoalnf", "question": "I've been applying to a lot of IT related jobs. Wasn't getting any interviews so I found a reddit post where this guy started using a cover letter.\n Right after I used a cover letter, I got an interview for a state Drupal Web Developer position. \n\nI did the interview on Monday. It was my first virtual interview and they asked what was my fav project, what feature of a project you worked on was your hardest, etc. I felt like it went well, and I was a bit nervous tbh. Anyways, I thought it went well and they said they'll send me a coding challenge on TestDome.\n\nIt was 1.3 hours long and 4 questions. The first question was a simple \"replaceAtag\" where you replaced a href's link using JS's replace. The 2nd was simply adding a table with the DOM with the same amount of rows and cells of the last. The 3rd was a CSS one where you had to change the first element of a LI tag to the color red, and some other things. 4th one was to extract a \"privacy number\" like \"231-24-5712\" in PHP, and replace it with \"231/24/5712\" (hyphens could be used anywhere in a text). \n\nI completed the TestDome exam and today got a not selected email. I'm not sure what they want? \n\nIs there something I'm doing wrong, I felt so good throughout the process. Maybe too nervous during the interview? Any advice is appreciated, ty", "comment": "Had a similar experience where I did really well on the coding exam (Medium difficulty python questions) and answered everything correctly in the technical interview (Python questions) and didn't get the job. The worst part was the interviewer exchanged numbers with me which I thought was a good sign. After getting rejected I reached out to him for some advice on how I can improve myself but he ghosted me.", "upvote_ratio": 230.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoaspm", "question": "Why do so many old people seem to LOVE and embrace today's trashy state of News Media? Why aren't they nostalgic for the classier good old days of Walter Cronkite?", "comment": "I speak for all old people and don't agree with your premise at all.", "upvote_ratio": 1080.0, "sub": "AskOldPeople"} +{"thread_id": "uoaspm", "question": "Why do so many old people seem to LOVE and embrace today's trashy state of News Media? Why aren't they nostalgic for the classier good old days of Walter Cronkite?", "comment": "Not sure I'd classify myself as \"old\" at 54, but I was just saying the same thing to someone the other day. Remember when the news actually, you know, reported the news? None of this virtue signalling, who-can-stir-the-pot the most crap.\n\nWhat's frightening is watching clips of the TV \"media\" in Russia about the war in Ukraine. You know what they look and sound like? US media outlets. It's downright scary how similar their type of delivery is - report only on what the \"message\" is. Not reality. They're not reporting to *educate* people. It's delivering a message to *manipulate* people.\n\nI miss American media from 30 years ago. Small town newspapers, fewer conglomerates, actual beat reporters, no screaming talk-radio hosts, no Right or Left wing owned and controlled media and agendas.\n\nI know I'm looking through rose-colored glasses as there was always some partisanship, but now the \"media\" is in a full-on divisive war with American minds and hearts. Who is controlling the stories, the headlines? I fear it's more than just for $$$. It's for power. It's heading toward fascism here and it feels like a million ton train - you can't stop it.", "upvote_ratio": 1030.0, "sub": "AskOldPeople"} +{"thread_id": "uoaspm", "question": "Why do so many old people seem to LOVE and embrace today's trashy state of News Media? Why aren't they nostalgic for the classier good old days of Walter Cronkite?", "comment": "The excitement that comes with all the drama of 24 hour a day breaking news. My 84 year old mother has the tv on all day, news and baseball. It makes her happy to see shitty things happen to other people, and she can gloat right along with the current batch of anchors.", "upvote_ratio": 1030.0, "sub": "AskOldPeople"} +{"thread_id": "uoazxh", "question": "My Planet Fitness app has a QR code page within the app. The problem is, the app is extremely slow, so I'd rather just have the QR code saved somewhere where I can easily access it. I'm not sure how to do this. Some ideas on approaches.\n\n1. Add a shortcut to either the Google Photo or the file in Drive. I haven't found a way to do this yet.\n2. I added the Planet Fitness card to Google wallet. However, non-payment cards take a lot of steps to access. Unlock phone, swipe down, swipe down again, tap GPay, tap Show all, tap Planet Fitness.\n3. Use a third party photo widget that shows only 1 photo. There doesn't seem to be a lot of highly rated third party photo widgets out there.\n\nAny other ideas, or ideas that build upon the approaches I listed? I can save image as my wallpaper, but I'd prefer not to do that.\n\nI have Pixel 5a running Android 12.", "comment": "After screenshot, share it to Google Keep, pin it to the top of keep, and use the keep widget. So unlock phone swipe to keep widget tap screenshot to make it full screen.", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "uoazxh", "question": "My Planet Fitness app has a QR code page within the app. The problem is, the app is extremely slow, so I'd rather just have the QR code saved somewhere where I can easily access it. I'm not sure how to do this. Some ideas on approaches.\n\n1. Add a shortcut to either the Google Photo or the file in Drive. I haven't found a way to do this yet.\n2. I added the Planet Fitness card to Google wallet. However, non-payment cards take a lot of steps to access. Unlock phone, swipe down, swipe down again, tap GPay, tap Show all, tap Planet Fitness.\n3. Use a third party photo widget that shows only 1 photo. There doesn't seem to be a lot of highly rated third party photo widgets out there.\n\nAny other ideas, or ideas that build upon the approaches I listed? I can save image as my wallpaper, but I'd prefer not to do that.\n\nI have Pixel 5a running Android 12.", "comment": "Screenshot.\n\nThat's how I pay for my Dunkin coffee. \n\nDon't even bother using the app at all.", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "uoazxh", "question": "My Planet Fitness app has a QR code page within the app. The problem is, the app is extremely slow, so I'd rather just have the QR code saved somewhere where I can easily access it. I'm not sure how to do this. Some ideas on approaches.\n\n1. Add a shortcut to either the Google Photo or the file in Drive. I haven't found a way to do this yet.\n2. I added the Planet Fitness card to Google wallet. However, non-payment cards take a lot of steps to access. Unlock phone, swipe down, swipe down again, tap GPay, tap Show all, tap Planet Fitness.\n3. Use a third party photo widget that shows only 1 photo. There doesn't seem to be a lot of highly rated third party photo widgets out there.\n\nAny other ideas, or ideas that build upon the approaches I listed? I can save image as my wallpaper, but I'd prefer not to do that.\n\nI have Pixel 5a running Android 12.", "comment": "Just take a screenshot of it", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "uob0wr", "question": "These are NOT recommended, might I add? But my parents always fell back on:\n\n&#x200B;\n\nHot toddy (with whiskey) for a cold -- at any age, I remember having them when I was 8.\n\nWhisky on gums for teething\n\nBeer is the thing to settle an upset stomach (for my parents, anyway--they didn't try this on me til I was an adult).\n\nAny spirit dabbed onto a cut/scrape when rubbing alcohol wasn't available.\n\n&#x200B;\n\nDid you or your parents have any others? and are there any you still use?\n\n&#x200B;\n\nYes, here, for hot toddys. They work! (adults only)", "comment": "My grandmother used Anisette on mine and my brother's gums when we were teething. When mom found out, she hit the roof. But apparently, we liked it better than Orajel so eventually dad convinced mom to give it a try. I guess mom was terrified we'd grow up to be alcoholics. \n\nEvery year on my grandmother's birthday, I drink a little shot of Anisette in her memory.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "uob0wr", "question": "These are NOT recommended, might I add? But my parents always fell back on:\n\n&#x200B;\n\nHot toddy (with whiskey) for a cold -- at any age, I remember having them when I was 8.\n\nWhisky on gums for teething\n\nBeer is the thing to settle an upset stomach (for my parents, anyway--they didn't try this on me til I was an adult).\n\nAny spirit dabbed onto a cut/scrape when rubbing alcohol wasn't available.\n\n&#x200B;\n\nDid you or your parents have any others? and are there any you still use?\n\n&#x200B;\n\nYes, here, for hot toddys. They work! (adults only)", "comment": "Everclear will cure what ails you. It's also great for sterilizing wounds.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uobdav", "question": "I\u2019m just really curious, and I didn\u2019t know where to ask it. What are the ads like?", "comment": "Depends on what you're watching and if the ads you're getting are targeted ads (usually only seen on streaming services or the Internet). \n\nThe most basic ads are for clothing / clothing stores, fast food, movies / TV show trailers, travel (usually domestic travel for other states), cars, etc.", "upvote_ratio": 110.0, "sub": "AskAnAmerican"} +{"thread_id": "uobdav", "question": "I\u2019m just really curious, and I didn\u2019t know where to ask it. What are the ads like?", "comment": "[Here's my favorite pharmaceutical commercial that aired constantly on TV a few years ago...pay attention to the side effects! You don't want to miss any!](https://www.youtube.com/watch?v=7VEZBVT_a3M)\n\n&#x200B;\n\n[But this is probably one of the most iconic TV commercials](https://www.youtube.com/watch?v=FbQt8pYUY6Q) for anyone who used to watch a lot of basic cable back in the 00s and early 2010s", "upvote_ratio": 60.0, "sub": "AskAnAmerican"} +{"thread_id": "uobdav", "question": "I\u2019m just really curious, and I didn\u2019t know where to ask it. What are the ads like?", "comment": "I think my phone knows I\u2019m Latino bc out of nowhere every now and then I\u2019ll get ads in Spanish", "upvote_ratio": 40.0, "sub": "AskAnAmerican"} +{"thread_id": "uoboel", "question": "Like the title suggests, I want to play a mp3 file through my audio input so the other side can hear the audio, not my microphone. Does that make sense?\n\n&#x200B;\n\nThis is going to be used in a twilio application where a caller can press a button and it switches their audio source from microphone to a audio file so they can leave automated voice mails.\n\n&#x200B;\n\nIs this possible?", "comment": "I only needed this once and used a software called \"virtual audio cable\" for it.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uobqh0", "question": "I keep reading on Reddit that guys prefer ZERO makeup and they know what natural makeup is and still don't prefer it. If that's true, why do I get so much more male attention when I wear makeup?", "comment": "Men don't have a lot of experience with makeup. We see it or we don't. There's no grey area. It's kinda like fake boobs, or lip injections. We don't like them because they look bad when we notice them. If any of the above is done well, then we assume it's not been done", "upvote_ratio": 106940.0, "sub": "NoStupidQuestions"} +{"thread_id": "uobqh0", "question": "I keep reading on Reddit that guys prefer ZERO makeup and they know what natural makeup is and still don't prefer it. If that's true, why do I get so much more male attention when I wear makeup?", "comment": "In high school, I had a guy tell me that he liked how I was naturally beautiful and also that he liked that I didn\u2019t need makeup. While I was wearing a full face done in makeup. Black eye liner, heavy mascara, foundation, bronzer. I can only think that maybe because my lips were more of a nude colour, he thought that makeup means red lipstick or something.", "upvote_ratio": 73580.0, "sub": "NoStupidQuestions"} +{"thread_id": "uobqh0", "question": "I keep reading on Reddit that guys prefer ZERO makeup and they know what natural makeup is and still don't prefer it. If that's true, why do I get so much more male attention when I wear makeup?", "comment": "Men on Reddit are not a good sample. Even if that was the case and the survey says most men prefer no makeup, there's still the issue that your locality differs in opinion.", "upvote_ratio": 69540.0, "sub": "NoStupidQuestions"} +{"thread_id": "uoc14v", "question": "Hi programmers of reddit. I was wondering how common on-call duty is across companies. I have been speaking to a number of engineers across different companies and sizes. It seems like a reasonable setup but not everyone does it. The people who have to be on-call also hate it. Why? \n\n\nWhat is your on-call process if you have one? How do you feel about it?Very curious to hear about your on-call experiences!\n\nAlso curious if you use any software to help with on-call? Seems standard practices exist but it's still such a pain for engineers.", "comment": "I think it's common in some areas (like developers of a web API or online service).\n\n> The people who have to be on-call also hate it. Why? \n\nCompletely kills your ability to relax, limits plans you can make, etc.", "upvote_ratio": 270.0, "sub": "AskProgramming"} +{"thread_id": "uoc14v", "question": "Hi programmers of reddit. I was wondering how common on-call duty is across companies. I have been speaking to a number of engineers across different companies and sizes. It seems like a reasonable setup but not everyone does it. The people who have to be on-call also hate it. Why? \n\n\nWhat is your on-call process if you have one? How do you feel about it?Very curious to hear about your on-call experiences!\n\nAlso curious if you use any software to help with on-call? Seems standard practices exist but it's still such a pain for engineers.", "comment": "There's a time and a place.\n\nIt's something that in my 35 year career has been VERY often abused. \n\nThey've got to give you some kind of concession for the availability.", "upvote_ratio": 120.0, "sub": "AskProgramming"} +{"thread_id": "uoc14v", "question": "Hi programmers of reddit. I was wondering how common on-call duty is across companies. I have been speaking to a number of engineers across different companies and sizes. It seems like a reasonable setup but not everyone does it. The people who have to be on-call also hate it. Why? \n\n\nWhat is your on-call process if you have one? How do you feel about it?Very curious to hear about your on-call experiences!\n\nAlso curious if you use any software to help with on-call? Seems standard practices exist but it's still such a pain for engineers.", "comment": "I've worked as a consultant on a few projects where I was \"on call\"... Basically it was a worst case scenario when s*** hit the fan, just in case... For example when a big hit prod that directly impacted users upon deployment.\n\nI was always payed for time on call (hourly) and literally only did anything after hours once.\n\nWhile on salary gigs, it's basically been a, \"so you were in call 8 hours this week, so take Friday off\" kind of thing.\n\nThis is strictly anecdotal, but every place I've been has been respectful of the give and take, if that makes sense.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uoc2t3", "question": "To my understanding the if-let is only useful when you want to match only one thing and do something with it while ignoring everything else.\n\nThe pattern is much harder to read first of all and the main argument for it is that it is less boilerplate but from what I can see we are just adding one extra line if we go with the normal match expressions.\n\nSo I feel like for saving one line we are going with this bit of a weird syntax. I am sure with more experience the syntax will not feel weird but again the benefits seem very less here. The normal approach works just fine and is much more readable.\n\nExample -\n\n fn main() {\n let dice = 3;\n \n match dice {\n 3 => println!(\"Hello\"),\n _ => (),\n }\n \n if let 3 = dice {\n println!(\"hello\")\n }\n }", "comment": "You are correct that if-let is for matching a single pattern but there is more to it.\n\nFirstly, I will admit that the syntax is weird in your example. The `if let 3 = dice` doesn't read very well but this is not what if-let was designed for. Your example should use `if dice == 3` so there is no reason for the if-let. Instead you would typically have something like `if let Some(foo) = bar` or `if let Ok(foo) = bar` which reads much better.\n\nSecondly, it may be one extra line in your example but if we try to do more things when a pattern is matched then we end up with three extra lines and code that is indented another level. Additionally the `_ => ()` is just visual noise. For example, compare this:\n\n match bar {\n Some(foo) => {\n println!(\"one {}\", foo);\n println!(\"two {}\", foo);\n },\n _ => (),\n }\n\nTo this:\n\n if let Some(foo) = bar {\n println!(\"one {}\", foo);\n println!(\"two {}\", foo); \n }\n\nSo really what you choose depends on what you are doing but in this scenario the second option is much cleaner.", "upvote_ratio": 360.0, "sub": "LearnRust"} +{"thread_id": "uoc2t3", "question": "To my understanding the if-let is only useful when you want to match only one thing and do something with it while ignoring everything else.\n\nThe pattern is much harder to read first of all and the main argument for it is that it is less boilerplate but from what I can see we are just adding one extra line if we go with the normal match expressions.\n\nSo I feel like for saving one line we are going with this bit of a weird syntax. I am sure with more experience the syntax will not feel weird but again the benefits seem very less here. The normal approach works just fine and is much more readable.\n\nExample -\n\n fn main() {\n let dice = 3;\n \n match dice {\n 3 => println!(\"Hello\"),\n _ => (),\n }\n \n if let 3 = dice {\n println!(\"hello\")\n }\n }", "comment": "Let if may be very nice with RAII object like a lock; instead of 3 you have the lock acquire, and if successful it will be automatically released at the end of the if.", "upvote_ratio": 50.0, "sub": "LearnRust"} +{"thread_id": "uoc2t3", "question": "To my understanding the if-let is only useful when you want to match only one thing and do something with it while ignoring everything else.\n\nThe pattern is much harder to read first of all and the main argument for it is that it is less boilerplate but from what I can see we are just adding one extra line if we go with the normal match expressions.\n\nSo I feel like for saving one line we are going with this bit of a weird syntax. I am sure with more experience the syntax will not feel weird but again the benefits seem very less here. The normal approach works just fine and is much more readable.\n\nExample -\n\n fn main() {\n let dice = 3;\n \n match dice {\n 3 => println!(\"Hello\"),\n _ => (),\n }\n \n if let 3 = dice {\n println!(\"hello\")\n }\n }", "comment": "As you said, it's less boilerplate, and most of the time I think it reads nicer, especially when destructuring something. `if let Some(n) = m {}` reads to me as \"if this thing contains something, do that\".", "upvote_ratio": 40.0, "sub": "LearnRust"} +{"thread_id": "uocb0v", "question": "Original post: https://www.reddit.com/r/cscareerquestions/comments/u9hl3q/plan_for_an_older_software_engineer_with_a_long/\n\nI just accepted a position as a mid level software engineer! Thank you Reddit for all your advice. I thought the whole process would have taken at least 6 months, but it only took a little over a month. I applied to maybe 100+ positions, got around 10-15 interviews, received 3 offers and accepted an offer I could not refuse. The pay is high, position is fully remote, and the engineering culture, on paper, seemed to fit me. \n\nFor those interested, here are some things I did during this month. \n\nI coded everyday in Java. I was rusty and had to get used to new features like streams, lambda functions, annotations and diamond operators. The last time I worked, we were using java 4 or 5.\n\nI did leetcode enough so I could do most of the beginner problems. I still cannot solve an intermediate problem. I was able to pass the coding interviews given and all were beginner level. \n\nBuilt a todo list webapp and microservice using plain servlets, jdbc, and jsp. I initially tried using spring boot, but there was too much magic going on. After I built my barebones app, I ported it over to spring boot with thymeleaf and hibernate.\n\nI finished the mooc.fi java 1 and 2 course. Highly recommended. \n\nI worked on the gilded rose and tennis refactoring problems on Emily Bache\u2019s github. This helped me really understand and articulate the 4 pillars of OO, the SOLID principles, and some design patterns.\n\nI applied to all the full stack/backend entry level and mid level jobs on indeed. I didn\u2019t have time to optimize my LinkedIn, so I had no one contacting me on there.\n\nPracticed interviewed questions and took notes on where I needed to improve during real life interviews. \n\nThings I wanted to do but didn\u2019t have time for:\n\nOptimize my resume\n\nOptimize my linkedin\n\nRelearn react to build a responsive todo list front end\n\nI hope this helps someone!", "comment": "Clearly muscle memory kicked in...", "upvote_ratio": 160.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocb0v", "question": "Original post: https://www.reddit.com/r/cscareerquestions/comments/u9hl3q/plan_for_an_older_software_engineer_with_a_long/\n\nI just accepted a position as a mid level software engineer! Thank you Reddit for all your advice. I thought the whole process would have taken at least 6 months, but it only took a little over a month. I applied to maybe 100+ positions, got around 10-15 interviews, received 3 offers and accepted an offer I could not refuse. The pay is high, position is fully remote, and the engineering culture, on paper, seemed to fit me. \n\nFor those interested, here are some things I did during this month. \n\nI coded everyday in Java. I was rusty and had to get used to new features like streams, lambda functions, annotations and diamond operators. The last time I worked, we were using java 4 or 5.\n\nI did leetcode enough so I could do most of the beginner problems. I still cannot solve an intermediate problem. I was able to pass the coding interviews given and all were beginner level. \n\nBuilt a todo list webapp and microservice using plain servlets, jdbc, and jsp. I initially tried using spring boot, but there was too much magic going on. After I built my barebones app, I ported it over to spring boot with thymeleaf and hibernate.\n\nI finished the mooc.fi java 1 and 2 course. Highly recommended. \n\nI worked on the gilded rose and tennis refactoring problems on Emily Bache\u2019s github. This helped me really understand and articulate the 4 pillars of OO, the SOLID principles, and some design patterns.\n\nI applied to all the full stack/backend entry level and mid level jobs on indeed. I didn\u2019t have time to optimize my LinkedIn, so I had no one contacting me on there.\n\nPracticed interviewed questions and took notes on where I needed to improve during real life interviews. \n\nThings I wanted to do but didn\u2019t have time for:\n\nOptimize my resume\n\nOptimize my linkedin\n\nRelearn react to build a responsive todo list front end\n\nI hope this helps someone!", "comment": "How long did it take you to do all of this?", "upvote_ratio": 110.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocb0v", "question": "Original post: https://www.reddit.com/r/cscareerquestions/comments/u9hl3q/plan_for_an_older_software_engineer_with_a_long/\n\nI just accepted a position as a mid level software engineer! Thank you Reddit for all your advice. I thought the whole process would have taken at least 6 months, but it only took a little over a month. I applied to maybe 100+ positions, got around 10-15 interviews, received 3 offers and accepted an offer I could not refuse. The pay is high, position is fully remote, and the engineering culture, on paper, seemed to fit me. \n\nFor those interested, here are some things I did during this month. \n\nI coded everyday in Java. I was rusty and had to get used to new features like streams, lambda functions, annotations and diamond operators. The last time I worked, we were using java 4 or 5.\n\nI did leetcode enough so I could do most of the beginner problems. I still cannot solve an intermediate problem. I was able to pass the coding interviews given and all were beginner level. \n\nBuilt a todo list webapp and microservice using plain servlets, jdbc, and jsp. I initially tried using spring boot, but there was too much magic going on. After I built my barebones app, I ported it over to spring boot with thymeleaf and hibernate.\n\nI finished the mooc.fi java 1 and 2 course. Highly recommended. \n\nI worked on the gilded rose and tennis refactoring problems on Emily Bache\u2019s github. This helped me really understand and articulate the 4 pillars of OO, the SOLID principles, and some design patterns.\n\nI applied to all the full stack/backend entry level and mid level jobs on indeed. I didn\u2019t have time to optimize my LinkedIn, so I had no one contacting me on there.\n\nPracticed interviewed questions and took notes on where I needed to improve during real life interviews. \n\nThings I wanted to do but didn\u2019t have time for:\n\nOptimize my resume\n\nOptimize my linkedin\n\nRelearn react to build a responsive todo list front end\n\nI hope this helps someone!", "comment": ">\tI worked on the gilded rose and tennis refactoring problems on Emily Bache\u2019s github. This helped me really understand and articulate the 4 pillars of OO, the SOLID principles, and some design patterns.\n\nFirst I\u2019m hearing about this GitHub - this looks really neat.", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocb5c", "question": "Should I be entirely upfront from the beginning in interviews and say I was fired, even if they don't ask, or should I lie by omission?\n\nEven if I get through the interviews without revealing it, eventually if they were to offer a job, they would ask for references, at which point I would have to say I don't have one.\n\nIt's a dilemma because if I say at the beginning, they won't even give me a chance. If I say it at the end, they will get the impression that I am a liar.\n\nI was fired just due to not being able to keep up with tasks and deadlines. \n\nCan someone guide me on what to do?", "comment": "Just say they ran out of funding for my position and had to restructure", "upvote_ratio": 1690.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocb5c", "question": "Should I be entirely upfront from the beginning in interviews and say I was fired, even if they don't ask, or should I lie by omission?\n\nEven if I get through the interviews without revealing it, eventually if they were to offer a job, they would ask for references, at which point I would have to say I don't have one.\n\nIt's a dilemma because if I say at the beginning, they won't even give me a chance. If I say it at the end, they will get the impression that I am a liar.\n\nI was fired just due to not being able to keep up with tasks and deadlines. \n\nCan someone guide me on what to do?", "comment": "Be honest but vague and hope for the best.", "upvote_ratio": 830.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocb5c", "question": "Should I be entirely upfront from the beginning in interviews and say I was fired, even if they don't ask, or should I lie by omission?\n\nEven if I get through the interviews without revealing it, eventually if they were to offer a job, they would ask for references, at which point I would have to say I don't have one.\n\nIt's a dilemma because if I say at the beginning, they won't even give me a chance. If I say it at the end, they will get the impression that I am a liar.\n\nI was fired just due to not being able to keep up with tasks and deadlines. \n\nCan someone guide me on what to do?", "comment": "Companies almost never ask for references. Background checks almost never reveal why employment status changed. Just say it wasn\u2019t a good fit or other vague bullshit.", "upvote_ratio": 610.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocctn", "question": "The phone just arrived, it won't boot up. I tried charging it, nothing shows on the screen. After 20 mintues, holding the power button doesn't do anything. Holding power and volume down causes it to vibrate once, nothing on the screen. Did I get a dud? Any possible fixes?", "comment": "Try letting it charge overnight. If it still won't come up, you've been had.", "upvote_ratio": 80.0, "sub": "AndroidQuestions"} +{"thread_id": "uocdej", "question": "How is it possible radio waves can potentially reach other planets years from now but I lose signal to my local radio station after driving 50 or so miles away from it?", "comment": "Signal power and a difference in decoding objectives.\n\nAll point-to-point communications are governed by the [signal-to-noise ratio](https://en.wikipedia.org/wiki/Signal-to-noise_ratio) at the decoder. EM waves follow the [inverse-square law](https://en.wikipedia.org/wiki/Inverse-square_law) in terms of signal power. For an intuitive understanding, consider omnidirectional transmission. The further the wave travels, the larger the radius of the sphere, and consequently the larger the area the signal power is divided over.\n\nThe initial signal power is determined by a number of factors as well, such as number of antenna, size of antenna, power fed to the antenna and so on. For a single antenna, the most common approximation used for the relationship between input and output power is [Frii's transmission equation](https://en.wikipedia.org/wiki/Friis_transmission_equation). \n\nThis brings us to [noise](https://en.wikipedia.org/wiki/Noise_(signal_processing\\)). This is what replaces the signal as you drive away. Noise is just a random signal that is ever-present in communications. One textbook, *Communication Systems* by Carlson, Crilly, and Rutledge, describes this noise as being due to the necessary random motion of particles at temperatures above absolute zero. This statement could be a post hoc rationalization though; it is not generally taught how to quantitatively predict the noise power for a given environment, only how to empirically calculate it.\n\nRegardless, the noise power will eventually eclipse the signal power as the signal power weakens. In AM/FM radio stations this presents as an increase in static.\n\nThis takes us to the (slight) mismatch in operational criteria. With the AM/FM radio station, you consider the system operational when you can discern the signal. This does not mean the signal can not be *detected* though or that the signal is not reaching you. Simply that its fidelity has fallen to the point where it should be treated with contempt and disgust. On the other hand, with signals reaching different planets, the general concern is more about detecting the signals than perfectly reconstructing them. \n\nThis may sound like a small difference but consider the following results for the transmission of secret information over a wiretap channel. When the security of the information is measured by the wiretapper's inability to *decode* the information, [the maximum amount of information that can be transmitted reliably is a linear function of the symbols sent (theorem 1, PDF)](https://ee.stanford.edu/~hellman/publications/29.pdf). On the other hand, when measured by the wiretapper's inability to *detect* the signal, [the maximum amount of information that can be transmitted reliably is sublinear function (square root) of the symbols sent (theorem 1.2, PDF)](https://arxiv.org/pdf/1202.6423.pdf).", "upvote_ratio": 260.0, "sub": "AskScience"} +{"thread_id": "uocdej", "question": "How is it possible radio waves can potentially reach other planets years from now but I lose signal to my local radio station after driving 50 or so miles away from it?", "comment": "There are a number of differences:\n\nYou:\n\n1. Obstructions, including the earth, in the way of distant signals\n2. Tiny antenna, possibly embedded in the frame of your car or windshield\n3. You care about the audio derived from the signal, which means receiving both the carrier wave and its more subtle modulations with sufficiently high fidelity\n\nAliens:\n\n1. Essentially direct line of sight to half of the planet at a given time\n2. Potentially a huge antenna or an antenna array listening\n3. The presence of a carrier wave is probably sufficient to make a claim of some extraterrestrial discovery, and that's easier to pick out of the noise than a more complex information encoding scheme layered on top of that", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "uocdej", "question": "How is it possible radio waves can potentially reach other planets years from now but I lose signal to my local radio station after driving 50 or so miles away from it?", "comment": "You lost the signal because your antenna is too small, the radio waves are still there.", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "uockmn", "question": "I see so many posts here about FAANG and TC, salary, stock options, where you should be at what point in your career, what program will get you there, how much leetcode to grind for interviews etc., but I don't see a lot about purpose and motivation beyond compensation. Is anyone here working on something they really believe in, that is making the world better: non-profit, medicine, education maybe? And not just the general tech-optimist TED-style speech about how all of this is making the world more connected, how crypto will end tyranny, blah blah blah. I see so many folks trying so hard to get in at the FAANG companies and personally, I wouldn't work for three of them, simply on ethical grounds. Nothing against you if you do, but that isn't for me. Anyway, I'd love to hear anyone's advice or story about a more purpose-driven career path. What jobs have you had, or are you striving for, where you can make a difference where you feel it is needed?", "comment": "You have to understand that the vast majority of people on this sub are young kids who are still in college, and have yet to actually join the work-force. That's why there is so much FAANG worship.\n\nYou get over that real quick once you enter the work-force and realize there's a lot more to having a good career than aiming for FAANG. Better yet, you see that the most when you actually DO join a FAANG and realize it's nothing special.", "upvote_ratio": 490.0, "sub": "CSCareerQuestions"} +{"thread_id": "uockmn", "question": "I see so many posts here about FAANG and TC, salary, stock options, where you should be at what point in your career, what program will get you there, how much leetcode to grind for interviews etc., but I don't see a lot about purpose and motivation beyond compensation. Is anyone here working on something they really believe in, that is making the world better: non-profit, medicine, education maybe? And not just the general tech-optimist TED-style speech about how all of this is making the world more connected, how crypto will end tyranny, blah blah blah. I see so many folks trying so hard to get in at the FAANG companies and personally, I wouldn't work for three of them, simply on ethical grounds. Nothing against you if you do, but that isn't for me. Anyway, I'd love to hear anyone's advice or story about a more purpose-driven career path. What jobs have you had, or are you striving for, where you can make a difference where you feel it is needed?", "comment": "The worst job I had was one that I joined \"for the greater good\", a biotech startup doing DNA sequencing to help physicians find early indicators of serious diseases. I took a pay cut to join and left after 4 months. Disorganized mess and toxic work environment.\n\nObviously not all companies trying to do good things are like that, just don't get tunnel vision like I did. After all it's still just a job.", "upvote_ratio": 360.0, "sub": "CSCareerQuestions"} +{"thread_id": "uockmn", "question": "I see so many posts here about FAANG and TC, salary, stock options, where you should be at what point in your career, what program will get you there, how much leetcode to grind for interviews etc., but I don't see a lot about purpose and motivation beyond compensation. Is anyone here working on something they really believe in, that is making the world better: non-profit, medicine, education maybe? And not just the general tech-optimist TED-style speech about how all of this is making the world more connected, how crypto will end tyranny, blah blah blah. I see so many folks trying so hard to get in at the FAANG companies and personally, I wouldn't work for three of them, simply on ethical grounds. Nothing against you if you do, but that isn't for me. Anyway, I'd love to hear anyone's advice or story about a more purpose-driven career path. What jobs have you had, or are you striving for, where you can make a difference where you feel it is needed?", "comment": "I thought I was part of the \"work to live\" crowd, but after only 1.5 years at my current company working on shit nobody on our team cares about, and that'll obviously crash and burn some years down the line, I realized I really wasn't.\n\nI respect the people who can grind it out for the comp. But to me work consumes over half of your day, and if you don't enjoy what you make or the people you're working with then that is fucking misery.", "upvote_ratio": 180.0, "sub": "CSCareerQuestions"} +{"thread_id": "uocoi1", "question": "I\u2019ve never been there, so as I\u2019m watching this show I\u2019m curious how accurate the setting is.", "comment": "I think you'll find that most lakes, anywhere, are like this. \n\nThe houses *on* the lake are nice, those people are rich, but the houses across the street? Not so much. After all, they aren't lake front, they don't have a dock. \n\nEven more so for touristy areas.", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "uocoi1", "question": "I\u2019ve never been there, so as I\u2019m watching this show I\u2019m curious how accurate the setting is.", "comment": "Other parts of the Ozarks might be, but the Lake of the Ozarks is pretty touristy and has a lot of rich people vacation homes and boats.", "upvote_ratio": 270.0, "sub": "AskAnAmerican"} +{"thread_id": "uocoi1", "question": "I\u2019ve never been there, so as I\u2019m watching this show I\u2019m curious how accurate the setting is.", "comment": "I\u2019m from a couple hours north of the Ozarks (still in the same state) and honestly the whole state is trashy AF overall. Lake of the Ozarks is like the poor man\u2019s Florida or Cabo. Not a spring break destination for the rich and famous, but is good fun for the not-rich and unfamous. I have family in the Ozarks and they are the white-trashiest part of our family tree. Of course there are still nice parts and places, but overall Missouri is great at being trashy \n\nStay out of Missouri. (But I\u2019ll still get sad when other people talk shit about it because it\u2019s home).\n\nEdited for errors", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "uod3bq", "question": "Do you guys warn drivers about cops by blinking brights?", "comment": "no, but I mark them down on Google maps :)", "upvote_ratio": 6300.0, "sub": "AskAnAmerican"} +{"thread_id": "uod3bq", "question": "Do you guys warn drivers about cops by blinking brights?", "comment": "Cops or anything that would make driving conditions unsafe like seeing wildlife on the side of the road or a breakdown.", "upvote_ratio": 3540.0, "sub": "AskAnAmerican"} +{"thread_id": "uod3bq", "question": "Do you guys warn drivers about cops by blinking brights?", "comment": "Usually I blink brights at someone who has their brights on when they shouldn\u2019t. There are so few speed traps near me that I don\u2019t think I\u2019ve ever warned people about them. Even then they are usually marked it in Waze before I even get to them.", "upvote_ratio": 2530.0, "sub": "AskAnAmerican"} +{"thread_id": "uod4o0", "question": "Hi everyone!\n\nFirst up, I want to say thank you to all the amazing people in this forum: without some of the guides and advice on here, I wouldn't have been able to transition into a Help Desk position as I have. \n\nNow that I'm at this company, I have an incredible $3000 PD budget available to me. My goal is to become a system administrator and eventually explore a career in Cloud Engineering or DevOps. I couldn't seem to find anything like a reputable Bootcamp that you might see for careers in software engineering. I'd love to take something like a class or a bootcamp because i've found it's much tougher to self-study for certs than it is to learn in a class environment.\n\nDoes anyone have any advice or experience with similar bootcamps or opportunities for study? Would love any insight! Thanks very much.", "comment": "**Microsoft Learn.** Use a few hundred for two or three good certs. **AWS**, two or three hundred there too. Bootcamps are bad idea in general. [https://www.cybrary.it/](https://www.cybrary.it/) Try for $50, if like then up to $300 for a year subscription. Thoughts?", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uod4p0", "question": "I have been in the military for 7 years working as a welder/machinist. I have always been interested in starting something in the IT field but had a few bumps in the road of life. I'm now in a position in my life and career where my family and I are financially stable and I will be moving back to the mid west soon. I have been into contact with a cyber security friend of mine for years and he just got out and got a very nice well payed job (110k) and explained to me these were the things he would do if he had to start over.\n\n1.Enroll for a IT degree plan with WGU\n\n2. CompTIA A+ and CompTIA Network+ and CompTIA Sec +\n\n3. Now I'm able to focus on a specific area like Cybersecurity, Software engineering, Data Analytics, server admin., etc.\n\nI still have about 6-7 months before I get out so starting before I get out is ideal. I'm curious to see if anybody has any suggestions on what path I should take or any addition information that would help. Also, I know I will not be able to get that type of money for a long time. I just want to feel confident on how I approach this career change. Thanks!", "comment": "Start school before you get out. Use as much TA before you use the gi bill.\n\nKnow that you can file for unemployment while going to school on the gi bill. Talk to your schools counselor about that. \n\nHave a good resume. Military eval style writing ain't it. If you have to, pay someone to write you one. \n\nKnow that the rent checks you get from the gi bill is based on the zip code of your school. It may be more financially wise to pay out of pocket for wgu and save the gi bill for traditional school.\n\nI advise to go to a traditional school first if the school has a good IT program. One in my area did.\n\nDon't expect to learn alot from wgu, it's mostly there to quickly get a degree and certs. There's no real hands on. \n\nI transitioned after 10 years, if my dumbass can do it, you can too. I had one 3 month IT job getting 21 an hour then jumped to 70k after I got my ccna. You got this.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uod4p0", "question": "I have been in the military for 7 years working as a welder/machinist. I have always been interested in starting something in the IT field but had a few bumps in the road of life. I'm now in a position in my life and career where my family and I are financially stable and I will be moving back to the mid west soon. I have been into contact with a cyber security friend of mine for years and he just got out and got a very nice well payed job (110k) and explained to me these were the things he would do if he had to start over.\n\n1.Enroll for a IT degree plan with WGU\n\n2. CompTIA A+ and CompTIA Network+ and CompTIA Sec +\n\n3. Now I'm able to focus on a specific area like Cybersecurity, Software engineering, Data Analytics, server admin., etc.\n\nI still have about 6-7 months before I get out so starting before I get out is ideal. I'm curious to see if anybody has any suggestions on what path I should take or any addition information that would help. Also, I know I will not be able to get that type of money for a long time. I just want to feel confident on how I approach this career change. Thanks!", "comment": "I cannot stress this enough:\n\nTake TAPS IMMEDIATELY. Along with that, look so see if you are still eligible for DoD Skill bridge. Do this ASAP.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uod4p0", "question": "I have been in the military for 7 years working as a welder/machinist. I have always been interested in starting something in the IT field but had a few bumps in the road of life. I'm now in a position in my life and career where my family and I are financially stable and I will be moving back to the mid west soon. I have been into contact with a cyber security friend of mine for years and he just got out and got a very nice well payed job (110k) and explained to me these were the things he would do if he had to start over.\n\n1.Enroll for a IT degree plan with WGU\n\n2. CompTIA A+ and CompTIA Network+ and CompTIA Sec +\n\n3. Now I'm able to focus on a specific area like Cybersecurity, Software engineering, Data Analytics, server admin., etc.\n\nI still have about 6-7 months before I get out so starting before I get out is ideal. I'm curious to see if anybody has any suggestions on what path I should take or any addition information that would help. Also, I know I will not be able to get that type of money for a long time. I just want to feel confident on how I approach this career change. Thanks!", "comment": "If you want to gain as much knowledge as possible through a bootcamp, look into the VA's Vet Tech program. It's similar to the GI Bill, with monthly BAH pay outs. There's also universities that offer IT internships while you are a student. Start studying some of the modules in https://fedvte.usalearning.gov/. This can give you a solid start on InfoSec topics and knowledge. I would recommend to start studying Security+. If you ever want a government IT job, you'll need it. If you don't want to take classes before you get out,, buy a training module from https://www.udemy.com/. They always have a sale on their training videos. Get one for Sec+ and learn it. \n\nTry and get your CompTIA A+ and Sec+ before getting out. This will definitely help you get an entry level IT job you can work while doing WGU.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uodeot", "question": "I'm in my second year of Helpdesk/Support in my career. \n\nJust curious, how long do employees stay at a company before moving on in IT?", "comment": "In IT i have found i can move my IT Career as fast as i can learn/grow. If you sit in your chair like a mushroom, you're not going anywhere. If you apply yourself to learn in your off-time (or even better, take a night shift when nothing is going on and learn while getting paid.) you can start moving pretty quick. \n\nI became a sys admin at 4 years, my boss is an IT Director at 6", "upvote_ratio": 150.0, "sub": "ITCareerQuestions"} +{"thread_id": "uodeot", "question": "I'm in my second year of Helpdesk/Support in my career. \n\nJust curious, how long do employees stay at a company before moving on in IT?", "comment": "At my first company, I stayed for almost 6 years, but I was still getting promotions every 6 months to 1.5 years.\n\nSince leaving, I've been job hopping about once a year, lots of good opportunities out there right now.", "upvote_ratio": 110.0, "sub": "ITCareerQuestions"} +{"thread_id": "uodeot", "question": "I'm in my second year of Helpdesk/Support in my career. \n\nJust curious, how long do employees stay at a company before moving on in IT?", "comment": "I stay 3-4 years and then evaluate whether I'm still enjoying the work and if the pay is up to where I want it to be.", "upvote_ratio": 60.0, "sub": "ITCareerQuestions"} +{"thread_id": "uodjfh", "question": "Sorry if the title is poorly worded. Earth is absolutely massive in comparison to say, the asteroid that killed the dinosaurs. But that same asteroid still caused a worldwide extinction event. Why are some asteroids world ending despite being so small in comparison to Earth?", "comment": "That one wasn't that small, it's guessed to have been about 12 km wide. That's the size of some small cities. It's not about the damage it does directly, rather, the soot and debris thrown up into the upper atmosphere that pretty much blocks out the sun. Look what one little volcano can do, now imagine the whole mountain slamming I to the ground at 30k miles epr hour.", "upvote_ratio": 100.0, "sub": "AskScience"} +{"thread_id": "uodjfh", "question": "Sorry if the title is poorly worded. Earth is absolutely massive in comparison to say, the asteroid that killed the dinosaurs. But that same asteroid still caused a worldwide extinction event. Why are some asteroids world ending despite being so small in comparison to Earth?", "comment": "Destroying the planet Earth and destroying the ecosystem of life on Earth are two radically different things. The former is a gigantic lump of rock and iron bound into a sphere by the force of its own gravity, requiring nothing from the outside universe to continue its own existence. The latter is a complex set of natural processes more-or-less at equilibrium with each other, which require a constant energy input and stable conditions to maintain stable operation. The biosphere is incredibly tiny and fragile compared to the planet at large, and exists at the thin, vulnerable boundary between thousands of miles of molten rock and the empty, endless vacuum of space.\n\nThe planet itself was basically unharmed by the Chicxulub asteroid impact. It wasn't thrown out of its orbit, or knocked on its side, and it didn't gain or lose any significant fraction of its mass. The worst damage was a (relatively) small hole in the crust which has since filled in, with the debris being kicked up into the high atmosphere and raining down as meteors across the planet. To the Earth, the asteroid impact was a minor dent that has mostly buffed out.", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "uodjfh", "question": "Sorry if the title is poorly worded. Earth is absolutely massive in comparison to say, the asteroid that killed the dinosaurs. But that same asteroid still caused a worldwide extinction event. Why are some asteroids world ending despite being so small in comparison to Earth?", "comment": "Yes, the earth is massive. But most life relies upon the thin atmosphere that clings around the earth. Even a small asteroid hitting the earth at high speed can put so much dust into the atmosphere that even the plants struggle to see the sun, and die.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "uodlcd", "question": "[Assembly] Can someone explain why the instruction AL := AL * 5 stores the hexadecimal of 750 in the AH register instead of 1250?", "comment": "It looks like a typo. \n\nIt says *5 on the first line but *3 on the second. \n\nI bet the professor was in the middle of making a small change from last year and got interrupted.\n\nBut even then it\u2019s screwed up (for x86) because AL is only 8 bits. Max value is FF", "upvote_ratio": 90.0, "sub": "AskComputerScience"} +{"thread_id": "uodlcd", "question": "[Assembly] Can someone explain why the instruction AL := AL * 5 stores the hexadecimal of 750 in the AH register instead of 1250?", "comment": "It's been a while since I dabbled in assembly, but...this presentation looks wrong. Setting AL to anything would not change the contents of AH. Trying to understand 5\\*AL then 3\\*250, those are different things. If 3\\*250 is correct then AL <- 0xEE is correct, the 0x200 is lost because AL is 8 bits. It would not carry into AH unless you were doing arithmetic on [E]AX.", "upvote_ratio": 60.0, "sub": "AskComputerScience"} +{"thread_id": "uodlcd", "question": "[Assembly] Can someone explain why the instruction AL := AL * 5 stores the hexadecimal of 750 in the AH register instead of 1250?", "comment": "It's pseudocode, so it's hard to know exactly what they intend it to do. The 8-bit x86 MUL instruction multiples AL by another byte value, and the result goes in the 16-bit AX. So the pseudo-code as written does not directly correspond to real x86 instructions.\n\nMy guess is they meant to say AX := 5 \\* AL. Or it's a trick question, and you have to know that AH gets modified by an x86 multiply. In either case, the answer is wrong, and the result should be 07FE02EE.\n\nThe other possibility is the pseudocode is supposed to be some higher level language, and they mean for the high byte of the multiplication to be thrown away. And then the result should be 07FE2FEE. \n\nIn either case is their answer incorrect.", "upvote_ratio": 50.0, "sub": "AskComputerScience"} +{"thread_id": "uodugr", "question": " Do lead devs and hiring managers really care about a Github page with tons of commits? It seems that a lot of job postings I see they're more interested in specific knowledge of frameworks, libraries, and their specific stack, personally, I think this is a mistake but this is what I've seen. Does a good Github page make up for a bad tech assessment, break in employment, or portfolio site?", "comment": "GitHubs and websites are great supplements but don\u2019t make up the meat of what you should be bringing to a job. Your experience in the tech stack they use is probably weighed more heavily than any of those other things.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uodvvi", "question": "how many of you consider yourselves conservative/right leaning and aren't religious?", "comment": "Compared to the average reddit poster, I'd probably considered conservative. I consider myself independent left leaning, but I absolutely despise both parties even if I typically agree with one more often than the other", "upvote_ratio": 970.0, "sub": "AskAnAmerican"} +{"thread_id": "uodvvi", "question": "how many of you consider yourselves conservative/right leaning and aren't religious?", "comment": "I'm the inverse. Religious but not right wing.", "upvote_ratio": 420.0, "sub": "AskAnAmerican"} +{"thread_id": "uodvvi", "question": "how many of you consider yourselves conservative/right leaning and aren't religious?", "comment": "Also right leaning/registered Republican and not religious. Was raised Christian though, and that's probably why I'm not religious anymore.\n\nBeing forced to go to church kinda turned me off from it.", "upvote_ratio": 320.0, "sub": "AskAnAmerican"} +{"thread_id": "uoe13j", "question": "I guess this is just me wanting to vent. I had a good opportunity with a company that pays really well, and they wanted me to do a small coding challenge to test my skills before proceeding. Knowing this is unfortunately the norm, I reluctantly agreed and decided to take it, which they said would take me on average about 1.5 hours. \n\nSince this is a web-based company, I was thinking, oh, they probably want me to do some sort of PHP MVC thing. Nope. The test was for me to figure out some incredibly difficult mathematic algorithm, which was basically writing a function to figure out the amount of all possible solutions that you can get when adding any number of numbers in an array together to equal the total amount. For example, if you have the number 4 and pass in the numbers 1 and 2, you should get 3 total sums.\n\nBerate me if you want, but I could not figure this out, and they told me I could not use StackOverflow or any possible helpful links either. I personally do not see the real-world value of knowing this type of function at all, and I have never needed to run across something like that ever. Usually for something that heavily involved in an algorithm, I've been given the algorithm beforehand by someone much better at math than me, and I just convert it into a function. So, I just feel like I wasn't even given the opportunity to even show the work I can do with a lot of experience in their stack, just because I wasn't given a true aptitude test.\n\n&#x200B;\n\nTLDR: I feel cheated out of a job because a pre-screen test was heavily algorithm/math based instead of being based off of the work the company actually does.", "comment": ">Usually for something that heavily involved in an algorithm, I've been given the algorithm beforehand by someone much better at math than me, and I just convert it into a function. So, I just feel like I wasn't even given the opportunity to even show the work I can do with a lot of experience in their stack, just because I wasn't given a true aptitude test.\n\nYou're not going to like this answer but you need to hear it in order to improve: you weren't cheated out of anything. They wanted to see how you solve problems that aren't immediately obvious to answer and you weren't able to. That *is* something you'll be expected to do on the job.\n\nWhen I give coding assessments sometimes more I'm interested in how a candidate approaches solving a problem than their answer. If they asked questions, talked through their reasoning, wrote pseudocode first, etc.\n\nI've hired people who didn't pass all the coding exercises because they were able to show how well they work with unknowns and under pressure. I'm not just interested in what you know how to do, I'm interested in how you would perform on my team. Knowing a framework or a stack is a given for most developers.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uoe13j", "question": "I guess this is just me wanting to vent. I had a good opportunity with a company that pays really well, and they wanted me to do a small coding challenge to test my skills before proceeding. Knowing this is unfortunately the norm, I reluctantly agreed and decided to take it, which they said would take me on average about 1.5 hours. \n\nSince this is a web-based company, I was thinking, oh, they probably want me to do some sort of PHP MVC thing. Nope. The test was for me to figure out some incredibly difficult mathematic algorithm, which was basically writing a function to figure out the amount of all possible solutions that you can get when adding any number of numbers in an array together to equal the total amount. For example, if you have the number 4 and pass in the numbers 1 and 2, you should get 3 total sums.\n\nBerate me if you want, but I could not figure this out, and they told me I could not use StackOverflow or any possible helpful links either. I personally do not see the real-world value of knowing this type of function at all, and I have never needed to run across something like that ever. Usually for something that heavily involved in an algorithm, I've been given the algorithm beforehand by someone much better at math than me, and I just convert it into a function. So, I just feel like I wasn't even given the opportunity to even show the work I can do with a lot of experience in their stack, just because I wasn't given a true aptitude test.\n\n&#x200B;\n\nTLDR: I feel cheated out of a job because a pre-screen test was heavily algorithm/math based instead of being based off of the work the company actually does.", "comment": "> Usually for something that heavily involved in an algorithm, I've been given the algorithm beforehand\n\nThat's all well and good unless you happen to be applying to be the guy that gives other people the algorithm.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uoe2et", "question": "I recently got an offer at FAANG 1 and then a recruiter at FAANG 2 (which I'm more interested in working for) reached out to me. I told the F2 recruiter about my F1 offer deadline (was like two weeks away at this point) and he said he would jump me straight to the onsite. Passed it and received the verbal offer at F2, but with the caveat they want me to have 6 more months of industry experience before moving onto team matching. Then after team matching I would receive the official offer letter. So essentially asking me to work at F1 for 6 months then leave. Is this normal? Definitely excited about both opportunities, especially the second, but find what they're asking of me pretty strange. If anyone has advice for how to deal with this situation it would be greatly appreciated. This will be my first role in the industry and could use some advice for how to proceed.\n\n&#x200B;\n\nEdit: Should have clarified earlier but I have no industry experience, not even internships", "comment": "You sure they\u2019re not telling you to reapply in 6 months? Cuz this is some dumb shit.", "upvote_ratio": 7080.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoe2et", "question": "I recently got an offer at FAANG 1 and then a recruiter at FAANG 2 (which I'm more interested in working for) reached out to me. I told the F2 recruiter about my F1 offer deadline (was like two weeks away at this point) and he said he would jump me straight to the onsite. Passed it and received the verbal offer at F2, but with the caveat they want me to have 6 more months of industry experience before moving onto team matching. Then after team matching I would receive the official offer letter. So essentially asking me to work at F1 for 6 months then leave. Is this normal? Definitely excited about both opportunities, especially the second, but find what they're asking of me pretty strange. If anyone has advice for how to deal with this situation it would be greatly appreciated. This will be my first role in the industry and could use some advice for how to proceed.\n\n&#x200B;\n\nEdit: Should have clarified earlier but I have no industry experience, not even internships", "comment": "You don't have an offer from F2.\n\nIf F1 is an acceptable offer, take it (and tell F2 you're taking it as a permanent thing, not for their six month drill). You may end up liking it. If you end up not liking it, you'll re-evaluate it and maybe consider F2. I say maybe because their behavior is very strange indeed. A large company would have zero problems w/ keeping you for those six month, if they are interested. Maybe at a lower level to be reconsidered after that time. Telling somebody to go somewhere else for six months is unheard of. But equally unheard of for a recruiter not being able to say \"the team was not convinced so we're not able to extend you an offer at this time\" so meh.", "upvote_ratio": 2970.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoe2et", "question": "I recently got an offer at FAANG 1 and then a recruiter at FAANG 2 (which I'm more interested in working for) reached out to me. I told the F2 recruiter about my F1 offer deadline (was like two weeks away at this point) and he said he would jump me straight to the onsite. Passed it and received the verbal offer at F2, but with the caveat they want me to have 6 more months of industry experience before moving onto team matching. Then after team matching I would receive the official offer letter. So essentially asking me to work at F1 for 6 months then leave. Is this normal? Definitely excited about both opportunities, especially the second, but find what they're asking of me pretty strange. If anyone has advice for how to deal with this situation it would be greatly appreciated. This will be my first role in the industry and could use some advice for how to proceed.\n\n&#x200B;\n\nEdit: Should have clarified earlier but I have no industry experience, not even internships", "comment": "I\u2019ve never heard that before. Are you working now?\n\nI wouldn\u2019t place much value on a verbal offer that\u2019s 6 months away, when we don\u2019t know what the economy will be like then.\n\nSeems like you really only have one option. Tell FAANG 2 that it\u2019s now or never. If they give you a written offer you\u2019ll accept it. Otherwise you\u2019ll take FAANG 1\u2019s offer and reevaluate in 6 months.", "upvote_ratio": 1190.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoe8cz", "question": "So this is kinda a gross and gruesome question, but it has been bugging me for a while.\n\nWhen we die, we decompose. This is because we are basically eaten by microorganisms, bugs, and scavengers. Like if you died on Mars, you wouldn't decompose because they don't have those organisms there.\n\nSo, how do thee decomposes \"know\" when to start decomposing you? Cause like, as far as I am aware, my eye doesn't feel like it's rotting.\n\nThe answer I came up with is that the decomposers don't \"know\". They constantly are eating away at us, but we just regenerate/heal at a faster rate. When we die we stop healing and therefore we decompose.\n\nIf that's the case, are we constantly rotting from the moment of birth, slowly being eaten away and decomposed our entire lives? Yikes if so but i am not really sure how it could be another way. What are your thoughts? Am I on the right track?", "comment": "Your own initial answer is mostly correct. Organisms involved in decomposition don\u2019t \u201cknow\u201d anything and are opportunists. But they aren\u2019t simply \u201ceating away at us\u201d all the time. We (and most organisms that decomposers eat) have active systems that prevent them from starting that process in the first place. Barriers such as skin keep them out initially. Any \u201choles\u201d we have are usually areas that can slough off mucous or are semi inhospitable to them. Finally, immune systems internally will keep them at bay. But at an organisms death, these systems stop working and the decomposers now are simply able to have unimpeded access.", "upvote_ratio": 50.0, "sub": "AskScience"} +{"thread_id": "uoe8eo", "question": "Let's say I have a dirty glass and a clean reservoir of water with a tap. I want to rinse my glass with it. What is the minimum flow rate to make sure no bacteria can make it back into the clean supply?", "comment": "Typical pathogenic bacteria have motility velocity in the 10-50\u03bcM/sec range. So any flowing tap would be far too fast for bacteria to ever swim up the stream.\n\nThe main concern would be contaminating the faucet and having biofilm growth and having water with no residual free chlorine.\n\nELI5: much, much more common for a dirty faucet to contaminate water/glass.", "upvote_ratio": 100.0, "sub": "AskScience"} +{"thread_id": "uoeddc", "question": "I work in a factory and we have an in house developed software system for managing our quality testing data. It recently was changed to prompt entry of the testers initials for each box filled and I'm not high up enough to argue that it's too frustrating to be practical.\n\nI can suggest a better system to replace it though, and the only one I've pitched that's gained any traction is having a webcam set up at each station and something like a QR code on each testers helmet with a unique ID that's scanned while they are in front of the computer and logs who entered the test automatically.\n\non a scale of \"easy to implement\" to \"totally insane\", how crazy an ask is this?\n\nI'd also love to hear any ideas to improve this or make it easier to implement.", "comment": "You might want to look into RFID cards or phone verification. There are companies that specialize in security authentication for everything from doors to elevators to vehicles. I don't have any experience actually working hands-on with implementing these technologies but I have used them in the past. I looked online and found this company but you need to get the prices quoted. https://www.getkisi.com/", "upvote_ratio": 40.0, "sub": "AskProgramming"} +{"thread_id": "uoeddc", "question": "I work in a factory and we have an in house developed software system for managing our quality testing data. It recently was changed to prompt entry of the testers initials for each box filled and I'm not high up enough to argue that it's too frustrating to be practical.\n\nI can suggest a better system to replace it though, and the only one I've pitched that's gained any traction is having a webcam set up at each station and something like a QR code on each testers helmet with a unique ID that's scanned while they are in front of the computer and logs who entered the test automatically.\n\non a scale of \"easy to implement\" to \"totally insane\", how crazy an ask is this?\n\nI'd also love to hear any ideas to improve this or make it easier to implement.", "comment": "> on a scale of \"easy to implement\" to \"totally insane\", how crazy an ask is this?\n\nI'd say the real question is, are you trying to solve a *technical* problem or a *human compliance* problem? If your quality testers (!) aren't able to reliably fill-in their initials into a box, how can you expect them to wear a correctly marked helmet and show it to the camera?\n\nThe technical side is easy though. Look at the OpenCV project for general computer vision stuff, and QR decoders on github for the code scanning specifics.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uoej0z", "question": "Hello everyone! So I\u2019m currently in the process of getting my bachelors degree. Well, I haven\u2019t started yet. Currently waiting for fall semester to start. Now this is where I need some help with everyone already in the IT field. I had the choice of getting my bachelors in Management Information Systems OR Computer Networks and Cybersecurity. I honestly have no professional IT experience other than building my own PCs for fun and use. I currently run my own business, so I do like the business side also. The one thing I am noticing though is that ALL jobs are asking for RIDICULOUS experience. In either IS or cybersecurity. Everyone wants 5+ years experience or sometimes even more. Makes me feel like it would be impossible to land a job in either lol. What\u2019s everyone\u2019s experience? What field of IT are you in and how did you get in? Any advice or tips in getting in the field? \n\nThanks for any advice. I hope to learn and hopefully figure out which direction I want to go in.", "comment": "Currently just graduated with my Bachelors in Information Systems and CyberSecurity lol. \n\nIn short, it does not matter. No hiring manager is going to look at your degree and hire or not hire you based off of your major. As long as it's tech related, you're set.\n\nYou can decide to be a software dev with a cyber security degree or be a network engineer with an Infosys degree.\n\nDo whatever interests you. If you end up going for your Master's, that is when you then may need to be specific about your major; as the degree is likely for promotional purposes.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoej0z", "question": "Hello everyone! So I\u2019m currently in the process of getting my bachelors degree. Well, I haven\u2019t started yet. Currently waiting for fall semester to start. Now this is where I need some help with everyone already in the IT field. I had the choice of getting my bachelors in Management Information Systems OR Computer Networks and Cybersecurity. I honestly have no professional IT experience other than building my own PCs for fun and use. I currently run my own business, so I do like the business side also. The one thing I am noticing though is that ALL jobs are asking for RIDICULOUS experience. In either IS or cybersecurity. Everyone wants 5+ years experience or sometimes even more. Makes me feel like it would be impossible to land a job in either lol. What\u2019s everyone\u2019s experience? What field of IT are you in and how did you get in? Any advice or tips in getting in the field? \n\nThanks for any advice. I hope to learn and hopefully figure out which direction I want to go in.", "comment": "You can easily be hired into the federal workforce fresh out of college. Information Security and Cybersecurity are much needed in the federal govt. Personally, I'd choose Cybersecurity.\n\nGo to [USAJobs.gov](https://USAJobs.gov) and search for 2210. It's the Federal job code for all disciplines of Information Technology Specialist no matter if it's Customer Support, Software Support, Cybersecurity, Cloud, etc. You'll want to look for \"Recent grad\" or \"Pathways\" postings.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoek5z", "question": "Context:\nI\u2019m currently a Sophomore in college studying for Computer Science with an emphasis on Cybersecurity. As far as job experience , I have worked at a grocery store for a little while and am hoping to gain work experience in IT.\n\nI\u2019ve been applying for IT support/Help desk positions on Indeed and haven\u2019t had much success. I assume the issue is my resume and unrelated work experience in the field. To remedy this and gain knowledge in IT, I figured earning either the A+ or Network+ certification would be the best place to start.\n\nMy question is, without having much experience in IT at the moment but still wanting to land a decent job, which cert would it be wise to start with?\n\nAny advice would really help, thanks :)", "comment": "If you\u2019re a CS major, there\u2019s no real reason to pay for and take the A+ exam. I\u2019m sure you know what WiFi and RAM are. You can just brush up on any concepts you\u2019re unfamiliar with online for free. \n\nNetworking is its own beast and if you\u2019re interested, try for something like the CCNA. Networking is meaty and there\u2019s great resources online like Professor Messer (he covers Network+) and I\u2019m sure you can take a Networking class in your school curriculum too.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoek6l", "question": "I am a 3x survivor of suicide. AMA", "comment": "Congratulations.\n\nr/FailedSuccessfully", "upvote_ratio": 310.0, "sub": "AMA"} +{"thread_id": "uoek6l", "question": "I am a 3x survivor of suicide. AMA", "comment": "i\u2019m also a 3 time survivor, i pray for you <3 our minds our complex and scary chambers of emotion", "upvote_ratio": 260.0, "sub": "AMA"} +{"thread_id": "uoek6l", "question": "I am a 3x survivor of suicide. AMA", "comment": "Have you beaten those thoughts/feeling better?", "upvote_ratio": 180.0, "sub": "AMA"} +{"thread_id": "uoelkj", "question": "So, I grew up in a very Czech area of Nebraska. Most people would say they were \"Bohemian\" as Bohemia is part of the Czech Republic, or Bohunk. However, I was told by many that Bohunk was more or less an offensive term for someone from Eastern Europe. So has anyone else heard this term, and if so do you think its offensive. Honestly, I grew up with the word and while it wasn't common, I never found it offensive. It just seemed kind of old timey, as I first heard it in Willa Cather novels (for those who don't know, she's probably the most notable writer from Nebraska, and grew up in a rural town called Red Cloud, which has a lot of Czechs and a lot of her novels deal with immigrant life, and while I'm sure there are issues, its interesting that a white lady born in Virginia wrote compassionately about such immigrants at a time when they were sometimes not kindly treated) and sometimes I still say it to describe myself as I'm half \"bohunk\" and half German.", "comment": "I would have thought bohunk was a weird variant on podunk lol", "upvote_ratio": 430.0, "sub": "AskAnAmerican"} +{"thread_id": "uoelkj", "question": "So, I grew up in a very Czech area of Nebraska. Most people would say they were \"Bohemian\" as Bohemia is part of the Czech Republic, or Bohunk. However, I was told by many that Bohunk was more or less an offensive term for someone from Eastern Europe. So has anyone else heard this term, and if so do you think its offensive. Honestly, I grew up with the word and while it wasn't common, I never found it offensive. It just seemed kind of old timey, as I first heard it in Willa Cather novels (for those who don't know, she's probably the most notable writer from Nebraska, and grew up in a rural town called Red Cloud, which has a lot of Czechs and a lot of her novels deal with immigrant life, and while I'm sure there are issues, its interesting that a white lady born in Virginia wrote compassionately about such immigrants at a time when they were sometimes not kindly treated) and sometimes I still say it to describe myself as I'm half \"bohunk\" and half German.", "comment": "I\u2019ve never heard that word.", "upvote_ratio": 240.0, "sub": "AskAnAmerican"} +{"thread_id": "uoelkj", "question": "So, I grew up in a very Czech area of Nebraska. Most people would say they were \"Bohemian\" as Bohemia is part of the Czech Republic, or Bohunk. However, I was told by many that Bohunk was more or less an offensive term for someone from Eastern Europe. So has anyone else heard this term, and if so do you think its offensive. Honestly, I grew up with the word and while it wasn't common, I never found it offensive. It just seemed kind of old timey, as I first heard it in Willa Cather novels (for those who don't know, she's probably the most notable writer from Nebraska, and grew up in a rural town called Red Cloud, which has a lot of Czechs and a lot of her novels deal with immigrant life, and while I'm sure there are issues, its interesting that a white lady born in Virginia wrote compassionately about such immigrants at a time when they were sometimes not kindly treated) and sometimes I still say it to describe myself as I'm half \"bohunk\" and half German.", "comment": "I remember it as like... An 80s word that they only ever used in some movies (actually the only one i can think of is Adventures in Babysitting) and no one ever really said it. \n\nBut it meant like \"meathead\", muscley guy maybe a bit dumb?\n\nNothing about it meant a specific ancestry.", "upvote_ratio": 110.0, "sub": "AskAnAmerican"} +{"thread_id": "uof2ld", "question": "Hello, lately i was wondering what's the future of our DBA friends.\n\nI see a lot of db offers in the cloud and the world is heading always more to everything as a service on cloud. Without the need of setting up your own db (and some companies even today don't have anyone competent in db... like i have to set up it here lol) what kind of job path will those guys take?\n\nMaybe something in the data/machine learning field? Mixing data knowledge with python magics?\n\nWill they be required for a period as ''experts'' (?) of cloud migrations? (but i bet it will be really few spots)\n\nLet me know your impressions!", "comment": "There is still need for DBA in the cloud. Configuration/integration/table maintenance/security/yelling at people to write better queries to keep credit burn to minimum is all there\u2026just sprinkled with learning cloud platforms\u2026", "upvote_ratio": 100.0, "sub": "ITCareerQuestions"} +{"thread_id": "uof2ld", "question": "Hello, lately i was wondering what's the future of our DBA friends.\n\nI see a lot of db offers in the cloud and the world is heading always more to everything as a service on cloud. Without the need of setting up your own db (and some companies even today don't have anyone competent in db... like i have to set up it here lol) what kind of job path will those guys take?\n\nMaybe something in the data/machine learning field? Mixing data knowledge with python magics?\n\nWill they be required for a period as ''experts'' (?) of cloud migrations? (but i bet it will be really few spots)\n\nLet me know your impressions!", "comment": "Not all databases are moving to the cloud. We have data centers that host petabytes of data. Those are not going anywhere. The cost to move and keep those things in the cloud is astronomical and makes no sense to touch them.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uof2xr", "question": "If you\u2019re exposed to poison, you\u2019re poisoned. If you\u2019re exposed to venom, you are _________???", "comment": "Fucked", "upvote_ratio": 4630.0, "sub": "ask"} +{"thread_id": "uof2xr", "question": "If you\u2019re exposed to poison, you\u2019re poisoned. If you\u2019re exposed to venom, you are _________???", "comment": "Envenomed.", "upvote_ratio": 2160.0, "sub": "ask"} +{"thread_id": "uof2xr", "question": "If you\u2019re exposed to poison, you\u2019re poisoned. If you\u2019re exposed to venom, you are _________???", "comment": "now in the marvel universe", "upvote_ratio": 1240.0, "sub": "ask"} +{"thread_id": "uofokm", "question": "I\u2019m a city boy, born and raised. But, lately, prices have become too high here. I have seen some small towns that are affordable and would reasonably fit my lifestyle. What was the biggest adjustment?", "comment": "I'd argue moving to a smaller town or city isn't exactly living the rural lifestyle. If you're living \"in town\" , you still can live somewhat an urban lifestyle. A town as small as 2,000 may have a full grocery store, a few restaurants, at least one bar. You'll have some level of urban amenities, just less of them.\n\nThat's different than living in the sticks where there's nothing around except maybe a Dollar General.", "upvote_ratio": 260.0, "sub": "AskAnAmerican"} +{"thread_id": "uofokm", "question": "I\u2019m a city boy, born and raised. But, lately, prices have become too high here. I have seen some small towns that are affordable and would reasonably fit my lifestyle. What was the biggest adjustment?", "comment": "Yes, about a year and a half ago.\n\nThe biggest adjustment has been getting used to not having access to, well, everything. Stores have limited selection. Want a new kitchen faucet? The hardware store has 3 to choose from. \n\nIt was a move I wanted to make, I don\u2019t miss living in the city at all. I get into the Detroit metro about once a month, I can get my fix over a weekend then return to the woods.", "upvote_ratio": 220.0, "sub": "AskAnAmerican"} +{"thread_id": "uofokm", "question": "I\u2019m a city boy, born and raised. But, lately, prices have become too high here. I have seen some small towns that are affordable and would reasonably fit my lifestyle. What was the biggest adjustment?", "comment": "City to small town to rural farm country and back to city. \n\nThere's less to go to and it's further away the more rural you get. Jobs are harder to find because there are fewer of them. Less places open 24 hours. Things tend to look and be less modern. Cell signal and Internet isn't as good, but it's a lot better than it used to be in many places. You may have to pay for trash pickup separately rather than as part of your water bill. Possibly on septic rather than city sewer. Maybe well water rather than from a reservoir. Generally fewer city services, sometimes including emergency services. It can be a much longer ride to a hospital or even doctor. More and larger animals out and about. The night sky looks more pretty. Less traffic, unless it's harvest season and you're sharing the road with farm equipment. Generally less code enforcement about what you do with your house and yard.", "upvote_ratio": 140.0, "sub": "AskAnAmerican"} +{"thread_id": "uog1qr", "question": "What do American people think on who actually defeated Nazi Germany, America or the Soviets?", "comment": "Does it have to be an either/or? Seems like that would produce useless and oversimplified answers that devolve into uneducated chest-beating.", "upvote_ratio": 1540.0, "sub": "AskAnAmerican"} +{"thread_id": "uog1qr", "question": "What do American people think on who actually defeated Nazi Germany, America or the Soviets?", "comment": "\"WWII was won with British intelligence, American steel and Russian blood\"", "upvote_ratio": 1430.0, "sub": "AskAnAmerican"} +{"thread_id": "uog1qr", "question": "What do American people think on who actually defeated Nazi Germany, America or the Soviets?", "comment": "The US, UK, USSR all made huge contributions. The soviets wouldn't have won on their own. Neither would anyone else.", "upvote_ratio": 400.0, "sub": "AskAnAmerican"} +{"thread_id": "uog1ug", "question": "For example when I burn anything like paper, it gets reduced to ashes. I want to know how this process works. Where all the missing mass go? Smoke? Where the black color came from? Also I wonder why this process can't be reversed easily. When I soak clothes with water, I can get it dry again after a while. But if I burn clothes, it will be near impossible for it to return to its original form.", "comment": "Burning is a chemical reaction. \n\nGoing from wet to dry is just a phase change.\n\nThey\u2019re not really comparable at all.\n\nThe chemical reaction of burning changes the matter being burnt on a molecular level. It turns that matter into something chemically different. \n\nCommon by products of burnin carbon-rich materials are gaseous carbon monoxide and carbon dioxide. The solid matter gets rearranged into a different compound that is also in a different phase of matter. \n\nIf you take one log of wood and burn it, you\u2019re actually subdividing into several different byproducts, some solid, some gas, and any liquid present boils off. In the end every atom still exists, they\u2019ve just been dramatically spread out in the surrounding area.", "upvote_ratio": 60.0, "sub": "AskScience"} +{"thread_id": "uog1ug", "question": "For example when I burn anything like paper, it gets reduced to ashes. I want to know how this process works. Where all the missing mass go? Smoke? Where the black color came from? Also I wonder why this process can't be reversed easily. When I soak clothes with water, I can get it dry again after a while. But if I burn clothes, it will be near impossible for it to return to its original form.", "comment": "Don't forget something like steel wool, which is oxidized as it burns and actually gains mass. The oxygen bonds with the iron and if you have it on a scale as it burns you will see the weight go up, albeit slightly.", "upvote_ratio": 30.0, "sub": "AskScience"} +{"thread_id": "uog8c7", "question": "Right how I\u2019ve been stuck on one specific sector of beginners JavaScript on the Odin project, I\u2019m considering supplementing it with FCC, but I see so many negative reviews that\u2019s I\u2019m hesitant to give it a shot. What\u2019s your honest opinion of FCC?", "comment": "Honest opinion is dont be afraid to give a resource a shot just because it didnt work for someone else. There are so many resources out there, and not everyone learns or likes to learn in the same way....one persons best of all time can be anothers worst experience.\n\nThat being said, Im a huge supporter of FCC, cause it was the first thing I came across that actually helped me learn and put me on the track that helped me get to where I am now. The reason I love it, is the same reason some people dont. FCC doesnt hold your hand and do everything for you. Its not like following a tutorial or just plugging in whatever code it tells you to. It gives you a goal problem to solve, and is layed out in a way you have to do read docs and do research so when you complete a task, you actually understand what it is youre doing. \n\nAlso, the community is engaging and super welcoming and helpful...I made a goal when I started to give back, because I got so much help along the way. And I felt amazing the first time I was able to help someone else out. Teaching is also a great way to learn, because I would often look things up to get a better understanding while trying to help someone else out with a problem. \n\nIm now coming up on 3 years in the industry, and literally.....everyone who asks about my path gets an earful about FCC, cause it really made a huge impact and means so much to me. And doesnt bother me at all if someone else totally hates it. Thats why there are so many different resources, and also why FCC encourages people to get their hands on other resources too...no one source is going to make everything you need to learn click in place. \n\nSo yeah, thats my opinion....give it a try, either you will like it, or you wont. But just cause someone else loves something doesnt mean its your only hope and feel discouraged if youre struggling, and just cause someone else hates it doesnt mean you should feel awkward for thriving. But you wont know unless you try....and I kinda feel like its worth it to at least try.", "upvote_ratio": 3630.0, "sub": "LearnProgramming"} +{"thread_id": "uog8c7", "question": "Right how I\u2019ve been stuck on one specific sector of beginners JavaScript on the Odin project, I\u2019m considering supplementing it with FCC, but I see so many negative reviews that\u2019s I\u2019m hesitant to give it a shot. What\u2019s your honest opinion of FCC?", "comment": "I think their Youtube videos are some of the best and really nice for just getting some of the fundamental knowledge and such", "upvote_ratio": 490.0, "sub": "LearnProgramming"} +{"thread_id": "uog8c7", "question": "Right how I\u2019ve been stuck on one specific sector of beginners JavaScript on the Odin project, I\u2019m considering supplementing it with FCC, but I see so many negative reviews that\u2019s I\u2019m hesitant to give it a shot. What\u2019s your honest opinion of FCC?", "comment": "FCC is awesome and formed the foundation of my js knowledge", "upvote_ratio": 470.0, "sub": "LearnProgramming"} +{"thread_id": "uogcon", "question": "Screen auto rotate feature is gone and replaced by a square button that appears in the bottom corner (if the phone senses me turning it) that rotates screen when tapped. Settings to enable/disable screen rotate are completely gone. Anyone know how to fix this or if it's just a poopy update? Thanks", "comment": "\n\nSwipe down your notification panel and then swipe down again to reveal all quick settings buttons. Auto rotate should be one of those. You should be able to just tap it fully on.\n\nOr you can long-press that button and enable \"manual rotate\" which is where a rotate button appears and you have to click it manually. That sounds like what you have it set on.\n\nEdit: weirdly, I don't think that same setting appears anywhere in the main phone settings interface, I think it's a \"quick\" setting that has no \"non-quick\" alternative.", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "uoghdh", "question": "The US will also be hosting the 2033 Women's Rugby World Cup.", "comment": "Rugby is a very minor sport here. The Olympics are the premier event.", "upvote_ratio": 900.0, "sub": "AskAnAmerican"} +{"thread_id": "uoghdh", "question": "The US will also be hosting the 2033 Women's Rugby World Cup.", "comment": "2028 Olympics bc I'm a Californian and the 1984 Olympics ran a very slight profit.\n\nI hope we can do that again.", "upvote_ratio": 600.0, "sub": "AskAnAmerican"} +{"thread_id": "uoghdh", "question": "The US will also be hosting the 2033 Women's Rugby World Cup.", "comment": "I'm not looking forward to any of them at all.", "upvote_ratio": 540.0, "sub": "AskAnAmerican"} +{"thread_id": "uogmnd", "question": "Hello,\n\nI'm working on a 3D game math library in C++ and I was wondering.... So, I know that you should always prefer multiplication over division because it's a faster operation and I was writing a function to normalize a vector which requires that I divide each component of a 3D vector by the vector's magnitude\n\nWould it be faster in theory to create a float variable and set it equal to 1f / magnitude and then multiply each value by that float which would save on 2 divisions or would the compiler just be able to look ahead and say that it knows it's going to perform 3 divisions with the same value and optimize it anyway? I would imagine the latter depends on the compiler.\n\nI know this is a really simple operation and running it once won't matter in the grand scheme of things but what if the operation were run hundreds of thousands of times, like if for whatever reason, every triangle in a game world needed to get their surface normals normalized.", "comment": "Measure. Measure, measure, measure!\n\nhttps://quick-bench.com/", "upvote_ratio": 200.0, "sub": "cpp_questions"} +{"thread_id": "uogmnd", "question": "Hello,\n\nI'm working on a 3D game math library in C++ and I was wondering.... So, I know that you should always prefer multiplication over division because it's a faster operation and I was writing a function to normalize a vector which requires that I divide each component of a 3D vector by the vector's magnitude\n\nWould it be faster in theory to create a float variable and set it equal to 1f / magnitude and then multiply each value by that float which would save on 2 divisions or would the compiler just be able to look ahead and say that it knows it's going to perform 3 divisions with the same value and optimize it anyway? I would imagine the latter depends on the compiler.\n\nI know this is a really simple operation and running it once won't matter in the grand scheme of things but what if the operation were run hundreds of thousands of times, like if for whatever reason, every triangle in a game world needed to get their surface normals normalized.", "comment": "If you compile with `-ffast-math` (`/FP:fast` on MSVC) then the compiler can ignore strict IEEE fp math compliance and will compile multiple identical divisions to one variable with the reciprocal and then multiple multiplications of this reciprocal.", "upvote_ratio": 100.0, "sub": "cpp_questions"} +{"thread_id": "uogmnd", "question": "Hello,\n\nI'm working on a 3D game math library in C++ and I was wondering.... So, I know that you should always prefer multiplication over division because it's a faster operation and I was writing a function to normalize a vector which requires that I divide each component of a 3D vector by the vector's magnitude\n\nWould it be faster in theory to create a float variable and set it equal to 1f / magnitude and then multiply each value by that float which would save on 2 divisions or would the compiler just be able to look ahead and say that it knows it's going to perform 3 divisions with the same value and optimize it anyway? I would imagine the latter depends on the compiler.\n\nI know this is a really simple operation and running it once won't matter in the grand scheme of things but what if the operation were run hundreds of thousands of times, like if for whatever reason, every triangle in a game world needed to get their surface normals normalized.", "comment": "You could investigate this using [Compiler Explorer](https://godbolt.org/). It would allow you to check a variety of compilers, as well as optimization levels and see what assembly is generated.", "upvote_ratio": 100.0, "sub": "cpp_questions"} +{"thread_id": "uogpq8", "question": "So I am green to IT. I am currently going for a BS in IT and expect to have my degree in a year or so. This is my first IT job, and I have 6 months into it so far, with a few years of retail customer support type of roles before this. Currently, my job is first level Help Desk internally with some elements of tech support, and I wanted to apply to become a technician and do more desktop support. I even picked up my A+ and I'm working on my Net+ to get more credibility. The only issue is my boss still looks at me for how I was on my first 1-2 weeks here. He doesn't trust me to even do this new job and seems to think my skillset is the same as when I first started here. Even though he knows I picked up some certs and I've been trying to upskill during downtime or on my weekends at my home lab. I still have that reputation of being a total noob 6 months later when I've advanced and upskilled a little bit at the very least. I've tried taking on additional responsibilities in my current role and even worked in other departments in IT to learn more about our shop and absorb the policies and standards, but my boss just won't throw me a bone.\n\nI'm being brick-walled and I don't intend on staying here 5+ years just to MAYBE get a chance at growth. Is this normal for IT? For your employer to not realize your growth in your job and not give you opportunities. I really hope I don't need to job hop every year just to get a raise or promotion.", "comment": "6 months is not a lot of time. Some companies will work through onboarding during that amount of time. I wouldn\u2019t trust someone who was just hired 6 months ago to be working with critical systems. Certificates are great but they don\u2019t really mean much in a real work environment, they\u2019re more like checkboxes of nice to haves more so than actual proof that you know what you\u2019re doing. \n\n\nTrust me when I say that you\u2019ll have plenty of time to learn and be so deep underwater from work that you can barely come up for air. Take this time and learn. If you think the pace of your company is too slow, move on and find one that will move faster. \n\nI don\u2019t think you\u2019re being brick-walled. Again, you\u2019ve been there for 6 months, it takes a year or so to actually learn the environment and infrastructure at some companies. \n\nAgain, if you\u2019re unhappy with your job just move on. You owe no loyalty to your company and maybe you\u2019ll find a better fit somewhere else but I can bet that most people here will tell you, 6 months isn\u2019t as long as you think it is and honestly unless the company you work for has 3 servers and 10 clients; you\u2019ve not even scratched the surface of actually knowing anything. I\u2019m sure the opportunity to do more will come with time. Again, if you want to be thrown into the frying pan on as soon as possible maybe you need to look elsewhere.\n\nAnd just to add my own experiences here. When I started at my last job, all I did was reset passwords and add/remove users from security groups for the first six months. A year later I was in charge of project proposals, deployments, and support. I got pretty overwhelmed pretty quickly. Deploying new functionalities in a company with over 1000+ servers and 4000+ users and managing/resolving tickets for those new functionalities was way more than I would\u2019ve liked to do.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoguaj", "question": "Sure, there's a bunch of formal manager docs on this. \n\nBut speaking from an intern's perspective, what would you like to see?", "comment": "Just friendliness and being open to helping out.", "upvote_ratio": 4700.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoguaj", "question": "Sure, there's a bunch of formal manager docs on this. \n\nBut speaking from an intern's perspective, what would you like to see?", "comment": "I\u2019m interning this summer and I\u2019d really hope there is a single person who I have the freedom to ask questions about everything. The technical stuff and general office questions", "upvote_ratio": 2230.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoguaj", "question": "Sure, there's a bunch of formal manager docs on this. \n\nBut speaking from an intern's perspective, what would you like to see?", "comment": "Bro down with them. Kegs, strihp clubbs, 30 raks, best of 69 1v1 flip cup.", "upvote_ratio": 600.0, "sub": "CSCareerQuestions"} +{"thread_id": "uohf96", "question": "Ok, hear me out - I know we're experts in multi-tasking North, South, East, and West but I personally feel like we share way more similarities with Mexico, Brazil, Colombia, Argentina, etc. than the UK and Germany.\n\nI could go so deep into this, but they both have huge populations like us. Mexico City and Sao Paulo/Rio remind me a lot of our NYC/LA mega cities. etc.", "comment": "No, we share most with Canada, Australia, NZ more than Europe. Latin America has a different culture altogether, not to say we don't have similarities in other aspects. I'm of Mexican heritage, so that's my pov.", "upvote_ratio": 1030.0, "sub": "AskAnAmerican"} +{"thread_id": "uohf96", "question": "Ok, hear me out - I know we're experts in multi-tasking North, South, East, and West but I personally feel like we share way more similarities with Mexico, Brazil, Colombia, Argentina, etc. than the UK and Germany.\n\nI could go so deep into this, but they both have huge populations like us. Mexico City and Sao Paulo/Rio remind me a lot of our NYC/LA mega cities. etc.", "comment": "I\u2019m gonna need to hear a case better than \u201cwe both have big cities\u201d to really consider this.", "upvote_ratio": 990.0, "sub": "AskAnAmerican"} +{"thread_id": "uohf96", "question": "Ok, hear me out - I know we're experts in multi-tasking North, South, East, and West but I personally feel like we share way more similarities with Mexico, Brazil, Colombia, Argentina, etc. than the UK and Germany.\n\nI could go so deep into this, but they both have huge populations like us. Mexico City and Sao Paulo/Rio remind me a lot of our NYC/LA mega cities. etc.", "comment": "No, I\u2019ve lived in Mexico for most of my life, travelled to other countries in Latin America and been to Europe many times. The US is much closer to Western Europe in everything than to Latin America.", "upvote_ratio": 700.0, "sub": "AskAnAmerican"} +{"thread_id": "uohhi4", "question": "`for(inti=0;i<n; i++)`\n\n`{`\n\n`for(;i<n; i++)`\n\n `{`\n\n`cout << i<< endl;`\n\n `}`\n\n`}`", "comment": "Delete the inner for loop and you have identical code", "upvote_ratio": 80.0, "sub": "cpp_questions"} +{"thread_id": "uohhi4", "question": "`for(inti=0;i<n; i++)`\n\n`{`\n\n`for(;i<n; i++)`\n\n `{`\n\n`cout << i<< endl;`\n\n `}`\n\n`}`", "comment": "https://www.learncpp.com/cpp-tutorial/for-statements/", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uohr1t", "question": " It is so strange, because whenever they say that Biden is the 46th president, he really isn't. He is the 45th person to serve that role. If in the future, presidents serving non-consecutive terms becomes common, we could have the 100th president be the 90th person to serve the role or something. I personally think it is quite crazy, and Biden should be POTUS #45.\n\nEdit: I deleted the first post because I wanted to change the sub-text but could not do that.", "comment": "I\u2019m devastated", "upvote_ratio": 380.0, "sub": "AskAnAmerican"} +{"thread_id": "uohr1t", "question": " It is so strange, because whenever they say that Biden is the 46th president, he really isn't. He is the 45th person to serve that role. If in the future, presidents serving non-consecutive terms becomes common, we could have the 100th president be the 90th person to serve the role or something. I personally think it is quite crazy, and Biden should be POTUS #45.\n\nEdit: I deleted the first post because I wanted to change the sub-text but could not do that.", "comment": "The president is an office, or a role, like in a play. The people vote on who gets to be cast in the role. Super Grover played that role on the 22nd and 24th go around. \n\nBut that\u2019s the super technical explanation no one really cares about because office=person is a useful shortcut. It is a none issue unless you are the rare position of having to really care about the details.", "upvote_ratio": 280.0, "sub": "AskAnAmerican"} +{"thread_id": "uohr1t", "question": " It is so strange, because whenever they say that Biden is the 46th president, he really isn't. He is the 45th person to serve that role. If in the future, presidents serving non-consecutive terms becomes common, we could have the 100th president be the 90th person to serve the role or something. I personally think it is quite crazy, and Biden should be POTUS #45.\n\nEdit: I deleted the first post because I wanted to change the sub-text but could not do that.", "comment": "Grover Cleveland spanked me on two non-consecutive occasions", "upvote_ratio": 240.0, "sub": "AskAnAmerican"} +{"thread_id": "uoi0vk", "question": "Am I the only one with this mentality? \n\n**note-this post will be void of many specifics to avoid the off chance of being identified**\n\nI\u2019ve been in a couple related IT fields for well over a decade.\n\nI\u2019m an EXTREMELY fast learner and get very good at any job I\u2019m assigned. Many of my document templates have became SOPs. I\u2019m known as the subject matter expert on a few different things and once I became a boss of a small IT team sort of by accident.\n\nThat\u2019s not a brag, it is just to preface the fact that I\u2019m probably not a loser by most definitions.\n\nBut the point of this post is to ask if I\u2019m the only one who does well in this field but just does not give a damn about it?\n\nAt my current job I am the only person in my particular area of IT. I installed a lot of the infrastructure, I\u2019m the only one who maintains it and have all the notes. To top it off, I\u2019m also a single point of failure for that area. So if I go there\u2019s gonna be heartache.\n\nI do answer to a larger team in a different location but can go literal months without having to speak to them. \n\nPlease don\u2019t get me wrong, I do not hate my job. The people and the workload (and the pay) are amazing. But some times my leads and supervisors talk to me like the job is my life. They ask me industry related questions. And I believe they think I\u2019m more than one person from the many hats I wear. But deep down, I do not care about any of it. When someone tries to get me to do something by dropping a VIP name it makes me sick. There\u2019s zero organizational pride in me. And I have a huge amount of imposter syndrome even though literally everyone praises my abilities on a daily basis.\n\nMy literal only motivation is not being fired. I\u2019ve always sorta been like that. Even in school I was a good student and never got in trouble only because I didn\u2019t want others mad at me. But if you asked me about any subject (except history and some science) I\u2019d tell you I do not care and they bore me.\n\nAnd the same goes with IT work. It comes a little bit natural to me so I don\u2019t struggle all that often. But if I never logged onto a box or CLI again I wouldn\u2019t miss one second of it.\n\nI hope Ive described this well enough to maybe see if anyone relates. It just seems to be getting worse as I get older. The good news is the telework hybrid schedule sorta numbs the boredom and burnout but even that\u2019s coming to an end soon.", "comment": "So funny to hear this after seeing so many people working so hard to get into IT just to make more money. I just got into so I hope I enjoy like I think I will.", "upvote_ratio": 80.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoi0vk", "question": "Am I the only one with this mentality? \n\n**note-this post will be void of many specifics to avoid the off chance of being identified**\n\nI\u2019ve been in a couple related IT fields for well over a decade.\n\nI\u2019m an EXTREMELY fast learner and get very good at any job I\u2019m assigned. Many of my document templates have became SOPs. I\u2019m known as the subject matter expert on a few different things and once I became a boss of a small IT team sort of by accident.\n\nThat\u2019s not a brag, it is just to preface the fact that I\u2019m probably not a loser by most definitions.\n\nBut the point of this post is to ask if I\u2019m the only one who does well in this field but just does not give a damn about it?\n\nAt my current job I am the only person in my particular area of IT. I installed a lot of the infrastructure, I\u2019m the only one who maintains it and have all the notes. To top it off, I\u2019m also a single point of failure for that area. So if I go there\u2019s gonna be heartache.\n\nI do answer to a larger team in a different location but can go literal months without having to speak to them. \n\nPlease don\u2019t get me wrong, I do not hate my job. The people and the workload (and the pay) are amazing. But some times my leads and supervisors talk to me like the job is my life. They ask me industry related questions. And I believe they think I\u2019m more than one person from the many hats I wear. But deep down, I do not care about any of it. When someone tries to get me to do something by dropping a VIP name it makes me sick. There\u2019s zero organizational pride in me. And I have a huge amount of imposter syndrome even though literally everyone praises my abilities on a daily basis.\n\nMy literal only motivation is not being fired. I\u2019ve always sorta been like that. Even in school I was a good student and never got in trouble only because I didn\u2019t want others mad at me. But if you asked me about any subject (except history and some science) I\u2019d tell you I do not care and they bore me.\n\nAnd the same goes with IT work. It comes a little bit natural to me so I don\u2019t struggle all that often. But if I never logged onto a box or CLI again I wouldn\u2019t miss one second of it.\n\nI hope Ive described this well enough to maybe see if anyone relates. It just seems to be getting worse as I get older. The good news is the telework hybrid schedule sorta numbs the boredom and burnout but even that\u2019s coming to an end soon.", "comment": "So, I generally have a complete lack of care to whatever my company's goals are.\n\nThat having been said, my enjoyment of IT stems purely out of the concept of \"I want to leave things better than how it was handed to me\". I generally enjoy improving the efficiency of an existing system. That could involve engineering new solutions, making existing things work better, automation, etc. This behavior also shows up in hobbies (keeping knives sharp, cleaning off rust) and entertainment (clocked in almost 200 hours in Dyson Sphere Program).\n\nI think I do tend to enjoy coding the most since I generally find that whenever I'm coding the entire day flies right by.\n\n&#x200B;\n\n>My literal only motivation is not being fired.\n\nI personally don't think you need to like or love your job, or even care. Though I think \"only not wanting to be fired\" tends to be a peg below that. One healthier mentality I've read is \"my job pays me but I don't enjoy it. I have hobbies I like and my job pays for my hobbies that I do enjoy, hence I keep working.\"", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoi0vk", "question": "Am I the only one with this mentality? \n\n**note-this post will be void of many specifics to avoid the off chance of being identified**\n\nI\u2019ve been in a couple related IT fields for well over a decade.\n\nI\u2019m an EXTREMELY fast learner and get very good at any job I\u2019m assigned. Many of my document templates have became SOPs. I\u2019m known as the subject matter expert on a few different things and once I became a boss of a small IT team sort of by accident.\n\nThat\u2019s not a brag, it is just to preface the fact that I\u2019m probably not a loser by most definitions.\n\nBut the point of this post is to ask if I\u2019m the only one who does well in this field but just does not give a damn about it?\n\nAt my current job I am the only person in my particular area of IT. I installed a lot of the infrastructure, I\u2019m the only one who maintains it and have all the notes. To top it off, I\u2019m also a single point of failure for that area. So if I go there\u2019s gonna be heartache.\n\nI do answer to a larger team in a different location but can go literal months without having to speak to them. \n\nPlease don\u2019t get me wrong, I do not hate my job. The people and the workload (and the pay) are amazing. But some times my leads and supervisors talk to me like the job is my life. They ask me industry related questions. And I believe they think I\u2019m more than one person from the many hats I wear. But deep down, I do not care about any of it. When someone tries to get me to do something by dropping a VIP name it makes me sick. There\u2019s zero organizational pride in me. And I have a huge amount of imposter syndrome even though literally everyone praises my abilities on a daily basis.\n\nMy literal only motivation is not being fired. I\u2019ve always sorta been like that. Even in school I was a good student and never got in trouble only because I didn\u2019t want others mad at me. But if you asked me about any subject (except history and some science) I\u2019d tell you I do not care and they bore me.\n\nAnd the same goes with IT work. It comes a little bit natural to me so I don\u2019t struggle all that often. But if I never logged onto a box or CLI again I wouldn\u2019t miss one second of it.\n\nI hope Ive described this well enough to maybe see if anyone relates. It just seems to be getting worse as I get older. The good news is the telework hybrid schedule sorta numbs the boredom and burnout but even that\u2019s coming to an end soon.", "comment": "I hear ya. I'm not even in the field yet but its how i feel. I dont like or care about IT but i know the information i need to to do the job and i want to eventually have a job that i can WFH and i'm not an artist or a writer so this is what i'm planning on doing with the rest of my time til i retire.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoi4tt", "question": "Are newer languages like Rust and Go becoming better options for building applications where languages like C and C++ would've typically been used?", "comment": "go can't be used for the same apps because it's garbage collected. rust is becoming an option. whether it's better or not is a matter of opinion. it's not definitively better.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uoi4tt", "question": "Are newer languages like Rust and Go becoming better options for building applications where languages like C and C++ would've typically been used?", "comment": "Go is in no way an alternative to C, C++ or Rust. It competes in the same space as Java and C#.", "upvote_ratio": 40.0, "sub": "AskProgramming"} +{"thread_id": "uoikgm", "question": "My first ever job was at a McDonalds in NJ back in 2012 where I made $7.25. My wage increased to $8.25 the next year as the wage in NJ went up. Now almost 10 years later, I\u2019ve noticed that while many places still have a $7.25 minimum wage, a lot of places that normally pay minimum are now paying more than that even if their state minimum is $7.25. Last year I was on a road trip and stopped at a McDonalds in Kentucky. Even though their state minimum was $7.25, they were advertising outside the building that their restaurant starts off at around $12-$14 if I remember correctly.", "comment": "Not really. Even McDonald's is paying 14 an hour here in Idaho because absolutely nobody is willing to work for less than that, and there is such a labor shortage that people can be more picky about where they work.", "upvote_ratio": 600.0, "sub": "AskAnAmerican"} +{"thread_id": "uoikgm", "question": "My first ever job was at a McDonalds in NJ back in 2012 where I made $7.25. My wage increased to $8.25 the next year as the wage in NJ went up. Now almost 10 years later, I\u2019ve noticed that while many places still have a $7.25 minimum wage, a lot of places that normally pay minimum are now paying more than that even if their state minimum is $7.25. Last year I was on a road trip and stopped at a McDonalds in Kentucky. Even though their state minimum was $7.25, they were advertising outside the building that their restaurant starts off at around $12-$14 if I remember correctly.", "comment": "Not recently that I've seen, but a couple years ago there were. \n\nI also keep seeing things like \"*for select positions and shifts\" at the bottom of those $12-14 signs around here, which makes me wonder about the base rate.", "upvote_ratio": 270.0, "sub": "AskAnAmerican"} +{"thread_id": "uoikgm", "question": "My first ever job was at a McDonalds in NJ back in 2012 where I made $7.25. My wage increased to $8.25 the next year as the wage in NJ went up. Now almost 10 years later, I\u2019ve noticed that while many places still have a $7.25 minimum wage, a lot of places that normally pay minimum are now paying more than that even if their state minimum is $7.25. Last year I was on a road trip and stopped at a McDonalds in Kentucky. Even though their state minimum was $7.25, they were advertising outside the building that their restaurant starts off at around $12-$14 if I remember correctly.", "comment": "Yes. Loads of minimum wage jobs in small towns out here working at gas stations and local businesses.", "upvote_ratio": 250.0, "sub": "AskAnAmerican"} +{"thread_id": "uoj2nu", "question": "What is something you changed your stance on after learning more about it?", "comment": "That case where McDonald's had to pay a bunch of money to a woman who spilled hot coffee on herself.", "upvote_ratio": 325340.0, "sub": "AskReddit"} +{"thread_id": "uoj2nu", "question": "What is something you changed your stance on after learning more about it?", "comment": "Understanding why people shake their baby. \n\nOf course it is absolutely horrible and it seems like it should make sense that nobody should even think about doing it but I have an understanding of how it can happen now.\n\n I had my own daughter 4 years ago and swore up and down that nobody but a monster would shake their child but let me tell you that sleep deprivation is hell and it is terrifying. \n\nWhen my daughter was a newborn, she was crying very hard one particular night and nothing we did seemed to soothe her crying. My insanely sleep deprived brain started trying to take over and I could feel the urge to shake her. \n\nLuckily, I had just enough cognitive function to recognize that I was in a very vulnerable and bad situation. I set my daughter back down in her crib and walked away for a little while so as to wake myself up some more. \n\nThat is the most scared I've ever been of what the human brain is capable of.", "upvote_ratio": 260220.0, "sub": "AskReddit"} +{"thread_id": "uoj2nu", "question": "What is something you changed your stance on after learning more about it?", "comment": "Bad posture .", "upvote_ratio": 221450.0, "sub": "AskReddit"} +{"thread_id": "uoj8g9", "question": "It goes without saying that things around the world aren't particularly good right now. I'm really stressed out about climate change and people's rights getting rolled back. How did you manage similar stressors of your time? How did you not give into hopelessness and maintain faith in others?", "comment": "Gen X here. Zero fucks given after a period of time to save my own sanity. Not that I don\u2019t care about humanity don\u2019t get me wrong. But let me rephrase that. Just do you and try to focus on your little piece of the world and try to do good in your own life. Advocate for change. Do it in silence if you need to. But don\u2019t sacrifice yourself or your own mental health in trying to make it happen. Eventually history repeats itself so this period will be over as well. At the end of the day you can truly say you were not part of the problem but part of the solution. I refuse to believe all of my female ancestors sacrificed themselves for the end result to be this bullshit.\n As far as climate change, I think we are fucked for a while. Mother Nature already sought revenge with COVID and wildfires etc. Focus on yourself and what type of energy you are putting into the universe. It will match you eventually. At least, I hope.", "upvote_ratio": 580.0, "sub": "AskOldPeople"} +{"thread_id": "uoj8g9", "question": "It goes without saying that things around the world aren't particularly good right now. I'm really stressed out about climate change and people's rights getting rolled back. How did you manage similar stressors of your time? How did you not give into hopelessness and maintain faith in others?", "comment": "Near-overwhelming stuff isn't too tough because you can just \"deal\"--the wars, shortages, inflation, recession, and all that basic stuff is just speedbumps.\n\nWhat's hard to deal with is the periods of remarkable stupidity. These are the times when what you thought were reasonably sane people, suddenly go insane and believe obvious BS like it's a religion--and usually get into attack mode against anyone who doesn't fall for the same delusions they have.\n\nI can think of 3 of those periods: \n\n* The 'Regan revolution\" where a ton of obvious economic and environmental idiocy suddenly became normalized and even revered. Sane people fell for the BS.\n\n* Post 911 when Bush and Co. were shoveling manure at the public to justify a war. About half the country saw through it and protested heavily to try and stop the nonsense but were not successful for reasons too complex to post here.\n\n* And the grandaddy of them all--the incredible insane idiocy of the far right-wing kooks today. They'll believe things that are provably nonsense and fight you to the mattresses just to maintain that delusion. Black is white, up is down, right is wrong.\n\nDuring those whack-job times, first, remember that nothing lasts forever and history demonstrates that the wackiness ebbs and flows over time: It will reduce and effectively end....eventually. So you turn your life into tunnel-vision mode and focus on the things that directly affect your daily life--Ignore that which is not under you actual control or doesn't effect you now, today. It sucks but as the song from Jackson Browne illustrates, sometimes you need to give your brain a break: \n\nDoctor, my eyes...\n\n---Tell me what is wrong\n\n-----Was I unwise...\n\n--------to leave them open for so long?", "upvote_ratio": 550.0, "sub": "AskOldPeople"} +{"thread_id": "uoj8g9", "question": "It goes without saying that things around the world aren't particularly good right now. I'm really stressed out about climate change and people's rights getting rolled back. How did you manage similar stressors of your time? How did you not give into hopelessness and maintain faith in others?", "comment": "It's important to take breaks from things over which you have no control.\n\nIt's important to take all that emotional fuel and use it for productive solutions.\n\nFor every horrible person who makes the news, there are millions doing good instead.\n\nThere's a time to do what you can for a cause in the right timing. There's a time to trust those with the passion and actionable opportunities to hold the line.\n\nIt's rough having to relive things we settled long ago. As a woman, really rough.\n\nIt's rough living in a future over which we had little control. \n\nI was young. They said we had 20 years to fix the climate. Their math was wrong. It hurt the cause. But greater forces had interests to protect. Even with accurate math, it was an uphill battle. It is completely absurd where we are today. And my generation hasn't even really had a chance to run things yet.\n\nI look at it this way. Soak in the beauty while it's still here. \n\nSavor the people who made it to the other side of the pandemic with you.\n\nIf it's on your heart and in your skillset, find those making the change and make it alongside them. You cannot solve any of the worlds problems on your own. It takes a global village.\n\nResearch the innovations. Get involved when you are able.\n\nDo all he boring things like writing local and national representatives and voting. If you're in a state doing dumb stuff, find the others and get initiates passed. All the boring stuff that takes persistence over time.\n\nWatch cartoons. Get lost in a good book. Meditate. Feet in the grass. Hot baths. Sports, lifting heavy objects. Make sure you allow moments of joy and movement into your day. Hugs if you're a hug person. Go outside right now and gaze the stars or clouds or a tree or flower.", "upvote_ratio": 200.0, "sub": "AskOldPeople"} +{"thread_id": "uojb2u", "question": "The last state to join was Hawaii, some 32 years (I can't count today) before I was born.\n\nPuerto Rico comes to mind, after that, maybe Guam?", "comment": "Most likely it will be Puerto Rico.", "upvote_ratio": 1280.0, "sub": "AskAnAmerican"} +{"thread_id": "uojb2u", "question": "The last state to join was Hawaii, some 32 years (I can't count today) before I was born.\n\nPuerto Rico comes to mind, after that, maybe Guam?", "comment": "Guam won\u2019t become a state in the near future unfortunately, or any of the other smallest territories such as American Samoa or the Virgin Islands. \n\nThe two only feasible options are Puerto Rico and DC. Personally, I think DC will get it first. It has a stronger economy. But, Puerto Rico probably wouldn\u2019t be far behind.\n\nUltimately, just purely speaking matter of fact, a republican congress would never approve either, as both are very liberal. Democrats would also need a significant majority in both houses to push it through, and even then I\u2019m not sure they would.\n\nUnfortunately, it\u2019s become a very politically motivated issue, like most other things, rather than the will of the people actually living there.", "upvote_ratio": 380.0, "sub": "AskAnAmerican"} +{"thread_id": "uojb2u", "question": "The last state to join was Hawaii, some 32 years (I can't count today) before I was born.\n\nPuerto Rico comes to mind, after that, maybe Guam?", "comment": "I think Puerto Rico will. Guam might, but they'd probably have to reunite with the Northern Mariana Islands first.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uojpox", "question": "Whenever you want to be immune to a virus, you get a vaccine or you become infected and your immune system fights it off and you become immune. The body can also build up an immunity to venom, but it takes several attempts in order to become capable of taking what would be a lethal dose. Why can\u2019t the body produce antibodies to venom on demand like they do for a virus?", "comment": "There are obviously fundamental differences between viruses and toxins. A typical virus takes a bit of time and does some damage before the adaptive immune system can get geared up to handle the infection. Whereas venom is just everything all at once and quickly overwhelms our innate defenses.\n\nLike you've mentioned, it can take quite a few treatments before someone is able to handle something like venom because you basically have to trick your immune system to be constantly vigilant to the point of total dose neutralization. That means having enough freely circulating antibodies to bind the venom/toxin molecules.\n\nSo for something like snake venom you need both an extended ramp up for protection but also continuation of treatment because the immunity will quickly wane.\n\nAn interesting note would be something like a botulism vaccination. We protect our sileage-eating livestock from botulism toxin via a vaccination but we don't give this vaccine to humans because botulism is exceedingly rare and Botox has an incredibly valuable medical usage. We do however have botulism antitoxin made from horse serum for adults and a pool of vaccinated humans providing serum for infants.\n\nSimilarly, anthrax vaccination is specifically against a component of the anthrax toxin.", "upvote_ratio": 570.0, "sub": "AskScience"} +{"thread_id": "uojpox", "question": "Whenever you want to be immune to a virus, you get a vaccine or you become infected and your immune system fights it off and you become immune. The body can also build up an immunity to venom, but it takes several attempts in order to become capable of taking what would be a lethal dose. Why can\u2019t the body produce antibodies to venom on demand like they do for a virus?", "comment": "[removed]", "upvote_ratio": 130.0, "sub": "AskScience"} +{"thread_id": "uojpox", "question": "Whenever you want to be immune to a virus, you get a vaccine or you become infected and your immune system fights it off and you become immune. The body can also build up an immunity to venom, but it takes several attempts in order to become capable of taking what would be a lethal dose. Why can\u2019t the body produce antibodies to venom on demand like they do for a virus?", "comment": "3rd year undergraduate in Human Biology- definitely take what I\u2019m saying with a grain of salt. Or 3. \n\nI think what it comes down to is the difference in mechanisms between venom and viruses. Venom may act as a neurotoxin, preventing the neurons from communicating to/with other neurons and muscular tissue (-> respiratory distress -> death). This aids the animal (snake, spider, whatever) in a fight-or-flight scenario, where the venomous animal would use venom to kill or paralyze the predating animal. \n\nViruses, although we shouldn\u2019t \u201canthropomorphize\u201d their intentions for causing infection, use their mechanism of infection to hijack cellular machinery and replicate more of themselves. For survival. Darwin or whatever. However, since viruses like the common flu or COVID, or even HIV are not using an instantly cytotoxic/neurotoxic mechanism, the immune system has an opportunity to recognize it and develop an antibody. \n\nCut simply, viruses in your body are like ants within your home, and they will grow in numbers until they eat all your food, and you die. But you could buy ant traps, or maybe even a flamethrower and then you have a chance of fighting them first time. Venom is like a Noah\u2019s ark flood to your house, just uprooting it from the ground and you don\u2019t have enough buckets in time. Maybe if you prepared channels in your house for the second time a flood comes, you could have a slightly better chance of survival. \n\nAgain, take it with a handful of salt. Maybe even the whole shaker", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "uojxeq", "question": "[Text of Newton's speech](https://www.blackpast.org/african-american-history/speeches-african-american-history/huey-p-newton-women-s-liberation-and-gay-liberation-movements/)", "comment": "In 1969, Jean Genet, a French writer, came to the United States to interview Huey Newton and other Panther leaders. Genet, who was gay, was significantly wounded by the homophobic terms that were frequently bandied about by the Panthers. After returning to France, Genet sent Newton a message articulating his distress about the group's use of derogatory and repressive language, equating the use of the f-word to the equally reprehensible n-word.\n\nGenet's message profoundly altered Newton's perceptions of homosexuality and masculinity. In 1970, Newton and the Black Panthers began making overtures to form an alliance with the Gay Liberation movement. The Party's newfound philosophy was grounded in the rationalization that revolutionary people \"must gain security in ourselves and therefore have respect and feelings for oppressed people.\" Newton would go on to write that \"we have not said much about homosexuals at all, but we must relate to the homosexual movement because it is a real thing...\\[Homosexuals\\] might be the most oppressed people in society.\" As a means of showing respect to homosexuals, inspired by Genet's comments, and of showing commitment to the cause, Newton concluded that \"the terms 'faggot' and 'punk' should be deleted from our vocabulary, and especially we should not attach names normally designed for homosexuals to men who are enemies of the people such as Nixon or Mitchell. Homosexuals are not enemies of the people.\" In his book, *Black Power*, Jeffrey Ogbar recounts the tale of an openly gay member of the Black Panthers who operated in the Jamaica Queens branch of New York. He was accepted in the Party because \"he was truly committed; people knew that.\" Though committed, some members still used unapproved, offensive language. When confronted by a newer member for his homosexuality \"a fistfight broke out between the two. The offending Panther was soundly beaten, and it was the last time that homophobic remarks were made at the office.\" The defeat of a heterosexual male by a homosexual male effectively ended that thought that homosexuals were unmanly.\n\nThe Panthers were the first of any non-gay black organization to support the homosexual cause. The Panthers \"connected 9the oppression of homosexuals\\] to the plight of black people; and attempted--based on that connection--to build coalitions openly with lesbians and gay men.\" David Hilliard would go on to say that \"\\[the Panthers\\] were a human rights movement. It had nothing to do with race, as we were trying to move mankind to a higher manifestation, to make this world a better place.\" As he said he would earlier, Newton had any terms that could be considered derogatory to homosexuals removed from the Panthers' vocabulary, as allies in the struggle all interactions had to remain respectful.\n\nThe Black Panthers soon found themselves widely supported in the gay community. At a Panther really at Temple University, participants began chanting \"Gay, gay power to the gay, gay people! Power to the People! Black, black power to the black, black people! Gay, gay power to the gay, gay people! Power to the People!\" Much like other oppressed people, LGBTQ organizations bean emulating the Panthers; the \"newly formed Gay Liberation Front and many feminist groups...all regarded the BPPP as their inspiration and vanguard.\"\n\nSources:\n\nJeffrey Ogbar - *Black Power*\n\nHuey Newton - *Revolutionary Suicide*\n\nHuey Newton - *To Die For the People*\n\nDavid Hilliard - *Hear Our Roar!*", "upvote_ratio": 620.0, "sub": "AskHistorians"} +{"thread_id": "uok6u1", "question": "My priorities in life were awful when I was younger, when I was ready to get myself on track I spent 3 years caring for loved ones before they passed. I am studying for my A+ now I am focused now and very eager to learn and drive myself forward. But I can't help but be worried that once A+ is done with only a year of work exp that trying to find a job will be very difficult. After A+ is done I'm planning to go to school for an assc degree in IT. Ultimately, I'm worried that it's going to be extremely hard to find a job. I can't leverage any customer focused exp like many suggest. At most I can say I did it for a few months as my job now is in a warehouse, Which I've excelled. Moved into specialist roles, consistently hit my productivity goals. I'm not micro managed like other asscociates because I've learned their systems and know where to direct my attention day by day, conistently commended for my hardwork etc. I plan to leave this job in June after my bonus to go to work somewhere closer and have something that interacts with customers. \n\n\nJust afraid my lack of work expierence and a massive time of unemployment and no school is going to push me to the discard pile immediately. Should I be this concerned? What would you think if an applicant came across your desk with only 1 year of work exp, student for IT/Cybersec, A+ maybe N+ certs? The past year I've been very focused on moving forward. But I have had alot to catch up on. \n\n\nAny insight to what I may face will be helpful. Thank you.", "comment": "You're right in the fact that only a year of job experience at 27 will not look good on a CV - there's no other way to look at it. However I would definitely focus on the experience that you have and outline how you excelled in that job - also can explain to employers if you wish, that you had personal life issues to deal with past few years. \n\nAt the end, all it takes is for someone to give you a chance. So get that A+, brush up on your interview skills so that you can present yourself in a positive way with confidence. Don't let the lack of work experience stop you from applying to help desk roles, it's an entry level role after all and you can learn a lot from it, even if the work can be a bit tedious. It's a great starting point!", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uol5u7", "question": "The Catholic church claims to know the complete list of all 266 popes who reigned from the 1st to the 21st century, starting with St Peter himself. They also give exact dates for the duration of their papacies for nearly all of them. How credible is this from the perspective of a historian?", "comment": "[removed]", "upvote_ratio": 8790.0, "sub": "AskHistorians"} +{"thread_id": "uol5u7", "question": "The Catholic church claims to know the complete list of all 266 popes who reigned from the 1st to the 21st century, starting with St Peter himself. They also give exact dates for the duration of their papacies for nearly all of them. How credible is this from the perspective of a historian?", "comment": "I addressed this question somewhat in a previous post [here](https://old.reddit.com/r/AskHistorians/comments/gycdd0/are_there_early_bishops_of_rome_whose_pontificate/) , but here is a relevant part to your question:\n\n>Which brings us to Catholic tradition, which attempts to create an unbroken line of Bishops of Rome to give the Pope the apostolic authority that justifies his position in the church today (and the episcopal ecclesiology that the Catholic Church structures itself on). Apostolic authority is essential to the Catholic religion because it gives the Pope authority from Jesus himself, who allegedly installed Peter as the first Bishop of Rome. Contrary to (perhaps) popular belief, the New Testament (or other 1st and 2nd century texts, for that matter) does not explicitly (or, in the mind of many, implicitly) outline this installment. Most sources indicate that Peter visited Rome, but whether he led the church there is matter for much debate (in fact, if his ministry mirrored his peers and we consider the political situation in Rome at the time, he probably did not \u201csettle down\u201d to lead the church in Rome as its bishop). Still, as it is reflected in the Second Vatican Council, it is important for Catholics to see Peter as the \u201cFirst among the Apostles,\u201d as recognized by Jesus himself, so that the Pope reflects this style of leadership as the First Priest of the Church.\n\n>Immediately after Peter, our sources for apostolic succession get extremely muddy. Forgetting the 3rd-century texts such as the Liberian Catalogue and Liber Pontificalis\u20142nd century \u201clists\u201d of the Bishop of Rome are also contradictory and contain numerous anomalies! Some protestant and secular scholars have proposed that the early Church in Rome operated in some sort of \u201ccollegiate episcopacy,\u201d a theory obviously inconsistent with Catholic views on succession. Some lists claim Clement as Peter\u2019s successor, while Eusebius tells us of Clement succeeded Linus and Anencletus after Peter\u2019s death. Regardless, many of these very-early \u201cBishops of Rome\u201d (to whatever extent they were) were well-known figures in early Christianity. While Eusebius didn\u2019t offer references for much of his early list, it is safe to assume that these leaders existed and were influential in the early church in some capacity. Clement, in particular, is famous for the letter commonly attributed to him that failed to make New Testament canon at Nicaea.\n\n>The list of Bishops of Rome that we have today, in their varying forms, mostly consists of historical church leaders who were recognized and their feats recorded by (mostly) Christian historians and church leaders of diverse ethnicities. While biographical details are usually hard to come by for many of these figures, their theological, doctrinal, and canonical contributions in the so-called \u201cApostolic Age\u201d are documented. Whether or not these leaders functioned in any role recognizable as the one that Pope Francis fills is debatable, if not downright unlikely. Thus, there isn\u2019t much reason to believe that these \u201cpopes\u201d didn\u2019t exist, and, as you say, held \u201csome position of authority\u201d within the early church.", "upvote_ratio": 4010.0, "sub": "AskHistorians"} +{"thread_id": "uol5u7", "question": "The Catholic church claims to know the complete list of all 266 popes who reigned from the 1st to the 21st century, starting with St Peter himself. They also give exact dates for the duration of their papacies for nearly all of them. How credible is this from the perspective of a historian?", "comment": "I am not a historian, just very interested in the early church period, I hope I don't mistep on the rules it seems you can answer even though you are not a historian, but as long as you provide sources. \n\nThe early papacy is murky, specifically because it was an underground organisation that was persecuted and at a certain times they were forced to hand over writings to the Roman authorities, coincidently that is where we get the word traditores or traitors, \"those who handed over\". The Latin word for traitor was Proditor.\n\nSo it gets difficult to even have a lot of writing until the religion is legalized, or there are lulls in persecution. \n\nThere are sources for Linus as the succesor for Peter. Linus and the next 4 popes are mentioned in the bible as disciples, Linus specifically in the Second Epistle to Timothy and Paul mentions him keeping him company in Rome. \n\nThe first mention preserved is by Irenaeus at 180 AD. He was a Greek Bishop working in what would later become France, he also confirms Anacletus and Clement.\n\nHegesippus a contemporary of Irenaeus operating in Palestine also confirmed the 3 first popes or bishops of Rome to be more accurate. It should be noted that some later lists, list Cletus instead of Anacletus, some even go more of kilter by listing them as seperate people. However the earliest sources I mentioned have a consensus that goes. Peter - Linus - (Ana) cletus\n\nThings get muddy after Clement in regards to reigns, my personal interpretation is that it coincides with the persecution by Trajan, which would have disrupted a lot of the organisation efforts by the early Christians. The names are similar in Irenaeus and Hegesippus, and their lists go up to Pope Eleutherius.\n\nThen there is an unknown author of the \"Poem against Marcion\" that has a similar list but uses the names Anacletus and Cletus interchangeably. The Poem is form around 200 AD. \n\nAfter Pope Victor things really get muddy, and all we really know for sure are names of at least some of the Popes, because the lists we have vary depending on location and time. So much so that we even end up having an anti-pope commemorated as Popes in some Eastern Calendars like the Copts and Armenians. \n\nBy the 4th century, things are so muddy, that when the Church is legalized you have several lists going about, and Eusebius is one of the few that tries to source his info instead of just relying on what was handed down orally. He uses Iraneus and Hegesippus, unfortunatley only few fragments of Hegesippus texts have been preserved.\n\nIt is only after the Edict of Serdica and the Edit of Milan that you start to have Christians and others seriously ponder the origins of the Church and its history. \n\nThe most Reliable efforts are from Eusebius, in his Chronica and his histories. \n\nThen there is the Catalogue of Liberius from the Chronography of 354. Which save for a few errors in assuming Anacletus and Cletus were different people, it lines up Iranaeus and Hegesippus lists. An important note on the Catalogue is that it seems to source its information from two chronicles from the 3rd century, namely Julius Sextus Africanus, and Hippolytus of Rome. \n\n[The Liberian Catalogue list](https://www.tertullian.org/fathers/chronography_of_354_13_bishops_of_rome.htm)\n\nBook \"Popes and the Tale of Their Names\" by Anura Guruge. for info on Anacletus/Cletus mixup\n\n\n[synaxarion of the Coptic church with Hippolytus as Pope](https://st-takla.org/books/en/church/synaxarium/06-amsheer/06-amshir-apolidus.html) \n\n\n[Eusebius Church History (Book V) ](https://www.newadvent.org/fathers/250105.htm)\n\n[Iranaeus Against Heresies (Book III, Chapter 3)](https://www.newadvent.org/fathers/0103303.htm)\n\n[Chronicon remnants](http://www.attalus.org/armenian/Chronicon_of_Hippolytus.pdf)\n\n[Poem against Marcion](https://www.tertullian.org/anf/anf04/anf04-30.htm)", "upvote_ratio": 500.0, "sub": "AskHistorians"} +{"thread_id": "uolcr0", "question": "Often times, being able to buy a house in an expensive area requires more years of saving than usual, which mean home ownership may not happen until later in life. However, if you bought a house in such an area while you were young (i.e. in your 20s or 30s), what allowed you to defy the odds?", "comment": "[deleted]", "upvote_ratio": 260.0, "sub": "AskAnAmerican"} +{"thread_id": "uolcr0", "question": "Often times, being able to buy a house in an expensive area requires more years of saving than usual, which mean home ownership may not happen until later in life. However, if you bought a house in such an area while you were young (i.e. in your 20s or 30s), what allowed you to defy the odds?", "comment": "There were many first time home buyers programs that allowed no money down (or 3-5%) and had closing cost assistance. These were prevalent from probably 2012 up until the pandemic and allowed me to get my first house.", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "uolcr0", "question": "Often times, being able to buy a house in an expensive area requires more years of saving than usual, which mean home ownership may not happen until later in life. However, if you bought a house in such an area while you were young (i.e. in your 20s or 30s), what allowed you to defy the odds?", "comment": "As a twenty something- pretty much none of my friends own their own home. Honestly, to speak candidly, none of us even care to. Gen Z Americans just want to move around and care more about experience imo. \n\nThat being said, in my city you can still get a 2-3 bedroom house in a neighborhood that\u2019s decent for around 200k. Often times the mortgage will be cheaper than the average rent in the area. The issue for many working to lower class Americans is saving up the money to be able to afford the down payment.\n\nEdit: first time homeowners loans are also a major benefit. Small down payment around 4%, slightly higher monthly payments. But usually still comparable to an apartment\u2019s rent.", "upvote_ratio": 90.0, "sub": "AskAnAmerican"} +{"thread_id": "uoli0e", "question": "The length of a meter is defined by the speed of light, and not the other way around. So where/why specifically did we divide a second by 299,792,458 segments and then measure the distance light traveled in a one of those segments and called it a meter? Where did 299,792,458 come from?", "comment": "The meter was originally defined as one 40,000,000th of the circumference of the Earth along a great circle through the two poles. Later it was redefined as the length of a canonical yardstick (meterstick?) that was built as close as possible to the original intended length.\n\nIn a modern context, none of these definitions are particularly useful. The Earth isn't perfectly spherical, or even a perfect ellipsoid. Nor is it static. Defining a reference ellipsoid (WGS84 for example) requires a circular reference to another unit of length. It's inconvenient to have to physically visit a yardstick for calibration, and despite all efforts to prevent it, such an object changes length with temperature, and may also be damaged over time. None of the historical definitions would work anywhere outside of Earth.\n\nDefining the meter in terms of the speed of light is an effort to make the definition universally applicable, fixed and constant. The number 299,792,458 was chosen so that the 'new' meter would not be very much different from the old one. If you had chosen 300,000,000 then suddenly all rulers in the world, which had been calibrated relative to the yardstick, would be inaccurate at millimeter precision.", "upvote_ratio": 34540.0, "sub": "AskScience"} +{"thread_id": "uoli0e", "question": "The length of a meter is defined by the speed of light, and not the other way around. So where/why specifically did we divide a second by 299,792,458 segments and then measure the distance light traveled in a one of those segments and called it a meter? Where did 299,792,458 come from?", "comment": "You have received some great answers. The only thing I would like to add is by the time this definition came around, the length desired was already well understood and needed to be maintained. The new definition simply gave a more stable and reproducible answer. That's why the goofy fraction. We didn't want to change the length, just define it better.", "upvote_ratio": 1600.0, "sub": "AskScience"} +{"thread_id": "uoli0e", "question": "The length of a meter is defined by the speed of light, and not the other way around. So where/why specifically did we divide a second by 299,792,458 segments and then measure the distance light traveled in a one of those segments and called it a meter? Where did 299,792,458 come from?", "comment": "Historically, there were other definitions of the meter than the one we are using now. Using these definitions, the speed of light was measured and the theoretical results of Maxwell and Einstein that the speed of light is an universal constant, were confirmed.\n\nWhen you define a system of measurement, i.e. units which can be used to measure things, you'd like to go as fundamentally and reliable as possible. Hence, using definitions which do not depend on a particular metre bar or an iridium cylinder, the units are easier to replicate worldwide and standardize.\n\nIn the case of the metre, we have a universal constant (the speed of light) relating the units for time and length. If you define one these two, you can relate them to each other by the speed of light without any extra work. So the question is: Which of the two can be defined in a more fundamental way. It turns out that a lot of atoms oscillate very reliably and consistently, which led to the following definiton: \"The second is equal to the duration of 9192631770 periods of the radiation corresponding to the transition between the hyperfine levels of the unperturbed ground state of the 133Cs atom.\"\n\nAs all 133Cs atoms are indistinguishable, we have a global definition of the second which works as \"just look at the atoms\", which is independent of any concrete physical artefacts. This definition is also independent of things like ambient temperature or pressure, as it's referring to a property which works at the atomic level.\n\nTL;DR: Because the speed of light is constant and it's easier to standardize the second than the meter.", "upvote_ratio": 770.0, "sub": "AskScience"} +{"thread_id": "uols8s", "question": "I don\u2019t know if there is a lot of ageism in it I don\u2019t look old I look like I\u2019m still in my late 20\u2019s", "comment": "I just turned 40 and became a Cloud Engineer two weeks ago :)", "upvote_ratio": 890.0, "sub": "ITCareerQuestions"} +{"thread_id": "uols8s", "question": "I don\u2019t know if there is a lot of ageism in it I don\u2019t look old I look like I\u2019m still in my late 20\u2019s", "comment": "Lol no. I thought the same thing at 28 that I was too late in the game. When you get up help desk you're gonna find people in there 50s-60s. \n\nIT isn't some tech bro industry with open floor plans and ping pong tables in the break rooms. Just a normal ass business like every other place.", "upvote_ratio": 870.0, "sub": "ITCareerQuestions"} +{"thread_id": "uols8s", "question": "I don\u2019t know if there is a lot of ageism in it I don\u2019t look old I look like I\u2019m still in my late 20\u2019s", "comment": "I hope not! For my sake :P", "upvote_ratio": 230.0, "sub": "ITCareerQuestions"} +{"thread_id": "uolu1c", "question": "what's the dumbest thing you believed as a kid?", "comment": "My dad told me he had hearing loss and couldn't hear me if I whined because my pitch would get too high. Would completely ignore me until I asked him questions in a normal voice. \nTrusted him implicitly until I was 12 and he yelled at my younger brother for whining.", "upvote_ratio": 77470.0, "sub": "AskReddit"} +{"thread_id": "uolu1c", "question": "what's the dumbest thing you believed as a kid?", "comment": "Don't drink and drive meant all drinks.\n\nMy dad was super confused when I told him he wasn't allowed to have any soda until we got home.", "upvote_ratio": 41500.0, "sub": "AskReddit"} +{"thread_id": "uolu1c", "question": "what's the dumbest thing you believed as a kid?", "comment": "That if it was raining where I was, it was raining everywhere in the world.", "upvote_ratio": 38920.0, "sub": "AskReddit"} +{"thread_id": "uolvgs", "question": "Hey guys. I have always wanted to do something related with computers since I was really young (im 17 btw :)). About a year and a half ago or smth I decided that I want to do programming, more specifically web development or game development. I have done a course on udemy for web development and I know the basics of JS. When I started the course I still didnt know exactly what I wanted to choose further out of these 2 areas. A few months ago I fully decided that I want to do game development and started researching some universities. After finding a few interesting ones I've realised they do a selection process where they give u a theme and some tasks and you have to make a game. From what I understand it doesnt have to be the best game but its important that it works and that I comment and document my code and thinking process. Anyway what I would like to know is how do you guys think I should start learning c++ or if you have any tips on game development with c++. If u've reached the end of this long ass post ty for ur time and have a nice day :))", "comment": "www.learncpp.com is a great tutorial for learning modern C++.\n\nUse https://en.cppreference.com/w/ as a language reference.\n\nOnce you\u2019re comfortable with the language, you can learn about the proper practices using the [C++ Core Guidelines](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines).\n\nStay away from sites like GeeksForGeeks, TutorialsPoint, cplusplus.com, and most YouTube tutorials, as they\u2019re notorious for being outdated, having misinformation, and generally being of poor quality.", "upvote_ratio": 430.0, "sub": "cpp_questions"} +{"thread_id": "uolvgs", "question": "Hey guys. I have always wanted to do something related with computers since I was really young (im 17 btw :)). About a year and a half ago or smth I decided that I want to do programming, more specifically web development or game development. I have done a course on udemy for web development and I know the basics of JS. When I started the course I still didnt know exactly what I wanted to choose further out of these 2 areas. A few months ago I fully decided that I want to do game development and started researching some universities. After finding a few interesting ones I've realised they do a selection process where they give u a theme and some tasks and you have to make a game. From what I understand it doesnt have to be the best game but its important that it works and that I comment and document my code and thinking process. Anyway what I would like to know is how do you guys think I should start learning c++ or if you have any tips on game development with c++. If u've reached the end of this long ass post ty for ur time and have a nice day :))", "comment": "Check out The Cherno on YouTube. Especially for the gaming stuff. \n\nAlso, Kate Gregory's talk \"don't teach C\" is a good one.", "upvote_ratio": 300.0, "sub": "cpp_questions"} +{"thread_id": "uolvgs", "question": "Hey guys. I have always wanted to do something related with computers since I was really young (im 17 btw :)). About a year and a half ago or smth I decided that I want to do programming, more specifically web development or game development. I have done a course on udemy for web development and I know the basics of JS. When I started the course I still didnt know exactly what I wanted to choose further out of these 2 areas. A few months ago I fully decided that I want to do game development and started researching some universities. After finding a few interesting ones I've realised they do a selection process where they give u a theme and some tasks and you have to make a game. From what I understand it doesnt have to be the best game but its important that it works and that I comment and document my code and thinking process. Anyway what I would like to know is how do you guys think I should start learning c++ or if you have any tips on game development with c++. If u've reached the end of this long ass post ty for ur time and have a nice day :))", "comment": "I don't know where you're from and what kind of universities those are, but I would also be very weary before I pursued a degree in game development, even if I were 100% sure that I wanted to go in that direction.\n\nFrom all I've read even most (video) game development companies prefer to hire people with CS, Maths, Physics or Electrical engineering degrees over those with game development degrees. And if you want to change your career path later, because you've noticed that game development isn't for you, those degrees will make it even easier for you.\n\nI have a CS degree and we always had the possibility to make games during project works. So maybe ask that question on /r/cscareerquestions or write some e-mails to game development companies, you'd like to work for, if they actually value those degrees.\n\nAnyway I wish you good luck!", "upvote_ratio": 120.0, "sub": "cpp_questions"} +{"thread_id": "uolyzi", "question": "Can someone please explain to me why heritage in your ancestry is held in high regard and openly talked about with pride? \n\nIm from Germany and almost nobody cares (besides narrow minded idiots) about that.", "comment": "God damn fucking *Americans* and their...\n\n....\n\n...NOT SIMPLY MATERIALIZING OUT OF THE VOID AND HAVING ANCESTORS AND SHIT. FUCK.", "upvote_ratio": 650.0, "sub": "AskAnAmerican"} +{"thread_id": "uolyzi", "question": "Can someone please explain to me why heritage in your ancestry is held in high regard and openly talked about with pride? \n\nIm from Germany and almost nobody cares (besides narrow minded idiots) about that.", "comment": "You know how people of Turkish ancestry, even if they\u2019ve been in Germany for three generations are still called \u201cTurks?\u201d It\u2019s the opposite of that.", "upvote_ratio": 550.0, "sub": "AskAnAmerican"} +{"thread_id": "uolyzi", "question": "Can someone please explain to me why heritage in your ancestry is held in high regard and openly talked about with pride? \n\nIm from Germany and almost nobody cares (besides narrow minded idiots) about that.", "comment": "Don't Germans make more of heritage than us? It's pretty widely accepted that a Turkish-American is an American. Ditto for Irish-Americans, Mexican-Americans, etc. I have heard of people born and raised in Germany not being considered German because their grandparents were Turkish immigrants.\n\nAlso even though we talk about heritage politicizing it would be really weird. It's mostly small talk, a hobby for genealogy and history buffs, and maybe a factor in planning a family vacation.", "upvote_ratio": 470.0, "sub": "AskAnAmerican"} +{"thread_id": "uom0cq", "question": "For a little while there i was able to see the bottom half of the screen and only that half was responding to touch but now its completely black and not responding. I still get calls and texts and all that so it seems like the inside is good. \n\nWhat is my best option of recovering my data? I have a passcode so im not sure i can just plug it into my computer. \n\nIs it possible to access and retrieve my files from my secured folder if I am able to somehow get it connected to my computer?\n\nIf all else fails does anyone know how much it would cost to fix the screen. I dont know much about phones but i know it would include fixing the glass, lcd, and whatever makes it respond to touch. \n\nI really appreciate any help. I have some very sentimental things on my phone that id be willing to do alot to get back.", "comment": "This multi-times a day question again. No USB debugging enabled, not going to happen. No cloud sync, not going to happen. No Samsung with Samsung Dex, not going to happen.\n\nNo recovery from the secure folder that way either even if you had the first 2 working.\n\nGet it fixed, and no we don't know how much it's going to cost since you don't even mention a device model. It also depends on if just the glass needs replacing, or the digitizer too etc... Google can tell you an estimate", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "uom3oa", "question": "Hi I would appreciate to ask IT people here about my scenario. Do you think it will be possible for me to get a career in the IT industry without an IT degree? I am currently studying Mechanical Engineering and it is my 4th year. I have some\u200f\u200f\u200e\u200f\u200f\u200e\u200f\u200f\u200e\u200f\u200f\u200e\u00adknowledge in programming *(basic to intermediate)* and started programming since 4th year High School. I have experienced programming for clients in Upwork and Freelancer but only for a year. I mostly self-study programming languages. And also partly interested in Cybersecurity (responsible disclosures). I have also read that certifications are a plus, I think I can study those for some time.. so any thoughts? &#x200B; Thank you.", "comment": "I have a high school diploma and some certs, I\u2019m almost 3 years old in the IT field now. If I can do it, you can too.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uom4cd", "question": "If the world had a source code, what language(s) would it be written in ?", "comment": "[Lisp (actually most of it in Perl)](https://xkcd.com/224/)", "upvote_ratio": 120.0, "sub": "AskProgramming"} +{"thread_id": "uom4cd", "question": "If the world had a source code, what language(s) would it be written in ?", "comment": "Brainfuck.", "upvote_ratio": 70.0, "sub": "AskProgramming"} +{"thread_id": "uom4cd", "question": "If the world had a source code, what language(s) would it be written in ?", "comment": "Machine Language", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uom4xb", "question": "I'm a Filipino, silver medalist of the 2019 International Earth Science Olympiad, and currently a freshman in college. AMA! (including about the state of my country right now)", "comment": "So how does it feel that the son of a former dictator is your next ruler?", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "uom4xb", "question": "I'm a Filipino, silver medalist of the 2019 International Earth Science Olympiad, and currently a freshman in college. AMA! (including about the state of my country right now)", "comment": "What are you studying?\n\nWhat is your favourite dessert?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "uom4xb", "question": "I'm a Filipino, silver medalist of the 2019 International Earth Science Olympiad, and currently a freshman in college. AMA! (including about the state of my country right now)", "comment": "Why do most Filipinos speak English well?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "uom98r", "question": "What are the most painful things to do for you while setting up CI/CD on your project?", "comment": "Learning a new yaml/whatever syntax for the new hyped platform.", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "uom98r", "question": "What are the most painful things to do for you while setting up CI/CD on your project?", "comment": "Credentials distribution.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uomeo2", "question": "Hi Everyone! I recently implemented sha256 cryptographic hash function using C++. If you have some time please review my code. As I am new to C++ **any tips are appreciated**. Thx in advance. My [GitHub Repo](https://github.com/woXrooX/CPP_sha256)", "comment": "* Don't explicitly define the destructor unless you need to. If you need to define a destructor, remember the [rule of five/three/zero](https://en.cppreference.com/w/cpp/language/rule_of_three). Note: if want to force the compiler to generate a special member function, define it as `= default` rather than as an empty function.\n* Pass strings using `std::string_view`, unless you need a null-terminated string.\n* If a function should not or will not throw, declare it as `noexcept`.\n* If a member function should not or will not modify any class members, declare it as `const`.\n* [Prefer the `{}`-initializer syntax](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-list). Avoid initializing fundamental types using `=`. Avoid the `()`-initializer syntax, unless you're initializing a container type with anything other than a list of elements.\n* Avoid raw arrays. For stack-allocated/fixed-size arrays, use `std::array`. For dynamic arrays, use `std::vector`, or one of the many other container types STL provides.\n* Avoid redundant uses of `this`. It adds nothing to the code, and might make the reader stop and think why the writer deemed it necessary.\n* Group related pieces of data into `struct`s.\n* Avoid C-style casts. If you must use a cast, use one of the named casts: `static_cast`, `dynamic_cast`, `const_cast`, or `reinterpret_cast`.\n* Avoid non-`static` `const` member variables. Prefer `static constexpr` or `static const`.", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "uomeo2", "question": "Hi Everyone! I recently implemented sha256 cryptographic hash function using C++. If you have some time please review my code. As I am new to C++ **any tips are appreciated**. Thx in advance. My [GitHub Repo](https://github.com/woXrooX/CPP_sha256)", "comment": "There is the question of whether this even should be a class. A hash is really just a function. Given that an object really just stores a plain text and a hash, there is little point it it even being an object.\n\nFurther, you are storing your binary representations as \"plain text\" in strings. That is fairly inefficient, especially since it leads to a myriad of allocations.\n\nYou can do bitwise operations on chars/bytes directly. \n\nI will mostly ignore these two general considerations below an focus on the written C++ code.\n\nSo lets start at the top:\n\n> #ifndef SHA256_H\n\nWhile that include guard is fine, I would give it a more unique name, or simply use `#pragma once`.\n\n> Sha256(const std::string &data) : data(data)\n\nIgnoring the question of design, a constructor that is going to take a copy anyways, should take by value and then move into the member:\n\n Sha256( std::string data_ ) \n : data( std::move( data_ ) )\n\nThat way a user can actually move into your constructor and a void a copy.\n\n> ~Sha256(){}\n\nis an antipattern. Whenever your destructor does nothing, it most likely should not exist. At most it should be defined as\n\n ~Sha256() = default;\n\n> std::string digest(){\n\nThis member function ought to return a `const std::string&` or a `std::string_view` and be `const` qualified. The name is also not great, because it implies the function would actually *do* something, where as it really just returns the already calculated hash.\n\n> data_in_binary\n\nCould at least be `reserve`d, since oyu can calculate its size.\n\n> i++\n\nIt is generally considered best practice to always use `++i` unless you want to do something with the post increment return value.\n\n> this->\n\nThere is no need to preface every class member with a `this->`. In a well design class its just visual noise.\n\n> std::string data_512_bit_chunks[data_512_bit_chunks_size];\n\nThis uses Variable-Length-Arrays. They are not a standard c++ feature and should not be used. Use `std::vector`\n\n> std::string data_32_bit_words[data_512_bit_chunks_size][64];\n\nsame.\n\n> uint32_t h0 = this->h0;\n> ....\n> uint32_t a = this->h0;\n> ....\n\nThese scream for an array\n\n> std::string result(ss.str());\n> this->result = result;\n\nWhy this copy? You could just assign to `result` directly.\n\n> const uint32_t h0 = 0x6a09e667;\n> ...\n\nAll these are compile time constants, but you have them as members in every object.\n\nThey ought to be `constexpr static` instead of `const`.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uompje", "question": "Forgive me for the noob question.\n\nCurrently, I work as a data analyst, mostly using SQL and SSRS.\n\nThe biggest challenge I face on a day-to-day basis is not my SQL knowledge being challenged but my deciphering skills. The hurdle to overcome is always the data. Big databases or datawarehouses with cryptic field names. Report requests from managers using the wrong terminology. Having to translate any request from what's being asked into how it actually is in the data.\n\nI am wondering if the experience of a software engineer is different.\n\nPrimarily, that any requests from \"customers\" are already translated into what they actually mean by the project manager. And also hoping that whatever codebase etc will be put together with more logic than a shitty database.\n\nBut maybe this is just wishful thinking.\n\nAnyone who has had experience of a more data focused position and a more programming focused position, do you find that you knowledge of programming is the biggest obstacle to overcome? Or are those other messy human factors like shitty data, poorly organised code, etc, still major factors?\n\nThanks", "comment": "lol if you find a company with nice clean data you send me their contact info right now so I can spend the rest of my life there", "upvote_ratio": 4830.0, "sub": "LearnProgramming"} +{"thread_id": "uompje", "question": "Forgive me for the noob question.\n\nCurrently, I work as a data analyst, mostly using SQL and SSRS.\n\nThe biggest challenge I face on a day-to-day basis is not my SQL knowledge being challenged but my deciphering skills. The hurdle to overcome is always the data. Big databases or datawarehouses with cryptic field names. Report requests from managers using the wrong terminology. Having to translate any request from what's being asked into how it actually is in the data.\n\nI am wondering if the experience of a software engineer is different.\n\nPrimarily, that any requests from \"customers\" are already translated into what they actually mean by the project manager. And also hoping that whatever codebase etc will be put together with more logic than a shitty database.\n\nBut maybe this is just wishful thinking.\n\nAnyone who has had experience of a more data focused position and a more programming focused position, do you find that you knowledge of programming is the biggest obstacle to overcome? Or are those other messy human factors like shitty data, poorly organised code, etc, still major factors?\n\nThanks", "comment": "Nope. Clean, well structured data off the bat is not unheard of, but generally you have to make it so. Cryptic field names are especially common in legacy products. I encountered this gem in a MySQL database the other week:\n\n`charReqODSDescriptionVal VARCHAR(100) NOT NULL DEFAULT '0'`\n\nchar - What is this? Are we using Hungarian notation in our database here? It doesn't even match the field type... Get rid.\n\nReq - Again, being used to note that the field is NOT NULL is my best guess. Not necessary.\n\nODS - Nobody in the business could tell me what that stood for, if anything.\n\nVal - Yes, everything here is a value. That's kind of what databases do. Store values. Off with it.\n\nDEFAULT '0' - Why does a string value default to the string representation of an integer?\n\nDescription - Ah, now we're getting somewhere. This will be a short description sentence for this entity, surely...\n\nRan a query to see some values stored against this column. The values were all like this: `Title,An object to model Title data,123`\n\nCSV??? So this database is storing multiple data points (name, description, ???) in one column. That's not even 1NF. Brilliant. And we have no labels for those without digging through code, so I don't know what `123` means. Sure enough, the code was splitting and joining strings to read/write these fields...\n\n:/", "upvote_ratio": 1240.0, "sub": "LearnProgramming"} +{"thread_id": "uompje", "question": "Forgive me for the noob question.\n\nCurrently, I work as a data analyst, mostly using SQL and SSRS.\n\nThe biggest challenge I face on a day-to-day basis is not my SQL knowledge being challenged but my deciphering skills. The hurdle to overcome is always the data. Big databases or datawarehouses with cryptic field names. Report requests from managers using the wrong terminology. Having to translate any request from what's being asked into how it actually is in the data.\n\nI am wondering if the experience of a software engineer is different.\n\nPrimarily, that any requests from \"customers\" are already translated into what they actually mean by the project manager. And also hoping that whatever codebase etc will be put together with more logic than a shitty database.\n\nBut maybe this is just wishful thinking.\n\nAnyone who has had experience of a more data focused position and a more programming focused position, do you find that you knowledge of programming is the biggest obstacle to overcome? Or are those other messy human factors like shitty data, poorly organised code, etc, still major factors?\n\nThanks", "comment": "If you've ever watched the reality show Hoarders then you have a good point of reference what coming into an existing codebase is like", "upvote_ratio": 590.0, "sub": "LearnProgramming"} +{"thread_id": "uomwf3", "question": "I'm 23 and currently work in a call centre as a technical support agent. I am considering doing a CompTIA course bundle which consists of CompTIA A+, CompTIA Network+, CompTIA Security+, CompTIA Cloud +, CompTIA Cloud Essentials, CompTIA CASP+ (Advanced Security Practitioner), CompTIA CySA+ (Cybersecurity Analyst), CompTIA Pentest+, CompTIA Linux+ to try and find a better paying job. I was wondering if anyone could recommend any other certificates that would aid in getting me started in a career in IT.", "comment": "Do CCNA that a cert that brings value, will take you 2-3 months but is worth it.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uomxso", "question": "What\u2019s something you never want to hear after sex?", "comment": "Her saying \"you can stop\" in the most disappointed way possible", "upvote_ratio": 74410.0, "sub": "AskReddit"} +{"thread_id": "uomxso", "question": "What\u2019s something you never want to hear after sex?", "comment": "\u201cYou\u2019re not as bad as everyone says\u201d", "upvote_ratio": 70590.0, "sub": "AskReddit"} +{"thread_id": "uomxso", "question": "What\u2019s something you never want to hear after sex?", "comment": "\"Ok thanks everyone for tuning in! Don't forget to like and subscribe!!\"", "upvote_ratio": 46800.0, "sub": "AskReddit"} +{"thread_id": "uon94b", "question": "Title says it all. \n\nI just quit the android 13 beta and after doing the system update, it completely reset itself.\n\nDoes anyone know why this happened or did i overread the line they said it in?", "comment": "Yeah that's normal when you opt out of the Beta.", "upvote_ratio": 40.0, "sub": "AndroidQuestions"} +{"thread_id": "uonjqq", "question": "I found a link on another Reddit sub that I felt it was interesting enough to share with y\u2019all\u2026\n\nI figured some redditors here might enjoy diving into some [possible/plausible] IT related technical interview questions & answers.\n\n[https://www.fullstack.cafe/](https://www.fullstack.cafe/)", "comment": "Just search github:\n\nSite:github.com \"blahjobtitle interview questions\"", "upvote_ratio": 70.0, "sub": "ITCareerQuestions"} +{"thread_id": "uonqww", "question": "Did an app purchase yesterday. I had some money on my Google acount due to my rewards activity.\n\nTo my surprise, the app purchase was deducted from my Google balance (from Rewards), yet I would not liked to use that (balance for the purchase) but my credit card instead.\n\nWhat did I miss during the purchase process???", "comment": "I'm not sure what you're asking here? You missed the part where you choose what payment methods to use, apparently lol.", "upvote_ratio": 60.0, "sub": "AndroidQuestions"} +{"thread_id": "uonydm", "question": "Been hearing this phrase in regards to IDE\u2019s.\n\nAnyone care to elaborate.\n\nEx.) \u201cI started to us VScode for Python. It\u2019s lighter than PyCharm\u201d\n\nI\u2019ve been using PyCharm for python but typically use VScode for html/css for web design. \n\nThe example quote above was not something I said just to clarify just read a few comments on a separate subreddit and was curious.", "comment": "Lots of people complain that Visual Studio is heavy as it takes a few seconds to load. The say the like to use VS Code as it is faster to load. I am in the practical camp that starts VS once a day and therefore doesn't care.\n\nSometimes people also use heavy to mean that a software has lots of features they don't use and therefore feel better when the interface of an IDE is minimal to their need.", "upvote_ratio": 30.0, "sub": "AskComputerScience"} +{"thread_id": "uoo5rf", "question": "While taking input in vector v.push_back() is faster as compared to cin>>v[I] why?", "comment": "These two statements are not equal. One appends a default constructed value to a vector, the other inserts a user input value into an array.\n\nThe first is superficially faster because the second blocks until the user has input a number. Likewise any I/O operation will likely be slower than push_back().", "upvote_ratio": 70.0, "sub": "cpp_questions"} +{"thread_id": "uoo5rf", "question": "While taking input in vector v.push_back() is faster as compared to cin>>v[I] why?", "comment": "1. They dont do the same thing\n2. How did you meassure this?\n 1. Did you use an optimized build?\n 2. Did you meassure the IO in both cases?", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "uoovb5", "question": "Why don't majority of Americans use Whatsapp?", "comment": "Because MMS and SMS come built into our phones and are free and offer any and all of the necessary features WhatsApp does. \n\nI am baffled by how often this question gets asked, and wonder what kind of advertising they do that this is such a hot topic.", "upvote_ratio": 1080.0, "sub": "AskAnAmerican"} +{"thread_id": "uoovb5", "question": "Why don't majority of Americans use Whatsapp?", "comment": "Because, unlimited SMS texting has been standard here for even the cheapest cell phone plans for 20 years now, so everyone just got used to using it rather than having to install another app.", "upvote_ratio": 430.0, "sub": "AskAnAmerican"} +{"thread_id": "uoovb5", "question": "Why don't majority of Americans use Whatsapp?", "comment": "Free texting mate. Part of the phone, part of the plan.", "upvote_ratio": 350.0, "sub": "AskAnAmerican"} +{"thread_id": "uop8kl", "question": "Offering insight to anyone about this controversial profession or just anything else you would like to know", "comment": "What's their success rate ?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "uop8kl", "question": "Offering insight to anyone about this controversial profession or just anything else you would like to know", "comment": "Someone must have hung up on him, he\u2019s not answering.", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "uopdoa", "question": "I just want to start by saying this is a metropolitan area network between two cities in my country, and they are planning on hiring two new guys without experience one of those guys being me of course to handle everything regarding the network my only qualifications for this are my CCNA, and my Linux and Microsoft Certified System Administration self-studies and courses and I know people with experience in the field who recommended that I just take the job, and they are willing to help me with any questions, but I would still put myself in the extremely under-qualified department for something like this, yet I don't want to waste this opportunity to learn and gain experience, so is there any recommendations on how to prepare for something like this ?", "comment": "Uh, time to open up Packet Tracer and fiddle around, lol.", "upvote_ratio": 60.0, "sub": "ITCareerQuestions"} +{"thread_id": "uopdoa", "question": "I just want to start by saying this is a metropolitan area network between two cities in my country, and they are planning on hiring two new guys without experience one of those guys being me of course to handle everything regarding the network my only qualifications for this are my CCNA, and my Linux and Microsoft Certified System Administration self-studies and courses and I know people with experience in the field who recommended that I just take the job, and they are willing to help me with any questions, but I would still put myself in the extremely under-qualified department for something like this, yet I don't want to waste this opportunity to learn and gain experience, so is there any recommendations on how to prepare for something like this ?", "comment": "How on earth did you pass the interview? \nWhy on earth you agreed to do it if you don't know how?\n\nThere's a high probability you're gonna fuck up or you're gonna be stressed out beyond limits for weeks or months. I hope it goes well for you.\n\n&#x200B;\n\nWill your friends, who advised you to take it, offer to help you at 10 PM on Friday to rescue you if something is messed up?", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uopdso", "question": "This one might feel like a very noob query but why is it like when I declare a string say 'str' and assign characters to it like `str[0]='a';str[1]='b';` and so on, I can't use cout on this 'str' to get my output as `ab....` instead I need to write like `cout<<str[0]<<str[1];` to retrieve them character by character, I can't even assign this string to somewhere or pass it as an argument. \n\nThanks!", "comment": "As u/nysra points out, the \\[\\] operator needs to refer to a position that already exists in the string. If you start with an empty string this is undefined behavior.\n\nWhat you want to do is:\n\nstr.push\\_back('a'); str.push\\_back('b'); \n\nThis grows the string by adding the character to the end. Or you can do \n\nstr.append(\"ab\");\n\nwhich can also be written:\n\nstr += \"ab\";\n\nif you ever want to add more than one character at a time.", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "uopdso", "question": "This one might feel like a very noob query but why is it like when I declare a string say 'str' and assign characters to it like `str[0]='a';str[1]='b';` and so on, I can't use cout on this 'str' to get my output as `ab....` instead I need to write like `cout<<str[0]<<str[1];` to retrieve them character by character, I can't even assign this string to somewhere or pass it as an argument. \n\nThanks!", "comment": "Your string needs a length greater than what you're trying to index, otherwise your program contains UB and is invalid.\n\nhttps://godbolt.org/z/YvGEbPdhs", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "uopdso", "question": "This one might feel like a very noob query but why is it like when I declare a string say 'str' and assign characters to it like `str[0]='a';str[1]='b';` and so on, I can't use cout on this 'str' to get my output as `ab....` instead I need to write like `cout<<str[0]<<str[1];` to retrieve them character by character, I can't even assign this string to somewhere or pass it as an argument. \n\nThanks!", "comment": "I would like to add that u should also definitely read through https://en.cppreference.com/w/cpp/string/basic_string; a detailed explanation of string and other standard libraries, with examples, are available on cppreference. If you have not read c++ references in my case a few times, for common containers like string or vector I would recommend. After that I'd playing around with them, than knowing when to use different containers for their best use case. As others have said assigning a container data directly, without proper checking is bad practice, so I assume you are learning. https://www.learncpp.com/ is also fantastic wish I knew of it when I was learning. I'm going to over recommend here but in my opinion if you are not on Linux I would highly recommend it for C/C++; it's more personal preference but the latest Debian with Gnome 40-42.1 is next level for productivity. Anyway I hope you enjoy this, if not oh well it will be solidified here for a while for anyone else. What a freaky world, happy Friday :)", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uophc9", "question": "I want to learn how to make software to organise files on my PC.\n\nI have a whole bunch of files on my PC and there is no way sort them by different attributes. I am just getting started on learning how to code and this problem looks like a good way to get started. So what technologies should I know about to get started with something like this?", "comment": "Shell scripts are the easiest way to manipulate files and folders, so long as your organization system isn't super complicated. Shell scripts aren't great for algorithms.\n\nhttps://www.nushell.sh/", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uopmlt", "question": "Don\u2019t be married too tightly to a tech stack or career path, you may miss out on something even cooler!\n\nI am a DevOps Engineer for a technology company that builds IOT devices. I never thought I would find my self in this position, and did not purposefully steer my career in this direction. Follows is a sort story about my career so far (5 YOE), and what I learned about diversifying my skill set.\n\nI feel like In this industry, it is easy to get silo\u2019s into a specific tech stack, language, framework, etc\u2026 If you are like me, you probably enjoy having all the answers. The problem with \u201csticking with what you know\u201d, is that there may be something even more interesting out there that you could be even more passionate about.\n\nWoe be to the highly specialized Engineer that never got their toes wet in a different field and found there true passion.\n\nWhen I first started out, I mainly sold my self as a Python developer with experience using Django. I really love Python, and Django too. I thought that I had explored enough different things to make the decision to specialize in only these technologies and everything that immediately surrounds them. While propping up several Django apps, I had learned quite a bit about DevOps. It did not strictly interest me though.\n\nThen came an offer that I couldn\u2019t refuse. With a few years of experience, I was about to double my Salary. But this was not a Python or Django position (although I still use Python with DevOps and IOT). I decided to leave my comfort zone and dive into the deep end of IOT DevOps. After sometime, I realized, holy cow! I am more happy then ever! I am learning way more, I am more productive, and generally, happier about my Career choice.\n\nTl;Dr - Don\u2019t be afraid to not specialize on the first tech stack / tech job that you learn. Just because you are comfortable with a technology, does not mean there isn\u2019t something better out there for you. Has this happened to anyone?", "comment": "Totally agree!!\n\nI don't know why, but there are a large amount of people who think that web development is all that exists. \n\nThere are so many different subfields out there, so many different technologies, so many different companies.\n\nI think that's one of the biggest reasons I don't regret getting my CS degree. It exposed me to so many different areas, whether theoretical or practical. Also my internships played a big part in that as well, I tried to do every internship in a different areas of CS, and it exposed me to a lot of things that I never knew existed.", "upvote_ratio": 120.0, "sub": "CSCareerQuestions"} +{"thread_id": "uopmlt", "question": "Don\u2019t be married too tightly to a tech stack or career path, you may miss out on something even cooler!\n\nI am a DevOps Engineer for a technology company that builds IOT devices. I never thought I would find my self in this position, and did not purposefully steer my career in this direction. Follows is a sort story about my career so far (5 YOE), and what I learned about diversifying my skill set.\n\nI feel like In this industry, it is easy to get silo\u2019s into a specific tech stack, language, framework, etc\u2026 If you are like me, you probably enjoy having all the answers. The problem with \u201csticking with what you know\u201d, is that there may be something even more interesting out there that you could be even more passionate about.\n\nWoe be to the highly specialized Engineer that never got their toes wet in a different field and found there true passion.\n\nWhen I first started out, I mainly sold my self as a Python developer with experience using Django. I really love Python, and Django too. I thought that I had explored enough different things to make the decision to specialize in only these technologies and everything that immediately surrounds them. While propping up several Django apps, I had learned quite a bit about DevOps. It did not strictly interest me though.\n\nThen came an offer that I couldn\u2019t refuse. With a few years of experience, I was about to double my Salary. But this was not a Python or Django position (although I still use Python with DevOps and IOT). I decided to leave my comfort zone and dive into the deep end of IOT DevOps. After sometime, I realized, holy cow! I am more happy then ever! I am learning way more, I am more productive, and generally, happier about my Career choice.\n\nTl;Dr - Don\u2019t be afraid to not specialize on the first tech stack / tech job that you learn. Just because you are comfortable with a technology, does not mean there isn\u2019t something better out there for you. Has this happened to anyone?", "comment": "This almost happened to me. My internship was working in a report generating language call RPG3. Then my first real job was mostly report generating and SQL. And then I couldn't find anything but another job with similar tech.\n\nBut with that job they where trying to do stuff with their report generator that it couldn't do, so I (arrogantly) offered to write them a report generator. Back into real programming :)", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "uopoy5", "question": "I have seen there are several different career path one can take in IT field.\n\nPicture here : [https://i.imgur.com/NIVCU4P.png](https://i.imgur.com/NIVCU4P.png)\n\nPaths : Service and Infrastructure, Network Technology, IT Business and Strategy, IT Management, Information Securety, DevOps and Cloud Technology, Storage and Data, Software Development.\n\n&#x200B;\n\nIm currently studying computer science and I dont know in which career I want to specialize or which subject might interest me.\n\nOne reason is that I had no time to do any projects whatsoever.\n\n&#x200B;\n\nMy question is, what project can one make so that you can see whether that person might like the subject/career or not?\n\nSo projects for career path like \"Cloud technology\" or \"IT Management\".\n\nI think that project should then be beginner-friendly and at the same time cover many areas so that you can see early whether you will like it or not.", "comment": "Those early career points in this roadmap will be about learning core technologies, with time, experience and business/interpersonal skills pushing you forward.\n\nIf you want to learn about networking, you can download Cisco Packet Tracer and download/study free labs from someone like Jeremy\u2019s IT Lab on YT.\n\nIf you want to learn Cloud (and Linux by extension) take advantage of free AWS and Azure hours. Spin up some cloud VMs (Linux and Windows Server) and storage buckets and build your own labs. \n\nRemember, YMMV because there will always be a difference between how simple or elegant a technology product is designed, and how it\u2019s implemented into an organization\u2019s systems.", "upvote_ratio": 300.0, "sub": "ITCareerQuestions"} +{"thread_id": "uopoy5", "question": "I have seen there are several different career path one can take in IT field.\n\nPicture here : [https://i.imgur.com/NIVCU4P.png](https://i.imgur.com/NIVCU4P.png)\n\nPaths : Service and Infrastructure, Network Technology, IT Business and Strategy, IT Management, Information Securety, DevOps and Cloud Technology, Storage and Data, Software Development.\n\n&#x200B;\n\nIm currently studying computer science and I dont know in which career I want to specialize or which subject might interest me.\n\nOne reason is that I had no time to do any projects whatsoever.\n\n&#x200B;\n\nMy question is, what project can one make so that you can see whether that person might like the subject/career or not?\n\nSo projects for career path like \"Cloud technology\" or \"IT Management\".\n\nI think that project should then be beginner-friendly and at the same time cover many areas so that you can see early whether you will like it or not.", "comment": "Oh boy, that\u2019s a hard one.\n\nIf you want as close to a magic bullet as I can think of, try building a webapp, hosting it publicly on AWS, deployed with Azure DevOps.\n\nYou\u2019ll have to learn a moderate amount of cloud administration/infrastructure, DevOps, Application Security, development, data management, etc.\n\n\nNo project is going to check every box, but I think that project might touch enough so that you might be able to dig into something deeper depending on what you like.", "upvote_ratio": 150.0, "sub": "ITCareerQuestions"} +{"thread_id": "uopoy5", "question": "I have seen there are several different career path one can take in IT field.\n\nPicture here : [https://i.imgur.com/NIVCU4P.png](https://i.imgur.com/NIVCU4P.png)\n\nPaths : Service and Infrastructure, Network Technology, IT Business and Strategy, IT Management, Information Securety, DevOps and Cloud Technology, Storage and Data, Software Development.\n\n&#x200B;\n\nIm currently studying computer science and I dont know in which career I want to specialize or which subject might interest me.\n\nOne reason is that I had no time to do any projects whatsoever.\n\n&#x200B;\n\nMy question is, what project can one make so that you can see whether that person might like the subject/career or not?\n\nSo projects for career path like \"Cloud technology\" or \"IT Management\".\n\nI think that project should then be beginner-friendly and at the same time cover many areas so that you can see early whether you will like it or not.", "comment": "No project you can do on your own will really give you a good understanding of what any of these paths are like \"on the job\". You can only trust other people's accounts of what it's like. For example, software engineering professionally is only really about 50% heads down coding. The other 50% is code review, gathering requirements, system design meetings, this kind of stuff. Read people's accounts of how their day-to-day is in these different positions.\n\nMost importantly you must know that you don't have to make this decision now. There is plenty of time in the future to specialize. Focus on learning the fundamentals of computing right now, which is what you're doing with your comp sci degree. Once you have an entry level role you can talk to people in the different specialties and focus in on one thing.", "upvote_ratio": 110.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoptyx", "question": "If glass blocks infrared, why do greenhouses get so hot?", "comment": "In simple terms: Visible light passes through and heats up the interior.\nThings inside get hot and radiate that heat away as infrared light. The greenhouse blocks the infrared light from passing back through, keeping that heat inside.\n\nAll light heats things up, not just infrared light. So visible light from the sun is the driver of the heat increase inside the greenhouse.", "upvote_ratio": 150.0, "sub": "AskScience"} +{"thread_id": "uoptyx", "question": "If glass blocks infrared, why do greenhouses get so hot?", "comment": "The Sun's spectrum peaks in the visible, so sunlight gets through and hits things inside the greenhouse. That's about 1kW per square meter, so those things heat up, and warm the air too, but that's all trapped. \n\nI'm pretty sure most of the warming from a greenhouse comes from that simple fact; let the sunlight in, reduce the airflow.\n\nYou mentioned the infrared, though, which is also relevant to the thermal picture. The stuff inside the greenhouse also radiates in the far infrared, more and more according to Planck's blackbody radiation law as it all continues to heat up. That law tells us that near room temperature the blackbody radiation peaks at about 10 microns wavelength... which the glass absorbs. The thing is, the glass also re-emits according to its own temperature, and the outside is getting cooled by the ambient air, so at best you'll get a little extra warming if there's a temperature gradient across the glass from the inside surface to the outside surface. Glass is not a great insulator, though, so that temperature gradient is unlikely to be huge. This is why double-pane windows are popular and why a double-wall greenhouse, or even one made from two layers of plastic with an air barrier between them, should let the things inside get much warmer.", "upvote_ratio": 80.0, "sub": "AskScience"} +{"thread_id": "uoptyx", "question": "If glass blocks infrared, why do greenhouses get so hot?", "comment": "Glass blocks SOME infrared wavelengths but not all.\n\nGlass blocks mid to far infrared, but not near infrared. That is, normal soda-lime glass doesn't block much until the wavelength is over about 2700 nm. Visible light is 380 to 700 nm. So, infrared energy between 700 and 2700 nm passes through glass almost as well as visible light. And, almost all the Suns infrared energy output is above 2700 nm. So the suns infrared energy contributes a lot to the heating of a green house (visible and infrared light probably contribute about the same amount to the heating).\n\nComing from objects at maybe 30C (85F), the infrared energy trying to escape the greenhouse is at a much longer wavelength, around 10,000 nm. This wavelength doesn't pass through glass, and this is why thermal cameras can't see through glass (at normal earth surface temperatures).", "upvote_ratio": 40.0, "sub": "AskScience"} +{"thread_id": "uoq003", "question": "Speed Cameras\n\nWith America being renown for their rights I am curious. Do you have speed cameras similar to most other nations or does your constitutional forbid it as in order to get a fine it has to be an actual cop ie you must face your accuser sort of thing?", "comment": "Some states banned speed camera, but some states have them. I know nyc has speed camera, but are illegal in jersey", "upvote_ratio": 140.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq003", "question": "Speed Cameras\n\nWith America being renown for their rights I am curious. Do you have speed cameras similar to most other nations or does your constitutional forbid it as in order to get a fine it has to be an actual cop ie you must face your accuser sort of thing?", "comment": "Some states have outlawed them, same with cameras at stoplights to catch incomplete stops. The ticket has to be issued to a driver, not a vehicle.", "upvote_ratio": 30.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq3je", "question": "Since 1215, the Catholic Church has banned consanguinity to the fourth degree. Several hundred years later, the Catholic Habsburgs would go against this rule multiple times, to the extent of marrrying nieces. What enabled the Habsburgs to get away with this for so long? How did the church react?", "comment": "It's an easy answer and perhaps quite obvious on reflection: the Church knew about each marriage in advance and gave permission. For a fee.\n\nWhile certain marriages were considered to be against natural law and would never be permitted, such as marriage between a grandparent and grandchild, or parent and child, money and power could get you permission from Rome for many things.\n\nThe marriages banned by natural law extended to spiritual family too, a godparent would not be permitted to marry a godchild. This could actually be used to facilitate a ~~divorce~~ *an anullment*, something that was otherwise hard to obtain. If a parent became the godparent of their own child then they could claim an illegal cosanguinity in their marriage and be granted a nullification.\n\nHenry VIII used the laws of cosanguinity to declare Mary Tudor illegitimate by 'discovering' that he and Catherine of Aragon were in fact related due to her previous marriage to his brother, Arthur. In fact, in order to form this leviratic marriage Henry had already requested and received (read purchased) permission from the Vatican. But Mary Tudor was her father's daughter in many ways. Later, at her own expense, she purchased another leviratic dispensation for her father's marriage and so legitimised herself once again.\n\nThis illustrates quite well that a system was in place to permit marriages, and also shows that the system could be manipulated to various ends by those with the power to do so.\n\nGetting back to the Habsburgs... they also purchased leviratic dispensations in order to protect the family lineage and, of course, to avoid diluting power. In their case this was so prolonged and oft-repeated that it caused the end of the Spanish Habsburg line at the end of the 17th century.\n\n*The Church, Sanguinity and Trollope, Durey J, 2008*\n\n*Royal dynasties as human inbreeding laboratories: the Habsburgs, Alvarez G, Ceballos F C, 2013*", "upvote_ratio": 500.0, "sub": "AskHistorians"} +{"thread_id": "uoq3je", "question": "Since 1215, the Catholic Church has banned consanguinity to the fourth degree. Several hundred years later, the Catholic Habsburgs would go against this rule multiple times, to the extent of marrrying nieces. What enabled the Habsburgs to get away with this for so long? How did the church react?", "comment": "[removed]", "upvote_ratio": 70.0, "sub": "AskHistorians"} +{"thread_id": "uoq4gl", "question": "What was the craziest political scandal to happen in your state?", "comment": "\u201cHiking on the Appalachian Trail.\u201d\n\n~EDIT- for those who don\u2019t remember or are otherwise unaware. Mark Sanford, while Governor of South Carolina as a family values conservative Republican, disappeared for a week. He apparently didn\u2019t inform anyone in the state government he was going to be away. His office told enquirers he was hiking on the Appalachian Trail. Turns out he was in Argentina. With his soul mate. Who was not his wife and mother of his children.", "upvote_ratio": 1550.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq4gl", "question": "What was the craziest political scandal to happen in your state?", "comment": "I think one thing we Pennsylvanians can agree on is that our state government is crooked as shit. I\u2019m sure there\u2019s plenty of scandals I\u2019m missing, but probably one of the more famous scandals was the State Treasurer R. Budd Dwyer. He was accused of bribery, conspiracy, mail fraud, and a few other counts. Prison was inevitable for him. A few days before he was to be sentenced, he called a press conference. At the conference, he pulled a revolver and shot himself on live TV. \n\nThere\u2019s a song by the band Filter called \u201cHey Man Nice Shot\u201d and supposedly that was the inspiration for the song.", "upvote_ratio": 850.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq4gl", "question": "What was the craziest political scandal to happen in your state?", "comment": "I wanted to say McGreevey but then I realized a former Vice President literally shot and killed the Secretary of Treasury in Weehawken.", "upvote_ratio": 700.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq4sw", "question": "It's not the first time that i see a comment like this, even though nobody ever said this to me i actually want to know why would calling another person poor would be a offensive thing? (I know that not all Americans are like this)\n\nBut in my culture nobody calls another person poor in a offensive way because it doesn't make sense, just imagine walking around and some colleague says that your shoe is bad and you are a broke mf, wtf?\n\nhttps://imgur.com/a/PjYI4nH", "comment": "> in my culture nobody calls another person poor in a offensive way\n\nI don't believe you.", "upvote_ratio": 5980.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq4sw", "question": "It's not the first time that i see a comment like this, even though nobody ever said this to me i actually want to know why would calling another person poor would be a offensive thing? (I know that not all Americans are like this)\n\nBut in my culture nobody calls another person poor in a offensive way because it doesn't make sense, just imagine walking around and some colleague says that your shoe is bad and you are a broke mf, wtf?\n\nhttps://imgur.com/a/PjYI4nH", "comment": "There\u2019s zero discrimination or bullying against the poor where you live? Where is this social utopia?", "upvote_ratio": 3100.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq4sw", "question": "It's not the first time that i see a comment like this, even though nobody ever said this to me i actually want to know why would calling another person poor would be a offensive thing? (I know that not all Americans are like this)\n\nBut in my culture nobody calls another person poor in a offensive way because it doesn't make sense, just imagine walking around and some colleague says that your shoe is bad and you are a broke mf, wtf?\n\nhttps://imgur.com/a/PjYI4nH", "comment": "It's not your colleague doing that, not unless your workplace is insane levels of toxic. It's a drunk guy picking a fight, it's a teenager looking to make themselves look better by putting down their peers (it doesn't work, but teens are still figuring this stuff out), it's asshole looking to offend for their own personal reasons. And if it's on reddit, it's who knows who hiding behind the anonymity of the platform. \n\nBroke and poor can absolutely be insults. So can rich. Middle class, low class, high class can be too. Honestly, if you get the tone right, anything can be an insult.", "upvote_ratio": 2050.0, "sub": "AskAnAmerican"} +{"thread_id": "uoq7ra", "question": "Both int(1.9999999999999999999) and math.floor(1.9999999999999999999) return 2. I'm trying to figure out how to just chop off the decimal part no matter what is on the right side. \n\nThanks for any help.", "comment": "Be a savage, cast to string and keep only what\u2019s to the left of the decimal point", "upvote_ratio": 3350.0, "sub": "LearnPython"} +{"thread_id": "uoq7ra", "question": "Both int(1.9999999999999999999) and math.floor(1.9999999999999999999) return 2. I'm trying to figure out how to just chop off the decimal part no matter what is on the right side. \n\nThanks for any help.", "comment": "I recommend reading this [https://realpython.com/python-rounding/](https://realpython.com/python-rounding/)\n\n >>> from decimal import Decimal\n >>> import math\n >>> a = Decimal(\"1.9999999999999999999\")\n >>> math.trunc(a)\n 1", "upvote_ratio": 2190.0, "sub": "LearnPython"} +{"thread_id": "uoq7ra", "question": "Both int(1.9999999999999999999) and math.floor(1.9999999999999999999) return 2. I'm trying to figure out how to just chop off the decimal part no matter what is on the right side. \n\nThanks for any help.", "comment": "Your value of 1.9999999999999999999 is probably being represented as 2.0 due to [floating-point inaccuracies](https://floating-point-gui.de/). Not much you can do about it. Even /u/n3buchadnezzar's solution won't handle that value, since the issue occurs in its representation before any conversion functions.\n\n >>> from decimal import Decimal\n >>> import math\n >>> a = Decimal(1.9999999999999999999)\n >>> a\n Decimal('2')\n >>> math.trunc(a)\n 2\n\nI am assuming that this is more of a theoretical question, rather than an \"I have this specific value in my data and need to handle it\" question.\n\nEdit: I just noticed that /u/n3buchadnezzar used a string version of your value, which circumvents the initial representation. Nice.", "upvote_ratio": 880.0, "sub": "LearnPython"} +{"thread_id": "uoqdjn", "question": "I've been able to taste songs since i can remember, and I've never really figured out why. AMA", "comment": "How much acid did your mum drop whilst she was pregnant?", "upvote_ratio": 260.0, "sub": "AMA"} +{"thread_id": "uoqdjn", "question": "I've been able to taste songs since i can remember, and I've never really figured out why. AMA", "comment": "What songs taste sweet? What songs taste sour? What songs taste salty? What songs taste bitter? What songs have a savory flavor?", "upvote_ratio": 80.0, "sub": "AMA"} +{"thread_id": "uoqdjn", "question": "I've been able to taste songs since i can remember, and I've never really figured out why. AMA", "comment": "How does \"Hej, soko\u0142y\", that Polish folk song, taste like? And in general, how do war songs taste like?", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "uoqfqc", "question": ".", "comment": "That's a question that just doesn't have a generic answer. Life in Chicago vs Cincinnati vs Indianapolis vs rural Illinois or Iowa is a wide disparity. Life downstate from Chicago revolves around farms and college towns like Champaign and Urbana. Corporate headquarters in Chicago are Boeing (moving soon), McDonald's, Allstate, United Airlines, Hyatt Hotels, John Deere, Accenture, Caterpillar, Conagra Brands and many more. Or you might look at Cedar Rapids Iowa population 133,000 where around 10,000 of those work at Collins Aerospace as white collar engineers. [Things that surprised a New Yorkers first trip to the Midwest](https://www.insider.com/things-that-surprised-new-yorker-about-midwest-2021-6)", "upvote_ratio": 550.0, "sub": "AskAnAmerican"} +{"thread_id": "uoqfqc", "question": ".", "comment": "We have a massive lack of lawyers, which is a pretty specific problem. Most are retiring, and younger law school graduates move to the cities or other states.\n\n\n\nSomeone willing to stick around here and practice in almost any area can basically pick any area of law they want to practice, pick their hours, and make good money.", "upvote_ratio": 450.0, "sub": "AskAnAmerican"} +{"thread_id": "uoqfqc", "question": ".", "comment": "Despite what this sub says sometimes, the Midwest is a huge place with a lot of different things going on. Job opportunities in Chicago will be very different than in a small town, etc. A lot of Midwestern states have bigger cities with good jobs and stuff to do. You might want to narrow down what state you're interested in and whether you want to know about urban life, the suburbs, rural areas, etc.", "upvote_ratio": 170.0, "sub": "AskAnAmerican"} +{"thread_id": "uoqg51", "question": "We need to reform the job hunting /job matching process. I don't know how but surely there are better ways than the current way we do things.", "comment": "It's an infuriating process yes, I recently was asked to do a coding challenge before an initial interview, I was a bit intrigued so I told them to send it over, expected it to be a short competence test but it was expecting me to fully create an app with functions.\n\nWhat kind of arrogant company expects that before even giving me (or others) a look in, I didn't even know if I wanted the job, they were just some small company in London, nothing impressive really.\n\nI told them to fuck off in nicer words.", "upvote_ratio": 4070.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoqg51", "question": "We need to reform the job hunting /job matching process. I don't know how but surely there are better ways than the current way we do things.", "comment": "If a company needs what you provide badly then the hiring process changes. Same with military recruitment, or anything really.", "upvote_ratio": 3230.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoqg51", "question": "We need to reform the job hunting /job matching process. I don't know how but surely there are better ways than the current way we do things.", "comment": "The companies benefit from making job hunting miserable. \n\nPeople job hop less, get less competing offers, so salaries stagnate.\n\nif people think that's not part of the reason why, they should read on how big tech companies got sued for agreeing to not compete and hire from each other to lower salaries", "upvote_ratio": 1540.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoqggo", "question": "Do you tend to mention countries that no longer exist?", "comment": "I still say Czechoslovakia.", "upvote_ratio": 1860.0, "sub": "AskOldPeople"} +{"thread_id": "uoqggo", "question": "Do you tend to mention countries that no longer exist?", "comment": "No, but I can beat younger folks when we play old editions of trivial pursuit with lots of history questions answered with \u201cthe Soviet Union.\u201d\n\nI still say \u201cBurma\u201d although the military coup that took it over changed the name to Myanmar in 1989. \n\nAnd of course Istanbul was Constantinople but that's nobody's business but the Turks.", "upvote_ratio": 1220.0, "sub": "AskOldPeople"} +{"thread_id": "uoqggo", "question": "Do you tend to mention countries that no longer exist?", "comment": "I think some of the old names sound so exotic that I almost wish they weren't changed. Siam, Persia, Ceylon, even Byzantium (to continue the Instanbul thing) kind of strike a romantic chord in me, which the new names don't.\n\nBut except for joking, no I don't use the old names.", "upvote_ratio": 620.0, "sub": "AskOldPeople"} +{"thread_id": "uoqrvp", "question": "Edit: Thank you for all the replies. I decided to drop the psychologist. I don't know if I'll search for a new one.", "comment": "If your psychologist is telling stories about themselves, you need a new one. In four years of working with the same therapist, I don't even know how many kids she has or where she's from originally.", "upvote_ratio": 38300.0, "sub": "NoStupidQuestions"} +{"thread_id": "uoqrvp", "question": "Edit: Thank you for all the replies. I decided to drop the psychologist. I don't know if I'll search for a new one.", "comment": "Dont worry about seeming rude. Setting a boundary for yourself is something he should praise you for honestly, its an important skill. If that's a problem, on top of him using your time to talk about himself, there's a much better therapist out there for you somewhere else", "upvote_ratio": 7520.0, "sub": "NoStupidQuestions"} +{"thread_id": "uoqrvp", "question": "Edit: Thank you for all the replies. I decided to drop the psychologist. I don't know if I'll search for a new one.", "comment": "Doctor here. Find a different psychologist. This person isn\u2019t performing their duty in addressing your psychiatric needs. \n\nThe patient should absolutely NEVER feel like they\u2019re at risk of being rude by telling their mental health expert to shut up and help them. You\u2019re getting screwed, find somebody else.\n\nEdit: I do not agree with this person abandoning their therapy altogether. Therapy isn\u2019t a one-size-fits all kind of thing, sometimes you have to try different therapists, different strategies, treatment modalities, etc. We can all benefit from some professional outside perspective in life. Giving up on it is the worst thing you could do.", "upvote_ratio": 6960.0, "sub": "NoStupidQuestions"} +{"thread_id": "uor29p", "question": "I am seeking a remote job and am looking for someone who actually works for these companies (that are hiring) and can give me honest feedback about work expectations, demand, stress level etc.\n\nI have 11 years experience in IT and am looking to move to remote for anything paying 65k+ can anyone out there assist?", "comment": "You\u2019re not giving us much context in your post. What types of positions are you look for? What is your current job title? What skills do you have to offer? \n\n$65k+ is a bit low for 11 years of experience. You should really be trying for $150k+. I have about the same amount of experience and I\u2019m in the $150k+ range. \n\nWhen I interview with companies I\u2019m pretty upfront about making sure the job meets my expectations in terms of stress, on call rotations, what teams I\u2019ll be working with, and anything else I might want to know. I\u2019m sure every company will tell you they\u2019re low stress and etc. but you\u2019ll need to gauge it yourself. \n\nThe other big piece to this is being able to set boundaries. A lot of people in IT say they are overwhelmed with work and sometimes it\u2019s not because of the work itself but because of the fact that they don\u2019t know how to say no when they already have too much on their plate. \n\nI\u2019ve interviewed at a few places recently, Kickstarter and Door Dash, I spoke with hiring managers from both and they seem like decent places to work. Kickstarter only has 4 day work weeks and has flex hours, Door Dash has flex hours and seems pretty relaxed. Both jobs pay in the mid $100k, I was interviewing for infrastructure/Cloud engineering positions.", "upvote_ratio": 130.0, "sub": "ITCareerQuestions"} +{"thread_id": "uor2e6", "question": "In 1990, 71% of Ukrainians voted to preserve the USSR. A year later, 92% of Ukrainians voted for independence. Why the turn of events?", "comment": "Gonna do a repost of a [repost](https://www.reddit.com/r/AskHistorians/comments/tlz1gj/why_did_the_ukrainian_sovereignty_referendum_of/i1xhccx/).\n\nFrom a previous [answer](https://www.reddit.com/r/AskHistorians/comments/m227lr/i_always_believed_the_soviet_union_fell_apart_due/gql70qm/) I wrote:\n\nThe referendum in question was held on March 17, 1991, and was worded as follows:\n\n>\u0421\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u043b\u0438 \u0412\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0421\u043e\u044e\u0437\u0430 \u0421\u043e\u0432\u0435\u0442\u0441\u043a\u0438\u0445 \u0421\u043e\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a \u043a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u043e\u0439 \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0432\u043d\u043e\u043f\u0440\u0430\u0432\u043d\u044b\u0445 \u0441\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0443\u0442 \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u0435\u0440\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u044b \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043b\u044e\u0431\u043e\u0439 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438?\n\nWhich can be translated to English as:\n\n>\"Do you consider necessary the preservation of the Union of Soviet Socialist Republics as a renewed federation of equal sovereign republics in which the rights and freedom of an individual of any ethnicity will be fully guaranteed?\"\n\nA couple things of note: the referendum was not held in six of the fifteen republics (Lithuania, Latvia, Estonia, Moldova, Georgia and Armenia). All of these except Armenia had basically elected non-communist governments in republican elections the previous year, and Lithuania had even declared independence in March 1990. Latvia and Estonia held referenda endorsing independence two weeks before the Soviet referendum, and Georgia held a similar referendum two weeks after. So even holding the vote was a fractured, not Union-wide affair. \n\nIt's also important to note the language of the referendum was for a *renewed federation of equal sovereign republics*. This may sound like a platitude, but effectively what it means is \"do you support President Gorbachev renegotiating a new union treaty to replace the 1922 USSR Treaty?\" \n\nThe background here is that after the end of the Communist Party's Constitutional monopoly on power and subsequent republican elections in 1990, the Soviet Socialist Republics, even those controlled by the Communist Party cadres, began a so-called \"war of laws\" with the Soviet federal government, with almost all republics declaring \"sovereignty\". This was essentially a move not so much at complete independence but as part of a political bid to renegotiate powers between the center and the republics. \n\nGorbachev in turn agreed to this renegotiation, and began the so-called \"Novo-Ogaryovo Process\", whereby Soviet representatives and those of nine republics (ie, not the ones who boycotted the referendum) met from January to April 1991 to hash out a treaty for a new, more decentralized federation to replace the USSR (the proposed \"Union of Soviet Sovereign Republics\" is best understood as something that was kinda-sorta maybe like what the EU has become, in terms of it being a collection of sovereign states that had a common presidency, foreign policy and military). Even the passage of the referendum in the participating nine republics wasn't exactly an unqualified success: Russia and Ukraine saw more than a quarter of voters reject the proposal, and Ukraine explicitly added wording to the referendum within its borders that terms for the renegotiated treaty would be based on the Ukrainian Declaration of State Sovereignty, which stated that Ukrainian law could nullify Soviet law. \n\nThat second question, presented to Ukrainian voters, was worded: \n\n>\"Do you agree that Ukraine should be part of a Union of Soviet Sovereign States on the basis on the Declaration of State Sovereignty of Ukraine?\"\n\nAnd interestingly it got *more* yes votes than the first Union-wide question - the OP figures are actually for the second question, while the first question got 22,110,889 votes, or 71.48%.\n\nIn any event, the treaty was signed by the negotiating representatives on April 23, and went out to the participating republics for ratification (Ukraine's legislature refused to ratify), and a formal adoption ceremony for the new treaty was scheduled to take place on August 20. \n\nThat never happened, because members of Gorbachev's own government launched a coup the previous day in order to prevent the implementation of the new treaty. The coup fizzled out after two days, but when Gorbachev returned to Moscow from house arrest in Crimea, he had severely diminished power, and Russian President Boris Yeltsin (who publicly resisted the coup plot) had vastly increased power, banning the Communist Party on Russian territory, confiscating its assets, and pushing Gorbachev to appoint Yeltsin picks for Soviet governmental positions.", "upvote_ratio": 1150.0, "sub": "AskHistorians"} +{"thread_id": "uor59v", "question": "Which comedy film never fails to make you laugh?", "comment": "What we do in the shadows. Gets me every single time", "upvote_ratio": 19490.0, "sub": "AskReddit"} +{"thread_id": "uor59v", "question": "Which comedy film never fails to make you laugh?", "comment": "Blazing Saddles", "upvote_ratio": 16490.0, "sub": "AskReddit"} +{"thread_id": "uor59v", "question": "Which comedy film never fails to make you laugh?", "comment": "Office Space, it never fails to make me laugh, especially the traffic jam scene when the guy is walking faster in his walker.", "upvote_ratio": 13360.0, "sub": "AskReddit"} +{"thread_id": "uoraop", "question": "I have to imagine lots of people drink alcohol before finding out that they are pregnant. Shouldn't this cause more issues with the baby's development? Isn't this the critical time for development when it could have the most effect on the baby?", "comment": "[removed]", "upvote_ratio": 15120.0, "sub": "AskScience"} +{"thread_id": "uoraop", "question": "I have to imagine lots of people drink alcohol before finding out that they are pregnant. Shouldn't this cause more issues with the baby's development? Isn't this the critical time for development when it could have the most effect on the baby?", "comment": "The answer is that at low and moderate levels of use in early stages of pregnancy, the studies are not as conclusive as one would like. Fetal Alcohol Syndrome is absolutely a thing and the more one drinks in pregnancies, especially at higher usages, the more likely it is to occur. Less conclusively known is what happens at very low, low and moderate ranges, mostly because scientists can't do studies on this the way that they would for other behaviors (because it would be unethical to encourage women to drink during pregnancy, knowing it can lead to fetal alcohol syndrome and other complications). There are people who take a variety of positions--Emily Oster, somewhat controversially, goes into this in her book, Expecting Better, and concludes that it is safe to occasionally have a drink while pregnant based on the studies that have been conducted. Other studies (ex: [here](https://ajp.psychiatryonline.org/doi/10.1176/appi.ajp.2020.20010086)) take the position that any alcohol at all should be avoided, and they do this by looking at broad ranges of women and asking questions about their usage prior to and during pregnancy (although the questions are often asked after the fact, so the self-reporting may not be entirely accurate).", "upvote_ratio": 7500.0, "sub": "AskScience"} +{"thread_id": "uoraop", "question": "I have to imagine lots of people drink alcohol before finding out that they are pregnant. Shouldn't this cause more issues with the baby's development? Isn't this the critical time for development when it could have the most effect on the baby?", "comment": "There's lots of conflicting info here and a lot of it comes down to there not being many studies on pregnant women because of ethics. Pretty much every drug, prescription or over the counter, says not to take it when pregnant not because there's any proof it's harmful but there isn't any proof it's not. Most of the medical info we do have is from retrospective questionnaires and the results of those are very hard to confirm.\n\nSorry if that doesn't help.", "upvote_ratio": 1860.0, "sub": "AskScience"} +{"thread_id": "uorgoq", "question": "Hello everyone, \n\nI have been working for a year as Desktop Support and my manager has recently asked me that he would want me to move to a Field tech position in few months. \nI have a bachelor in CS and the field tech requirement is HS diploma or GED. \n\nDoes this make sense at all?", "comment": "Their requirements don't make sense but the move should be what you want to do. Field tech is onsite, out of the office. You also get to interact with clients face to face. Put hands on networking equipment, etc. Everything above can also be a 'con' if you don't like any of those things. I've seen a lot of field techs move into technical account management from that role. Desktop support mostly moves into service desk, project techs, etc. \n\nMaybe you can ask to shadow with a field tech at your company for a day or two before making a decision? Just some thoughts.", "upvote_ratio": 60.0, "sub": "ITCareerQuestions"} +{"thread_id": "uorgoq", "question": "Hello everyone, \n\nI have been working for a year as Desktop Support and my manager has recently asked me that he would want me to move to a Field tech position in few months. \nI have a bachelor in CS and the field tech requirement is HS diploma or GED. \n\nDoes this make sense at all?", "comment": "I loved being a field tech. It's a good way to show you can work independently and make decisions on the fly. I was able to parlay that experience into an acquisitions project lead (the person that shows up at a recently purchased office to onboard the new network and other tech) and eventually into an internal it PM position. \n\nAll that being said, if I could support myself and my family doing break fix field work I'd go back in a heartbeat. Easily the best position I've ever had.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uorgoq", "question": "Hello everyone, \n\nI have been working for a year as Desktop Support and my manager has recently asked me that he would want me to move to a Field tech position in few months. \nI have a bachelor in CS and the field tech requirement is HS diploma or GED. \n\nDoes this make sense at all?", "comment": "I wouldn't do field work unless I got a company vehicle. It sounds like fun to drive around and meet different customers all day. Pretty quickly you realize that even if they pay for your gas, you sink a ton of extra money into car repairs.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoril1", "question": "I'm a Computer Information Systems Major graduating this fall, a semester early. A professor recommended me for an internship with a company working with IBM i software. I will be learning a language called RPG, that apparently isn't too well known. \nI wasn't going to take an internship at all, but they are paying well for an internship, and want me full time after I graduate, taking over for a retiring employee. \nBut I'm twenty years old and I don't know if this is what I want to be doing for my entire life. Obviously. \nSo I'm wondering if I'm hindering myself learning all about IBM I and RPG, and if this is actual experience that will aid me should I move on from this job? Should I be concerned about this? \n\nThank you for any advice.", "comment": "You know you don\u2019t have to do the same thing for your entire life right?", "upvote_ratio": 490.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoril1", "question": "I'm a Computer Information Systems Major graduating this fall, a semester early. A professor recommended me for an internship with a company working with IBM i software. I will be learning a language called RPG, that apparently isn't too well known. \nI wasn't going to take an internship at all, but they are paying well for an internship, and want me full time after I graduate, taking over for a retiring employee. \nBut I'm twenty years old and I don't know if this is what I want to be doing for my entire life. Obviously. \nSo I'm wondering if I'm hindering myself learning all about IBM I and RPG, and if this is actual experience that will aid me should I move on from this job? Should I be concerned about this? \n\nThank you for any advice.", "comment": "An internship is worth taking. Internship > no Internship. Don't worry about being pigeon holed because it's a proprietary language. My internship used Python and now I'm a .NET dev. Trust me, if you don't have a better offer for a different internship you like better, it is worth doing. What a good professor for doing that.", "upvote_ratio": 160.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoril1", "question": "I'm a Computer Information Systems Major graduating this fall, a semester early. A professor recommended me for an internship with a company working with IBM i software. I will be learning a language called RPG, that apparently isn't too well known. \nI wasn't going to take an internship at all, but they are paying well for an internship, and want me full time after I graduate, taking over for a retiring employee. \nBut I'm twenty years old and I don't know if this is what I want to be doing for my entire life. Obviously. \nSo I'm wondering if I'm hindering myself learning all about IBM I and RPG, and if this is actual experience that will aid me should I move on from this job? Should I be concerned about this? \n\nThank you for any advice.", "comment": "You could also take the internship, figure out if you enjoy the work, and if you don't, there's no obligation to go full time. The internship will be worthwhile, giving you talking points for future interviews!", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "uornea", "question": "Hi, why does this script shows ```All our secrets!!! \ud83d\ude28 \ud83d\ude29 \ud83d\ude31``` 2 times ???\nWhat makes me lost why passing False value gave us the same message ??? \n\n```\nclass User:\n \"\"\"system user\"\"\"\n\n def __init__(self, trusted=False):\n self.trusted = trusted\n\n def can_login(self):\n \"\"\"only let's trusted friends read secrets\"\"\"\n return self.trusted\n\n\ndef login(user):\n \"\"\"Gives access to users with privilages.\"\"\"\n if user.can_login:\n print(\"All our secrets!!! \ud83d\ude28 \ud83d\ude29 \ud83d\ude31\")\n else:\n print(\"No secrets for you!\")\n\n\nhacker = User(trusted=False)\n\nfriend = User(trusted=True)\n\nlogin(hacker)\nlogin(friend)\n```", "comment": "You haven't called the method \"can\\_login()\". You have checked the truthiness of the class's method, \"can\\_login\". In Python, I think variables that are set evaluate to true, unless they're specifically False. In this case, the class User has a method can\\_login, which evaluates to true when checked in an if statement, because the class is instantiated, so its property \"can\\_login\" evaluates to True.\n\n&#x200B;\n\nTry:\n\n`if user.can_login():`", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uorpe7", "question": "How is my web developer roadmap? Html5, Css, Bootstrap & Tailwind, Javascript, Vue.js or React, Python, Django web framework, PostgreSQL, Git & Github.\n\nI am currently learning html5 and css5. and then i will try to learn javascript. I use udemy courses to learn and practice every day. I'm going to face-to-face training for python on the weekends. This is my roadmap, what are your suggestions? My goal is to find a job in a good company..Thank you for your advices.", "comment": "Your road map is good. But you may be trying to do too much at once\u2026\u2026\n\nMy suggestion would be to focus on either frontend or back for now, find a job and then learn the other side\u2026\u2026.\n\nI am a self-taught, front end software engineer. I learned with Codecademy.com and cannot attest to udemy for learning to code, but I have used it for other things and it was a great resource\u2026.\n\nCheck out the roadmap I attached, they have roadmap other than frontend. \n\n[frontend roadmap](https://roadmap.sh/frontend)", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uorqf2", "question": "I work at a midsized company and the tech stack is kinda cool, we're breaking stuff down into microservices and using language like Typescript and Python to do that, but the main products are in PHP. \n\nWhen I was first hired as a graduate I had very little experience with it, but I was told I was bein hired to work on mostly python and typescript/node.js stuff because that's what I knew best at the time. Now I don't hate PHP, I like the ease of use of it and I've gotten used to it quirks, but I don't want box myself into only being a PHP dev and after about a year and a half now I would say my percentage time spent on PHP and other languages is about 60/40 respectively.\n\nI have received an offer from a larger company, where I'll be doing Go and Scala in addition to python and typescript so I think it's kind of a no brainer to move on.\n\nI really like my current software engineering team (the QA team are snobs though ngl), we're all really supportive and cool. It's also my first engineering job after graduating so it's got that kinda first ever job vibe to it you know. But in terms of my career I don't think PHP is going to do much good for my resume (I'm in my early twenties btw)\n\nHow would I tell my lead this? Without sounding like a dick and that I was only pretending to like what they are doing and that I was lying when I had my review about how I found the code base. \n\nTldr: I don't want to work on PHP and handing in my notice, how do I not make it sound like I'm a dick.\n\nAlso, how do I hand in a notice? Do I just email it?\n\nEdit: thank you for all the replies, you have all given me alot of great advice and I have a better idea of how to proceed.", "comment": "\"Hey bosmang, I've really enjoyed this role but I want to expand my skills and transition into a different tech stack. I think its for the best I part ways. My last day is X date.\"", "upvote_ratio": 1070.0, "sub": "CSCareerQuestions"} +{"thread_id": "uorqf2", "question": "I work at a midsized company and the tech stack is kinda cool, we're breaking stuff down into microservices and using language like Typescript and Python to do that, but the main products are in PHP. \n\nWhen I was first hired as a graduate I had very little experience with it, but I was told I was bein hired to work on mostly python and typescript/node.js stuff because that's what I knew best at the time. Now I don't hate PHP, I like the ease of use of it and I've gotten used to it quirks, but I don't want box myself into only being a PHP dev and after about a year and a half now I would say my percentage time spent on PHP and other languages is about 60/40 respectively.\n\nI have received an offer from a larger company, where I'll be doing Go and Scala in addition to python and typescript so I think it's kind of a no brainer to move on.\n\nI really like my current software engineering team (the QA team are snobs though ngl), we're all really supportive and cool. It's also my first engineering job after graduating so it's got that kinda first ever job vibe to it you know. But in terms of my career I don't think PHP is going to do much good for my resume (I'm in my early twenties btw)\n\nHow would I tell my lead this? Without sounding like a dick and that I was only pretending to like what they are doing and that I was lying when I had my review about how I found the code base. \n\nTldr: I don't want to work on PHP and handing in my notice, how do I not make it sound like I'm a dick.\n\nAlso, how do I hand in a notice? Do I just email it?\n\nEdit: thank you for all the replies, you have all given me alot of great advice and I have a better idea of how to proceed.", "comment": "The polite way? \"I have an opportunity to grow and expand my skills\" \n\nThe less polite way \"I don't like our tech stack\"\n\nThough, honestly, I just hand in my notice and say \"I have a new opportunity\".\n\nEmail is a pretty common way to turn in notices these days. Haven't printed a physical notice...well, ever actually. And I've been doing this since fax machines were still a thing.", "upvote_ratio": 500.0, "sub": "CSCareerQuestions"} +{"thread_id": "uorqf2", "question": "I work at a midsized company and the tech stack is kinda cool, we're breaking stuff down into microservices and using language like Typescript and Python to do that, but the main products are in PHP. \n\nWhen I was first hired as a graduate I had very little experience with it, but I was told I was bein hired to work on mostly python and typescript/node.js stuff because that's what I knew best at the time. Now I don't hate PHP, I like the ease of use of it and I've gotten used to it quirks, but I don't want box myself into only being a PHP dev and after about a year and a half now I would say my percentage time spent on PHP and other languages is about 60/40 respectively.\n\nI have received an offer from a larger company, where I'll be doing Go and Scala in addition to python and typescript so I think it's kind of a no brainer to move on.\n\nI really like my current software engineering team (the QA team are snobs though ngl), we're all really supportive and cool. It's also my first engineering job after graduating so it's got that kinda first ever job vibe to it you know. But in terms of my career I don't think PHP is going to do much good for my resume (I'm in my early twenties btw)\n\nHow would I tell my lead this? Without sounding like a dick and that I was only pretending to like what they are doing and that I was lying when I had my review about how I found the code base. \n\nTldr: I don't want to work on PHP and handing in my notice, how do I not make it sound like I'm a dick.\n\nAlso, how do I hand in a notice? Do I just email it?\n\nEdit: thank you for all the replies, you have all given me alot of great advice and I have a better idea of how to proceed.", "comment": "First, you don't really owe them anything. Just say that you have a new opportunity that is good for your career. You don't have to justify yourself.", "upvote_ratio": 120.0, "sub": "CSCareerQuestions"} +{"thread_id": "uorw2o", "question": "Given the choice between two courses 1 - in a language you aren't familiar with (also that you don't particularly like) but with a bunch of common industry frameworks. Or 2 - a language you are familiar with (and also like) but with fewer industry frameworks. Which would you choose? \n\nMy gut tells me, go for the language you like and learn the frameworks on your own later. But thats just a gut feeling, I'm curious to know what people from the industry say.", "comment": "This would depend on the job. I'm interviewing soon for a job that centers around one framework (and knowledge of the language is expected). I've also seen many postings that seem more focused on the language because they develop tools internally, so they can't expect new hires to be familiar with them already.\n\nHell, I've applied to jobs that expected 0 knowledge of the language or frameworks they use. They just expected that you'd learn them all on the job (it was a Rust position).", "upvote_ratio": 120.0, "sub": "LearnProgramming"} +{"thread_id": "uorw2o", "question": "Given the choice between two courses 1 - in a language you aren't familiar with (also that you don't particularly like) but with a bunch of common industry frameworks. Or 2 - a language you are familiar with (and also like) but with fewer industry frameworks. Which would you choose? \n\nMy gut tells me, go for the language you like and learn the frameworks on your own later. But thats just a gut feeling, I'm curious to know what people from the industry say.", "comment": "If your interviewer is selecting for your knowledge of OOP (or literally any other dogma) then ask yourself if you want to be a programmer or a cultist before continuing with the interview. (Only slightly sarcastic)", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "uorw2o", "question": "Given the choice between two courses 1 - in a language you aren't familiar with (also that you don't particularly like) but with a bunch of common industry frameworks. Or 2 - a language you are familiar with (and also like) but with fewer industry frameworks. Which would you choose? \n\nMy gut tells me, go for the language you like and learn the frameworks on your own later. But thats just a gut feeling, I'm curious to know what people from the industry say.", "comment": "I would probably lean towards the languages you know and can use fully. This allows for a broad range of ability and use of said ability", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "uory2p", "question": "If dentists make their money from bad teeth, why do we use the toothpaste they recommend?", "comment": "Believe it or not, many doctors and dentists are actually ethical or even altruistic, and don\u2019t base their recommendations on personal profit.", "upvote_ratio": 10250.0, "sub": "NoStupidQuestions"} +{"thread_id": "uory2p", "question": "If dentists make their money from bad teeth, why do we use the toothpaste they recommend?", "comment": "by that logic, why do anything any doctor says if they profit off of us being sick and coming back?", "upvote_ratio": 1980.0, "sub": "NoStupidQuestions"} +{"thread_id": "uory2p", "question": "If dentists make their money from bad teeth, why do we use the toothpaste they recommend?", "comment": "Healthy teeth make more money for a dentist over the long run. Bad teeth get pulled. People who care about their teeth are willing to spend way more money protecting and maintaining them.", "upvote_ratio": 1080.0, "sub": "NoStupidQuestions"} +{"thread_id": "uos2rn", "question": "I come from Java, where a List<Cat> is a List<? extends Animal>. \n\nI tried reading articles about c++ variance but I got nowhere.\n\nIf I have a function\n\n void foo(std::vector<Animal>)\n\nI can't pass a std::vector<Cat> ; I guess my designs are wrong from the start and I usually wriggle out of it but I'd like to know the 'right' way. I understand why it does not work. \nSo, how can I use foo with a vector<Cat> ? What should I do instead ?\n\n struct Animal{\n char* whatever;\n };\n\n struct Cat:public Animal{};\n\n void foo(std::vector<Animal>){}\n\n int main(int, char **)\n {\n std::vector<Cat> v;\n foo(v); //<- Nope\n }", "comment": "You dont. If you want to use runtime polymorphism (as you appear to do), then you need to store pointers. A container can only store one type, and if you have a `vector<Animal>` that is a distinct and unrelated type to `vector<Cat>`. No conversion exists, because converting those would require a copy and slice of every element.\n\nHence instead of `Animal` you need to store/take `Animal*` (or a reference, or a smart pointer,...)\n\nIn managed languages like Java this all simply works under the hood, because \"everything is a reference\".\n\n\n---\n\nFurther, note that your `foo` function does copy a vector. You most likely dont want to do that.\n\nAlso **never** use `char*` unless some C API forces you.\n\n---\n\n #include <vector>\n #include <memory>\n #include <string>\n #include <span>\n\n\n struct Animal\n {\n std::string name;\n virtual ~Animal() = default;\n };\n\n struct Cat : public Animal\n { };\n\n void f( const std::span<const std::unique_ptr<Animal>> vec ); //If you dont have access to c++20 span, use `const vector&` instead\n\n int main()\n {\n std::vector<std::unique_ptr<Animal>> v;\n v.emplace_back( std::make_unique<Cat>() ); // note that now you cant have pretty initializer lists anymore, because std::initializer_list ist stupid.\n f( v );\n }", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "uos2rn", "question": "I come from Java, where a List<Cat> is a List<? extends Animal>. \n\nI tried reading articles about c++ variance but I got nowhere.\n\nIf I have a function\n\n void foo(std::vector<Animal>)\n\nI can't pass a std::vector<Cat> ; I guess my designs are wrong from the start and I usually wriggle out of it but I'd like to know the 'right' way. I understand why it does not work. \nSo, how can I use foo with a vector<Cat> ? What should I do instead ?\n\n struct Animal{\n char* whatever;\n };\n\n struct Cat:public Animal{};\n\n void foo(std::vector<Animal>){}\n\n int main(int, char **)\n {\n std::vector<Cat> v;\n foo(v); //<- Nope\n }", "comment": "The good news is that in C++ you avoid storing a Dolphin in an array of Cat, which is possible to attempt in Java (because both are arrays of Animal), I believe with an immediate exception as result.\n\nThat's also the bad news, that *a mutable array of `Derived*` is not safely a mutable array of `Base*`*, regardless of language. Because when `Derived` is `Cat` and `Base` is `Animal`, it's unsafe to let a function treat that `Cat` pointers array as an `Animal` pointers array, and store a pointer to `Dolphin` in it. If you could then the `Cat` pointer array owner would be in for a nasty surprise trying to move the dolphin out of the comfy chair.\n\nSo, you need to let the function deal with a `const` array-or-vector of `Animal*` (or smart pointer, or `std::reference_wrapper`, whatever).", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "uosc61", "question": "Hi, I\u2019m a 23f, and I\u2019m really fascinated in the different teachings and values that different generations have and pass down, and which ones they learned from their ancestors that they\u2019ve discarded. What are some life lessons, values, or habits that you believe would help the younger generations now? Even when taking in consideration their unique struggles?", "comment": "For starters, treat each individual you may encounter in your life with human dignity.\n\nAmerican culture, in case you haven't noticed, is often individualistic. There's this sort of Rambo attitude that it's you against the World.\n\nThe reality is, the way things get done is by working together as a team. This is how we improve the quality of our lives. Cooperation requires compromise.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uosc61", "question": "Hi, I\u2019m a 23f, and I\u2019m really fascinated in the different teachings and values that different generations have and pass down, and which ones they learned from their ancestors that they\u2019ve discarded. What are some life lessons, values, or habits that you believe would help the younger generations now? Even when taking in consideration their unique struggles?", "comment": "Life lesson: Nothing you are experiencing now is uniquely bad. Some previous generations have had it a bit better. Some have had it much, much worse. The world didn\u2019t end in either case. \n\nValue: self-sufficiency. Ultimately, we are all responsible for our own well-being, and we all have an obligation (to the best of our abilities) not to become a burden on society or on our friends & families. \n\nHabits: when in doubt, keep your mouth shut. There\u2019s no need to say something about everything.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uosc61", "question": "Hi, I\u2019m a 23f, and I\u2019m really fascinated in the different teachings and values that different generations have and pass down, and which ones they learned from their ancestors that they\u2019ve discarded. What are some life lessons, values, or habits that you believe would help the younger generations now? Even when taking in consideration their unique struggles?", "comment": "Live within your means. Learn to cook from scratch. Look for free or low cost ways to have fun. Always pay off your credit card. Learn to be handy. Spend time with family and friends. Walk or bike whenever possible. Avoid get-rich-quick schemes. If it sounds too good to be true, it is.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "uoscs7", "question": "Customer inputs their info into a web form and it comes to my email. Can I automate the info to go directly into our customer database?\n\nIt is not my program. I did not write any code. Think of me as say, a bank employee. I take the info from my email and input it into a database which my company pays a fee to use. We do not own the software for the database.", "comment": "There is some code on your website that parses the form, and send it to your e-mail.\n\nThat same code can send the same information to the server that hosts your database, and write it there.", "upvote_ratio": 170.0, "sub": "LearnProgramming"} +{"thread_id": "uoscs7", "question": "Customer inputs their info into a web form and it comes to my email. Can I automate the info to go directly into our customer database?\n\nIt is not my program. I did not write any code. Think of me as say, a bank employee. I take the info from my email and input it into a database which my company pays a fee to use. We do not own the software for the database.", "comment": "I think this might be the kind of solution you're looking for: https://automatetheboringstuff.com/chapter18/", "upvote_ratio": 70.0, "sub": "LearnProgramming"} +{"thread_id": "uoscs7", "question": "Customer inputs their info into a web form and it comes to my email. Can I automate the info to go directly into our customer database?\n\nIt is not my program. I did not write any code. Think of me as say, a bank employee. I take the info from my email and input it into a database which my company pays a fee to use. We do not own the software for the database.", "comment": "I would say. Have something to parse the email and get the informations required. \n\nIf the db has a public api, send a post request to the endpoint. \n\nElse, if you have to use a GUI, I think python has pretty good libraries to automate user interactions. You could also look into js automation input library if the gui lives in a browser. \n\nI think it all depends on the type of database you are using!", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "uoshxo", "question": "Most recent : Amazon on site.\n\nOldest - fresh out of college for an entry SWE position. The coding exercise was to reverse a string. I knew how to do it, but my mind went blank and I struggled to put together a For loop in Java. I even googled it and looked at a for loop and I still couldn't put it together for 45 minutes! Yes, I made them watch me struggled for 45 minutes.", "comment": "Reversing a string is easy, until you get an emoji with color modifier \ud83d\ude02", "upvote_ratio": 440.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoshxo", "question": "Most recent : Amazon on site.\n\nOldest - fresh out of college for an entry SWE position. The coding exercise was to reverse a string. I knew how to do it, but my mind went blank and I struggled to put together a For loop in Java. I even googled it and looked at a for loop and I still couldn't put it together for 45 minutes! Yes, I made them watch me struggled for 45 minutes.", "comment": "Tanked most of my on-site, came back home and built a very complicated component. \ud83d\ude02. Circle of life for developers?", "upvote_ratio": 240.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoshxo", "question": "Most recent : Amazon on site.\n\nOldest - fresh out of college for an entry SWE position. The coding exercise was to reverse a string. I knew how to do it, but my mind went blank and I struggled to put together a For loop in Java. I even googled it and looked at a for loop and I still couldn't put it together for 45 minutes! Yes, I made them watch me struggled for 45 minutes.", "comment": "I've participated in technical interviews from the other side at a junior level (not the decision-maker), and I always tell candidates that they are free to use psuedocode or even just plain English like it was a recipe for brownies (the fun kind, of course). \n\nI don't care how well someone can memorize the precise syntax of a given programming language; I just want them to be able to demonstrate the ability to programmatically break down a problem into discrete steps to accomplish their goal.\n\nTechnical programming tests that go beyond \"can you code your way out of a wet paper sack?\" are a waste of everyone's time. The position (any position) is very likely to never involve having to figure out how to implement some in-place sorting algorithm of a n-length array in Big O NlogN or better time or whatever other Leetcode challenge interviewers like to dig up.", "upvote_ratio": 180.0, "sub": "CSCareerQuestions"} +{"thread_id": "uosjpr", "question": "I'm leading a team that includes some extremely junior Python developers working in an OO style, myself being a long-time Python user but new to using Python in a team at a larger scale. (My background is mostly JVM languages.) My team has a pervasive issue of writing classes that present poorly designed interfaces to other code. You name the mistake, we've made it: overly specific methods, forcing the calling code to coordinate internal workflow, method and parameter names that reflects the internal implementation of a class rather than its purpose, etc.\n\nWorking with our developers, I have noticed that when they create or modify a class, they don't have a clear idea what the public interface for the class even is, so they aren't aware if they're creating a good interface or a bad one, or making it better or worse when they change it. \n\nAre there techniques for structuring or formatting our code that can help foreground the public API of a class and make it more evident and more front-of-mind for junior developers? For example, is it a common practice in Python to tag \"private\" methods with a leading underscore? This is a habit I picked up a long time ago, but I can't tell how standard it is. Nobody does it at my company, and I've seen it in some open-source libraries but not all of them.\n\nAlso, are there documentation tools that help with this? I'm encouraging our developers to use our API docs generated with the pydoc tool, hoping that this makes them more conscious of understandability of the APIs they create, but I have not had much success getting them to even look. Maybe I'm crazy, but I feel like pydoc creates documentation in a style that caters to more experienced, confident, patient readers. My younger programmers look at it and are instantly intimidated and incapacitated. I know it's awful to say, but is there a way to create docs in a style that would feel more familiar and reassuring to them? I'd look for it myself, but I'm too old to even recognize it if I saw it.", "comment": "> For example, is it a common practice in Python to tag \"private\" methods with a leading underscore? This is a habit I picked up a long time ago, but I can't tell how standard it is. Nobody does it at my company, and I've seen it in some open-source libraries but not all of them.\n\nYeah this is standard.\n\nAnother thing to do is to write your tests so that they only use the public interface of the classes. That way they'll break when someone inadvertently screws up the API. Try doing TDD: write the tests that use the public interface first, then write the code to make them pass. Refactor as needed. By thinking first from the perspective of the caller, they will have to consider what the public API should be before any code is written.\n\n(You do have a test suite, right?)\n\nYou should flag this sort of thing up in code review. Juniors should not be able to directly commit code that breaks APIs, with nobody giving it a spot check.\n\nConsider whether your juniors have impostor syndrome and are afraid of asking questions like this for fear of looking stupid. They might not even have a coherent idea of what an API _is_. You need to mentor them. Maybe try pair programming? Or give a lunchbreak seminar about how to design and maintain an API.\n\nAlso, do you even need to [write a class](https://www.youtube.com/watch?v=5ZKvwuZSiyc) in the first place? If you're coming from Java you may be overusing them.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "uosjpr", "question": "I'm leading a team that includes some extremely junior Python developers working in an OO style, myself being a long-time Python user but new to using Python in a team at a larger scale. (My background is mostly JVM languages.) My team has a pervasive issue of writing classes that present poorly designed interfaces to other code. You name the mistake, we've made it: overly specific methods, forcing the calling code to coordinate internal workflow, method and parameter names that reflects the internal implementation of a class rather than its purpose, etc.\n\nWorking with our developers, I have noticed that when they create or modify a class, they don't have a clear idea what the public interface for the class even is, so they aren't aware if they're creating a good interface or a bad one, or making it better or worse when they change it. \n\nAre there techniques for structuring or formatting our code that can help foreground the public API of a class and make it more evident and more front-of-mind for junior developers? For example, is it a common practice in Python to tag \"private\" methods with a leading underscore? This is a habit I picked up a long time ago, but I can't tell how standard it is. Nobody does it at my company, and I've seen it in some open-source libraries but not all of them.\n\nAlso, are there documentation tools that help with this? I'm encouraging our developers to use our API docs generated with the pydoc tool, hoping that this makes them more conscious of understandability of the APIs they create, but I have not had much success getting them to even look. Maybe I'm crazy, but I feel like pydoc creates documentation in a style that caters to more experienced, confident, patient readers. My younger programmers look at it and are instantly intimidated and incapacitated. I know it's awful to say, but is there a way to create docs in a style that would feel more familiar and reassuring to them? I'd look for it myself, but I'm too old to even recognize it if I saw it.", "comment": "It sounds like there may be some kind of organizational issue at play as well here. When the juniors are given tasks, do they have all the information they need? Or are they asked to design features and the requirements shift after the initial implementation? I\u2019d suggest having them create design documents for the components they\u2019re planning on creating prior to writing code. This may force them to consciously think about the end product before writing it. You could also have more in-depth code reviews. Some of the code reviews I\u2019ve learned most from needed to be reworked several times.\n\nFor docs, setting up a documentation system is daunting. If there\u2019s a system already in place but they are forgetting the step of documenting once their feature is done, then that should be caught in code review. It\u2019s simple, code that doesn\u2019t get reflected in the docs doesn\u2019t get approved for merge.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "uosnni", "question": "I\u2019ve recently become more interested in science fiction and this series seems as epic as Lord of the Rings.", "comment": "Few weeks ago, actually. Never realized there were sequels.", "upvote_ratio": 870.0, "sub": "AskAnAmerican"} +{"thread_id": "uosnni", "question": "I\u2019ve recently become more interested in science fiction and this series seems as epic as Lord of the Rings.", "comment": "Yes I\u2019ve read it. I don\u2019t think it\u2019s as good as *Lord or the Rings*: Herbert lacks Tolkien\u2019s commitment to internal consistency. But it\u2019s very good and comes closer to what Tolkien did than most authors do.\n\nBoth *Lord of the Rings* and *Dune* have a distinct atmospheric feeling. A place or a thing can remind me of either of those universes without being directly connected to anything from the books. Where Tolkien beats Herbert I think is that he maintains that atmosphere through everything in the Middle Earth setting, while the feel of the first *Dune* book is not really recaptured in the later Frank Herbert *Dune* novels (to say nothing of the Brian Herbert and Kevin J. Anderson sequels which I only started and then abandoned.)", "upvote_ratio": 370.0, "sub": "AskAnAmerican"} +{"thread_id": "uosnni", "question": "I\u2019ve recently become more interested in science fiction and this series seems as epic as Lord of the Rings.", "comment": "Yup! It's one of my favorites, and almost certainly the most influential series in Sci-fi. Not a much as LotR is to fantasy (arguably nothing is), but still a giant of the genre.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uosogj", "question": "Hello. I was wondering whether the line `e for e in range(1, n+1) if e % 3 == 0 or e % 5 == 0` can be referred to as a \"generator comprehension\", or would it be something else?\n\nFurthermore, can the line `[first, last] = str_.split()` be referred to as an unpacking? (str_ is a two word string)", "comment": "1) Strictly speaking it's called a \"generator expression\" rather than \"comprehension\". Why, I don't know.\n\n2) Yes that's unpacking.", "upvote_ratio": 70.0, "sub": "LearnPython"} +{"thread_id": "uospv7", "question": "I remember browsing in 2020 and I had the time of my life. I trolled, I bonded with people and it was all good. Now, suddenly, everyone feels offended all the time and rarely feels the need to post anything in here anymore. So, what the hell happened?", "comment": "This sub seems flooded with bored people, who have huge imaginations and very specific fetishes.", "upvote_ratio": 100.0, "sub": "AMA"} +{"thread_id": "uospv7", "question": "I remember browsing in 2020 and I had the time of my life. I trolled, I bonded with people and it was all good. Now, suddenly, everyone feels offended all the time and rarely feels the need to post anything in here anymore. So, what the hell happened?", "comment": "You said you trolled. That's the answer- the trolls are ruining the sub.", "upvote_ratio": 40.0, "sub": "AMA"} +{"thread_id": "uospv7", "question": "I remember browsing in 2020 and I had the time of my life. I trolled, I bonded with people and it was all good. Now, suddenly, everyone feels offended all the time and rarely feels the need to post anything in here anymore. So, what the hell happened?", "comment": "I breath air , AMA!\n\n\n\nThis sub has gone to shit...there's a few diamonds in the rough though like the PI's AMA and the guy that can taste music", "upvote_ratio": 40.0, "sub": "AMA"} +{"thread_id": "uosr8e", "question": "I have been arrested twice. Still kickin'", "comment": "I\u2019m Russian and just moved to America. I don\u2019t support the war either", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "uosr8e", "question": "I have been arrested twice. Still kickin'", "comment": "I have read about hundreds of thousands of Russians using VPNs now. Do you think more Russians are getting western news? Or is that just western optimism?\n\nDo you sense that opinion is shifting on the war?", "upvote_ratio": 40.0, "sub": "AMA"} +{"thread_id": "uosr8e", "question": "I have been arrested twice. Still kickin'", "comment": "Not a question. Just support for you and all the brave people with you.", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "uot1fy", "question": "Productivity seems to be the name of the game, for those that have experimented with their hours of sleep what did you find to be the most ideal? \n\nIs staying up and studying but only sleeping 5 or 6 hours doing more harm than good? \n\nDid you find that studying less but sleeping more boosted your overall information retention and productivity?\n\nFor those that have been in the industry for years and years how has your sleeping patterns changed throughout your career?", "comment": "Cutting sleep to be more \"productive\" is a false economy, is the politest way I can find to put this.", "upvote_ratio": 2640.0, "sub": "CSCareerQuestions"} +{"thread_id": "uot1fy", "question": "Productivity seems to be the name of the game, for those that have experimented with their hours of sleep what did you find to be the most ideal? \n\nIs staying up and studying but only sleeping 5 or 6 hours doing more harm than good? \n\nDid you find that studying less but sleeping more boosted your overall information retention and productivity?\n\nFor those that have been in the industry for years and years how has your sleeping patterns changed throughout your career?", "comment": "I get way more sleep now that I'm working than I did when I was in school.", "upvote_ratio": 2290.0, "sub": "CSCareerQuestions"} +{"thread_id": "uot1fy", "question": "Productivity seems to be the name of the game, for those that have experimented with their hours of sleep what did you find to be the most ideal? \n\nIs staying up and studying but only sleeping 5 or 6 hours doing more harm than good? \n\nDid you find that studying less but sleeping more boosted your overall information retention and productivity?\n\nFor those that have been in the industry for years and years how has your sleeping patterns changed throughout your career?", "comment": "I find that I feel like a criminal every time I sleep less than 8 hours.\n\nI only ever sleep late when I stubbornly want to stay up for fun.\n\nI am really skeptical that sleeping less hours is a safe experiment. Do you want to guarantee meeting the same health performance as others, or are you willing to bet all your health on squeezing more hours being awake?\n\nYou also can't get much done when you are sleepy anyways.\n\nI love sleeping.", "upvote_ratio": 2200.0, "sub": "CSCareerQuestions"} +{"thread_id": "uot343", "question": "I'm on version 11.6.10.433184565-release-arm64-v8a\n\nPixel 6 Pro", "comment": "Still works for me, version 11.7.07.439544614-beta-arm64-v8a on Pixel 5a", "upvote_ratio": 40.0, "sub": "AndroidQuestions"} +{"thread_id": "uot40e", "question": "What is something bad you have done with no regrets? [Serious]", "comment": "Worked as an orthopedic nurse for two years. The orthopedic director (Dr Assfuck) was not only a tyrant, but he also didn\u2019t believe people had any pain after having a total knee replacement. I frequently got orders from him for Tylenol, when patients said they were in agony. I sat beside so many times holding the hands of innocent little old ladies we were in excruciating pain. \n\nI spent so much of my shift calling Dr Assfuck and demanding pain medication for suffering people, only for him to order non narcotic pain relief (ice, walking, massage). \n\nHe finally blew a gasket one day, and codified all the things we had to try before contacting the physician for pain relief. The smug prick even codified it into policy.\n\nOne day, I arrive for work to find all my co-workers arguing about taking a patient. This wasn\u2019t news, because we had any number of frequent flying Karen\u2019s, who could make your shift awful. \n\nThe patient was Dr Assfuck, he had a total knee done. I had a smile as big as the Grinch on Christmas when I volunteered to take him.\n\nOn assessment, he rated his pain a 10 on a 0 to 10 scale. I told him his pain couldn\u2019t be that bad, it\u2019s just knee surgery. Didn\u2019t you tell me it doesn\u2019t hurt. Dr Assfuck demanded I get him some IV morphine ot dilaudid. No can do Doc. You\u2019re not the physician on this case, and it\u2019s policy that we try all these other things before I call.\n\nI made him work through the whole list just like everyone else before. At the end of my shift he was crying so hard, he was blowing snot bubbles. I don\u2019t feel bad at all.\n\nAfter his stay, his orders changed to include pain medication.", "upvote_ratio": 233670.0, "sub": "AskReddit"} +{"thread_id": "uot40e", "question": "What is something bad you have done with no regrets? [Serious]", "comment": "A drunk driver hit my parked car, left a huge dent in the front driver\u2019s side door, and then drove away. I happened to be looking out the window at the time and saw the whole thing, including his plate number. Cops got there not long after and took my statement. After a couple days and a couple phone calls, I found out nothing was going to come of it because he was the son of the sheriff the next county over. \n\nFast forward a couple months, I see his car parked behind a local bar within walking distance of my apartment. I got out my hunting knife and sliced all four of his tires, and made a couple trips around it destroying the paint job. Yellow Pontiac Sunfire, and I still remember the goddamn plate number even after almost 20 years.", "upvote_ratio": 167180.0, "sub": "AskReddit"} +{"thread_id": "uot40e", "question": "What is something bad you have done with no regrets? [Serious]", "comment": "I was a GM for a retailer that was going out of business. During the liquidation I let my employees that worked until the end store product they wanted to buy in a closet I claimed I didn't have a key to. Oh the final days I sold them all the items they requested for 95% off. 70\" tvs, ipads, gaming laptops whatever they requested.", "upvote_ratio": 126640.0, "sub": "AskReddit"} +{"thread_id": "uot680", "question": "My uni organizes a mandatory hackaton (it's required to pass a course on Agile development) and I landed in a group where everyone is a fullstack webdev and I am a meager Android developer. The groups met up only a few days ago and that's when I found I don't fit in and I didn't have the time to prepare (I had a job interview, I think it went okayish but there were so many people applying it should have went great to have any hopes) and the hackaton starts tomorrow.\n\nHow can I help the rest of them with working on the app? The Project Owner and Scrum Master roles (it's uni organized so they want us to simulate some agile roles) are filled. I know a bit of Linux and might be able to help with hosting things on Docker containers but I think their IDEs are already capable of creating their own docker images for deployment.\n\nAlso, I know Kotlin and they want to use React. I know about Kotlin/JS but haven't used it, and also I have no idea about React. Just throwing it here in case someone has an idea if it's usable in any way.\n\n###edit: on my way to the meeting\n\n###edit2: I'm back\nit's okay, I seem to be doing the CI/CD and also frontend webdev, and a guy has declared himself to support me if any need arises", "comment": "You can write an entire program in psuedocode and then translate it to whatever language you want. Not sure why you think you have to know a specific language to design the software.\n\nYou are in a perfect position to do code reviews. If their code is not obvious to someone who is not familiar with the language then they need to name their variables/methods better. Forcing them to explain what their code does often reveals flaws. You will also learn a lot. Go find some code standard documents and share them with the team - enforce those in the reviews. Don't let people write garbage code.\n\nYou could extend that to some QA tasks. Write unit tests that break their code. Force them to handle common edge cases. Write some scripts that interact with whatever APIs are being used.\n\nYou could be devops - stand up a Jenkins server and have it auto-building commits. (This takes an hour if you know how to do it, maybe a day the first time you do it.) Create a strategy for using Git. Setup a local server or coordinate a github repo.\n\nDo the marketing. Your team could have the best project ever made and get an F due to a shit presentation. Create some powerpoints and documentation for the project. Graphs that show how your project fixes or helps whatever you are solving. Use those to sell the project to your teacher or whoever is judging. I guarantee 95% of the teams will have some garbage demo when presenting. Be part of that 5% that has a plan, documentation, a working demo. Talk about how your project is better quality than the others due to code reviews and testing. Show off your test cases and code coverage.", "upvote_ratio": 3230.0, "sub": "LearnProgramming"} +{"thread_id": "uot680", "question": "My uni organizes a mandatory hackaton (it's required to pass a course on Agile development) and I landed in a group where everyone is a fullstack webdev and I am a meager Android developer. The groups met up only a few days ago and that's when I found I don't fit in and I didn't have the time to prepare (I had a job interview, I think it went okayish but there were so many people applying it should have went great to have any hopes) and the hackaton starts tomorrow.\n\nHow can I help the rest of them with working on the app? The Project Owner and Scrum Master roles (it's uni organized so they want us to simulate some agile roles) are filled. I know a bit of Linux and might be able to help with hosting things on Docker containers but I think their IDEs are already capable of creating their own docker images for deployment.\n\nAlso, I know Kotlin and they want to use React. I know about Kotlin/JS but haven't used it, and also I have no idea about React. Just throwing it here in case someone has an idea if it's usable in any way.\n\n###edit: on my way to the meeting\n\n###edit2: I'm back\nit's okay, I seem to be doing the CI/CD and also frontend webdev, and a guy has declared himself to support me if any need arises", "comment": "It's university - none of you are \"fullstack webdevs\" or \"Android developers\" or anything else, you're all students and you're all there to learn. \n\nTalk to your group and see where it is you can be helpful, IMO this is a great opportunity to learn about something you don't have a ton of experience with.", "upvote_ratio": 1500.0, "sub": "LearnProgramming"} +{"thread_id": "uot680", "question": "My uni organizes a mandatory hackaton (it's required to pass a course on Agile development) and I landed in a group where everyone is a fullstack webdev and I am a meager Android developer. The groups met up only a few days ago and that's when I found I don't fit in and I didn't have the time to prepare (I had a job interview, I think it went okayish but there were so many people applying it should have went great to have any hopes) and the hackaton starts tomorrow.\n\nHow can I help the rest of them with working on the app? The Project Owner and Scrum Master roles (it's uni organized so they want us to simulate some agile roles) are filled. I know a bit of Linux and might be able to help with hosting things on Docker containers but I think their IDEs are already capable of creating their own docker images for deployment.\n\nAlso, I know Kotlin and they want to use React. I know about Kotlin/JS but haven't used it, and also I have no idea about React. Just throwing it here in case someone has an idea if it's usable in any way.\n\n###edit: on my way to the meeting\n\n###edit2: I'm back\nit's okay, I seem to be doing the CI/CD and also frontend webdev, and a guy has declared himself to support me if any need arises", "comment": "\"Full stack web dev\" is being fetishized here. Your mobile skills should be completely applicable to what they do. You'll be fine.", "upvote_ratio": 550.0, "sub": "LearnProgramming"} +{"thread_id": "uota0f", "question": "I was cheated on my by husband. AMA.", "comment": "How did you find out?", "upvote_ratio": 860.0, "sub": "AMA"} +{"thread_id": "uota0f", "question": "I was cheated on my by husband. AMA.", "comment": "What was his reaction when you confronted him?", "upvote_ratio": 520.0, "sub": "AMA"} +{"thread_id": "uota0f", "question": "I was cheated on my by husband. AMA.", "comment": "Cheating is abusive. Not only emotionally because it holds you hostage in a relationship without the honesty of what the other person did bit also physically because it puts you at risk of STDs.", "upvote_ratio": 510.0, "sub": "AMA"} +{"thread_id": "uotaoz", "question": "I just heard an interview with the organisers of the Rugby World Cup 2031,scheduled for the USA... together with comments from the chairman of World Rugby.\n\nThey suggest 1 billion dollars revenue,3 million tickets sold all over the US, and sell out stadiums with crowds up to over 100,000 for the biggest matches.\n\nWhat do you think? Is there this level of interest in the US? The US team is certainly not at a high level now, they may well not even qualify for the next World Cup.\n\nOr will people go to watch anyway, even if the US is not a realistic contender?\n\nWould you pay serious money to go and watch a rugby match?", "comment": "I highly doubt a rugby match would sell out a football stadium in the US.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uotaoz", "question": "I just heard an interview with the organisers of the Rugby World Cup 2031,scheduled for the USA... together with comments from the chairman of World Rugby.\n\nThey suggest 1 billion dollars revenue,3 million tickets sold all over the US, and sell out stadiums with crowds up to over 100,000 for the biggest matches.\n\nWhat do you think? Is there this level of interest in the US? The US team is certainly not at a high level now, they may well not even qualify for the next World Cup.\n\nOr will people go to watch anyway, even if the US is not a realistic contender?\n\nWould you pay serious money to go and watch a rugby match?", "comment": "I would not go see a Rugby match. \n\n\nI do believe a lot of people will travel from elsewhere to see it though, and with 330,000,000 people in the US finding a few million people who watch Rugby will not be difficult.", "upvote_ratio": 210.0, "sub": "AskAnAmerican"} +{"thread_id": "uotaoz", "question": "I just heard an interview with the organisers of the Rugby World Cup 2031,scheduled for the USA... together with comments from the chairman of World Rugby.\n\nThey suggest 1 billion dollars revenue,3 million tickets sold all over the US, and sell out stadiums with crowds up to over 100,000 for the biggest matches.\n\nWhat do you think? Is there this level of interest in the US? The US team is certainly not at a high level now, they may well not even qualify for the next World Cup.\n\nOr will people go to watch anyway, even if the US is not a realistic contender?\n\nWould you pay serious money to go and watch a rugby match?", "comment": "If they promote it well they might get people going out for the novelty. Especially so if it's done on a comparatively short timescale like the Olympics.\n\nOr it could fail miserably. I don't really know.", "upvote_ratio": 90.0, "sub": "AskAnAmerican"} +{"thread_id": "uotlbw", "question": "I am a student who has spent a good amount of time in C#. I also have experience with JavaScript, HTML, MySql, and CSS. What would yall recommend as a another language that would be useful for me to know?", "comment": "At this point, you would benefit more from working on a long-term project with a language you already know than learning a new language. Once you are familiar enough with a multi-paradigm language like C#, you are unlikely to encounter radically new concepts in other programming languages, so there's not much point in spending time learning syntax of language that won't teach you anything new.", "upvote_ratio": 70.0, "sub": "AskProgramming"} +{"thread_id": "uotovj", "question": "What charity can fuck right off and why?", "comment": "Autism speaks. They treat people horribly, take most of the money to pay themselves, and have a history of advocating bad practices", "upvote_ratio": 33120.0, "sub": "AskReddit"} +{"thread_id": "uotovj", "question": "What charity can fuck right off and why?", "comment": "Susan G Komen is verifiable garbage", "upvote_ratio": 24250.0, "sub": "AskReddit"} +{"thread_id": "uotovj", "question": "What charity can fuck right off and why?", "comment": "The American Red Cross.\n\nLet me tell you why. Most of the money you give them goes to exorbitant salaries for their higher ups, as well as other inflated overhead, and very little of it actually ends up doing good. Whenever there is any sort of disaster, they flood the media with appeals for money, but the money stays with them. They only use enough of it to do anything for anyone to keep up appearances. What is it like to deal with the Red Cross at a disaster site? Let me tell you of my experiences with them.\n\nI was a volunteer during a flood, breaking our backs packing and placing sandbags in cold muddy water to divert as much as we could away from a town. The Red Cross showed up, and offered to *sell* us water and sandwiches at 3X the normal price. When the national Guard pulled up a water buffalo, (A drinkable water storage tank on a trailer for those who don't know) the Red Cross threw a fit, and demanded it be removed, it was cutting into their sales. They shouted obscenities at any of us who went to the water buffalo to get a drink, and ordered us to stay away from it, as if they were some sort of authority. They even attempted to threaten the NG commanding officer with criminal charges. (Made no sense to me either). The nonsense only stopped when the NG commander threatened to place them under arrest and physically remove them from the site. We applauded him.\n\nFast forward to hurricane Michael. \n\nThe Red Cross showed up and set up a couple of their mobile sandwich shops, at inflated prices, but this time, also demanded that they be given millions of dollars in relief funds, which had been earmarked for other programs for the victims. They also again tried to declare themselves the local authority, much to the surprise of local law enforcement, the county Emergency Management Office, and FEMA (don't even get me started on FEMA though). When there was some trouble with armed looters, they pulled out and restaged as far from the actual disaster site as they could get while still appearing to be on scene. \n\nThey went nowhere near the hardest hit area that actually needed help, there weren't enough news cameras rolling there. They did spend as much time as they could glad-handing politicians on camera, and filming people hunting through the debris for bodies, etc. implying that they were doing the work. They were not, those were local emergency management rescue teams and volunteers. They bypassed a lot of areas that needed help to get to where the cameras were, BTW, driving over 30 miles through the disaster zone to reach them.\n\nThey are all about the money, and don't give a damn about the people they are supposed to help. They are also the first to cut and run when there is any risk, or the money stops coming in. The whole thing is just a money making racket and PR front for the elites.", "upvote_ratio": 18150.0, "sub": "AskReddit"} +{"thread_id": "uotqgq", "question": "Also is there a list of job openings for top companies?", "comment": "Now.\n\nIf you are from the future and my comment is super old, the answer instead is: now.", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "uotqgq", "question": "Also is there a list of job openings for top companies?", "comment": "There isn't a list. \n\nYou are going to want to start in the fall. \n\nGo to the pages where they have roles to apply for them as they appear. \n\nMany firms do new college grad generic pool interviews and you become part of a cohort of people rather than having a team specific role along with title", "upvote_ratio": 70.0, "sub": "CSCareerQuestions"} +{"thread_id": "uotqgq", "question": "Also is there a list of job openings for top companies?", "comment": "Fall if you plan on graduating in spring, around the time my school had it's career fair was when I applied and got my job.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "uotrgl", "question": "Like the idea that matter cannot be destroyed. Why is that considered so factual? As humans we do not know everything.", "comment": "Theory and scientific theory is a bit different. In scientific theory things are tested, retested, tested by others, etc. If you don't trust it, test it your self.", "upvote_ratio": 890.0, "sub": "ask"} +{"thread_id": "uotrgl", "question": "Like the idea that matter cannot be destroyed. Why is that considered so factual? As humans we do not know everything.", "comment": "Science is based on theories, and once these theories are proven through testing and observation, they are accepted as facts or even laws (e.g. laws of thermodynamics)\n\nWhether or not you believe that aluminum is a solid at room temperature, most people accept this \"theory\" as fact when they board an airplane. While there may be some corner of a parallel universe where aluminum is like jello, it's not like that here.", "upvote_ratio": 190.0, "sub": "ask"} +{"thread_id": "uotrgl", "question": "Like the idea that matter cannot be destroyed. Why is that considered so factual? As humans we do not know everything.", "comment": "Who else would the theory be from except a human?", "upvote_ratio": 130.0, "sub": "ask"} +{"thread_id": "uotvrd", "question": "Atheists, what do you believe in? [Serious]", "comment": "I believe in a universe that doesn't care, and people that do.", "upvote_ratio": 396070.0, "sub": "AskReddit"} +{"thread_id": "uotvrd", "question": "Atheists, what do you believe in? [Serious]", "comment": "* There is no plan, no grand design. There is what happens and how we respond to it.\n* Justice only exists to the extent we create it. We can't count on supernatural justice to balance the scales in the afterlife, so we need to do the best we can to make it work out in the here and now.\n* My life and the life of every other human being is something that was extremely unlikely. That makes it rare, precious, and worth preserving.\n* Nothing outside of us assigns meaning to our lives. We have to create meaning for our lives ourselves.", "upvote_ratio": 362710.0, "sub": "AskReddit"} +{"thread_id": "uotvrd", "question": "Atheists, what do you believe in? [Serious]", "comment": "Realistically, I think nothing happens. We literally experience nothing after death. Same thing that we experience before birth. We don't exist, so it's nothing. I think the tenant that we should follow while living is to try to be happy and healthy while minimizing the damage we do to each other.\n\nWhat I would LIKE to happen after death is whatever you believe in, exists. I think Christians should get to go to heaven if they truly believe in it, Hindus and Buddhists get reincarnated, and everyone else also gets to experience what they believe they will experience. (I would still experience Nothing.) Maybe it's one of those things where at the moment of death their brain makes them experience what feels like an infinitely long moment in time where they experience their afterlife. I just think it would be neat for everybody.", "upvote_ratio": 230310.0, "sub": "AskReddit"} +{"thread_id": "uotvsr", "question": "So I am making a Minecraft server, that i would control via Discord bot, but I have no idea how to run .jar file and get the output and give input. \n\nI wonder, maybe there is a way to run virtual console in python program or something? I've got no idea.", "comment": "4 options:\n\n 1 You can spawn a JVM using subprocess.run()\n\n 2 You write your code in [Jython](https://www.jython.org/)\n\n 3 You ditch Python altogether and write the whole thing in a JVM-bound language. Which is really a generalisation of *2*\n \n 4 See if the Minecraft APIs have anything to offer\n\nIf you're hoping for ongoing IO from that jar, 1 is probably a non-starter.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "uotw5u", "question": "This is exactly the kind of thing that reflects the insanity of some job posters: \n[Entry Level](https://www.linkedin.com/jobs/view/3059168566)", "comment": "Even if that were a senior posting, anything that lists that many essential functions is a giant red flag.", "upvote_ratio": 3230.0, "sub": "CSCareerQuestions"} +{"thread_id": "uotw5u", "question": "This is exactly the kind of thing that reflects the insanity of some job posters: \n[Entry Level](https://www.linkedin.com/jobs/view/3059168566)", "comment": ">*Required Knowledge And Skills*\nBasic principles of computer science, database technologies and information systems.\nAdvanced principles, best practices, methods, and techniques used in data engineering, business intelligence, data management, data warehousing concepts, data mapping, data modeling, reporting, analytics, and data science.\nRelational database management systems, NoSQL databases and Big Data ecosystem\nData pipelines, stream processing, Supervisory Control And Data Acquisition (SCADA) and Internet of Things (IoT).\nEnterprise data catalog, meta-data and master-data concepts and management.\nFull-stack DevOps engineering with understanding of compute, network, storage with cost optimized implementations.\nDevOps tools like ADO, Git, Jenkins, Dockers etc.\nEnterprise application systems related to Finance, Human Resources, Asset Management, Transit Rider Technologies, and other subject areas as needed.\nEvaluating business requirements and developing information technology solutions.\nOperational characteristics of a variety of computer and network systems, applications, hardware, software, and peripheral equipment, including enterprise business systems.\nVarious methods of service delivery including agile and waterfall.\nSoftware development life cycle, source code version control systems, release management, change management, and ITIL processes (Incident and Change Management).\nPrinciples, practices, methods, and techniques used in the installation, troubleshooting, and maintenance of software systems and applications.\nQuality Assurance techniques and automated testing practices.\nPrinciples and practices of project management.\nPertinent federal, state, and local laws, codes, and regulations.\nDesigning and implementing Business Intelligence/Analytics platforms using Azure services such as Azure Synapse Analytics, Azure Data Factory, Azure Data Lake to improve and speed up delivery of data services.\nRelational Database Management Systems (RDBMS), Microsoft SQL Server, SQL Server Integration Services (SSIS), SQL Server Analysis Services (SSAS), and other relevant technologies.\nMessage based integration using Kafka and/or Azure Event Hub\nLogical and physical data modeling for both OLTP and OLAP.\nReporting technologies including but are not limited to Microsoft SQL Server Reporting Services (SSRS), Microsoft Report Builder, Power BI, Crystal Reports, Business Objects Enterprise, etc.\nWorking knowledge and advanced skills in Excel as a data source and reporting tool.\nBig Data tools like Spark, MapReduce, Hive, Pig, Oozie, etc.\nNoSQL solutions like HBase, MongoDB, Cassandra etc.\nProgramming using C#, Java, Scala, and Python; scripting using PowerShell.\nCreating and consuming various data formats such as CSV, XML, JSON, etc. including using of APIs or web services for data acquisition.\nLearning new applications, programming languages, development tools, and technologies quickly.\nEstablishing and maintaining effective working relationships with peers, other department staff, management, vendors, outside agencies, community groups, external business partners and the public.\nEffective oral and written communication and the ability to convey technical details to non-technical stakeholders, senior leadership, and executives both in written and verbal form\nWorking effectively under pressure, meeting tight deadlines, and adjusting to changing priorities\n\nLinkedIn really needs to fix their \"experience level\" tag.", "upvote_ratio": 1880.0, "sub": "CSCareerQuestions"} +{"thread_id": "uotw5u", "question": "This is exactly the kind of thing that reflects the insanity of some job posters: \n[Entry Level](https://www.linkedin.com/jobs/view/3059168566)", "comment": "> Bachelor\u2019s Degree in computer science, information technology, engineering, or closely related field and five years of experience in information technology in the areas of data engineering, business intelligence and analytics; OR an equivalent combination of education and experience.\n\nCS degree + 5 YOE. Nobody with those qualifications for ANY field would be looking for entry-level positions.", "upvote_ratio": 1870.0, "sub": "CSCareerQuestions"} +{"thread_id": "uotw8v", "question": "Update: Current solution I came up with for overall problem is all the way at the bottom. Original post:\n\nTrying to make `std::pair<const K, V>` members swappable so my tree's `erase()` method can rebalance properly. this is my error:\n\n error: use of deleted function \u2018typename std::enable_if<(! std::__and_<std::__is_swappable<_T1>, std::__is_swappable<_T2> >::value)>::type std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&) [with _T1 = const int; _T2 = char; typename std::enable_if<(! std::__and_<std::__is_swappable<_T1>, std::__is_swappable<_T2> >::value)>::type = void]\u2019\n\nedit: adding this here below:\n\nI do not know how to do a red black tree `erase()` without moving the node value to a leaf via swapping. The versions I happened to find all involved this technique. The issue is when I expose my `pair` via `iterator`'s `*` and `->` `operators` I need the `key` `const` but when swapping I need the `pair` swappable. So I have to figure out either how to only make it `const` when exposing it or having it `const` and only making it swappable when swapping it. And I have not been able to figure out how to only make it `const` when exposing it. When trying to specify my return values to `std::pair<const K&, V&>` from the `operators` I am unable to figure out how to set my `key` to `const` in the return without setting the `K` and `V` `parameters` in my `Node`'s `pair` to `references` (which crashes my code). Every casting attempt has failed using `static_cast` or `std::as_const` inside `std::make_pair` and I am unaware of any other techniques. \n\nCurrent iterator operators:\n\n template <typename K, typename V>\n auto* RedBlackTree<K, V>::Iterator::operator->() {\n return &(p->kvp);\n }\n\n template <typename K, typename V>\n auto& RedBlackTree<K, V>::Iterator::operator*() {\n return p->kvp;\n }\n\nCurrent swapping method:\n\n template <typename K, typename V>\n Node<K, V>* RedBlackTree<K, V>::moveToLeaf(Node<K, V>* toBeRemoved) {\n Node<K, V>* current = toBeRemoved;\n Node<K, V>* replacingWith = nullptr;\n auto swapAndMove = [&]() {\n std::swap(toBeRemoved->kvp, replacingWith->kvp);\n toBeRemoved = moveToLeaf(replacingWith);\n };\n\n if (!current->right && !current->left) {\n if (toBeRemoved->parent) {\n if (toBeRemoved->branch == leftChild)\n toBeRemoved->parent->left = nullptr;\n else\n toBeRemoved->parent->right = nullptr;\n }\n return toBeRemoved;\n } else if (!current->right) {\n replacingWith = current->left;\n swapAndMove();\n } else {\n if (!current->right->left) {\n replacingWith = current->right;\n swapAndMove();\n } else {\n current = current->right;\n while (current->left) current = current->left;\n replacingWith = current;\n swapAndMove();\n }\n }\n return toBeRemoved;\n }\n\nThanks\n\nMy best solution for the moment:\nI left the `pair template parameters` as not `const` and swappable and am exposing them with the `key` as `const`. `The operator->` takes about 2 and a half times as long as it should as it allocates a `smart ptr` to make the `key` `const`. However the `operator*` is what is actually used by `<algorithm>` it seems and the `method` for that `operator` works just as fast as it would without manipulation:\n\n template <typename K, typename V>\n std::unique_ptr<std::pair<const K&, V&>>\n RedBlackTree<K, V>::Iterator::operator->() {\n auto constKeyPairPtr = [&](const K& key, V& value) {\n return std::make_unique<std::pair<const K&, V&>>(key, value);\n };\n return constKeyPairPtr(p->kvp.first, p->kvp.second);\n }\n\n template <typename K, typename V>\n std::pair<const K&, V&> RedBlackTree<K, V>::Iterator::operator*() {\n auto constKeyPair = [&](const K& key, V& value) {\n return std::pair<const K&, V&>(key, value);\n };\n return constKeyPair(p->kvp.first, p->kvp.second);\n }", "comment": "> so my tree's balance method can work\n\nRebalancing should change links, not data.", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "uotw8v", "question": "Update: Current solution I came up with for overall problem is all the way at the bottom. Original post:\n\nTrying to make `std::pair<const K, V>` members swappable so my tree's `erase()` method can rebalance properly. this is my error:\n\n error: use of deleted function \u2018typename std::enable_if<(! std::__and_<std::__is_swappable<_T1>, std::__is_swappable<_T2> >::value)>::type std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&) [with _T1 = const int; _T2 = char; typename std::enable_if<(! std::__and_<std::__is_swappable<_T1>, std::__is_swappable<_T2> >::value)>::type = void]\u2019\n\nedit: adding this here below:\n\nI do not know how to do a red black tree `erase()` without moving the node value to a leaf via swapping. The versions I happened to find all involved this technique. The issue is when I expose my `pair` via `iterator`'s `*` and `->` `operators` I need the `key` `const` but when swapping I need the `pair` swappable. So I have to figure out either how to only make it `const` when exposing it or having it `const` and only making it swappable when swapping it. And I have not been able to figure out how to only make it `const` when exposing it. When trying to specify my return values to `std::pair<const K&, V&>` from the `operators` I am unable to figure out how to set my `key` to `const` in the return without setting the `K` and `V` `parameters` in my `Node`'s `pair` to `references` (which crashes my code). Every casting attempt has failed using `static_cast` or `std::as_const` inside `std::make_pair` and I am unaware of any other techniques. \n\nCurrent iterator operators:\n\n template <typename K, typename V>\n auto* RedBlackTree<K, V>::Iterator::operator->() {\n return &(p->kvp);\n }\n\n template <typename K, typename V>\n auto& RedBlackTree<K, V>::Iterator::operator*() {\n return p->kvp;\n }\n\nCurrent swapping method:\n\n template <typename K, typename V>\n Node<K, V>* RedBlackTree<K, V>::moveToLeaf(Node<K, V>* toBeRemoved) {\n Node<K, V>* current = toBeRemoved;\n Node<K, V>* replacingWith = nullptr;\n auto swapAndMove = [&]() {\n std::swap(toBeRemoved->kvp, replacingWith->kvp);\n toBeRemoved = moveToLeaf(replacingWith);\n };\n\n if (!current->right && !current->left) {\n if (toBeRemoved->parent) {\n if (toBeRemoved->branch == leftChild)\n toBeRemoved->parent->left = nullptr;\n else\n toBeRemoved->parent->right = nullptr;\n }\n return toBeRemoved;\n } else if (!current->right) {\n replacingWith = current->left;\n swapAndMove();\n } else {\n if (!current->right->left) {\n replacingWith = current->right;\n swapAndMove();\n } else {\n current = current->right;\n while (current->left) current = current->left;\n replacingWith = current;\n swapAndMove();\n }\n }\n return toBeRemoved;\n }\n\nThanks\n\nMy best solution for the moment:\nI left the `pair template parameters` as not `const` and swappable and am exposing them with the `key` as `const`. `The operator->` takes about 2 and a half times as long as it should as it allocates a `smart ptr` to make the `key` `const`. However the `operator*` is what is actually used by `<algorithm>` it seems and the `method` for that `operator` works just as fast as it would without manipulation:\n\n template <typename K, typename V>\n std::unique_ptr<std::pair<const K&, V&>>\n RedBlackTree<K, V>::Iterator::operator->() {\n auto constKeyPairPtr = [&](const K& key, V& value) {\n return std::make_unique<std::pair<const K&, V&>>(key, value);\n };\n return constKeyPairPtr(p->kvp.first, p->kvp.second);\n }\n\n template <typename K, typename V>\n std::pair<const K&, V&> RedBlackTree<K, V>::Iterator::operator*() {\n auto constKeyPair = [&](const K& key, V& value) {\n return std::pair<const K&, V&>(key, value);\n };\n return constKeyPair(p->kvp.first, p->kvp.second);\n }", "comment": "You fundamentally can't do that unfortunately... A structure that has constant data members won't work with most standard containers/methods...", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "uou278", "question": "Newbie trying to learn Rust. I have a situation where I would like to pattern match and return a tuple of functions. Right now casting all functions with `as` keyword, but this is incredibly verbose. What is the canonical approach?\n\n let (a, b) = match c {\n c1 => (d1 as fn(f) -> g, e1 as fn(f) -> g),\n c2 => (d2 as fn(f) -> g, e2 as fn(f) -> g),\n ...\n }\n\nThanks!", "comment": "a small improvement would be to annotate the variables/tuple that is being destructured to:\n\n let (a, b): (fn(f) -> g, fn(f) -> g) = ...\n\n([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=fe393da0be09a9ad1153a88d45556a28))\n\nbut I'm not sure that's the best possible solution", "upvote_ratio": 60.0, "sub": "LearnRust"} +{"thread_id": "uou80g", "question": "There's older posts asking this question but I'm assuming a lot has changed in the minimum requirements in 2022.\n\nAll the network administrator positions near me have very different skill requirements. Same with the network engineer and networking positions in general. A lot of the positions vary from cyber security, VMware focused, server focused, 'have your own tools', or just vaguely 'be experienced in networking'. All with the same title or pay range.\n\nI have the Comp3ia and CCNA but this probably isn't enough. It'll do me no good to guess what's important and buy random Udemy courses, get unnecessary certs, or build a homelab and do projects that turn out to be irrelevant to the job market.", "comment": "> There's older posts asking this question but I'm assuming a lot has changed in the minimum requirements in 2022. \n\nNot really. \n\n> All the network administrator positions near me have very different skill requirements. \n\nThey probably also have different responsibilities & expectations too. \n\n> I have the Comp3ia and CCNA but this probably isn't enough. \n\nDo you actually understand how networks work? \nDo you understand what client devices expect from the network? \n\n\n----- \n\nThe primary expectation is a desire for you to have experience in managing critical systems. \n\nObviously, you need to understand how networks work. How in-depth that understanding needs to be depends on the role. \n\nBut I need to know that you've successfully moved beyond the \"Let's try rebooting it...\" phase of troubleshooting problems before I can let you login to routers.", "upvote_ratio": 160.0, "sub": "ITCareerQuestions"} +{"thread_id": "uou80g", "question": "There's older posts asking this question but I'm assuming a lot has changed in the minimum requirements in 2022.\n\nAll the network administrator positions near me have very different skill requirements. Same with the network engineer and networking positions in general. A lot of the positions vary from cyber security, VMware focused, server focused, 'have your own tools', or just vaguely 'be experienced in networking'. All with the same title or pay range.\n\nI have the Comp3ia and CCNA but this probably isn't enough. It'll do me no good to guess what's important and buy random Udemy courses, get unnecessary certs, or build a homelab and do projects that turn out to be irrelevant to the job market.", "comment": "Find all the networking jobs you can. The more the better.\n\nUse a word cloud generator - [https://www.freewordcloudgenerator.com](https://www.freewordcloudgenerator.com)\n\nPaste all the jobs into the cloud generator.\n\nGenerate a cloud. The bigger words are going to be the ones that are used the most in all the network engineer job ads. Learn those keywords and be on your merry way.", "upvote_ratio": 140.0, "sub": "ITCareerQuestions"} +{"thread_id": "uou80g", "question": "There's older posts asking this question but I'm assuming a lot has changed in the minimum requirements in 2022.\n\nAll the network administrator positions near me have very different skill requirements. Same with the network engineer and networking positions in general. A lot of the positions vary from cyber security, VMware focused, server focused, 'have your own tools', or just vaguely 'be experienced in networking'. All with the same title or pay range.\n\nI have the Comp3ia and CCNA but this probably isn't enough. It'll do me no good to guess what's important and buy random Udemy courses, get unnecessary certs, or build a homelab and do projects that turn out to be irrelevant to the job market.", "comment": "Cert wise, if you have a CCNA level of understanding you can probably hack it at an entry to mid level networking roles.\n\nJust a matter of interviewing right and actually having the proper problem solving approach that employers are looking for.", "upvote_ratio": 100.0, "sub": "ITCareerQuestions"} +{"thread_id": "uou8ws", "question": "I am an entirely self taught developer with absolutely no professional experience or relevant qualifications. I've spent the last few months job searching and have eventually accepted a role at a startup with a salary of \u00a345,000 ($55,000 approx) (fully remote, mid COL). All my offers have been in this range. \n\nEvery day though I see recruiters posting on LinkedIn saying they are looking for senior devs with salary between \u00a340-50k. Who on earth are the people applying for these jobs, and why are they doing it?\n\nThis is a genuine question - I'm completely new to this industry and genuinely confused.", "comment": "Usually either people are desperate or Thier in a lcol area with limited employers.\n\nIf I was out of work I would take whatever I can get.", "upvote_ratio": 1570.0, "sub": "CSCareerQuestions"} +{"thread_id": "uou8ws", "question": "I am an entirely self taught developer with absolutely no professional experience or relevant qualifications. I've spent the last few months job searching and have eventually accepted a role at a startup with a salary of \u00a345,000 ($55,000 approx) (fully remote, mid COL). All my offers have been in this range. \n\nEvery day though I see recruiters posting on LinkedIn saying they are looking for senior devs with salary between \u00a340-50k. Who on earth are the people applying for these jobs, and why are they doing it?\n\nThis is a genuine question - I'm completely new to this industry and genuinely confused.", "comment": "You\u2019d be surprised that a lot of people are sometimes unaware of the big tech salaries.\n\nI had a friend who is an amazing dev and super passionate about programming. When he told me his salary was $80k in California I told him he was underpaid. I showed him levels.fyi and he was shocked.\nHe\u2019s since more than doubled his TC somewhere else.", "upvote_ratio": 1140.0, "sub": "CSCareerQuestions"} +{"thread_id": "uou8ws", "question": "I am an entirely self taught developer with absolutely no professional experience or relevant qualifications. I've spent the last few months job searching and have eventually accepted a role at a startup with a salary of \u00a345,000 ($55,000 approx) (fully remote, mid COL). All my offers have been in this range. \n\nEvery day though I see recruiters posting on LinkedIn saying they are looking for senior devs with salary between \u00a340-50k. Who on earth are the people applying for these jobs, and why are they doing it?\n\nThis is a genuine question - I'm completely new to this industry and genuinely confused.", "comment": "You being in the UK (or really anywhere that is not the US) means lower salaries. The US is the only country that pays crazy money for software engineers.\n\nMore detailed explanations in this post: https://www.reddit.com/r/cscareerquestions/comments/61uj1p/why_are_software_engineer_salaries_so_much_lower/", "upvote_ratio": 540.0, "sub": "CSCareerQuestions"} +{"thread_id": "uouij5", "question": "When did you realize today was Friday the 13?", "comment": "Right now thanks", "upvote_ratio": 17820.0, "sub": "AskReddit"} +{"thread_id": "uouij5", "question": "When did you realize today was Friday the 13?", "comment": "/r/IsTodayFridayThe13th", "upvote_ratio": 3110.0, "sub": "AskReddit"} +{"thread_id": "uouij5", "question": "When did you realize today was Friday the 13?", "comment": "January 1st, I usually go through the calendars and note any significant days to keep a bit of a track on.", "upvote_ratio": 2250.0, "sub": "AskReddit"} +{"thread_id": "uoukdy", "question": "I want to create websites for local businesses near me using just HTML and CSS. I\u2019ve been teaching myself these a little over a month and I feel like I\u2019m still only in the knowledge/comprehension level of learning according to Blooms Taxonomy. What are some ways to increase my ability? I want to be able to create sites from scratch asap \n\nSo far I\u2019ve completed a lot of freecodecamp and done a couple yputube tutorials where I just follow along and type stuff exactly as they do. \n\nSide question: I\u2019m using notepad++ on windows as my editor, opening the doc with google chrome and just refreshing as it as I go to view the changes. Is this best practice or could I be doing this better? \n\nThanks, love this community!", "comment": ">Is this best practice or could I be doing this better?\n\nIt's not necessarily bad practice, but it's also not necessarily the most efficient approach either. Personally, I'd use VS Code for the editor and an extension called Live Server to handle previewing (you don't have to refresh, it handles hot reloading for you). \n\n>What are some ways to increase my ability?\n\nUse what you learn. There aren't any real special tips or secret tricks to learn faster. You just have to practice what you learn, instead of just re-typing everything you see in a tutorial. Pause the video, experiment by changing things and see how that affects other things. Learn by doing. Build things that are similar to what the tutorials have you do, but with your own spin. \n\nProgramming and markup-language skills are honed by practice.", "upvote_ratio": 140.0, "sub": "LearnProgramming"} +{"thread_id": "uouo3x", "question": "Say someone wants to die let's call them Person A, Person A is extremely suicidal and wants to kill himself but he's a Christian and suicide can lead you directly to hell, so he hires one of his friends, let's call him Person B who is an atheist, Person A wants Person B to kill Person A but doesn't want Person B to go to jail, so he signs a contract saying he consents to being killed and even records a video of him saying it. Is it legal or is it illegal?\n\n\n\n\nEdit: Just so we're clear I'm NOT suicidal, I just thought of this in the middle of showering", "comment": "Consent is irrelevant to murder, and contracts that ask someone to do something illegal are void. \n\n...So nope, you can't be legally killed by signing a contract saying you consent.", "upvote_ratio": 35010.0, "sub": "NoStupidQuestions"} +{"thread_id": "uouo3x", "question": "Say someone wants to die let's call them Person A, Person A is extremely suicidal and wants to kill himself but he's a Christian and suicide can lead you directly to hell, so he hires one of his friends, let's call him Person B who is an atheist, Person A wants Person B to kill Person A but doesn't want Person B to go to jail, so he signs a contract saying he consents to being killed and even records a video of him saying it. Is it legal or is it illegal?\n\n\n\n\nEdit: Just so we're clear I'm NOT suicidal, I just thought of this in the middle of showering", "comment": "Contracts can't approve of anything that is illegal. Because murder breaks the law, any contract \"allowing\" murder would be deemed an illegal and unenforceable contract.", "upvote_ratio": 7110.0, "sub": "NoStupidQuestions"} +{"thread_id": "uouo3x", "question": "Say someone wants to die let's call them Person A, Person A is extremely suicidal and wants to kill himself but he's a Christian and suicide can lead you directly to hell, so he hires one of his friends, let's call him Person B who is an atheist, Person A wants Person B to kill Person A but doesn't want Person B to go to jail, so he signs a contract saying he consents to being killed and even records a video of him saying it. Is it legal or is it illegal?\n\n\n\n\nEdit: Just so we're clear I'm NOT suicidal, I just thought of this in the middle of showering", "comment": "No. Otherwise euthanasia would be legal IN THE U.S.\n\nEdit - to add US.", "upvote_ratio": 2880.0, "sub": "NoStupidQuestions"} +{"thread_id": "uoustu", "question": "Hi all,\n\nI am developing an alarm clock for disabled people using egui; I'm really impressed with the project. It's actually easy to make a web app. Later I'm going to port the gui to run on this native framebuffer, I imagine that won't be too hard.\n\nBut one thing I'm wondering is if there's a way to increase the frequency of the render.\n\nUnless I actually click something or mouse my mouse over the area, it seems to call my update function about once per second. This is not frequent enough for me, because \n\na) there is enough variation that there might be 1.001 seconds between refreshes, which can cause my clock to skip for example from 12:34:55 to 12:34:57\n\nb) we are planning flashing lights/vibration etc when the alarm goes off; I would like to flash the LED for around 300ms at a time.\n\nc) we have a weird way of doing user input, not going to go through egui for this.\n\nI could use a 50Hz refresh rate, or at least something higher than 1Hz. Even better would be if I could somehow decide myself when update() is called. Is this a configuration in egui that I've missed?", "comment": "https://github.com/emilk/egui/issues/295\n\nHas some workarounds for your problem", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "uouu9v", "question": "Consider the following code:\n\n #include <iostream>\n #include <thread>\n #include <atomic>\n \n using aul = std::atomic_ullong;\n \n aul cntr(0);\n \n void foo(){\n using namespace std::chrono_literals;\n cntr++;\n std::cout << \"started thread number \" << cntr << std::endl;\n std::this_thread::sleep_for(1s);\n std::cout << \"ended thread number \" << cntr << std::endl;\n }\n \n int main() {\n for(int i=0; i < 3; i++){\n std::thread t(foo);\n t.join();\n }\n return 0;\n }\n\nThe output is:\n\n started thread number 1\n ended thread number 1\n started thread number 2\n ended thread number 2\n started thread number 3\n ended thread number 3\n\nWhy am I not getting concurrency? \nI want thread 2 start in the middle of thread 1 sleeping.", "comment": ">for(int i=0; i < 3; i++){ std::thread t(foo); t.join(); }\n\nThe std::thread constructor starts the thread. t.join() waits for the thread to finish. Only after t.join() returns can the next iteration of the loop begin. This code is roughly equivalent to:\n\n std::thread t0(foo);\n t0.join();\n std::thread t1(foo);\n t1.join();\n std::thread t2(foo);\n t2.join();", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "uouu9v", "question": "Consider the following code:\n\n #include <iostream>\n #include <thread>\n #include <atomic>\n \n using aul = std::atomic_ullong;\n \n aul cntr(0);\n \n void foo(){\n using namespace std::chrono_literals;\n cntr++;\n std::cout << \"started thread number \" << cntr << std::endl;\n std::this_thread::sleep_for(1s);\n std::cout << \"ended thread number \" << cntr << std::endl;\n }\n \n int main() {\n for(int i=0; i < 3; i++){\n std::thread t(foo);\n t.join();\n }\n return 0;\n }\n\nThe output is:\n\n started thread number 1\n ended thread number 1\n started thread number 2\n ended thread number 2\n started thread number 3\n ended thread number 3\n\nWhy am I not getting concurrency? \nI want thread 2 start in the middle of thread 1 sleeping.", "comment": "join means \"wait for thread to finish.\"\n\nSo in your loop, you make a thread, then you wait for it to finish, then go to the next iteration of the loop.", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "uouu9v", "question": "Consider the following code:\n\n #include <iostream>\n #include <thread>\n #include <atomic>\n \n using aul = std::atomic_ullong;\n \n aul cntr(0);\n \n void foo(){\n using namespace std::chrono_literals;\n cntr++;\n std::cout << \"started thread number \" << cntr << std::endl;\n std::this_thread::sleep_for(1s);\n std::cout << \"ended thread number \" << cntr << std::endl;\n }\n \n int main() {\n for(int i=0; i < 3; i++){\n std::thread t(foo);\n t.join();\n }\n return 0;\n }\n\nThe output is:\n\n started thread number 1\n ended thread number 1\n started thread number 2\n ended thread number 2\n started thread number 3\n ended thread number 3\n\nWhy am I not getting concurrency? \nI want thread 2 start in the middle of thread 1 sleeping.", "comment": " for(int i=0; i < 3; i++){\n std::thread t(foo);\n t.join(); // <- put this outside\n }\n\ne.g.\n\n std::vector<std::thread> thds{};\n \n for(int i=0; i < 3; i++){\n thds.emplace_back(std::thread(foo));\n }\n \n for(auto& t : thds) {\n t.join();\n }", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uouwf7", "question": "(Long) TLDNR at the bottom.\n\nBackground: I had been working a \u201ctemp to hire contract\u201d for over 3 years and periodically asked my boss any chance of hiring me in, and he says if it were up to him he would but his boss\u2019s boss won\u2019t approve budget and keeps on saying \u201cmaybe in 6 months\u201d. It is a great job but with no room for advancement I have been casually looking, even going to far as telling my contract company to look for other positions (which my current company manager had to sign a release for them to even do) and list a couple of my top companies and tell them to get me an interview if they see a position I fit there. I have had a few 1st interviews late last year though various companies but no second ones, and I had kind of lost motivation to apply and look. The end of last year and the beginning of this year I started getting a bunch cold e-mails and calls from various contract companies which I was in their system, but none from my current contract company.\n\nThe start of this year a contract company I worked with years ago sends me an e-mail in the morning on a position that looks great and I call back immediately and find it is with a top company I have wanted to work with and tell them to submit me for an interview. They send me an e-mail asking for me to reply with a \u201cright to represent\u201d (RTR) and I do, and they say I am their top candidate and they will let me know when they schedule an interview. A couple hours later I get an e-mail from my current contract company with the title \u201cI got an interview request for you for\u2026\u201d and I notice the company, title, and job description match verbatim from the other contract company. I call them and tell them that another contract company told me about the same position and I gave them my RTR to submit, but she said she had submitted me early that morning (before I gave the other company the OK) so essentially they had sniped submitting me and if the other company submits me it will bounce back as they only take submittals for a person for a position from one contract company. They said that my earlier (6 months ago) verbal \u201cget me an interview with that company\u201d was my Right to Represent but admits she should have gotten a RTR in writing from me before she submitted and it was her fault that she put it off. She basically told me to call the other company back and cancel my request. I did not know what to do as legally the other company had my RTR, but I felt a kind of loyalty to my current company, plus it would be logistically easier to get the same paycheck, benefits, etc sticking with the same contract company.\n\nSo I call the other company back he says he submitted me already and it did bounce back and he had wondered why, then I fill them in on the situation. He is furious - not at me - but at the other company, and goes on a diatribe that what they did was not legal or ethical and that submitting without RTR has been rampant in IT contract space and it makes everyone involved look bad to the hiring company when two different companies submit you for the same position - both contract companies and myself look either unorganized or greedy. I agree with him but try to defend my current company in that I had verbally told them before to get an interview with that company and we debate whether that is really a \u201cR2R\u201d or not. I am truly between a rock and a hard place as I actually agree with his position, and for a minute debate whether to go with him, but somehow made up my mind to stick with my current contract company, not only because it is just easier but now also because they had set up my interview and not sure how cancelling and trying to get this other company to set up interview would look to employer, if I could even get the interview. He begrudgingly agrees to my decision and he is a little peeved at me that he 1/2 convinced me but I still don\u2019t want to go with him - obviously he will loose commission but I honestly believe it is also the principle of it he does not like.\n\nI call the current contract company back and say that I talked to the other company to tell them to cancel my submittal and told them that other rep was understandably upset that that rep did not contact me to get my written RTR for that specific position before submitting me. She apologizes again and says it was not the way she was supposed to do and says it will not happened again; oh and BTW can you sent me a written RTR for the position they already submitted me for. So I send, I do the interview and ace it, and get an offer, and now I got a new position at more than a 33% boost in salary. I still feel bad that I did kind of screw the other company - he did email me a week after I accepted the offer later to see how the interview went but he did also send me another job offer at the same time, showing I had not (yet) burned my bridge with him. I called him to let him know I was offered and accepted the job and he did congratulate me but also he was a little upset, and again I do believe it was a combination of lost commission and the fact that my company did not follow legal/ethical practices of RTR and not only got away with it but profited from it (as his expense). I do forgive my current contract representative but loose trust in her a bit.\n\n**Do you think a verbal agreement counts as a RTR? Would you have went with the same or other company in the same situation? Do you think if I did switch I would have gotten an interview though them?**\n\nTLDNR; I give the OK for one company to submit me for an interview when unbeknownst to either of us my current contractor had already submitted me and got me an interview and snipes them out of commission. Leaves me in a tough spot that I am not sure I made the best decision and loose trust in current contract rep, but at least I got the job.", "comment": "Honestly you are lucky they still did the interview. A lot of times if two companies submit the same person the company will just throw out the applicant so they don't get in a legal biind over who should get the commission. \n\nYour first company IMO was in the wrong for submitting you without speciifcly being told to.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uouxtc", "question": " I've known more about the US since I was 7, when my 2nd oldest friend moved to my country of Australia from Hawaii, and my Year 3 teacher, from Canada, taught us a fair bit of US/Canadian history.\n\nOver the years, I've made online friends from Texas, California, Washington state, Florida, Georgia, Virginia, Oklahoma, Minnesota, New Jersey, Michigan, and North Carolina to name others, but I've still never seen any of the US in person.\n\nSo, give me the full rundown!", "comment": "Indiana\n\nGood: Being a major shipping means I always get packages on time if not early\n\nBad: Gary Indiana\n\nUgly: Also Gary Indiana", "upvote_ratio": 1650.0, "sub": "AskAnAmerican"} +{"thread_id": "uouxtc", "question": " I've known more about the US since I was 7, when my 2nd oldest friend moved to my country of Australia from Hawaii, and my Year 3 teacher, from Canada, taught us a fair bit of US/Canadian history.\n\nOver the years, I've made online friends from Texas, California, Washington state, Florida, Georgia, Virginia, Oklahoma, Minnesota, New Jersey, Michigan, and North Carolina to name others, but I've still never seen any of the US in person.\n\nSo, give me the full rundown!", "comment": "Pennsylvania -\nGood: Lots of interesting historical sites, large areas of protected forests/natural areas\nBad: High gasoline taxes, lots of rundown cities and towns due to loss of industry\nUgly: Turnpike tolls and awful road/bridge maintenance", "upvote_ratio": 1250.0, "sub": "AskAnAmerican"} +{"thread_id": "uouxtc", "question": " I've known more about the US since I was 7, when my 2nd oldest friend moved to my country of Australia from Hawaii, and my Year 3 teacher, from Canada, taught us a fair bit of US/Canadian history.\n\nOver the years, I've made online friends from Texas, California, Washington state, Florida, Georgia, Virginia, Oklahoma, Minnesota, New Jersey, Michigan, and North Carolina to name others, but I've still never seen any of the US in person.\n\nSo, give me the full rundown!", "comment": "Minnesota \nGood - great standard of living, good health care, lake/cabin life\n\nBad - high taxes\n\nUgly - the cold weather will actively try to kill you for 5-6 months a year", "upvote_ratio": 1070.0, "sub": "AskAnAmerican"} +{"thread_id": "uouy4e", "question": "I'm currently working a job that I don't like very much so id jump on any decent SWE opportunity. I have a technical interview with a company next week which I believe should be the last one and I have another technical interview with another company in a few weeks.\n\nI already told this first company that I've been interviewing other companies so I'm worried that if they make me an offer, they'll ask me about my other interviews. I don't want to tell them that I have another interview lined up because I'm worried they're gonna think that I'll take this first offer then leave if I get the other job (which I probably would).\n\nWhat have other folks done in similar situations to this? Just accept the offer, say you don't have anything else lined up, and then shamelessly quit in a few weeks if other companies give you offers?", "comment": "It\u2019s extremely common to have multiple interviews and multiple offers. The best thing for you to do is be completely forthcoming about it and your current status with every prospective employer, as it just makes things more competitive and beneficial for you. \n\n\nImagine a few scenarios:\n\n\u201cHey Company B, company A just sent me a formal offer, but I\u2019d like to take every option into account before making a decision. Is there any chance we can accelerate your process and get me to the next step sooner?\u201d\n\n\u201cSure! Normally we do a call with HR first, but let\u2019s just skip that and get you on with the hiring manager tomorrow.\u201d\n\n\n\n\u201cHey Company A, I\u2019m glad to hear you want to extend an offer. Full disclosure, I am interviewing with Company B and/or expecting an offer from them as well, so I will need some time to weigh my options.\u201d\n\n\u201cWhat if we made our offer more competitive and gave you an extra 9999999 millionty dollars. Would you sign right now?\u201d\n\n\n\nWorst case in each of these scenarios is that a company who wasn\u2019t interested just says \u201cno\u201d quicker and it drives you to your end game faster.", "upvote_ratio": 280.0, "sub": "CSCareerQuestions"} +{"thread_id": "uouy4e", "question": "I'm currently working a job that I don't like very much so id jump on any decent SWE opportunity. I have a technical interview with a company next week which I believe should be the last one and I have another technical interview with another company in a few weeks.\n\nI already told this first company that I've been interviewing other companies so I'm worried that if they make me an offer, they'll ask me about my other interviews. I don't want to tell them that I have another interview lined up because I'm worried they're gonna think that I'll take this first offer then leave if I get the other job (which I probably would).\n\nWhat have other folks done in similar situations to this? Just accept the offer, say you don't have anything else lined up, and then shamelessly quit in a few weeks if other companies give you offers?", "comment": "You determine whether you want that job or not, if you do, great. If you don't, then you'll move on.\n\n> they'll ask me about my other interviews\n\nThey will most likely give you a deadline to provide an answer rather than asking.\n\n> Just accept the offer, say you don't have anything else lined up, and then shamelessly quit in a few weeks if other companies give you offers?\n\nNope. I give a heads up to companies I'm currently pretty far in the process with (once I have a concrete offer that I'm interested in). If they counter I get choices, if they don't that's cool as well.", "upvote_ratio": 160.0, "sub": "CSCareerQuestions"} +{"thread_id": "uouy4e", "question": "I'm currently working a job that I don't like very much so id jump on any decent SWE opportunity. I have a technical interview with a company next week which I believe should be the last one and I have another technical interview with another company in a few weeks.\n\nI already told this first company that I've been interviewing other companies so I'm worried that if they make me an offer, they'll ask me about my other interviews. I don't want to tell them that I have another interview lined up because I'm worried they're gonna think that I'll take this first offer then leave if I get the other job (which I probably would).\n\nWhat have other folks done in similar situations to this? Just accept the offer, say you don't have anything else lined up, and then shamelessly quit in a few weeks if other companies give you offers?", "comment": "Hey! Great question. It\u2019s important to NOT just take jobs and quit a few weeks later for other offers. You can get away with it a couple of times in your career, but as big as tech is, it can still be small enough to run into the same folks sometimes. \n\nThe way to handle this is like others have said. You get an offer from company A, email company B and say something like:\n\nHey I\u2019ve received an offer from a company I\u2019ve been speaking with. I have to say that I\u2019m incredibly excited about the opportunity at [company B]. \n\nI know there\u2019s a process to go through, but if there\u2019s any way we could speed up that process so I can give company A an answer, I\u2019d really appreciate it. \n\nMost of the time, they\u2019ll try and speed up the offer. With company A, you get the offer and tell them you\u2019ll need a few days to consider it. Then negotiate a little to get some more time and when they give you your \u201cfinal offer\u201d you can pull the whole, can I have a couple of days to think again. \n\nIf you\u2019re at the VERY beginning stages of company B, this won\u2019t work, so you may have to just do the job hop if you\u2019re super stoked about B but desperate for A. And that\u2019s okay! Just try not to do it too frequently!", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "uov41w", "question": "Other than butter, what do you put on your popcorn?", "comment": "Old bay seasoning. Will change your life.", "upvote_ratio": 540.0, "sub": "AskAnAmerican"} +{"thread_id": "uov41w", "question": "Other than butter, what do you put on your popcorn?", "comment": "Salt and parmesan cheese.", "upvote_ratio": 450.0, "sub": "AskAnAmerican"} +{"thread_id": "uov41w", "question": "Other than butter, what do you put on your popcorn?", "comment": "I like adding white cheddar cheese (powder?) from the shakers, both at home and at the movies.", "upvote_ratio": 330.0, "sub": "AskAnAmerican"} +{"thread_id": "uov59f", "question": "I have germaphobia AMA", "comment": "Why do you hate German people so much ? Let them drink their beer for gad sake", "upvote_ratio": 40.0, "sub": "AMA"} +{"thread_id": "uov6zc", "question": "In your experience, what city/town had the friendliest people?", "comment": "Can't speak for anywhere except the US, but I have lived in most parts except the most northern. \n\nI'd say Texas, by far. Friendly, but not nosy. \n\nMost of the south as well, except Florida. \n\nNew Jersey is the worst. I call it the armpit of America.", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "uov6zc", "question": "In your experience, what city/town had the friendliest people?", "comment": "New Yorkers are kind, not friendly. Californians are friendly, not kind.", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "uov6zc", "question": "In your experience, what city/town had the friendliest people?", "comment": "Adare Ireland. Met some of the nicest most welcoming people. Willing to chat, curious, just fantastic all around.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "uovbji", "question": "I have joined a startup and they want me to tell them what machine I want to use for coding on. I have only worked for large companies where the PC you use is the one you get and that is the end of it.\n\nI am not an expert in Linux although I can use it, I have not really ever used a Mac. Our product is a SASS system which uses mainly C++ but we are converting bits to Python and other more modern languages.\n\nIs there a standard PC setup I should ask for?\n\nA lot of people seem to use Macs but are they actually better or are they just well marketed?\n\nIs there a business style Linux distribution which people use that does not require advanced knowledge of the command line?", "comment": "Well...what platforms are they building on? Which of those will you be required to work on? What are other members of the team using? The answer to those three would influence my decision of what would be the lowest-friction choice.\n\n> Is there a standard PC setup I should ask for?\n\nSome Lenovo or Dell workstation, or a Macbook Pro, I suppose. There's no single standard, but a lot of developers end up developers have a strong personal preference for brand and/or OS.\n\n> A lot of people seem to use Macs but are they actually better or are they just well marketed?\n\nThey're nice hardware and a solid OS.\n\n> Is there a business style Linux distribution which people use that does not require advanced knowledge of the command line?\n\nIf others on the team are using Linux, I'd focus on what they're using. Otherwise: I like Fedora. Ubuntu and its derivatives are still common.", "upvote_ratio": 40.0, "sub": "AskProgramming"} +{"thread_id": "uovim0", "question": "At where I am at the store I shop, it\u2019s $3.58 for a dozen of store brand and before Easter it was $2.5 or $2.8 I forgot. I heard there\u2019s massive kill of chickens due to Birdflu.", "comment": "Pre-Biden: Mike Pence laid eggs on my doorstep for free\n\nPost-Biden: one egg is 18 MILLION DOLLARS", "upvote_ratio": 220.0, "sub": "AskAnAmerican"} +{"thread_id": "uovim0", "question": "At where I am at the store I shop, it\u2019s $3.58 for a dozen of store brand and before Easter it was $2.5 or $2.8 I forgot. I heard there\u2019s massive kill of chickens due to Birdflu.", "comment": "$2.99\n\nBefore the avian flu outbreak this week they were $2.19-ish.", "upvote_ratio": 90.0, "sub": "AskAnAmerican"} +{"thread_id": "uovim0", "question": "At where I am at the store I shop, it\u2019s $3.58 for a dozen of store brand and before Easter it was $2.5 or $2.8 I forgot. I heard there\u2019s massive kill of chickens due to Birdflu.", "comment": "Before store brand eggs were 1.78 at Walmart\n\nNow their store brand is 2.77\nEggland\u2019s Best is 2.66\n\nI\u2019m sure they will be raising the prices of EB as soon as I\u2019ve gotten used to buying them", "upvote_ratio": 60.0, "sub": "AskAnAmerican"} +{"thread_id": "uovpb0", "question": "How central was Homeric literature to Classical Greek life? Was the reverence for Homeric poems comparable or wholly different to that of Abrahamic books and religions?", "comment": "Besides of course Homer's references that can be found in later works and commentaries, there's one interesting Solon's law, possibly of early 6th c. BCE, but survived by Diogenis Laertius \\[1.57\\].\r \n\r \nAccording to it, the reciter of Homer's epic poems, who was substituting the previous one, should continue the recitation from the point where the last one stopped. Probably to avoid repetitions, as the poems were long, while the law was setting \\[or considering as precondition\\] the substitution of the reciters, that would keep the quality of the recitations high \\[\\*there's some debate on the translation of a term\\]. But I think that it's also indicating that Homer's epics had a central part in Athens's entertainment and they should be considered frequent, as a law was needed to regulate these.\r \n\r \nThere's also, on the opposite aspect, a story told by Herodotus \\[5.67\\], where Cleisthenes the tyrant of Sicyon of the early 6th c. BCE forbade the recitation contests of the Homer's epics, cause they were praising the city of Argos, against which Cleisthenes was fighting at the time. Again I think that it's signifying some importance, mentioning also the contests; for the age of Herodotus, too, as the story was reproduced then.\r \n\r \nOf course both incidents took place before the classical era, but Solon's laws and the contests, I think, survived for some time.", "upvote_ratio": 30.0, "sub": "AskHistorians"} +{"thread_id": "uovq85", "question": "What is song what feels most you?", "comment": "Musik", "upvote_ratio": 120.0, "sub": "AskAnAmerican"} +{"thread_id": "uovq85", "question": "What is song what feels most you?", "comment": "My shits fucked up", "upvote_ratio": 90.0, "sub": "AskAnAmerican"} +{"thread_id": "uovq85", "question": "What is song what feels most you?", "comment": "[This one](https://youtu.be/gy5-EQ7Ae_0)\n\nThe soft, breezy vibe, punctuated by the most *perfect* guitar solo ever laid down. I wish my whole aura to be like this song.", "upvote_ratio": 50.0, "sub": "AskAnAmerican"} +{"thread_id": "uovs3i", "question": "Religious people, how do you view atheism/atheists? [Serious]", "comment": "Like normal people", "upvote_ratio": 11930.0, "sub": "AskReddit"} +{"thread_id": "uovs3i", "question": "Religious people, how do you view atheism/atheists? [Serious]", "comment": "One of my good friends is an atheist, and he's a stand up guy. We talk about religion from time to time, and it never gets heated or insulting. He is interested in learning from my perspective, even if he doesn't believe the same things. I've met several people like this, and I hope it's the norm for atheists. \n\nI've also met several religious people who act like anything but. They are narcisistic, racist, ignorant, and hateful. \n\nIt saddens me to see a atheists on reddit who loudly proclaim that religion is a cancer on the world and that anybody who follows one is an idiot. To me, these atheists are acting exactly like the religious people they claim to hate: narcissistic, ignorant, and hateful.\n\nReligion, or lack of, is what you choose to clothe yourself in. If you're a bad person, it doesn't matter how you're dressed, you're still going to be a jerk.", "upvote_ratio": 10750.0, "sub": "AskReddit"} +{"thread_id": "uovs3i", "question": "Religious people, how do you view atheism/atheists? [Serious]", "comment": "The same as everyone else, just regular people. They have their beliefs and I have mine, doesn\u2019t mean we can\u2019t happily coexist or that one opinion is more valid than the other.", "upvote_ratio": 2380.0, "sub": "AskReddit"} +{"thread_id": "uovtl6", "question": "ETA: okay i was under the impression it was bit old fashioned but sometimes used, guess i was wrong lol", "comment": "Never have\u2026. So I\u2019d say uncommon.", "upvote_ratio": 560.0, "sub": "AskAnAmerican"} +{"thread_id": "uovtl6", "question": "ETA: okay i was under the impression it was bit old fashioned but sometimes used, guess i was wrong lol", "comment": "When was that common? That sounds weird and creepy as fuck", "upvote_ratio": 400.0, "sub": "AskAnAmerican"} +{"thread_id": "uovtl6", "question": "ETA: okay i was under the impression it was bit old fashioned but sometimes used, guess i was wrong lol", "comment": "I've never heard that.\n\nThe only people who call me child are my older black coworkers. And I've never heard it in any other situation.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uovu1u", "question": "Writing out `anyhow::Result` all the time makes lines too long and I don't want to import just `Result` to avoid confusion with `std::result`, so I'm currently doing \n\n```rust\nuse anyhow::Result as AResult;\n```\n\nIs seeing `AResult` in code will make people go WTF, and if yes, is there a better alias to use?", "comment": "Anyhow's `Result<T>` is just an alias where the default error type is `anyhow::Error`, you can still use it as `Result<T, E>` if you want, and omit the error type to default to `anyhow::Error`.", "upvote_ratio": 30.0, "sub": "LearnRust"} +{"thread_id": "uovu6a", "question": "What is the best way to ensure that branches are created from the proper branches, and only merged to the right branches, and commit messages are included, etc etc so that we can be proactive with ensuring our git flow is adhered to?\n\nOur problem stems from having many projects with many developers and much churn across our developer resources.", "comment": "1. Disable pushing to the dev branch(s) to require PRs.\n2. Require code reviews for every PR\n3. Ensure code reviewers use their powers appropriately to enforce gitflow.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uovuhy", "question": "I'm a heterosexual guy, but for some reason, I find armpit hair repulsive. Arm and leg hair on myself, I'm ok with, but armpit hair just feels gross. Whenever I see girls with their hairless armpits, I envy them because it looks so neat and clean. I wish I could have hairless armpits like them but it's not socially acceptable and would weird out some people if I did remove the hair.\n\nBut is it weird that I feel this way and want to shave my armpit hair off?", "comment": "Bro nobody cares if you shave your armpits. Actually if I plan on wearing sleeveless shirts I tend to shave mine because it looks better.", "upvote_ratio": 120780.0, "sub": "NoStupidQuestions"} +{"thread_id": "uovuhy", "question": "I'm a heterosexual guy, but for some reason, I find armpit hair repulsive. Arm and leg hair on myself, I'm ok with, but armpit hair just feels gross. Whenever I see girls with their hairless armpits, I envy them because it looks so neat and clean. I wish I could have hairless armpits like them but it's not socially acceptable and would weird out some people if I did remove the hair.\n\nBut is it weird that I feel this way and want to shave my armpit hair off?", "comment": "Just shave bro. I've trimmed mine for years", "upvote_ratio": 104850.0, "sub": "NoStupidQuestions"} +{"thread_id": "uovuhy", "question": "I'm a heterosexual guy, but for some reason, I find armpit hair repulsive. Arm and leg hair on myself, I'm ok with, but armpit hair just feels gross. Whenever I see girls with their hairless armpits, I envy them because it looks so neat and clean. I wish I could have hairless armpits like them but it's not socially acceptable and would weird out some people if I did remove the hair.\n\nBut is it weird that I feel this way and want to shave my armpit hair off?", "comment": "...just shave your armpits?", "upvote_ratio": 99180.0, "sub": "NoStupidQuestions"} +{"thread_id": "uovvnb", "question": "lets say you can only pick 3 albums to listen to for the rest of your life what 3 you picking", "comment": "1. Sade - Love Deluxe\n2. Misfits - Walk Among Us\n3. Cast Iron Hike - Watch It Burn", "upvote_ratio": 120.0, "sub": "ask"} +{"thread_id": "uovvnb", "question": "lets say you can only pick 3 albums to listen to for the rest of your life what 3 you picking", "comment": "- Final Fantasy X soundtrack\n- Final Fantasy VII Remake soundtrack\n- Super Smash Bros. Ultimate soundtrack", "upvote_ratio": 70.0, "sub": "ask"} +{"thread_id": "uovvnb", "question": "lets say you can only pick 3 albums to listen to for the rest of your life what 3 you picking", "comment": "TOOL - Lateralus\n\nPink Floyd - The Wall\n\nMark Lanegan - Bubblegum\n\n\nI found it really hard picking the third album, I'm not even sure if this would be my final pick.", "upvote_ratio": 60.0, "sub": "ask"} +{"thread_id": "uovyri", "question": "This has always baffled me. Is there a particular reason why American movies do that? Is it to villanize the British (because former colonists) or do people think a villain with an accent is intriguing because it sounds foreign to most people. \n\nAfter a point it's kind of ridiculous lol. I have never seen it the other way round where british movies/tv shows have an American villain.", "comment": "British villains are:\n\n1) Coded as intelligent, upper-class, wealthy and so on. (Unless they have an accent other than RP.)\n\n2) Foreign.\n\n3) Lacking in political complication. If you make your villain Cuban, people will ask what your movie is saying about Cuba even if it's saying nothing.\n\n4) We have ready access to British actors.", "upvote_ratio": 2740.0, "sub": "AskAnAmerican"} +{"thread_id": "uovyri", "question": "This has always baffled me. Is there a particular reason why American movies do that? Is it to villanize the British (because former colonists) or do people think a villain with an accent is intriguing because it sounds foreign to most people. \n\nAfter a point it's kind of ridiculous lol. I have never seen it the other way round where british movies/tv shows have an American villain.", "comment": "https://www.thecut.com/2017/01/why-so-many-movie-villains-have-british-accents.html\n\n> The reason, as linguist Chi Luu recently explained in JSTOR Daily, is that the accent lends itself well to the particular qualities that make for a compelling movie villain, a cocktail of traits more nuanced than just \u201cpure evil.\u201d Research has shown that speaking in the received pronunciation accent \u2014 the \u201cposh\u201d iteration of the British accent, also known as the Queen\u2019s English \u2014 makes people appear \u201cmore educated, intelligent, competent, physically attractive, and generally of a higher socioeconomic class.\u201d In one study, for example, a researcher delivered the exact same lecture in two different accents, receiving more positive reviews when he did it in received pronunciation. On the other hand, though, RP speakers are also generally considered \u201cless trustworthy, kind, sincere, and friendly than speakers of non-RP accents.\u201d And when you put the two together, you get someone with a fierce intellect and low morals \u2014 the perfect combo for a fictional bad guy.", "upvote_ratio": 730.0, "sub": "AskAnAmerican"} +{"thread_id": "uovyri", "question": "This has always baffled me. Is there a particular reason why American movies do that? Is it to villanize the British (because former colonists) or do people think a villain with an accent is intriguing because it sounds foreign to most people. \n\nAfter a point it's kind of ridiculous lol. I have never seen it the other way round where british movies/tv shows have an American villain.", "comment": ">Is it to villanize the British (because former colonists) or do people think a villain with an accent is intriguing because it sounds foreign to most people. \n\nNo, it's just an accent, and we have a lot of British actors in movies period. \nThere are MANY, MANY, MANY more movies where the villain has an American or other accent. \n\nYou are just noticing the British accent when it occurs.", "upvote_ratio": 690.0, "sub": "AskAnAmerican"} +{"thread_id": "uow3e3", "question": "I was fired from my first job a few days ago after six months of working there. I've been in the dumps lately, and have been applying to jobs. Is my career in CS basically screwed now? I had a hard time finding my first job, and I'm very worried that this will prevent me from getting any sustainable career in this industry. I'm also concerned this will make finding a new one significantly more difficult.", "comment": "Your career is not over, don't worry. Most companies are only going to say your dates of employment and whether or not you're eligible for rehire. But you will be asked about it and you should be honest.\n\nWe're you just laid off? That's easy, you weren't fired you were just part of layoffs, it happens and it doesn't reflect poorly on you.\n\nWere you let go because of performance? If so, why? What have you learned and how can you be better next time?\n\nWere you fired for things like sexual harassment, taking a shit on your manager's desk, or drug abuse on the job? That's a whole other world of hurt and a different story.\n\nAll in all, being terminated doesn't mean your career is over, but it does mean you should self reflect and think about how to tell this story.", "upvote_ratio": 300.0, "sub": "CSCareerQuestions"} +{"thread_id": "uow3e3", "question": "I was fired from my first job a few days ago after six months of working there. I've been in the dumps lately, and have been applying to jobs. Is my career in CS basically screwed now? I had a hard time finding my first job, and I'm very worried that this will prevent me from getting any sustainable career in this industry. I'm also concerned this will make finding a new one significantly more difficult.", "comment": "Yo man, I'm in the same boat as you :( company had layoffs a few months ago and I was let go as part of that. I took a month to calm myself down from the stress and began some skill building/grinding LC, and have been applying for about 6 weeks now. Here's to both of us getting back on our feet bro!", "upvote_ratio": 160.0, "sub": "CSCareerQuestions"} +{"thread_id": "uow3e3", "question": "I was fired from my first job a few days ago after six months of working there. I've been in the dumps lately, and have been applying to jobs. Is my career in CS basically screwed now? I had a hard time finding my first job, and I'm very worried that this will prevent me from getting any sustainable career in this industry. I'm also concerned this will make finding a new one significantly more difficult.", "comment": "If it makes you feel better, I got fired from my first job a few years ago for underperforming and now I work at Google.", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "uow9rj", "question": "My wife is gaining United States citizenship here in a couple of weeks (from Philippines) and my family and I are looking to throw her a big America themed party to celebrate.\n\nIdeas?", "comment": "Corn hole! (This is a game not a food)", "upvote_ratio": 750.0, "sub": "AskAnAmerican"} +{"thread_id": "uow9rj", "question": "My wife is gaining United States citizenship here in a couple of weeks (from Philippines) and my family and I are looking to throw her a big America themed party to celebrate.\n\nIdeas?", "comment": "Red solo cups!", "upvote_ratio": 710.0, "sub": "AskAnAmerican"} +{"thread_id": "uow9rj", "question": "My wife is gaining United States citizenship here in a couple of weeks (from Philippines) and my family and I are looking to throw her a big America themed party to celebrate.\n\nIdeas?", "comment": "Ironically, one of the best family-friendly parties I've been to in America was thrown by the Filipino portion of my extended family. Tons of pancit, lechon and adobo mingling with brats, burgers and macaroni salad.\n\nAmerica to me is about blending cultures and influences, so I wouldn't be shy about putting the flavors of the Philippines on the menu!", "upvote_ratio": 640.0, "sub": "AskAnAmerican"} +{"thread_id": "uowav1", "question": "As the title says, trying to determine if cybrary would be worth it for my situation. \n\nCurrently active duty military, working on my degree in cyber security. I get out of the military in 8 months and will be really close to having my degree, but it won't be finished yet. I plan on getting a few certs (network+ and sec+ mainly) to help improve my resume and look more hireable since I won't have my degree. \n\nThat being said money is really tight for me right now so if I start the membership for cybrary I want to make sure it would be worth it.", "comment": "There are free training opportunities out there, especially for vets. Someone posted this on Linked in January, I saved it:\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-\n1. Amazon Web Services (AWS) offers AWS Educate FREE to #military #veterans which gives you access to each of their certification training paths. They also reimburse exam cost! (Typically, you can accomplish 1 course and cert in 30 days)\n\n2. Purdue University Northwest offers 3 separate Cybersecurity paths FREE with 3-4 certifications based on path chosen. (Program takes 2 months) ***note, not gated to just military and veterans. Anyone can apply.\n\n3. Microsoft Education learning academy offers FREE monthly Azure courses and they give out the AZ-900 cert voucher (Course is 2 days long and can test immediately) ***note, not gated to just military and veterans. Anyone can apply.\n\n4. Oracle released it's cloud fundamentals course and cert FREE...for now. (Course can take about a month to complete with certification) ***note, not gated to just military and veterans. Anyone can apply.\n\n5. Google has partnered with ACT NOW EDUCATION on Coursera with Google IT Support FREE. (Course can be completed within a week with certification)\n\n6. Fortinet has their FREE FortiVet program with Jay Garcia to which you prepare for the Fortigate Firewall certification. (Course and test prep can be done in a month with networking fundamentals to certify)\n\n7. Institute for Veterans and Military Families - IVMF offers 1 FREE certification voucher through their course. After completing the course you choose and score 80% or higher on 3 practice tests you will ney a voucher. (Depending on certification choice, this can take 2-4 months)\n\n8. SANS Institute offers VetSuccess FREE to which you are offered 3 GIAC certifications. (Program to be done in less than 6 months) ***note, the application process is brutal and not for the faint of heart. They also offer Women's Academy, Diversity Cyber Academy, and Cyber Workforce)\n\n Recap - 12 certifications FREE and within a year!\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uowav1", "question": "As the title says, trying to determine if cybrary would be worth it for my situation. \n\nCurrently active duty military, working on my degree in cyber security. I get out of the military in 8 months and will be really close to having my degree, but it won't be finished yet. I plan on getting a few certs (network+ and sec+ mainly) to help improve my resume and look more hireable since I won't have my degree. \n\nThat being said money is really tight for me right now so if I start the membership for cybrary I want to make sure it would be worth it.", "comment": "Honestly I had access to the full thing for free and would never pay for it. I found the courses just lacking in any real information. I was using the highest rated course for the subjects too.\n\nTo me, Udemy is the best option out there for self learning. Also it has a much better catalog. Just my thoughts tho.\n\nAlso as a veteran you will have access to linkedin premium which includes their learning courses for free for a year. They aren't the best in my opinion but pretty good for the price of free", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uowav6", "question": "I\u2019ve been struggling a lot with eye strain and stinging lately, and it intensifies whenever I look at screens and it just does to want to go away. \nDo you guys know any solutions to this?", "comment": "This is talked about pretty often. The standard advice of take breaks, go for a walk, and use pen/paper or whiteboards when the opportunity presents itself are all good tips.\n\nBut I'd also point out \"sit an appropriate distance from your screen\" and \"Don't blow out your brightness settings\" as important advice that's a bit less common. I saved myself a world of pain by getting my work monitors set up properly for long sessions.", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "uowav6", "question": "I\u2019ve been struggling a lot with eye strain and stinging lately, and it intensifies whenever I look at screens and it just does to want to go away. \nDo you guys know any solutions to this?", "comment": "As soon as I go home. I turn on my computer and train my eyes with more screen staring. \n\n&#x200B;\n\nBut, I find that a good sleep, eye close, and not playing on my phone after work really helps out.", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "uowav6", "question": "I\u2019ve been struggling a lot with eye strain and stinging lately, and it intensifies whenever I look at screens and it just does to want to go away. \nDo you guys know any solutions to this?", "comment": "I set my monitor brightness to 5/100, and use windows\u2019 night light feature after 7pm. My eyes haven\u2019t stung in years but apparently if you look at a not-so-bright monitor for so long it will mess up your eyesight.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "uowebk", "question": "The British royal family changed their name from Saxe-Coburg and Gotha to Windsor. What other names were considered, and why was Windsor the winner?", "comment": "In the spring of 1917, as the war raged on, rising anti-monarchical and anti-German sentiment prompted the Prime Minister, David Lloyd George, to suggest to George V that members of the Royal Family reject their German names and titles. Though at first resistant to the idea, both the King and Queen recognized the precarious status of the monarchy in light of the recent revolution in Russia, where the Tsar (who, like the German emperor Willem II, was the King\u2019s cousin) had been recently deposed.\n\nAs there was no established process for renaming the Royal House, the King\u2019s private secretary, Lord Stamfordham, had to turn to Henry Farnham Burke at the College of Arms, which collected information on family lineages, for ideas. According to Jane Ridley in her recent biography of George V (which she wrote after careful consultation of the papers of Lord Stamfordham, and of Harold Nicolson, the King's official biographer), the names that were first considered include Wettin, which, rather than Coburg, was believed to be the family name of Albert, the Prince Consort; Wipper, which some in the Heralds\u2019 College believed was Albert's true family name; and Guelph, which was the family name of the Hanoverians. All these were rejected for being too German-sounding and \u201cunsuitably comic.\u201d\n\nLord Stamfordham offered up Tudor-Stewart in attempt to connect with former English dynasties, and King George and Queen Mary did for a time favor simply Stewart. But both Lord Rosebery and H. H. Asquith, two former prime ministers who had been asked to consult on the name change, dismissed this choice given the rejection of the Stuart dynasty during and after the Glorious Revolution of 1688. According to Anne Edwards in her biography of Queen Mary, other suggestions from Prince Louis of Battenberg and the Duke of Connaught, who had also now joined the debate, included names historically associated with English monarchs: York, Lancaster, Plantagenet, England, D\u2019Este, and Fitzroy. All of these were rejected.\n\nIn the end, Stamfordham was the one who came up with Windsor. Unlike York or Lancaster, it had never been (up to this point) the name of a royal dukedom. Windsor was the site of Windsor Castle, which had been occupied by the monarch for hundreds of years. And crucially, Windsor also had precedence as a royal style, as Edward III, who had reigned in the fourteenth century, was sometimes known as Edward of Windsor. The name Windsor was considered \u201cas English as the earth upon which the castle stood, its smooth solid walls encircling its wards, mound, towers, and chapel\u201d and was therefore accepted.\n\nAt a council on July 17, 1917, the King proclaimed that he and his heirs would henceforth be known as members of the House of Windsor. He and the extended Royal Family also relinquished their German titles, with many receiving British peerages in exchange.", "upvote_ratio": 4870.0, "sub": "AskHistorians"} +{"thread_id": "uoweg3", "question": "I realize that folks who are more artistically inclined know the difference, my question is more in regards to the general public. Other colors on the spectrum are similar to each other but are generally treated as distinct colors. Orange and yellow are just as close to each other as blue and indigo but most people treat them as entirely separate colors. Blue and Indigo typically are changed to be light blue and dark blue, why do we do this? If indigo and blue are the same, why isn't purple also blue? If purple is blue why isn't red also blue? Is everything really just a shade of blue?", "comment": "Assuming you mean Sir Issac Newton's color scale: it was originally only 5 colors, but he wanted to have 7 colors to match the number of notes in the major scale (musical scale) so he added orange and indigo.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "uown1l", "question": "What would happen if Russia took back Alaska?", "comment": "Counter-question: How?", "upvote_ratio": 860.0, "sub": "AskAnAmerican"} +{"thread_id": "uown1l", "question": "What would happen if Russia took back Alaska?", "comment": "Russia ain't taking back Alaska. What would happen if Russia *attacked* Alaska? A swift response by NATO in which the Russian military gets annihilated very quickly. Russia can barely hold on to villages in Ukraine. They've exhausted most of the modern military hardware, annihilated their own \"elite\" airborne force and lost their flagship to a country with no navy. Attacking Alaska would be suicide.", "upvote_ratio": 470.0, "sub": "AskAnAmerican"} +{"thread_id": "uown1l", "question": "What would happen if Russia took back Alaska?", "comment": "They literally cannot, they can't take Kyiv. But the answer is war.", "upvote_ratio": 360.0, "sub": "AskAnAmerican"} +{"thread_id": "uowojt", "question": "I want it to take a string and turn it into a list of binary then turn said binary into an image consisting of concentric circles, each split into eight parts. How would I do this? I know how to convert the string into binary but not how to turn it into an image.\n\n&#x200B;\n\n[Here's an example](https://drive.google.com/file/d/1lIMtarOi0d8sry3Y8w76yO_1iNwtWdlm/view?usp=sharing) it says \"Test\"", "comment": "Use the `pillow` module for bitmap (png / jpeg) output, or the `tkinter` module for vector (svg / ps) output, and draw a series of overlapping `arc` objects. \n\nhttps://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.arc \nhttps://anzeljg.github.io/rin2/book2/2405/docs/tkinter/create_arc.html", "upvote_ratio": 90.0, "sub": "LearnPython"} +{"thread_id": "uowpz7", "question": "Alright, guys so this is the situation. \n\nI am currently working as a network engineer. Still pretty early in my networking career and mostly worked with layer 2. Haven't had access to routing. My goal is to get to the senior level tier.\n\nHere is the dilemma. Which opportunity should i go for?\n\nA. A contract opportunity where I would be making around 104k as a network engineer. This position would expose me more to routing and overall seems like a really good opportunity to take me to the next level. The employer knows my skill level and knows that I haven't done much production routing. Because of my ambitious attitude, they are interested in me. \n\n&#x200B;\n\nB. A well-known company where I would be working as a Senior Helpdesk making a little less(Mid 90s). I have heard it is difficult to get in and I could definitely see myself retiring here. (I am 24) They do have a lot of opportunities within and I know talent retention is pretty good. Just overall a great company. \n\n&#x200B;\n\nSo take a step back in position at an great company? Or continue to grow my skills and make more money while im there.\n\n&#x200B;\n\nEither way, it's a pay bump for me. I'm currently making around 85k and in an Infrastructure role. No access to anything layer 3. They are all offshore.\n\n&#x200B;\n\nThank you guys ahead of time for the help and advice.", "comment": "If you have to choose between the two I would go with A. Helpdesk, even at a good company, just isn't worth it. In my opinion you should learn a bit of cloud stuff (Terraform, Azure or AWS) and some DevOps principles and then start applying to other roles. A few months ago I got offered multiple \"Cloud Network Engineer\" roles for ~150k TC with almost 0 networking experience. All but one were fully remote. YMMV.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uowpz7", "question": "Alright, guys so this is the situation. \n\nI am currently working as a network engineer. Still pretty early in my networking career and mostly worked with layer 2. Haven't had access to routing. My goal is to get to the senior level tier.\n\nHere is the dilemma. Which opportunity should i go for?\n\nA. A contract opportunity where I would be making around 104k as a network engineer. This position would expose me more to routing and overall seems like a really good opportunity to take me to the next level. The employer knows my skill level and knows that I haven't done much production routing. Because of my ambitious attitude, they are interested in me. \n\n&#x200B;\n\nB. A well-known company where I would be working as a Senior Helpdesk making a little less(Mid 90s). I have heard it is difficult to get in and I could definitely see myself retiring here. (I am 24) They do have a lot of opportunities within and I know talent retention is pretty good. Just overall a great company. \n\n&#x200B;\n\nSo take a step back in position at an great company? Or continue to grow my skills and make more money while im there.\n\n&#x200B;\n\nEither way, it's a pay bump for me. I'm currently making around 85k and in an Infrastructure role. No access to anything layer 3. They are all offshore.\n\n&#x200B;\n\nThank you guys ahead of time for the help and advice.", "comment": "Only tech problems haha. Go do what you want networking. You dont want to be stuck helpdesk hating your life", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uowy2z", "question": "My superficial knowledge of what black holes are and how they work tell me the answer to the question is yes (yes), but I'm not sure.\n\nI guess I understand that if you have a black hole, the mass must be in a singularity since, if you have gravity strong enough to bend space entirely inwards so that light can't escape, then surely there are no other forces that can resist this by pushing apart (like how atoms or neutrons push each other away) to constitute a body of some sort.\n\nSo it seems that a black hole necessarily contains a singularity?\n\nOk, then, if you have a situation where gravity is strong enough to create a singularity, is it necessarily also a black hole? Can you have a singularity so small that light can't fall into it, or something like that?\n\nI'm sort of thinking of this case where you have a neutron star, and you add one neutron at a time... is there going to be a point where I add a neutron and \"pop\" it's a singularity / black hole, or is there some in-between (however narrow) where you're not quite one or the other?", "comment": "Short answer, we don't know.\n\nThe math predicts singularity, but usually that's just a big red flag that you've reached the limitations of the math, not necessarily the limitations of the real physical universe. There may be some as yet unknown physics that prevents a singularity. Some believe that a further level of collapse is possible beyond a neutron star to an unknown star type that we haven't seen yet - quark stars are the common term. Just because the curvature of spacetime around an object is extreme enough to create an event horizon, it doesn't necessarilly follow that there has to be a singularity at the center.", "upvote_ratio": 6830.0, "sub": "AskScience"} +{"thread_id": "uowy2z", "question": "My superficial knowledge of what black holes are and how they work tell me the answer to the question is yes (yes), but I'm not sure.\n\nI guess I understand that if you have a black hole, the mass must be in a singularity since, if you have gravity strong enough to bend space entirely inwards so that light can't escape, then surely there are no other forces that can resist this by pushing apart (like how atoms or neutrons push each other away) to constitute a body of some sort.\n\nSo it seems that a black hole necessarily contains a singularity?\n\nOk, then, if you have a situation where gravity is strong enough to create a singularity, is it necessarily also a black hole? Can you have a singularity so small that light can't fall into it, or something like that?\n\nI'm sort of thinking of this case where you have a neutron star, and you add one neutron at a time... is there going to be a point where I add a neutron and \"pop\" it's a singularity / black hole, or is there some in-between (however narrow) where you're not quite one or the other?", "comment": "So, from my understanding, the math simply isn\u2019t there to confirm or deny that there is *actually* a *physical* singularity in a black hole. I\u2019ve heard it said that a singularity is simply a situation in which a given system is attempting to describe a particular event or situation it wasn\u2019t really designed to. For example, there\u2019s a singularity at the north and south poles: the zero dimensional points at which all longitudes converge and it becomes impossible to meaningfully differentiate them. Where every direction is south/north (depending on which pole you\u2019re at). I\u2019m sure I\u2019m explaining this poorly. Maybe someone else can come in and clean up my mess.\n\nIn any case, until and unless we get a functioning theory of quantum gravity, we won\u2019t really know *what* happens inside a black hole, much less at the singularity.", "upvote_ratio": 1440.0, "sub": "AskScience"} +{"thread_id": "uowy2z", "question": "My superficial knowledge of what black holes are and how they work tell me the answer to the question is yes (yes), but I'm not sure.\n\nI guess I understand that if you have a black hole, the mass must be in a singularity since, if you have gravity strong enough to bend space entirely inwards so that light can't escape, then surely there are no other forces that can resist this by pushing apart (like how atoms or neutrons push each other away) to constitute a body of some sort.\n\nSo it seems that a black hole necessarily contains a singularity?\n\nOk, then, if you have a situation where gravity is strong enough to create a singularity, is it necessarily also a black hole? Can you have a singularity so small that light can't fall into it, or something like that?\n\nI'm sort of thinking of this case where you have a neutron star, and you add one neutron at a time... is there going to be a point where I add a neutron and \"pop\" it's a singularity / black hole, or is there some in-between (however narrow) where you're not quite one or the other?", "comment": "Pure general relativity says there must be a singularity in a black hole. But we know general relativity isn't the whole picture and comes into hopeless conflict on quantum scales.\n\nUntil we have a better understanding of gravity at the quantum scale, any answer besides \"we don't know\" is a lie.\n\nRegarding can you have a singularity without a black hole, we think you probably can't, but again don't know for sure. The more sciency term for that to help you look stuff up is that said singularity would be called a \"naked singularity\", and the \"cosmic censorship hypothesis\" is a proposal saying they can't exist (which is unproven, hence it being a hypothesis).", "upvote_ratio": 450.0, "sub": "AskScience"} +{"thread_id": "uowyfo", "question": "so i want to know if nuts to add weight to my body. whenever i eat anything i weight immediately and its like +0.6 kg for example but when nuts have more calories they dont add anything immediately after eating it like other food.\n\ndoes nuts actually add weight and how?", "comment": "First: don't weigh yourself after eating, that doesn't make sense. Weigh yourself once per month or every few weeks in the morning after using the toilet and before eating. Then you will get a solid number.\n\nSecond: yes, you can gain weight with nuts, but 100g nuts contain 600kcal while let's say bread with 100g has maybe 250g. So you need to eat less to get stuffed the same.", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "uox4ow", "question": "I am in the process with 2 companies:\n\nCompany A, seems pretty good and works with the language i want to learn more\n\nCompany B, also has great culture (way more Behavorial interviews screening for important questions) and works with a massive scale, tens of thousands of requests a second, globally distributed etc\n\n\nThere are also 2 issues, \n\n1.I hastely accepted company A's offer, and don't want to back out of it\n\n2. Company B works in the languages I was trying to get away from\n\nI am thinking I would like to be an architect later in my career. (currently 5 yoe) did I make a huge mistake in accepting company A's offer?\n\nEdit: wording", "comment": "No.\n\nData at scale is nice to have on your resume but won't make or break anything.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "uox6hu", "question": "This feels like a stupid question but I\u2019m on the job hunt for the first time in an embarrassingly long time and this whole process is my kryptonite. My email and LinkedIn inbox have been flooded with recruiters telling me about their exciting new opportunity that would be just perfect for me. Some of them speak English very poorly, some seem really pushy, some of the jobs are are barely related to what I do or have mandatory skills that I don\u2019t even hint at on my resume. It all feels a bit like a Nigerian prince is trying to offload his fortune on to me if I just send him my account number. So what\u2019s the deal with tech recruiters? Can someone please ELI5?", "comment": "Those ones are scammy. Use your best judgement.", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "uox6hu", "question": "This feels like a stupid question but I\u2019m on the job hunt for the first time in an embarrassingly long time and this whole process is my kryptonite. My email and LinkedIn inbox have been flooded with recruiters telling me about their exciting new opportunity that would be just perfect for me. Some of them speak English very poorly, some seem really pushy, some of the jobs are are barely related to what I do or have mandatory skills that I don\u2019t even hint at on my resume. It all feels a bit like a Nigerian prince is trying to offload his fortune on to me if I just send him my account number. So what\u2019s the deal with tech recruiters? Can someone please ELI5?", "comment": "Some of them are, a lot aren't. There are typically three types of recruiters in order of decreasing \"legitness\":\n\n* Internal recruiters. These are people who work for the company that is looking to hire engineers. If one is contacting you about an open position, there is a good chance you can get an interview out of it.\n* External recruiters who are contracted by employers for direct hire positions. You tend to see this with smaller companies who don't have the need or the resources to hire full time recruiters. They're pretty good, and probably worth your time to at least have a chat with if you're interested in other opportunities.\n* External recruiters looking to represent you for contract work. This is probably what you'll see the most. I've never had a fruitful conversation with one of these recruiters, so I just ignore them. I wouldn't fault desperate people for giving them a shot though.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "uox6hu", "question": "This feels like a stupid question but I\u2019m on the job hunt for the first time in an embarrassingly long time and this whole process is my kryptonite. My email and LinkedIn inbox have been flooded with recruiters telling me about their exciting new opportunity that would be just perfect for me. Some of them speak English very poorly, some seem really pushy, some of the jobs are are barely related to what I do or have mandatory skills that I don\u2019t even hint at on my resume. It all feels a bit like a Nigerian prince is trying to offload his fortune on to me if I just send him my account number. So what\u2019s the deal with tech recruiters? Can someone please ELI5?", "comment": "In general, yes, third-party agency recruiters are legit, though the quality varies greatly. The Recruiting FAQ contains some info about how they work, in case you're not sure: https://www.reddit.com//r/cscareerquestions/wiki/faq_recruiting \n\nI just completed a successful job search for architect and management positions, and I made it to the final round of interviews with 5 companies (1 offer, two others asking if they could counter-offer; I declined). Four of those jobs were brought to my attention by agency recruiters.\n\nWhen working with agency recruiters, you just have to remember that you're the product being sold, not the customer. Also, the recruiter only gets paid if you get an offer, accept the offer and start the job. Therefore, you have to understand that their entire motivation is to get to that end--at all costs. Some of them will lie to you, bully you to take a low offer, etc. I'm not excusing that type of behavior, but if you understand their motivation, then that helps you to deal with it more successfully.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "uox6vu", "question": "I'm really anxious about this, I'm having the phone screening for this role next week. Any advice?", "comment": "You'll have two interviews, a technical interview with another IT engineer and a 'culture' interview with an IT manager, neither from the site you're applying to. Relax, take your time, be honest about your skills and if you don't know something you're asked, explain how you'd go about finding the answer.\n\nYou'll be asked to rate your skill level in networking, linux, and Microsoft and then asked a series of questions based upon your reponses... the higher you rate your skill, the more questions you're likely to be asked in that area. So if you don't know linux, don't rate yourself highly and that'll be a comparatively smaller portion of your technical interview.\n\nFollowing that, you'll be asked some questions about your perspective and past work experience that relates to Amazon's leadership principles... you should have received a copy of the LP's along with a description of the 'STAR' method from your recruiter. Review the leadership principles beforehand and think of a couple situations you can relate to each one so you're ready when asked, and use the STAR method to compose your answers. \n\nSo, for example, you might be asked something like this for Bias for Action:\n\n>Give me an example of when you had to make an important decision and had to decide between moving forward or gathering more information. What did you do? What was the outcome? What information is necessary for you to have before acting?\r \n\n\nUse the STAR method to identify the situation, the task needed to address that situation, the actions taken to accomplish that task, and the results. \n\nAll in all, it's pretty straightforward and not a super difficult interview process.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uox6vu", "question": "I'm really anxious about this, I'm having the phone screening for this role next week. Any advice?", "comment": "Study up on Leadership Principles, write a few examples when you have demonstrated each leadership principle.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoxbqq", "question": "Hi all,\n\nI have just recently completed a UX course and it seems the market for entry UX roles is incredibly difficult to get into. \n\nWhat would you say is the easiest IT career for one to get into for one without any IT qualification (I am open to pursuing some if needed), that I could do in the meantime? \n\nI don\u2019t know how long it will take me to secure a ux role so I\u2019m looking at this at a back up career but one that also still has decent growth within it.\n\nIt would be nice to get something similar or close to UX with the sort of requirements I\u2019m looking for but I don\u2019t think it\u2019s possible\u2026\n\nI am based in London if it will help give some clarity.", "comment": "\"I have just recently completed a UX course \" \n\n\nWhy did you choose UX?", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoxm3z", "question": "I entered a new company 3 months ago. I got hired as a Backend dev. And in this project I came to replace a guy that was working in DevOps 100%.\n\nThey knew I was going for Backend, so they told me the team would adapt, and everyone would do a little bit of DevOps each. (We already have 1 in DevOps).\n\nBut today, after a couple of sprints, they said I would be working with the other DevOps guy.\n\nSo I asked, if I would now be 100% DevOps, and they said 50/50.\n\nThis is making me quite annoyed. DevOps is an area that does not interest me at all. And now I am supposed to do it. And I have no experience in it.\n\nI was so happy with my previous tasks in the Backend, was completing them pretty well and quickly, and this is how I am rewarded!\n\nI am just tired, my previous company also fucked me up, by leaving me in the bench for 1.5 years (cuz corona and stuff) and then giving me shitty projects, and now I am getting the same treatment! I want to grow and quickly, and DevOps is not something I intend on becomibg an expert.\n\nSure, I could have some knowledge, but I don't want to replace time I could get experience in Backend with DevOps.\n\nAm I just freaking out?\nIs DevOps that bad, if your intention is to become good in the backend, and maybe even do freelance in the future?\n\nI am okay, in case it is a good complienent. But I don't want it too much. I want to shine where I am good at: coding!", "comment": "You are overthinking things. Being good at devops is never a bad thing, and can be beneficial actually to pretty much any other area of CS / SWE.\n\nAlso, you're not going to ever be able to work on only the things you want. Everything is interconnected, and the more broad experience you get earlier on in your career, the better you will be.", "upvote_ratio": 240.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoxm3z", "question": "I entered a new company 3 months ago. I got hired as a Backend dev. And in this project I came to replace a guy that was working in DevOps 100%.\n\nThey knew I was going for Backend, so they told me the team would adapt, and everyone would do a little bit of DevOps each. (We already have 1 in DevOps).\n\nBut today, after a couple of sprints, they said I would be working with the other DevOps guy.\n\nSo I asked, if I would now be 100% DevOps, and they said 50/50.\n\nThis is making me quite annoyed. DevOps is an area that does not interest me at all. And now I am supposed to do it. And I have no experience in it.\n\nI was so happy with my previous tasks in the Backend, was completing them pretty well and quickly, and this is how I am rewarded!\n\nI am just tired, my previous company also fucked me up, by leaving me in the bench for 1.5 years (cuz corona and stuff) and then giving me shitty projects, and now I am getting the same treatment! I want to grow and quickly, and DevOps is not something I intend on becomibg an expert.\n\nSure, I could have some knowledge, but I don't want to replace time I could get experience in Backend with DevOps.\n\nAm I just freaking out?\nIs DevOps that bad, if your intention is to become good in the backend, and maybe even do freelance in the future?\n\nI am okay, in case it is a good complienent. But I don't want it too much. I want to shine where I am good at: coding!", "comment": "Learning devops is just part of becoming a senior developer, my dude. And unless you're doing it for multiple teams it's not exactly a full time role. Its just a hat someone needs to wear sometimes. \n\nIdeally you teach ALL the devs on a team enough over time that they can do the devops portion.", "upvote_ratio": 220.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoxm3z", "question": "I entered a new company 3 months ago. I got hired as a Backend dev. And in this project I came to replace a guy that was working in DevOps 100%.\n\nThey knew I was going for Backend, so they told me the team would adapt, and everyone would do a little bit of DevOps each. (We already have 1 in DevOps).\n\nBut today, after a couple of sprints, they said I would be working with the other DevOps guy.\n\nSo I asked, if I would now be 100% DevOps, and they said 50/50.\n\nThis is making me quite annoyed. DevOps is an area that does not interest me at all. And now I am supposed to do it. And I have no experience in it.\n\nI was so happy with my previous tasks in the Backend, was completing them pretty well and quickly, and this is how I am rewarded!\n\nI am just tired, my previous company also fucked me up, by leaving me in the bench for 1.5 years (cuz corona and stuff) and then giving me shitty projects, and now I am getting the same treatment! I want to grow and quickly, and DevOps is not something I intend on becomibg an expert.\n\nSure, I could have some knowledge, but I don't want to replace time I could get experience in Backend with DevOps.\n\nAm I just freaking out?\nIs DevOps that bad, if your intention is to become good in the backend, and maybe even do freelance in the future?\n\nI am okay, in case it is a good complienent. But I don't want it too much. I want to shine where I am good at: coding!", "comment": "If anything having DevOps experience is a great thing if you're a backend engineer.\n\nBut honestly, it is really weird to me that they'd hire a backend developer to replace an ops person. And it's weirder to me that you're embedded in what seems like a normal development team. Is this a very small company, like series A startup or smaller?\n\nIt's fine if you're not interested in it, but it's not like you're wasting time - an understanding of cloud computing is very useful to all engineers, especially backend, particularly at smaller companies - the smaller you go the more ownership you can have, but you also have to wear more hats.\n\nThat said, if it's too much ops work for your liking, you should explain this to your manager. Have you told THEM where you want to take your career? It's your manager's job to help you along that path, but they can't do anything if you don't talk to them.", "upvote_ratio": 70.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoxmzv", "question": "how can i cheer a depressed friend through text?", "comment": "\"I know things have been hard for you lately, please know that I'm right here with you no matter what.\"", "upvote_ratio": 70.0, "sub": "ask"} +{"thread_id": "uoxmzv", "question": "how can i cheer a depressed friend through text?", "comment": "Tell something good to him like (how you both spend time together, that you can\u2019t see your live without him cause he is your best friend). Or something else, cause I don\u2019t have a lot of friends who can tell something same to me", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "uoxo9h", "question": "What's the weirdest thing that turned you on?", "comment": "In college we were doing some skit in some class. Me and another guy were on all fours and supposed to act as benches and these girls were gonna sit on our backs. The girl who sat on mine had a nice, soft ass and I never forgot that weird feeling of being able to realize how soft her ass was with just my back. I still think about her and this was a little more than a decade ago.", "upvote_ratio": 8740.0, "sub": "AskReddit"} +{"thread_id": "uoxo9h", "question": "What's the weirdest thing that turned you on?", "comment": "My girlfriend super sweaty. I don't have a sweat fetish but seeing her all sweaty makes me want to be all over her", "upvote_ratio": 3280.0, "sub": "AskReddit"} +{"thread_id": "uoxo9h", "question": "What's the weirdest thing that turned you on?", "comment": "Just seeing a bare neck, it's just that satisfying to see", "upvote_ratio": 3110.0, "sub": "AskReddit"} +{"thread_id": "uoxskv", "question": "First, are there any perf/debugging tools that would allow me to inspect or visualize the state of my CPU caches? Capacity, size, hits, misses, etc. \n\nSecond, are there any CPU simulators that would allow me to do the same? Maybe something that allows me to run a small-scale C program \"in a vacuum\" as I'm sure that real CPU is vastly more complicated.\n\nThird, any good resources on cache optimization strategies?\n\nThank you", "comment": "Most processors keep performance counters for stuff like this. In Linux you can access them with a tool like [perf stat](https://man7.org/linux/man-pages/man1/perf-stat.1.html).\n\nGetting access controls set up correctly to use it is slightly complicated. [This](https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html) might be a good resource.\n\nI don't think optimizing for cache performance is a terribly big subject. I would say your three most important things are:\n\n1. Where possible, make things small. (i.e. fit more stuff in cache)\n2. Make things compact. That is, use arrays a lot so stuff is sitting near each other in memory.\n3. Access memory sequentially. Don't bounce around through memory. Avoid linked data structures like linked lists and binary trees.\n\nThe last two sort of go together to inform data structure choices. Some general rules of thumb for performance:\n\n- Use arrays instead of linked lists.\n- Use open addressed hash tables instead of buckets with links.\n- Use sorted arrays instead of balanced binary trees.\n\nObviously, there will be specific scenarios where the benefits of a linked data structure outweigh their downsides. Always measure.\n\nAs far as resources go, I'm a fan of the book *The Art of Writing\nEfficient Programs* by Fedor Pikus. It is C++ focused, but if you can understand the code I think most of it is applicable to C as well.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "uoxvlk", "question": "I have never coded before and I'm trying to send multiple emails to multiple different people how could I do it", "comment": "Start with googling the title of this post. That's a very common question and there's plenty of tutorials out there. Once you have some code and you have an issue or bug with it, come back here and show us your code, and we'll help you fix it.", "upvote_ratio": 80.0, "sub": "LearnPython"} +{"thread_id": "uoxvlk", "question": "I have never coded before and I'm trying to send multiple emails to multiple different people how could I do it", "comment": "You start by learning python basics.\n\nFollow a book or watch videos.\n\nhttps://automatetheboringstuff.com/#toc\n\nhttps://m.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "uoy2fu", "question": "I\u2019m at the beginning of a two year part time computer science conversion degree and I\u2019m almost finished semester 1/4 which is comprised of a Java OOP/intro programming module and a computer architecture (linux, circuits, OS) etc filler module. \n\nNext semester I have an advanced OOP and a networking module but we don\u2019t touch on algorithms until my last semester next year.\n\nMy question is should I focus fully on java, programming fundamental concepts and OOP now or also add in data structures/algorithms study alongside my course content? Is there any point of me learning algorithms this early in my education before being comfortable with a language? Thanks!", "comment": "DSA are not beginner material. You need to first become somewhat proficient because otherwise the material doesn't make sense.", "upvote_ratio": 190.0, "sub": "LearnProgramming"} +{"thread_id": "uoy2fu", "question": "I\u2019m at the beginning of a two year part time computer science conversion degree and I\u2019m almost finished semester 1/4 which is comprised of a Java OOP/intro programming module and a computer architecture (linux, circuits, OS) etc filler module. \n\nNext semester I have an advanced OOP and a networking module but we don\u2019t touch on algorithms until my last semester next year.\n\nMy question is should I focus fully on java, programming fundamental concepts and OOP now or also add in data structures/algorithms study alongside my course content? Is there any point of me learning algorithms this early in my education before being comfortable with a language? Thanks!", "comment": "I am bootcamp trash so be wary of what I am about to write:\n\nAlgorithms are more than likely last in the program because you need the other stuff to do them", "upvote_ratio": 60.0, "sub": "LearnProgramming"} +{"thread_id": "uoy2fu", "question": "I\u2019m at the beginning of a two year part time computer science conversion degree and I\u2019m almost finished semester 1/4 which is comprised of a Java OOP/intro programming module and a computer architecture (linux, circuits, OS) etc filler module. \n\nNext semester I have an advanced OOP and a networking module but we don\u2019t touch on algorithms until my last semester next year.\n\nMy question is should I focus fully on java, programming fundamental concepts and OOP now or also add in data structures/algorithms study alongside my course content? Is there any point of me learning algorithms this early in my education before being comfortable with a language? Thanks!", "comment": "If programming is like building a house think of algorithms and data structures as something like interior design and furnishings. You need the actual foundation and solid building first, which is Java. No point learning about how to optimize a space or fill the rooms if you have no rooms or space to work with.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "uoy3ai", "question": "I found this website where it allows you to see which celebrity shares the same birthday as you. And I discovered that my birthday is shared with George Lucas, Mark Zuckerberg, and Miranda Cosgrove. And by the way, my birthday is May 14th.", "comment": "Everyone does.", "upvote_ratio": 70.0, "sub": "ask"} +{"thread_id": "uoy3ai", "question": "I found this website where it allows you to see which celebrity shares the same birthday as you. And I discovered that my birthday is shared with George Lucas, Mark Zuckerberg, and Miranda Cosgrove. And by the way, my birthday is May 14th.", "comment": "Yes Keanu Reeves", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "uoy3ai", "question": "I found this website where it allows you to see which celebrity shares the same birthday as you. And I discovered that my birthday is shared with George Lucas, Mark Zuckerberg, and Miranda Cosgrove. And by the way, my birthday is May 14th.", "comment": "I have the same birthday as Margaret Thatcher :(", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "uoy3t2", "question": "Hello,\n\nI've been given an interview opportunity to be a IT Technician for a hardware recycling warehouse. I'm not in a IT-related position yet. I will be completing my associates degree in IT after May, and I currently hold a CompTIA A+ cert. I thought this opportunity might get my foot in the door because I'm not hearing back from helpdesk positions / other entry positions. I'm in a government position - adminstrative side, not IT. It's rather simple, but it's not giving me the experience I need to move into IT. I'm in need of second opinions because my current position has a good work-life balance, but no IT mobility.\n\nThoughts?", "comment": "It's probably going to be grunt work - moving, separating, unboxing, etc. with some troubleshooting to see which machines are scrap and which ones can be re-used/sold. \n\nBut it's still IT enough that it puts experience on your resume while you apply to higher level stuff.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoy50p", "question": "Saw this [meme](https://www.reddit.com/r/ProgrammerHumor/comments/uokayc/continuing_the_outsourcing_theme/?utm_source=share&utm_medium=ios_app&utm_name=iossmf) in r/programmerhumor and some people in the comments are giving pretty logical arguments on why they have trouble with Indian devs, wether it is lack of compatibility, or their companies cheaping out and hiring low quality low skilled devs. That makes sense. But some people are being outright racist. \n\nI\u2019m concerned about this because I\u2019m ethnically south Asian and although I was raised in the United Kingdom and Canada, I still have brown skin. And CS is a career I am seriously considering since I do well at CS class at my high school, I enjoy coding, it\u2019s something I can excel at, and it\u2019s also pretty lucrative.\n\nSo how common is racism in workplaces? \n\n(In the US, since that is where I want to go for college and live there after)", "comment": "I wouldn't recommend basing career decisions on wojak memes.\n\nWe all know cheap outsourcing shops exist, typically in SE Asia, India, and Eastern Europe. That doesn't mean that developers there aren't worthy of respect and kindness, and it also doesn't mean I assume anyone from those demographics is a shitty developer.\n\nThat meme was probably posted by someone younger than you who goes on /g/ too much. Don't worry, most of us are normal adults. Maybe a bit nerdy and awkward, but not overtly racist.", "upvote_ratio": 7590.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoy50p", "question": "Saw this [meme](https://www.reddit.com/r/ProgrammerHumor/comments/uokayc/continuing_the_outsourcing_theme/?utm_source=share&utm_medium=ios_app&utm_name=iossmf) in r/programmerhumor and some people in the comments are giving pretty logical arguments on why they have trouble with Indian devs, wether it is lack of compatibility, or their companies cheaping out and hiring low quality low skilled devs. That makes sense. But some people are being outright racist. \n\nI\u2019m concerned about this because I\u2019m ethnically south Asian and although I was raised in the United Kingdom and Canada, I still have brown skin. And CS is a career I am seriously considering since I do well at CS class at my high school, I enjoy coding, it\u2019s something I can excel at, and it\u2019s also pretty lucrative.\n\nSo how common is racism in workplaces? \n\n(In the US, since that is where I want to go for college and live there after)", "comment": "This industry is full of brown people. Relax yourself. Source: Am brown", "upvote_ratio": 4760.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoy50p", "question": "Saw this [meme](https://www.reddit.com/r/ProgrammerHumor/comments/uokayc/continuing_the_outsourcing_theme/?utm_source=share&utm_medium=ios_app&utm_name=iossmf) in r/programmerhumor and some people in the comments are giving pretty logical arguments on why they have trouble with Indian devs, wether it is lack of compatibility, or their companies cheaping out and hiring low quality low skilled devs. That makes sense. But some people are being outright racist. \n\nI\u2019m concerned about this because I\u2019m ethnically south Asian and although I was raised in the United Kingdom and Canada, I still have brown skin. And CS is a career I am seriously considering since I do well at CS class at my high school, I enjoy coding, it\u2019s something I can excel at, and it\u2019s also pretty lucrative.\n\nSo how common is racism in workplaces? \n\n(In the US, since that is where I want to go for college and live there after)", "comment": "Open racism is rare, but there\u2019s always that guy. You know what I mean. The guy (always a guy) that \u201cjust asks questions\u201d and \u201ccalls a space a spade\u201d and \u201cdoesn\u2019t believe in political correctness\u201d that says pet hurtful things that stop below the threshold for disciplinary action. But they add up.", "upvote_ratio": 1260.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoy6gf", "question": "This doesn't work:\n\nstd::vector<int> vec;\nauto iter = vec.end() / 2;\n\nThis does:\n\nstd::vector<int> vec;\nauto iter = vec.begin() + (vec.end() - vec.begin()) / 2;\n\nI get it has something to do with type conversions. Can somebody explain the exact conversions going on?", "comment": "Dividing an iterator makes as much sense as dividing a pointer.\n\n> (vec.end() - vec.begin())\n\nAnd that evaluates to an integer. Just like pointers.", "upvote_ratio": 110.0, "sub": "cpp_questions"} +{"thread_id": "uoy6gf", "question": "This doesn't work:\n\nstd::vector<int> vec;\nauto iter = vec.end() / 2;\n\nThis does:\n\nstd::vector<int> vec;\nauto iter = vec.begin() + (vec.end() - vec.begin()) / 2;\n\nI get it has something to do with type conversions. Can somebody explain the exact conversions going on?", "comment": "> vec.end() - vec.begin()\n\naka `vec.size()`", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "uoy89l", "question": "I am following some Youtube channels from people who own significant plots of land \u201cin the forests somewhere\u201c, like Andrew Camarata, Diesel Creek or similar. Think of people who really have a reason to own an ATV to get around and work on their land. None of those properties seem marked or fenced in any way.\n\nThis made me wonder: How would I, on a cross country hike, realize that a forest path suddenly becomes the access road to private property? How easy is it to stray on unmarked private land when hiking off of marked trails? \n\nIn Europe, there are various approaches to that issue ranging from \u201cbuild a fence or don\u2019t complain\u201d to \u201chikers may go anywhere unless it\u2019s too close to someone else\u2019s house\u201d. What\u2019s the US approach to this?", "comment": "As a general rule, most places do not have *free to roam* on private property. \n\nThere is lots and lots of 'public' land owned by the states or the feds or even much more locally than that (city, county, etc.) that can be used for hiking and fishing and hunting or whatever. \n\nPeople buy large plots for many reasons, but the most common one is in the name. 'Privacy'. They want private property that belongs to them.", "upvote_ratio": 1040.0, "sub": "AskAnAmerican"} +{"thread_id": "uoy89l", "question": "I am following some Youtube channels from people who own significant plots of land \u201cin the forests somewhere\u201c, like Andrew Camarata, Diesel Creek or similar. Think of people who really have a reason to own an ATV to get around and work on their land. None of those properties seem marked or fenced in any way.\n\nThis made me wonder: How would I, on a cross country hike, realize that a forest path suddenly becomes the access road to private property? How easy is it to stray on unmarked private land when hiking off of marked trails? \n\nIn Europe, there are various approaches to that issue ranging from \u201cbuild a fence or don\u2019t complain\u201d to \u201chikers may go anywhere unless it\u2019s too close to someone else\u2019s house\u201d. What\u2019s the US approach to this?", "comment": "> How would I, on a cross country hike, realize that a forest path suddenly becomes the access road to private property? \n\nI've hiked, camped and backpacked for 30+ years. This is mostly your responsibility. We take private property pretty seriously. You'd use a mapping app like Gaia or OnX to see where public and private lands overlay. Land could be owned by a timber company, an individual, or a nature preserve...it's your responsibility to know where you are in most cases. As others have mentioned, we do NOT have \"freedom to roam\", you do not have implicit permission to camp on unused land, no matter how unused it appears.", "upvote_ratio": 890.0, "sub": "AskAnAmerican"} +{"thread_id": "uoy89l", "question": "I am following some Youtube channels from people who own significant plots of land \u201cin the forests somewhere\u201c, like Andrew Camarata, Diesel Creek or similar. Think of people who really have a reason to own an ATV to get around and work on their land. None of those properties seem marked or fenced in any way.\n\nThis made me wonder: How would I, on a cross country hike, realize that a forest path suddenly becomes the access road to private property? How easy is it to stray on unmarked private land when hiking off of marked trails? \n\nIn Europe, there are various approaches to that issue ranging from \u201cbuild a fence or don\u2019t complain\u201d to \u201chikers may go anywhere unless it\u2019s too close to someone else\u2019s house\u201d. What\u2019s the US approach to this?", "comment": "\\>What\u2019s the US approach to this?\n\nIn my experience, \"stay on marked trails and in designated parklands (etc)\" and \"don't go wandering if there's a possibility you're trespassing\".\n\nIn some cases (like your hypothetical about a public trail becoming a private access road) ownership is made excruciatingly clear (ie, in my old hometown, there was a private cartway linking a public bike trail and a public road, and the owners nailed dozens of yellow 'no trespassing' to the trees along the cartway, promising legal action. Since the town's police station was about a minute away, by foot, this wasn't an idle threat.)", "upvote_ratio": 330.0, "sub": "AskAnAmerican"} +{"thread_id": "uoy95t", "question": "Hello everyone, I currently work at a the target warehouse as a packer. I was talking to one of my co workers and he was telling me how hot the cybersecurity industry is right now. He has his bachelor's and currently working on his master's and I thought about going back to school and get a degree or a certification and try to work my way into the cyber field. From what he told me the cyber field is so broad and there's alot of different areas to choose. What would be the best part of the cyber field for me to look in? For example: digital forensics or pentesting. I want to build myself up to the top but I want to pick something to focus on and go along that path. All suggestions would be greatly appreciated.", "comment": "Its actually really easy. Go on job websites and type in cyber security or whatever field you want. Look at the requirements and then look into getting those certifications.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoy9kc", "question": "Okay bear with me on this one. \n\nMy thinking is, companies demanding employees go back to the office is almost universally driven by toxic tendencies of the company. Inflexibility, a need to micromanage, a rigid definition of what work looks like, strict adherence to traditions, they're all *bad* in ways that will affect you beyond just the call to return to the office. \n\nThat said, I personally quite liked office work (which surprised me! growing up I thought I'd hate it) I found I focused a lot better in that environment than working from home, and I find video conferences have an overriding discomfort that I never felt in in-person meetings. \n\nSo that's the dilemma. How can I find somewhere to work where people are going to be in the office, but where they're not *making* people go into the office? \n\n(In case it's relevant, I've been a senior SE at one of the big tech companies so I figure I can pretty much write my own ticket for where I work)", "comment": "You are unlikely to find an entire team that just all comes in everyday unless they are forced to, never mind an entire company. This is coming from somebody that enjoys going in to the office as well.\n\nI would say use the power of numbers to your advantage and work at large companies. You'll probably get a good number of people overall that go in by choice, but unlikely everybody on your team.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoyb25", "question": "To give a short explanation,\n\nI was raised in a cult in CA with around 40-60 members. They were spiritualists who claimed to be taoist masters. My step dad, the founder, was a psychoanalyst and was trained in hypnotism. He would use these skills along with copious amounts of LSD, ecstasy, ayahuasca, and shrooms to brain wash and sexually abuse people. I was isolated from society until age 12 and did not see a Dr until I had a heart attack at 14 due to a preexisting condition we were not aware of. My step-dad claimed to have went to medical school in India, but didn't graduate because he \"didn't like blood\". He would reset my sister and I's broken bones with no pain relief, give us stitches, and in my case rip giant cactus needles going all the way through my foot out with forceps. \n\nThey also preformed multiple exorcisms and were preppers, they believed the society would collapse. They got heavily into Qanon in my teen years, from age 12 onward. \n\nI am now happy, healthy, and surviving. I don't think I will ever recover from all the trauma, but things are getting better.", "comment": "are they still in operation?", "upvote_ratio": 430.0, "sub": "AMA"} +{"thread_id": "uoyb25", "question": "To give a short explanation,\n\nI was raised in a cult in CA with around 40-60 members. They were spiritualists who claimed to be taoist masters. My step dad, the founder, was a psychoanalyst and was trained in hypnotism. He would use these skills along with copious amounts of LSD, ecstasy, ayahuasca, and shrooms to brain wash and sexually abuse people. I was isolated from society until age 12 and did not see a Dr until I had a heart attack at 14 due to a preexisting condition we were not aware of. My step-dad claimed to have went to medical school in India, but didn't graduate because he \"didn't like blood\". He would reset my sister and I's broken bones with no pain relief, give us stitches, and in my case rip giant cactus needles going all the way through my foot out with forceps. \n\nThey also preformed multiple exorcisms and were preppers, they believed the society would collapse. They got heavily into Qanon in my teen years, from age 12 onward. \n\nI am now happy, healthy, and surviving. I don't think I will ever recover from all the trauma, but things are getting better.", "comment": "Did your sister also escape?", "upvote_ratio": 260.0, "sub": "AMA"} +{"thread_id": "uoyb25", "question": "To give a short explanation,\n\nI was raised in a cult in CA with around 40-60 members. They were spiritualists who claimed to be taoist masters. My step dad, the founder, was a psychoanalyst and was trained in hypnotism. He would use these skills along with copious amounts of LSD, ecstasy, ayahuasca, and shrooms to brain wash and sexually abuse people. I was isolated from society until age 12 and did not see a Dr until I had a heart attack at 14 due to a preexisting condition we were not aware of. My step-dad claimed to have went to medical school in India, but didn't graduate because he \"didn't like blood\". He would reset my sister and I's broken bones with no pain relief, give us stitches, and in my case rip giant cactus needles going all the way through my foot out with forceps. \n\nThey also preformed multiple exorcisms and were preppers, they believed the society would collapse. They got heavily into Qanon in my teen years, from age 12 onward. \n\nI am now happy, healthy, and surviving. I don't think I will ever recover from all the trauma, but things are getting better.", "comment": "Hey, I just checked your account, I wonder you being into BDSM and humiliation has something to do with the trauma you faced growing up?", "upvote_ratio": 200.0, "sub": "AMA"} +{"thread_id": "uoybu9", "question": "I'm british and I'm looking to try some American candy bars, I've tried and loved reeses, could you recommend any others?", "comment": "I'm not a big candy eater but every once in awhile I get a craving for a snickers. Especially the frozen ones with ice cream in them.", "upvote_ratio": 2150.0, "sub": "AskAnAmerican"} +{"thread_id": "uoybu9", "question": "I'm british and I'm looking to try some American candy bars, I've tried and loved reeses, could you recommend any others?", "comment": "London has a silly number of American Candy stores that seem to be a money laundering scheme or at least some sort of shenanigans. If you\u2019re in or ever in London they do seem to have everything we have. \n\nAt any rate my vote is Whatchamacallit", "upvote_ratio": 1500.0, "sub": "AskAnAmerican"} +{"thread_id": "uoybu9", "question": "I'm british and I'm looking to try some American candy bars, I've tried and loved reeses, could you recommend any others?", "comment": "r/snackexchange might be something to check out, a subreddit devoted to international snack exchanges. You'd probably find some Americans willing to send you a bunch of candy bars in exchange for British ones.", "upvote_ratio": 1320.0, "sub": "AskAnAmerican"} +{"thread_id": "uoycaw", "question": " \n\nHey everyone,\n\nI just started my first software development job, and am wonder whether to stick with it or not. Currently I am contracted to work for this company for 18 months. but it is likely that I'll be hired full time by the end. I am leaning towards finding a new position for several reason (the team's communication is not done well, are scrum master makes everyone do the scrum daily ceremony instead of himself, our product managers are refusing to listen to coders about how issues need to be resolved etc.) I know these thing will be found everywhere, but something new has started.\n\nThe company has stopped dropping team responsible for testing and IT management, and is asking us to pick up their responsibilities. I am more concerned about the IT issues because we are essentially going to be our L1 and L2 support desk. I wanted to ask if this is something common for other software development jobs. I use to work in IT and hated it, and am worried that this is going to continue to be part of my career.", "comment": "> are scrum master makes everyone do the scrum daily ceremony instead of himself\n\nThat's the correct thing to do. It's the SMs job to coach a team to become self-sufficient and not to call one after the other to speak up in the daily scrum. The daily scrum is a meeting from developers for developers.\n\nYour other points sound annoying though.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoydhu", "question": "I am currently making 89K at my current company. Plus I have a 10% bonus based on individual and company performance. I am also guaranteed a 10% raise per year for the next two years.\n\nToday, I got offered a new job at a different company, 105K, 5K sign on bonus. No guarantee of pay raise or annual bonuses.\n\nShould I take it?", "comment": "What's normal pay for that job in your market with your level of exp?\n\nI would tell them you already make really close to that, and you'd sign today if they upped the offer by 10k.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoydu3", "question": "I have a bidding war going on that I'm ending at 5pm est. I'm at 155k rn lol I was just at 85k doing support tix", "comment": "Good for you. Secure that bag.", "upvote_ratio": 190.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoydu3", "question": "I have a bidding war going on that I'm ending at 5pm est. I'm at 155k rn lol I was just at 85k doing support tix", "comment": "King don\u2019t drop your crown", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoydu3", "question": "I have a bidding war going on that I'm ending at 5pm est. I'm at 155k rn lol I was just at 85k doing support tix", "comment": "Hey OP, how many yoe", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoylu9", "question": "I'm WFH and deciding whether to get a cat. One concern I have is whether they would be too much of a distraction to my work. Obviously it differs with every cat but I want to know someone else's experiences. Thanks in advance.", "comment": "Try having kids lol", "upvote_ratio": 110.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoylu9", "question": "I'm WFH and deciding whether to get a cat. One concern I have is whether they would be too much of a distraction to my work. Obviously it differs with every cat but I want to know someone else's experiences. Thanks in advance.", "comment": "Cats are super low maintenance. I have 4 and never been a problem for wfh.", "upvote_ratio": 70.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoylu9", "question": "I'm WFH and deciding whether to get a cat. One concern I have is whether they would be too much of a distraction to my work. Obviously it differs with every cat but I want to know someone else's experiences. Thanks in advance.", "comment": "Sometimes I forget we even have a cat because that thing will be somewhere in the house hidden for hours at a time.", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "uoyoqq", "question": "As a junior I got my first job about a month and a half ago. It started of great, sure I struggled ofc but I don\u2019t think I did anything wrong or broke anything much.\n\nI don\u2019t have a defined mentor, just someone who helped me onboard the most and who I reach out to the most for questions (mainly cuz they are the most fluent with the tickets I get). \n\nAnyways past 2-3 weeks I\u2019ve felt a weird vibe From them that\u2019s very different from when I first joined. I get the impression they are starting to dislike me. I mean sure I\u2019m shy, sure I came in not knowing there tech stack at all, sure I had less experience than they wanted, but it\u2019s just getting harder. Of the people I\u2019ve talked to on my team, only one seems genuinely friendly and happy to help. Now I\u2019m hesitant to ask him questions cuz i don\u2019t want to have one less person to ask for help from. \n\nAnd to top this off, the person who has a growing disdain with me is the closest one to my manager (who has his own issues)", "comment": "> Anyways past 2-3 weeks I\u2019ve felt a weird vibe From them that\u2019s very different from when I first joined. I get the impression they are starting to dislike me.\n\n\"Dislike\" might be a harsh word. \n\n> I don\u2019t have a defined mentor, just someone who helped me onboard the most and who I reach out to the most for questions (mainly cuz they are the most fluent with the tickets I get).\n\nHow frequently are you asking these questions? There is a point where you might be asking too many questions and you're interfering with the productivity of your mentors. This can cause issues where they might try and distance from you or avoid you - primarily because they have responsibilities too and any time spent helping you is time away from that.\n\nOf course asking questions is fine, but you wanna make sure you don't ask TOO many questions.\n\nMy bet is that you're probably asking too many questions too quickly; make sure you do your due research and diligence about the task at hand. Make sure you're not repeating the same questions over and over again.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "uoyseg", "question": "I'm a pro-choice and used to be pro-life. AMA", "comment": "Same here, what made you switch?", "upvote_ratio": 140.0, "sub": "AMA"} +{"thread_id": "uoyseg", "question": "I'm a pro-choice and used to be pro-life. AMA", "comment": "Are you religious?", "upvote_ratio": 120.0, "sub": "AMA"} +{"thread_id": "uoyseg", "question": "I'm a pro-choice and used to be pro-life. AMA", "comment": "Why is it wrong for people to have choice when they do/don't want kids? Why should everyone follow only one rule", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "uoyso5", "question": "Hey everyone! Let me start by saying that I don't have a lot of experience in Python, because as a self-taught full stack developer, I don't use it that much. But recently, I discovered Google's foobar secret hiring system and I wanted to test my knowledge. Keep in mind, I am 16 y/o with no CS background\n\nI am currently at level 3, second problem:\n\n**Commander Lambda has asked for your help to refine the automatic quantum antimatter fuel injection system for the LAMBCHOP doomsday device. It's a great chance for you to get a closer look at the LAMBCHOP -- and maybe sneak in a bit of sabotage while you're at it -- so you took the job gladly.**\n\n**Quantum antimatter fuel comes in small pellets, which is convenient since the many moving parts of the LAMBCHOP each need to be fed fuel one pellet at a time. However, minions dump pellets in bulk into the fuel intake. You need to figure out the most efficient way to sort and shift the pellets down to a single pellet at a time.**\n\n**The fuel control mechanisms have three operations:**\n\n**Add one fuel pellet**\n\n**Remove one fuel pellet**\n\n**Divide the entire group of fuel pellets by 2 (due to the destructive energy released when a quantum antimatter pellet is cut in half, the safety controls will only allow this to happen if there is an even number of pellets)**\n\n**Write a function called solution(n) which takes a positive integer as a string and returns the minimum number of operations needed to transform the number of pellets to 1. The fuel intake control panel can only display a number up to 309 digits long, so there won't ever be more pellets than you can express in that many digits.**\n\n**For example:**\n\n**solution(4) returns 2: 4 -> 2 -> 1**\n\n**solution(15) returns 5: 15 -> 16 -> 8 -> 4 -> 2 -> 1**\n\nI think I understood the problem fairly well and wrote this solution:\n\n def reduce(n, counter):\n n = int(n)\n if n == 1:\n return counter\n if n % 2 == 0:\n counter += 1\n return reduce(int(n / 2), counter)\n else:\n counter += 1\n return min(reduce(n + 1, counter), reduce(n - 1, counter))\n \n \n def solution(n):\n return reduce(n, 0)\n\nIt passes 6 test cases out of 10 and I have no idea why. You don't need to provide me with the solution but any help would be really appreciated.", "comment": "After a bit of thinking and a few scribbles on paper (read 5 hours of playing with binary) I've realised everyone has made this more difficult than it needs to be. All you need to know to decide between adding or subtracting is if it will make the number divisible by 4. \n\n - You always pick division if n is even\n - optimal path is maximising number of divisions while minimising number of additions and subtractions \n - when n is odd both +1 and -1 will make n even again but only one direction will make n divisible by 4.\n - if n is even and divisible by 4 you can then do at least 2 division operations but, if n is even but not divisible by 4, then n is guaranteed to be odd after 1 division operation.\n - optimal path is when n is odd you should +/- 1 so that n will be divisible by 4, only exception is when n = 3, 3 - 1 = 2 is less operations than (3 + 1) / 2 = 2\n\n\nThis can be coded by doing\n\n def solution(n):\n n = int(n)\n count = 0\n while n > 1:\n if n % 2 == 0:\n n //= 2\n elif n % 4 == 1 or n == 3:\n n -= 1\n else: \n n += 1\n count += 1\n return count", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "uoyso5", "question": "Hey everyone! Let me start by saying that I don't have a lot of experience in Python, because as a self-taught full stack developer, I don't use it that much. But recently, I discovered Google's foobar secret hiring system and I wanted to test my knowledge. Keep in mind, I am 16 y/o with no CS background\n\nI am currently at level 3, second problem:\n\n**Commander Lambda has asked for your help to refine the automatic quantum antimatter fuel injection system for the LAMBCHOP doomsday device. It's a great chance for you to get a closer look at the LAMBCHOP -- and maybe sneak in a bit of sabotage while you're at it -- so you took the job gladly.**\n\n**Quantum antimatter fuel comes in small pellets, which is convenient since the many moving parts of the LAMBCHOP each need to be fed fuel one pellet at a time. However, minions dump pellets in bulk into the fuel intake. You need to figure out the most efficient way to sort and shift the pellets down to a single pellet at a time.**\n\n**The fuel control mechanisms have three operations:**\n\n**Add one fuel pellet**\n\n**Remove one fuel pellet**\n\n**Divide the entire group of fuel pellets by 2 (due to the destructive energy released when a quantum antimatter pellet is cut in half, the safety controls will only allow this to happen if there is an even number of pellets)**\n\n**Write a function called solution(n) which takes a positive integer as a string and returns the minimum number of operations needed to transform the number of pellets to 1. The fuel intake control panel can only display a number up to 309 digits long, so there won't ever be more pellets than you can express in that many digits.**\n\n**For example:**\n\n**solution(4) returns 2: 4 -> 2 -> 1**\n\n**solution(15) returns 5: 15 -> 16 -> 8 -> 4 -> 2 -> 1**\n\nI think I understood the problem fairly well and wrote this solution:\n\n def reduce(n, counter):\n n = int(n)\n if n == 1:\n return counter\n if n % 2 == 0:\n counter += 1\n return reduce(int(n / 2), counter)\n else:\n counter += 1\n return min(reduce(n + 1, counter), reduce(n - 1, counter))\n \n \n def solution(n):\n return reduce(n, 0)\n\nIt passes 6 test cases out of 10 and I have no idea why. You don't need to provide me with the solution but any help would be really appreciated.", "comment": "If I had to guess it's because you've got an algorithm with an exponential runtime (*i.e.*, O(2^(n))) and you're simply timing out.", "upvote_ratio": 50.0, "sub": "LearnPython"} +{"thread_id": "uoyso5", "question": "Hey everyone! Let me start by saying that I don't have a lot of experience in Python, because as a self-taught full stack developer, I don't use it that much. But recently, I discovered Google's foobar secret hiring system and I wanted to test my knowledge. Keep in mind, I am 16 y/o with no CS background\n\nI am currently at level 3, second problem:\n\n**Commander Lambda has asked for your help to refine the automatic quantum antimatter fuel injection system for the LAMBCHOP doomsday device. It's a great chance for you to get a closer look at the LAMBCHOP -- and maybe sneak in a bit of sabotage while you're at it -- so you took the job gladly.**\n\n**Quantum antimatter fuel comes in small pellets, which is convenient since the many moving parts of the LAMBCHOP each need to be fed fuel one pellet at a time. However, minions dump pellets in bulk into the fuel intake. You need to figure out the most efficient way to sort and shift the pellets down to a single pellet at a time.**\n\n**The fuel control mechanisms have three operations:**\n\n**Add one fuel pellet**\n\n**Remove one fuel pellet**\n\n**Divide the entire group of fuel pellets by 2 (due to the destructive energy released when a quantum antimatter pellet is cut in half, the safety controls will only allow this to happen if there is an even number of pellets)**\n\n**Write a function called solution(n) which takes a positive integer as a string and returns the minimum number of operations needed to transform the number of pellets to 1. The fuel intake control panel can only display a number up to 309 digits long, so there won't ever be more pellets than you can express in that many digits.**\n\n**For example:**\n\n**solution(4) returns 2: 4 -> 2 -> 1**\n\n**solution(15) returns 5: 15 -> 16 -> 8 -> 4 -> 2 -> 1**\n\nI think I understood the problem fairly well and wrote this solution:\n\n def reduce(n, counter):\n n = int(n)\n if n == 1:\n return counter\n if n % 2 == 0:\n counter += 1\n return reduce(int(n / 2), counter)\n else:\n counter += 1\n return min(reduce(n + 1, counter), reduce(n - 1, counter))\n \n \n def solution(n):\n return reduce(n, 0)\n\nIt passes 6 test cases out of 10 and I have no idea why. You don't need to provide me with the solution but any help would be really appreciated.", "comment": "For the failed tests, do you have the inputs + expected vs. actual outputs?", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "uoytx0", "question": "I made a discord bot and want to have it run 24/7 now. Do people get servers and import the files, or use services like heroku? If you get a server do you just run the file from command prompt or do you get an IDE and open it there", "comment": "I have a Raspberry Pi on my desk that runs my always-on scripts.", "upvote_ratio": 1370.0, "sub": "LearnProgramming"} +{"thread_id": "uoytx0", "question": "I made a discord bot and want to have it run 24/7 now. Do people get servers and import the files, or use services like heroku? If you get a server do you just run the file from command prompt or do you get an IDE and open it there", "comment": "For a discord bot, I found that for simple interaction based bots that use slash commands, you can use Vercel functions. Free forever, instant response with no warm up. Can use a free DB like supabase to keep state.\n\nFor other things, a raspberry pi as others suggested.", "upvote_ratio": 270.0, "sub": "LearnProgramming"} +{"thread_id": "uoytx0", "question": "I made a discord bot and want to have it run 24/7 now. Do people get servers and import the files, or use services like heroku? If you get a server do you just run the file from command prompt or do you get an IDE and open it there", "comment": "Look into process managers like pm2.", "upvote_ratio": 240.0, "sub": "LearnProgramming"} +{"thread_id": "uoyywb", "question": "Hey all, I have a bit of an ignorant question for you, so my apologies if this is inappropriate (will delete if so).\n\nMy question: is there ever a time you wouldn't want to use `#pragma once` in a header file? Or maybe asked a better/less negative way, when would be an occasion that you want to include a header file multiple times without `#pragma once`?\n\nI have a surface-level understanding of how the compiler works (preprocessor, translation units, linking, etc.) and the basics, but I know for sure it's not really a great grasp and maybe influences why I would ask this question.\n\nThanks in advance for any input!", "comment": "Headers that are designed to be included twice or more in the same translation unit, are exceedingly rare.\n\nThere is one such in the standard library: `<assert.h>` (and in C++ also `<cassert>` of course).\n\nThat's because the effect of `assert` depends on whether `NDEBUG` was defined the last time `<assert.h>` (or in C++ also `<cassert>`) was included.\n\nI do not recommend using that technique for your own code.\n\nFor modern coding it's just a technical possibility.", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "uoyywb", "question": "Hey all, I have a bit of an ignorant question for you, so my apologies if this is inappropriate (will delete if so).\n\nMy question: is there ever a time you wouldn't want to use `#pragma once` in a header file? Or maybe asked a better/less negative way, when would be an occasion that you want to include a header file multiple times without `#pragma once`?\n\nI have a surface-level understanding of how the compiler works (preprocessor, translation units, linking, etc.) and the basics, but I know for sure it's not really a great grasp and maybe influences why I would ask this question.\n\nThanks in advance for any input!", "comment": "I have a header with pragmas to disable warnings. That header gets included before certain third party headers. After the those includes the warnings get reenabled by a different header without pragma once. I won't pragma once this warning disabler header to allow to include my own headers and the third party headers with disabled warnings in various order.\nHope it's understandable...\n\nRare case and maybe not something you do all the time, but I don't like to flood my code with warnings that I can't fix and drown my own warnings my the noise.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "uoyywb", "question": "Hey all, I have a bit of an ignorant question for you, so my apologies if this is inappropriate (will delete if so).\n\nMy question: is there ever a time you wouldn't want to use `#pragma once` in a header file? Or maybe asked a better/less negative way, when would be an occasion that you want to include a header file multiple times without `#pragma once`?\n\nI have a surface-level understanding of how the compiler works (preprocessor, translation units, linking, etc.) and the basics, but I know for sure it's not really a great grasp and maybe influences why I would ask this question.\n\nThanks in advance for any input!", "comment": "Short answer: No, you always want to use `#pragma once`.\n\nLong answer: *Technically* `#pragma once` is not standard and hence not required to work. Include guards on the other hand are guaranteed to work. However, all major compilers support `#pragma once` since decades so it's basically guaranteed to work everywhere except on maybe some super niche embedded compilers or whatever but if they don't care about `#pragma once` then they most likely don't care about C++ much anyway so no reason to use them in the first place.\n\nAdditionally there are some situations where pragma once can fail if you include files through a symlink via a network or something like that but in reality such a situation screams \"incredibly stupidly organized code base\" and simply does not exist (or if it does then whoever came up with it should rethink their life choices).\n\n> when would be an occasion that you want to include a header file multiple times without #pragma once?\n\n(Almost) Never. If your header doesn't have an include guard (or rather pragma once) then you're (most likely) doing it wrong. Apparently there are some headers in some projects which rely on not being include guarded but those are very special cases and for pretty much all code you're ever going to write not having include guards will be wrong.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "uozb5n", "question": "Same question also applies to assisted suicide in general, not just for people with terminal illnesses. Would you support the legalization of such an action in your state or in the country as a whole? Would you only support euthanasia, but not assisted suicide in general?", "comment": "I worked as a nurse in nursing homes for roughly 8 years. I would 100% support euthanasia. \n\nThe amount of patients we have who are not wanting to live and taking up resources (that we can use to care for other people in need), is insane. \n\nI\u2019ve had patients talk to me about how they are just waiting to die. No family coming to visit them, shitty food, can\u2019t walk, some can\u2019t talk or move, just blinking for yes/no. I\u2019ve had patients ask me to hire sharpshooters to end it for them. \n\nWhy are we keeping people alive who don\u2019t want to me, especially those at the end of the road? Is it more cruel to keep them alive or to help them die?", "upvote_ratio": 3360.0, "sub": "AskAnAmerican"} +{"thread_id": "uozb5n", "question": "Same question also applies to assisted suicide in general, not just for people with terminal illnesses. Would you support the legalization of such an action in your state or in the country as a whole? Would you only support euthanasia, but not assisted suicide in general?", "comment": "Without getting wrapped up in the nuances of \"euthanasia versus assisted suicide\", I support the right to die.\n\nSo long as the person in question made their wishes known in a legal manner while they were of sound mind, they should have the ability to do so through safe, comfortable means.\n\nAs for the why, I've seen what terminal and neuro-degenerative diseases can do to people. No one should be forced to live like that.", "upvote_ratio": 2270.0, "sub": "AskAnAmerican"} +{"thread_id": "uozb5n", "question": "Same question also applies to assisted suicide in general, not just for people with terminal illnesses. Would you support the legalization of such an action in your state or in the country as a whole? Would you only support euthanasia, but not assisted suicide in general?", "comment": "Mixed feelings. On the one hand, freedom. On the other hand, I worry about insurance companies essentially telling people \"we won't pay for that life saving surgery, but we will pay for euthanasia.\" and that troubles me a bit. Like, they already do the first part, but I'm concerned they may start doing that more often. All things being equal though, I think people should be able to choose for themselves rather than having anyone else choose.", "upvote_ratio": 1190.0, "sub": "AskAnAmerican"} +{"thread_id": "uozbwq", "question": "I've got a Java + Spring Boot app that contains microservices that call each other via rest calls. It's becoming really difficult to follow and remember how these services interact. I would like to find (or maybe build) something that can map out these calls so I can easily see what is calling what. Does anything like this exist?", "comment": "I think this is an active research area, and I don\u2019t believe that any canned open-source solutions exist. That said, [Akita Software](https://www.akitasoftware.com/) has a tool designed for this use-case. I don\u2019t know how much it costs, though.", "upvote_ratio": 80.0, "sub": "AskProgramming"} +{"thread_id": "uozbwq", "question": "I've got a Java + Spring Boot app that contains microservices that call each other via rest calls. It's becoming really difficult to follow and remember how these services interact. I would like to find (or maybe build) something that can map out these calls so I can easily see what is calling what. Does anything like this exist?", "comment": "A tool called solution architect :) someone must be drawing them - for planning, for explaining or for understanding", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uozbwq", "question": "I've got a Java + Spring Boot app that contains microservices that call each other via rest calls. It's becoming really difficult to follow and remember how these services interact. I would like to find (or maybe build) something that can map out these calls so I can easily see what is calling what. Does anything like this exist?", "comment": "If you have access to the whole micro service system, I suspect you could probably build it yourself as a medium sized project.\n\nYou would just need to write some middleware for your REST layer that you would install on all your microservices. You would have that middleware record the relevant sender and receiver of all requests that go through it, along with any other metadata you\u2019re interested in (e.g. name of endpoint called, variables passed, status of response), and spit that info off to a new microservice that would process and store all the metadata for your requests in the system and construct a big graph of the entire ecosystem, where each microservice is a node, and each call from one service to an endpoint on another is a directed edge on the graph.\n\nThere are generic graph renderers out there already that you could feed the data into probably.\n\nAlternatively, if your services are all in kubernetes, I think Datadog has a very basic graph representation of the system that it constructs using traces.", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "uozidl", "question": "Would you say discrete mathematics covers almost the entirety of what you do? I mean, is discrete math enough to meet all your coding related math needs?\n\nGenerally speaking, discrete mathematics includes:\n\n1.Sequences and Summations\n\n2. Binary and Bases\n\n3. Sets and Set Operations\n\n4. Congruences\n\n5. Permutations and Combinations\n\n6. Counting Theory\n\n7. Proofs\n\n8. Functions\n\n9. Graph theory\n\n10. Statistics (mean,median,mode, standard deviation and Variance etc)\n\n7. Recurrence Relations\n\nIf not, please tell me what areas of math I should master before I apply for software developer roles?", "comment": "I have never used calculus in 10 years of development. I *once* had to solve a system of linear equations, and the team just handed that problem because they know I have math degree.\n\nStandard application development uses essentially no mathematics. Graph theory *might* come up every once and a while, and you need to do a fair amount of predicate logic in your head to reason about outputs. You can easily be a fully functional software engineer with nothing but high school algebra.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "uozidl", "question": "Would you say discrete mathematics covers almost the entirety of what you do? I mean, is discrete math enough to meet all your coding related math needs?\n\nGenerally speaking, discrete mathematics includes:\n\n1.Sequences and Summations\n\n2. Binary and Bases\n\n3. Sets and Set Operations\n\n4. Congruences\n\n5. Permutations and Combinations\n\n6. Counting Theory\n\n7. Proofs\n\n8. Functions\n\n9. Graph theory\n\n10. Statistics (mean,median,mode, standard deviation and Variance etc)\n\n7. Recurrence Relations\n\nIf not, please tell me what areas of math I should master before I apply for software developer roles?", "comment": "I did some multiplication today.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "uozidl", "question": "Would you say discrete mathematics covers almost the entirety of what you do? I mean, is discrete math enough to meet all your coding related math needs?\n\nGenerally speaking, discrete mathematics includes:\n\n1.Sequences and Summations\n\n2. Binary and Bases\n\n3. Sets and Set Operations\n\n4. Congruences\n\n5. Permutations and Combinations\n\n6. Counting Theory\n\n7. Proofs\n\n8. Functions\n\n9. Graph theory\n\n10. Statistics (mean,median,mode, standard deviation and Variance etc)\n\n7. Recurrence Relations\n\nIf not, please tell me what areas of math I should master before I apply for software developer roles?", "comment": "I have 15 YOE working on embedded systems and I have never used any of the math you listed. The amount of math I use in a given year is on the level of 1+1 = 2.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "uozm3a", "question": "Like did you have to skim the dictionary or buy collections of flashcards or what", "comment": "They are *cards*. Buy a pack of index cards and make up whatever you need.", "upvote_ratio": 250.0, "sub": "AskOldPeople"} +{"thread_id": "uozm3a", "question": "Like did you have to skim the dictionary or buy collections of flashcards or what", "comment": "Or make your own flashcards", "upvote_ratio": 120.0, "sub": "AskOldPeople"} +{"thread_id": "uozm3a", "question": "Like did you have to skim the dictionary or buy collections of flashcards or what", "comment": "Er, flash cards which are actually printed on cards. lol Or textbooks. That's where the name \"card\" came from.", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "uozqz9", "question": "I am new to the programming, and during a recent interview, I was asked about finding one imposter coin from many coins. I answered that we can divide all in two and weight those and by iterations we can finally find the fake coin. Then I was asked how we can scale the same concept but I didn\u2019t had any idea! Do you guys have any idea, what can be the best answer??", "comment": "Sounds like they're asking you to implement binary search and keep searching for the side that has a weight that is off from what it should be.\n\nYou can search through a sample size of quintillions in 60 operations using binary search. In a situation like this it would split the groups in half, keep the group that's off weight, split it in half again, go with the group that's off weight, split it in half, etc all the way until you find the single coin that's off.\n\nYou can test this using a calculator if you'd like and it's also super easy to implement in any coding language. Take a massive number and keep diving it by 2 until you get down to 1 or less. Count the number of times it took to get from say 1 quadrillion to 1 or less by diving by 2. That's how many binary search operations you'd need to do to find that single coin from 1 quadrillion using binary search.", "upvote_ratio": 70.0, "sub": "LearnProgramming"} +{"thread_id": "uozqz9", "question": "I am new to the programming, and during a recent interview, I was asked about finding one imposter coin from many coins. I answered that we can divide all in two and weight those and by iterations we can finally find the fake coin. Then I was asked how we can scale the same concept but I didn\u2019t had any idea! Do you guys have any idea, what can be the best answer??", "comment": "You can actually use 3 piles of coins at a time.\nThen, if the scales balance, you can eliminate both piles with 1 use of the scale.\nThis also helps if you don\u2019t know if the fake coin is heavier or lighter. If they are not balanced, you swap out the heavier side for pile #3 and, if they balance, you know it is a heavier coin. If not, you know it is lighter.", "upvote_ratio": 60.0, "sub": "LearnProgramming"} +{"thread_id": "uozqz9", "question": "I am new to the programming, and during a recent interview, I was asked about finding one imposter coin from many coins. I answered that we can divide all in two and weight those and by iterations we can finally find the fake coin. Then I was asked how we can scale the same concept but I didn\u2019t had any idea! Do you guys have any idea, what can be the best answer??", "comment": "The problem is stated like this, I suppose. There are N coins in a pile that look identical. One of the coins is fake. You have a scale which has two sides: left and right. You can put any number of coins on the left side and any number on the right side. \n\nHere are the rules of scale\n\n* The scale either says the left side is heavier, the right side is heavier, or both are equal.\n* If left scale has X coins and the right scale has Y coins and X > Y, then the left side is always heavier. If Y > X, then the right side is heavier.\n\nLet's assume the fake coin is heavier and the scale is sensitive. So if there were 100 normal coins on the left, and 99 normal coin plus the fake heavy one on the right, then the scale would say the right side is heavier because of the fake coin.\n\nYour solution is to do groups of 2. In the worst case, if you have N coins and say N is even, is you must weigh N/2 times where you get to the fake coin in the very final weighing.\n\nSo, one way to do it is to do roughly \"binary\" search. If N (the total number of coins is even), divide into two stacks of N/2 and weight them. One side has to be heavier, so discard the N/2 that is lighter.\n\nIf the result of N/2 is even, repeat. If it's odd, take one coin off and split remaining coins in 2 as before. Measure the two. If they are the same, then the coin you removed is the fake coin. If they are not even and split the remaining coins based on whether the total size at that point is even or odd.\n\nThis gives you roughly log N weighs as you decrease the number of coins at each step by nearly half.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "uozrdw", "question": "I'm a recent community college grad looking to start my career. I'm seeing a lot of places ask for TCP/IP but with no explanation as to what that means.\n\n\nDo they just mean basics like IP addressing and subnet masks? Or are they full routing network positions?", "comment": "They probably don't know, either. As long as you can troubleshoot network connections, that should qualify you. \n\nBut also, don't base your job choices on everything they put in the description. As long as you can do more than half of it, apply & let them decide whether you're qualified.", "upvote_ratio": 130.0, "sub": "ITCareerQuestions"} +{"thread_id": "uozrdw", "question": "I'm a recent community college grad looking to start my career. I'm seeing a lot of places ask for TCP/IP but with no explanation as to what that means.\n\n\nDo they just mean basics like IP addressing and subnet masks? Or are they full routing network positions?", "comment": "I'd want you to tell me, with confidence, using your own words what all of these mean: \n\nIP Address \nBroadcast Address \nDefault-Gateway \nSubnet-Mask \n\nTCP v/s UDP What are the key differences between these? \n\nWhat application service is usually listening on TCP/80? \n\nWhat is a hosts file and when should it be used? \n*(Caution: That can be used as a trick question.)* \n\nOn a windows client, in a command prompt, if I type the command `route print` what will I see, and why is this important? \n\n\n\n\nFor bonus points or extra-credit: \n\nA router has two routes: \n\n10.10.10.0/24 with next-hop of 192.168.4.4 \n10.10.10.8/32 with a next-hop of 192.168.8.8 \n\nA packet enters the router destined for 10.10.10.10. Which router will be it's next-hop? \nA packet enters the router destined for 10.10.10.8. Which router will be it's next-hop? \n\nWhy?", "upvote_ratio": 60.0, "sub": "ITCareerQuestions"} +{"thread_id": "uozrg6", "question": "Where are some sources that you suggest?", "comment": "UK has said they would help defend Finland or Sweden in event they are attacked before NATO membership is finalized. Finland and Sweden are also members of the EU, which has security assurances. Russia would be declaring war on Europe, if they attacked Finland. US has no obligations in this context, but would probably offer material support as they have for Ukraine.", "upvote_ratio": 230.0, "sub": "ask"} +{"thread_id": "uozrg6", "question": "Where are some sources that you suggest?", "comment": "Finland kicked their asses the last time that happened.", "upvote_ratio": 140.0, "sub": "ask"} +{"thread_id": "uozrg6", "question": "Where are some sources that you suggest?", "comment": "Finland is being fast tracked in, as we speak (type)", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "uoztr4", "question": "People who've divorced, aside from adultery, what were the irreconcilable differences that ended the marriage?", "comment": "She told me as we stood in front of the judge ending our 7 year marriage, \"I never loved you, I just wanted kids.\"", "upvote_ratio": 3960.0, "sub": "AskReddit"} +{"thread_id": "uoztr4", "question": "People who've divorced, aside from adultery, what were the irreconcilable differences that ended the marriage?", "comment": "He could not understand that my wants and needs were as important as his wants and needs. We tried to make it work for 7 years. During that time, for things that were really important to me, I tried explaining logically, asking nicely, begging, crying, yelling, passive aggressiveness... cycled back through all of these options multiple times. (If I knew something was important to him, I would do that. For example, he was really into sports, so I went to all his events, even though that is not at all my thing.) \n\nWhen I finally threw up my hands and told him it was time to get a divorce, he suddenly panicked and said \"What can I do? Do you want me to do half the chores? I'll do it! Do you want me to get a job? I'll do it! Do you want me to buy you presents for your birthday? I'll do it!\" So, in other words, he could have been doing that all along, but just couldn't be bothered. That made me so angry. We could have had a nice marriage that we both enjoyed, but no, by the time he saw the light, that ship had sailed. \n\nWe are both happily remarried now (to different people) and I joke that his new wife owes me a thank you note. It was his experience with me that taught him to listen to her and take her needs seriously.", "upvote_ratio": 3850.0, "sub": "AskReddit"} +{"thread_id": "uoztr4", "question": "People who've divorced, aside from adultery, what were the irreconcilable differences that ended the marriage?", "comment": "ITT: Intimacy (sex/romance), beliefs (religion/spirituality/politics), kids, and I haven\u2019t seen it yet but it\u2019s coming: finances.\n\nThe big four. You REALLY need to discuss these things in detail BEFORE getting married.", "upvote_ratio": 2890.0, "sub": "AskReddit"} +{"thread_id": "uozzux", "question": "Every time I see a new language pops out they mention it's a C-family language. Aren't they all at this point?", "comment": "> Aren't they all at this point?\n\nno. python's indentation rules are becoming more popular. there's always new lisps popping up. the ML (Meta Language) languages are having a greater influence. rust, for example, is actually closer to ML than it is to C.", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "up0avy", "question": "Hello Guys,\n\nI hope you all are doing great out there and killing it in real world with your hard work.\n\nI am 28M IT service desk analyst who wants to become a system/ cloud engineer.\n\nMy qualification is Graduate diploma in computing.\n\nCurrent certifications I hold- ITIlV4, Security +, AZ-900, AZ-104, MS-900 & Sc-900.\n\nWhat should I do next in order to become a system/cloud engineer? Should I go for RHCSA? I have no background knowledge in linux. \n\nPlease tell me what all I need to learn in order to become a cloud engineer.\n\nI am a bit lost and need your help, tips, guidance and support.\n\nReally appreciate your time and help. \n\nGod bless you.", "comment": "Learn automation. Teach yourself IaC, and scripting. Most Cloud engineering jobs all move away from point and click systems, so you'll need to be able to work mainly with code.", "upvote_ratio": 70.0, "sub": "ITCareerQuestions"} +{"thread_id": "up0avy", "question": "Hello Guys,\n\nI hope you all are doing great out there and killing it in real world with your hard work.\n\nI am 28M IT service desk analyst who wants to become a system/ cloud engineer.\n\nMy qualification is Graduate diploma in computing.\n\nCurrent certifications I hold- ITIlV4, Security +, AZ-900, AZ-104, MS-900 & Sc-900.\n\nWhat should I do next in order to become a system/cloud engineer? Should I go for RHCSA? I have no background knowledge in linux. \n\nPlease tell me what all I need to learn in order to become a cloud engineer.\n\nI am a bit lost and need your help, tips, guidance and support.\n\nReally appreciate your time and help. \n\nGod bless you.", "comment": "How strong are your Powershell skills? You seem to be on the Microsoft track so it would be a good idea to strengthen yourself there and maybe add on Active Directory knowledge which would give you an edge in Microsoft shops.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "up0avy", "question": "Hello Guys,\n\nI hope you all are doing great out there and killing it in real world with your hard work.\n\nI am 28M IT service desk analyst who wants to become a system/ cloud engineer.\n\nMy qualification is Graduate diploma in computing.\n\nCurrent certifications I hold- ITIlV4, Security +, AZ-900, AZ-104, MS-900 & Sc-900.\n\nWhat should I do next in order to become a system/cloud engineer? Should I go for RHCSA? I have no background knowledge in linux. \n\nPlease tell me what all I need to learn in order to become a cloud engineer.\n\nI am a bit lost and need your help, tips, guidance and support.\n\nReally appreciate your time and help. \n\nGod bless you.", "comment": "Recently found a pretty cool site by a Microsoft MVP while messing around on YouTube. Check out: \n\n[learn to cloud.guide](http://learntocloud.guide)\n\nShe does a legit breakdown of what being a (MS) cloud engineer entails. \n\nBasically you need to know:\n\n* Networking\n\n* Linux\n\n* Cloud\n\n* DevOps (for config mgmt and IaC)\n\nAnyway check out her site\u2026 it\u2019s pretty good!", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "up0c2w", "question": "29 male, I had an inner ear infection late last year that I went to doctor for, they prescribed me antibiotics after reviewing and once I finished the pain in my ear went away.\n\nI noticed some time after my hearing getting worst in my left compared to my right. I didn\u2019t think too much of it at first but then it became super noticeable. Laying on my right ear to sleep I couldn\u2019t hear my fianc\u00e9e next to me what she was saying clearly.\n\nI suspected impacted ear wax and tried flushing out my ear to no luck.\n\nI lazily put it off, until I noticed when \u201ccleaning\u201d my ears with qtip that I had dry and wet blood in my ear.\n\nI finally got a full on ear wax removal kit off Amazon and did that today after doing the 3 days of ear spray to soften the ear wax.\n\nI ended up scooping this fucking thing out of my ear; https://imgur.com/a/3Yh2ns7\n\nFirst off wtf is this and what do I need to do now?\n\nThank you!", "comment": "It looks like a big chunk of impacted wax. But the blood is unusual. If youxre having pain, go to urgent care, if no pain, make an appintment with your doc to have them look in there and see what's going on.", "upvote_ratio": 6490.0, "sub": "AskDocs"} +{"thread_id": "up0c2w", "question": "29 male, I had an inner ear infection late last year that I went to doctor for, they prescribed me antibiotics after reviewing and once I finished the pain in my ear went away.\n\nI noticed some time after my hearing getting worst in my left compared to my right. I didn\u2019t think too much of it at first but then it became super noticeable. Laying on my right ear to sleep I couldn\u2019t hear my fianc\u00e9e next to me what she was saying clearly.\n\nI suspected impacted ear wax and tried flushing out my ear to no luck.\n\nI lazily put it off, until I noticed when \u201ccleaning\u201d my ears with qtip that I had dry and wet blood in my ear.\n\nI finally got a full on ear wax removal kit off Amazon and did that today after doing the 3 days of ear spray to soften the ear wax.\n\nI ended up scooping this fucking thing out of my ear; https://imgur.com/a/3Yh2ns7\n\nFirst off wtf is this and what do I need to do now?\n\nThank you!", "comment": "Kinda looks like a blood clot. Had you been picking at/putting stuff in your ears?", "upvote_ratio": 1490.0, "sub": "AskDocs"} +{"thread_id": "up0c2w", "question": "29 male, I had an inner ear infection late last year that I went to doctor for, they prescribed me antibiotics after reviewing and once I finished the pain in my ear went away.\n\nI noticed some time after my hearing getting worst in my left compared to my right. I didn\u2019t think too much of it at first but then it became super noticeable. Laying on my right ear to sleep I couldn\u2019t hear my fianc\u00e9e next to me what she was saying clearly.\n\nI suspected impacted ear wax and tried flushing out my ear to no luck.\n\nI lazily put it off, until I noticed when \u201ccleaning\u201d my ears with qtip that I had dry and wet blood in my ear.\n\nI finally got a full on ear wax removal kit off Amazon and did that today after doing the 3 days of ear spray to soften the ear wax.\n\nI ended up scooping this fucking thing out of my ear; https://imgur.com/a/3Yh2ns7\n\nFirst off wtf is this and what do I need to do now?\n\nThank you!", "comment": "Pretty cool tbh\n\nI wouldn\u2019t worry too much unless your ear gets worse. Gotta stop picking at your ears with shit.", "upvote_ratio": 650.0, "sub": "AskDocs"} +{"thread_id": "up0c7k", "question": "I am a sophomore and I have a chance of skipping an assembly programming course which is normally compulsory for us. This will save me time and money. I plan to go in AI or ML in the future. Should I do this?", "comment": "Assembly language is great for developing attention to detail and developing a better sense of how the computer actually works. So many programming mistakes are careless errors that become hard to find bugs later on.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "up0cpp", "question": "Why do people always ask where we go after death but no one ever asks where we were before we were born?", "comment": "Many religions and claims regarding the afterlife do take a view on our existence prior to birth. But people mostly care about the afterlife, because it will happen to them in the future. That is far more of a concern than a previous experience that they can't remember.", "upvote_ratio": 5150.0, "sub": "NoStupidQuestions"} +{"thread_id": "up0cpp", "question": "Why do people always ask where we go after death but no one ever asks where we were before we were born?", "comment": "I'm assuming you do not have young children. My 4 year old will not stop asking where he was before he was born. Or why he didn't see me when I was a child!", "upvote_ratio": 3440.0, "sub": "NoStupidQuestions"} +{"thread_id": "up0cpp", "question": "Why do people always ask where we go after death but no one ever asks where we were before we were born?", "comment": "We have been dead far longer than we have been alive. Death is not an ending, but a return.", "upvote_ratio": 870.0, "sub": "NoStupidQuestions"} +{"thread_id": "up0ee7", "question": "I've been intrigued in the tech industry after spending much of my downtime at my current desk job looking at different career paths. My job is a safe desk job but I can't let myself get stuck here forever. I was fortunate enough to get a decent entry-level position where a bachelor's is typically a requirement, but I'm itching to pivot into an industry that's constantly changing, challenging my skills, and highly mobile. \n\nI simply don't know where to start that would put me in a good position to leap into the field. I have some business credits at a 4yr university and 2yr community college, but that is all I have to show for education. I'm 24 years young with no major financial responsibilities. \n\nShould I just go back and finish the 2yr degree (my local CC has an associate CS degree) and start applying? Get the bachelors in CS at around 28? Or screw the degrees and learn the skills and do some projects in my spare time? \n\nI have no idea where to start but I am open to any and all suggestions or recommendations.", "comment": "You should definitely go for the degree. We are heading into a major recession right now and entry level jobs are going to be hard to come by. If you do the degree and really hone your skill you would be coming out in four years right when the market is set to pick up again (assuming Biden isn't re-elected).", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "up0fgq", "question": "I am learning about working with NumPy arrays, and I've written the below code to allow me to replace each instance of 0 with a 9 in a 2 dimensional NumPy array. The code works, but it feels hacky to me - is there a more efficient or more pythonic way of accomplishing this?\n\n x_count = -1\n y_count = -1\n \n for i in array:\n for j in i:\n if array[x_count][y_count] == 0:\n array[x_count][y_count] = 9\n y_count += 1\n y_count = -1\n x_count += 1", "comment": "You're not looking for the most pythonic way, you're looking for the actual way to do it with numpy :)\n\nIf you're looping over all your values in numpy, there's a good chance it can be done another way.\n\nHere is the code for your question\n\n```python\nimport numpy as np\n\n# Create a 100x100 2d array\nX = np.random.randint(0,10, (100,100))\n\n# [EDIT from ES-Alexander's comment]\n# [CORRECT ANSWER]\n# Replace all values of 0 by 9\n# X[condition] = result_if_true\nX[X==0] = 9\n\n[Alternative]\n# Replace all values of 0 by 9\n# use np.where(condition, result_if_true, result_else)\nY = np.where(X == 0, 9, X)\n\n```\n\nI'll add that more often than not to change stuff:\n1. you get the group of stuff you need to change\n2. you apply that change to that group\n\nYou don't loop over everything to check and change it individually.\n\nLoops are great, I mean, your thing could be done with arrays too:\n```python\n# your numpy array\nX = np.random.randint(0,10, (100,100))\n# your pythony hacky solution\nY = [[ xi if xi != 0 else 9 for xi in x] for x in X]\n```\n\nTBH idk what's more pythonic, learning the proper way to do things with libraries or just hacking in python with set comprehensions (single line loops)", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "up0g27", "question": "In the past people were buried with the items they would need in the afterlife, what would you want buried with you so you could use it in the afterlife?", "comment": "my glasses! also three tennis balls so i could finally learn to juggle", "upvote_ratio": 70.0, "sub": "ask"} +{"thread_id": "up0g27", "question": "In the past people were buried with the items they would need in the afterlife, what would you want buried with you so you could use it in the afterlife?", "comment": "1UP but before I was actually buried.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "up0g60", "question": "TDLR, my sister let a scammer install teamviewer on her pc and phone. I\u2019ve only ever been ios, so I have no idea how much of a security risk the phone version is. Do I need to wipe it for her or is she good to go?\n\nThanks.", "comment": "Teamviewer is a tool that allows for remote desktop management, and so it can be used by malicious actors. It's like giving your house keys to some random stranger. Can the keys be held responsible if the house gets robbed?", "upvote_ratio": 60.0, "sub": "AndroidQuestions"} +{"thread_id": "up0g60", "question": "TDLR, my sister let a scammer install teamviewer on her pc and phone. I\u2019ve only ever been ios, so I have no idea how much of a security risk the phone version is. Do I need to wipe it for her or is she good to go?\n\nThanks.", "comment": "Plenty of legitimate businesses use TeamViewer too - we're one of them. But if you're 100% sure that the person/company is a scammer, then I'd recommend deleting it and wiping each device", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "up0hst", "question": "What is the most interesting statistic you know?", "comment": "My favorite statistic, as a left-handed person myself, is that southpaws die, on average, 13 years younger than right-handed people. I had always heard this attributed to the fact that power tools are generally designed for right-handed users, making many of them awkward and dangerous for left-handed people.\r \n\r \nBut the real explanation is far more interesting. See, until the middle of the 20th century, being left-handed was heavily stigmatized, and often viewed as a sign of the devil. Teachers would not allow their left-handed students to actually use their dominant hand. This actually proved to be somewhat effective.\r \n\r \nSo as left-handedness became more accepted, lefty children were no longer forced to use their right hand, but older people who were naturally left-handed but forced to use their right hand continued to identify as right-handed. Because of this, the average age of self-described left-handed people was significantly lower than it would be if not for the previous generation being forced into right-handedness. And when the average age of a group of people is lower, the average age of death tends to follow suit.", "upvote_ratio": 3340.0, "sub": "AskReddit"} +{"thread_id": "up0hst", "question": "What is the most interesting statistic you know?", "comment": "Racing car drivers in the 1950s, 1960s and even into the 1970s had a *lower survival rate* than WWII fighter pilots. Meaning those racing drivers were statistically more likely to die than those flying in battle. Crazy.", "upvote_ratio": 3180.0, "sub": "AskReddit"} +{"thread_id": "up0hst", "question": "What is the most interesting statistic you know?", "comment": "That\u2019s the US has 5% of the worlds population but consumes 70% of the worlds prescription drugs.\n\nWe are the society of \u201cif you have a problem, there\u2019s a pill that can fix it\u201d.", "upvote_ratio": 1700.0, "sub": "AskReddit"} +{"thread_id": "up0qcg", "question": "When you buy it on the mart.", "comment": "This is not a 100% standard. \nBreed, age, and other factors will play into this. \n\nCostco's (a major nationwide grocer) rotisserie chickens typically weigh about 3 pounds.", "upvote_ratio": 870.0, "sub": "AskAnAmerican"} +{"thread_id": "up0qcg", "question": "When you buy it on the mart.", "comment": "Laden or unladen?", "upvote_ratio": 390.0, "sub": "AskAnAmerican"} +{"thread_id": "up0qcg", "question": "When you buy it on the mart.", "comment": "Tbh I\u2019ve never weighed a chicken. I\u2019m sure the factory chickens that sell at Walmart are fucking huge and probably way bigger than other countries, but your average ol yard bird is probably the same. Right??", "upvote_ratio": 260.0, "sub": "AskAnAmerican"} +{"thread_id": "up0qoc", "question": "To Keep it concise i want to be a leader of my generation and guide people to freedom but I can\u2019t even help myself. Would like to know and obstacles any experienced elders had to overcome and how they managed. Thank you!", "comment": "Don't worry about being a leader to an entire generation. The world would do well with less \"leaders\", and more people simply focusing on being honest, compassionate, empathetic human beings. Heal thy self, physician. Lead by example. Even if there's no one that follows, the world will have one more good person in it, and you'll live a happier life...", "upvote_ratio": 210.0, "sub": "AskOldPeople"} +{"thread_id": "up0qoc", "question": "To Keep it concise i want to be a leader of my generation and guide people to freedom but I can\u2019t even help myself. Would like to know and obstacles any experienced elders had to overcome and how they managed. Thank you!", "comment": ">To Keep it concise i want to be a leader of my generation and guide people to freedom\n\nAre you freaking kidding me?\n\nI can't believe that this is a serious post. But just in case - \n\nWhat are your core values? What do you believe in?", "upvote_ratio": 90.0, "sub": "AskOldPeople"} +{"thread_id": "up0qoc", "question": "To Keep it concise i want to be a leader of my generation and guide people to freedom but I can\u2019t even help myself. Would like to know and obstacles any experienced elders had to overcome and how they managed. Thank you!", "comment": "I'll give you a tip a lot of leaders overlook... There are two kinds of respect, demanded and earned. The first is worthless and the second is priceless.\n\nHere is another tip.. regardless of how many people you know are following you are always leading by example. A lot of parents miss this one and have this attitude like, \"I shall reshape the thing I made into what I wish I made.\" That's a hard fail.", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "up0sx5", "question": "As the title says, I need help with finding the greatest number in a binary tree. In some way, the code doesn't make comparisons with all nodes, but I can't get the code to run on all nodes. Could you help me please?\n\nMy code: [https://pastebin.com/K9yZRf2m](https://pastebin.com/K9yZRf2m)", "comment": "Your link requires a (maybe your) mooc.fi account, so we can't see it. Please use github or pastebin or just post your code here. \n\nHowever a normal binary tree is sorted, so the greatest number would just mean getting the right node until you run out of nodes. Simple loop.", "upvote_ratio": 50.0, "sub": "LearnPython"} +{"thread_id": "up0wip", "question": "I started learning c++ about a month ago for college and is stuck on a project right now. Basically I need a program that capitalize the first letter of the string. Thank you", "comment": "> I need a program\n\nYour teacher is expecting you to write it. What are you having trouble with?", "upvote_ratio": 60.0, "sub": "cpp_questions"} +{"thread_id": "up10ad", "question": "Well, it makes me feel better having only the A+ at my helpdesk job", "comment": " Certs are nice, but experience is king.", "upvote_ratio": 1070.0, "sub": "ITCareerQuestions"} +{"thread_id": "up10ad", "question": "Well, it makes me feel better having only the A+ at my helpdesk job", "comment": "Senior DevOps Engineer, no certs", "upvote_ratio": 300.0, "sub": "ITCareerQuestions"} +{"thread_id": "up10ad", "question": "Well, it makes me feel better having only the A+ at my helpdesk job", "comment": "Kevin has been in helpdesk for a while before he went to sysadmin. Once you get to mid level certs arent really required. Even at entry level if your helpdesk job teaches you alot of light sysadmin work and automation", "upvote_ratio": 140.0, "sub": "ITCareerQuestions"} +{"thread_id": "up1coh", "question": "For more context... I'm trying writing some code to make a polyphonic synthesiser and doing the note on, note off parts. \n\nI have this for loop...\n\nfor (int = 0; i <timeStamp.size()-1;i++)\n\nI had to add that -1 after vector.size() to solve this problem I was having below...\n\nI have the time stamps of note ons and note offs as vector elements. And need to subtract the note off time stamp from the note on to get the time duration. So I wrote it like this.\n\ntimeStamp[i+1] - timeStamp[i]\n\nAnd it came up with an error because the [i+1] made it count past the total number of array elements eventually. So I fixed in the for loop with the timeStamp.size()-1, to prevent that happening. \n\nBut now I need to add an extra element to the end of the vector that won't be used . And make all new note on note off timestamps pushback to just before that last element, to make this bandaid solution work. And I'm stumped on that one.\n\n(I'm a first year audio technology student btw)", "comment": "* You could use `insert(v.end() - 1, ...`.\n* You could do `i + 1 < size ? times[i + 1] : duration` instead.\n* Don't subtract from `size` without checking it's non-zero. You could instead start the loop at `1`.", "upvote_ratio": 50.0, "sub": "cpp_questions"} +{"thread_id": "up1geo", "question": "[https://pastebin.com/C5H0UbT0](https://pastebin.com/C5H0UbT0)\n\nI want this to be faster.\n\nCan you pls make ot faster or write it in c or c++?", "comment": "...But *why*?", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "up1geo", "question": "[https://pastebin.com/C5H0UbT0](https://pastebin.com/C5H0UbT0)\n\nI want this to be faster.\n\nCan you pls make ot faster or write it in c or c++?", "comment": "Not really, no. The majority of the time is going to be taken up by the `print` statements because writing to standard output, while fast, is many times slower than everything else the code is doing.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "up1n1o", "question": "I'm confused why I occasionally see people posting about apps on apkmirror (or another apk outside of Google) when the app is already on Google play? \n\nI thought perhaps it has to do with app updates, but every app I checked was running the same version as the one I already had from Google play\n\nIs there some benefit to downloading apks outside of Google? \n\n-Pixel 6 pro", "comment": "Can be for a variety of reasons\n\n1-Some apps may update/release earlier in some regions so other users would need to wait for an update, so getting the APK directly is an option (that's usually the main one)\n\n2-Unavailability, some apps may choose to display themselves as not compatible with a device for arbitrary reasons (when installing the app externally works just fine)\n\n3-Some people choose to remove Google services from their devices (or don't have them in case of Huawei devices) so they'd need to download apps somewhere else \n\n4-Rare but sometimes the Play Store just decides to hang at pending when downloading apps/updates so having a fallback from where to obtain said updates is welcome", "upvote_ratio": 120.0, "sub": "AndroidQuestions"} +{"thread_id": "up1nru", "question": "I went to the gas station and gave the lady 4$ and told her to put it on the pump. when i got to the pump i realized she had accidentally put 40$ im dead broke so i just pumped it and left. will they take it out of her paycheck? i just realized this as a possibility", "comment": "So one time i was in a rush i accidentslly filled up and forgot to pay. Thought i paid with my card.\n\nA few weeks later i got a letter in the mail by the police very kindly asking that i return to the gas station to pay the amount. The letter just said many times its a mistake and you can return to pay it.", "upvote_ratio": 39060.0, "sub": "NoStupidQuestions"} +{"thread_id": "up1nru", "question": "I went to the gas station and gave the lady 4$ and told her to put it on the pump. when i got to the pump i realized she had accidentally put 40$ im dead broke so i just pumped it and left. will they take it out of her paycheck? i just realized this as a possibility", "comment": "I worked at 7-11 for 3 years, and fucked up a lot of things in that time. I never had to pay for any of it because I didn't do it intentionally.", "upvote_ratio": 26760.0, "sub": "NoStupidQuestions"} +{"thread_id": "up1nru", "question": "I went to the gas station and gave the lady 4$ and told her to put it on the pump. when i got to the pump i realized she had accidentally put 40$ im dead broke so i just pumped it and left. will they take it out of her paycheck? i just realized this as a possibility", "comment": "Cashier lady might get in trouble yes.", "upvote_ratio": 15070.0, "sub": "NoStupidQuestions"} +{"thread_id": "up1nvn", "question": "Hi, today my dentist said that I need all my teeth removed and replaced with full dentures due to them being \"too far gone\". I'm not the best for oral hygiene but I've been working on it, brushing everyday since about a month ago. Last year he said that I just needed two fillings and now they're \"too far gone\"? I don't buy it, I haven't lost any teeth, my teeth aren't even that yellow let alone rotten in color, and my gingivitis (which has went away since brushing) wasn't even close to severe. Just last month when I had my checkup I was told I just need a few fillings and a root canal and they're now claiming my teeth are completely rotten. What is going on? \n\n16M\n5ft 9in\n250 lbs\nI take Adderall daily\nNo previous or current medical issues\nMonth long issue", "comment": "Get a second opinion from another dentist for sure..", "upvote_ratio": 7360.0, "sub": "AskDocs"} +{"thread_id": "up1nvn", "question": "Hi, today my dentist said that I need all my teeth removed and replaced with full dentures due to them being \"too far gone\". I'm not the best for oral hygiene but I've been working on it, brushing everyday since about a month ago. Last year he said that I just needed two fillings and now they're \"too far gone\"? I don't buy it, I haven't lost any teeth, my teeth aren't even that yellow let alone rotten in color, and my gingivitis (which has went away since brushing) wasn't even close to severe. Just last month when I had my checkup I was told I just need a few fillings and a root canal and they're now claiming my teeth are completely rotten. What is going on? \n\n16M\n5ft 9in\n250 lbs\nI take Adderall daily\nNo previous or current medical issues\nMonth long issue", "comment": "\nI would be amazed at how unethical that would be to suggest you need full dentures if your teeth arent pretty messed up but I think with something as serious as getting all your teeth pulled and committing to dentures at the age of 16 you absolutely should get a second opinion before making any decisions", "upvote_ratio": 2170.0, "sub": "AskDocs"} +{"thread_id": "up1nvn", "question": "Hi, today my dentist said that I need all my teeth removed and replaced with full dentures due to them being \"too far gone\". I'm not the best for oral hygiene but I've been working on it, brushing everyday since about a month ago. Last year he said that I just needed two fillings and now they're \"too far gone\"? I don't buy it, I haven't lost any teeth, my teeth aren't even that yellow let alone rotten in color, and my gingivitis (which has went away since brushing) wasn't even close to severe. Just last month when I had my checkup I was told I just need a few fillings and a root canal and they're now claiming my teeth are completely rotten. What is going on? \n\n16M\n5ft 9in\n250 lbs\nI take Adderall daily\nNo previous or current medical issues\nMonth long issue", "comment": "Dentist here. Very rare to have full mouth extractions at your age. If extractions are warranted, it may be due to a genetic condition causing extreme loss of enamel and/or dentin. These conditions (amelogenesis imperfect and dentinogenesis imperfecta respectively) don't usually require full mouth extractions either, just an example of what MAY cause a dentist to jump the gun and state this. You would have likely been diagnosed with one of these conditions already in your lifetime. \n\nFeel free to to PM me with any questions. Not sure where you're located either but I'm guessing somewhere in the U.S.", "upvote_ratio": 930.0, "sub": "AskDocs"} +{"thread_id": "up1osf", "question": "its 1AM, can't sleep and browsing NSFW subs didn't help. Now im horny and can't sleep. AMA", "comment": "It's orgasm time!\nThe cocktail of hormones released will help your brain with sleeping.\n\nSo my question is: have you found \"the lucky one\" pic/gif/vid for tonight handjob?", "upvote_ratio": 50.0, "sub": "AMA"} +{"thread_id": "up1rgi", "question": "Drop your name below and I will tell you what you taste like. \ud83d\ude02", "comment": "Allie :)", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up1rgi", "question": "Drop your name below and I will tell you what you taste like. \ud83d\ude02", "comment": "Does tasting people's names help you remember them?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up1rgi", "question": "Drop your name below and I will tell you what you taste like. \ud83d\ude02", "comment": "Eva!", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up1uw7", "question": "If you want to humble brag or 'low key flex' about TC go to Blind. \n\n&#x200B;\n\nI'm talking about the cringy \"should I leave my terrible 50k job for BigN/Unicorn at 250k?\" - stfu, that's a 110% yes and you already know your gonna take the offer - its just an awkward flex. Also the faux poor posts - if you make >200k it doesn't matter what city you live in - I highly doubt you can't afford basic necessities after buying a Tesla.\n\nOr just make a daily 'Daily Thread' for said posts like with BigN. ", "comment": "So I got an offer from Google for $700k a year but I\u2019m not sure if it will fulfill me spiritually.And my Victoria Secret model wife also says it\u2019s a bad idea.\n\nWhat do you guys think I should do?", "upvote_ratio": 9910.0, "sub": "CSCareerQuestions"} +{"thread_id": "up1uw7", "question": "If you want to humble brag or 'low key flex' about TC go to Blind. \n\n&#x200B;\n\nI'm talking about the cringy \"should I leave my terrible 50k job for BigN/Unicorn at 250k?\" - stfu, that's a 110% yes and you already know your gonna take the offer - its just an awkward flex. Also the faux poor posts - if you make >200k it doesn't matter what city you live in - I highly doubt you can't afford basic necessities after buying a Tesla.\n\nOr just make a daily 'Daily Thread' for said posts like with BigN. ", "comment": "The US stole my superyacht claiming I am tied to vladimir putin. Should I slum it and take a $1m/year job at Google?", "upvote_ratio": 5380.0, "sub": "CSCareerQuestions"} +{"thread_id": "up1uw7", "question": "If you want to humble brag or 'low key flex' about TC go to Blind. \n\n&#x200B;\n\nI'm talking about the cringy \"should I leave my terrible 50k job for BigN/Unicorn at 250k?\" - stfu, that's a 110% yes and you already know your gonna take the offer - its just an awkward flex. Also the faux poor posts - if you make >200k it doesn't matter what city you live in - I highly doubt you can't afford basic necessities after buying a Tesla.\n\nOr just make a daily 'Daily Thread' for said posts like with BigN. ", "comment": "Hey guys, I did 1 hour of coding boot camp on udemy, just got an offer at a big faang for 550k a year plus 200k in stock options with a 50k sign on bonus. They said its fully remote and will buy a house for my any where in the world I want to go. Should I take that or continue the soul sucking shit hole career that is nursing?", "upvote_ratio": 4640.0, "sub": "CSCareerQuestions"} +{"thread_id": "up22ei", "question": "During the Atlantic Slave Trade, were there any African nations that had the military capacity to harass/disrupt European slavers and slave ships?", "comment": "Probably the most famous example of an African leader who disrupted the slave trade was Queen Nzinga of Ndongo, who found success in her efforts against the Portuguese in the early-mid seventeenth century, though this question misses one of the key themes in the history of the Atlantic slave trade, which is that it was largely the result of cooperation between African merchants and states on the coast and European traders. Europeans generally did not penetrate into the African interior prior to the nineteenth century: most Europeans who went to Africa went as sailors and ship captains, who usually acted as merchants, to purchase enslaved people from African merchants, as well as other trade goods, such as ivory and gold. In exchange, they often traded European textiles, rum, and especially muskets and ammunition. They operated from small fortified posts often referred to as factories (\"factor\" was not an uncommon term for merchant in the Early Modern Era). Merchants in cities such as Lagos (in present-day Nigeria) worked with soldiers or states inland to purchase slaves, who were either taken in war or simply outright kidnapped. Olaudah Equiano, described his enslavement as starting during a day when the adults of his Igbo village went to work in the fields for the day, and a couple of strangers hopped a wall and put him and his sister in sacks, and carried them off. He described being brought to various places, closer and closer to the coast, until eventually his enslavers sold him to Europeans, who took him on shipboard and the infamous Middle Passage. A lot of African polities in or near the slave trade did not have a real motivation to disrupt it, unless it was to get better terms for themselves, because Europeans were not the people who usually did the initial kidnapping and human trafficking necessary to bring people into the Atlantic Slave Trade.\n\nSources:\n\nOlaudah Equiano, *The Interesting Narrative of the Life of Olaudah Equiano, Or Gustavus Vassa, The African*, 1789. \nKathleen Brown, *Good Wives, Nasty Wenches, and Anxious Patriarchs: Gender, Race, and Power in Colonial Virginia* (Chapel Hill: University of North Carolina Press, 1996)\n\nLinda Heywood and John K. Thornton, *Central Africans, Atlantic Creoles, and the Foundation of the Americas, 1585-1660* (New York: Cambridge University Press, 2007). \n\nMarkus Rediker, *The Slave Ship: A Human History* (New York: Penguin Press, 2007).", "upvote_ratio": 4570.0, "sub": "AskHistorians"} +{"thread_id": "up22ei", "question": "During the Atlantic Slave Trade, were there any African nations that had the military capacity to harass/disrupt European slavers and slave ships?", "comment": "During the main period of the Atlantic slave trade, the late seventeenth and the eighteenth century, most African states had the capacity to disrupt the slave trade, at least within their own territories. If we take the \"Gold\" and \"Slave\" coasts in West Africa, there are numerous examples of the Dutch, English and Danish forts and trading posts being blockaded, the roads closed for trade, even taken over - more often in the case of trading posts (\"factories\"), which were also frequently destroyed. \n\nIn fact the European presence and trade in enslaved people was heavily dependent on the cooperation and permission of local communities and rulers. Initially those along the coastline, such as the Fante and G\u00e3, in the eighteenth century increasingly also of the larger inland states such as the Akwamu and Asante, with whom the Europeans concluded numerous treaties for property and trading rights. The communities near (or as the Europeans would say, \"under\") the forts, such as Elmina, Cape Coast, or Christiansborg, would supply the forts with all kinds of food and necessaries and act as intermediaries and brokers with merchants from inland trading in gold, ivory and slaves. At the same time, they were able to withhold their services, without which the Europeans would be in deep trouble, and so disrupt the trade. The issue was that they in turn needed both the protection and the commodities which the European forts offered, to safeguard themselves against other states. \n\nThe larger states or empires (Akwamu, Asante, Dahomey) were able to disrupt the trade equally or more so hy blocking the roads and preventing merchants to come to the shore to trade in slaves, besiege forts, and destroy trading posts. But at the same time these states were main suppliers of enslaved people sold to Europeans for various goods, notably guns and ammunition with which these states were able to establish their power further. So they also very much had an interest in facilitating rather than disrupting the trade. \n\nIn short, there was situation where the various African states were dependent on European trade in slaves to furnish the wealth and weapons to maintain themselves against and defend against attacks from, rival states. The transatlantic slave trade thus fuelled this competition and these wars, having a deeply destabilising effect on the coast and inland. \n\nBut it was not before the nineteenth century, and hence after the abolition of the transatlantic slave trade, that European states were able to establish some kind of hegemony on the west African coast. In fact, the British used the suppression of the slave trade as a main legitimation of this endeavour. Quite absurd, as they had stimulated and facilitated this very trade for centuries. \n\nFor more, read eg Shumway on the Fante and the transatlantic slave trade (2011), Strickrodt, Afro-European Trade in the Atlantic World: the Western Slave Coast c.1550-c.1885 (2016), and the works of Robin Law, eg his \u2018Here is No Resisting the Country\u2019. The Realities of Power in Afro-European Relations on the West African \u2018Slave Coast. \n\n(Update: I pressed post before finishing writing)", "upvote_ratio": 600.0, "sub": "AskHistorians"} +{"thread_id": "up22ei", "question": "During the Atlantic Slave Trade, were there any African nations that had the military capacity to harass/disrupt European slavers and slave ships?", "comment": "[removed]", "upvote_ratio": 50.0, "sub": "AskHistorians"} +{"thread_id": "up23bi", "question": "when you hear Canada, what is the first thing you think of", "comment": "Maple Syrup, Hockey and that dude that fed hookers to his pigs, oh and also Poutine.", "upvote_ratio": 1630.0, "sub": "ask"} +{"thread_id": "up23bi", "question": "when you hear Canada, what is the first thing you think of", "comment": "the Canadian flag\n\nyeah, I'm boring like this", "upvote_ratio": 610.0, "sub": "ask"} +{"thread_id": "up23bi", "question": "when you hear Canada, what is the first thing you think of", "comment": "Eh!!!", "upvote_ratio": 460.0, "sub": "ask"} +{"thread_id": "up258c", "question": "What would be your Main reason to go back in time?", "comment": "I had a cat that died in 2018. He was the best little guy. I\u2019d like to go back and sneak into my old apartment after past me left for work for the day and just hang out with him sometimes.", "upvote_ratio": 4370.0, "sub": "AskReddit"} +{"thread_id": "up258c", "question": "What would be your Main reason to go back in time?", "comment": "Poor choices i made in my life", "upvote_ratio": 3640.0, "sub": "AskReddit"} +{"thread_id": "up258c", "question": "What would be your Main reason to go back in time?", "comment": "With the knowledge I have now, travel 20 years in the past and avoid a lot of mistakes. And become overlord of the whole world obviously.", "upvote_ratio": 2380.0, "sub": "AskReddit"} +{"thread_id": "up26eh", "question": "I just got offered an internship for a Platform Engineering internship that involves working with cloud infrastructures and scripting. Is that good experience or at least a good way to get my foot in the door if I want to do software engineering?", "comment": "Yes that\u2019s good experience, once you have your first internship it opens the doors for stuff you\u2019ll be more interested in", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "up26eh", "question": "I just got offered an internship for a Platform Engineering internship that involves working with cloud infrastructures and scripting. Is that good experience or at least a good way to get my foot in the door if I want to do software engineering?", "comment": "Platform could mean anything tbh. \n\nIt could be devops and scripting infra stuff, but it could just as likely be shit like a data platform that needs to scale to handle near real time event traffic, which usually requires working on application code to make it performant and also learning to investigate inefficiency in your platform with various tools.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up26l2", "question": "https://docs.google.com/file/d/1c4AFGizkOgQkdnnbYF9LBYuR28mZvCE4/edit?usp=docslist_api&filetype=msword\n\nI face constant rejections. I\u2019ve had about 20 interviews, some were phone and some went to video. However, I\u2019ve made no progress at all.\n\nWhat should I do? I\u2019m studying for A+ but this is depressing. I\u2019m in NYC", "comment": "If you\u2019re getting interviews then the resume isn\u2019t the problem, you\u2019re doing something wrong in the interviews.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "up26l2", "question": "https://docs.google.com/file/d/1c4AFGizkOgQkdnnbYF9LBYuR28mZvCE4/edit?usp=docslist_api&filetype=msword\n\nI face constant rejections. I\u2019ve had about 20 interviews, some were phone and some went to video. However, I\u2019ve made no progress at all.\n\nWhat should I do? I\u2019m studying for A+ but this is depressing. I\u2019m in NYC", "comment": "You\u2019re getting calls it\u2019s not the resume", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "up2ail", "question": "So I am interested in learning python coding, but when researching I found that theres such a thing called python 2 and python 3. I thought it was just one general one and of not which would seem best to learn?", "comment": "Python 2 is no longer officially supported and can be safely ignored.\n\nI\u2019d recommend starting with 3.9 or 3.10.", "upvote_ratio": 300.0, "sub": "LearnPython"} +{"thread_id": "up2ail", "question": "So I am interested in learning python coding, but when researching I found that theres such a thing called python 2 and python 3. I thought it was just one general one and of not which would seem best to learn?", "comment": "Python 2 is a dead-end, unless you are supporting legacy code that can't easily be converted to Python 3, which is not backwards compatible with Python 2. Nearly everyone uses Python 3 these days. Just grab the latest stable version.", "upvote_ratio": 110.0, "sub": "LearnPython"} +{"thread_id": "up2ail", "question": "So I am interested in learning python coding, but when researching I found that theres such a thing called python 2 and python 3. I thought it was just one general one and of not which would seem best to learn?", "comment": "There is no decision to be made here; Python 2 is EOL, so Python 3 is the only sensible option.\n\nIgnore all tutorials written for Python 2 (except maybe a few select ones that have no *official* Python 3 revision but that nevertheless have example code translated to Python 3, like Black Hat Python), and focus on Python 3.\n\nThere aren't that many big differences between the two major versions, but given the state of the developer community today I would not see the need to focus on anything that came before 3.6, given the prominence of things like f-strings.", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "up2beq", "question": "When handling business logic, sometimes I have to fetch data from the database, so I can validate my business rules. However, this approach can cause some race conditions. For example, let's say I have an application with a Business Logic Layer (BLL) and a Data Access Layer (DAL), with the following functions:\n\n*dal.py*\n\n def get_account_by_id(id):\n query = text('SELECT * FROM account WHERE id = :id')\n with db.connect() as conn:\n result = conn.execute(query, {'id': id})\n return result.one()._mapping\n \n def transfer(from_account_id, to_account_id, amount):\n withdrawl_query = text('UPDATE account SET balance = balance - :amount WHERE id = :id')\n deposit_query = text('UPDATE account SET balance = balance + :amount WHERE id = :id')\n with db.connect() as conn:\n conn.execute(withdrawl_query, {'amount': amount, 'id': from_account_id})\n conn.execute(deposit_query, {'amount': amount, 'id': to_account_id})\n conn.commit()\n\n*bll.py*\n\n import dal\n \n def transfer(from_account_id, to_account_id, amount):\n from_account = dal.get_account_by_id(from_account_id)\n if from_account['account_type'] == 'savings':\n raise Exception('Transferring from a savings account is not allowed')\n dal.transfer(from_account_id, to_account_id, amount)\n\nMost of the time, the code will work as expected. However, since my BLL function is not in a transaction, if the `account_type` gets updated (in database) after I fetch it, the transfer will be successfull even if it shouldn't be.\n\nI could move the `account_type` validation to the DAL:\n\n def transfer(from_account_id, to_account_id, amount):\n account_type_query = text('SELECT account_type FROM account WHERE id = :id')\n withdrawl_query = text('UPDATE account SET balance = balance - :amount WHERE id = :id')\n deposit_query = text('UPDATE account SET balance = balance + :amount WHERE id = :id')\n with db.connect() as conn:\n account_type = conn.execute(account_type_query, {'id': from_account_id}).scalar_one()\n if account_type == 'savings':\n raise Exception('Transferring from a savings account is not allowed')\n \n conn.execute(withdrawl_query, {'amount': amount, 'id': from_account_id})\n conn.execute(deposit_query, {'amount': amount, 'id': to_account_id})\n conn.commit()\n\nBut it appears to defeat the purpose of my BLL layer and break the Separation of Concerns. My google search returned some terms like *queueing* and *locking*, but I don't know if that's what I need, and they seem a little too advanced.\n\nSo I ask you, how is this problem (if it exists at all) tackled in the real word?\n\nThanks.", "comment": "Why is it possible to change the account type from savings to checking? That seems like that shouldn't be allowed in the first place.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up2btg", "question": "I went to a mental hospital, ask me anything!", "comment": "How you like your new socks", "upvote_ratio": 50.0, "sub": "AMA"} +{"thread_id": "up2ivs", "question": "Some years ago me and my bff were waiting for the bus. A random old man started staring at us and slowly approached us saying my friend's name and the following words: \" Germany, Russia, peace was made\"\n\nThis man was a COMPLETELY STRANGER, he didn't know me nor my friend and wasn't a family friend of hers.\nNowadays (with the thing going on with Russia and Ukraine) we started thinking about those creepy words...\nHave you got any explanation? Literally anything", "comment": "People being people.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "up2ivs", "question": "Some years ago me and my bff were waiting for the bus. A random old man started staring at us and slowly approached us saying my friend's name and the following words: \" Germany, Russia, peace was made\"\n\nThis man was a COMPLETELY STRANGER, he didn't know me nor my friend and wasn't a family friend of hers.\nNowadays (with the thing going on with Russia and Ukraine) we started thinking about those creepy words...\nHave you got any explanation? Literally anything", "comment": "Once upon a time, we had 2 world wars with Germany.\n\nThen we had a cold war with Russia.\n\nThen we had a time of moderate peace.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "up2m7h", "question": "Older devs (graduated before 2000): when you went into the IT field, was it seen as the safe and lucrative option that it\u2019s seen as now?", "comment": "It was a solid white collar job, comparable to being an accountant or maybe a college professor. You wouldn't expect a fancy lifestyle, but you could afford a house and your kids would go to college (both of which were cheaper then).\n\nIt was also much more obscure. If you were in a restaurant and heard someone at the next table mention something a bit beyond home computing - let's say you overhear a remark about SCSI - you'd probably go over and introduce yourself.\n\nAlso, the corporate landscape was a few giant R&D companies, not a million startups like it is today. So you were pretty likely to work in a multistory office building with hundreds of workers and its own cafeteria, and your only exposure to programming and tech would be within that company. \"Not invented here\" was very real - you might well be working in a programming language and operating system that had no meaning outside your own company. And of course all this was closed source. Whole programming languages that were used by thousands of people are lost to history now. I personally did significant work in Protel and BNR Pascal, for example, neither of which were ever made public.\n\nThese factors, as well as the different culture around employment, meant that programming jobs were very safe. Mass layoffs weren't invented till the late 70s, job hopping was seen as immoral, and skills tended to be company specific, and as a result people often stayed at one company from graduation all the way to retirement. So these jobs might not have paid as much as today, but they were _very_ safe. They also typically came with a pension, which is a level of financial safety unheard of in today's world.", "upvote_ratio": 180.0, "sub": "AskComputerScience"} +{"thread_id": "up2m7h", "question": "Older devs (graduated before 2000): when you went into the IT field, was it seen as the safe and lucrative option that it\u2019s seen as now?", "comment": "Not where I went. I\u2019ll never forget my roommate who left computer science for psychology because I\u2019m his opinion the tech field was already \u201csaturated\u201d with too many people. 1993", "upvote_ratio": 90.0, "sub": "AskComputerScience"} +{"thread_id": "up2rp0", "question": "Or is our media going muricuh bad again?", "comment": "AFAIK, A major producer of baby formula had cases of children dying from using their product, so they've been temporarily shut down, and that's dramatically lowered the active supply.", "upvote_ratio": 350.0, "sub": "AskAnAmerican"} +{"thread_id": "up2rp0", "question": "Or is our media going muricuh bad again?", "comment": "There's a shortage of it. I was told it has to do with one factory getting shut down.", "upvote_ratio": 280.0, "sub": "AskAnAmerican"} +{"thread_id": "up2rp0", "question": "Or is our media going muricuh bad again?", "comment": "There is a national shortage yes.\n\nI think the U.S. has a higher rate of formula use over breastfeeding as compared to other countries which exacerbates the problem, but yes we've got major issues in the supply chain for formula.", "upvote_ratio": 210.0, "sub": "AskAnAmerican"} +{"thread_id": "up2zbv", "question": "I am an Israeli Citizen living In Jerusalem. AMA", "comment": "Do you support a free and independent Palestinine?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up2zbv", "question": "I am an Israeli Citizen living In Jerusalem. AMA", "comment": "Are you 100% jewish?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up36nf", "question": "Hi,so i know someone who has a samsung s10+ he bought it from brazil while he was on there from the store.Now he wants to sell it.But when i switched it off and turned it on i saw a big purplish colour while saying vivo! I tried everything that youtube said to confirm if a samsung phone is real,and yeah it passed every test.But i dont know why does it says vivo while turning it on! Can anyone please help me? By explaining why does that happens?", "comment": "Vivo is a wireless carrier in Brazil. Almost every single Samsung phone that's sold by a wireless carrier will show the carrier's logo when it turns on, regardless of which country it's originally from", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "up39kp", "question": "Because I\u2019m a bored and lazy ass teenager who has nothing to do at the moment lol.", "comment": "Igbo or Yoruba?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up39kp", "question": "Because I\u2019m a bored and lazy ass teenager who has nothing to do at the moment lol.", "comment": "Born in Canada or Nigeria ? Are other Canadians nice to you ?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up3c9q", "question": "For example, I used to see games as a goal, as something interesting to build.\n\nBut I don't enjoy gaming as much anymore, so that's unfortunately gone.\n\nI'd love it if there were something else that is as satisfying to build.", "comment": "You know what I do? And what I'm doing right now, sitting at a bar at 6PM when I'm not looking at Reddit? I boot up Xcode on my Macbook, and I start screwing around with the SpriteKit API, where I've got the dimensions of an iPhone display, and I try to make something fun with procedurally-generated and procedurally colored shapes. And then I can apply collision effects, physics, play with boundaries, randomness, all kinds of stuff. And I have to make all of it from scratch. So, about every five minutes, I've made a couple of changes, compile, run, clicky-clicky-clicky, nope, not fun, and then I start iterating on it again.\n\nYeah, programming while drinking may not be everyone's glass of beer, but I enjoy it. I once made Breakout *by accident*. I don't have a plan, I'm just fiddling around to see if I can find something that's fun. And occasionally I find fun, but it's derivative, so I try and iterate on that, and then I don't find anything fun, and I just start over. I know most people would find this frustrating, but I happen to enjoy it. It's like taking a road trip without a destination.", "upvote_ratio": 50.0, "sub": "LearnProgramming"} +{"thread_id": "up3f9a", "question": "Americans, how much a person's race plays into the dating game?", "comment": "Usually impacts things in a similar way that anything else does, like religion, wealth and so on. Americans are more likely to partner up with someone of their own race, but most wouldn\u2019t rule out someone solely on the basis of their race.", "upvote_ratio": 2370.0, "sub": "AskAnAmerican"} +{"thread_id": "up3f9a", "question": "Americans, how much a person's race plays into the dating game?", "comment": "Depends, mostly on the race. If its competitive, if they\u2019ve trained and tried their best it doesn\u2019t really matter. They showed the dedication and that is admirable. But if they didn\u2019t train, did poorly, then complained about it; that reflects poorly on the person. If its casual/ for fun, as long as they\u2019re a good sport about it, it doesn\u2019t really matter. Competition should be fun.", "upvote_ratio": 2100.0, "sub": "AskAnAmerican"} +{"thread_id": "up3f9a", "question": "Americans, how much a person's race plays into the dating game?", "comment": "Common but most people still stay within their own race, interracial relationships are becoming more common. I'm a white male about to marry a black female, my brother is married to a Latina woman, my sis is with a white man. But I don't know many if any families with that much of a mix. Christmas looks like a UN meeting but I love it, not many places in the world you'd see that", "upvote_ratio": 1340.0, "sub": "AskAnAmerican"} +{"thread_id": "up3oe1", "question": "So the job description lists Python, NumPy, and SQL.\n\nI'm a self learner of Python and basically learnt only what was necessary for me in my projects. I do have basic knowledge of programming but it's been a long time since then so I have to revise.", "comment": "In the same boat myself and could use some direction. I've been looking at 'Project Euler' and they have some difficult codes to work on that Google suggests trying before their technical interview. It's good practice for taking a problem and learning how to break it down into chunks.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up3rs9", "question": "What is the purpose of using the word \"my\" in classes, methods, etc.? For example, myClass. Does this convention indicate anything?", "comment": "It's mostly used in examples, where the \"my\" usually designates code that would be written by the person reading the tutorial, as opposed to code from the library or whatever being discussed.", "upvote_ratio": 180.0, "sub": "AskProgramming"} +{"thread_id": "up3rs9", "question": "What is the purpose of using the word \"my\" in classes, methods, etc.? For example, myClass. Does this convention indicate anything?", "comment": "This is mostly common in computer science courses. I don't think I've ever seen this in production code.", "upvote_ratio": 140.0, "sub": "AskProgramming"} +{"thread_id": "up3rs9", "question": "What is the purpose of using the word \"my\" in classes, methods, etc.? For example, myClass. Does this convention indicate anything?", "comment": "When you want to demonstrate a technique, there are two approaches.\n\nUse a realistic example with realistic names. This has the advantage of clearly showing the technique in a concrete context which is usually more relatable if the example is well chosen. But it has the drawbacks that it is more work and the background for the realistic example must be known or explained. It has also the risk that the design would be second guessed potentially jeopardizing the goal of exposing the technique.\n\nThe alternative is to use artificial examples, with place holder names like foo, fn, myObserver... This avoid the work on irrelevant details and the risk of distraction from the purpose of exposing the technique. But this is less relatable, especially for beginners who can't find relevant examples in their past experience. And there is a risk that some consider consider whatever place holder naming convention you use as a good production one. That's normally not the case.", "upvote_ratio": 70.0, "sub": "AskProgramming"} +{"thread_id": "up3tzu", "question": "Wanting to get back into the hunt for more $$ than my current role. Looking for something with tech that's impactful (either to the company's bottom line or externally) and either 100% remote role or has an office near DC/Baltimore. \n\nCompanies like Citadel kind of appeal to me because of the fast pace, cool tech that is impactful, and great pay. But I don't think Citadel has an office near DC and doesn't allow 100% remote.\n\nAny suggestions on other companies with a faster pace, potential growth upside, and also pay a lot that might be worth applying for?", "comment": "> Citadel kind of appeal to me because of the fast pace, cool tech that is impactful\n\nYes to fast pace, no to cool tech lol. My friends there say that their internal tooling and infra is an absolute shit show.", "upvote_ratio": 90.0, "sub": "CSCareerQuestions"} +{"thread_id": "up3tzu", "question": "Wanting to get back into the hunt for more $$ than my current role. Looking for something with tech that's impactful (either to the company's bottom line or externally) and either 100% remote role or has an office near DC/Baltimore. \n\nCompanies like Citadel kind of appeal to me because of the fast pace, cool tech that is impactful, and great pay. But I don't think Citadel has an office near DC and doesn't allow 100% remote.\n\nAny suggestions on other companies with a faster pace, potential growth upside, and also pay a lot that might be worth applying for?", "comment": "A list of high paying companies that offer a lot of remote roles:\n\n* Dropbox\n* Slack \n* AirBnB \n* Twitter (err, oops, not for now :P )\n* NVidia \n* Coinbase\n* Stripe", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "up3tzu", "question": "Wanting to get back into the hunt for more $$ than my current role. Looking for something with tech that's impactful (either to the company's bottom line or externally) and either 100% remote role or has an office near DC/Baltimore. \n\nCompanies like Citadel kind of appeal to me because of the fast pace, cool tech that is impactful, and great pay. But I don't think Citadel has an office near DC and doesn't allow 100% remote.\n\nAny suggestions on other companies with a faster pace, potential growth upside, and also pay a lot that might be worth applying for?", "comment": "I work at a company you described. \n\nIt sucks. Super high expectations, and tight deadlines are not fun.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up3xj7", "question": "please someone tell me why does not the loop stop when I write 2 or 10 and instead asks to enter the number again. Thanks in advance\n\n while True:\n x = input(\"Please enter a number: \")\n try:\n x = int(x)\n if x != 2 or x != 10:\n print(\"invalid, try again\")\n continue\n elif x == 2 or x == 10:\n print(\"correct, this is the maximum or minimum number\")\n break\n except:\n x = str(x)\n if x == \"done\":\n print(\"Invalid Input\")\n break\n elif x != \"done\":\n print(\"Invalid input, try again\")\n continue\n largest = 10\n l = int(largest)\n smallest = 2\n s = int(smallest)\n print(\"Maximum is\", largest)\n print(\"Minimum is\", smallest)", "comment": "I think it\u2019s that first if statement with the or operator. Make it \u201cand\u201d instead of \u201cor\u201d\n\nEdited for clarity", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up3xp1", "question": "I was doing exercises on DataCamp and despite successfully completing one, I didn't understand the reason of a part of the code.\n\n # Import numpy as np\n import numpy as np\n \n # Store pop as a numpy array: np_pop\n np_pop = np.array(pop)\n \n # Double np_pop\n np_pop = np_pop * 2\n \n # Update: set s argument to np_pop\n plt.scatter(gdp_cap, life_exp, s = np_pop)\n \n # Previous customizations\n plt.xscale('log') \n plt.xlabel('GDP per Capita [in USD]')\n plt.ylabel('Life Expectancy [in years]')\n plt.title('World Development in 2007')\n plt.xticks([1000, 10000, 100000],['1k', '10k', '100k'])\n \n # Display the plot\n plt.show()\n\nIn the line 7, it's expected from me to double ny\\_pop, as an explanation, it says \"Double the values in np\\_pop. Because np\\_popis a NumPy array, each array element will be doubled.' but i didn't understand anything and the plot shown is kinda different but i couldn't see why. Could anyone explain?", "comment": "> Because np_popis a NumPy array, each array element will be doubled.'\n\nThat is just reminding you of the fact that multiplying by a numpy array works differently than multiplying a python list. \n\n >>> pl_pop = [1,2,3]\n >>> pl_pop * 2\n [1, 2, 3, 1, 2, 3]\n \nvs\n\n >>> np_pop = np.array([1,2,3])\n >>> np_pop * 2\n array([2, 4, 6])\n \nSo it allows you to scale things. If the pop marker sizes are too small (s= is the marker size argument) , you can increase the size of all of them by multiplying by the whole array. You don't need double it specifically, you can use any number there to set a size that you like\n\n np_pop = np_pop * 8", "upvote_ratio": 80.0, "sub": "LearnPython"} +{"thread_id": "up44pm", "question": "What is the saddest truth about life?", "comment": "It's not fair at all.", "upvote_ratio": 9010.0, "sub": "AskReddit"} +{"thread_id": "up44pm", "question": "What is the saddest truth about life?", "comment": "Some of the worst people are the most successful.", "upvote_ratio": 5290.0, "sub": "AskReddit"} +{"thread_id": "up44pm", "question": "What is the saddest truth about life?", "comment": "Being good doesn't mean good things will happen. Conversely, being bad doesn't mean that bad things will happen to you. There is no universal justice and no karma.", "upvote_ratio": 4030.0, "sub": "AskReddit"} +{"thread_id": "up4805", "question": "Was there any urbanization in Scandinavia prior to Christianization?", "comment": "It depends on the definition of the medieval town/ urban space to a certain degree - the very classic study of medieval towns, focusing on its distinct legal and governmental body like that of Henri Pirenne would not certainly admit that there were towns in Vikiing Age Scandinavia, but as I summarized before in: [In what ways were pre-Viking Scandinavians (6th, 7th, 8th centuries) culturally distinct from their 9th century descendants? In the areas of language, religion, economics, military tactics, technology, social structure, etc](https://www.reddit.com/r/AskHistorians/comments/lh1k4w/in_what_ways_were_previking_scandinavians_6th_7th/), a few \"trading place\" with planned land quarters and somewhat dense settlements including craftspeople like blacksmiths had already been established around the North Sea in course of the 8th century CE. \n\n+++ \n\nBiographer Rimbert narrates that Frankish missionary Ansgar (Anskar) worked and built the earliest church in collaboration with the local Scandinavian ruler (governor?) in two of such \"trading places\", namely Birka in the M\u00e4laren (Central Sweden, west to Stockholm) and Ribe in western Denmark. They had already been \"urbanized\" by the beginning of the 9th century, so Ansgar the missionary primarily preached town dwellers there, not to rural Scandinavian farmers in the countryside. \n\nNorway also had a Kaupang (Skiringssal) in Vestfold, though its 1st mention in written source dates only backs to the end of the 9th century (now archaeological excavation confirms its older provenance). \n\nReferences: \n\n* Clarke, Helen & Bj\u00f6rn Ambrosiani. *Towns in the Viking Age*. London, 1995. \n* Skre, Dagfinn (ed.). *Kaupang in Skiringssal*. Aarhus: Aarhus UP, 2007.", "upvote_ratio": 30.0, "sub": "AskHistorians"} +{"thread_id": "up48bo", "question": "I remember learning about how solar sails work, with it being reflective and using the momentum that light has due to its De Broglie\u2019s wavelength and using the law of conservation of momentum to increase its own momentum and hence velocity. My question here is how is the conservation of energy preserved? Does the wavelength of light increase such that the loss in the energy of the photons corresponds to the increase in kinetic energy of the sail? This is all assuming that the sail is perfectly reflective and the photons are not absorbed to become heat energy, although i\u2019m not sure if that\u2019s a flawed assumption.", "comment": "[removed]", "upvote_ratio": 450.0, "sub": "AskScience"} +{"thread_id": "up48bo", "question": "I remember learning about how solar sails work, with it being reflective and using the momentum that light has due to its De Broglie\u2019s wavelength and using the law of conservation of momentum to increase its own momentum and hence velocity. My question here is how is the conservation of energy preserved? Does the wavelength of light increase such that the loss in the energy of the photons corresponds to the increase in kinetic energy of the sail? This is all assuming that the sail is perfectly reflective and the photons are not absorbed to become heat energy, although i\u2019m not sure if that\u2019s a flawed assumption.", "comment": "If the solar sail is gaining kinetic energy, the photon is losing energy, as you said. Reflected photons would then be redshifted, though by a very small amount. So frequency goes down, wavelength goes up, like you guessed.", "upvote_ratio": 290.0, "sub": "AskScience"} +{"thread_id": "up4cml", "question": "Ask away.\n\neven ask me about my personality, what do I often post. Ask me about my hyperfixation, ANYTHING! Even not related to autism, but ask about my personality Too.\n\nAsk even the funniest or weirdest questions you have!\n\nAsk Me ***ANYTHING***", "comment": "What\u2019s your personality like? And what do you like?", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "up4cml", "question": "Ask away.\n\neven ask me about my personality, what do I often post. Ask me about my hyperfixation, ANYTHING! Even not related to autism, but ask about my personality Too.\n\nAsk even the funniest or weirdest questions you have!\n\nAsk Me ***ANYTHING***", "comment": "Do you have Asperger's syndrome?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up4cml", "question": "Ask away.\n\neven ask me about my personality, what do I often post. Ask me about my hyperfixation, ANYTHING! Even not related to autism, but ask about my personality Too.\n\nAsk even the funniest or weirdest questions you have!\n\nAsk Me ***ANYTHING***", "comment": "Did people hate you for having it\n\nCause people did on me", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up4e6p", "question": "I am lucky enough to have gotten the choice of a few things to do over the summer but I don\u2019t really know what\u2019s best for me in the long run, my goal is to become a software engineer and get solid internships along the way.\n\nOne thing I have learned from CsMajors and this sub is that being confident in DS&A and being able to Leetcode is what gets students into quality jobs. Correct me if I'm wrong but that's currently the belief I am following.\n\n**Background:**\n\nI am an international sophomore who has only taken gen Ed\u2019s/ prerequisite courses for CS (calc, physics, etc) and only one intro coding class. Self-taught Python.\n\n**Codepath Intro to Software Engineering + self-teaching ds&a**\n\n12 weeks, mandatory attendance, increase my chance of getting good at leetcode About 6hrs per week + HW + self-taught ds&a time/practice\n\nPros:\n\n* solidify my understanding of CS concepts, learn some interview stuff & basic data structures (see link)\n* Self Learn ds&a for Leetcode =increase the chance of passing OAs = increase the chance of getting a good job\n\nCons:\n\n* Could be choosing this at the expense of something else\n* Don\u2019t actually know if the course is any good\n\nCodepath link: [https://info.codepath.org/intro-to-swe?hsLang=en](https://info.codepath.org/intro-to-swe?hsLang=en)\n\n**Research at F.A.U (Florida Atlantic Uni) with a Professor**\n\n10 weeks, 10 hrs week research minimum + 3credit class per A & B summer\n\nPros:\n\n* 10 weeks\n* Stipend 2900$ (to be finalized) ( $300 after class costs)\n* One time Money for class: 500$\n* One time Travel expenses 500$\n* Work with the professor making your own research (not with a big team)\n* Meet CS people (I currently don't really know any due to taking online classes) also not that bothered by it.\n\nCons:\n\n* Done research last semester and it was horrible (failed to complete it/ bad team)\n* Required to take 3 credit classes per summer A & B ( 1200$ per class ish)\n* Only 300$ ish profit\n\n**Internship as a Software engineer**\n\nPros:\n\n* get real-world experience\n* Looks great on a resume\n* The company seems to align with my ideas\n* Never had an internship so it will be the first\n* First, offer out of 105 applications\n\nCons:\n\n* unpaid\n* 6 months minimum\n* Unknown company name & tiny startup\n* Would have to do part-time classes in the coming Fall semester, thus delaying progression in school\n* They presumably make little money so unlikely to get offered a paid job but who knows\n\n&#x200B;\n\nThanks very much. Posted on CsMajors but didn't get lots of feedback", "comment": "paid internship > research > unpaid internship > whatever codepath is, imo", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "up4en8", "question": "Hi all, \n\nI want to start career in IT, I was thinking about getting MCSA however this certification retired. I want to start in 1st line support and progress over the years. What courses, certs do you recommend? \nI have pretty good knowledge of systems from Windows 95 to Win 11 that I'm insider. Few years back at school I had a contact with networking (bits of CCNA) win sever 2009 and Active directory but I can't remember anything tbh, I probably would after a while.\n\nThanks", "comment": "In my opinion he's in no place to start applying for jobs as no one is likely going to even accept their resume/application or interview them. \n\nIf you have nothing, get the A+ certification. That will at least get you past the HR department for some tier 1 helpdesk roles. The trifecta may also help (Net+ and Sec+). Don't mention you have knowledge of Windows 95, there are some things that we may have knowledge of however we don't speak of these things, any operating system before Windows 7 doesn't exist. Learn the modern OS deployments. Once you do that, start learning what you want to do in IT and start narrowing down what you study. Starting at tier 1 and \"progressing over the years\" has about a thousand different directions it could go. You need to spend time and really focus on what you wanna do.\n\nI don't know what ...from Windows 95 to Win 11 that I'm insider.\" means. \n\nStart with the basics and work up. Things you used to know but don't remember are now things you don't know. If you start studying them and it comes back to you, fast track yourself through the program but until then, consider yourself an infant in the world of tech.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "up4gdf", "question": "And which do you enjoy more?", "comment": "Very.\n\nI didn\u2019t do programming at school but did at a bootcamp.\n\nExperience is I am a front end software engineer at a software-as-a-service medical-tech startup.\n\nOn the job you\u2019re working with a team of skilled professionals. The quality of the code, work processes (agile methodology), peer learning etc is higher. Working with people who know what they are doing. Working with people who are mature & professional in their behaviour. This is a good experience.\n\nIn a job you are often working on an existing code base, which is huge and complex and when you start you won\u2019t understand most of it. A lot of your time is spent reading the code, having meetings, and making small tweaks that incrementally improve the product.\n\nThere will be bugfixes, \u201ctech debt\u201d (things that were done in the past as a quick fix or now ill-favoured way), updating packages, as well as new features. And writing tests, the code needs to be much more robust and resilient and tests are important.\n\nYou\u2019ll also spend time on tools and improvement s to the way the team works. Thinking about how to restructure the project, move code out of the codebase into a separate package, tools like storybook to help the design-to-develop process, continuous integration processes, etc.\n\nThere are a lot more advanced concepts put into place in a professional environment. Your code has to be a higher level and work with existing code. You use make lots of use of version control (git, branching ) and collaborative tools (GitHub, slack or teams, etc) , your code will be reviewed and discussed and changes requested before being accepted into the main code base.\n\nThings need to be documented - good readme files - so others coming onto the project know how to get it up and running and use it.\n\nYou\u2019ll be working alongside specialists in different roles. Product managers, quality assurance, devops, systems engineers, front end and back end engineers, designers etc.\n\nYou\u2019ll all be working towards creating something new that is solving a problem in the world. There will be updates from the business about how the company is growing and achieving its goals, how customers are experiencing the product, etc.\n\nThere will be team & company celebrations as milestones are met or for team bonding.\n\nProgramming outside of a professional setting is more of a hack job. Poor processes, doing things on the fly, starting from scratch, little support or feedback, making everything up as you go, wearing many hats.", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "up4lvy", "question": "The general idea is that height is all related to genetics . Well my Dad is 5\u201911 , my mom is 5\u20197 , my sister is 5\u20198 . Both my grandfathers were 6ft as well as all the men in my extended family. None of the men are shorter than 5\u201910\nHowever I (Male) at 19 years of age am 5\u20197 ?", "comment": "You are literally asking people on Reddit if your adopted\n\nThink about that for a minute", "upvote_ratio": 70.0, "sub": "ask"} +{"thread_id": "up4lvy", "question": "The general idea is that height is all related to genetics . Well my Dad is 5\u201911 , my mom is 5\u20197 , my sister is 5\u20198 . Both my grandfathers were 6ft as well as all the men in my extended family. None of the men are shorter than 5\u201910\nHowever I (Male) at 19 years of age am 5\u20197 ?", "comment": "You took your mother's genes, there's nothing to stop a man from having his mother's genes", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "up4m94", "question": "If a nuclear explosion went off, would there be a certain distance in the blast radius that would cook frozen supermarket pizzas to perfection for a brief moment?", "comment": "Not really. Cooking thoroughly takes time. If the temperature is too high, then you burn the outside but the inside remains cold. Unless a nuclear explosion can create an explosion that remains at a constant temperature of 400\u00b0 F for about 15 minutes, then the pizza will cook unevenly.", "upvote_ratio": 9440.0, "sub": "NoStupidQuestions"} +{"thread_id": "up4m94", "question": "If a nuclear explosion went off, would there be a certain distance in the blast radius that would cook frozen supermarket pizzas to perfection for a brief moment?", "comment": "Finally we get down to serious issues to help us survive the coming apocalypse.", "upvote_ratio": 1540.0, "sub": "NoStupidQuestions"} +{"thread_id": "up4m94", "question": "If a nuclear explosion went off, would there be a certain distance in the blast radius that would cook frozen supermarket pizzas to perfection for a brief moment?", "comment": "No, you can't just flash cook a pizza.", "upvote_ratio": 1370.0, "sub": "NoStupidQuestions"} +{"thread_id": "up4p68", "question": "I currently work as a data engineer (~1 YoE). I was involved in a lot of design endeavors in college and have been interested in working in the frontend space in general (not UX design), so I've been investing time outside of work to build skills in that domain.\n\nI understand that the more pressing problems that FEEs deal with on a daily basis likely have more to do with things like state management or performance optimization, but how valuable is being great at CSS (e.g., complex animations that require lots of CSS transforms over multiple layers) as a FEE in the context of being employable as a frontend eng? Obviously I'm not totally neglecting studying other things solely to dive deeper into CSS, but I was wondering whether being great at CSS is valued among bigger and more prominent companies that may already have a set of default design templates. For example, Google has a pretty standardized design template across most of their products, which makes me think that having just a 'solid' understanding of CSS would already be enough to complete tasks/stories involving UI tweaks. \n\nI am not asking about whether being good at CSS would help me in frontend interviews (already going through LC and BFE.dev), but rather whether it would help me excel on the job more so than if I invested my time in learning other parts of frontend engineering.", "comment": "Not really, being good at css is seen as a basic requirement. There may be some niche positions where a thorough understanding of specificity or whatever comes in useful, but it's not going to be required of you in a normal position.\n\nWhat you may find more helpful is being able to debug the css written by backend engineers. :(", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "up4p68", "question": "I currently work as a data engineer (~1 YoE). I was involved in a lot of design endeavors in college and have been interested in working in the frontend space in general (not UX design), so I've been investing time outside of work to build skills in that domain.\n\nI understand that the more pressing problems that FEEs deal with on a daily basis likely have more to do with things like state management or performance optimization, but how valuable is being great at CSS (e.g., complex animations that require lots of CSS transforms over multiple layers) as a FEE in the context of being employable as a frontend eng? Obviously I'm not totally neglecting studying other things solely to dive deeper into CSS, but I was wondering whether being great at CSS is valued among bigger and more prominent companies that may already have a set of default design templates. For example, Google has a pretty standardized design template across most of their products, which makes me think that having just a 'solid' understanding of CSS would already be enough to complete tasks/stories involving UI tweaks. \n\nI am not asking about whether being good at CSS would help me in frontend interviews (already going through LC and BFE.dev), but rather whether it would help me excel on the job more so than if I invested my time in learning other parts of frontend engineering.", "comment": "It\u2019s not valued at all, except in some extremely rare situations. Needing to do complex css or animations (which can be handled with css or JavaScript) is rare. On top of that, there are generally open source libraries to handle the more common situations.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up4pfl", "question": "Hey all, been working at this place for about a year and 4 months now. Great place, fully remote, decent pay, good benefits, easy schedule. Cant complain too much really, plus they dont monitor us directly so its stress free for the most part.\n\nThe only issue is the pay itself. It is certainly on the lower end of the spectrum for a job like this and that is probably because of the 403b benefits we get which are, honestly second to none. That being said, I don't know if I see myself doing this exact work long term. There are people in my social circle who have similar experience as me and make 100-150% more in their salary than I do. Would be nice to try seeing what else is out there.\n\nI'm overall happy but I'm definitely far more satisfied when I expand my horizons and look to better my living situation. I've thought about staying at this place until the 2 year mark then maybe searching around then for a similar remote option with better pay.\n\n__________\n\nWhen did you move on from your first CS job? Did you just take the leap? How did it work out? There's always more to learn so how did you know it was time to move from one place for another? Just some questions I'd thought I'd play the field on.", "comment": "Have you tried to negotiate a pay rise at your current job? You skill up a lot in your first years, so I would be expecting you seek a review for promotion/pay rise rather than continue at the rate they hired you at.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up4vou", "question": "This thought came to me as I was thinking about photovoltaic materials. You shine a light with at least a certain frequency on a photovoltaic material. The light jostles an electron out of place. The electron then does its jiggling, and then settles back into place for another bit of light to hit it again. \n\nPyroelectric materials (from what I'm reading) are much like piezoelectrics wherein they require constantly changing load to generate voltage. Is there a subset of pyroelectrics that behave more like photovoltaics where they allow heat to jiggle an electron that we can use, let the electron calm down, and then in that same unchanged environment absorb more heat to rejiggle the electron?", "comment": "A heat engine needs heat to flow from hot to cold. No such thing without a thermal gradient, so no heat engine.\n\nYou can't \"let the electron calm down\" in a systematic way without a colder reservoir. Extracting energy from heat without a thermal gradient would reduce the entropy of the system. You can't do that.", "upvote_ratio": 90.0, "sub": "AskScience"} +{"thread_id": "up4vu4", "question": " I've switched two employers since the gap. I'm employed now & looking to switch again, level up possibly. How do i make up for my gap? It keeps me up at night\n\n ", "comment": "Create something cool you can discuss during interviews. \n\nIf you have a job now, take on more responsibility where you can, to be able to put more about your effectiveness there.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up4y99", "question": "An incredible opportunity has presented itself. It's the right industry, right company, right product, right technologies, right team, and right culture. I knocked the interview out of the park. \n\n**Unfortunately**, the company uses your location to determine your salary range - even though it is a remote position. My city is still classified as low COL, so the offer came in way lower than I was hoping. \n\nHow widespread is this practice? Is it the rule or the exception? And, most importantly to me right now, what are the chances I can successfully lobby for a salary significantly above the approved range for my location but well within the budget for this role in the city where the office is located?", "comment": "I can attest that where I work (Financial Services), it is a standard practice. Same with the previous firm I was at. There are 4 tiers and I live #3 (where #1 has highest COL). It does stink knowing that some of my peers are getting more than me, just because they live in a big city, but I also pay almost $1.50 less per gallon of gas and can buy more house for the money.\n\nIf you really want this (and the offer is not ridiculously low), just do your thing and shine. If the company is really as good as you think, you'll prove you are worth it. But if it really concerns you, a good employer should have data to back up why your location is classified as it is.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5agr", "question": "If you die tomorrow what would you regret?", "comment": "Nothing. I'm dead.", "upvote_ratio": 880.0, "sub": "ask"} +{"thread_id": "up5agr", "question": "If you die tomorrow what would you regret?", "comment": "having saved up all that money instead of using it during my last months to get to experience exciting things.", "upvote_ratio": 240.0, "sub": "ask"} +{"thread_id": "up5agr", "question": "If you die tomorrow what would you regret?", "comment": "Be the reason why my family is crying", "upvote_ratio": 170.0, "sub": "ask"} +{"thread_id": "up5d1y", "question": "By intensity I'm referring to (for example) the case when the positive test stripe is very faint when compared to the control stripe.", "comment": "[This research article](https://onlinelibrary.wiley.com/doi/10.1002/jmv.27186) from the Journal of Medical Virology says, \"The intensity of test line color is proportionally correlated with viral load.\" That said, conceivably a person could take two tests on two different days and see different levels of faintness based on how well they followed the instructions when taking each sample rather than a change in their body's viral load.", "upvote_ratio": 6930.0, "sub": "AskScience"} +{"thread_id": "up5d1y", "question": "By intensity I'm referring to (for example) the case when the positive test stripe is very faint when compared to the control stripe.", "comment": "From the rapid test manual: The color intensity in the test region may vary depending on the concentration of analytes present in the specimen. Therefore, any shade of color in the test region should be considered positive.", "upvote_ratio": 840.0, "sub": "AskScience"} +{"thread_id": "up5d1y", "question": "By intensity I'm referring to (for example) the case when the positive test stripe is very faint when compared to the control stripe.", "comment": "Anecdote: when I got Covid earlier this year, I did a rapid test every day and I could clearly see the line get fainter and fainter every day until the test was finally negative after 14 days. It was quite interesting to see.", "upvote_ratio": 430.0, "sub": "AskScience"} +{"thread_id": "up5fyw", "question": "Title prob should be: \"Should I be more patient\"\n\nJoined this company about 6 months already. Finished the first project in the first 4 months, and transferred to a new team that is responsible for the internal cli tool. We had a new guy that joined the team yesterday, and I was the person who provided most of the onboarding stuff. He is kinda new to the whole company I guess as he doesn't even have his environment set up properly. He is a contractor just like me. \n\nI was being friendly ( at least I think ) towards him for most parts. Answer questions that might not be straightforward when you google. \n\nThere was one question he asked, he was having a hard time installing git as the download page is prohibited by the company, so I told him I installed git through chocolatey. He said he is new to choco, so I said to him, \"I think it is pretty straightforward, you can google search it\" and I left to work on something else. The next day, he asked in the group chat ( our whole conversation was in a group chat as others might help him as well ) if anyone has \"git.exe\" and could share it with him. \n\nI felt he kinda just ignored what I said, beyond that, he even pinged me with having git.exe or no question. \n\nI just said, \"like what I said, I used chocolatey to install git\", and just copy and paste the command that he needs to install git via chocolatey. \n\nI felt disrespected and ignored. On top of that, he called out to our team/tech lead in the standup (after I said 'like what I said...' ) that he needs help with git and wants to have an audio call with the lead. To be clear our team lead assigned me and the other person to help this new guy on board at the beginning.\n\nShould I have been more patient, or was my action right?\n\nEdit: This is the flow of the situation\n\nHe asked for help\n\n-> I suggested choco AND mentioned I used choco to install git\n\n-> next day he asked if someone has git.exe downloaded from the download page and pinged me despite I did tell him I know the issue he was facing and I used choco to install git mainly because it is not something I was able to solve \n\n-> I provided the command to install git via choco after I throw that \"like I said...\" \n\n-> asked the team lead to help him on git during the stand-up.\n\nThroughout the whole process, he did not say what part of choco he does not understand, not even after I gave him the instructions on how to install git via choco\n\n***I am not sure, but it looks like everyone is ignoring the point where I DID give him the exact instructions of how to install git via choco, and he didn't say he encountered an issue while following my steps before asking lead to help him on git. If someone decided not to ask for help on something, isn't it normal to think he either is going smoothly or he thinks he can solve whatever that issue is by himself?\n\nThe fundamental mistake is that I asked him to try a google search on how to install git via choco first for an onboarding. I understand that now, I did that based on my onboarding experience, I was only passing the same thing I received from the lead (the links to docs) that later I pass to the new guy. The difference is I solved that git issue by myself, but he needs more help.", "comment": "\u201cI felt disrespected and ignored\u201d\u2026 is completely the wrong attitude to have. You\u2019re making it personal when it isn\u2019t. \n\nThere is a problem to be solved. Your colleague is struggling with something. He has come to you for help twice, and has not been able to resolve the issue based on what you said. That doesn\u2019t mean he didn\u2019t try, it means he hasn\u2019t been able to work it out. He\u2019s not going to return a third time when all you did was repeat the same thing; he will seek out help elsewhere from others as he is trying to resolve an issue.\n\nAnd getting set up with your environment and git is a MAJOR issue. He can\u2019t do his work without it. This isn\u2019t something that can be delayed or deprioritised, it needs to be done ASAP.\n\nIf someone asks for help, and you give them an answer, and they return asking for help again: there is no point repeating exactly what you already said as that didn\u2019t help them. You need to explain the solution (or help) in another way. If you can\u2019t help them, forward them on to another colleague to help them instead.", "upvote_ratio": 220.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5fyw", "question": "Title prob should be: \"Should I be more patient\"\n\nJoined this company about 6 months already. Finished the first project in the first 4 months, and transferred to a new team that is responsible for the internal cli tool. We had a new guy that joined the team yesterday, and I was the person who provided most of the onboarding stuff. He is kinda new to the whole company I guess as he doesn't even have his environment set up properly. He is a contractor just like me. \n\nI was being friendly ( at least I think ) towards him for most parts. Answer questions that might not be straightforward when you google. \n\nThere was one question he asked, he was having a hard time installing git as the download page is prohibited by the company, so I told him I installed git through chocolatey. He said he is new to choco, so I said to him, \"I think it is pretty straightforward, you can google search it\" and I left to work on something else. The next day, he asked in the group chat ( our whole conversation was in a group chat as others might help him as well ) if anyone has \"git.exe\" and could share it with him. \n\nI felt he kinda just ignored what I said, beyond that, he even pinged me with having git.exe or no question. \n\nI just said, \"like what I said, I used chocolatey to install git\", and just copy and paste the command that he needs to install git via chocolatey. \n\nI felt disrespected and ignored. On top of that, he called out to our team/tech lead in the standup (after I said 'like what I said...' ) that he needs help with git and wants to have an audio call with the lead. To be clear our team lead assigned me and the other person to help this new guy on board at the beginning.\n\nShould I have been more patient, or was my action right?\n\nEdit: This is the flow of the situation\n\nHe asked for help\n\n-> I suggested choco AND mentioned I used choco to install git\n\n-> next day he asked if someone has git.exe downloaded from the download page and pinged me despite I did tell him I know the issue he was facing and I used choco to install git mainly because it is not something I was able to solve \n\n-> I provided the command to install git via choco after I throw that \"like I said...\" \n\n-> asked the team lead to help him on git during the stand-up.\n\nThroughout the whole process, he did not say what part of choco he does not understand, not even after I gave him the instructions on how to install git via choco\n\n***I am not sure, but it looks like everyone is ignoring the point where I DID give him the exact instructions of how to install git via choco, and he didn't say he encountered an issue while following my steps before asking lead to help him on git. If someone decided not to ask for help on something, isn't it normal to think he either is going smoothly or he thinks he can solve whatever that issue is by himself?\n\nThe fundamental mistake is that I asked him to try a google search on how to install git via choco first for an onboarding. I understand that now, I did that based on my onboarding experience, I was only passing the same thing I received from the lead (the links to docs) that later I pass to the new guy. The difference is I solved that git issue by myself, but he needs more help.", "comment": "I'm not a perfect judge of situations like this, but as the new person I'd have felt like the OP was being dismissive and a little rude (partially with the dismissiveness and partially with the whole feeling ignored thing after essentially ignoring the new person's problem).", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5fyw", "question": "Title prob should be: \"Should I be more patient\"\n\nJoined this company about 6 months already. Finished the first project in the first 4 months, and transferred to a new team that is responsible for the internal cli tool. We had a new guy that joined the team yesterday, and I was the person who provided most of the onboarding stuff. He is kinda new to the whole company I guess as he doesn't even have his environment set up properly. He is a contractor just like me. \n\nI was being friendly ( at least I think ) towards him for most parts. Answer questions that might not be straightforward when you google. \n\nThere was one question he asked, he was having a hard time installing git as the download page is prohibited by the company, so I told him I installed git through chocolatey. He said he is new to choco, so I said to him, \"I think it is pretty straightforward, you can google search it\" and I left to work on something else. The next day, he asked in the group chat ( our whole conversation was in a group chat as others might help him as well ) if anyone has \"git.exe\" and could share it with him. \n\nI felt he kinda just ignored what I said, beyond that, he even pinged me with having git.exe or no question. \n\nI just said, \"like what I said, I used chocolatey to install git\", and just copy and paste the command that he needs to install git via chocolatey. \n\nI felt disrespected and ignored. On top of that, he called out to our team/tech lead in the standup (after I said 'like what I said...' ) that he needs help with git and wants to have an audio call with the lead. To be clear our team lead assigned me and the other person to help this new guy on board at the beginning.\n\nShould I have been more patient, or was my action right?\n\nEdit: This is the flow of the situation\n\nHe asked for help\n\n-> I suggested choco AND mentioned I used choco to install git\n\n-> next day he asked if someone has git.exe downloaded from the download page and pinged me despite I did tell him I know the issue he was facing and I used choco to install git mainly because it is not something I was able to solve \n\n-> I provided the command to install git via choco after I throw that \"like I said...\" \n\n-> asked the team lead to help him on git during the stand-up.\n\nThroughout the whole process, he did not say what part of choco he does not understand, not even after I gave him the instructions on how to install git via choco\n\n***I am not sure, but it looks like everyone is ignoring the point where I DID give him the exact instructions of how to install git via choco, and he didn't say he encountered an issue while following my steps before asking lead to help him on git. If someone decided not to ask for help on something, isn't it normal to think he either is going smoothly or he thinks he can solve whatever that issue is by himself?\n\nThe fundamental mistake is that I asked him to try a google search on how to install git via choco first for an onboarding. I understand that now, I did that based on my onboarding experience, I was only passing the same thing I received from the lead (the links to docs) that later I pass to the new guy. The difference is I solved that git issue by myself, but he needs more help.", "comment": "The \"like I said\" was passive aggressive and unnecessary. A more professional response either have been to ping him asking if he tried choco and ran into any issues you could help with.", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5hs2", "question": "I just started my internship this Monday with another intern. We are in training process. The other intern who just graduated from college was completing a module everyday and I am a sophomore student barely completing one module and asking a lot of questions. The technology we are using wasn\u2019t even mentioned during the interview. I am pushing hard to complete modules and learn the technology needed but I feel incompetent. I also get paid during the internship. I am really afraid of getting fired from this internship because this is my first internship and funny thing is If I fail this internship I will also fail a class. Not just that, my bullies will get happy.", "comment": "They brought you on knowing you were a soph, deep breath, you\u2019re there to learn. Ask the questions, and show growth over the duration and you\u2019ll be just fine.", "upvote_ratio": 200.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5hs2", "question": "I just started my internship this Monday with another intern. We are in training process. The other intern who just graduated from college was completing a module everyday and I am a sophomore student barely completing one module and asking a lot of questions. The technology we are using wasn\u2019t even mentioned during the interview. I am pushing hard to complete modules and learn the technology needed but I feel incompetent. I also get paid during the internship. I am really afraid of getting fired from this internship because this is my first internship and funny thing is If I fail this internship I will also fail a class. Not just that, my bullies will get happy.", "comment": "You need a new mindset.\n\nYou are being paid to learn. That is awesome! You are learning a new technology that is relevant to the workplace. Win!\n\nOther intern may be better than you, because they have more experience, and wouldn\u2019t you hope that in a couple years when you have graduated you will be more skilled than where you are in sophomore year, right?\n\nOther intern is probably also hoping that if they do well in this internship that they might be offered a job. So they are fanging it.\n\nYou got to wonder: why are they doing an internship instead of getting a job? I\u2019ll bet they are struggling to finding a job so figured an internship was better than nothing. If they secure a job they might not even complete the internship.\n\nThere\u2019s no point comparing apples to oranges. Work out what you want to achieve in this internship for it to be good for you, for you to skills up, get experience, and focus on that.", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5hs2", "question": "I just started my internship this Monday with another intern. We are in training process. The other intern who just graduated from college was completing a module everyday and I am a sophomore student barely completing one module and asking a lot of questions. The technology we are using wasn\u2019t even mentioned during the interview. I am pushing hard to complete modules and learn the technology needed but I feel incompetent. I also get paid during the internship. I am really afraid of getting fired from this internship because this is my first internship and funny thing is If I fail this internship I will also fail a class. Not just that, my bullies will get happy.", "comment": "This has to be a joke, no adult would actually say his bullies will get happy if he gets fired.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5jdr", "question": "This is my left foot:\n\nhttps://imgur.com/a/RZbLbyy\n\nFirst picture is today, 2nd picture was yesterday.\n\n24 M / 6ft / 200 lbs\n\nMy other foot is fine. My foot was more numb in the areas that now look like that and had been that way for a few weeks when this happened. No trauma, no itch, doesn't really hurt unless if I actively mess with it. No history of heart issues, blood issues or diabetes. I don't experience numbness in my other appendages. When pressing the afflicted toes, cap refill is good. I don't smoke anymore but I used to be a pack a day smoker 2 years ago. I went to the doctor and they basically didn't know what was going on and said it's a \"wait and see\" situation.\n\nI added the red dots because a couple months ago they popped up all over my body and stayed heavy like in the picturesfor a few weeks. They didn't itch, they didn't hurt. I had one on an unnamed appendage and I once squeezed that appendage and the red dot went from red to purple. I still have them on my thighs and bottom of my feet but in a much smaller amount.\n\nAm I having blood issues of some kind?", "comment": "Google chilblains and see if that seems to fit", "upvote_ratio": 130.0, "sub": "AskDocs"} +{"thread_id": "up5ohj", "question": "So I recently received an offer for a software engineering internship, but I have a few concerns/questions.\n\n1) I was never asked a single coding question. I had a video interview where I recorded myself answering basic interview questions, and then one with the team leader who just asked general questions to see if I\u2019d fit well with the team.\n\n2) I also no idea what I\u2019d actually be doing. Like what language I\u2019d be working in or anything really. The contract says I\u2019ll have a mentor to help me out to teach me about the job and that I\u2019ll have the opportunity to work on meaningful projects with the team.\n\n3) Even if I knew what I was working on/with, I don\u2019t think I know that much. Self taught some basic stuff and have only taken 2 programming courses. Feel like I\u2019ll get fired for knowing what feels like nothing. The salary also seems more than I think I deserve/am qualified for.\n\n4) Lastly, all I am told is the hourly salary, but not how many hours or what hours I\u2019d be working. I have no idea where to sign on and if I can or am supposed to work 40 hours a week.\n\nAre any of those 4 things weird or something to be concerned about? Should I be asking about them before I sign, or just sign as I\u2019ll just learn about them and it\u2019s expected I\u2019ll be working 40 hours a week?", "comment": "You can ask them whether it's a full-time (40 hours per week or more) internship. \n\nTo the other stuff. They likely expect you to know basically nothing. Especially about their specific tech stack. They also probably haven't decided what you'll do, specifically. That may be up to your \"mentor\" as they see fit.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up5rf2", "question": "Since it makes up almost none of the galaxy's total mass, I'm wondering if it occupies the exact gravitational center, or if it too orbits that point.\n\nBonus question, since SagA revolves, is it's equator parallel to the galaxy's plane, or completely off-axis?", "comment": "No, the central black hole of a galaxy does not represent the 'orbital centre' of a galaxy.\n\nHowever, due to reasons we don't fully understand it is also pretty much as you say at the centre of the galaxy. I don't think the measurements exist to pinpoint the exact gravitational centre of the galaxy \n\nA common misconception is to think of it like the sun in the middle of the solar system. The SMBH in the middle of a galaxy, as you say, takes up a tiny fraction of the galaxies mass compared to star to its star system. \n\nThe actual idea of gravitional binding of galaxies together at the moment is dark matter, combined with the normal matter of the galaxies", "upvote_ratio": 520.0, "sub": "AskScience"} +{"thread_id": "up5rf2", "question": "Since it makes up almost none of the galaxy's total mass, I'm wondering if it occupies the exact gravitational center, or if it too orbits that point.\n\nBonus question, since SagA revolves, is it's equator parallel to the galaxy's plane, or completely off-axis?", "comment": "> Bonus question, since SagA revolves, is it's equator parallel to the galaxy's plane, or completely off-axis?\n\nThe new results from the EHT provide some of the first good evidence on that question. From other galaxies we know that the supermassive black hole does not have to align with the plane of its host galaxy - based on the angles of the relativistic jets coming off some supermassive black holes. Sgr A* does not have those jets, so it's harder to measure. But the new results indicate that its inclination is no more than 50 degrees.\n\nhttps://iopscience.iop.org/article/10.3847/2041-8213/ac6674", "upvote_ratio": 450.0, "sub": "AskScience"} +{"thread_id": "up5tt9", "question": "How did that change compared to how it was when you were younger?", "comment": "Well, I'm about to get a hip replacement so there's that. But I always laugh when someone asks if something is in walking distance, because I think, \"everything is in walking distance if you have enough time.\" \n\n\nBut it would depend on the tourist attraction. 10 miles for a pristine deserted beach on a crystal blue ocean. 5 miles for the great pyramids. 1 mile to your moms house. (Sorry, I've been on Reddit too long.)", "upvote_ratio": 80.0, "sub": "AskOldPeople"} +{"thread_id": "up5tt9", "question": "How did that change compared to how it was when you were younger?", "comment": "So I\u2019ve been very sedentary for about five years now. My knees are shot and my hip tends to cut circulation to my thigh if I stand up too long. Well this last January tickets to Europe were dirt cheap and I went to Germany, Paris and Rome. My iPhone showed I walked on average 11 miles per day in Paris and 12 in Rome. I also learned that buying ibuprofen over the counter comes with a stern lecture about over using it. Oh one more thing, everything in Paris is up at least two flights of stairs.", "upvote_ratio": 40.0, "sub": "AskOldPeople"} +{"thread_id": "up5tt9", "question": "How did that change compared to how it was when you were younger?", "comment": "Unfortunately now, very little. I used to enjoy hiking, walking tours and locating interesting off-the-beaten-trail locations. My walking days are pretty much done. My preference now is a good book and an easily accessible spot to hang in the sun.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "up624l", "question": "I have probably started and stopped learning programming a dozen or so times over the years, and each time I learn something new. One thing that has made coming back less enjoyable though, is the grind of having to hear the same basic lesson 1 over and over again. \n\n\nAn example of this is yesterday when I thought I would look into learning C a little bit. The first video I pull up is this guy explaining how compiling a code works, what it means to work with a compiler, the concept of a high level programming language, and the command \"printf\". He goes into excruciating detail of what it means to have the console print something, and how you can \"draw\" in the console by having it draw a series of slashes with line breaks. \n\n\nAll of that stuff is good to know if it's your first programming lesson ever, but it's hard to sit through when you've heard the same stuff over and over again. \n\n\nOn the other hand, I feel like experienced programmers are able to jump straight to the manuals of these languages and reference whatever syntax is needed. Never coded in Ruby before? No worries, just look up whether to use a \\[, a {, or a ; along with the proper way to store variables, make boolean statements, recall directories, etc, and you're good to go. I'm not there yet either. Or maybe I am and I just need more confidence, I don't know. \n\n\nIs this a well documented slump in the process? What helped you get over it?", "comment": "You have to just keep writing code. Once you have written many different programs, the syntax just falls into place.", "upvote_ratio": 1380.0, "sub": "LearnProgramming"} +{"thread_id": "up624l", "question": "I have probably started and stopped learning programming a dozen or so times over the years, and each time I learn something new. One thing that has made coming back less enjoyable though, is the grind of having to hear the same basic lesson 1 over and over again. \n\n\nAn example of this is yesterday when I thought I would look into learning C a little bit. The first video I pull up is this guy explaining how compiling a code works, what it means to work with a compiler, the concept of a high level programming language, and the command \"printf\". He goes into excruciating detail of what it means to have the console print something, and how you can \"draw\" in the console by having it draw a series of slashes with line breaks. \n\n\nAll of that stuff is good to know if it's your first programming lesson ever, but it's hard to sit through when you've heard the same stuff over and over again. \n\n\nOn the other hand, I feel like experienced programmers are able to jump straight to the manuals of these languages and reference whatever syntax is needed. Never coded in Ruby before? No worries, just look up whether to use a \\[, a {, or a ; along with the proper way to store variables, make boolean statements, recall directories, etc, and you're good to go. I'm not there yet either. Or maybe I am and I just need more confidence, I don't know. \n\n\nIs this a well documented slump in the process? What helped you get over it?", "comment": "Seriously one of the main point in learning anything that most tutorial rarely mention is patience. Things can get boring but you'll get through it. Also repetition is worth to do especially if you're still new.", "upvote_ratio": 440.0, "sub": "LearnProgramming"} +{"thread_id": "up624l", "question": "I have probably started and stopped learning programming a dozen or so times over the years, and each time I learn something new. One thing that has made coming back less enjoyable though, is the grind of having to hear the same basic lesson 1 over and over again. \n\n\nAn example of this is yesterday when I thought I would look into learning C a little bit. The first video I pull up is this guy explaining how compiling a code works, what it means to work with a compiler, the concept of a high level programming language, and the command \"printf\". He goes into excruciating detail of what it means to have the console print something, and how you can \"draw\" in the console by having it draw a series of slashes with line breaks. \n\n\nAll of that stuff is good to know if it's your first programming lesson ever, but it's hard to sit through when you've heard the same stuff over and over again. \n\n\nOn the other hand, I feel like experienced programmers are able to jump straight to the manuals of these languages and reference whatever syntax is needed. Never coded in Ruby before? No worries, just look up whether to use a \\[, a {, or a ; along with the proper way to store variables, make boolean statements, recall directories, etc, and you're good to go. I'm not there yet either. Or maybe I am and I just need more confidence, I don't know. \n\n\nIs this a well documented slump in the process? What helped you get over it?", "comment": "If you want a structured learning which is also free, try out The Odin Project, it\u2019s a free and open source site that teaches you full stack development. The thing is that you don\u2019t watch videos here, but read only the important articles and get used to writing code by actually writing it and finishing real life projects. It\u2019s tough but it makes you a better programmer! The best thing is that it\u2019s run by the Odin project community and is always being updated.\n\nLet me know if you have any questions", "upvote_ratio": 360.0, "sub": "LearnProgramming"} +{"thread_id": "up636s", "question": "Hello everyone... I am trying to learn the new features in C++20 (going through modules right now). I can't get the following code to compile using g++-11. \n\nMy code looks like this:\n\n // foo.cc\n export module foo;\n import <iostream>;\n import <vector>;\n \n export namespace foo{\n void hello(){\n std::vector<int> nums;\n std::cout<<\"Hello, world\\n\";\n }\n }\n \n // ---------------------------\n \n // main.cpp\n import foo;\n \n int main(){\n foo::hello();\n return 0;\n }\n \n\nI am compiling this using g++-11 like this:\n\n $ g++-11 -std=c++20 -fmodules-ts -c -x c++-system-header vector iostream\n $ g++-11 -std=c++20 -fmodules-ts -c foo.cc -o foo.o\n $ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o\n $ g++-11 -std=c++20 -fmodules-ts foo.o main.o -o foo.x\n\nMy [foo.cc](https://foo.cc) file compiles fine and produces foo.o and foo.gcm. But compiling main.cpp fails with the following error message:\n\n $ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o\n In module imported at main.cc:1:1:\n foo: error: failed to read compiled module: Bad file data\n foo: note: compiled module file is \u2018gcm.cache/foo.gcm\u2019\n foo: fatal error: returning to the gate for a mechanical issue\n compilation terminated.\n\nWhat am I doing wrong in my code? The code compiles if I remove the `std::vector<int>` variable from the `hello()` function.", "comment": "I feel your pain. I tried a few weeks back as well and ran into all kinds of issues when using modules. I reported the bugs I ran into to GCC bug tracker:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104924\n\nLooks like modules arent fully implemented yet in GCC unfortunately...I'm hoping they finish the implementation soon. Modules, I think, is one of those things that will really put C++ in a much better place as a language and we can say goodbye(no legacy code of course ) to header files in new code we write :).", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "up66w0", "question": "What happens if the US withdraw from NATO?", "comment": "China and Russia are extremely happy", "upvote_ratio": 6230.0, "sub": "AskAnAmerican"} +{"thread_id": "up66w0", "question": "What happens if the US withdraw from NATO?", "comment": "We won't.", "upvote_ratio": 2730.0, "sub": "AskAnAmerican"} +{"thread_id": "up66w0", "question": "What happens if the US withdraw from NATO?", "comment": "US soft power dwindles to near nothing in Europe.\n\nRelations with the EU will strain.\n\nAsian allies will look at us nervously.\n\nChina, Russia, Iran, and North Korea will be very happy.", "upvote_ratio": 1860.0, "sub": "AskAnAmerican"} +{"thread_id": "up67te", "question": "Hey, guys, I have this code going that determines the price of the rollercoaster ride but at the end it yields $0 as the bill. What am I doing wrong\n\n \n\nprint('Welcome to the rollercoaster') \nheight = int (input('What is your height in cm?: ')) \nbill = 0 \nif height >= 120: \n print('You can ride the rollercoaster') \n age= int(input('How old are you?: ')) \n if age <= 12: \n bill = 5 \n print('Your bill is $5') \n elif age <= 18 : \n bill = 7 \n print (\"Your bill is $7\") \n elif age >= 45 and 55 : \n bill = 0 \n print (\"You can ride the rollercoaster free\") \n else : \n print ('Your bill is $12') \n \n wants\\_photo = input (\"Do you want a photo taken? Y or N\") \n if wants\\_photo == \"Y\": \n bill += 3 \n print(*f*\"Your final bill is $ {bill}\") \n\n\nelse : \n print('You, need to be a little taller before you can ride')", "comment": " elif age >= 45 and 55 :\n bill = 0\n\n\"and 55\" evaluates to True. Did you mean\n\n elif age >= 45 and age <= 55:\n bill = 0", "upvote_ratio": 70.0, "sub": "LearnPython"} +{"thread_id": "up68m8", "question": "Going to be taking 1 full gel tab plus about 1/3 of another. Feel free to ask me anything!", "comment": "not a question just here to say stay safe have fun drink water. happy tripping!", "upvote_ratio": 90.0, "sub": "AMA"} +{"thread_id": "up68m8", "question": "Going to be taking 1 full gel tab plus about 1/3 of another. Feel free to ask me anything!", "comment": "Is this your first rodeo? \nYou with anybody?", "upvote_ratio": 40.0, "sub": "AMA"} +{"thread_id": "up68m8", "question": "Going to be taking 1 full gel tab plus about 1/3 of another. Feel free to ask me anything!", "comment": "what\u2019s your favorite vegetable, and why is it green beans?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up69da", "question": "When reusing strings, there's a trick you can do with .format() that I don't know how to do with f-strings. Consider the following:\n\n generic_string = \"First word: {0}, Second word: {1}.\"\n print(generic_string.format(\"hello\",\"world\"))\n print(generic_string.format(\"spam\",\"eggs\"))\n\nWhenever you want to call up the string with different inputs, you can use .format() to treat it almost like a function. But can the same be done with f-strings? I'd prefer to use the latest and greatest method for string formatting, but I don't see how to do so.", "comment": "If you want *delayed* formatting, f-string will not work because code in brackets is evaluated immediately when the string is built. You could wrap them but you would loose all the convenience of f strings.\nf-strings are good in some cases but not always, it is not the \"greatest\" method.", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "up69da", "question": "When reusing strings, there's a trick you can do with .format() that I don't know how to do with f-strings. Consider the following:\n\n generic_string = \"First word: {0}, Second word: {1}.\"\n print(generic_string.format(\"hello\",\"world\"))\n print(generic_string.format(\"spam\",\"eggs\"))\n\nWhenever you want to call up the string with different inputs, you can use .format() to treat it almost like a function. But can the same be done with f-strings? I'd prefer to use the latest and greatest method for string formatting, but I don't see how to do so.", "comment": "Maybe this:\n\n generic_string = lambda x,y: f\"First word: {x}, Second word: {y}.\"\n print(generic_string(\"hello\",\"world\"))\n print(generic_string(\"spam\",\"eggs\"))\n\nOr this:\n\n generic_string = lambda: f\"First word: {first}, Second word: {second}.\"\n first = \"hello\"\n second = \"world\"\n print(generic_string())\n first = \"spam\"\n second = \"eggs\"\n print(generic_string())", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up6d19", "question": "If you go to a restaurant and order carryout at the counter, do you tip? I didn\u2019t today and it felt a little weird since it was a restaurant, but I don\u2019t tip the folks at fast food places for putting my order in a machine either. \nThoughts?", "comment": "no. I dont tip.\n\nI tip, waiters who take my order bring it to me and pick up my trays after, food delivery drivers, hair cut lady. \n\nbut not if i'm going into a restaurant and buying food for myself to take home. other than taking my order and handing me my food. wtf service was i provided that i should tip extra.", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "up6d19", "question": "If you go to a restaurant and order carryout at the counter, do you tip? I didn\u2019t today and it felt a little weird since it was a restaurant, but I don\u2019t tip the folks at fast food places for putting my order in a machine either. \nThoughts?", "comment": "That would be like tipping the McDonald's cashier", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "up6d19", "question": "If you go to a restaurant and order carryout at the counter, do you tip? I didn\u2019t today and it felt a little weird since it was a restaurant, but I don\u2019t tip the folks at fast food places for putting my order in a machine either. \nThoughts?", "comment": "Always always tip! Just tip less with takeout.", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "up6kh5", "question": "title", "comment": "No.\n\nIt's not clear to me, to what specific end, one would do this. Unless you're reaaallllyyy dead-set on working at Square for some reason.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up6nf1", "question": "This app is imo better than all the other social media platforms to learn about things you're interested in and have small interactions with like minded people. But often it seems to be quite empty here except for the bigger subreddits maybe.", "comment": "because people (especially women) hear about all the negativity reddit provides and want to stay away", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "up6s8t", "question": "I'm learning about querying data from APIs with Javascript. I'd like to create my own at some point.\n\nHowever, a gap in my knowledge is where does the data that appears on the JSON files come from and how is it managed?\n\nMy gut instinct is that the data is held in a MySQL database and a serverside language like PHP creates and updates the JSON files periodically (or something similar to this). \n\nIs this correct?", "comment": "Not exactly. Mostly correct except it isn\u2019t written to a file. There are functions and methods in every language that can convert data of one type to another data type. In this case, it\u2019s converting arrays and objects into a json object. There isn\u2019t a file that is written to, as it would be the same thing, but with longer processing times as the file would have to be opened and read. A large json response could take quite a bit of time to read from a file. Instead the server just responds with the json object generated from the code.", "upvote_ratio": 70.0, "sub": "LearnProgramming"} +{"thread_id": "up6v62", "question": "Hi i am trying to make this so when the volume is turned up it rick rolls them\n\n from playsound import playsound\n from pynput.keyboard import Key, Controller\n import time\n \n \n keyboard = Controller()\n \n Code = 1\n \n while 2 > 1:\n time.sleep(1)\n keyboard.press(Key.media_volume_up)\n Code =+ 1\n \n \n \n \n if Code > 5:\n print(\"Laddies and gentlemen we gotem\")\n playsound('RickRoll.mp3')", "comment": "How many times you intend your while loop to run? Right now it will loop as long as 2 continues to be greater than 1.", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "up6w8k", "question": "Title.", "comment": "In most cases, people just use a \"feature-lite\" version of well known apps/websites/tools, like Twitter, Netflix/YouTube, URL Shortener, etc. There are lots of examples like:\n\n* High Scalability's [examples](http://highscalability.com/blog/category/example)\n* [Grokking System Design](https://github.com/Jeevan-kumar-Raj/Grokking-System-Design)\n* Exponent's [System Design Interviews](https://www.youtube.com/playlist?list=PLrtCHHeadkHptUb0gduz9pxLgvtKWznKj)\n* Gaurav Sen's [System Design videos](https://www.youtube.com/playlist?list=PLMCXHnjXnTnvo6alSjVkgxV-VH6EPyvoX)\n* Tushar Roy's [System Design videos](https://www.youtube.com/user/tusharroy2525/videos)\n* Tech Dummies [System Design videos](https://www.youtube.com/watch?v=mhUQe4BKZXs&list=PLkQkbY7JNJuBoTemzQfjym0sqbOHt5fnV)\n* Alex Xu's System Design Interview [website](https://bytebytego.com/courses/system-design-interview/scale-from-zero-to-millions-of-users) (Vol 1/Vol 2 available on Amazon)\n\nYou'll see a lot of overlapping examples between all the above links.", "upvote_ratio": 220.0, "sub": "CSCareerQuestions"} +{"thread_id": "up6w8k", "question": "Title.", "comment": "sure I'll make it right now: \n\n\nDesign Dropbox\n\nDesign Instagram\n\nDesign Twitter\n\nDesign SnapChat\n\nDesign Google Maps", "upvote_ratio": 110.0, "sub": "CSCareerQuestions"} +{"thread_id": "up6w8k", "question": "Title.", "comment": "Grokking", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up72xx", "question": "I want to go to a hackathon with 2 other friends who are also cs majors this summer, and we can\u2019t seem to find one that is free and is nearby\u2026 What should I do?\n\nHow did you find your first hackathon that you went to?", "comment": "[https://mlh.io/](https://mlh.io/) \nI found all the ones I went to here", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up76pu", "question": "What are some reasons why you got banned, whether temporarily or permanently from a subreddit?", "comment": "I got permanently banned from r/sustainable for linking a Harvard study that says that GMOs arent bad for you", "upvote_ratio": 60.0, "sub": "ask"} +{"thread_id": "up76pu", "question": "What are some reasons why you got banned, whether temporarily or permanently from a subreddit?", "comment": "I got banned from a leftist sub for calling out a mod for being racist. They were one of those idiots that think you can't be racist to white people. They were saying that racism requires power to oppress, when, in reality, hate towards someone based on skin color is racism. All racism is wrong and it should be called out every time it rears its ugly head. It doesn't matter who it's being used against.", "upvote_ratio": 60.0, "sub": "ask"} +{"thread_id": "up76pu", "question": "What are some reasons why you got banned, whether temporarily or permanently from a subreddit?", "comment": "I joined a subreddit and, without a shadow of doubt, i did not read the rules. I apparently \u2018reposted\u2019 a post sometime around 2017 and they just yelled at me for reposting and banned me. Idk, kinda stupid.", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "up77g6", "question": "I try to specialize on being an iOS developer, but one of my friends is trying to learn both because he says that he can earn more money that way. Is that true?", "comment": "I don\u2019t think it\u2019s super common for a single person to work on both platforms at once; all the mobile teams I\u2019ve heard of split developers by platform.\n\nThat\u2019s not to say it\u2019s impossible. I could see a small startup needing someone to do both.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up77g6", "question": "I try to specialize on being an iOS developer, but one of my friends is trying to learn both because he says that he can earn more money that way. Is that true?", "comment": "If a company has native apps, they will have android devs and iOS devs, not one guy who can kinda do both.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up7b94", "question": "According to Wikipedia (https://en.m.wikipedia.org/wiki/Chimor)\n\n>According to legend, its capital of Chan Chan was founded by Taycanamo, who arrived in the area by sea.", "comment": "I was really intrigued by this so I thought I\u2019d take a look.\n\nThe Wikipedia article doesn\u2019t say that the first king of Chimor came from the *west*, just that he came by sea.\n\nPage 783 of the \u2018*Handbook of South American Archaeology*\u2019 contains a short account of these origins: \n>A foreign noble named Taycanamo arrived in the Moche Valley, disembarking from a balsa log raft like those from far northern Peru and claiming to be sent by a great lord, from across the sea.\n\nThe authors cite \u2018Rowe 1948: 28-30\u2019, which is the book \u2018*The Kingdom of the Chimor*\u2019 by J.H. Rowe, which also contains a similar passage, translated from a 1604 writing titled \u2018*An Anonymous History of Trujillo*\u2019: \n>It is not known whence came this\u2026 except that he gave them to understand that a great lord\u2026 had sent him to govern this land\u2026 from across the sea. The yellow powders which he used in his ceremonies and the cotton cloths which he wore to cover his shameful parts are well known in these lands and the balsa of logs is used on the coast of Payta and Tumbez from which it is presumed that this Indian did not come from a very distant region.\n\nAs you can see, it seems that Taycamo came by sea from somewhere in northern Peru, close to the lands of the Chimor. \nIn fact, if we look at the map on page 29 of Rowe\u2019s book, we can see that Payta and Tumbez (where Taycamo\u2019s balsa of logs apparently looks like it came from) is not very far from the kingdom of Chimor, and Taycamo\u2019s ceremonial and clothing style was apparently already familiar to these people.\n\nUnfortunately neither of these sources elaborate on whether they think this account is historically accurate, but if it is true, then it appears that Taycamo traveled a comparatively short distance by sea, rather than coming from the west.\n\nBibliography: \n[Moore, J.D. and Carol, J.M. (2008). Handbook of South American Archaeology, p.738.](https://books.google.co.uk/books?id=5t4I3hFPyfcC&printsec=frontcover&source=gbs_atb#v=onepage&q&f=false)\n\n[Rowe, J.H. (1948). The Kingdom of the Chimor, p.28-29](https://books.google.co.uk/books?id=5t4I3hFPyfcC&printsec=frontcover&source=gbs_atb#v=onepage&q&f=false)", "upvote_ratio": 1300.0, "sub": "AskHistorians"} +{"thread_id": "up7fhy", "question": "What WOULD you wish on your worst enemy?", "comment": "Permanent Cheeto fingers. Just orange cheese dust getting on everything", "upvote_ratio": 58050.0, "sub": "AskReddit"} +{"thread_id": "up7fhy", "question": "What WOULD you wish on your worst enemy?", "comment": "Always being hungry two hours after eating no matter how large the meal. Slow internet. Traffic jams no matter the location. Self doubt. Allergies. Favorite shows spoiled.\n\nNothing major enough to be life altering but constant, low grade inconveniences that wear on your soul every day.", "upvote_ratio": 45390.0, "sub": "AskReddit"} +{"thread_id": "up7fhy", "question": "What WOULD you wish on your worst enemy?", "comment": "Stubbing and breaking their toe and right as it\u2019s about to be done healing it happens again over and over for the rest of their pitiful time on this hell we call earth", "upvote_ratio": 39330.0, "sub": "AskReddit"} +{"thread_id": "up7fn8", "question": "As the title states, my parents owned slaves in Nigeria before we moved to Sweden.", "comment": "You\u2019re just gonna make this troll post and ignore all the questions?", "upvote_ratio": 50.0, "sub": "AMA"} +{"thread_id": "up7fn8", "question": "As the title states, my parents owned slaves in Nigeria before we moved to Sweden.", "comment": "Is that pretty common in Nigeria and Africa ? What exactly do they do ? House work like maids and cooks ? Manual farming like the old south ?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up7gf5", "question": "What do I say when I approach a girl like how do I get her number", "comment": "Always from the front. Creeping up behind them will get you in trouble.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "up7kvh", "question": "Does it get harder or is it just brain dead projects all the way through?", "comment": "Depends on your teachers.\n\nSome are as lazy af and give the same tired ass problem sets year after year and collect a paycheck. \n\nSome are just teaching while the continue their own education and don't really care about the class, just check the box. They are late for class all the time, they rarely grade anything until late in the semester.\n\nSome are just the easy A teachers. They are slow and go over things 900 times and then give you a simple test over it, with tons of bonus and give you 45/50 when half your project doesn't even work right. \n\nSome are that impossible guy that makes you code everything in notepad, and genuinely gives you 10x the information and material as the other teachers. Forces you to learn through 15+ hour problem sets. Tells you the problems on the test beforehand and still has a class average of 38%.", "upvote_ratio": 340.0, "sub": "LearnProgramming"} +{"thread_id": "up7kvh", "question": "Does it get harder or is it just brain dead projects all the way through?", "comment": "My programming teachers basically required you to bulletproof your code, so that was fun. If an ATM program asked for four numbers, you had better make sure that four characters are input, then make sure that all four characters are numbers. If you're doing a Fahrenheit to Celsius calculator and the teacher tells you that it can't go below absolute zero, you have to do that. If you're writing a, \"What day of the week was this date?\" program, you have to remember that leap years are not necessarily every four years *and* that there was no year zero.\n\nI think that the best thing that came out of my taking college Computer Science classes was having to accomplish the task at hand, rather than just following a tutorial. A tutorial says, \"Here's the beginning, here's the end. I don't give a shit if you get it right in between, because you can just go to the next tutorial, regardless of if you don't get it. Better yet, you can just look up the answer and delude yourself into thinking you learned something.\"\n\nThe second best thing that came out of it was meeting people who were as interested in programming as I was, where we'd take our mid-class break and go outside for a cigarette and talk about what we were learning. And then we'd go back in and ask questions of the teacher and say, \"So, what happens if we try to allocate so much memory for an array that we run into another sandbox?\" And we could get answers for that immediately, and immediately ask follow-up questions. \n\nNot all teachers are shit. Seriously. My favorites were the adjuncts who had day jobs as programmers and they taught night classes for extra money, because they were working in the field every day, so they'd tell you how to write better code, because they had to. The best one I ever had took the section on sorting algorithms exceptionally seriously, because he programmed for high-frequency trading systems, so he knew how every millisecond was an eternity, so he really wanted us to know why and when some sorting algorithms were better than others.\n\nSo, just because other people want to slag college teachers because of the shitty experience they may or may not have had doesn't mean they're all garbage. I learned from a guy who worked for AT&T when the nationwide long-distance network went down for eight hours, and he walked us through the offending code, which made us learn and respect the break statement. Some of these people have been around, and they can tell you things that nobody else can. Sometimes they're just anecdotes, and sometimes they're trying to impart really useful information, but what's common with good instructors is that they want to make you better than you are.", "upvote_ratio": 280.0, "sub": "LearnProgramming"} +{"thread_id": "up7kvh", "question": "Does it get harder or is it just brain dead projects all the way through?", "comment": "What year of college are you in? For me the first year/semester the projects are kinda simple but once you move to other classes beyond the intro ones yes it gets alot harder. Of course it also depends on the professor you have.\n\nThese courses assume the student has 0 knowledge on programming so they start off with easier projects.", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "up7l43", "question": "has the us military developed a nuclear use policy or protocol in the event of a civil war?", "comment": "I would doubt it. First, the nuclear use policies regarding use of weapons are all designed around the idea of a coherent, unitary executive in the federal government. They are not specific to any particular \"enemy\" \u2014 they are about enabling the President and the Secretary of Defense to create and implement nuclear policies. \n\nThe actual \"war plans,\" like the SIOP, are designed around specific foreign enemies in mind. Those are already complex enough; it is hard to imagine how they would develop such a thing for a hypothetical domestic enemy in a hypothetical domestic civil war, the parties of which are anything but clear. \n\nAssuming a continuity of military power and policy, the existing frameworks probably suffice for adapting to any such situations. If one does not assume that (e.g., if one assumes the military itself is fractured by such a thing), then probably all of that is up in the air. I have never seen any indication that any official policies have ever taken this possibility seriously (for good or ill).", "upvote_ratio": 180.0, "sub": "AskHistorians"} +{"thread_id": "up7n21", "question": "I got falsely charged with manslaughter over a meme AMA", "comment": "How?", "upvote_ratio": 510.0, "sub": "AMA"} +{"thread_id": "up7n21", "question": "I got falsely charged with manslaughter over a meme AMA", "comment": "This seems very unrealistic. How could any police department or government official think that a meme could count as a murder confession, especially one warranting criminal charges, without any evidence beyond that? I\u2019m sorry if this is the truth and this did happen, but this just isn\u2019t believable to me.", "upvote_ratio": 440.0, "sub": "AMA"} +{"thread_id": "up7n21", "question": "I got falsely charged with manslaughter over a meme AMA", "comment": "Did you learn anything from the experience?", "upvote_ratio": 130.0, "sub": "AMA"} +{"thread_id": "up7r8d", "question": "I\u2019m about halfway through my Comp Sci degree and of course, went and applied for internships this summer. I got a couple offers and finally accepted one that I thought I would learn the most at. This internship was supposed to start next week but I got a call today that due to \u201cbudgetary\u201d reasons, the internship was going ti be cancelled. Long story short, I quit my job and decided not to take summer classes for this internship. Obviously, being summer, I don\u2019t see myself finding another internship so I\u2019m just going to enroll back into school to take more classes. The questions I have are 1) how crucial is it for me to have an internship for further job prospects? Should I delay my degree in order to get an internship? And 2) are there jobs that I could do that would look good on my resume when it comes to getting a software dev/engineer position in the future? I apply to Jr level positions all the time but it seems that the biggest limiting favorite is lack of experience. I appreciate any advice through this!", "comment": "If you\u2019re feeling bold I would call the other companies that gave you offers and let them know you\u2019re other offer fell through, worst case scenario they can\u2019t help you, best case they have a position open. But overall I would say don\u2019t delay your degree for an internship, unless its from a really nice company. Lots of people graduate with no experience and still manage to find 70k jobs right out of college (at least in my region).", "upvote_ratio": 100.0, "sub": "CSCareerQuestions"} +{"thread_id": "up7w72", "question": "What is something you're willing to admit only to a community of total strangers on the internet?", "comment": "I shat my pants at a concert from a fart. I ended up driving home, showering, changing, then ended up getting back to the concert just as it ended to drive friends back home. When they asked where I was I just told them I lost them in the crowd and that the concert was awesome. \n\nThankfully I didn't fart in the car on the way home.", "upvote_ratio": 185380.0, "sub": "AskReddit"} +{"thread_id": "up7w72", "question": "What is something you're willing to admit only to a community of total strangers on the internet?", "comment": "That my friends from highschool are still the closest thing I have to friends even though we talk maximum once or twice a year and they\u2019ve all moved on by now", "upvote_ratio": 164810.0, "sub": "AskReddit"} +{"thread_id": "up7w72", "question": "What is something you're willing to admit only to a community of total strangers on the internet?", "comment": "My husband died of lung cancer 9 months ago, he battled very hard and survived for 16 months after being told he had 6. I was so proud of him, he was my rock and my true love. \n\nBut, I am not as sad as people assume I should be. A song comes on the radio that he would sing to me, and I will pull over and cry, but I've read other peoples accounts, who have lost their partner around the same time as I did and they are crying every day still. \n\nI never did that, and to be honest, I feel content in my life. I am not ready ro start dating again, I talk about him like he is still here with me. One of my clients who I see twice a week didn't know for about 6 months what had happened for example. \n\nI feel guilty and proud that I am not destroyed by losing my husband, but, fuck, I wish he were here with me.", "upvote_ratio": 115970.0, "sub": "AskReddit"} +{"thread_id": "up7zb1", "question": "So far I know of 3 Odin Project, Free Code Camp and MDN webdevelopment. But that's that, I was wondering if anyone here know more than those 3? Also how long did it took you to get from where you are right now?", "comment": "> How long does it usually take to be proficient?\n\nHow many meals do I need to make before I can apply for positions as a chef?\n\nThere's no hard definition of what it means to be \"proficient\". Everyone has their own definition, and I don't think it is very useful or important to try and come up with a definition either. Focus on goals and what it'll take to get you there.\n\n> So far I know of 3 Odin Project, Free Code Camp and MDN webdevelopment. But that's that, I was wondering if anyone here know more than those 3?\n\nhttps://github.com/ossu/computer-science\n\n> Also how long did it took you to get from where you are right now?\n\nAt this point, around 20 years I guess? And next year it'll be around 21 years :)", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "up7zbj", "question": "Asian woman in her early 30s!!! Ask me anything you\u2019ve ever wanted to ask an Asian woman or person but didn\u2019t want to feel judged!", "comment": "Are you really pixelated down there?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "up7zkz", "question": "Will I be at a disadvantage when I do job interviews if I don't know c++? Will python, Java,C and SQL alone be enough to get a foot in the door?", "comment": "Depends. Are you applying to c++ dev jobs? If so it would probably help to know c++. If not- I don't see how it would be relevant.", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "up7zkz", "question": "Will I be at a disadvantage when I do job interviews if I don't know c++? Will python, Java,C and SQL alone be enough to get a foot in the door?", "comment": "You're getting too fixated on specific languages. Unless the job you are applying for is specifically hiring an expert in a specific language they generally don't care that much what specific language you know. If the job uses C++ you can learn C++ and if it uses C# you can learn C#. For entry-level jobs the expectations are very low.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "up7zkz", "question": "Will I be at a disadvantage when I do job interviews if I don't know c++? Will python, Java,C and SQL alone be enough to get a foot in the door?", "comment": "That should be enough. I got a job with less than that.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "up82wp", "question": "I created a [function](https://paste.pythondiscord.com/yeyusibavu) that reads a specific CSV file. I got points off because because the instructor was not able to enter the path of a CSV file of grade (the CSV file is called grade). What exactly does this mean? And how would I incorporate that into this portion of my code?", "comment": "What if the file isn't called `grades.csv`, or isn't in the working directory? How is the user able to set that file path without modifying the code?\n\nThe instructor means that the user should be capable of specifying that file location when they run your script.", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "up82wp", "question": "I created a [function](https://paste.pythondiscord.com/yeyusibavu) that reads a specific CSV file. I got points off because because the instructor was not able to enter the path of a CSV file of grade (the CSV file is called grade). What exactly does this mean? And how would I incorporate that into this portion of my code?", "comment": "The problem description probably said something like the path to the file must be entered by the user. So you need a line like:\n\n path = input('Enter path to the CSV file: ')", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up8328", "question": "x = playerStrModifier #modifier is underlined, not working\n\nif playerStr == (1, 3):\n playerStrModifier = x = -4\n\nelif playerStr == (4, 5):\n playerStrModifier = x = -3\n\nelif playerStr == (6, 7):\n playerStrModifier = x = -2\n\nelif playerStr == (8, 9):\n playerStrModifier = x = -1\n\nelif playerStr == (10, 11):\n playerStrModifier = x = 0\n\nelif playerStr == (12, 13):\n playerStrModifier = x = 1\n\nelif playerStr == (14, 15):\n playerStrModifier = x = 2\n\nelif playerStr == (16, 17):\n playerStrModifier = x = 3\n\nelif playerStr == (18, 19, 20):\n playerStrModifier = x = 4\n\n\u2026\nprint(\u201cSTR\u201d, playerSTR, playerStrModifier)\n\n\nplayerStrModifier is underlined and producing errors in the first line\n\n\nIgnore some of the awful coding, this is my first time and some other things might be wrong (symbols ect) cause I\u2019m writing this on phone", "comment": "Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.\n\nI think I have detected some formatting issues with your submission:\n\n1. Python code found in submission text that's not formatted as code.\n\nIf I am correct, please edit the text in your post and try to follow [these instructions](https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F) to fix up your post's formatting.\n\n___\n\n^(Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue )^[here](https://github.com/0Hughman0/pyredditformatbot/issues).", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up85hw", "question": "I was going over *STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS (SICP)* book and it came off as a surprise to me that LISP is the first language this book introduces. Wikipedia states LISP as a high level programming language younger to FORTRAN by one year. One question that lingered as I went over the book is why not start with C or C++ or python. LISP, being an old programming language, what makes it worth it for the CS newbies?", "comment": "First of all, the book is older than python and C++.\n\nSecond, LISP is an elegant language with a simple and consistent structure, making it well-suited for the given topic. It's easy to create an interpreter for.", "upvote_ratio": 50.0, "sub": "LearnProgramming"} +{"thread_id": "up85pb", "question": "As a little programming project I wanted to make a simple password manager, probably in C++ or Python. I want to try and move away from Google knowing all my passwords so I was just going to make a simple CLI interface program that I could search up any website I may have credentials for and then be able to see my username and password. Anyhow, even though I am going to be storing passwords on my own computer, I don't feel safe just saving them in a txt or csv file. What would be the best way to go about storing credentials that would still enable me to access them with said program. I have been programming and studying CS for some years now, I just had no experience in this sort of topic. Thanks!", "comment": "Honestly, it\u2019s better to use a premade password manager if you are after security, but if it\u2019s for learning, hashing the passwords and storing in a file should be fine.", "upvote_ratio": 80.0, "sub": "LearnProgramming"} +{"thread_id": "up87ww", "question": "Hello! I am a Registered Nurse trying to change career to CS. I started doing class in udemy about the java programming masterclass by Tim Buchalka. Am i in the right track? Thankyou in advance.", "comment": "Good luck to you from another nurse who is switching to programming. :)", "upvote_ratio": 110.0, "sub": "LearnProgramming"} +{"thread_id": "up87ww", "question": "Hello! I am a Registered Nurse trying to change career to CS. I started doing class in udemy about the java programming masterclass by Tim Buchalka. Am i in the right track? Thankyou in advance.", "comment": "Hey! I\u2019m a medical assistant making the switch to programming! I had planned on going for RN until I realized you too have it pretty bad. I\u2019m really new and haven\u2019t done much outside of Freecodecamp and Codecademy but I just want to wish you the best of luck!", "upvote_ratio": 70.0, "sub": "LearnProgramming"} +{"thread_id": "up87ww", "question": "Hello! I am a Registered Nurse trying to change career to CS. I started doing class in udemy about the java programming masterclass by Tim Buchalka. Am i in the right track? Thankyou in advance.", "comment": "Sorry in advance if this is too far outside what you are looking for, but, as someone who regularly hires data experts, the combination of real world health care knowledge and an ability to do data related programming work (data science at the high end or business intelligence extract and analysis work in SQL or Python for more intro work) is absolute gold, it is so hard to find and it\u2019s useful in everything from charities analyzing their impact, to medical researchers running large scale studies, to health insurance software. So my rec would be to focus on data CS skills and market yourself as a health data scientist.\n\nEdited to add: and good luck!", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "up88u7", "question": "Hey guys! I have a Bach degree in Finance, but I'd like to get a career in IT. I dont want anything fancy, I'm not going to work for the Big Ns, I just want to work in a position related to networking/IT/Security kind of work. I'm getting the CompTIA stuff so I can have something tech related to put on my resume. I'll probably start work on a degree in IT/CS eventually, but for now, I have what I have.\n\nThere seem to be two popular entry level jobs in my area: One is a support job troubleshooting with clients over the Phone. The other is a technician job working in a mom-and-pop that does residential computer repair and offers some IT and networking service to local businesses.\n\nSo I have two questions: which of these two jobs will be better for me to learn in, and which would be better on a resume? Those are the two deciding factors for me. \n\nThanks!", "comment": "r/ITCareerQuestions", "upvote_ratio": 60.0, "sub": "CSCareerQuestions"} +{"thread_id": "up8c20", "question": "Like online db then offline db in android", "comment": "There are a lot of ways to tackle this, but the biggest design decision you need to make is figuring out how to deal with conflicts. A conflict happens when the user updates their locally stored data while offline, then comes back online and finds that the online copy has changed in a different way.\n\nThere are many ways you might handle this, such as:\n\n* Keep one set of data and use it to overwrite the other copy, losing one set of changes (this should be avoided if at all possible)\n* Try to perform a \"merging\" algorithm on the two copies, for instance by storing your data in a [CRDT](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type)\n* Maintain logs of the operations performed by the user, and upon reconnection, replay the log on top of the updated state (similar to \"git rebase\")\n* Ask the user what to do\n\nYou can implement the sync algorithm from scratch, or you can use tools like [CouchDB](https://couchdb.apache.org/) and [turtleDB](https://turtle-db.github.io/) to help you.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "up8d5c", "question": "Like google sheets, multiple people using and editing it at the same time", "comment": "Probably sockets, threads, synchronized methods, some static datastructure that gets rebroadcast each time it's edited.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "up8i9w", "question": "I get how PA catheters can measure RAP, PAP, and PAOP but the text I'm reading says \"the lumen near the distal tip measures changes in core temperature, which is essential for measuring cardiac output.\" My question is how? Thanks in advance!", "comment": "It's called Theromodilution.\n\nyou inject cold saline into the catheter and the catheter has a thermometer to measure how quickly the temperature changes, and then It calculates the CO from the drop in temperature, and subsequent normalization of the temp.", "upvote_ratio": 120.0, "sub": "AskScience"} +{"thread_id": "up8l4c", "question": "What type of person angers you the most?", "comment": "People who try to make other people miserable just because they are miserable.", "upvote_ratio": 3410.0, "sub": "AskReddit"} +{"thread_id": "up8l4c", "question": "What type of person angers you the most?", "comment": "People who dig their heels in and refuse to admit they fucked up.", "upvote_ratio": 1660.0, "sub": "AskReddit"} +{"thread_id": "up8l4c", "question": "What type of person angers you the most?", "comment": "A hypocrite. Simple.", "upvote_ratio": 1360.0, "sub": "AskReddit"} +{"thread_id": "up8lyw", "question": "I just got some nice bluetooth headphones for my S10 on the latest Android 12 update and I just discovered that I can't really use them because the volume steps built into Android are so drastic. It goes from way too soft to way too loud instantly in one click, and there's no in between.... WTF!\n\n&#x200B;\n\nLooking around I am not finding a solution. The 'disable absolute volume' option didn't have any effect. Is there seriously no fix for this? It's unbelievably shitty design in an otherwise awesome ecosystem. I can't believe it hasn't been addressed. WTF is the point of these amazing BT codecs when you can't even play music at the right volume???", "comment": "S10 as in Samsung S10? Get Sound Assistant from Galaxy App Store. You can change the volume steps there. You can make it like have up to 150 steps.", "upvote_ratio": 130.0, "sub": "AndroidQuestions"} +{"thread_id": "up8o94", "question": "I have tried googling this, literally no where I could see has the answer, they just tell me ways to quench", "comment": "steel contains carbon which is a much smaller atom than iron, but still too big to fit into the interstitial space in the iron crystal structure, so the carbon concentrates around the grain boundaries, when steel is heated the crystal structure expands allowing the carbon atoms to migrate into the interstitial space, quenching cools it down so fast that the carbon cannot migrate back out and the result is a distorted crystal structure called martensite. the distorted crystal is under tension and results in harder material. steel with very low carbon such as mild steel cannot be hardened by quenching\n\ncopper is not affected by quenching, but it is softened ('normalized') by heating. the heat allows the atoms to jiggle around slightly and relieve stresses and distortions in the crystal structure.", "upvote_ratio": 920.0, "sub": "AskScience"} +{"thread_id": "up8o94", "question": "I have tried googling this, literally no where I could see has the answer, they just tell me ways to quench", "comment": "Steel goes through different crystalline states as it is heated or cooled. Cooling rapidly locks in a crystalline state that is hard, less likely to stretch under load, but also more brittle. Copper doesn\u2019t go though the same type of crystalline changes, so quenching doesn\u2019t harden it the same way.", "upvote_ratio": 100.0, "sub": "AskScience"} +{"thread_id": "up8olo", "question": "Hi all,\n\nAlright so basically here's the breakdown.\n\n**role:** Help Desk Analyst I around 45k plus OT\n\n**daily activities so far:** password resets, printer setups, onboarding/offboarding, toning cables/ports, random computer troubleshooting/break-fix, laptop deployments, and dealing with ticketing software\n\n**experience:** a little over 2 years\n\n**degrees:** tech degree in infosys and ba in humanities\n\n**certs:** none atm\n\n**age:** *late* 20s\n\n**other:** still trying to learn and apply scripting in the real word... it's difficult\n\n&#x200B;\n\nI feel like I'm starting to get trapped into help desk and might even be my own fault. Granted, I got a bit of a late start in the industry, nevertheless I'm moving forward. I still don't really have a good sense or understanding of which direction to branch off in. I was thinking maybe security, but that very well could be the \"glamour\" or \"prestige\" behind it talking idk. Boss keeps talking about Net+ but I'm kinda against going down the networking route. I don't plan on taking A+. I've been considering Sec+ or Linux+. I keep coming back to Security, Cloud, and Linux ideas.\n\nHope this makes sense. Any advice/feedback is much appreciated!", "comment": "To be in security you will need more experience. I recommend going for your Net+ and Sec+. Then try to get a Jr Sys Admin or Jr Net Engineer role. Or if you're really set on security, being a SOC analyst is a good way to go after having some helpdesk under your belt.\n\nThe common misconception is that there are entry level cyber security positions. There are not. Sure Calculus 101 is an entry level calculus course but it is by no means an entry level math course.\n\nYou need a somewhat decent foundation in every IT field to be a decent cyber security professional. You don't need to be a skilled programmer or expert network engineer, but you need to have a bit of knowledge in each area.\n\nTLDR: Go for some certs and look for either a SOC Analyst role, or some type of Jr Sys Admin or Jr Net Engineer position.", "upvote_ratio": 80.0, "sub": "ITCareerQuestions"} +{"thread_id": "up8olo", "question": "Hi all,\n\nAlright so basically here's the breakdown.\n\n**role:** Help Desk Analyst I around 45k plus OT\n\n**daily activities so far:** password resets, printer setups, onboarding/offboarding, toning cables/ports, random computer troubleshooting/break-fix, laptop deployments, and dealing with ticketing software\n\n**experience:** a little over 2 years\n\n**degrees:** tech degree in infosys and ba in humanities\n\n**certs:** none atm\n\n**age:** *late* 20s\n\n**other:** still trying to learn and apply scripting in the real word... it's difficult\n\n&#x200B;\n\nI feel like I'm starting to get trapped into help desk and might even be my own fault. Granted, I got a bit of a late start in the industry, nevertheless I'm moving forward. I still don't really have a good sense or understanding of which direction to branch off in. I was thinking maybe security, but that very well could be the \"glamour\" or \"prestige\" behind it talking idk. Boss keeps talking about Net+ but I'm kinda against going down the networking route. I don't plan on taking A+. I've been considering Sec+ or Linux+. I keep coming back to Security, Cloud, and Linux ideas.\n\nHope this makes sense. Any advice/feedback is much appreciated!", "comment": "Don't you need a solid understanding in networking to get into security?", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "up8uvm", "question": "I have two regular eyes, and my parents and family all have two regular eyes. So when I talk to a person with a fake eye, I don\u2019t know which one to look at. Sometimes I try hard to stare into both eyes, but feel like I make a weird face when doing so. Sometimes I can\u2019t tell, and stare at one eye, only to realize after a few minutes that I\u2019m looking at the fake one (or at least I think it is fake because it doesn\u2019t move). In this situation, it is acceptable? Do I apologize? Is the fake eye person used to it, so I just shift to the real eye without saying anything? Is it as awkward for them as it is for me?", "comment": "Stare between the eyes. I do the same with people that have lazy eyes.", "upvote_ratio": 180.0, "sub": "NoStupidQuestions"} +{"thread_id": "up8uvm", "question": "I have two regular eyes, and my parents and family all have two regular eyes. So when I talk to a person with a fake eye, I don\u2019t know which one to look at. Sometimes I try hard to stare into both eyes, but feel like I make a weird face when doing so. Sometimes I can\u2019t tell, and stare at one eye, only to realize after a few minutes that I\u2019m looking at the fake one (or at least I think it is fake because it doesn\u2019t move). In this situation, it is acceptable? Do I apologize? Is the fake eye person used to it, so I just shift to the real eye without saying anything? Is it as awkward for them as it is for me?", "comment": "Look at them the same way you would anyone else.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "up8uvm", "question": "I have two regular eyes, and my parents and family all have two regular eyes. So when I talk to a person with a fake eye, I don\u2019t know which one to look at. Sometimes I try hard to stare into both eyes, but feel like I make a weird face when doing so. Sometimes I can\u2019t tell, and stare at one eye, only to realize after a few minutes that I\u2019m looking at the fake one (or at least I think it is fake because it doesn\u2019t move). In this situation, it is acceptable? Do I apologize? Is the fake eye person used to it, so I just shift to the real eye without saying anything? Is it as awkward for them as it is for me?", "comment": "Two eyes: Look them in the eyes.\n\nOne eye: Look them in the eye.\n\nNo eyes: They won't notice.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "up92fa", "question": "I'm going to graduate but I don't know which backend language should I specialise in?\n\nI would like to know out of the 3 languages, which would pay more on average?\n\nI'm inching towards Java because I realised alot of enterprise uses that\n\nMy long term goal is being able to work in finance industry, either in hedge funds or trading houses, as a programmer", "comment": "You don't \"pick\" a language to specialize in. That's not how that works. You get a job and then you attain expertise in whatever languages your job uses. The specific language you pick really doesn't matter that much. You just need to retain the ability to learn and you'll be able to pick up any language you need to in the future.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "up9il2", "question": "I was offered a job to move on from my SysAdmin role for a remote Security Engineer role. I tried to counter their offer but they would not budge. It's a 14% pay increase for me + remote so come Monday I am going to accept it. I had been working toward Cyber for a few years now and applied to hundreds of jobs and finally got through to one to make the move over from SysAdmin and have it be remote.\n\nThe problem I have is I have had a great time at my current company for the last 5 years, I have even tried to step up and take on more Security/Cloud roles but they won't budge. Plus in-office/ hybrid just is not for me, especially after 2 years of remote, then they wanted us back in the office. Feeling stuck as a SysAdmin and having an interest in security is what drove me to work toward a Cyber Full-time Role. I had been working toward it with Certs since 2019(pre-pandemic)\n\nIs it normal that I am worked up about putting in my notice? \n\nAny advice?\n\nI know I will not burn bridges, my managers and most of my co-workers have been great, but the job is just stale for me at the moment and 5 years is a pretty good clip at one place.", "comment": "It's usually normal to feel anxious about leave something you know and on to something new. I felt like that every time I left an old job. Even if it was a bad job I still felt nervous. Always worried about if I can actually do the work or if it's worst than the place km leaving. So far neither things have been true, but I've heard horror stories.", "upvote_ratio": 910.0, "sub": "ITCareerQuestions"} +{"thread_id": "up9il2", "question": "I was offered a job to move on from my SysAdmin role for a remote Security Engineer role. I tried to counter their offer but they would not budge. It's a 14% pay increase for me + remote so come Monday I am going to accept it. I had been working toward Cyber for a few years now and applied to hundreds of jobs and finally got through to one to make the move over from SysAdmin and have it be remote.\n\nThe problem I have is I have had a great time at my current company for the last 5 years, I have even tried to step up and take on more Security/Cloud roles but they won't budge. Plus in-office/ hybrid just is not for me, especially after 2 years of remote, then they wanted us back in the office. Feeling stuck as a SysAdmin and having an interest in security is what drove me to work toward a Cyber Full-time Role. I had been working toward it with Certs since 2019(pre-pandemic)\n\nIs it normal that I am worked up about putting in my notice? \n\nAny advice?\n\nI know I will not burn bridges, my managers and most of my co-workers have been great, but the job is just stale for me at the moment and 5 years is a pretty good clip at one place.", "comment": "Every time. And it's perfectly fine.\n\nYour old boss will understand. Your old peers will be happy for you.\n\nYour new team will welcome you.\n\nStill scary as hell though.", "upvote_ratio": 380.0, "sub": "ITCareerQuestions"} +{"thread_id": "up9il2", "question": "I was offered a job to move on from my SysAdmin role for a remote Security Engineer role. I tried to counter their offer but they would not budge. It's a 14% pay increase for me + remote so come Monday I am going to accept it. I had been working toward Cyber for a few years now and applied to hundreds of jobs and finally got through to one to make the move over from SysAdmin and have it be remote.\n\nThe problem I have is I have had a great time at my current company for the last 5 years, I have even tried to step up and take on more Security/Cloud roles but they won't budge. Plus in-office/ hybrid just is not for me, especially after 2 years of remote, then they wanted us back in the office. Feeling stuck as a SysAdmin and having an interest in security is what drove me to work toward a Cyber Full-time Role. I had been working toward it with Certs since 2019(pre-pandemic)\n\nIs it normal that I am worked up about putting in my notice? \n\nAny advice?\n\nI know I will not burn bridges, my managers and most of my co-workers have been great, but the job is just stale for me at the moment and 5 years is a pretty good clip at one place.", "comment": "Man I was so nervous just like you going from MSP helldesk to Vulnerability Engineer no idea what I was getting into...\n\nIts 10x easier and everyone says I'm doing a great job even though I maybe do 10 hours of work a week. 15 this week, was the busiest we had haha we joked that Wednesday felt like a real job.\n\nJust role with it, I bet it will be easier than what you were doing ad a sysadmin.", "upvote_ratio": 90.0, "sub": "ITCareerQuestions"} +{"thread_id": "up9vud", "question": "Like, what is the point of them and how do they work?\n\nTo me, they look similar to modules but are clearly not the same. I found that its some sort of grouping method? so it basically takes a bunch of modules and group them together?\n\n&#x200B;\n\nHow would I go about making a class even?", "comment": "They're a way of thinking about a problem. Instead of saying I kick the ball, I throw the ball, you think in terms of a ball and what you can do with it: you can kick it, throw it, pick it up, etc. \n\nIn other words instead of action/object, your thinking transforms to object/action. The object is primary, and the actions you can perform on it are secondary. \n\nIf you think about it, reality is object-oriented. I can wear my watch, set my watch, lose my watch, put my watch in the drawer, etc. I do things with my car. I drive my car, park my car, register my car, lock my car. I do things with my feet. Put shoes on them, walk with them, wash them, etc. My feet have components, like my toes. My toes are objects too. I can wiggle them, count them, stub them (ouch!) The world is made of objects. Objects have properties, components, and actions that can be performed on them. Objects are in fact very natural.\n\nNow this sounds like a lot of abstract philosophy at first, and it's hard to see the point. Then you write a lot of object-oriented code, and one day it seems perfectly obvious and you can't remember a time when it wasn't. It becomes second nature to think about organizing your programs this way. So when you have a project, instead of thinking, \"first I do this, then I do that,\" you think, \"I have a cars, and I have feet, and I have watches, and these are their attributes and properties, and these are the things I can do with them.\"\n\nI don't know any way to ease the process of learning to think in objects. It mostly makes sense only on larger projects where you have a lot of objects and you organize your project in terms of the objects and their behaviors. For short projects as a beginner it's impossible to see the virtue of objects and classes.\n\nOne great example of large object-oriented systems is graphic interfaces. You have windows. A window can be resized, moved, activated, put in the background, or dismissed. It can contain the output or input for an application. Windows can contain other windows. In fact graphic interfaces were originally one of the main motivations for developing object-oriented design and coding. But again, these are huge systems, hundreds of thousands or millions of lines of code. \n\nBy the way objects are to classes as my cat Felix is to the conceptual category of cats. A class is a general type of thing, but it's not any specific thing. An object is a particular instance of a class. Once again this is straight out of philosophy class, and it takes experience before it makes perfect sense as a way of organizing a project.\n\nDon't know if this is helpful, but if it isn't, and you keep coding, some day you'll see that it was :-)", "upvote_ratio": 90.0, "sub": "LearnPython"} +{"thread_id": "up9vud", "question": "Like, what is the point of them and how do they work?\n\nTo me, they look similar to modules but are clearly not the same. I found that its some sort of grouping method? so it basically takes a bunch of modules and group them together?\n\n&#x200B;\n\nHow would I go about making a class even?", "comment": "You are already using classes in python.\n\nWhen you do:\n\n a = \"Hello\"\n\nYou created an instance of class \"str\" and initialized it with the value \"Hello\"\n\n a = str(\"Hello\")\n\nNow you can do operations using that a variable.\n\n print(a.upper())\n\nWithout a being a class you'd have to do:\n\n print(str_upper(a))\n\nWhich is not such a big issue when the object is a string, but imagine the object being a car with many attributes to it, like color, size, weight, topspeed, fuel_left, max_fuel, acceleration, current_speed, fuel_consumption, etc...\n\nIf without classes you'd want to fill the gas tank:\n\n fuel_left = car_fill(fuel_left, 10, max_fuel)\n\nIf with classes:\n\n car.fill(10)\n\nbecause everything is contained in the car object.\n\nWant to go for a drive?\n\n current_speed = accelerate(current_speed, acceleration, topspeed)\n fuel_left = max_fuel - fuel_consumption * (current_speed * time_passed)\n\nInstead of:\n\n car.accelerate()", "upvote_ratio": 50.0, "sub": "LearnPython"} +{"thread_id": "up9vud", "question": "Like, what is the point of them and how do they work?\n\nTo me, they look similar to modules but are clearly not the same. I found that its some sort of grouping method? so it basically takes a bunch of modules and group them together?\n\n&#x200B;\n\nHow would I go about making a class even?", "comment": "They are similar to modules in that they provide a namespace.\n\nUnlike modules, classes can be instantiated by calling them, which returns an object of that class. The point is that you can instantiate as many objects of the same class as you need to solve your problem.\n\nClasses group data and functions that operate on that data together.\n\n> How would I go about making a class even?\n\n class C:\n pass", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up9wzy", "question": "Were draft-dodgers frowned upon in the past?", "comment": "At the time of the dodging, yes. The Vietnam War saw a bit more acceptance of it, although that was still out of the mainstream. Nowadays, there is a general acceptance of people who dodged the draft in that era, especially given how unpopular that war has become in the American psyche.", "upvote_ratio": 640.0, "sub": "AskAnAmerican"} +{"thread_id": "up9wzy", "question": "Were draft-dodgers frowned upon in the past?", "comment": "Draft dodgers being frowned down upon goes back tens of thousands of years. Hell long before even that.\n\nEver since the first group of ancient primates got mad at one their own because they didn\u2019t join in on a fight.", "upvote_ratio": 580.0, "sub": "AskAnAmerican"} +{"thread_id": "up9wzy", "question": "Were draft-dodgers frowned upon in the past?", "comment": "Uh yes, Mohammad ali??", "upvote_ratio": 170.0, "sub": "AskAnAmerican"} +{"thread_id": "up9xki", "question": "Hi All,\n\nI'm in my final year of highschool and I'm very interested in going into the computer science industry. Only thing is, finding an opportunity to get into the CS workforce seems basically impossible without College or work experience. For financial and personal reasons I'm trying to avoid College as best I can.\n\nBeing 18, I've had no work experience in the CS field and my experience is nothing but what I've learned in my school's CS program (which is frighteningly little)\n\nIt's kind of disheartening to see that every single internship posting I've seen thus far expects me to be an undergraduate in a Computer Science program, and every job posting, no matter how awful the wages, still expect me to have a Bachelor's or equivalent work experience.\n\nSo my question is: is it even possible? I don't see any real options to be able to enter into the field if my inability to get a job/college means I will never be qualified for anything.", "comment": "If you have your mind locked on CS, then taking out loans for college actually a good investment. You can minimize loans by going to community college for the first 2 years, which should be cheap enough to pay for if you work part-time during the year. After that, transfer to a state school and continue working to reduce the amount of debt you're accumulating.", "upvote_ratio": 120.0, "sub": "CSCareerQuestions"} +{"thread_id": "up9xki", "question": "Hi All,\n\nI'm in my final year of highschool and I'm very interested in going into the computer science industry. Only thing is, finding an opportunity to get into the CS workforce seems basically impossible without College or work experience. For financial and personal reasons I'm trying to avoid College as best I can.\n\nBeing 18, I've had no work experience in the CS field and my experience is nothing but what I've learned in my school's CS program (which is frighteningly little)\n\nIt's kind of disheartening to see that every single internship posting I've seen thus far expects me to be an undergraduate in a Computer Science program, and every job posting, no matter how awful the wages, still expect me to have a Bachelor's or equivalent work experience.\n\nSo my question is: is it even possible? I don't see any real options to be able to enter into the field if my inability to get a job/college means I will never be qualified for anything.", "comment": "Its possible, but very difficult. I highlight the benefits of college in this post: https://old.reddit.com/r/cscareerquestions/comments/rxxrhb/do_you_really_need_a_cs_degree/", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up9xki", "question": "Hi All,\n\nI'm in my final year of highschool and I'm very interested in going into the computer science industry. Only thing is, finding an opportunity to get into the CS workforce seems basically impossible without College or work experience. For financial and personal reasons I'm trying to avoid College as best I can.\n\nBeing 18, I've had no work experience in the CS field and my experience is nothing but what I've learned in my school's CS program (which is frighteningly little)\n\nIt's kind of disheartening to see that every single internship posting I've seen thus far expects me to be an undergraduate in a Computer Science program, and every job posting, no matter how awful the wages, still expect me to have a Bachelor's or equivalent work experience.\n\nSo my question is: is it even possible? I don't see any real options to be able to enter into the field if my inability to get a job/college means I will never be qualified for anything.", "comment": "It is possible, but it\u2019s very difficult. To most, very very difficult is the same in effect as impossible. \n\nI\u2019m not sure if your financial reasons are valid if you\u2019ll be making an SDE salary. I paid off my student loans in 2 years.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "up9ys3", "question": "How can i use it for example if i want to have a function that returns its value to a global variable? Kind of like to stop a while loop if something is false or to modify a variable to call in another function also?", "comment": "You need to think of functions as a standalone units of execution.\n\nThat accept input using arguments, do something, and give output using return.\n\nFor example, check_resources function needs to get as argument not only the \"what to check for\" but also \"where to check it\"...\n\n def check_resources(resources ,beverage_check):\n\nTo accept/use a returned result you need to assign it to a variable, for example:\n\n def mysum(a,b):\n return a+b\n\n x = mysum(5,6)\n\nif you don't do x=, the returned sum (11) goes nowhere, and ignored.\n\nimagine as if the entire function call was replaced by it's returned value.\n\n x = mysum(1,2) + mysum(5,5)\n # imagine its replaced by the result from each call.\n x = 3 + 10", "upvote_ratio": 190.0, "sub": "LearnPython"} +{"thread_id": "up9ys3", "question": "How can i use it for example if i want to have a function that returns its value to a global variable? Kind of like to stop a while loop if something is false or to modify a variable to call in another function also?", "comment": "Return cannot be used to set a global variable. You need an assignment for that, i.e.\n\n global_var = <whatever>", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up9ys3", "question": "How can i use it for example if i want to have a function that returns its value to a global variable? Kind of like to stop a while loop if something is false or to modify a variable to call in another function also?", "comment": "I think you're expecting too many difficulties here.\n\nYou;ve probably already used some functions - usually at least `input()`, maybe even some mathematical functions like `sin()` from the `math` module.\n\nYou have to call a function to get its value. To call a function, you write its name followed immediatelly with `(` and `)` (it there are no parameters).\n\nExample:\n\n answer = input()\n\nIf there are some parameters, you have to add them inside the parenthesis:\n\n answer = input(\"Enter an integer: \")\n\nThis function prints a message and waits for a user input. After that, it **returns** the result. Since we want to work with the result further in the code, we have stored it in a variable called `answer`.\n\nSo this is how to use (= call) functions.\n\nNow what about our own functions? And that's what you're asking about.\n\nFirst of all, we have to introduce (define) a function (sorry for such a stupid example):\n\n def multiply(a, b):\n result = a * b\n return result\n\nThen, we can call the function:\n\n c = multiply(4, 3) # The result 12 will be stored in `c`\n\nRegarding flow - for example in a loop:\n\n a = 2\n while True:\n b = int(input(\"Enter an integer: \"))\n c = multiply(a, b)\n print(f\"Result: {c}\")\n\nThis is an example of an infinite loop.\nWhen the code reaches the line `b = ...`, it behaves as usually - first of all, the right side (after `=`) is evaluated. Which means the user is prompted to enter a value... and since the input() function waits for the user, the program waits too.\nAfter the user enters the value, it's returned. And because we want to save it for later use (for later computation), we have stored it in `b`.\nNext, the very same happens with our custom function, `multiply()`. The right side of the expression gets evaluated - so our function is called with two parameters, the function executes its code and returns the result to the calling code. This calling code takes the returned value and since we assigned the value to `c`, it's stored in this variable for later use.\nThe later use happens on the next line where we print the value.\n\nSorry for a long post. I just want to explain it in detail. If there are further questions or there is something to clarify, don't hesitate to ask.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "up9zsx", "question": "What normal activity gets 100 times creepier if done in the middle of the night?", "comment": "Digging a hole", "upvote_ratio": 1210.0, "sub": "AskReddit"} +{"thread_id": "up9zsx", "question": "What normal activity gets 100 times creepier if done in the middle of the night?", "comment": "Kids getting into a school bus.", "upvote_ratio": 710.0, "sub": "AskReddit"} +{"thread_id": "up9zsx", "question": "What normal activity gets 100 times creepier if done in the middle of the night?", "comment": "[There's something about flying a kite at night that's so unwholesome.](https://www.youtube.com/watch?v=J1Z-GvyCxT8)", "upvote_ratio": 610.0, "sub": "AskReddit"} +{"thread_id": "upa3jl", "question": "Genuine, true love or 5 million dollars? Why?", "comment": "5 million dollars. I would never have to work again and could use that to fund all of my hobbies and interests that I truly, genuinely love for the rest of my life.", "upvote_ratio": 27510.0, "sub": "AskReddit"} +{"thread_id": "upa3jl", "question": "Genuine, true love or 5 million dollars? Why?", "comment": "Could I find true love after I gain the 5 million dollars?", "upvote_ratio": 18670.0, "sub": "AskReddit"} +{"thread_id": "upa3jl", "question": "Genuine, true love or 5 million dollars? Why?", "comment": "true love because my true love is 5 trillion dollars", "upvote_ratio": 16130.0, "sub": "AskReddit"} +{"thread_id": "upa598", "question": "Summer is coming & I hate the sunlight. Is it socially acceptable to use an umbrella for protection?", "comment": "Nah. Parasols exist and thy literally mean \" for sun\". You could also just wear a Sombrero.", "upvote_ratio": 1040.0, "sub": "NoStupidQuestions"} +{"thread_id": "upa598", "question": "Summer is coming & I hate the sunlight. Is it socially acceptable to use an umbrella for protection?", "comment": "Very normal for Asians, on a sunny day you'd see more umbrellas in Asian cities than you would on a rainy day in the US", "upvote_ratio": 560.0, "sub": "NoStupidQuestions"} +{"thread_id": "upa598", "question": "Summer is coming & I hate the sunlight. Is it socially acceptable to use an umbrella for protection?", "comment": "Nope, not weird. It was quite common when I lived in Japan. I even picked up a small sun umbrella while living there that I continue to use now that I'm in the States again. I'll take weird looks (though I get none) over sunburn and heat exhaustion.", "upvote_ratio": 260.0, "sub": "NoStupidQuestions"} +{"thread_id": "upa5re", "question": "Like the discord client for example. Something that can make clean GUIs while still compiling to a native binary.", "comment": "It really depends on what the application is for. There are so many ways of making GUIs. Discord uses Electron and Javascript and is not compiled.\n\nMicrosoft apps could be written in C# using several different options for GUI like WinUi 3 or WPF.\n\nA lot of graphics and game related programs will be written in C++ and use something like ImGui. \n\nAlso popular options for C++ are GTK (Firefox is written using this) and Qt (OBS, Telegram and Ableton Live).", "upvote_ratio": 80.0, "sub": "AskProgramming"} +{"thread_id": "upa5re", "question": "Like the discord client for example. Something that can make clean GUIs while still compiling to a native binary.", "comment": "React.js and Electron.js.\n\nJavaScript", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "upa5re", "question": "Like the discord client for example. Something that can make clean GUIs while still compiling to a native binary.", "comment": "[Tauri is a lightweight alternative to Electron written in Rust.](https://tauri.studio/)", "upvote_ratio": 40.0, "sub": "AskProgramming"} +{"thread_id": "upa671", "question": "New coder here and I\u2019ve chose python as the first language I want to learn. I\u2019ve started doing Angela yus Udemy course, 100 days of code (python).\n\nI aim to finish the content for the day of 100 days (around 1.5-2 hours) then throughout the rest of the day if I get an urge to learn more python I\u2019ll read crash course for awhile. \n\nIs this inefficient practice and I\u2019m better off committing all my time programming into 100 days and then going back and reading crash course after I finish 100 days?", "comment": "I started with these exact two courses about a month ago.\n\nAt first I went through the first 4 or so chapters in Crash Course, then started 100 Days with the thought that maybe I would digest info better in video/lecture form.\n\nI was understanding the information presented by Angela, but I felt I was missing something, especially with functions that accept input. Things weren't coalescing as much as I felt I needed.\n\nI went back and finished Crash Course through chapter 11 and the first project making a space invaders type game, now I am back to 100 days and I am very happy I did it this way. I am on day 26 and have not felt anything presented was out of my realm of understanding yet.\n\nSo FWIW I would do at least the first 11 chapters, then move on to 100 Days. That will just help reinforce what you have already touched on in the book as you make more projects with Angela.\n\nAfter 100 Days I'm going to fly through Automate The Boring Stuff With Python.\n\nGood luck.", "upvote_ratio": 550.0, "sub": "LearnPython"} +{"thread_id": "upa671", "question": "New coder here and I\u2019ve chose python as the first language I want to learn. I\u2019ve started doing Angela yus Udemy course, 100 days of code (python).\n\nI aim to finish the content for the day of 100 days (around 1.5-2 hours) then throughout the rest of the day if I get an urge to learn more python I\u2019ll read crash course for awhile. \n\nIs this inefficient practice and I\u2019m better off committing all my time programming into 100 days and then going back and reading crash course after I finish 100 days?", "comment": "I don't have any experience with PCC, but for \"100 days\" I'd like to point out this: \n\nAs the \"100 days\" course moves on, you'll find that you will usually spend (significantly) more than 2 hours per \"day\" if you do all the code challenges, which you should, even if you're reasonably familiar with the topic at hand. The video content itself is often between 1 and 1.5 hours for one \"day\". \n\nNow, this just means you spend more time programming and thinking, which is a good thing, but it's easy (from the course's own advertising) to be misled to think that you can finish the entire \"100 days\" course in 200 hours or so.\n\nBest of luck!", "upvote_ratio": 120.0, "sub": "LearnPython"} +{"thread_id": "upa671", "question": "New coder here and I\u2019ve chose python as the first language I want to learn. I\u2019ve started doing Angela yus Udemy course, 100 days of code (python).\n\nI aim to finish the content for the day of 100 days (around 1.5-2 hours) then throughout the rest of the day if I get an urge to learn more python I\u2019ll read crash course for awhile. \n\nIs this inefficient practice and I\u2019m better off committing all my time programming into 100 days and then going back and reading crash course after I finish 100 days?", "comment": "2 hours a day is not that much. You can do one thing in the morning and one in the evening.\n\nIt really depends on your other commitments I guess. When going to university full time, it's typical to spend about 6 hours a day in 3 totally unrelated classes. Here you do Python all day. \n\nDefiniely more efficient to do both than to call quits after just 2 hours.", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "upably", "question": "Hi there and thanks for stopping by! As the title says, I am my former school teacher's 24/7 BDSM slave and I have been for 8 years. I am 26 and male and my owner is 41 and female. I live with my owner and serve 24/7 as well as being naked 24/7 unless otherwise instructed to.\n\nI have such a good life which I am very grateful for but understand it isn't a typical vanilla relationship and so I'm here for you to ask whatever you want about my relationship, role and me personally! \n\nI have very supportive people around me which has allowed me to do what I am doing now and spend as long as I can doing this. \n\nIf you don't feel comfortable asking publicly then feel free to pm me and talk there!\n\nIf not, have a great day whatever you are doing! Be accepting, respectful and responsible!", "comment": "Guys this is not real. These kind of posts have been around ever since last summer. The account changes every few weeks, but the post is always this same ama\ud83e\udd26\u200d\u2640\ufe0f", "upvote_ratio": 50.0, "sub": "AMA"} +{"thread_id": "upably", "question": "Hi there and thanks for stopping by! As the title says, I am my former school teacher's 24/7 BDSM slave and I have been for 8 years. I am 26 and male and my owner is 41 and female. I live with my owner and serve 24/7 as well as being naked 24/7 unless otherwise instructed to.\n\nI have such a good life which I am very grateful for but understand it isn't a typical vanilla relationship and so I'm here for you to ask whatever you want about my relationship, role and me personally! \n\nI have very supportive people around me which has allowed me to do what I am doing now and spend as long as I can doing this. \n\nIf you don't feel comfortable asking publicly then feel free to pm me and talk there!\n\nIf not, have a great day whatever you are doing! Be accepting, respectful and responsible!", "comment": "I feel like there's something commendable about giving away full control over oneself. It's scary but brave. I've never experienced this type of relationship but if it makes you happy and no one is being hurt, I'm happy for you. \n\nAs far as a question, did it begin while you were her student or after you graduated? Do you think there was any grooming involved? Thanks for sharing", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "upaei9", "question": "How long would it take you to go from one side of LA to the other?", "comment": "Well in 40 some years I\u2019ve never heard someone a visitor say \u201cThe traffic isn\u2019t as bad as people say it is.\u201d", "upvote_ratio": 220.0, "sub": "AskAnAmerican"} +{"thread_id": "upaei9", "question": "How long would it take you to go from one side of LA to the other?", "comment": "Depends. LA traffic sucks. San Diego isn't nearly as bad. I grew up in Seattle, and I hate that traffic way more than LA. I think DC traffic is the absolute worst, though. I'd rather sit in LA traffic than DC traffic any day of the week.", "upvote_ratio": 180.0, "sub": "AskAnAmerican"} +{"thread_id": "upaei9", "question": "How long would it take you to go from one side of LA to the other?", "comment": "Yes it\u2019s pretty bad. It used to take me 35 minutes to drive 5 miles home from work on PCH.", "upvote_ratio": 70.0, "sub": "AskAnAmerican"} +{"thread_id": "upahtn", "question": "[NSFW] Mozart wrote \"Leck mich im Arsch\" (\"Lick me in the arse\") in 1782. Are there any historical references to eating ass that appear earlier than Mozart's?", "comment": "The earliest references to anilingus or \"ass-licking\" that I am currently aware of literally predate Mozart by over two thousand years. Namely, the ancient Athenian comic playwright Aristophanes (lived c. 446 \u2013 c. 386 BCE) probably alludes to anilingus in a couple of his surviving comedies.\n\nIn his comedy *Ekklesiazousai* or *Assemblywomen*, which was first performed in Athens in around 391 BCE, the main character Praxagora has the following conversation with her husband Blepyros, [in lines 646\u2013648](http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.01.0029%3Acard%3D635):\n\n>\u03a0\u03c1\u03b1\u03be\u03ac\u03b3\u03bf\u03c1\u03b1: \"\u03c0\u03bf\u03bb\u1f7a \u03bc\u03ad\u03bd\u03c4\u03bf\u03b9 \u03b4\u03b5\u03b9\u03bd\u03cc\u03c4\u03b5\u03c1\u03bf\u03bd \u03c4\u03bf\u03cd\u03c4\u03bf\u03c5 \u03c4\u03bf\u1fe6 \u03c0\u03c1\u03ac\u03b3\u03bc\u03b1\u03c4\u03cc\u03c2 \u1f10\u03c3\u03c4\u03b9,\" \n\u0392\u03bb\u03ad\u03c0\u03c5\u03c1\u03bf\u03c2: \"\u03c4\u1f78 \u03c0\u03bf\u1fd6\u03bf\u03bd;\" \n\u03a0\u03c1\u03b1\u03be\u03ac\u03b3\u03bf\u03c1\u03b1: \"\u03b5\u1f34 \u03c3\u03b5 \u03c6\u03b9\u03bb\u03ae\u03c3\u03b5\u03b9\u03b5\u03bd \u1f08\u03c1\u03af\u03c3\u03c4\u03c5\u03bb\u03bb\u03bf\u03c2 \u03c6\u03ac\u03c3\u03ba\u03c9\u03bd \u03b1\u1f51\u03c4\u03bf\u1fe6 \u03c0\u03b1\u03c4\u03ad\u03c1\u1fbd \u03b5\u1f36\u03bd\u03b1\u03b9.\" \n\u0392\u03bb\u03ad\u03c0\u03c5\u03c1\u03bf\u03c2: \"\u03bf\u1f30\u03bc\u03ce\u03b6\u03bf\u03b9 \u03b3\u1fbd \u1f02\u03bd \u03ba\u03b1\u1f76 \u03ba\u03c9\u03ba\u03cd\u03bf\u03b9.\" \n\u03a0\u03c1\u03b1\u03be\u03ac\u03b3\u03bf\u03c1\u03b1: \"\u03c3\u1f7a \u03b4\u03ad \u03b3\u1fbd \u1f44\u03b6\u03bf\u03b9\u03c2 \u1f02\u03bd \u03ba\u03b1\u03bb\u03b1\u03bc\u03af\u03bd\u03b8\u03b7\u03c2 . . .\"\n\nThis means, in my translation:\n\n>Praxagora: \"It would be far worse, though, if there were this occurrence.\" \nBlepyros: \"What sort?\" \nPraxagora: \"If Aristyllos were to kiss you, claiming that you are his father.\" \nBlepyros: \"If he does, he'll at least wail and shriek!\" \nPraxagora: \"But you at least would smell of calamint.\"\n\nThe last line here is a pun; the word \"\u03ba\u03b1\u03bb\u03b1\u03bc\u03af\u03bd\u03b8\u03b7\" means \"calamint,\" which is a kind of aromatic flowering plant, but the second part of the word sounds like the word \"\u03bc\u03af\u03bd\u03b8\u03bf\u03c2,\" which means \"shit.\"\n\nIn Aristophanes's other comedy *Ploutos* or *Wealth*, which was originally performed in 408 BCE, but only survives in a later revised version that Aristophanes made sometime around 388 BCE, the members of the chorus threaten the enslaved character Karion, telling him, [in lines 313\u2013315](http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.01.0039%3Acard%3D309):\n\n>\"\u03bc\u03b9\u03bd\u03b8\u03ce\u03c3\u03bf\u03bc\u03ad\u03bd \u03b8\u1fbd \u1f65\u03c3\u03c0\u03b5\u03c1 \u03c4\u03c1\u03ac\u03b3\u03bf\u03c5 \n\u03c4\u1f74\u03bd \u1fe5\u1fd6\u03bd\u03b1: \u03c3\u1f7a \u03b4\u1fbd \u1f08\u03c1\u03af\u03c3\u03c4\u03c5\u03bb\u03bb\u03bf\u03c2 \u1f51\u03c0\u03bf\u03c7\u03ac\u03c3\u03ba\u03c9\u03bd \u1f10\u03c1\u03b5\u1fd6\u03c2, \n\u1f15\u03c0\u03b5\u03c3\u03b8\u03b5 \u03bc\u03b7\u03c4\u03c1\u1f76 \u03c7\u03bf\u1fd6\u03c1\u03bf\u03b9.\"\n\nWhich means, in my own translation:\n\n>\"We will smear your nose with shit, just like that of a goat, \nand you, a half-gaping Aristyllos, will say: \n'Follow your mother, piglets!'\"\n\nOnce again, the last line here is a pun; the Greek word \"\u03c7\u03bf\u1fd6\u03c1\u03bf\u03c2\" literally means \"piglet,\" but was commonly used in Attic Greek as a vulgar slang word meaning \"vulva,\" roughly equivalent to the English word \"pussy.\"\n\nIn both of these passages, the joke is evidently that Aristyllos has some kind of sexual fetish involving feces. Daniel Christopher Walin argues in his 2012 doctoral thesis [*Slaves, Sex, and Transgression in Greek Old Comedy*](https://escholarship.org/content/qt6jg983tp/qt6jg983tp.pdf), on page 100, that Aristophanes is most likely specifically implying that Aristyllos enjoys performing anilingus, although he notes that other commentators \"are not generally so specific.\"\n\nWalin is most likely correct in this interpretation, since the passage in *Wealth* describes Aristyllos as having fecal matter smeared all over his nose and his mouth \"half-gaping,\" which fits very well with the anilingus interpretation.", "upvote_ratio": 12730.0, "sub": "AskHistorians"} +{"thread_id": "upahtn", "question": "[NSFW] Mozart wrote \"Leck mich im Arsch\" (\"Lick me in the arse\") in 1782. Are there any historical references to eating ass that appear earlier than Mozart's?", "comment": "This is a fun one, as some answers have already shown. However, Mozart's song is in specific reference to an event we can more or less confidently date to about 1515, as it was recalled and written in the memoirs of notorious one-armed robber knight G\u00f6tz von Berlichingen.\n\nMozart likely heard the story through the popular play about him written by Goethe in 1771. Using G\u00f6tz as an archetype of liberty in a time of political tyranny, the play was a popular success, and helped to popularize several of G\u00f6tz\u2019s more colorful moments, such telling Marx Stumpff to lick his ass. The phrase earned immortality as the \u201cSwabian Salute,\u201d and the play G\u00f6tz von Berlichingen is considered one of the foundational texts of the Sturm and Drang movement in German drama. The movement\u2019s emphasis on freedom, emotion, and human agency was intended as a counterpoint to the increasingly dominant ideology of rationality brought on by the Enlightenment.\n\nUnfortuntely I don't have my copy of the play to hand, but I can give the full scene as presented in G\u00f6tz' memoirs. This occurred in 1515, when G\u00f6tz was involved in a feud with the stift - sort of a leased property - of the Bishopric of Mainz. G\u00f6tz\u2019s feud was triggered by the forceful abduction of at least one of his tenants in order to work land that was claimed to be a part of the Stift of Mainz, by men who lived in the village of Buchen. In seeking recompense for the use of G\u00f6tz\u2019s tenant, he pursued not only the authorities of Buchen, but also the Bishop of Mainz, the - absentee, in this case - landlord of the Stift. When no agreement could be arranged between G\u00f6tz and those he deemed responsible for the insult to his tenants, G\u00f6tz then formally declared a feud by sending the Bishop an *Abklag,* a written, formal opening to the feud.\n\nAt one point, G\u00f6tz had taken one of the men of the bishopric prisoner and held him for ransom in a castle, until a Marx Stumpff, a fellow poor knight, had betrayed the man's whereabouts and facilitated his escape. G\u00f6tz notes that Stumpff must have *earned his office at Krautheim behind the deal*. He continues:\n\n> Now I was of a mind that I should bless this land further, and try to push my luck, and I wanted a bit of revenge. One night I burned three places: Ballenberg, Oberndorf, and the sheep house at Krautheim, there at the bottom of the hill beneath the castle, so close that you could talk, either up to the castle or down from the walls. I didn\u2019t like to burn things, but I did it this time thinking that Stumpff, the *Amtmann* (a sort of appointed man, a reeve or bailiff), would come to the fire. I waited there for an hour or two, between Krautheim and Neuenstetten, until it grew light, and over the ground lay a light dusting of snow, hoping that I might run into him. Then he called out from above, toward Klepsen, and there I called up to him that he should lick my ass.\n \nSo, G\u00f6tz, having found where Stumpff was now an Amtmann at the castle of Krautheim, decided to try to lure him out by burning several buildings in nearby villages. Stumpff evidently didn't take the bait, but came to the walls in the morning to see what was going on, and had a brief exchange with G\u00f6tz, who invited him to lick his ass.\n\nGoethe rendered a similar scene, which is likely what Mozart based the song on. All translations of the memoir above are mine.", "upvote_ratio": 3230.0, "sub": "AskHistorians"} +{"thread_id": "upahtn", "question": "[NSFW] Mozart wrote \"Leck mich im Arsch\" (\"Lick me in the arse\") in 1782. Are there any historical references to eating ass that appear earlier than Mozart's?", "comment": "[removed]", "upvote_ratio": 3190.0, "sub": "AskHistorians"} +{"thread_id": "upaipe", "question": "we all know about buddy holly and ritchie valens but we never hear about the big bopper.\n\nhow popular was he, and do you think he should be in the rock and roll hall of fame?", "comment": "\n\n I'm in my 60's and know who Big Bopper is, but only from *Chantilly Lace* and how he died. I couldn't name a single song, otherwise. Or know anything about his contribution to rock and roll.", "upvote_ratio": 50.0, "sub": "AskOldPeople"} +{"thread_id": "upaipe", "question": "we all know about buddy holly and ritchie valens but we never hear about the big bopper.\n\nhow popular was he, and do you think he should be in the rock and roll hall of fame?", "comment": "Big Bopper was a one-hit-wonder, right? Chantilly Lace is the only song by him I could name in a thousand years. No, he should not be in the HOF. I'm gonna put myself out there, and say that Ritchie Valens and Buddy Holly did not have enough of a catalog to be in the HOF had they not died. But they both had bang-up starts, with great promise.", "upvote_ratio": 30.0, "sub": "AskOldPeople"} +{"thread_id": "upax4l", "question": "What's the point of a debate if noone is willing to change their mind?", "comment": "Public/political debates are not for those participating, but for the ones watching or listening (to either strengthen their beliefs or to change their minds/win them over)", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "upax4l", "question": "What's the point of a debate if noone is willing to change their mind?", "comment": "Even if noone changes their mind at the time, either side might later think about each other's points. \n\nAlso, a good debate helps each debater to question and hone their own beliefs.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upaz6c", "question": "Night owls out there, what keeps you awake at midnight?", "comment": "Everyone else has fucked off, its nice and quiet, and now its time to do some work.", "upvote_ratio": 880.0, "sub": "AskReddit"} +{"thread_id": "upaz6c", "question": "Night owls out there, what keeps you awake at midnight?", "comment": "I have more energy at night. The sun drains me.", "upvote_ratio": 300.0, "sub": "AskReddit"} +{"thread_id": "upaz6c", "question": "Night owls out there, what keeps you awake at midnight?", "comment": "Usually I'd be up playing video games, but I'm so stressed out about things right now and I feel alone. Just trying to relax and dose off.", "upvote_ratio": 230.0, "sub": "AskReddit"} +{"thread_id": "upb2vc", "question": "Hi there. I have a tiny understanding, but since I am protestant, well brought up protestant I know very limited knowledge on how the catholic church works.\n\nI was thinking though, at what point does someone decide \" i think I'm going to try become the next pope\"? I gather you first have to become catholic, become a priest and then..... well, I'm not sure how you raise in ranks after that, if anyone could roughly explain it.\n\nAlso, does someone know theybwant to be the pope before becoming a priest or do they sorta just fall into the role?", "comment": "You'd become a Priest first. This is more difficult than it sounds. Catholic Priests must have an undergraduate degree, 4 years in a seminary after that, followed by a year as a deacon before they can be ordained. It's a 9 year path that's longer than almost any other profession other than Medical Doctor. \n\nOnce a priest, initially they would most likely get rotated around to various parishes, but not belong to any single one. Kind of like a substitute teacher. Eventually they might become the Priest of a particular Parish. The Bishop of the Diocese would decide that.\n\nThe first major step up the ranks is to become a Bishop. The Catholic Church typically requires Bishops to have a PhD. A bishop is technically appointed by the Pope, though in reality other Bishops from nearby Diocese's will defacto choose. The Vatican could push back if the qualifications of the individual were weak.\n\nInitially they'd most likely be an Auxiliary Bishop where they aren't in charge of a Diocese, they're more like a Vice Principal. Eventually they'd become the Bishop of a Diocese.\n\nFrom there they could get promoted to Archbishop which is in charge of an Archdiocese. An Archdiocese is just a really large Diocese.\n\nThere isn't a requirement that a Pope must be a Cardinal prior, but traditionally they are. Becoming a Cardinal doesn't remove your previous job title. Let's say you are the Archbishop of Los Angeles and become a Cardinal. You are still the Archbishop of Los Angeles but are now also a Cardinal. The Cardinals elect the Pope, and tend to choose amongst themselves.", "upvote_ratio": 820.0, "sub": "NoStupidQuestions"} +{"thread_id": "upb2vc", "question": "Hi there. I have a tiny understanding, but since I am protestant, well brought up protestant I know very limited knowledge on how the catholic church works.\n\nI was thinking though, at what point does someone decide \" i think I'm going to try become the next pope\"? I gather you first have to become catholic, become a priest and then..... well, I'm not sure how you raise in ranks after that, if anyone could roughly explain it.\n\nAlso, does someone know theybwant to be the pope before becoming a priest or do they sorta just fall into the role?", "comment": "[This](https://youtu.be/kF8I_r9XT7A) 3 minutes video explains it perfectly.", "upvote_ratio": 190.0, "sub": "NoStupidQuestions"} +{"thread_id": "upb2vc", "question": "Hi there. I have a tiny understanding, but since I am protestant, well brought up protestant I know very limited knowledge on how the catholic church works.\n\nI was thinking though, at what point does someone decide \" i think I'm going to try become the next pope\"? I gather you first have to become catholic, become a priest and then..... well, I'm not sure how you raise in ranks after that, if anyone could roughly explain it.\n\nAlso, does someone know theybwant to be the pope before becoming a priest or do they sorta just fall into the role?", "comment": ">well, I'm not sure how you raise in ranks after that, if anyone could roughly explain it\n\nThe higher ranks are appointed, similar to what happens in a company. When a higher position needs to be filled someone even higher decides who gets the job from the people one rank lower. And they are supposed to be chosen based on good service and experience.\n\nThe pope is elected by the cardinals, and the current pope selects wich bishops become cardinals. So except for the papal election it's a complete top-down process.\n\n>Also, does someone know theybwant to be the pope before becoming a priest or do they sorta just fall into the role?\n\nWould you start as a random clerk in a company with the expectation/plan to become the CEO? Since the individual has no direct control over their own career I don't think anyone plans that many steps ahead. Maybe once you are a bishop you can think about that.", "upvote_ratio": 110.0, "sub": "NoStupidQuestions"} +{"thread_id": "upb55i", "question": "Do you ever check the profile of Reddit users you interact with? Why/why not?", "comment": "Not unless I suspect they are a troll. Then I check just to make sure before I interact with them any more.", "upvote_ratio": 2360.0, "sub": "AskReddit"} +{"thread_id": "upb55i", "question": "Do you ever check the profile of Reddit users you interact with? Why/why not?", "comment": "Nah. Mostly because I don't really care.", "upvote_ratio": 1310.0, "sub": "AskReddit"} +{"thread_id": "upb55i", "question": "Do you ever check the profile of Reddit users you interact with? Why/why not?", "comment": "No. I usually don't even check the names.", "upvote_ratio": 860.0, "sub": "AskReddit"} +{"thread_id": "upb6dw", "question": "I\u2019m a transgender Republican. AMA.", "comment": "How do you reconcile a loud percentage of your fellow Republicans not only hate you but would be happy to criminalize your very existence? \nWhy choose the Republican patu in particular vs independent? \nHi have so many questions... those first though.", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "upb6dw", "question": "I\u2019m a transgender Republican. AMA.", "comment": "Just wow. The right have passed countless bills that risk the lives of the queer community, not only that but they've now put the lives of pregnant people at risk too with banning abortion. Miscarriages are now a felony in the USA.\n\nI appreciate the left aren't perfect but at least they haven't killed people with their policies.\n\nI've seen you mention how the right have not negatively impacted the queer community as much as the left, so pray tell what policies the left have imposed to give you this opinion.", "upvote_ratio": 60.0, "sub": "AMA"} +{"thread_id": "upb6dw", "question": "I\u2019m a transgender Republican. AMA.", "comment": "Are you aware that a majority of Republicans hate you?", "upvote_ratio": 50.0, "sub": "AMA"} +{"thread_id": "upb6qo", "question": "I have a number N which is (10^100)+1\n\nN = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\n\nI ask python N/2 and what I get is;\n\n5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0\n\nWhy am I not getting a number that ends 0.5?\n\nThere seems to be a rounding error, this doesn't happen with small numbers. Do I have to handle larger numbers differently?", "comment": "Floats are not perfectly precise when very large or very small. If you need perfect precision, you should be using integers, or, if that's not an option, the `decimal` module.", "upvote_ratio": 130.0, "sub": "LearnPython"} +{"thread_id": "upb6qo", "question": "I have a number N which is (10^100)+1\n\nN = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\n\nI ask python N/2 and what I get is;\n\n5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0\n\nWhy am I not getting a number that ends 0.5?\n\nThere seems to be a rounding error, this doesn't happen with small numbers. Do I have to handle larger numbers differently?", "comment": "Why do you need such large numbers? \n\nI ask because often when people ask such unusual questions it means they are trying to hammer out a complex solution and are missing the easy solution that the rest of use.", "upvote_ratio": 70.0, "sub": "LearnPython"} +{"thread_id": "upb7e5", "question": "How did you know for sure and what were your feelings after realizing this?", "comment": "I was like 3 or 4. I could already see that taking care of a husband and kids was a shit deal for a woman, so I knew I would never marry or have kids. It's one of my earliest memories.", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "upb7e5", "question": "How did you know for sure and what were your feelings after realizing this?", "comment": "I don't know, I never felt called to have children, and it was a relief to realize I didn't have to just because other young people my age were having them. It worked out great because my marriage was terrible and between our various problems any children would have gotten a chaotic upbringing not conducive to future psychological stability--plus then we divorced and there would have been that complication. I just can't imagine myself with children. It wouldn't have been right, and not having them feels right, as if in the cosmic scheme of things I was not intended to be a parent.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "upb7e5", "question": "How did you know for sure and what were your feelings after realizing this?", "comment": "Life without kids, by chance or choice, is easier. \n\nOne of the most challenging things in life there is, is to raise a child. You don't need to be a parent to know this. Just look around. For example. We're in the middle of an infant formula shortage for one thing. Who saw that coming?\n\nImagine being a young Mom wanting to feed your child, but going from store to store and finding empty shelves in the formula aisle.\n\nI'm what you call a professional bachelor. I made that choice probably in my 30s and that means I don't have to deal with and have never had to deal with the stressors that a parent does. My life is in fact easier as result. \n\nEasier is not always better, keep that in mind. \n\nReddit (I've noticed) leans toward an anti-natalist attitude that in more extreme views looks upon children as parasitic, with no intrinsic value. I don't look at it that way at all. \n\nThose who do? Well it's just sad is all I gotta say on that. There are those out there that are sort of like an anti-child Pied Piper extolling the virtues of a child-less life. Personally, I'm not down with that sort of attitude.\n\nMy life is easier not having a child. I can say that with certainty, what I cannot say is that it is better.", "upvote_ratio": 60.0, "sub": "AskOldPeople"} +{"thread_id": "upb8n1", "question": "Very confused.", "comment": "First, you are completely fine being confused about this. The evaluation rules for C expressions are complicated, and this is a great example. Let's look up the rules for this: [https://en.cppreference.com/w/c/language/operator\\_precedence](https://en.cppreference.com/w/c/language/operator_precedence)\n\nOh lord. Okay, so suffix/postfix ++, the first example with the ++ on the right side of ptr, takes precedence over the \\*, but the second example is a prefix ++, which has the exact same precedence as \\*. Does that matter? Well, to know that, we need to also know that unary prefix operators like \\* and ++ (the prefix one) associate right-to-left. Yeah...I think we can agree that feeling confused is pretty reasonable here.\n\nAlright, so knowing the precedence rules now, let's rewrite it with parentheses:\n\n\\*ptr++ becomes \\*(ptr++). This means \"take the pointer ptr, increase its value by one but evaluate the expression as its original value, and then dereference that original pointer value.\n\n\\++\\*ptr becomes ++(\\*ptr). This means \"dereference ptr, now take that thing ptr pointed to and increase its value by 1 and return that.\"\n\nLet's say memory looks like this:\n\n|Memory Address|Value|\n|:-|:-|\n|0x004|0x100|\n|0x008|0x200|\n|...||\n|0x100|0x256|\n|0x104|0x512|\n\nAnd ptr's value is \"0x004\" (and we'll say it points to something of size 4).\n\nThe first expression increases ptr by 1, so ptr's value becomes 0x008. Then you dereference the original value, 0x004, which is 0x100, so we get the value 0x256. So the expression results in 0x256, and as a side effect ptr is now 0x008.\n\nThe second expression goes to the place ptr points to, 0x100, and adds 1 to the value there, which was 256 so becomes 257.\n\nAlso, be careful, I've only looked up what will happen, not tried it. Now let's agree to never talk about this again because you agree to use parentheses for things like this.", "upvote_ratio": 210.0, "sub": "LearnProgramming"} +{"thread_id": "upb93l", "question": "I know a lot of people on here are totally aware of this, but it just irks me so much. I've been searching for a new job recently, and when I give my TC expectation, a ton of recruiters have positions that meet that. I'll have some that say \"we can probably do that\" then want me to hop on a call only to tell me what I'm asking for is unreasonable and I'd need 20 years of experience to get close to those numbers. I basically make the same amount I'm asking for already??? Where do these people get off wasting my time trying to tell me I'm worth less than what I'm already getting paid and how I should \"value\" experiences companies have to offer more than some number? That number controls my livelihood.\n\n\nMoral of the story... know your worth. Do research on specific company salaries, look at levels.fyi, leverage your current salary, etc. I swear 50% of recruiters are just leeches trying to fill undesirable roles by being condescending and deflating your sense of your own worth.", "comment": "It's the worst part of salary negotiation. Constantly getting told that I'm too young, too inexperienced, to deserve that kinda salary. That there's other people with twice my skills making half as much. \n\nOk bud. I don't give a shit. Why don't you interview those people instead? The good thing is that these situations gave me a thicker skin and hardened my confidence over the years. I'm not getting pushed around like in college.", "upvote_ratio": 680.0, "sub": "CSCareerQuestions"} +{"thread_id": "upb93l", "question": "I know a lot of people on here are totally aware of this, but it just irks me so much. I've been searching for a new job recently, and when I give my TC expectation, a ton of recruiters have positions that meet that. I'll have some that say \"we can probably do that\" then want me to hop on a call only to tell me what I'm asking for is unreasonable and I'd need 20 years of experience to get close to those numbers. I basically make the same amount I'm asking for already??? Where do these people get off wasting my time trying to tell me I'm worth less than what I'm already getting paid and how I should \"value\" experiences companies have to offer more than some number? That number controls my livelihood.\n\n\nMoral of the story... know your worth. Do research on specific company salaries, look at levels.fyi, leverage your current salary, etc. I swear 50% of recruiters are just leeches trying to fill undesirable roles by being condescending and deflating your sense of your own worth.", "comment": "Why even talk to a recruiter if they\u2019re not upfront with the range, otherwise we are wasting both each others time", "upvote_ratio": 400.0, "sub": "CSCareerQuestions"} +{"thread_id": "upb93l", "question": "I know a lot of people on here are totally aware of this, but it just irks me so much. I've been searching for a new job recently, and when I give my TC expectation, a ton of recruiters have positions that meet that. I'll have some that say \"we can probably do that\" then want me to hop on a call only to tell me what I'm asking for is unreasonable and I'd need 20 years of experience to get close to those numbers. I basically make the same amount I'm asking for already??? Where do these people get off wasting my time trying to tell me I'm worth less than what I'm already getting paid and how I should \"value\" experiences companies have to offer more than some number? That number controls my livelihood.\n\n\nMoral of the story... know your worth. Do research on specific company salaries, look at levels.fyi, leverage your current salary, etc. I swear 50% of recruiters are just leeches trying to fill undesirable roles by being condescending and deflating your sense of your own worth.", "comment": "One time I told a recruiter I wanted $800k in equity. They said \u201cseems competitive! I\u2019ll talk to my team\u201d \n\nLOL they never replied\n\n6 YOE", "upvote_ratio": 170.0, "sub": "CSCareerQuestions"} +{"thread_id": "upbbc4", "question": "I\u2019m very curious. Working on Wall Street is extremely interesting to me. The prospect of just working like 80 hours per week and absolutely grinding it out seems like a lot of fun. Maybe I\u2019m crazy but it seems like an experience I\u2019d like to have. Are crazy hours expected?", "comment": "Hedge funds are not financial technology companies.", "upvote_ratio": 640.0, "sub": "CSCareerQuestions"} +{"thread_id": "upbbc4", "question": "I\u2019m very curious. Working on Wall Street is extremely interesting to me. The prospect of just working like 80 hours per week and absolutely grinding it out seems like a lot of fun. Maybe I\u2019m crazy but it seems like an experience I\u2019d like to have. Are crazy hours expected?", "comment": "Dude, I get that you\u2019re passionate and excited to build a career and work on cool stuff, but please understand this:\n\nNothing about working 80 hours a week is fun. \n\nYou will have major regrets if you place that much focus on your job no matter what field you\u2019re in. Nothing wrong with working hard and putting in some extra time here and there, but there will be serious mental and physical consequences to your health if you consistently work 2x full time, even if you don\u2019t realize it at first.", "upvote_ratio": 400.0, "sub": "CSCareerQuestions"} +{"thread_id": "upbbc4", "question": "I\u2019m very curious. Working on Wall Street is extremely interesting to me. The prospect of just working like 80 hours per week and absolutely grinding it out seems like a lot of fun. Maybe I\u2019m crazy but it seems like an experience I\u2019d like to have. Are crazy hours expected?", "comment": "No, you don\u2019t work 80 hours per week. Your boss won\u2019t have you do that, people who get hired at trading/quant etc are really smart people that they want to develop into really efficient engineers, not have you burnout and leave in a year. \n\nThe work is nice in terms of there\u2019s a lot of theoretical computer science involved but there\u2019s also the issue of the fact that many of the shops are quite old and have old tech, monoliths, and legacy code that they\u2019re not ready/scared to switch away from.", "upvote_ratio": 240.0, "sub": "CSCareerQuestions"} +{"thread_id": "upbfie", "question": "I'm still one of those youngsters who thinks life will be so much better when you get money. I know there's a dark side but I don't quite understand it . I guess money doesn't automatically make everything better or great.", "comment": "Money is great. \n\nMaterialism is a trap that will suck the very life out of your soul as you need to work harder and longer to afford the crap you amass, but have less and less time to enjoy. \n\nAnd for what? Showing up some asshole neighbor you don't give 2 shits about so your ego feels better? Whoopee. It's all bullshit lies made up to get you to buy more crap to keep the charade of our economy chugging along. You become part of the cattle being straight up farmed for cash. \n\nKeep life simple and your expenses low. You can be very comfortable without being ridiculous. Buy experiences instead of stuff. Find a way to make a meaningful life that isn't based on materialism and working yourself to death or it will be spent buying crap trying to fill a hole in your soul, and spending most of your money on conveniences and services trying to regain time and/or sanity. \n\nLifestyle creep is a thing and it will slowly take over your life if you let it. I'm trying to escape my own self imposed fences and it's difficult as hell despite having minimal debt and a higher than average salary. I wish I had kept it all simple in the first place. \n\nI grew up poor as hell (food stamps, doing homework by lantern because the power was of again, heating bath water on a grill, etc). I thought I'd be happier after acquiring the stuff, but I'm more stressed than ever and don't have time to do anything about. I can barely attend to the needs of my home, my husband, or my children. Life isn't supposed to be like this, and maybe if enough people start opting out of this bullshit, maybe it has a chance for change.", "upvote_ratio": 710.0, "sub": "AskOldPeople"} +{"thread_id": "upbfie", "question": "I'm still one of those youngsters who thinks life will be so much better when you get money. I know there's a dark side but I don't quite understand it . I guess money doesn't automatically make everything better or great.", "comment": "No matter how rich you are, you can\u2019t get back time once it\u2019s gone. It\u2019s free for everyone yet no-one can own it. Only use it. Each passing second is the time that will never get back. You can get more money, but you can never get more time. It is more valuable than money. \n\n\nYou'll be 70 very soon and this will seem very important.", "upvote_ratio": 340.0, "sub": "AskOldPeople"} +{"thread_id": "upbfie", "question": "I'm still one of those youngsters who thinks life will be so much better when you get money. I know there's a dark side but I don't quite understand it . I guess money doesn't automatically make everything better or great.", "comment": "I'll explain the dark side. Yes, money equals increased physical comfort. But the more you get the harder it becomes to justify everyone suffering without it. What most people do is invent reasons to despise everyone suffering, then instead of being an overprivileged asshole they can pretend they are simply getting what they DESERVE and so is everyone else. Our culture has incorporated this bizarre condition so deeply that few of us ever question why we so desperately need someone else to lose so that we can feel like a winner?\n\nWhat scares me is that so many people are willing to whore their morals out in exactly this fashion. It seems to speak of a serious fault within the human psyche. But then again, considering how many bigots there are across the globe ruled by irrational fears, I don't think we really need further proof that serious faults truly exist.\n\nSo ultimately it comes down to the individual. Some of us can drive our neighbors into poverty and still look in the mirror and smile, some of us cannot.\n\nedit: I forgot to mention that the truth of the matter is we are both of these individuals. We define ourselves by how much we sway in one direction or the other. Its like bigotry, we are all bigots to varying degrees we aren't even aware of. If you don't eventually step back and take a look at the scale you'll never know where you land on it and so will remain stuck there.", "upvote_ratio": 130.0, "sub": "AskOldPeople"} +{"thread_id": "upbhw0", "question": "Why is that insulting, and should it be insulting?\n\nI don\u2019t understand why that\u2019s so commonly used as an insult.", "comment": "Many people think if someone is a virgin it's because they couldn't find anyone who wants to have sex with them, or that there is something wrong with them. \n\nSo by calling someone a virgin people are actually implying they are unattractive/have got no game/are weird", "upvote_ratio": 590.0, "sub": "NoStupidQuestions"} +{"thread_id": "upbhw0", "question": "Why is that insulting, and should it be insulting?\n\nI don\u2019t understand why that\u2019s so commonly used as an insult.", "comment": "Because some people suck and are immature and can't just mind their business, having to put others down to make themselves feel good", "upvote_ratio": 140.0, "sub": "NoStupidQuestions"} +{"thread_id": "upbhw0", "question": "Why is that insulting, and should it be insulting?\n\nI don\u2019t understand why that\u2019s so commonly used as an insult.", "comment": "Men use it as an insult to belittle other men \u201cyou\u2019re less of a man than me because you can\u2019t get laid\u201d. \n\nWomen tend to do the opposite, calling other women sluts as an attempt to insult their honour.", "upvote_ratio": 130.0, "sub": "NoStupidQuestions"} +{"thread_id": "upbiiw", "question": "In [first image](https://imgur.com/gallery/4cuI5O8) i used range in \"for loop\" and it worked properly but if use exp in [second image](https://imgur.com/gallery/4cuI5O8) which is also an iterator then why can't i use it directly instead of range. In [third image](https://imgur.com/gallery/4cuI5O8) as you can see i used the exp instead of range and it worked compeletly fine. I am totally confused can someone help.", "comment": "When you remove the range call from the for loop you need to also remove the index call from inside. So this: \n \n for i in range(len(data)):\n print(data[i])\n \n will become this: \n \n \n for i in data:\n print(i)\n\nIn your case you need both the index AND the value, so you should use the enumerate() function to get both of those.", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "upbq3f", "question": "I have a female moustache. I often get picked on for it, but I think it makes my face look better. Should I shave it?", "comment": "I've never seen a girl with a mustache that looks good. That's my take. But I haven't see your face before so I can't judge. Do what you want with your face.", "upvote_ratio": 700.0, "sub": "NoStupidQuestions"} +{"thread_id": "upbq3f", "question": "I have a female moustache. I often get picked on for it, but I think it makes my face look better. Should I shave it?", "comment": "Depends on what your goals are.", "upvote_ratio": 600.0, "sub": "NoStupidQuestions"} +{"thread_id": "upbq3f", "question": "I have a female moustache. I often get picked on for it, but I think it makes my face look better. Should I shave it?", "comment": "It doesn't matter whether your moustache is a female or a male. Just make sure you don't feed it after midnight.", "upvote_ratio": 530.0, "sub": "NoStupidQuestions"} +{"thread_id": "upbt6d", "question": "Hey, I have a problem in a task I\u2019ve been tried to handle with. The task goes like this: the user enters a sentences from maximum 9 words. And I need to convert the sentence into a matrix that the number of rows is as the number of words and the number of columns is 26 (as the alphabet a,b,c\u2026).I guess you see where it\u2019s going\u2026\n I need to convert each letter that it will be in the index as the index of it in the alphabet. \nExample: \u201cmy name is alex\u201d\nmy - will be stored in row 0\nAnd \u2018m\u2019 will be stored in column 12, etc\u2026\nI\u2019ve tried to handle with it in this way: first of all I\u2019ve converted the sentences into a list of it self that each word will be stored as an object in the list (without spaces), second I\u2019ve handled that all the letters will be set to\nLower case. Btw if there is a word with the same latter a lot of times it will just add the index of it. \nBut the main problem remains to convert the words into the given matrix, no matter what I\u2019ve done tried to use 2d loops but it just doesn\u2019t gives me the right answer.\nHelp please \ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d", "comment": "Show us the code you have, and the result matrix you would like from your example.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "upbu0n", "question": "What critically acclaimed movie do you most regret wasting your time watching?", "comment": "Avatar. \n\nRevolutionary? Yes. Visually stunning? Sure. \n\nPlot? Fern Gully did it better and in half the time.", "upvote_ratio": 2460.0, "sub": "AskReddit"} +{"thread_id": "upbu0n", "question": "What critically acclaimed movie do you most regret wasting your time watching?", "comment": "Cloud atlas. \n\nI had no problem following it, I just thought it was boring.", "upvote_ratio": 800.0, "sub": "AskReddit"} +{"thread_id": "upbu0n", "question": "What critically acclaimed movie do you most regret wasting your time watching?", "comment": "The English patient. Good I hated that movie.", "upvote_ratio": 780.0, "sub": "AskReddit"} +{"thread_id": "upbx5a", "question": "Hello.\n\nI recently came across a code, that sorts string which looks like this,\n\n std::vector<std::string> lines;\n \n //insert data into lines\n \n std::sort(lines.begin(), lines.end()); \n \n for(auto&& line : lines) //how is && being evaluated here?\n {\n std::cout << line << '\\n';\n }\n\nHow does && work there, I searched for few articles and they seamed out of reach of my understanding. I have basic idea of how references work.\n\nI'd be really glad if someone helped me understand both & and && references, if possible, in their own words or I'd like article suggestions as well.\n\nThank you.", "comment": "The reason you want to use a universal reference rather than an l value reference when you want to modify the element, is that it is possible for a container's iterator to not return a reference when it is dereferenced. In this case, using an l value reference will not compile because you can't bind a non-const reference to a value returned from a function.\n\nThe canonical example of this is with vector<bool>. The object you get when you try to iterate over a vector<bool> is not a bool& as you might expect. It is instead a special proxy object. And so using for (auto& iter : myBoolVector) won't compile. auto&& will compile because it can bind to anything and do the right thing. const auto& will also compile because there are special rules for const references extending the lifetime of temporary objects. But of course you can't use that to modify the elements.\n\nNow you might ask \"Why not use auto& until I get a compilation error and then add the extra ampersand?\" And to that I would say because that is always going to be more work than just using auto&& all the time. auto&& will always work and it will always be correct. Also there is a argument for consistent and simple rules. const auto& for non modifying for loop. auto&& for modifying for loop. Simple.", "upvote_ratio": 80.0, "sub": "cpp_questions"} +{"thread_id": "upbx5a", "question": "Hello.\n\nI recently came across a code, that sorts string which looks like this,\n\n std::vector<std::string> lines;\n \n //insert data into lines\n \n std::sort(lines.begin(), lines.end()); \n \n for(auto&& line : lines) //how is && being evaluated here?\n {\n std::cout << line << '\\n';\n }\n\nHow does && work there, I searched for few articles and they seamed out of reach of my understanding. I have basic idea of how references work.\n\nI'd be really glad if someone helped me understand both & and && references, if possible, in their own words or I'd like article suggestions as well.\n\nThank you.", "comment": "It\u2019s officially called forwarding reference. It can bind to lvalues or rvalues, at compile time. In this case, it will bind to an lvalue and translate to for(string& line : lines)", "upvote_ratio": 70.0, "sub": "cpp_questions"} +{"thread_id": "upc0nr", "question": "Is it some kind of container your put milk into? Similar to Canada with their milk bags?\n\nFor reference, in the UK most milk is sold in [plastic bottles with handles. ](https://www.google.com/search?q=milk+plastic+bottle&tbm=isch&ved=2ahUKEwib6oSVut73AhUHGRoKHdFwBcwQ2-cCegQIABAC&oq=milk+pl&gs_lcp=ChJtb2JpbGUtZ3dzLXdpei1pbWcQARgAMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQ6BAgjECc6BAgAEEM6BAgAEAM6CwgAEIAEELEDEIMBUKEIWIAnYLcvaAFwAHgAgAFbiAHKBpIBAjEwmAEAoAEBwAEB&sclient=mobile-gws-wiz-img&ei=Zlh_YpufG4eyaNHhleAM&bih=598&biw=360&client=ms-android-huawei-rev1&prmd=isnv&hl=en)", "comment": "A milk jug is what you linked", "upvote_ratio": 1450.0, "sub": "AskAnAmerican"} +{"thread_id": "upc0nr", "question": "Is it some kind of container your put milk into? Similar to Canada with their milk bags?\n\nFor reference, in the UK most milk is sold in [plastic bottles with handles. ](https://www.google.com/search?q=milk+plastic+bottle&tbm=isch&ved=2ahUKEwib6oSVut73AhUHGRoKHdFwBcwQ2-cCegQIABAC&oq=milk+pl&gs_lcp=ChJtb2JpbGUtZ3dzLXdpei1pbWcQARgAMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQ6BAgjECc6BAgAEEM6BAgAEAM6CwgAEIAEELEDEIMBUKEIWIAnYLcvaAFwAHgAgAFbiAHKBpIBAjEwmAEAoAEBwAEB&sclient=mobile-gws-wiz-img&ei=Zlh_YpufG4eyaNHhleAM&bih=598&biw=360&client=ms-android-huawei-rev1&prmd=isnv&hl=en)", "comment": "That thing you linked to, we'd call a milk jug. It comes to the store filled, we don't put milk in it ourselves. \n\nCardboard milk containers are called \"cartons\". \n\nGlass delivery bottles are basically antiques, you would have to go looking for someplace that used them. (If anywhere had British style milk floats, as opposed to trucks, I have never heard of it.)\n\nThe large metal drum-style things you see at farms, my people would call a canister. \n\nI've never personally seen a plastic bag of milk for retail use (certain milk dispenser units in cafes, etc used to use large ones with attached spouts). As you say, its a Canadian thing, and a big deal is made about it.", "upvote_ratio": 440.0, "sub": "AskAnAmerican"} +{"thread_id": "upc0nr", "question": "Is it some kind of container your put milk into? Similar to Canada with their milk bags?\n\nFor reference, in the UK most milk is sold in [plastic bottles with handles. ](https://www.google.com/search?q=milk+plastic+bottle&tbm=isch&ved=2ahUKEwib6oSVut73AhUHGRoKHdFwBcwQ2-cCegQIABAC&oq=milk+pl&gs_lcp=ChJtb2JpbGUtZ3dzLXdpei1pbWcQARgAMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQ6BAgjECc6BAgAEEM6BAgAEAM6CwgAEIAEELEDEIMBUKEIWIAnYLcvaAFwAHgAgAFbiAHKBpIBAjEwmAEAoAEBwAEB&sclient=mobile-gws-wiz-img&ei=Zlh_YpufG4eyaNHhleAM&bih=598&biw=360&client=ms-android-huawei-rev1&prmd=isnv&hl=en)", "comment": "Lol no way", "upvote_ratio": 180.0, "sub": "AskAnAmerican"} +{"thread_id": "upc1bw", "question": "At 7 years old I was kidnapped by my mothers drug dealer. He knew I was starving and asked if I wanted to get groceries with him. I knew we were not going back at some point. I remember him getting gas and thinking I could run to the pay phone and call 911. Except I knew he would catch me. He pornographed me and tried to sell me on several occasions. At one point, a female noticed me traveling with a much older male and reported me to the police. My own mother had yet to report me missing. Days had gone by at this point. He knew she was reporting him and he fled. I remember thinking I was going to die. He drugged me and the next thing I remember was waking up naked to firemen wrapping me in aluminum blankets to cover my naked body. I was later told that I was payment for a drug debt my mother owed. I have no idea what happened to my kidnapper. I do know he hurt other kids because he told me about them. I know the statistics of me surviving this are extremely rare. I\u2019ve never met a kidnapping survivor. I\u2019m thankful every day to be alive.", "comment": "How has this affected your relationship with your mom? Has it affected your everyday life now? I\u2019m sure it has to some extent, I can\u2019t imagine that just goes away.. although I know a lot of my trauma\u2019s details are kind of blocked from memory which I think helps cope. Is this the case for you? I\u2019m so sorry you had to go through that though, OP. Hugs", "upvote_ratio": 1070.0, "sub": "AMA"} +{"thread_id": "upc1bw", "question": "At 7 years old I was kidnapped by my mothers drug dealer. He knew I was starving and asked if I wanted to get groceries with him. I knew we were not going back at some point. I remember him getting gas and thinking I could run to the pay phone and call 911. Except I knew he would catch me. He pornographed me and tried to sell me on several occasions. At one point, a female noticed me traveling with a much older male and reported me to the police. My own mother had yet to report me missing. Days had gone by at this point. He knew she was reporting him and he fled. I remember thinking I was going to die. He drugged me and the next thing I remember was waking up naked to firemen wrapping me in aluminum blankets to cover my naked body. I was later told that I was payment for a drug debt my mother owed. I have no idea what happened to my kidnapper. I do know he hurt other kids because he told me about them. I know the statistics of me surviving this are extremely rare. I\u2019ve never met a kidnapping survivor. I\u2019m thankful every day to be alive.", "comment": "Well i don't have much to say other then, you should have a lovely and happy life, and take my free reward", "upvote_ratio": 380.0, "sub": "AMA"} +{"thread_id": "upc1bw", "question": "At 7 years old I was kidnapped by my mothers drug dealer. He knew I was starving and asked if I wanted to get groceries with him. I knew we were not going back at some point. I remember him getting gas and thinking I could run to the pay phone and call 911. Except I knew he would catch me. He pornographed me and tried to sell me on several occasions. At one point, a female noticed me traveling with a much older male and reported me to the police. My own mother had yet to report me missing. Days had gone by at this point. He knew she was reporting him and he fled. I remember thinking I was going to die. He drugged me and the next thing I remember was waking up naked to firemen wrapping me in aluminum blankets to cover my naked body. I was later told that I was payment for a drug debt my mother owed. I have no idea what happened to my kidnapper. I do know he hurt other kids because he told me about them. I know the statistics of me surviving this are extremely rare. I\u2019ve never met a kidnapping survivor. I\u2019m thankful every day to be alive.", "comment": "You mentioned in another comment that you have kids. Will you tell us about them? What do you love most about your life now?\n\nThank you for doing an AMA and sharing your experiences. <3", "upvote_ratio": 210.0, "sub": "AMA"} +{"thread_id": "upc8s7", "question": "Why do people care about Reddit karma?", "comment": "Same reason people care about any likes or hearts or votes on any social media platform. Just the basic feeling of \u201cpeople agree with me\u201d or \u201cpeople like what I\u2019m making\u201d.", "upvote_ratio": 310.0, "sub": "NoStupidQuestions"} +{"thread_id": "upc8s7", "question": "Why do people care about Reddit karma?", "comment": "I don't really have friends so it's nice to get the engagement and interaction. Makes me feel better.", "upvote_ratio": 200.0, "sub": "NoStupidQuestions"} +{"thread_id": "upc8s7", "question": "Why do people care about Reddit karma?", "comment": "I don't really care about it, but it makes me feel nice to know that sometimes people agree with what I say. It's strangely helped out my anxiety some.", "upvote_ratio": 160.0, "sub": "NoStupidQuestions"} +{"thread_id": "upc9q1", "question": "Does anyone know of any websites with prebuilt demo C# application that prompts you with a task to complete? I feel like it would be good preparation for a real work environment.\n\nhttps://www.sql-practice.com/ has this feature for SQL. I also literally just found it 2 minutes before making this post.", "comment": "Codewars has coding challenges, l guess that's what you mean.", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "upcczz", "question": "What are you addicted to?", "comment": "Daydreaming and Staying in bed. I am destroying my life because I can't find motivation. Once I get up and see my friends, I am perfectly happy and totally mentally present. But unless someone drags me out of bed, I can't find a reason to get up.", "upvote_ratio": 1850.0, "sub": "AskReddit"} +{"thread_id": "upcczz", "question": "What are you addicted to?", "comment": "that extra five minutes sleep (that turns out to be an hour)", "upvote_ratio": 1220.0, "sub": "AskReddit"} +{"thread_id": "upcczz", "question": "What are you addicted to?", "comment": "Sadly to refined sugar", "upvote_ratio": 560.0, "sub": "AskReddit"} +{"thread_id": "upckn7", "question": "My mom was honestly my absolute best friend and I am so overwhelmed. The planning and most of the logistical things are done, and now I'm just left with nothing to focus on but how much I miss her and how much I want to text her for advice. Taking care of my dad has also become a full time job, and I am fucking exhausted. It's only been a little over two weeks and the days to come seem impossible to imagine. What do I do? When will this get better?", "comment": "One day at a time. Eventually they get a little easier, but it takes time. You could also write to her, to get things out of your head. I would put my letters in an envelope, and \"mail\" them in a campfire... Writing out your Dad's schedule may help to get a routine going too. Good luck OP.", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "upcml3", "question": "what would you do If you are on a date and your Ex show up at the window singing \"Sweet little do-dee-do-dee\"?", "comment": "Laugh", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upcr3p", "question": "For what I'm working on, I have an imported PANDAS dataset csv with many columns, but two specifically I am working with: 'People' & \"Successrate'. There are thousands of rows of data, and names are repeated many times in the 'People' column with respective success rates. Overall, my goal is to find the average success rate for each person in the 'People' column. While I feel like I'm sort of on the right track, I need some input please.\n\n&#x200B;\n\ngroup = df.groupby(df\\['People'\\])\n\ngroup\\['Sucessrate'\\].value\\_counts().loc\\[\\['Gerald Farrell (18-25)'\\]\\]\n\n&#x200B;\n\nThe issue I'm having is that each person's name by default also has the Success wins vs losses in it. This is making it a lot harder for me to do my plan of grouping them and then doing .mean(). Is there any way that I can have python just collect all of the 'Successrate' data for Gerald Farrell by searching anything in the 'People' column with that partial string? If not, what would you recommend I do? I am happy to discuss in the comments!", "comment": "regular expressions are the move here, there's a bit of a learning curve but they're not as bad as they seem (they look cryptic). Here's a regex example to pull out the numbers: \n \n >>> import re\n >>>\n >>> s = 'Gerald Farrell (18-25)'\n >>>\n >>> re.findall('\\((\\d+)-(\\d+)\\)', s)\n [('18', '25')]\n \nyou could apply regex and do cool stuff:\n\n >>> import pandas as pd\n >>>\n >>> rows = [\n ... {'name': 'Gerald Farrell (18-25)'},\n ... {'name': 'Bob Ross (1-42)'},\n ... {'name': 'Mickey Mouse (23-23)'},\n ... ]\n >>>\n >>> df = pd.DataFrame(rows)\n >>> df\n name\n 0 Gerald Farrell (18-25)\n 1 Bob Ross (1-42)\n 2 Mickey Mouse (23-23)\n >>>\n >>> df['wins'] = df['name'].apply(lambda x: re.findall('\\((\\d+)-\\d+\\)', x).pop()).astype(int)\n >>> df['losses'] = df['name'].apply(lambda x: re.findall('\\(\\d+-(\\d+)\\)', x).pop()).astype(int)\n >>> df\n name wins losses\n 0 Gerald Farrell (18-25) 18 25\n 1 Bob Ross (1-42) 1 42\n 2 Mickey Mouse (23-23) 23 23\n >>>\n >>> df['name_clean'] = df['name'].apply(lambda x: re.findall('(.+)\\(\\d+-\\d+\\)', x).pop().strip())\n >>> df\n name wins losses name_clean\n 0 Gerald Farrell (18-25) 18 25 Gerald Farrell\n 1 Bob Ross (1-42) 1 42 Bob Ross\n 2 Mickey Mouse (23-23) 23 23 Mickey Mouse\n >>> \n >>> df['total'] = df['wins'] + df['losses']\n >>> df['success_rate'] = df['wins'] / df['total']\n >>>\n >>> df\n name wins losses name_clean total success_rate\n 0 Gerald Farrell (18-25) 18 25 Gerald Farrell 43 0.418605\n 1 Bob Ross (1-42) 1 42 Bob Ross 43 0.023256\n 2 Mickey Mouse (23-23) 23 23 Mickey Mouse 46 0.500000", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "upcrol", "question": "Hey people, i want to know if learning ruby on rails is easier for a complete beginner than javascript and also if building website with ror is faster than with js?", "comment": "If you are a complete beginner then I think I need to explain a few things.\n\nRuby and JavaScript are programming languages. \u201cRuby on rails\u201d is a backend framework, written in Ruby.\n\nYour starting place will be learning a language, not a framework.\n\nRuby is a nice readable language and there was a bit of a fad about 10 years ago to use it as a first programming language to help people learn the fundamentals of programming without the complexity of a harder to understand language.\n\nOnce you learn programming fundamentals, any language will be relatively easy. Learning the first language is hard.\n\nHowever Ruby is not used very much, while JavaScript is. There are more resources available to help learn & practice JS. And JavaScript has evolved a lot over the last ten years, is better than it used to be. \n\nIn terms of how fast to build a website\u2026 JavaScript is a full-stack language that can be used both on front end and backend, is almost always used for the front end of websites , but Ruby is usually just used for backend. So if you want to build a website you\u2019ll most likely need to use JS for the front end.\n\nIf you want the fastest way to build a website, use a no-code solution like Wix or wordpress.", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "upcxci", "question": "Hello,\n\nI'm looking for a book, site or any other resource to learn C++ doing exercises but I can't find any.\n\nDo you know if there is something like what I need?\n\nI think it is the best option to learn a new language.\n\nThanks!", "comment": "If you are familiar with the logic of coding in general I would recommend the book \"c++ crash course\" by josh lespinoso. It is a bit fast-paced but it helped me so much. I am a software engineering student and at the beginning of the semester I got to learn c++. My course was kinda following that book (not officially, I learned from that book on my own) and it was really helpful for me. \nOfc there are web sites like codingame.com and codewars.com for more practical use of programming languages. hope this helps, good luck!", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "upcxks", "question": "New grad currently working as a developer for a large company doing essentially website maintenance and small feature upgrades for multiple sites. The work is boring and isn't challenging. The environment is really chill and people are good to work with. A bit disorganized at times but what workplace isn't.\n\nGot an offer from a smaller company as a .NET developer. Working on internal tools and applications for throughout the business. Whether that is theirs labs, manufacturing, payroll, etc. Pay is the same but benefits are substantially less.\n\nMy current employer is offering me a raise, flexible schedule, team mobility, basically anything I'd like to stay. Which is enticing. But I'd be stuck still doing web development and maybe some Java application maintenance.\n\nI really like the C# .NET environment. And I see a lot of value in gaining experience as a .NET developer.\n\nRight now I'm leaning towards the .NET dev position. Because that's the tech I'm interested in and I'd like to pursue a career in. But I'm also absolutely considering my employers offer.\n\nIs there anything else I should consider in my decision making. And which should I value more as a new grad. The tech or the compensation?\n\nTLDR: Employer offering me more $$ to do boring job. Got offer to do more interesting work for less $. What to do?", "comment": "Third option: find another job that meets both criteria. \n\nFourth option: tell the new job that you\u2019d need to be paid as much (or more) than your current employer is offering.", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "upcxqr", "question": "how important are the extra-curricular activities in your college in terms of your resumee? \n\nI'm an introvert and have a hard time mixing up with people so it's an alien concept to me. But I've been working on it and have already participated in some activities at my campus but they leave me pretty exhausted so I'm wondering if these activities are important at all but in terms of getting a good job (sure they are for socializing and getting out of your shell).\n\nare there people who went through this experience who could advice not only me but other fellow introverts who have a hard time getting out of their shell and it may affect their future prospects of a decent job.", "comment": "100% padding and irrelevant but projects might be useful if relevant to the role.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upczxp", "question": "Do we need parasites? Are leeches and ticks necessary? If we eradicated botfly would another species suffer?", "comment": "There is some speculation that the eosinophilic aspect of the human body which functions to target parasites (and is also responsible for the development of allergies, asthma, and other \u201chistamine\u201d related conditions) needs exposure to parasites and other infections to be properly trained. \n\nIn the modern world, we have barely any exposure to parasites, so the theory is that the eosinophilic arm of the immune system doesn\u2019t have anything to target, so it\u2019s more prone at targeting the \u201cself\u201d which contributes to allergies and asthma and eczema, etc. \n\nThis is corroborated by the finding that the developed world has significant rates of these conditions whereas parts of the world that are much less developed and do regularly encounter parasites have minimal rates of these conditions.", "upvote_ratio": 3910.0, "sub": "AskScience"} +{"thread_id": "upczxp", "question": "Do we need parasites? Are leeches and ticks necessary? If we eradicated botfly would another species suffer?", "comment": "In general, parasites are essential for the balance of life on the planet. I'm sure everyone has heard of the \"[zombie fungus](https://en.m.wikipedia.org/wiki/Ophiocordyceps)\" that kills ants. That's just an example of what happens when overpopulation becomes an issue. Now obviously stressed environments can exacerbate the effects of parasites and lead to decimation of populations. [Chytrid fungus](https://en.m.wikipedia.org/wiki/Chytridiomycosis) in amphibians is a good example. \n\nAs far as individual species of parasites, eliminating one probably won't matter, Nature abhorring a vacuum and all that but in total we absolutely need parasites.\n\nA fun read on this topic is [Parasite Rex](https://en.m.wikipedia.org/wiki/Parasite_Rex), it's probably one of my favorite books.", "upvote_ratio": 3600.0, "sub": "AskScience"} +{"thread_id": "upczxp", "question": "Do we need parasites? Are leeches and ticks necessary? If we eradicated botfly would another species suffer?", "comment": "It may not be strictly necessary, but you could argue it's beneficial. I once heard on a radiolab podcast that mosquitos are responsible for keeping areas of the amazon rainforest free from human interference. The wildlife population there is largely unaffected by the mosquitos but any human is quickly covered in bites which are at best, annoying, and at worst, deadly.\n\n[https://www.npr.org/2008/07/30/93049810/three-nice-things-we-can-say-about-mosquitoes](https://www.npr.org/2008/07/30/93049810/three-nice-things-we-can-say-about-mosquitoes)", "upvote_ratio": 200.0, "sub": "AskScience"} +{"thread_id": "upd9sc", "question": "If Cinderella\u2019s shoe fit her perfectly, then why did it fall off?", "comment": "Because in the original Brothers Grimm version it doesn\u2019t \u201cfall off\u201d. The prince puts down tar paper to capture Cinderella against her will and when the shoe gets stuck she leaves it behind in order to escape.", "upvote_ratio": 300.0, "sub": "AskReddit"} +{"thread_id": "upd9sc", "question": "If Cinderella\u2019s shoe fit her perfectly, then why did it fall off?", "comment": "The heat from all the dancing caused thermal expansion in the glass.", "upvote_ratio": 290.0, "sub": "AskReddit"} +{"thread_id": "upd9sc", "question": "If Cinderella\u2019s shoe fit her perfectly, then why did it fall off?", "comment": "Because it was NOT a fucking shoe.\n\nIt was a slipper.", "upvote_ratio": 220.0, "sub": "AskReddit"} +{"thread_id": "updb17", "question": "how can i get back my permanently deleted google docs please help me those were very important docs", "comment": "making a new topic won't change the answer [you got in the first topic](https://www.reddit.com/r/AndroidQuestions/comments/unyuji/docs/)", "upvote_ratio": 40.0, "sub": "AndroidQuestions"} +{"thread_id": "updb17", "question": "how can i get back my permanently deleted google docs please help me those were very important docs", "comment": "The clue is in the name.\n\nPermanently deleted", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "updb7f", "question": "why don't people care when they ask you how are you, and instead how are you is a greeting, I have always lied and said I am fine because people make it worse or make you feel worse if you don't say fine, or they genuinely don't care, if you don't care, why ask, it's not polite at all", "comment": "*stares in British *", "upvote_ratio": 200.0, "sub": "ask"} +{"thread_id": "updb7f", "question": "why don't people care when they ask you how are you, and instead how are you is a greeting, I have always lied and said I am fine because people make it worse or make you feel worse if you don't say fine, or they genuinely don't care, if you don't care, why ask, it's not polite at all", "comment": "Nobody is fine. We\u2019re all just doing our best not to burst into tears or scream at strangers in the street. \u201cHow\u2019re you?\u201d, \u201cfine!\u201d Is just a little dance we all do to make this place a bit bearable. The people saying it to you are having just as bad a day as you are.", "upvote_ratio": 160.0, "sub": "ask"} +{"thread_id": "updb7f", "question": "why don't people care when they ask you how are you, and instead how are you is a greeting, I have always lied and said I am fine because people make it worse or make you feel worse if you don't say fine, or they genuinely don't care, if you don't care, why ask, it's not polite at all", "comment": "It's Goffman's social interaction order and it's common in all English speaking countries. It's just a minor social extension of 'hello' and unless you're physically on fire at that point, the correct and polite answer is always 'fine / alright. How're you doing?' It's no more meaningful than a shop-worker telling you to 'have a nice day' -nobody gives a rat's arse whether you have a nice day or not, it's just a way of saying hello or goodbye to someone you're spending a little time with, but don't know that well.", "upvote_ratio": 120.0, "sub": "ask"} +{"thread_id": "updd41", "question": "I've been using g++ to compile C++ for a while. \n\nSince recently, It produces defective programs every time I include <iostream>. Interestingly, other Includes like <vector> or <regex> don't cause the issue!\n\nThe output file crashes immidiately with error \"-1073741515\". \nUsing g++ instead of gcc does not help.", "comment": "Perhaps your libs are corrupt? Bitrot? Or do you do something nasty in your code? \n\nOn a fresh install, does it work OK? Try on a VM first...", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "updd4z", "question": "If yes, which poems did you learn? If no, do you thing it should be a thing?", "comment": "I don't know about now, but we had to memorize pieces when I was in school. (Two would be the prologue from the Canterbury Tales (Jr high), and the funeral speech from Julius Caesar, which we took turns doing in HS.) \n\nIn terms of more modern poems, we'd have been more likely to be asked to read and analyze them than to learn them by rote.", "upvote_ratio": 180.0, "sub": "AskAnAmerican"} +{"thread_id": "updd4z", "question": "If yes, which poems did you learn? If no, do you thing it should be a thing?", "comment": "That is not common. I think I had to do it one time? \n\nI do like to memorize prose or poetry now as an adult though.", "upvote_ratio": 70.0, "sub": "AskAnAmerican"} +{"thread_id": "updd4z", "question": "If yes, which poems did you learn? If no, do you thing it should be a thing?", "comment": "The only time I remember having to memorize a poem was sophomore year of HS having to memorize the intro to Romeo & Juliet. \u201cTwo houses both alike in dignity, in fair Verona where we may our scene\u2026\u201d\n\nIambic pentameter, bitch!", "upvote_ratio": 70.0, "sub": "AskAnAmerican"} +{"thread_id": "updgxf", "question": "You have 15min to prepare a lecture to 5,000 people about anything\u2026what would your topic be? Why?", "comment": "\"Well, they dropped this lecture on me with only 15 minutes to prepare, so I'm afraid you sorry bastards are going to have to sit through a detailed exploration of the deep history of the Warhammer 40,000 universe. So, the first thing to understand is that our universe is paired with a second universe made of pure energy...\"", "upvote_ratio": 76000.0, "sub": "AskReddit"} +{"thread_id": "updgxf", "question": "You have 15min to prepare a lecture to 5,000 people about anything\u2026what would your topic be? Why?", "comment": "I would just talk about myself.\n\nThe first line would be: I was born at a very young age.", "upvote_ratio": 31180.0, "sub": "AskReddit"} +{"thread_id": "updgxf", "question": "You have 15min to prepare a lecture to 5,000 people about anything\u2026what would your topic be? Why?", "comment": "Good news! I'm a post doc and have a bunch of slide decks ready! Will any of these 5,000 people be on a faculty hiring committee? Please?", "upvote_ratio": 22460.0, "sub": "AskReddit"} +{"thread_id": "updjoc", "question": "I'm brand new to programming and I've been following some tutorials online. I like to look at projects and put my own spin on them, this one was a choose you're own adventure the tutorial was all if statements pretty much and was kinda hard to read and edit so I decided to use nested dictionaries to make things easier to expand apon. Figuring out how to manage this when I was certainly using the tool in a way it wasn't meant for wasn't easy and it felt really janky but I'm still proud of it I was hoping some of you experts could give me feedback so I know where I messed up and what I could do to improve.\n\n&#x200B;\n\n path = {\n 'You come across a fork in the road which way do you go?: ': {\n 'left': {\n 'You come across a river: ': {\n 'swim': 'You get eaten by an alligator',\n 'walk': 'You walk for many miles and die from exhaustion'\n }\n },\n 'right': {\n 'You find a bridge: ': {\n 'cross': 'Your wife greets you on the other side and you go home with her',\n 'go back': 'You wander until night falls and get attacked by Wolves'\n }\n }\n }\n }\n prompt = path\n while True:\n hint = list(*prompt.values())\n print('Choices: ' + hint[0] + ' or ' + hint[1])\n answer = input(*list(prompt.keys())).lower()\n if answer not in prompt[str(*prompt.keys())]:\n print(\"You can't do that\")\n continue\n else:\n prompt = prompt[str(*prompt.keys())][answer]\n if isinstance(prompt, str):\n print(prompt)\n print('Game Over!')\n break", "comment": "Interesting concept with the dictionary. I don\u2019t think it\u2019s the best solution, mainly because the longer the story, the deeper into it you\u2019d have to go and that\u2019s a lot to track. \n\nThat said, I think you were on the right track. What you really want is a class to represent a choice. Think linked list.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "updnpm", "question": "Im 20 and i have fantasies of women keeping me safe", "comment": "That sounds like you crave comfort and stability. Nothing wrong with that.", "upvote_ratio": 290.0, "sub": "NoStupidQuestions"} +{"thread_id": "updnpm", "question": "Im 20 and i have fantasies of women keeping me safe", "comment": "As long as it stays with fantasy, you can imagine whatever the hell you like. There is no thought police and as long as you yourself are aware of it when you have a... Uhm... _Less than respectable_ thought, all is still good.\n\nAs for having a strong woman around to protect you, I don't know what you're imagining; whether she has a machine gun and is shooting hordes of zombies or is just stepping up to someone who's badmouthing you, doesn't really matter.\n\nYour fantasies are yours, and they'll stay that way unless you decide to share them. So go hogwild, my friend!", "upvote_ratio": 110.0, "sub": "NoStupidQuestions"} +{"thread_id": "updnpm", "question": "Im 20 and i have fantasies of women keeping me safe", "comment": "You might find the truth disappointing but nothing wrong with fantasizing.", "upvote_ratio": 100.0, "sub": "NoStupidQuestions"} +{"thread_id": "updx25", "question": "Edit : Found a website that provides latest g++ builds on windows.\n\n[This is the link for latest g++](https://winlibs.com/). This link was copied from [stackoverflow](https://stackoverflow.com/questions/61811384/compiler-to-c20-on-windows) post, thanks to the author.\n\n&#x200B;\n\nOriginal Post :\n\n4 years of coding in C++ (as a student) it is a shameful thing that I don't know how to install g++ on windows.\n\nCould someone provide the link to install the latest g++ which should support c++2b.\n\nThank you very much.", "comment": "Do yourself a favour and just use Visual Studio, mingw is more annoying to setup. Or use the WSL and then simply do `sudo apt get install g++-12` (though then your programs will run in the WSL, not Windows. For non-graphic applications this doesn't matter though).", "upvote_ratio": 40.0, "sub": "cpp_questions"} +{"thread_id": "updx25", "question": "Edit : Found a website that provides latest g++ builds on windows.\n\n[This is the link for latest g++](https://winlibs.com/). This link was copied from [stackoverflow](https://stackoverflow.com/questions/61811384/compiler-to-c20-on-windows) post, thanks to the author.\n\n&#x200B;\n\nOriginal Post :\n\n4 years of coding in C++ (as a student) it is a shameful thing that I don't know how to install g++ on windows.\n\nCould someone provide the link to install the latest g++ which should support c++2b.\n\nThank you very much.", "comment": "Usually and right now not the very latest, but good enough.\n\nhttps://nuwen.net/mingw.html", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "upe00h", "question": "[Serious] People who had the absolutely worst neighbors, what did they do?", "comment": "My husband and I were both active duty U.S. Air Force and lived on base, in base housing. The place we lived was a 2 bedroom duplex, with the bedrooms being the middle wall. Our first neighbors decided to put a surround sound system on the wall directly up to our bedroom. It ended up escalating until we had both of our 1st Sgt's (highest enlisted boss) involved. The husband ended up coming over and threatening to make my husband eat through a straw. She ended up getting discharged not long after. I looked them up a bit later and found that he was murdered. I know why.", "upvote_ratio": 230.0, "sub": "AskReddit"} +{"thread_id": "upe00h", "question": "[Serious] People who had the absolutely worst neighbors, what did they do?", "comment": "Killed our cat by letting their dogs hunt it .\n\nRip Cleo 2018-2019", "upvote_ratio": 120.0, "sub": "AskReddit"} +{"thread_id": "upe00h", "question": "[Serious] People who had the absolutely worst neighbors, what did they do?", "comment": "[deleted]", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upe572", "question": "An 18 years old self-taught (at least for now) programmer here. I've applied for many job positions I thought I'm qualified for, however, I didn't get any response, except from one position that I was referred to by a friend. The interviewer saw potential in me and offered me a Java developer position. I accepted it and started working. Until now I'm satisfied with everything regarding this position (it is fully remote, the team is great and I'm learning many new things), except the pay. I get an hourly wage of almost the minimum in my country. However, I care much less about it for now because I'm considering this position more like an internship for me. I'm planning to start haunting for a new position in 1 - 1.5 years from now. Therefore I'm wondering, will it get any easier to land interviews and get job offers with about 1 YOE in this field?", "comment": "Yes it does", "upvote_ratio": 170.0, "sub": "CSCareerQuestions"} +{"thread_id": "upe572", "question": "An 18 years old self-taught (at least for now) programmer here. I've applied for many job positions I thought I'm qualified for, however, I didn't get any response, except from one position that I was referred to by a friend. The interviewer saw potential in me and offered me a Java developer position. I accepted it and started working. Until now I'm satisfied with everything regarding this position (it is fully remote, the team is great and I'm learning many new things), except the pay. I get an hourly wage of almost the minimum in my country. However, I care much less about it for now because I'm considering this position more like an internship for me. I'm planning to start haunting for a new position in 1 - 1.5 years from now. Therefore I'm wondering, will it get any easier to land interviews and get job offers with about 1 YOE in this field?", "comment": "It gets significantly easier, though you still have to put effort into crafting a good resume and interview prepping.", "upvote_ratio": 120.0, "sub": "CSCareerQuestions"} +{"thread_id": "upe572", "question": "An 18 years old self-taught (at least for now) programmer here. I've applied for many job positions I thought I'm qualified for, however, I didn't get any response, except from one position that I was referred to by a friend. The interviewer saw potential in me and offered me a Java developer position. I accepted it and started working. Until now I'm satisfied with everything regarding this position (it is fully remote, the team is great and I'm learning many new things), except the pay. I get an hourly wage of almost the minimum in my country. However, I care much less about it for now because I'm considering this position more like an internship for me. I'm planning to start haunting for a new position in 1 - 1.5 years from now. Therefore I'm wondering, will it get any easier to land interviews and get job offers with about 1 YOE in this field?", "comment": "Yes, and the more senior you get the more people reach out to you for interviews in general.", "upvote_ratio": 70.0, "sub": "CSCareerQuestions"} +{"thread_id": "upe91i", "question": "Hi guys, I have been asked to backport our project. Currently it compiles on RHEL 7.9, and I need to make it compile on RHEL 7.8 and 7.7.\n\nI never did anything like this before and would appreciate some tips like where do I even start and what do you guys think it will take.\n\nThanks in advance :)", "comment": "I would install 7.8 and 7.7 on virtual machine. \nThen try to compile. \nIf it compiles, see if unit tests are passing. \n???\nProfit", "upvote_ratio": 200.0, "sub": "cpp_questions"} +{"thread_id": "upe91i", "question": "Hi guys, I have been asked to backport our project. Currently it compiles on RHEL 7.9, and I need to make it compile on RHEL 7.8 and 7.7.\n\nI never did anything like this before and would appreciate some tips like where do I even start and what do you guys think it will take.\n\nThanks in advance :)", "comment": "Do you depend on operatong system APIs? Then check what changed in the ones you use between the different versions (same goes for all external dependencies) \n\nDo those older versions use a different compiler? Check change log of the compiler. If the compiler is different, does is lt have support for the language version you're using? If not, you'll have to port your app to an older version of the language.", "upvote_ratio": 30.0, "sub": "cpp_questions"} +{"thread_id": "upeced", "question": "Why are men over 30 actively seeking relationships with barely legal girls?", "comment": "Because the younger they are the more bullshit they will put up with. They are easily swayed to think the man loves they because he buys her a few pretty baubles or tells her he loves her and this is what love looks like. The older a woman get, the more experience she has under her belt, the more she is looking for a balanced relationship that benefits both people.", "upvote_ratio": 670.0, "sub": "ask"} +{"thread_id": "upeced", "question": "Why are men over 30 actively seeking relationships with barely legal girls?", "comment": "i think it\u2019s because younger girls are easier to manipulate. barely legal is 18 in most states; which is still a teenager. they don\u2019t have a lot of life experience or relationship experience, so it\u2019s easier to treat them badly and still have them admire you.", "upvote_ratio": 400.0, "sub": "ask"} +{"thread_id": "upeced", "question": "Why are men over 30 actively seeking relationships with barely legal girls?", "comment": "Let's be honest. They are only seeking sex.", "upvote_ratio": 320.0, "sub": "ask"} +{"thread_id": "upefq7", "question": "All my life, I'd always get comments about how quiet I am, cliche jokes about me being able to talk, teachers needing to point out I'm not super talkative to the whole class etc. It's always \"You're so quiet. Why don't you talk more?\" but you rarely ever hear \"You talk too much. Why don't you talk less?\" apart from maybe a classroom and it's so annoying. If someone's a chatterbox, it's \"Oh that's just how they are haha\", but if someone keeps to themselves, it's \"Oh they're kind of strange.\"", "comment": "Tbh happens a lot with me. For me, I'm just comfortable with few people only. But sometimes during occasions like family gathering and all, I get quiet most of the time. I have heard \"why don't you talk ? Are you mute?\" Funny comments. \nAnd at that time I'm literally this close to ask them \"why can't you shut your mouth even for a second\" lol\nI don't know dude, why don't people understand there are different kind of people on this Earth and we are one of them. We don't have to be like each other.", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "upeg3r", "question": "What are some modern systems programming languages that are like C and C++? And what do you think about Go and Rust, and if you were to learn one of them which would you choose?", "comment": "1. Rust \n\n2. I dunno, while Rust makes us think of low level programming, I have a higher level program written in it and so far I think I might outright to prefer to make programs with it, when not using a lisp for super interactivity, Clojure for its combination of lisp power and functional axioms, or something powerful like Haskell\n\nWould need to explore more Go for #2\n\nEDIT: Oh, you said what would you learn, I somehow read it as which would you choose like for a 'normal' app. I'd learn Rust over Go a million times if I didn't already know it", "upvote_ratio": 40.0, "sub": "AskProgramming"} +{"thread_id": "upeg3r", "question": "What are some modern systems programming languages that are like C and C++? And what do you think about Go and Rust, and if you were to learn one of them which would you choose?", "comment": "1. There are many newer ones like Zig, Crystal, Nim, just to name a few.\n2. I'd go with Rust, as it abstract a lot of the tedious things, has great error handling and a really good and growing ecosystem. I advise you to give Go a pass, unless you need a job where it is required.", "upvote_ratio": 30.0, "sub": "AskProgramming"} +{"thread_id": "upejer", "question": "I was learning C and it said 'void' means function does not return anything but if i do print('helloworld') then it will return 'helloworld' even if i have put void.", "comment": "to distinguish between 'return' from the function and the 'output' here are the examples\n\n void print(void) // this function prints to STDOUT\n {\n printf(\"hello world\\n\");\n }\n \n int sum( int a, int b) // this function returns the sum value\n {\n return a+b;\n }\n \n int mix(int a, int b) // this function does both: prints to STDOUT and returns\n {\n printf(\"hello world\\n\");\n return a+b;\n }\n \n x = print(); // NOT valid as print() does not return, compilation err\n x = sum(1,2); // Valid, returned 3\n x = mix(1,2); // Valid, returned 3, and 'hello world' will be printed\n \n\nfunction's return has nothing to do with what is printed.", "upvote_ratio": 190.0, "sub": "AskProgramming"} +{"thread_id": "upejer", "question": "I was learning C and it said 'void' means function does not return anything but if i do print('helloworld') then it will return 'helloworld' even if i have put void.", "comment": "Reutrning is not the same as printing. For example\n\n```\nint add_one(int x){\nprintf(\"Adding one\");\nreturn x+1;\n}\n```\n\nPrints \"adding one\" but returns x+1. If the return type is void the function may print, but it does not return anything. Printing is done to the output whereas return passes the state inside the program.", "upvote_ratio": 100.0, "sub": "AskProgramming"} +{"thread_id": "upekbn", "question": "I Just found out that there are statistics of undercutting salaries of H1B visa holders because they are in a precarious situation with the difficulties of visa processing. How true and prevalent is this? Does this stay true even if you have multiple YOE?", "comment": "Depends on the company probably but according to myvisajobs.com which is pretty legit in helping people get sponsored jobs, FANNG SWEs still make around the same money as people without visas. Could be different for other other companies though. Could be similar", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upekby", "question": "Why is the Upper peninsula of Michigan a part of Michigan instead of Wisconsin? The Macinak bridge would have been built anyway but it makes more sense for the UP to be part of WI", "comment": "While there is certainly more to be said, here is al ink to a similar question with an answer (Edit answer by u/Reedstilt)\r \n\n\n[https://www.reddit.com/r/AskHistorians/comments/1fc2af/why\\_is\\_michigans\\_upper\\_peninsula\\_part\\_of\\_michigan/](https://www.reddit.com/r/AskHistorians/comments/1fc2af/why_is_michigans_upper_peninsula_part_of_michigan/)\n\nThe short version is that it is a result of Ohio and Michigan's dispute over the Toledo Strip", "upvote_ratio": 30.0, "sub": "AskHistorians"} +{"thread_id": "upekro", "question": "I just finished a Google IT support certificate this last month and am excited to look for entry level work at a help desk worker.\n\nMy job counselor says we have a little over $6000 for my education and showed me a class that's 12 months for about 3000 that prepares and pays for CompTIA+, net+ and security+ tests. Should I enroll in this? Or consider an online masters program since I have a bachelor's and am catching up on math on Coursera. We agree that before I choose a paid program I should continue using Coursera for my educational resources.\n \nSalary is important to be and it seems like doing security+ and net+ might not align with that goal. And the comptia+ is similar to the Google IT cert I just got, so could it look redundant on a resume?\n\n\nI'm a home maker and a recovering addict, I somehow got a bachelor's in english (suma cum laude from a pretty awful school, it's not exactly my best accomplishment. I didn't know what I wanted to study and I was working in retail 30 hours a week in college) and I studied education and was going to be a teacher but ended up hating it after finishing student teaching and all the tests. \n\nI haven't had a real job in over ten years. I am only now starting to have goals and I'm actually very committed to having a great career and putting in the effort to learn something new. My English degree didn't require learning new skills. Another reason I feel shame associated with it. I'm also nervous about a job bc working in retail was not very fun and it has caused me to be apprehensive and not excited about working. \n\nI enrolled in a Google cloud certification so that I can continue learning because I really enjoyed the IT support classes. I'm currently dual booting my computer with Linux and windows because I signed up for a class in c and want to also learn shell scripting and the kernel. On the c programming subreddit somebody suggested learning web development programming.\n\nDo you think that a class in html java and css for web development is better aligned with the Google cloud certification? What type of background skills should I be learning if I want to work as a cloud \"engineer\" ?\n\nAlso want to mention that even though I'm motivated and did the IT support cert in a month.. that I have a seven year old and I'm a recovering addict. I think eventually jobs with more responsibility are fine, but I have to consider that I'm not in my best condition yet to take on anything too stressful or important. I can see myself being an asset in the future as long as I stay on the right path, that's why I'm more or less focusing on the educational aspect for now and only looking for part time work to get back into being human.", "comment": "First off take a breath. Coming from someone who worked retail, IT is similar. If you get higher up, the customer service side fades slightly but IT is a customer service position. You have to be able to handle angry users and explain technology to people that might as well not know the difference between word and a web browser. Soft skills and communication matter significantly more than technical ability in IT.\n\nI wouldn\u2019t get a masters. A masters in IT only matters if you are looking at jobs that are 200k+. I personally would self-study certifications and use that money towards that. There are a lot of Microsoft certs that are only 100 each, can be learned in a week, and have free material for self-study.\n\nYouTube is also your best friend. Exam crams and other content can accelerate your skill advancement. 3 certs in 12 months isn\u2019t a lot, and the price seems excessive to me.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upem7n", "question": "So I have completed 4 years of a computer science degree and have only a few hours left to go. I have the base knowledge that college has taught me. I\u2019ve decided I want to go all in with JavaScript web development. I just started free code camp lessons and plan to add the Odin project as another resource. Am I correct in thinking that learning JavaScript will prepare me for most job opportunities? If anything will it help me learn other languages well?", "comment": "It\u2019ll prepare you for front end opportunities and potentially game dev if you\u2019re interested in that.\n\nI wouldn\u2019t neglect html and css if you are looking at web development, make sure you know your css flexbox, css grid, responsive layouts and basic html syntax. \n\n\nCongratulations on finishing your degree \ud83e\udd73", "upvote_ratio": 60.0, "sub": "LearnProgramming"} +{"thread_id": "upem7n", "question": "So I have completed 4 years of a computer science degree and have only a few hours left to go. I have the base knowledge that college has taught me. I\u2019ve decided I want to go all in with JavaScript web development. I just started free code camp lessons and plan to add the Odin project as another resource. Am I correct in thinking that learning JavaScript will prepare me for most job opportunities? If anything will it help me learn other languages well?", "comment": "Out of curiosity what was the main language used throughout your degree?", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upeman", "question": "I have dabbled with python years ago but I only knew basics back then and I have forgotten everything. \n\nI currently know Java basics well (I have completed AP CS A) but the language doesn\u2019t completely suit my needs.\n\nOver the next few months, I would like to begin my learning journey in Artificial intelligence and I would like to first learn the syntax of the language I\u2019ll use. Along with AI, I\u2019d like to have the freedom of programming apps on both IOS & Android, and also maybe get into web development (maybe make basic websites where I can apply my knowledge in AI, create a personal portfolio, etc\u2026).\n\nI\u2019m leaning more towards JavaScript as it\u2019s a language I\u2019ve never tried but I am not completely sure what to choose that will be the most suiting.", "comment": "JavaScript is... not great for AI. Python is fantastic for AI.\n\nJavaScript is vital for web development. Python is not needed for web development.\n\nPython can be used for some parts of web development (backend with Django or Flask), but it's still a necessity to know JavaScript.\n\nI'm not familiar with building IOS and Android apps, but I suspect JavaScript would have the edge there because of frameworks like React Native.\n\nIf your goal is to learn AI and web development, it'd be a long-term goal to learn both. Which one to learn first is up to you. Do you want to focus on AI (Python) or web development (JavaScript)?\n\nLearning one will make learning the second much easier; it doesn't really matter which one you start with.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upeu9z", "question": "I am thinking of applying to a job that uses kotlin as their main programming language. Does kotlin have a good outlook in the industry as a language or do you think everyone will eventually switch back to Java? Specifically interested in hearing your opinion about kotlin's outlook outside of Android development.", "comment": "You're not going to pigeonhole yourself into jobs that use kotlin by working at a job that uses kotlin. Once you get familiar with the field, programming languages are easy switch between, especially if you had to switch from kotlin back to java given how similar the two are.", "upvote_ratio": 270.0, "sub": "CSCareerQuestions"} +{"thread_id": "upeu9z", "question": "I am thinking of applying to a job that uses kotlin as their main programming language. Does kotlin have a good outlook in the industry as a language or do you think everyone will eventually switch back to Java? Specifically interested in hearing your opinion about kotlin's outlook outside of Android development.", "comment": "It's comparatively niche but Java is so widespread a niche JVM language is still very widely used. It's very common for back-end shops to use Kotlin outside of Android development.", "upvote_ratio": 110.0, "sub": "CSCareerQuestions"} +{"thread_id": "upeu9z", "question": "I am thinking of applying to a job that uses kotlin as their main programming language. Does kotlin have a good outlook in the industry as a language or do you think everyone will eventually switch back to Java? Specifically interested in hearing your opinion about kotlin's outlook outside of Android development.", "comment": "My entire company uses Java for back-end, but my team has recently adopted Kotlin for our new API microservices which we have been building for over a year now.\n\nBeing good at Kotlin does not lock you in to Kotlin. To me, Kotlin just feels like what Java would be if it was created from scratch today. You can easily carry your skills between the languages", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "upew2i", "question": "Are boybands considered as a genre of music?", "comment": "Nope. They're not a genre in themselves. They're just a style of Pop/RnB/Rap usually", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "upewdi", "question": "Hi,\n\nI want to create an array from another existing array but without some elements.\n\nIt is similar to deleting an element from an array but instead deleting a few.\n\nFor instance,\n\n int numberArray[] = {1,2,4,8,10};\n\n&#x200B;\n\n String[] numbersArray = {\"2\",\"2\",\"1+1+1\",\"1\",\"1\",\"10+10\",\"10\"}; \n\nWhat could be the best way to get rid of numbersArray\\[3\\],numbersArray\\[4\\] and numbersArray\\[6\\]?\n\nI thought a for loop with the method \"remove()\". And to that it does not try to create an array from another existing array, I thought it does, because there is no way in java to correct a static array without making a new array and inserting new elements in the new array.\n\n&#x200B;\n\nI tried for loop to execute but the grammar is wrong perhaps.\n\n for (i = tmp; i <= tmp2; i++){\n numberArray.remove(i)\n }\n\nThank you for help!", "comment": "Showing only part of your code makes it difficult to help you. It can\u2019t compile on its own either. You\u2019ve used two variables that we have no information about and it appears that the `i` got capitalized\u2026 this doesn\u2019t even get us to what\u2019s wrong with `.remove()` when you said you want to \u201ccreate an array from _another_ existing array.\u201d The code you posted doesn\u2019t do that nor does it try.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upewjq", "question": "I never see any stories about people that hate dogs that don't portray the dog-hater as an evil animal abuser. Does it make you a bad person to hate dogs?", "comment": "Hate is a strong word, i don't think you're a bad person for disliking dogs and not wanting to do anything with them. \nDog owners can be just as annoying as entitled parents and i can see some people be put off by that.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upewjq", "question": "I never see any stories about people that hate dogs that don't portray the dog-hater as an evil animal abuser. Does it make you a bad person to hate dogs?", "comment": "No, hurting dogs is wrong. Hate is an emotion. Only religious zealots make feelings and thoughts into sins.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upewyc", "question": "I understand In competitive fighting that it can be penalised. But in bar fights, or random attacks, why not go for the testicles. Like if your fighting for your life, are you really going to honour some stupid bro code?", "comment": "I have been in a street fight against a group of muggers and was kicked square in the balls hard. I can say, when the adrenalin is going, it is nowhere as incapacitating as people think it is.", "upvote_ratio": 6600.0, "sub": "NoStupidQuestions"} +{"thread_id": "upewyc", "question": "I understand In competitive fighting that it can be penalised. But in bar fights, or random attacks, why not go for the testicles. Like if your fighting for your life, are you really going to honour some stupid bro code?", "comment": "In life or death situations I\u2019m sure people do", "upvote_ratio": 4040.0, "sub": "NoStupidQuestions"} +{"thread_id": "upewyc", "question": "I understand In competitive fighting that it can be penalised. But in bar fights, or random attacks, why not go for the testicles. Like if your fighting for your life, are you really going to honour some stupid bro code?", "comment": "People do. If I'm being attacked then I'm going for whatever since I don't stand a chance anyways. Growing up my mom always said go for eyes and between the legs.", "upvote_ratio": 1470.0, "sub": "NoStupidQuestions"} +{"thread_id": "upexgg", "question": "I am a man.\n\n[Option 1](https://www.amazon.co.uk/gp/product/B09DKWNN9B/ref=ox_sc_act_title_1?smid=A2MQKJIJR17TRV&psc=1)\n\n[Option 2](https://www.amazon.co.uk/gp/product/B095YQWGP8/ref=ox_sc_act_title_3?smid=A1FJP4ZGVUHHPW&psc=1)", "comment": "Option two. Has many tiny little features that could make a huge difference in convenience. Also is totally set up for long-distance travel.", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "upexgg", "question": "I am a man.\n\n[Option 1](https://www.amazon.co.uk/gp/product/B09DKWNN9B/ref=ox_sc_act_title_1?smid=A2MQKJIJR17TRV&psc=1)\n\n[Option 2](https://www.amazon.co.uk/gp/product/B095YQWGP8/ref=ox_sc_act_title_3?smid=A1FJP4ZGVUHHPW&psc=1)", "comment": "Option 2 looks the better one.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upexgg", "question": "I am a man.\n\n[Option 1](https://www.amazon.co.uk/gp/product/B09DKWNN9B/ref=ox_sc_act_title_1?smid=A2MQKJIJR17TRV&psc=1)\n\n[Option 2](https://www.amazon.co.uk/gp/product/B095YQWGP8/ref=ox_sc_act_title_3?smid=A1FJP4ZGVUHHPW&psc=1)", "comment": "\u0130 pick option 2 where are you traveling too?", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upf0zh", "question": "where did the Oklahoma subreddit go? it doesn't pop up, r/Oklahoma or r/okc", "comment": "r/Oklahoma has gone private to stand in solidarity with other Oklahoma subreddits for the protection of women's autonomy across the state and nation. There will be a protest today (Saturday May 14th) at the state capitol. We ask you please reach out to your elected officials to voice your support of women's rights and participate in organized protest if you are able to do so. Also please remember to go vote in the Oklahoma Primary on June 28th and the General Election on November 8th.", "upvote_ratio": 140.0, "sub": "NoStupidQuestions"} +{"thread_id": "upf227", "question": "Hello Everyone!!\n\nI have been learning C++ for around half a year now, which is also my first programming language. I hope to be a C++ developer in the future. I have developed quite a few projects. However, Is it worth getting a C++ certificate to prove my abilities? If yes, is there a recommendation? Or projects say everything!\n\nAny advice is appreciated!!", "comment": "I'm not aware of any particularly noteworthy C++ certificates. So I would say relevant work experience and then projects are probably the most important factors when applying to new C++ roles.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upf2r0", "question": "There's probably an easy fix for this, but since i can't find it on the internet i'll post it here.\n\nWhen I double divide (//) an integer with a float, I get a float that's just the integer with .0 behind it.\n\nex. 6//2.5 = 2.0\n\nHowever when i try the int() function on that number, it gives me back the exact same answer (2.0) and the program will keep seeing it as a float.\n\nAnyone know how to fix this?", "comment": "> However when i try the int() function on that number, it gives me back the exact same answer (2.0) and the program will keep seeing it as a float.\n\nSounds like this happens only in your code, probably because of some other reason.\n\n >>> int(6//2.5)\n 2\n\nCould you post an example so we can run and see this happen?", "upvote_ratio": 70.0, "sub": "LearnPython"} +{"thread_id": "upf34o", "question": "We have a lot of kurds here in Sweden, and they all tell the same story of harassment, discrimination and downright violence towards them which forced them to flee Turkey.\n\nI'm not really updated on the events that started it all, so what's the deal between Turks and Kurds?", "comment": "Basically they are a very large minority in Turkey and about 100 years ago were promised autonomy, which was later withdrawn. This then resulted in various rebellions to get that autonomy and as such the Turkish government assumes that the Kurds are likely to rebel at any time and so represses the Kurds, which of course makes them more likely to rebel.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upf3lm", "question": "Religious people, why do your gods/deities allow sinful people to prosper?", "comment": "because god allowed us all free will", "upvote_ratio": 50.0, "sub": "ask"} +{"thread_id": "upf3lm", "question": "Religious people, why do your gods/deities allow sinful people to prosper?", "comment": "It's a difficult question to answer as I don't actually believe in the concept of sin. I am religious but I sure as hell ain't no christian. In my religious opinion the gods don't allow or disallow anything. People are responsible for their own actions always.", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "upf3y3", "question": "What ruins a date instantly?", "comment": "Constantly checking their phone or glued to it", "upvote_ratio": 23830.0, "sub": "AskReddit"} +{"thread_id": "upf3y3", "question": "What ruins a date instantly?", "comment": "\u201cI\u2019ve dated all the crazies, my exes were crazy, I attract crazy\u201d", "upvote_ratio": 22890.0, "sub": "AskReddit"} +{"thread_id": "upf3y3", "question": "What ruins a date instantly?", "comment": "Opening in Excel", "upvote_ratio": 18780.0, "sub": "AskReddit"} +{"thread_id": "upf42g", "question": "I went to school for psychology and want to take IT classes. I\u2019m not sure which classes I should take. I do know for a fact I don\u2019t want to do anything involving talking to people all day. Any suggestions for classes I should take and careers I should pursue? Also I have adhd and get bored easily so I need something that allows me to do different things and projects.", "comment": "I mean, literally any role in IT is going to require some interaction with other people, so just temper your expectations there. As far as I'm aware, no IT role is going to entail you sitting at your desk all day and talking to no one. As far as what classes to take, you have to figure out what area of IT interests you and what kind of salary you're looking for, as it can differ between different specializations.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upf4sb", "question": " import numpy as np\n \n a = np.zeros((2,3), 'uint8')\n print(a)\n \n \n print(a[1,0])\n \n b = [\n [0,0,0],\n [0,0,0]\n ]\n \n print(b[1,0])\n\na\\[1,0\\] ---> 0\n\nb\\[1,0\\] ---> error", "comment": "It's just the way they're designed.\n\nUnder the hood, `list[index]` calls the `list.__getitem__(index)` method. In that method, `index` is whatever is in the `[ ]`.\n\nBuilt-in `list` only allows `index` to be an int. Numpy arrays allow `index` to be a tuple.\n\nFrom your example, `a[1,0]` uses the tuple `(1,0)` as the index. Numpy arrays allow tuples, built-in lists do not.\n\nAnswering *why* this is the case is above my paygrade. You'd have to interview the developers of Python and Numpy to know for sure.", "upvote_ratio": 70.0, "sub": "LearnPython"} +{"thread_id": "upf4sb", "question": " import numpy as np\n \n a = np.zeros((2,3), 'uint8')\n print(a)\n \n \n print(a[1,0])\n \n b = [\n [0,0,0],\n [0,0,0]\n ]\n \n print(b[1,0])\n\na\\[1,0\\] ---> 0\n\nb\\[1,0\\] ---> error", "comment": "Because the syntax for normal python standard list is\n\n b[1][0]", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "upf9qm", "question": "there are some really elegant ways that python code is written from what I see on YT. eg \n\n #NO\n i = 0\n for i in range(len(some_list))\n print(i, some_list[i])\n \n #Yes\n for i,a in enumerate(some_list))\n print(i, a)\n\nor something like\n\n #NO\n if x > some_max_val:\n x = some_max_val\n \n #Yes\n x = min(x,some_max_val)\n\nIs there any resource, compliation, blog where such code refactoring, code smell, etc are put together. Just seeing these is really great.", "comment": "That's a great question, and I'd love to hear what other people come up with.\n\nI would suggest, familiarising yourself with the python [docs](https://docs.python.org/3/index.html) for built-ins and standard library\n\n[https://docs.python.org/3/library/functions.html](https://docs.python.org/3/library/functions.html)\n\n[https://docs.python.org/3/library/](https://docs.python.org/3/library/)\n\nParticularly things like itertools and collections.\n\nAlso read the source code for any libraries you are using. There are amazing developers in the open source world, reading expert code is a good way of learning some tricks, and also (more importantly) learning how to write code that's easy to read and understand.", "upvote_ratio": 80.0, "sub": "LearnPython"} +{"thread_id": "upf9qm", "question": "there are some really elegant ways that python code is written from what I see on YT. eg \n\n #NO\n i = 0\n for i in range(len(some_list))\n print(i, some_list[i])\n \n #Yes\n for i,a in enumerate(some_list))\n print(i, a)\n\nor something like\n\n #NO\n if x > some_max_val:\n x = some_max_val\n \n #Yes\n x = min(x,some_max_val)\n\nIs there any resource, compliation, blog where such code refactoring, code smell, etc are put together. Just seeing these is really great.", "comment": "https://www.youtube.com/watch?v=anrOzOapJ2E (a few of these are a little outdated because they're for python 2 rather than 3 but the bulk are still relevant)\n\nhttps://www.youtube.com/watch?v=wf-BqAjZb8M (skip to 21 mins for the meat)\n\nhttps://www.youtube.com/watch?v=TS1zy_sJSNM", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "upfkj1", "question": "Hi, my name is Famke! I am transracial (Mixed American to Dutch). I'm 19 years old and recently moved to the Netherlands. There is currently a lot of conflicting information online about transracialism and a lot of trolling going on so I want to clear things up for anyone who has questions.", "comment": "This is dumb I\u2019m sorry", "upvote_ratio": 50.0, "sub": "AMA"} +{"thread_id": "upfkj1", "question": "Hi, my name is Famke! I am transracial (Mixed American to Dutch). I'm 19 years old and recently moved to the Netherlands. There is currently a lot of conflicting information online about transracialism and a lot of trolling going on so I want to clear things up for anyone who has questions.", "comment": "What\u2019s wrong with you?", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "upflkj", "question": "People of UK it seems the US is really good at ruining a small town, adding chain gas, hotel and fast food companies. How does the UK keep the integrity of it's villages intact?", "comment": "I suspect when you talk about a \"small town\" you're describing something bigger than a British village. Anywhere in Britain big enough to have a town centre (rather than just a couple of shops and a pub) will be just as full of chains as your towns.", "upvote_ratio": 500.0, "sub": "AskReddit"} +{"thread_id": "upflkj", "question": "People of UK it seems the US is really good at ruining a small town, adding chain gas, hotel and fast food companies. How does the UK keep the integrity of it's villages intact?", "comment": "During planning applications locals of \u201cintact\u201d villages per say will go against the plans.", "upvote_ratio": 420.0, "sub": "AskReddit"} +{"thread_id": "upflkj", "question": "People of UK it seems the US is really good at ruining a small town, adding chain gas, hotel and fast food companies. How does the UK keep the integrity of it's villages intact?", "comment": "1, Run them out of town with pitchforks and torches. \n\n2, Stare intently when a stranger comes into your local pub.\n\n3, Release the Werewolf on them.", "upvote_ratio": 250.0, "sub": "AskReddit"} +{"thread_id": "upfnzg", "question": "As the title says, Im curious what portfolios the self-taught guys have here that landed them their first job in the industry. Would also be great to know which part of the industry have you gone to and had success.", "comment": "With C++ you can build anything. 2-3 side projects that you spend maybe 20 hours on each should be really solid assuming you already have a strong foundation in the language", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upfpeb", "question": "What do you think of the statement, \"there is one law for the rich and another for the poor\"?", "comment": "\"If the penalty for a crime is a fine, then that law only exists for the lower class.\" \n\n\\-Final Fantasy Tactics", "upvote_ratio": 1440.0, "sub": "AskReddit"} +{"thread_id": "upfpeb", "question": "What do you think of the statement, \"there is one law for the rich and another for the poor\"?", "comment": "yep\n\nfinancial penalties mean nothing.\n\nGood lawyers and below the table deals mean jail time doesnt mean much", "upvote_ratio": 720.0, "sub": "AskReddit"} +{"thread_id": "upfpeb", "question": "What do you think of the statement, \"there is one law for the rich and another for the poor\"?", "comment": "The super wealthy hire viper lawyers who find loopholes in the law or construct cases in such a way as their rich client gets off the hook.\n\nIt gives the impression to many that the rich people are \"Teflon-coated\" and treated differently from rank-and-file citizens.", "upvote_ratio": 590.0, "sub": "AskReddit"} +{"thread_id": "upfpt4", "question": "The common narrative is Operation Downfall was a monumental plan to invade the main islands of Japan, which the Allies expected to be fought to the death. They anticipated massive casualties and so they created a huge stockpile of purple hearts. The operation was to commence in November 1945. Instead, President Truman mercifully opted to conduct nuclear bombings on Hiroshima and Nagasaki, leading to Japan surrendering in August.\n\nYet many of the senior military leaders said the nuclear bombings were unnecessary. The Allies had complete air and naval superiority. If Japan was no longer a military threat, then how could they justify such a costly invasion? Did they prefer to blockade the islands instead? If so, did they have any idea on how long Japan would hold out?", "comment": "One has to take the postwar military comments on the atomic bombs with a grain of salt \u2014 they were only voiced _after_ the war was over, and in a moment where the atomic bomb was getting a lot of \"credit\" for ending the war. These military leaders, who had essentially nothing to do with the making of the atomic bomb, were both irked that this technological marvel was getting the credit (at the expense of their campaigns, logistics, hard work, etc.) and were afraid (not incorrectly) that the Truman administration was going to try to use the atomic bomb as an excuse to cut conventional military funding deeply. So bad-mouthing the bomb was a way to combat both of these things, and was common in the years prior to the Korea War (at which point attempts to cut US conventional military spending ended, and the generals found that they, too, could live with the bomb).\n\nI just finished typing up a [long answer on the question of whether the bombs were \"necessary\"](https://www.reddit.com/r/AskHistorians/comments/upkme9/was_the_bombing_of_hiroshima_and_nagasaki_were/i8lgtua/), so I won't repeat myself here, but it's a tricky question depending on what one means by \"necessary.\" You can apply the same issue to whether Japan was a \"military threat\" \u2014\u00a0it is less about that, and more about \"the goals of the allies with regards to Japan,\" which were not just about the present war, but about their future activity as well (they didn't just want them to be temporarily neutralized, they wanted it to be essentially impossible for them to be aggressors in their sphere of the world ever again). Keep in mind that a lot of the long-term strategic thought in this period was based around the perceived failure to convert Germany from an aggressive power to a peaceful one after World War I, thus setting their existing carnage in motion through short-sighted policy.\n\nThere were certainly people who thought blockade-and-starve-and-(conventional)-bomb was an option for further weakening Japan, but the conventional wisdom (then and now) is that nations don't capitulate without \"boots on the ground.\" (In fact, if one views the atomic bombs as having ended the war \u2014\u00a0which is not how all historians see it \u2014\u00a0then it would be pretty much the _only_ example we have of a major nation surrendering as a result of aerial bombardment alone. The Soviet invasion of Manchuria complicates this judgment.) The allies were aware that, cut off from their overseas holdings, Japan would begin to face even greater food shortages than they were already facing, and their ability to wage war would be pretty small without oil, steel, etc., coming in from abroad. Whether that would be more merciful than an invasion (or atomic bombing) depends on what effects you think that would have on the Japanese people.\n\nBut to your main point, they were deadly serious about invading. That was The Plan. That was how they were going to end this war if Japan would not end it sooner. But it is of interest that the entire plan was not actually approved. In the summer of 1945, Truman approved the invasion of Kyushu, the southern \"large island\" of the main Japan islands. He deliberately did not approve the later invasion of Honshu, the main Japanese island. The idea, apparently, was to \"wait and see\" how Kyushu went, in terms of difficulty, casualties, resistance, Japanese response, American popular opinion, etc. This was prior to the testing of the first atomic bomb and so it did not factor much into Truman's thinking (or the invasion planning). \n\nSo that is serious, but interestingly not fully committed. If the atomic bombs and Soviet invasion hadn't ended the war when they did, the invasion of Kyushu surely would have gone forward. Whether it would have been bloodbath that pro-atomic bomb supporters claim is unclear; it depends on what other battles you think it would have been analogous to (many of the generals planning it did not think it would be nearly as bad as the island-hopping campaign, because the terrain would be very different and give them many more options). The plan was always \"bomb and invade,\" it was only after the bomb appeared to end the war that they changed the story to have been about \"bomb or invade.\" If Kyushu had gone well, then Honshu probably would have followed, though that was still up to Truman and dependent on the changing context. But my point is just that it was certainly a \"serious\" plan. I repeat myself, but it was, literally, the plan.", "upvote_ratio": 50.0, "sub": "AskHistorians"} +{"thread_id": "upfr0r", "question": "Currently work in admin, would eventually like to branch out into an Executive Assistant/Business Support Officer role as it pays well in my city. What IT certifications would you recommend that would support my career goals?", "comment": "I wouldn\u2019t think any specific IT certification would have that much impact on the job you want. \n\nMaybe if there are project management or manager certifications in the business space.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upfru2", "question": "Hello, I\u2019m a 23 year old male. I got circumcised 3 days ago. The day before yesterday I called my doctor to ask for pain medication because of how painful it was, he prescribed it to me but also said it was the first time in 20 years that he had to do that. It had me take a closer look and it does look like some of the strings already went up on all of the right side. I went to a doctor and got prescribed antibiotics, so it should start to look more normal. But what about the overall healing. Is there any reason I should worry? Should I take any actions myself? What are your recommendations?\n\nhttps://i.imgur.com/UlnYgXf.jpg\n\nhttps://imgur.com/a/p0EOQu5", "comment": "Swelling is part of the healing process, as insane as it looks and painful as it is. Keep taking the antibiotics. If you develop a fever or your wound starts excreting yellow/green/brown liquid then seek medical attention.\n\nEditing to add: don\u2019t touch it with unwashed hands or aggravate it any way.", "upvote_ratio": 1650.0, "sub": "AskDocs"} +{"thread_id": "upfti4", "question": "What\u2019s the craziest way that you\u2019ve seen someone get fired?", "comment": "I used to work as a building technician for an apartment complex.\n\nOne time, our regional manager was doing a site visit, nothing special, just checking in.\n\nOne of the projects we had going was the installation of a fire pit in our courtyard. It had been delivered on a pallet and was sitting out front of the building waiting for the installers.\n\nTo back up a bit, this particular regional was very young, maybe 25 or so, and was the son of the owner of the company. Everybody knew about the nepotism there. Most of the upper management was a relative or friend of the family. Some were cool, most weren\u2019t. I only say this because this regional was maybe a bit insecure about the respect he was getting in his position.\n\nAnyway, the fire pit, all, I don\u2019t know, 900lbs of it, was sitting out of the way, under an awning in front of the building. Regional sees it and asks us to move it into position for the installers (this is a dumb idea anyway because if we dropped it or chipped it, we are on the hook for that damage) but my maintenance supervisor points out that we don\u2019t have the equipment to do that. Regional scoffs and says to just have me help him lift it and we can walk it back there.\n\nThis is 900lbs of fucking stone. I was a chubby 22 year old and my supervisor was a way out of shape 60 year old. We could swing carrying a refrigerator as needed, but this fire pit wasn\u2019t going anywhere. Regional doesn\u2019t like this answer. We were all standing out by the pit (Regional, me, my maintenance supervisor, and the property manager, plus our VP who had accompanied the regional to the site.) \n\nI\u2019ll never forget it, our Regional goes \u201cYou guys got thin fucking blood, let me show you how we do things here.\u201d I promise you this guy rolled up his sleeves, squatted down, and tried to lift up this fire pit. He immediately got red and his forehead veins started bulging. He slipped off for a moment. He looked flustered, looked at us, then said \u201cI guess I\u2019ll have to give this 75% of my power, huh?\u201d Squatted down (in decent form, mind you) then rigidly jerked his whole body up, roared with primal fury, and shit his pants.\n\nIt was the sound of wet clams being spilled on a pier. This dude A+ fudged his chinos and there is not a doubt in my mind. The sound and the smell were enough. He fell over backwards and was woozy for a minute. Our VP went over to him and told him to stay down and they were going to get him help. The VP was an old friend of the owner so I assume he knew the Regional from the time he was a little kid, and he had such a bewildered and disappointed look on his face.\n\nMe and my two bosses looked at each other like no moment in any of our diverse careers had prepared us for what to do when your boss hulk-shits himself because he thinks he\u2019s Gregor Clegane. It remains one of the most surreal moments of my life.\n\nAnyway, Regional didn\u2019t get fired but they transferred him to manage a smaller group of properties closer to the city to kind of, I don\u2019t know, keep an eye on him? His name was Duncan, too, so we called him Dumpkin behind his back and I heard the nickname made it\u2019s way around and he got wind of it and tried to figure out who started the rumor but I never got any blowback from it.", "upvote_ratio": 390.0, "sub": "AskReddit"} +{"thread_id": "upfti4", "question": "What\u2019s the craziest way that you\u2019ve seen someone get fired?", "comment": "Openly gay male employee working in the distribution centre would make racist comments at the amount of new comers working at the warehouse and they were all above him on the chain because he was newer and they had all been there for 2+ years. He didn\u2019t like taking orders from them. So he decided to write a note in the warehouse, under the camera, that read \u201cI have to work with this homosexual\u201d then walked to the common area also where there\u2019s cameras and placed it in his unlocked locker. Then went to HR saying \u201cthose fucking [insert racist word here] put this homophobic shit in my locker fire then. They don\u2019t fucking belong here\u201d etc. After checking the cameras, he was fired and on his way out said some more hateful words.", "upvote_ratio": 220.0, "sub": "AskReddit"} +{"thread_id": "upfti4", "question": "What\u2019s the craziest way that you\u2019ve seen someone get fired?", "comment": "On a dare, he used the \"Executive Lavatory\" that was off-limits to regular employees.\n\nThe guy thought the CEO was away, but got caught red-handed using the restroom and was summarily fired.", "upvote_ratio": 160.0, "sub": "AskReddit"} +{"thread_id": "upfuha", "question": "I feel like this is such a universal American experience growing up. But I can't be sure so I figured I'd ask.", "comment": "Wacky waving inflatable arm flailing tube man. \ud83d\ude09", "upvote_ratio": 1660.0, "sub": "AskAnAmerican"} +{"thread_id": "upfuha", "question": "I feel like this is such a universal American experience growing up. But I can't be sure so I figured I'd ask.", "comment": "Their story is pretty interesting:\n\nhttps://99percentinvisible.org/episode/inflatable-men/\n\nI personally like the scarecrow models- they look so *angry*, it's funny.", "upvote_ratio": 570.0, "sub": "AskAnAmerican"} +{"thread_id": "upfuha", "question": "I feel like this is such a universal American experience growing up. But I can't be sure so I figured I'd ask.", "comment": "I haven\u2019t seen one in my town.\n\nI have seen one in the town 10 minutes down the road. It\u2019s at a car wash.", "upvote_ratio": 400.0, "sub": "AskAnAmerican"} +{"thread_id": "upfvaa", "question": "I'm currently transition into tech from accounting. Should I start in frontend/backend?", "comment": "The question in your title and the one in the post are totally different questions. \n\nYou begin as a FE by learning JS. When you're proficient, pick a framework and get good at that.\n\nIf you're deciding between FE or BE, work on a fullstack project and figure out which you like more", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upfvdf", "question": "I am a 3rd year CS student and its my 3rd week of internship. We will develop a website using react in frontend, 2 people backend and 2 people frontend. The problem is that I don\u2019t have a clue about react, js, html and css. I have some little projects with html and css but none with js and react. We are starting the project next week and I don\u2019t want to be a burden to my other teammate in frontend. \n\nIt has been 2 weeks since the internship started but I was not able to follow up on learning phase because of some problems, project phase starts tomorrow. No one is expecting me to know js very well, but I want to know the fundamentals so that I can have a smoother time learning react and getting better.\n\nWhat should I do? I don\u2019t even really understand how html, css, js, typescript, react interact with each other. What can I do in what order in 3 days ~ 1 week to learn the fundamentals and get ready for challenge?\n\nI know coding, I am a CS student and have experience with python/c++ so I am hoping learning a new language won\u2019t be too hard. I just want to learn fundamentals of web development in total to not be an embarassment to the team.", "comment": "Html is structure, CSS is style, and JavaScript is behaviour (programming). React is a library that builds off JS and takes a component based approach. These are all frontend technologies.\n\nBased on what you already know perhaps you would be better being a backend rather than front end? Backend can be written in python.\n\n- \u201cCreate React App\u201d is the fastest way to spin up react projects, so take a look at that, the documentation and do a tutorial. https://create-react-app.dev/\n\n- W3Schools can give you a bit of a crash course on html css and js and is a good reference to look things up https://www.w3schools.com/\n\n- MDN has all the documentation for js, css, html https://developer.mozilla.org/\n\n- react documentation https://reactjs.org/tutorial/tutorial.html\n\n - css tricks when you need help with css\n\n- talk to your team about whether you want to use something like reactstrap or react-bootstrap (built off bootstrap) so you don\u2019t have to fiddle with css so much. This will save many headaches related to alignment and positioning of elements.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upfvdv", "question": "First off, English is not my first language. I've seen people able to use complex words in regular conversations and it definitely helps them articulate and express their thoughts in a better way. I wish I could learn to do that, using baby words makes me feel stupid. The words I'm talking about don't have to be necessarily long, just uncommon. \n\nFor example, prevalent, bifurcate, loathsome, subjugate, erroneous, prominent, radical, etc...\n\nNow I don't think that these people sit down every day and study the dictionary. So, how do they learn to do that? I've heard some say they read books fairly often, is that the case? How do I expand my vocabulary?", "comment": "I can think of two reasons.\nBeing an avid reader.\nSome people are also fascinated by language(s) and enjoy learning words which makes it easier to widen their vocabulary. It\u2019s an area of interest for some.", "upvote_ratio": 200.0, "sub": "NoStupidQuestions"} +{"thread_id": "upfvdv", "question": "First off, English is not my first language. I've seen people able to use complex words in regular conversations and it definitely helps them articulate and express their thoughts in a better way. I wish I could learn to do that, using baby words makes me feel stupid. The words I'm talking about don't have to be necessarily long, just uncommon. \n\nFor example, prevalent, bifurcate, loathsome, subjugate, erroneous, prominent, radical, etc...\n\nNow I don't think that these people sit down every day and study the dictionary. So, how do they learn to do that? I've heard some say they read books fairly often, is that the case? How do I expand my vocabulary?", "comment": "If you read a lot, whether that be books, articles, etc. those words eventually get ingrained into your head, and people use them because they feel more natural to them. For example, I use the word essentially instead of basically because it just feels more natural to me", "upvote_ratio": 140.0, "sub": "NoStupidQuestions"} +{"thread_id": "upfvdv", "question": "First off, English is not my first language. I've seen people able to use complex words in regular conversations and it definitely helps them articulate and express their thoughts in a better way. I wish I could learn to do that, using baby words makes me feel stupid. The words I'm talking about don't have to be necessarily long, just uncommon. \n\nFor example, prevalent, bifurcate, loathsome, subjugate, erroneous, prominent, radical, etc...\n\nNow I don't think that these people sit down every day and study the dictionary. So, how do they learn to do that? I've heard some say they read books fairly often, is that the case? How do I expand my vocabulary?", "comment": "Read books, talk to those people that use the more \u201ccomplex\u201d words, watch media that tends to use them. When you encounter the words, find out the meaning of you can\u2019t already from context. Ask the speaker if you\u2019re unfamiliar with it. English is a tough language, or mashup and evolution of other languages to make odd syntax and rules. \n\nAlso, remember there\u2019s nothing wrong with using more simple and common words. Using a complex word just to sound more intelligent really comes off as more pretentious if overdone.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upfvx8", "question": "Who taught you to tie your shoes?", "comment": "SpongeBob", "upvote_ratio": 100.0, "sub": "AskReddit"} +{"thread_id": "upfvx8", "question": "Who taught you to tie your shoes?", "comment": "No one, I still don\u2019t know how, I just tuck them in ):", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upfvx8", "question": "Who taught you to tie your shoes?", "comment": "My dad did. He promised me that if I learned how to tie my shoes, he would buy me Super Mario Bros 3.\n\nI never learned anything faster in my life.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upfwa2", "question": "If there\u2019s a song playing in your head rn, what is it?", "comment": "S'Wonderful by George Gershwin", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upfwa2", "question": "If there\u2019s a song playing in your head rn, what is it?", "comment": "Because I just watched the movie for the very first time a couple days ago\n\nSinging in the rain- Gene Kelly", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upg0f0", "question": "When I say tip of my thumb I mean that tiny area above ur finger nails and a small chunk of that, so the cut itself I don\u2019t think should be a serious deal but the blood has been non stop flowing, I had to cut off circulation to my thumb for 5 minutes just to get 10 bandaids on without them being absolutely drained with blood. My thumb doesn\u2019t rly hurt anymore but it is throbbing and I have a feeling it\u2019s bleeding a lot underneath these 10-12 bandaids. My question is, will it stop bleeding eventually or is this serious and I should go to the hospital? Any comments are greatly appreciated.", "comment": "A photo of the wound would help a lot. In the meantime, take a clean towel and apply pressure to the wound for at least FIVE WHOLE MINUTES, without looking or moving the towel. Look at a clock or set a timer. If you move the towel it breaks up the forming clot and starts bleeding again. \n\nWounds like the one you describe, when a piece of skin is totally removed can bleed more because the 'open' area is so big. There's no flap to cover it and no way to hold it shut. This will also likely take a long time to heal because the skin has to regrow instead of just knitting together. \n\nOnce you get the bleeding under control, out a big-ish bandage on it (non-stick guaze and tape, not just a bandaid) and be gentle with it for a couple days until tge scab is well formed. After that, keep covered, clean and dry until healed.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upg152", "question": "I have an interview on Monday for an IT technician apprentice role for a big company and I'm very confident that I'm going to get it but I haven't told them about my chronic condition.\n\nI have IBD and sometimes it can be very hard to manage. I feel like by telling them it'll harm my chances. It's best the tell them like a few weeks after being hired right?\n\nIts an apprentice position so everything will be taught I'm just afraid if it's extremely busy and my condition gets bad it'll affect my performance.\n\nAny advice appreciated :)", "comment": "Get hired in and tell hr on your first day", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upg4h5", "question": "At my job, every time we had a bad time because of the sheer amount of requests, project deadlines and extra development our manager would say that it was because of the execs demanding so many things. These last weeks he has been on leave and I had to talk directly to the execs and stakeholders and despite I was expecting to receive lots of heat now that I don\u2019t have a manager \u201cshielding\u201d our team, it has actually been the reverse: they are chill, understanding and don\u2019t enforce hard deadlines as I\u2019m used to have in this job. Talking to my work colleagues they are feeling the same: less stressed and equally capable of delivering results making the higher ups happy.\n\nSo after discovering this I\u2019m a bit bummed, because this means that the manager is the one responsible for the high workload we have. I supposed the manager was responsible of protecting us from an excess of demands from the execs but it seems he\u2019s overpromising all the time and that\u2019s a source of problems on its own. How would you proceed in this situation? He will come back at the end of next week and we dread having to overburden ourselves with over 9000 projects at the same time again.", "comment": "You tell the execs what you told us.", "upvote_ratio": 410.0, "sub": "CSCareerQuestions"} +{"thread_id": "upg4h5", "question": "At my job, every time we had a bad time because of the sheer amount of requests, project deadlines and extra development our manager would say that it was because of the execs demanding so many things. These last weeks he has been on leave and I had to talk directly to the execs and stakeholders and despite I was expecting to receive lots of heat now that I don\u2019t have a manager \u201cshielding\u201d our team, it has actually been the reverse: they are chill, understanding and don\u2019t enforce hard deadlines as I\u2019m used to have in this job. Talking to my work colleagues they are feeling the same: less stressed and equally capable of delivering results making the higher ups happy.\n\nSo after discovering this I\u2019m a bit bummed, because this means that the manager is the one responsible for the high workload we have. I supposed the manager was responsible of protecting us from an excess of demands from the execs but it seems he\u2019s overpromising all the time and that\u2019s a source of problems on its own. How would you proceed in this situation? He will come back at the end of next week and we dread having to overburden ourselves with over 9000 projects at the same time again.", "comment": "It sounds like this job isn\u2019t a good long term fit for you anyway. \n\nHave you ever told him that you think the team is overworked?\n\nI would tell him. \u201cHey boss, normally, I feel like the team is overloaded with work, but while you were gone I was able to talk to the executives directly got them to give us what feels like a more reasonable workload. I was hoping we could continue that now that you\u2019re back.\u201d\n\nMaybe you could treat it like you solved a problem instead of calling him out for lying or over promising.", "upvote_ratio": 250.0, "sub": "CSCareerQuestions"} +{"thread_id": "upg4h5", "question": "At my job, every time we had a bad time because of the sheer amount of requests, project deadlines and extra development our manager would say that it was because of the execs demanding so many things. These last weeks he has been on leave and I had to talk directly to the execs and stakeholders and despite I was expecting to receive lots of heat now that I don\u2019t have a manager \u201cshielding\u201d our team, it has actually been the reverse: they are chill, understanding and don\u2019t enforce hard deadlines as I\u2019m used to have in this job. Talking to my work colleagues they are feeling the same: less stressed and equally capable of delivering results making the higher ups happy.\n\nSo after discovering this I\u2019m a bit bummed, because this means that the manager is the one responsible for the high workload we have. I supposed the manager was responsible of protecting us from an excess of demands from the execs but it seems he\u2019s overpromising all the time and that\u2019s a source of problems on its own. How would you proceed in this situation? He will come back at the end of next week and we dread having to overburden ourselves with over 9000 projects at the same time again.", "comment": "Your manager sounds narcissistic. Check out r/ManagedByNarcissists for more info.\n\nI recommend quietly looking for a new job. Only consider raising concerns once you\u2019ve safely secured your next role.\n\nIf you do decide to say anything be prepared for retaliation.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upg8yu", "question": "Europeans what is your favorite thing about America", "comment": "It's a long way away.", "upvote_ratio": 200.0, "sub": "ask"} +{"thread_id": "upg8yu", "question": "Europeans what is your favorite thing about America", "comment": "The music. Country, blues, hip-hop", "upvote_ratio": 100.0, "sub": "ask"} +{"thread_id": "upg8yu", "question": "Europeans what is your favorite thing about America", "comment": "The entertainment value", "upvote_ratio": 100.0, "sub": "ask"} +{"thread_id": "upgaof", "question": "I've been a SWE for 15+ years with all kinds of companies. I've built everything from a basic CMS website to complex medical software. I recently applied for some jobs just for the hell of it and included FAANG in this round which led me to my first encounters with OA on leetcode or hackerrank.\n\nIs it just me or is this a ridiculous process for applicants to go through? My 2nd OA question was incredibly long and took like 20 minutes just to read and get my head around. I'd already used half the time on the first question, so no way I could even get started on the 2nd one.\n\nI'm pretty confident in my abilities. Throughout my career I've yet to encounter a problem I couldn't solve. I understand all the OOP principles, data structures, etc. Anytime I get to an actual interview with technical people, I crush it and they make me an offer. At every job I've moved up quickly and gotten very positive feedback. Giving someone a short time limit to solve two problems of random meaningless numbers that have never come up in my career seems like a horrible way to assess someone's technical ability. Either you get lucky and get your head around the algorithm quickly or you have no chance at passing the OA.\n\nI'm curious if other experienced SWE's find these assessments so difficult, or perhaps I'm panicking and just suck at them?", "comment": "I think the process is so hard because the industry is far more concerned about false positive candidates than they are about false negative ones.\n\nAlso, not being able to solve it leaves room open for discussion in the interview process, where the candidate might elaborate on his thinking process and solve something rather than to spit out a definition about a certain topic.\n\nThe real tragedy is that the major part of the interview process will never be used in any of the jobs who use it to screen for viable candidates.", "upvote_ratio": 3100.0, "sub": "CSCareerQuestions"} +{"thread_id": "upgaof", "question": "I've been a SWE for 15+ years with all kinds of companies. I've built everything from a basic CMS website to complex medical software. I recently applied for some jobs just for the hell of it and included FAANG in this round which led me to my first encounters with OA on leetcode or hackerrank.\n\nIs it just me or is this a ridiculous process for applicants to go through? My 2nd OA question was incredibly long and took like 20 minutes just to read and get my head around. I'd already used half the time on the first question, so no way I could even get started on the 2nd one.\n\nI'm pretty confident in my abilities. Throughout my career I've yet to encounter a problem I couldn't solve. I understand all the OOP principles, data structures, etc. Anytime I get to an actual interview with technical people, I crush it and they make me an offer. At every job I've moved up quickly and gotten very positive feedback. Giving someone a short time limit to solve two problems of random meaningless numbers that have never come up in my career seems like a horrible way to assess someone's technical ability. Either you get lucky and get your head around the algorithm quickly or you have no chance at passing the OA.\n\nI'm curious if other experienced SWE's find these assessments so difficult, or perhaps I'm panicking and just suck at them?", "comment": "They're pretty difficult. Any company going to great lengths to filter people out like FAANG does is going to require a hell of a lot more studying than a measly 2 hour OA, even if you're a fantastic senior staff engineer. \n\nSo the OA doesn't bother me. It's a drop in the bucket. \n\nNo one likes jumping through the artificial hoops like a show dog. But I can't think of any easier way of earning $300k+/yr and the ability to work on projects that are or could easily become household names.", "upvote_ratio": 950.0, "sub": "CSCareerQuestions"} +{"thread_id": "upgaof", "question": "I've been a SWE for 15+ years with all kinds of companies. I've built everything from a basic CMS website to complex medical software. I recently applied for some jobs just for the hell of it and included FAANG in this round which led me to my first encounters with OA on leetcode or hackerrank.\n\nIs it just me or is this a ridiculous process for applicants to go through? My 2nd OA question was incredibly long and took like 20 minutes just to read and get my head around. I'd already used half the time on the first question, so no way I could even get started on the 2nd one.\n\nI'm pretty confident in my abilities. Throughout my career I've yet to encounter a problem I couldn't solve. I understand all the OOP principles, data structures, etc. Anytime I get to an actual interview with technical people, I crush it and they make me an offer. At every job I've moved up quickly and gotten very positive feedback. Giving someone a short time limit to solve two problems of random meaningless numbers that have never come up in my career seems like a horrible way to assess someone's technical ability. Either you get lucky and get your head around the algorithm quickly or you have no chance at passing the OA.\n\nI'm curious if other experienced SWE's find these assessments so difficult, or perhaps I'm panicking and just suck at them?", "comment": "absolutely right, it is an absurd way to measure CS skill, for anyone other than a fresh grad.", "upvote_ratio": 910.0, "sub": "CSCareerQuestions"} +{"thread_id": "upgbdu", "question": "Hello guys,\n\nBefore going to the main topic let me briefly tell what my career path. After finish my degree (Engineering but not related to IT) due to lack of opportunities in the field some friends recommend me to pursue a career in IT since consulting companies were blooming where I live. \n\n \nI was told (by counsulting companies), that one time that I had no prior experience in programming I would better suit to a QA position and then the companyh would train me to be a developer (which as you guys might figure never happened). Later, as I really wanted to be a developer I study by myself and finally got a position as a Frontend Developer (because the entry barrier in FE is smaller then BE IMO). \n\n\nI really wanted to touch BE as well, the problem is that in the project I was involved there was always the urgent need to do FE work and I was one of the 1st choices, so never really got the chance until now that I was hired as a fullstack developer.\n\nIn this current job I did something different, instead of calling my self FE engineer with curiosity with BE I started to introduce myself as a fullstack engineer in order to have bigger chances to pick more BE tasks and be better in that field, and the following happened: \n\n\n\\- Co workers aren't being helpfull... when I ask for help their answers are short and kind of always imply that I know BE tooling stuff... such as pm2, nginx, tmux etc... I dont think that they dont understand that for me even opening PgAdmin and to a basic operation might be challenging... \n(They know I come from a FE world... I was always super honest in terms of what my BE knowledge is) \n\n\n\\- Due to a deadline the PO already told me that I should focus only on FE tasks (Because the designer/boss seen already that the quality of my FE work is according to their standards) and I'm affraid this will continue for the upcomming future \n\n\n\\- Having a bit of imposter syndrome by feeling that BE is something that is super hard... \n\n\n\\- Affraid that the team thinks that I will never ver there BEwise \n\n\nSo, what you guys recommend me to do? I trully believe that I have 100% the needed capacities to be a decent fullstack developer, but even if I take all degrees online, they never cover the tooling part, they only focus on the programming stuff itself (which I know already) or when its about DB the courses focus only on queries (Whch I know already) \n\n\nTL;DR: I'm a frontend engineer that wants to be a fullstack but the initial steps are being hard and I'm always placed in a FE position/FE tasks.", "comment": "There's tons of material on the internet on the basics. Other engineers (your coworkers) expect you to be able to familiarize yourself with the basics before going to them with questions. It's disrespectful of their time to come to them with questions like \"how do I open PG admin and run a query\" when that's in the \"Getting Started\" guide, likely the very first page in the documentation. Seriously, learn to be a little self sufficient. It will carry you a long way.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upgcjq", "question": "My job is a Software Engineer, Sr. This is a small team. Something happened that I thought was wrong. I had created a PR and asked another developer to review it. They did and made some suggestions so I did some more changes and updated it. Then the next day the other developer made several last-minute changes without telling me that they were doing this. They then merged those changes into the main. I didn't have a chance to review or test their changes. Is that normal?", "comment": "Not good practice. Code shouldn\u2019t be merged to main without a review by someone who didn\u2019t write the code. If they made changes, they should have sought someone else to review it.\n\nHowever, best practices are not always followed. If it was a small thing and time pressure sometimes it might happen. If there is a problem can always revert the merge.\n\nIf it bothers you, best to raise it with them.", "upvote_ratio": 300.0, "sub": "CSCareerQuestions"} +{"thread_id": "upgcjq", "question": "My job is a Software Engineer, Sr. This is a small team. Something happened that I thought was wrong. I had created a PR and asked another developer to review it. They did and made some suggestions so I did some more changes and updated it. Then the next day the other developer made several last-minute changes without telling me that they were doing this. They then merged those changes into the main. I didn't have a chance to review or test their changes. Is that normal?", "comment": "That\u2019s normal for the either *lazy* or *egotistical* developer. The \u201cI know this will work\u201d or \u201cwe can test it in dev/staging/prod later\u201d last words usual *justify* it.\n\n*Testing in prod* isn\u2019t the way you\u2019re supposed to do things. Even if your main branch only goes to test environments, it\u2019s still a bad practice to merge untested and not reviewed code into anywhere. It will always lead to problems. \n\nDefinitely bring that up to your supervisor and /or at a daily standup. You don\u2019t need *your name* seemingly on *their untested code*. They should make their own PRs too.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upgcjq", "question": "My job is a Software Engineer, Sr. This is a small team. Something happened that I thought was wrong. I had created a PR and asked another developer to review it. They did and made some suggestions so I did some more changes and updated it. Then the next day the other developer made several last-minute changes without telling me that they were doing this. They then merged those changes into the main. I didn't have a chance to review or test their changes. Is that normal?", "comment": "There's also a learning aspect to this. I would be wanting to know why the changes were made, was it fixing a bug or refactoring and why is it better than what was there before? We have this from senior to juniors, going both directions and everyone has something to gain from it. Not a good way to work for multiple reasons", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upgdbp", "question": "How does it work when the Queen hands out these \"titles\" or whatever they're called?", "comment": "It\u2019s been recent tradition for the Queen to grant her younger sons a dukedom on the occasion of their marriage. However, Edward had a connection with his father and had a preference to get the Edinburgh dukedom. It wouldn\u2019t be seemly for him to be granted two separate dukedoms, so Edward and the Queen (and perhaps Charles) reached an agreement wherein he would get the Wessex earldom to honor his marriage and he would be created Duke of Edinburgh when the title became available. \n\nCurrently, Charles, as the eldest son, inherited the title Duke of Edinburgh (though it\u2019s never used unless they have a formal need to list all his titles). When Charles becomes king, the tile will \u201cmerge with the Crown\u201d, meaning he\u2019ll no longer have it but will have the authorization to recreate it for his youngest brother.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upgdbp", "question": "How does it work when the Queen hands out these \"titles\" or whatever they're called?", "comment": "[removed]", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upge4s", "question": "My job is a Software Engineer, Sr. This is a small team. Something happened that I thought was wrong. I had created a PR and asked another developer to review it. They did and made some suggestions so I did some more changes and updated it. Then the next day the other developer made several last-minute changes without telling me that they were doing this. They then merged those changes into the main. I didn't have a chance to review or test their changes. Is that normal?", "comment": "Have you tried, you know, asking the other developer about this?", "upvote_ratio": 240.0, "sub": "AskProgramming"} +{"thread_id": "upge4s", "question": "My job is a Software Engineer, Sr. This is a small team. Something happened that I thought was wrong. I had created a PR and asked another developer to review it. They did and made some suggestions so I did some more changes and updated it. Then the next day the other developer made several last-minute changes without telling me that they were doing this. They then merged those changes into the main. I didn't have a chance to review or test their changes. Is that normal?", "comment": "Merging code without review isn't normal. It's dangerous.\n\nContributing to someone else's branch, sure. It's not your code. It's team code. They own it just as much as you do. The concept of \"I'm the author, I control this\" is kinda toxic. There should maybe be a conversation about whether or not to do this because you want to prevent merge conflicts. Presuming this is git, they can just branch from your code to work on a branch of their own without impacting your workflow. That's a team discussion.\n\nI don't think \"you are causing merge conflicts for my commits to my own branch\" is the problem here, though, even though it's a valid problem.\n\nI think the problem here is unreviewed code getting merged and the perspective that the author owns it more than the rest of the team.", "upvote_ratio": 130.0, "sub": "AskProgramming"} +{"thread_id": "upge4s", "question": "My job is a Software Engineer, Sr. This is a small team. Something happened that I thought was wrong. I had created a PR and asked another developer to review it. They did and made some suggestions so I did some more changes and updated it. Then the next day the other developer made several last-minute changes without telling me that they were doing this. They then merged those changes into the main. I didn't have a chance to review or test their changes. Is that normal?", "comment": "On one hand y'all seem to have weird process gaps. That's really strange.\n\nBut...beware the demon of presuming some kind of silo ownership of code.", "upvote_ratio": 70.0, "sub": "AskProgramming"} +{"thread_id": "upgi9o", "question": "I remember a point where reddit was obsessed with how brilliant Elon Musk was and everything he did. Now he seems to be the villain that no one likes. what happened? Was the turning point in 2018, after the rescue of the soccer team suck in the cave in Thailand, where he got mad for not using his robot?", "comment": "I think opinion has always been split. Depending on where you look, you'll find hero worship and intense hostility.", "upvote_ratio": 34370.0, "sub": "NoStupidQuestions"} +{"thread_id": "upgi9o", "question": "I remember a point where reddit was obsessed with how brilliant Elon Musk was and everything he did. Now he seems to be the villain that no one likes. what happened? Was the turning point in 2018, after the rescue of the soccer team suck in the cave in Thailand, where he got mad for not using his robot?", "comment": "The \"peado guy\" tweet did it for me", "upvote_ratio": 21270.0, "sub": "NoStupidQuestions"} +{"thread_id": "upgi9o", "question": "I remember a point where reddit was obsessed with how brilliant Elon Musk was and everything he did. Now he seems to be the villain that no one likes. what happened? Was the turning point in 2018, after the rescue of the soccer team suck in the cave in Thailand, where he got mad for not using his robot?", "comment": "I was always skeptical, because I don\u2019t trust people who accumulate wealth the way he has. But when I found out about his support for the coup in Bolivia so he could get his hands on their lithium deposits for cheap- that was when I knew he wasn\u2019t a good person. I don\u2019t know why it\u2019s taken this long for everyone else. Well, most everyone. One of my coworkers still worships the ground he walks on because he\u2019s a champion of freedom of speech. Yeah I\u2019m sure having one super rich guy in control of one of the largest social media platforms in the world and deciding what it\u2019s ok to say will be ~great~ for freedom of speech.", "upvote_ratio": 19090.0, "sub": "NoStupidQuestions"} +{"thread_id": "upgj36", "question": "What's the best food you've ever eaten in a foreign country?", "comment": "Singaporean laksa in Singapore, Peruvian ceviche in Peru, and Japanese sushi at this specific restaurant at the Tsukiji fish market in Tokyo.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "upgj36", "question": "What's the best food you've ever eaten in a foreign country?", "comment": "Pretty much anything from the Mediterraneans. There is a reason why it's considered the best diet in the world. It's so incredibly refreshing, tasty and healthy for you.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "upgj36", "question": "What's the best food you've ever eaten in a foreign country?", "comment": "Hainanese Chicken and Rice from a hawker in Thailand, with an ice cold Singha beer.", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "upgjtp", "question": "So I'm gonna start studying computer science later this year. I barely have any knowledge regarding the subject though (it's not a huge problem nor a big disadvantage since studies in Germany are always pretty inclusive for all kinds of knowledge levels). \nI feel like a huge issue of making friends is often the lack of things to discuss eventually. It's also easier to learn things when you have others to talk about the thing you learn. So how about we learn programming together and make friends as well? Wouldn't it be pretty cool if we could make friends AND learn programming (even more efficiently if we learned it by ourselves) AND always have a topic at hand (in case we run out of topics etc)? We could even make a lil group chat and do projects or something :) If anyone's interested you can dm me or comment. (All knowledge levels are welcome ofc but I feel like if you know a lot, things might get a bit annoying with noobs. Same goes with the kind of language you wanna look into)\nIn case anyone wants to join the discord server I just made, here's the link :)\nhttps://discord.gg/Af2vzrBW", "comment": "I would also like to study computer science in Germany this year and i'm also a noob when it comes to programming. So i would also like to learn it with someone while helping each other or doing some projects together!", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "upgkit", "question": "I\u2019m sure I should be done with C at this point.\nI learnt all of its basics. The statements,strings,arrays,structs and pointers. I learnt it in school, but I can guarantee if I didn\u2019t practice at home I\u2019d suck at it. I want to move on, but I don\u2019t know to where. JavaScript,php, python,c++, Java or c#? I don\u2019t care if it\u2019s a scripting or programming language. \nI also in my spare time learned SQL.\nWhat would you pick? I want to learn how to make (simple) games or websites. Some GUI apps too. Sorry for formatting can\u2019t format on iPhone.", "comment": "It\u2019s less about learning things at this point and more about applying what you learned. Use c for something. Buy a microcontroller demo board like a nucleo and make leds blink. Write a gtk application. Build a cgi module for a web server. Just use what you learned", "upvote_ratio": 40.0, "sub": "LearnProgramming"} +{"thread_id": "upgkit", "question": "I\u2019m sure I should be done with C at this point.\nI learnt all of its basics. The statements,strings,arrays,structs and pointers. I learnt it in school, but I can guarantee if I didn\u2019t practice at home I\u2019d suck at it. I want to move on, but I don\u2019t know to where. JavaScript,php, python,c++, Java or c#? I don\u2019t care if it\u2019s a scripting or programming language. \nI also in my spare time learned SQL.\nWhat would you pick? I want to learn how to make (simple) games or websites. Some GUI apps too. Sorry for formatting can\u2019t format on iPhone.", "comment": "It's my opinion that once you learn how to program, the language is (mostly) irrelevant. The hard part of writing code is, generally, not the syntax and functions but getting the philosophies, habits and logical constructs to make sense.\n\nIf you can write in C then, you can write in Java, Python or C#. The only thing stopping you is finding a project you want to see completed and, picking a language to write it in. The nuances and differences in functional constructs and syntax between most languages, while daunting at first, are all rooted in the same basic foundations. The main difference is just the \"way\" you get there.\n\nUltimately the only way to get \"good\" at any language is to keep using it to solve problems or create improvements to existing solutions.\n\nThe question shouldn't be \"what language do I learn next?\" or, even, \"I know X language, how can I use it to solve this problem?\"\n\nIt should be: \"I have a problem, which language is best suited to implementing the optimal solution?\"", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upgklg", "question": "A Genie offers you 3 wishes but will only grant those that he has never heard before, what do you wish for?", "comment": "An 11.72 inch peen\n\n$642,343,876\n\nThe location of every other genie on Earth", "upvote_ratio": 450.0, "sub": "AskReddit"} +{"thread_id": "upgklg", "question": "A Genie offers you 3 wishes but will only grant those that he has never heard before, what do you wish for?", "comment": "I wish for the earth to be demolished to make way for a hyperspace bypass.", "upvote_ratio": 280.0, "sub": "AskReddit"} +{"thread_id": "upgklg", "question": "A Genie offers you 3 wishes but will only grant those that he has never heard before, what do you wish for?", "comment": "One. The ability to fill anything with helium just bun looking at it and humming Feliz Navidad \n\nTwo. The ability to instantly know any information about what I want as long as I am singing the name of the thing while doing the Macarena. \n\nThree. A butt plug that changes shape, and vibrates, that is controlled via psychic link however only controlled by one random person who is minimum of 500 miles away. They do not know what they're controlling, they just get an impossible to ignore urge to randomly change settings for something they don't understand. \n\n\nI'm pretty sure I get all my wishes.", "upvote_ratio": 260.0, "sub": "AskReddit"} +{"thread_id": "upgq4b", "question": "Hi, as the title states - a few years ago I attempted a customer care center job at a bank, and a month into the training, I resigned because I couldn't handle what that job required. The job was basically a call center, and I got to the part of the training where they dipped trainees into taking actual customer's calls.\n\nI couldn't handle the workload because of the interactions with the public, and was extremely nervous/terrified when it was a day to do the call training.\n\nDoes this mean I wouldn't really be cutout to work in an entry level IT job such as helpdesk and probably should consider another profession? Thank you for the help.\n\nEdit: Just wanted to give my background - 10 years of admin asst experience (8 years military), no IT experience, and just A+ certified", "comment": "Call center =/= IT\n\nBut depending on how hard phone calls are for you, that may be something you need to work on personally for most jobs.", "upvote_ratio": 200.0, "sub": "ITCareerQuestions"} +{"thread_id": "upgq4b", "question": "Hi, as the title states - a few years ago I attempted a customer care center job at a bank, and a month into the training, I resigned because I couldn't handle what that job required. The job was basically a call center, and I got to the part of the training where they dipped trainees into taking actual customer's calls.\n\nI couldn't handle the workload because of the interactions with the public, and was extremely nervous/terrified when it was a day to do the call training.\n\nDoes this mean I wouldn't really be cutout to work in an entry level IT job such as helpdesk and probably should consider another profession? Thank you for the help.\n\nEdit: Just wanted to give my background - 10 years of admin asst experience (8 years military), no IT experience, and just A+ certified", "comment": "Customer Service is a big part of IT, whether it's Helpdesk or even In engineering positions. I thought I could escape customer service as I gained more experience and went deeper into backend of things but now my \"customers\" are other departments and other engineers, so whether it's a war room or I'm sharing new functionalities I've implemented I will still need to be able to communicate clearly with others. \n\nMy interactions with others has changed and I don't do it as much anymore but it is still part of the job. IT is technically a customer service field, who our customers are change as we change jobs but we're still doing customer service related work.", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upgtqi", "question": "Gist: use python to retrieve data from a massive table in postgresql, aggregate it using python and write it back into a new table inside postgresql DB\n\nContext: what I am trying to achieve is fairly straightforward but I would like to understand the individual steps that I need to follow to achieve this. Steps that I think I need to perform to get the ETL process done. Correct me if I'm wrong - \n\n1. Query a large postgresql table (1 billion rows) using pyscopg2\n2. Load it into a DF or a dask DF\n3. Aggregate data using some dask functions\n4. Load data back into a new table in postgresql table\n\nHelp that I need: \nUnable to retrieve data from the table, kernel gets killed while querying the large table. \nHow do I employ dask to achieve this, am I even thinking about this correctly? \n\nAndy advice?", "comment": "Two ways to work with big data like that- either stream it and aggregate in chunks (like map reduce) or do the aggregation on the server entirely (select... Into...)", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "upgu8p", "question": "Age \n32\n\nSex \nfemale\n\nHeight \n5\u20191\n\nWeight \n180\n\nRace \nw\n\nDuration of complaint \ntwo days\n\nLocation \nwhole body?\n\nAny existing relevant medical issues \npcos\n\nCurrent medications \nZyrtec, nasacort, spironolactone\n\nInclude a photo if relevant\n\nDescription\nDr prescribed nitrofurantoin while I\u2019m currently on spironolactone, a few days in started symptoms of hyperkalemia (headache, lightheaded, stomach pain, heart palpitations, etc.) and overnight nurse on phone call told me to go to the ER. *Eight* hours in and I still have not been seen other than vitals checks, so as the sun comes up I am giving up and going home. \n\nI still have a headache with pressure fatigue and mild symptoms. I have stopped taking the nitrofurantoin, so hoping that will process out of my system entirely in the next couple hours (faster than waiting at the ER at this rate). My question is, if it is hyperkalemia, is that something that once you have it requires treatment? Or will it go away on its own now that I\u2019ve stopped taking the medication that caused it?\n\nAlso, can I take something for the headache that will not interact with any of these medications or aggravate potential hyperkalemia?", "comment": "If spironolactone is for PCOS, you could hold a few doses of this while you finish nitrofurantoin course. Drink plenty of fluids which will help you flush some potassium out. I think if you held spironolactone for 2 days and hydrated then it would likely help with your headache. Stay away from juices and foods high in potassium - orange, carrot, pomegranate - in the meantime.", "upvote_ratio": 70.0, "sub": "AskDocs"} +{"thread_id": "upgxh0", "question": "why is it so hard to find the prices of goods in American supermarkets?", "comment": "I...don't think it is? Are you having trouble with something specific?", "upvote_ratio": 410.0, "sub": "AskAnAmerican"} +{"thread_id": "upgxh0", "question": "why is it so hard to find the prices of goods in American supermarkets?", "comment": "It isn't difficult at all. Prices are clearly labeled on the shelves of every supermarket I've ever visited.", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "upgxh0", "question": "why is it so hard to find the prices of goods in American supermarkets?", "comment": "The only place this happens is some gas stations, never at any supermarkets", "upvote_ratio": 100.0, "sub": "AskAnAmerican"} +{"thread_id": "upgy12", "question": "so i've been learning python through the book called Python crash courseand it's been great until now i've been reading about while loops and i tried the exercise but it didn't work so i went onto the writer's site (he gives us the code to that exercise so we know how it should be done if we don't know how to)and it had the following code\n\n prompt = \"\\nWhat topping would you like on your pizza?\"\n prompt += \"\\nEnter 'quit' when you are finished: \"\n \n while True:\n topping = input(prompt)\n if topping != 'quit':\n print(f\" I'll add {topping} to your pizza.\")\n else:\n break\n\nbut i tried it and it ends up in a infinity loop,\n\nplease help what is wrong with this code \n\n\nupdate: \nso i tried to type my own code and now it doesn't print anything accept quit but if i tried putting in other words it would not print but it will start the loop again \n\n\ni mean the only thing i can think of is that python is taking it as to print only when input(prompt) is quit but it still doesn't make sense because then it should go to what is after the if statement and not else statement \n\n prompt = \"\\nWhat topping would you like on your pizza?\"\n prompt += \"\\nEnter 'quit' when you are finished: \"\n \n active = True\n \n while active:\n if input(prompt) == 'quit':\n active = False\n else:\n print(f\"I'll add {input(prompt)} to your pizza\")\n ", "comment": "The code looks fine - have you tried inputting \"quit\" when the prompt comes up?", "upvote_ratio": 60.0, "sub": "LearnPython"} +{"thread_id": "upgzbl", "question": "Whats the best example of 'men not understanding a womans body' that youve ever heard?", "comment": "That politician that said if a woman gets pregnant after a rape, their body will have a way of \"flushing the whole thing out.\"", "upvote_ratio": 2530.0, "sub": "AskReddit"} +{"thread_id": "upgzbl", "question": "Whats the best example of 'men not understanding a womans body' that youve ever heard?", "comment": "Men have tried to explain to me that women pee out of their vaginas, that women get looser if they sleep with multiple guys but not if they sleep with the same guy, that child birth feels good for women and makes them orgasm, that women with big boobs have a high body count because she grow every time a woman has sex, and that women can control how much blood comes out on their period", "upvote_ratio": 1280.0, "sub": "AskReddit"} +{"thread_id": "upgzbl", "question": "Whats the best example of 'men not understanding a womans body' that youve ever heard?", "comment": "Women do not pee out of their vaginas. \n\nThis has been a public service announcement", "upvote_ratio": 1150.0, "sub": "AskReddit"} +{"thread_id": "upgzwy", "question": "What is the worst thing that happened to you while traveling?", "comment": "Sharted on hour 1 of a 4.5 day drive", "upvote_ratio": 150.0, "sub": "AskReddit"} +{"thread_id": "upgzwy", "question": "What is the worst thing that happened to you while traveling?", "comment": "The referee blew the whistle and awarded the basketball to the opposing team.", "upvote_ratio": 120.0, "sub": "AskReddit"} +{"thread_id": "upgzwy", "question": "What is the worst thing that happened to you while traveling?", "comment": "I went out drinking/clubbing with my cousin in Ireland. We had a great time. I met a lot of his friends, tried some new things. I woke up early the next morning for our flight and I had the worst hangover of my life. Traveling hungover for the first time with two flights was the most miserable I\u2019ve ever been", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uph1df", "question": "after an interview, i submitted take-home project for a smaller company yesterday and haven't heard back, that probably means the answer is no?", "comment": "A day is not very long. The last time I did an assessment and got an interview from it, there was a 4 day delay between when I submitted it and when I was offered an interview.\n\nYours is the other way around, but I'd still give it a couple of days unless they said otherwise.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "uph1ib", "question": "Inquiring minds want to know :)", "comment": "Hey Mickey, by Toni Basil. It's a one hit wonder but it's impossible to listen to it and not have it stuck in your head. \n [You have been warned.](https://youtu.be/0aqLwHP4y6Q)", "upvote_ratio": 480.0, "sub": "AskOldPeople"} +{"thread_id": "uph1ib", "question": "Inquiring minds want to know :)", "comment": "I wanna be sedated", "upvote_ratio": 380.0, "sub": "AskOldPeople"} +{"thread_id": "uph1ib", "question": "Inquiring minds want to know :)", "comment": "\"Cruel to be Kind,\" Nick Lowe. The man defines \"catchy.\"\n\nEdit: [Listen to it.](https://www.youtube.com/watch?v=FQdxGpV5aV8) I still remember swaying to it behind the steering wheel on the way to work in the late '70s. It's Lowe and Dave Edmunds and his other compatriots from Rockpile.", "upvote_ratio": 320.0, "sub": "AskOldPeople"} +{"thread_id": "uph26e", "question": "If every state of the USA declared war against each other, which would win?", "comment": "No one. We\u2019d all lose.", "upvote_ratio": 210.0, "sub": "AskAnAmerican"} +{"thread_id": "uph26e", "question": "If every state of the USA declared war against each other, which would win?", "comment": "California \n\nThey may have setbacks at first but they are basically the US in WWII\u2026 unprepared at first but they benefit from the largest population, largest and richest economy, no western flank to worry about, and a solid geographical path to victory. \n\nI see them overwhelming Oregon, Washington, and Hawaii pretty easily then they can expand east (and get Alaska) on their schedule and terms.", "upvote_ratio": 110.0, "sub": "AskAnAmerican"} +{"thread_id": "uph26e", "question": "If every state of the USA declared war against each other, which would win?", "comment": "\u2026 god you\u2019d see millions of men that think their ready for the moment this happens , not be ready.", "upvote_ratio": 70.0, "sub": "AskAnAmerican"} +{"thread_id": "uph5gl", "question": "What was the last film you saw and what is your review of the film, including a rating out of 10?", "comment": "Everything Everywhere All At Once. 10/10! So moving, creative and original. I laughed, I cried, I got scared at times, it had a little bit of everything. Please go see it!", "upvote_ratio": 110.0, "sub": "AskReddit"} +{"thread_id": "uph5gl", "question": "What was the last film you saw and what is your review of the film, including a rating out of 10?", "comment": "Dune, 8.5/10 (because it's not complete yet)", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uph5gl", "question": "What was the last film you saw and what is your review of the film, including a rating out of 10?", "comment": "Doctor strange the new one maybe spoilers here but nothing major. It was just a disappointing movie. I thought that people from other universes would show and stay like they were stuck there. 5/10", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "uph5ho", "question": "Every time I talk to someone about feeling inadequate or not fitting in, people just talk about becoming confident \u2014 but how do I actually do that? \n\nI hate the way that I look (probably because my parents nitpick and make comments about it everyday :/ ). Every time I try to post a picture on social media, I overthink it and end up deleting it in a few seconds. \n\nI hate the way that I talk, especially to colleagues and people at uni. I feel like I stutter too much, and I get super nervous during conversations. I don\u2019t think I\u2019m smart enough to properly contribute to most of these discussions either.\n\nPeople my age are working at really interesting internships. Even if I was able to find a pretty good internship, I was probably a \u201cdiversity hire\u201d or they felt bad for me lol.", "comment": "No one can just become confident, that\u2019s just silly. Gaining confidence and self esteem is a process and you have to WORK at it. It\u2019s not like there\u2019s some magical switch you can flip in your brain that will all of sudden give you confidence. \n\nIf you feel self conscious in front of people, identify what it is that\u2019s making you feel that way and address it.\n\nFor me it was my weight. I was obese and it caused all sort of mental and physical health problems. I had a big confidence problem and even after losing a bunch of weight, it still took a lot of effort and practice to get comfortable in my own skin. \n\nFor you it seems like you have bad conversation skills. It\u2019s not all of a sudden just going to fix itself and it can be REALLY hard to ask friends or colleagues to \u201chelp\u201d you practice. If you really want to get better at communication just start going to public places (bars, parks, etc) and just start conversations with people you don\u2019t know and just talk to them. You don\u2019t have to have any goal in mind other than to just have a conversation. Hell you can explain to the person why you\u2019re talking to them if you want to. Just get out there and communicate with people! You will gradually become comfortable as time passes.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "uph96d", "question": "28F, 5'2, 100lbs, no pop, no alcohol, no cigs.\nMuscular condition called Dermatomyocitis. \n\nI'm looking for any shred of advice on what to do about my current situation. I am sick, every single morning of my life without fail. This is something that has been going on since grade school. Fighting with my mom every single day because I felt too sick to go to school. This continued through middle and high school. \n\nI wake up extremely nauseous, I gag, I dry heave, ocassionally I'll actually throw up bile. I get incredibly hot and sweaty while wretching. My stomach hurts, using the bathroom doesn't make it go away. Was diagnosed with IBS as a kid, but I feel like that's just a blanket diagnosis compared to what's really going on. \n\nThis ruins my entire life. I have not had a job in years, the stress and the jobs unwillingness to work with me when I'm not feeling my best. I'm so broke all the time, and lonely and bored. I just want to feel well enough to have a life. I'm too afraid to every sleep over at a friends, or to travel much because I know I'll be sick for hours the next morning. \n\nI am a very skinny and petite person who has struggled my entire life with gaining weight. When I was very ill with my muscular disease I dropped to 65lbs and had to have a feeding tube. \n\nI have seen gastroenterologists and they've done scopes that sometimes indicate ulcers and other times appear totally normal. Telling me it's just IBS and there's nothing they can do. I take zofran right away when I wake up and I immediately try to eat a banana or some applesauce, but nothing helps. I wake up at 5am every day and throw up until 8 or 9 and then lay there feeling exhausted and tired and sick for the better part of the day. \n\nAny advice on how I can try to reclaim my body and my life? I'm reaching a breaking point here.", "comment": "Long term nausea like this that isn't caused by something you can see with a scope or an X-ray is called \"functional nausea.\" We usually do tests to rule out other stuff: upper scope, solid phase gastric emptying study (to rule out gastroparesis), brain MRI (to rule out increased intracranial pressure). But, in most people, it's all normal, and they're left with a symptom that is often debilitating.\n\nMany people also have symptoms that are part of the same nerve axis (the vasovagal axis) that controls nausea. Low appetite, vomiting, sweating, dizziness, migraines, racing heart rate with changes in position.\n\nWe don't know for sure what causes functional nausea, but it's likely a primary problem with the nerves responsible for appetite, nausea, and vomiting - the vagus nerve. So, we often treat it with medications that interact with the this nerve system. Amitriptyline is the first choice. Metoclopramide (not my favorite due to high rate of side effects), cyproheptadine (also increases appetite, which can be helpful), and ondansetron (which you're already taking) are also often used. I've had some success with newer medicines in some patients: prucalopride and granisetron (which comes in a patch, but is very hard to get insurance to pay for unless you're a chemo patient).\n\nMany patients also benefit from other things like cognitive behavioral therapy and a nerve stimulator called IB stim.\n\nIt's a very hard problem, and the situation you are in - trouble with employment and functioning and general - is a common consequence of problems like this. I'm so sorry you're dealing with this. I definitely think there are more things to try if you haven't pursued the options above.\n\nOne more thing to add: since you have dermatomyositis, you likely need a colonoscopy and maybe even a capsule endoscopy to make sure your GI symptoms aren't from GI involvement of dermatomyositis (it can cause blood vessel inflammation in the GI tract).", "upvote_ratio": 230.0, "sub": "AskDocs"} +{"thread_id": "upha8p", "question": "What\u2019s your favourite joke from The Simpsons?", "comment": "Millhouse is on a speeding school bus and blurts out, \u201cThis is just like Speed 2, except we\u2019re on a bus!\u201d That joke makes me laugh to this day", "upvote_ratio": 360.0, "sub": "AskReddit"} +{"thread_id": "upha8p", "question": "What\u2019s your favourite joke from The Simpsons?", "comment": "\"Let's see Social security number...000-00-000...2. Damn you Roosevelt. Cause of parents death?...Got in my way.\"", "upvote_ratio": 320.0, "sub": "AskReddit"} +{"thread_id": "upha8p", "question": "What\u2019s your favourite joke from The Simpsons?", "comment": "\u201cYou\u2019ll have to speak up, I\u2019m wearing a towel.\u201d", "upvote_ratio": 310.0, "sub": "AskReddit"} +{"thread_id": "uphaih", "question": "In git, and which one should you use", "comment": "Google dude. Don\u2019t be lazy.", "upvote_ratio": 90.0, "sub": "LearnProgramming"} +{"thread_id": "uphbs4", "question": "Hey everyone, new to python and coding in general, so don't mind me coming across a bit dumb about this, but I have a question, why can't we use the range function for strings in lists? Why is it specific to integers? It's used to specify the number of times a list is looped right? But can't it be done with the break statement aswell? For example:\n\nx = [ 1, 2, 3, 4 5,]\n\nFor y in x:\nIf y == 3:\nBreak\nPrint(y)\n\n\nIf we define the value of when it exits the loop in the if condition, wouldn't it be the same as using the range function in this case? Am I missing something?", "comment": ">\tWhy is it specific to integers?\n\n`range` returns an iterator over integers in sequence between two values (or between zero and a value.) There's no such thing as \"the *strings* in between zero and a value\" because that's not how strings work.", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "uphclb", "question": "I\u2019m an incel, I also believe I\u2019m genuinely a good person. I want to clarify misconceptions about incels. AMA.", "comment": "Do you realise that by clarifying misconceptions you\u2019re clarifying that those misconceptions don\u2019t apply to you and not that those misconceptions aren\u2019t broadly correct about incels?\n\nYou\u2019re revealing yourself and not speaking for a community.", "upvote_ratio": 40.0, "sub": "AMA"} +{"thread_id": "uphcra", "question": "If butterscotch and black licorice are considered \u201cgrandparent candy\u201d, what will the flavor/food be when your generation grows old?", "comment": "Nerds and Pop Rocks", "upvote_ratio": 140.0, "sub": "AskReddit"} +{"thread_id": "uphcra", "question": "If butterscotch and black licorice are considered \u201cgrandparent candy\u201d, what will the flavor/food be when your generation grows old?", "comment": "Ring pops and candy necklaces. Candy cigarettes. Cocaine.", "upvote_ratio": 100.0, "sub": "AskReddit"} +{"thread_id": "uphcra", "question": "If butterscotch and black licorice are considered \u201cgrandparent candy\u201d, what will the flavor/food be when your generation grows old?", "comment": "Anything powdered with sour flavor made a big impact on 80s/90s kids, nursing homes better stock up on sour gummies and warheads.", "upvote_ratio": 80.0, "sub": "AskReddit"} +{"thread_id": "uphf6k", "question": "What\u2019s the best sitcom of all time for you?", "comment": "Malcom in the middle", "upvote_ratio": 180.0, "sub": "AskReddit"} +{"thread_id": "uphf6k", "question": "What\u2019s the best sitcom of all time for you?", "comment": "Seinfeld", "upvote_ratio": 170.0, "sub": "AskReddit"} +{"thread_id": "uphf6k", "question": "What\u2019s the best sitcom of all time for you?", "comment": "Brooklyn 99", "upvote_ratio": 150.0, "sub": "AskReddit"} +{"thread_id": "uphfln", "question": "What is the most beautiful thing you have ever seen?", "comment": "A sunrise while on acid. I am colorblind. I saw color that day.", "upvote_ratio": 680.0, "sub": "AskReddit"} +{"thread_id": "uphfln", "question": "What is the most beautiful thing you have ever seen?", "comment": "Myself. I was Sexually abused as a child and maybe once every year or so when I look in a mirror I cry at how far I\u2019ve come.", "upvote_ratio": 340.0, "sub": "AskReddit"} +{"thread_id": "uphfln", "question": "What is the most beautiful thing you have ever seen?", "comment": "My wife", "upvote_ratio": 150.0, "sub": "AskReddit"} +{"thread_id": "uphg04", "question": "I've noticed a lot of american and canadian yourubers (Shayne Topp, MattColbo, Kimmy Jimenez...) have a degree in psychology. In Czechia (where I'm from) it's one of the hardest fields to get in (I've heard about people who didn't get in with percentile over 98%) because so many people want to go there. Is it possible that it's less prestigious in America?", "comment": "They most likely just did their undergrad, and it\u2019s extremely common, and fairly easy to do your undergrad. Now if you go all the way to getting your post grad and doctoral degree, that\u2019s where it gets very intense and difficult. Much like any other degree program.", "upvote_ratio": 370.0, "sub": "AskAnAmerican"} +{"thread_id": "uphg04", "question": "I've noticed a lot of american and canadian yourubers (Shayne Topp, MattColbo, Kimmy Jimenez...) have a degree in psychology. In Czechia (where I'm from) it's one of the hardest fields to get in (I've heard about people who didn't get in with percentile over 98%) because so many people want to go there. Is it possible that it's less prestigious in America?", "comment": "A psychology \"degree\" does not make one a medical doctor.\n\nUniversities in Europe are different than those in the US. Most of the universities here follow the traditional liberal arts program of a broad and diverse education, not a direct specialization. A student does not enter university from high school straight into law or medicine. They need a 4 year degree FIRST, then an advanced degree.\n\nA \"psychology degree\" in the US is a 4 year bachelor's of science program. Nearly every 4 year university in the US offers a bachelor's degree in psychology. Here's the program at a state university in Michigan: [Psychology at Ferris State](https://www.ferris.edu/arts-sciences/departments/social-sciences/psychology-bachelor.htm)\n\nIt's a broad degree that is intended to prepare the student for the next phase of their education or career. This could be a Master's of Social Work, applying to medical school to become a Doctoral student, or simply a position in sales at a company using basic techniques to understand and manipulate buyers.\n\n> To become a Psychologist one would obtain a 4 year degree, *then* earn a master\u2019s and/or doctorate in psychology.\n> \n> [How to Become a Psychologist](https://onlinecounselingprograms.com/mental-health-careers/how-to-become-psychologist/)\n> \n> Depending on where you intend to practice and the specific concentration you are interested in (e.g., child psychology, social work, marriage and family therapy), you may be able to pursue a psychology license after earning a master\u2019s degree, either a Master of Arts or a Master of Science. If you must pursue a doctoral degree, you will choose between a PsyD, a practical degree for would-be counselors; a PhD, which is more research-oriented; an EdD, or Doctor of Education; and an EdS, or education specialist. Check your state requirements and consider your career goals to determine which degree is right for you.\n> \n> **Complete an internship or postdoctoral program.**\n> After you complete a psychology master\u2019s or doctoral program, you must complete an internship or postdoctoral program. This required psychology internship gives you an opportunity to work alongside licensed psychologists to gain hands-on training in your field of interest. Most states require 1,500 to 2,000 hoursExternal link:open_in_new of training and at least one to two years of supervised professional experienceExternal link:open_in_new, according to the U.S. Bureau of Labor Statistics.\n> \n> **Obtain a psychology license.**\n> The licensing requirements for psychologists vary per state. Contact your state board to understand your state\u2019s requirements. Various state board information can be found at the Association of State and Provincial Psychology Boards (ASPPB. Once you\u2019ve met the necessary education and professional requirements, you\u2019ll need to pass the Examination for Professional Practice in Psychology, which is administered by the ASPPB.\n\nThe education/licensing path is 6+ years MINIMUM, more typically 8-10.", "upvote_ratio": 120.0, "sub": "AskAnAmerican"} +{"thread_id": "uphg04", "question": "I've noticed a lot of american and canadian yourubers (Shayne Topp, MattColbo, Kimmy Jimenez...) have a degree in psychology. In Czechia (where I'm from) it's one of the hardest fields to get in (I've heard about people who didn't get in with percentile over 98%) because so many people want to go there. Is it possible that it's less prestigious in America?", "comment": "Getting a BA is not too difficult. It's a common choice for people who aren't sure what they want to study and are going for something generic. It is a useful degree for any job involving organizing personnel. Only a few people end up actually working in the psychology field.\n\nA BS is a bit more difficult because it tends to involve a bit of data analysis but overall is pretty similar to a BA.\n\nIt is the Master's degree that is difficult to get. That's where it starts getting prestigious. Pretty much everyone who gets a Master's is either a star student or has been working as a therapist/counselor for a bit and is now increasing their certifications so they can have an independent practice. Few people with a Master's in Psychology work in another field and pretty much everyone with the degree makes a pretty solid salary.\n\nA PhD is much like a Master's, but more prestigious and more money.", "upvote_ratio": 80.0, "sub": "AskAnAmerican"} +{"thread_id": "uphj4r", "question": "15 female. I was raped a few days ago and I took the \n\"ella\" morning-after pill a few hours after it. \n\nI bought it behind my parent's back, the pharmacy lady didn't give a fuck after giving her a somewhat good tip. \n\nNo signs of STD's. No itciness, burning, or any symptom other than what I can expect from the pill. And I had a blood test I think 2 days ago, routine checks, so I'm safe from STD's.\n\nHonestly, I'm just freaking out a little bit because I have no idea what's going on. I bleed a little bit last night and I just went to cry my eyeballs out to sleep because what else is there to do?\n\nHow likely is it that the pill doesn't work?\n\nIs it normal to bleed a little bit? Not enough to count as a period though.\n\nHow do I know if it worked? And what do I do if it didn't?\n\nAnd probably I'll keep asking more.\n\nIn case you need to know, a few years ago I didn't have my period for a whole year because of anorexia, but it's been getting better and I'm more regular on it as time goes by. I was supposed to get my next period around may 28.\n\nEdit: Please don't suggest mental health shit or anything. I just wanna know wtf is going on right now with my body...", "comment": "It is absolutely normal. It's a load of hormones and it messes with your cycle, so you can bleed in between cycles, it can delay your next cycle or some other irregularities, like heavier bleeding. Symptoms can last a few days and they include nausea, vomiting, bleeding, fatigue, tender breasts, and others. The effectiveness of morning-after pills is about 85%, and the sooner you take them the better. You will know it worked only when you get your next period or you have a negative pregnancy test (if your period is late).\n\nI'm sorry you're in this situation, hang in there.", "upvote_ratio": 310.0, "sub": "AskDocs"} +{"thread_id": "uphj4r", "question": "15 female. I was raped a few days ago and I took the \n\"ella\" morning-after pill a few hours after it. \n\nI bought it behind my parent's back, the pharmacy lady didn't give a fuck after giving her a somewhat good tip. \n\nNo signs of STD's. No itciness, burning, or any symptom other than what I can expect from the pill. And I had a blood test I think 2 days ago, routine checks, so I'm safe from STD's.\n\nHonestly, I'm just freaking out a little bit because I have no idea what's going on. I bleed a little bit last night and I just went to cry my eyeballs out to sleep because what else is there to do?\n\nHow likely is it that the pill doesn't work?\n\nIs it normal to bleed a little bit? Not enough to count as a period though.\n\nHow do I know if it worked? And what do I do if it didn't?\n\nAnd probably I'll keep asking more.\n\nIn case you need to know, a few years ago I didn't have my period for a whole year because of anorexia, but it's been getting better and I'm more regular on it as time goes by. I was supposed to get my next period around may 28.\n\nEdit: Please don't suggest mental health shit or anything. I just wanna know wtf is going on right now with my body...", "comment": "I\u2019m sorry, I know you don\u2019t want hear anything about \u2018mental health shit\u2019 but it\u2019s valid. Especially with \n\n>I just went to cry my eyeballs out to sleep because what else is there to do?\n\nThis is awful. I\u2019m so sorry this happened to you. No matter what the circumstances were, this is not your fault. I would urge you to report the rape and talk to your parent. I know this will seem like you\u2019re being punished for being a victim and making a mistake (and who doesn\u2019t make mistakes when they\u2019re 15?) because your parent will likely want to keep a closer eye on you in the future, etc. But the person who raped you should be held accountable, and getting raped is Post Traumatic Stress Disorder (PTSD) stuff. You need to talk to a therapist to help move past this or you\u2019re going to be carrying it for a long time. You need the support of your family. \n\nThe ella pill is effective about 85% of the time, but is reportedly more effective the sooner you take it. I\u2019m not surprised at the bleeding. You should get swabbed for STDs and checked for HIV. You should probably start [HIV PEP](https://emedicine.medscape.com/article/2141935-overview).\n\nAgain, I\u2019m so sorry this happened to you.", "upvote_ratio": 190.0, "sub": "AskDocs"} +{"thread_id": "uphjf1", "question": "For those curious I was trying to parse word data from Wiktionary of the Wikimedia foundation family, raw markup text in each word document (Wiktionary page) is ordered in a hierarchical sequence, nothing wrong with parsing that, but cleaning the formatting quickly became a huge burden and I was soon hacking on band aids after band aids to stamp out Wikimedia syntax in an effort to get clean English sentences.\n\nToday I just randomly searched up Wiktionary parser and lo and behold a perfectly [working library](https://github.com/Suyash458/WiktionaryParser) appears in the search results. Yea all my problems are solved, but I'm empty inside. I could've just Googled and save my 2 weeks worth of effort for the rest of the project.", "comment": "It's not wasted.\n\nFirstly you figured out how to do a bunch of things you couldn't already do and secondly you learned that, in programming at least, Google is your friend.", "upvote_ratio": 1260.0, "sub": "LearnProgramming"} +{"thread_id": "uphjf1", "question": "For those curious I was trying to parse word data from Wiktionary of the Wikimedia foundation family, raw markup text in each word document (Wiktionary page) is ordered in a hierarchical sequence, nothing wrong with parsing that, but cleaning the formatting quickly became a huge burden and I was soon hacking on band aids after band aids to stamp out Wikimedia syntax in an effort to get clean English sentences.\n\nToday I just randomly searched up Wiktionary parser and lo and behold a perfectly [working library](https://github.com/Suyash458/WiktionaryParser) appears in the search results. Yea all my problems are solved, but I'm empty inside. I could've just Googled and save my 2 weeks worth of effort for the rest of the project.", "comment": "This is a great opportunity to compare your solution to theirs. \n\nSince you\u2019ve been all the way through it you will understand the decisions they made, and which ones were an improvement over yours.", "upvote_ratio": 510.0, "sub": "LearnProgramming"} +{"thread_id": "uphjf1", "question": "For those curious I was trying to parse word data from Wiktionary of the Wikimedia foundation family, raw markup text in each word document (Wiktionary page) is ordered in a hierarchical sequence, nothing wrong with parsing that, but cleaning the formatting quickly became a huge burden and I was soon hacking on band aids after band aids to stamp out Wikimedia syntax in an effort to get clean English sentences.\n\nToday I just randomly searched up Wiktionary parser and lo and behold a perfectly [working library](https://github.com/Suyash458/WiktionaryParser) appears in the search results. Yea all my problems are solved, but I'm empty inside. I could've just Googled and save my 2 weeks worth of effort for the rest of the project.", "comment": "pip install universe", "upvote_ratio": 90.0, "sub": "LearnProgramming"} +{"thread_id": "uphk52", "question": "what is a food that when you start eating, you won't stop?", "comment": "Potato chips", "upvote_ratio": 160.0, "sub": "AskReddit"} +{"thread_id": "uphk52", "question": "what is a food that when you start eating, you won't stop?", "comment": "Ruffles and French onion dip. Zero self control.", "upvote_ratio": 100.0, "sub": "AskReddit"} +{"thread_id": "uphk52", "question": "what is a food that when you start eating, you won't stop?", "comment": "So I crush up doritos, add some cooked and seasoned ground beef (Emeril's Southwest Essence), mix and reheat until the beef is hot again, then add nacho cheese, mix until coated, and heat again until the cheese is hot, then eat with a spoon.\n\nI call it \"cummy-wummies\"", "upvote_ratio": 80.0, "sub": "AskReddit"} +{"thread_id": "uphn2p", "question": "What small act of good do you do as often as you can?", "comment": "For me, every time I use the bathroom, I make sure I leave a bit of toilet paper that you can easily grab to pull more from. I never leave the seam tucked away, I leave a little hand hold you can pull more from easily.", "upvote_ratio": 130.0, "sub": "AskReddit"} +{"thread_id": "uphn2p", "question": "What small act of good do you do as often as you can?", "comment": "Return shopping carts other people left in the parking lot at the grocery store. We refer to it as \u201csaving\u201d the cart.", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "uphn2p", "question": "What small act of good do you do as often as you can?", "comment": "I pick up trash that some moron has left on the street.", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "uphvc8", "question": "Seriously though, instead of working remotely, why should we go back to working in an office?", "comment": "I\u2019ve heard some say they really want a work/home separation.", "upvote_ratio": 310.0, "sub": "AskReddit"} +{"thread_id": "uphvc8", "question": "Seriously though, instead of working remotely, why should we go back to working in an office?", "comment": "I think the older you get the harder it is to make friends, so any opportunity you have to actually connect with real people and work with them instead of doing it over the internet is a great thing. Not the same thing, but for my first year of college everything was completely online, and although I did just as well then as I have done in person, I made basically no friends outside of my roommate and my boyfriend because there was no way to meet anyone else. It made me realize the value of actually gathering in person to work together. \n\nUltimately, I love the idea of offices being more flexible with who wants to work from home or in person, because everyone is different. Sometimes remote work is *great,* especially for me as I like to dogsit on the side during the summer and it's easier for me to complete internships or other jobs if they're remote and have multiple sources of income. But I think it can also make people so much more isolated.", "upvote_ratio": 210.0, "sub": "AskReddit"} +{"thread_id": "uphvc8", "question": "Seriously though, instead of working remotely, why should we go back to working in an office?", "comment": "It\u2019s more conducive to getting shit done. Most people need to be nudged a little bit. It\u2019s too easy to read an email asking you to do something you\u2019d rather not and think \u201coh, I\u2019ll just act as if I haven\u2019t seen it for an hour or two before addressing that.\u201d\n\nAlso, sometimes it really just works better to *show* people what you\u2019re going through. Yeah, screenshare helps, but it\u2019s still not always the same.", "upvote_ratio": 100.0, "sub": "AskReddit"} +{"thread_id": "upi0ai", "question": "What is your favorite magical or mythological creature?", "comment": "Dragon", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "upi2dy", "question": "My 5 year old wanted to see them hatch and spread them in the backyard. I have been trying to keep the grass low but we had a good rain the other night. We have three eggs and in the past two days two have hatched. Should I wait a couple more days to cut the grass? I don't want to hurt the little guys. Also, should I do it before or after the third egg hatches. It's probably going to in the next day or so. [hatched mantis egg](https://i.imgur.com/dOyiBoI.jpg)", "comment": "I hate to tell you but you lawn is a habitat for the next couple months. They're not going to go very far unless there's no food. The best thing to do is collect them and move them someplace safe.", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upi2dy", "question": "My 5 year old wanted to see them hatch and spread them in the backyard. I have been trying to keep the grass low but we had a good rain the other night. We have three eggs and in the past two days two have hatched. Should I wait a couple more days to cut the grass? I don't want to hurt the little guys. Also, should I do it before or after the third egg hatches. It's probably going to in the next day or so. [hatched mantis egg](https://i.imgur.com/dOyiBoI.jpg)", "comment": "You are somewhere they're native to right? Otherwise they're already dead....", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upi2jf", "question": "As a child, what did you want to be when you grew up?", "comment": "A trucker. Mission accomplished.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upi2jf", "question": "As a child, what did you want to be when you grew up?", "comment": "Rich", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upi3eo", "question": "What is your favorite breakfast food?", "comment": "Coffee", "upvote_ratio": 100.0, "sub": "AskReddit"} +{"thread_id": "upi3eo", "question": "What is your favorite breakfast food?", "comment": "French Toast", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "upi3eo", "question": "What is your favorite breakfast food?", "comment": "Waffles.", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "upi3iw", "question": "Does the feeling of nostalgia make anyone else feel extremely uneasy and nearly sick?", "comment": "Not really no. Nostalgia makes me feel comfortable and tipsy.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upi4t9", "question": "I had a liver function test done today and my ALT/SGPT level was 83 (10-40 normal range), my AST/SGOT is 37(normal range is 15-45). My Vitamin D level is 8.6 and that's been deemed as highly deficient in the report. Other parameters in my blood report are normal. For context, I did a moderately intense workout 2 days ago with weights and 5 days ago took a paracetamol for back pain. Also, I rarely drink alcohol. Wondering if these could have affected the ALT levels? Any help about this would be appreciated.", "comment": "Usually doesn't mean much on its own. I tend to just repeat this sort of thing in a couple weeks. If it's still elevated, I get an ultrasound. The most common cause of isolated ALT elevation in otherwise healthy people is fatty liver.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upi5kj", "question": "What\u2019s something incredibly smart that your pet did which surprised you?", "comment": "One time we took the car to go to a lake about 30mn away. Upon arriving there, we realize we forgot the dog on the parking. I was terrified, imagining my dog running after the car for minutes before falling out of exhaustion and rolling on the floor. Or just giving up and being lost somewhere along the highway.\n\nBut no, dog probably saw the car go away without him, so he just walked to our door and sat there for an hour.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upi5kj", "question": "What\u2019s something incredibly smart that your pet did which surprised you?", "comment": "my dog can tell when i'm getting ready to leave the house based on the clothes that i'm wearing. she'll then go outside and wait by the front gate to see me off.", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upi5kj", "question": "What\u2019s something incredibly smart that your pet did which surprised you?", "comment": "My roommate's dog knew my roommate couldn't see with his VR set on and quietly (and I mean he has nails which usually click when walks) jumped onto a chair then table, walked across a glass table to eat my roommate's dinner", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upi64c", "question": "It\u2019s a Mitsubishi Mirage (so basically a glorified golf cart) and the tire size is 175/55r15. No one carries it. Apparently only a handful of companies even make it anymore. \n\nI know people change tire size all the time on larger vehicles, but would it have a detrimental effect on a smaller car like mine?", "comment": "That is a weird tire. As long as all four wheels are the same yes you can change them out.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upi73c", "question": "`Traceback (most recent call last):`\n\n `File \"C:/Users/Oliver Onut/Downloads/Python Games/garden.py\", line 18, in <module>`\n\n`cow = Actor(\"cow\")`\n\n `File \"C:\\Users\\Oliver Onut\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\pgzero\\`[`actor.py`](https://actor.py)`\", line 88, in __init__`\n\n`self.image = image`\n\n `File \"C:\\Users\\Oliver Onut\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\pgzero\\`[`actor.py`](https://actor.py)`\", line 103, in __setattr__`\n\n`return object.__setattr__(self, attr, value)`\n\n `File \"C:\\Users\\Oliver Onut\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\pgzero\\`[`actor.py`](https://actor.py)`\", line 218, in image`\n\n`self._orig_surf = self._surf = loaders.images.load(image)`\n\n `File \"C:\\Users\\Oliver Onut\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\pgzero\\`[`loaders.py`](https://loaders.py)`\", line 120, in load`\n\n`self.validate_root(name)`\n\n `File \"C:\\Users\\Oliver Onut\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\pgzero\\`[`loaders.py`](https://loaders.py)`\", line 99, in validate_root`\n\n`raise KeyError(`\n\n`KeyError: \"No 'images' directory found to load image 'cow'.\"`\n\n&#x200B;\n\nHi. That's my error. I have got a programming book and i'm trying to create a game called Happy Garden, but i get this error. The code is exactly like in the book and the \"cow\" image is in the \"images\" folder, in the same folder as the code. I am using pygame zero. Please help me. Thanks!", "comment": "Be careful specifying folder paths in Python. The backslash used in folder paths on Windows is also the string escape character.\n\nUse the `pathlib` library (check realpython.com for a free guide) or raw strings, e.g. `folder = r\"C:\\temp\"`", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "upialg", "question": "I was the spoiled kid who had it easy in life it made me a needy weak man how do I change this?", "comment": "Well, first off, this isn't a bad thing. You're very fortunate and you should be grateful.\n\nThat said, you're already on the path to healing just by recognizing it. Unfortunately there's no way to instantly fix this. Much like you learned to be spoiled, learning to be self-sufficient will be a journey that takes time and effort as you continually experience new things throughout the course of your life.\n\nJust try to be mindful of doing things for yourself and make mental notes of what life skills you're lacking, and practice them in small ways every day. Cook new meals, set time aside for chores, take up a hobby working with your hands, volunteer at an organization that lets you interact with less fortunate people and learn from them, etc. \n\nIt will be small life changes over a long time. You're already doing great.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upialg", "question": "I was the spoiled kid who had it easy in life it made me a needy weak man how do I change this?", "comment": "Volunteer at a community center. It will give you a really good look into the type of things people struggle with on a daily basis and help you appreciate what you have.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upibut", "question": "I was wondering if people have experience with them?", "comment": "I have only bought the notes and didn\u2019t find it helpful for memory retention. It\u2019s nice to have as a reference but imo it\u2019s still better to watch the videos and take notes yourself with pen and paper. Studies show that this helps with memorizing the material as opposed to type (or just having the hand out to the slides)", "upvote_ratio": 30.0, "sub": "ITCareerQuestions"} +{"thread_id": "upif7l", "question": "age and sex: 15M; height: 5'10\"; weight: 150 lbs.\n\nYesterday at 4:00 PM, I had a gastrografin enema, where they fill up your colon with gastrografin and then take some x-ray photographs. The reason I had this done is because of some painful undiagnosed colon/rectum problems I've had for the past 1.5 years. When they were draining the liquid out after they got done taking the x-rays, I overheard them say something about how there was some liquid they were having a hard time draining. They even tilted me forward to try to drain it out.\n\nWhen I was at the clinic, I had diarrhea twice (although I don't think it's technically diarrhea because it's leftover fluid from the procedure). I then proceeded to have diarrhea 5 more times between 5:00 and 9:00 PM. Now, it's the next day, and after a whole night of my intestine squirming around, I had diarrhea again. I know there's still more left in there, because I'm still having intestinal cramps right now.\n\nIs it normal for a gastrografin enema to cause this much diarrhea for this long? Did something go wrong in the procedure? If not, then how much longer should this last?", "comment": "The radiologists usually tell patients it may take 24-48 hours for all the contrast to come out.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upif7q", "question": "So, I finished the final step of what seemed like a great interview process a few weeks ago. Since then it seems like the final offer is being held up by senior leadership who's doing a \"headcount,\" and the recruitment team keeps hoping for news soon but then it doesn't come. The recruitment head has called several times this week saying I should know any day now, then comes back to say he can't confirm things because leadership is still doing this headcount.\n\nDoes anyone else have experience with this? How long could I expect this to go on, and should I be doing anything during this time (besides continuing to apply for jobs, haha). I'm a bit new to the tech world so just trying to figure out if this is a red flag and what do do or think. Thanks!", "comment": "Damn that's some unlucky timing. What can you do besides continuing to apply elsewhere \ud83d\ude29.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upif7q", "question": "So, I finished the final step of what seemed like a great interview process a few weeks ago. Since then it seems like the final offer is being held up by senior leadership who's doing a \"headcount,\" and the recruitment team keeps hoping for news soon but then it doesn't come. The recruitment head has called several times this week saying I should know any day now, then comes back to say he can't confirm things because leadership is still doing this headcount.\n\nDoes anyone else have experience with this? How long could I expect this to go on, and should I be doing anything during this time (besides continuing to apply for jobs, haha). I'm a bit new to the tech world so just trying to figure out if this is a red flag and what do do or think. Thanks!", "comment": "It\u2019s possible the role was filled by someone else and they\u2019re hoping for a new one to open up soon.\n\nI\u2019d remain optimistic, but also start looking at alternatives just to have some backup plans.\n\nPersonally I can\u2019t stand waiting idly for someone else to make a decision. Always prefer to start arranging alternative plans.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upig1j", "question": "I\u2019m sure there is a better sub for this but I couldn\u2019t find a decent sized one under what I was searching. \n\nYesterday night, I was cleaning my room and something that looked like a yellowjacket to me popped out when I moved my nightstand to sweep under it. It moved like once and then stayed there for a really long time. I was able to get close to it without it moving or getting agitated. When it did fly, it did not make a buzzing sound. \n\nI get bad reactions to stings so I was going to wait for someone else to come home to help handle it, but after all that time in one place, I left the room for like 10 minutes and it vanished!\n\nI\u2019m a little confused about why a Yellowjacket would have been randomly in my stuff, been so docile, etc. so I\u2019m wondering if it could have been something else? And it really needs to be gone but idk how to find it other than moving things around until it appears again, which if it is a Yellowjacket I\u2019m sure could risk making it aggressive. \n\nI am in western massachusetts, and I live on the second floor of a building.", "comment": "Sounds like it\u2019s been there for a while and is about to die of hunger/thirst if it wasn\u2019t moving much. Don\u2019t be surprised if you find a dead wasp in your room.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upihn1", "question": "Americans, how would your country be different if you had a left wing party?", "comment": "That question will likely confuse many Americans, who think they *do.* In particular, Faux News viewers will not get it, since they have been told that Democrats are basically one step away from being communists.\n\nDemocrats *used* to be more left-wing, back before the 1980s (though still not as far left as some countries have), and the Republicans were largely moderates. Then the Republicans began to drift towards the far, farrr right, and the Democrats eased into the moderate slot they vacated. Age and race aside, Obama could have run as a Republican in the 1970s.", "upvote_ratio": 870.0, "sub": "AskReddit"} +{"thread_id": "upihn1", "question": "Americans, how would your country be different if you had a left wing party?", "comment": "I think people would start to realize that Democrats don't represent the left, and Republicans don't represent the right. And also that left and right are just concepts that don't necessarily define an individual's opinion.\n\nSocialized health care is the most important I think.\r It costs us more after the fact to have unhealthy citizens, smacks the worker class, and creates a huge barrier to starting a company.\r \n\r \nYour job shouldn\u2019t provide health care. Let the government concern itself with keeping citizens healthy and educated (and do a good fucking job of it instead of the bare minimum), and you\u2019ll find yourself with a healthy, willing, working class and a system where smaller businesses can compete more openly.", "upvote_ratio": 370.0, "sub": "AskReddit"} +{"thread_id": "upihn1", "question": "Americans, how would your country be different if you had a left wing party?", "comment": "Two answers, depending on how you get to a left-wing party:\n\nIf you just add it on top of Democrats and Republicans to see what happens next, the results are very bad. In this scenario, Republicans win all \u201cswing\u201d elections and the country takes a sharp turn rightward.", "upvote_ratio": 370.0, "sub": "AskReddit"} +{"thread_id": "upikzq", "question": "Is it simply due to a lack of qualified judges? Fears of \"governmental overreach\" or something? Or something more complicated, like the work still being bottlenecked somewhere else along the line anyway?", "comment": "A speedy trial is relative to how possible it is to have that trial. It doesn't specify a timeline exactly. It's only speedy in that it's not intentionally delayed.", "upvote_ratio": 90.0, "sub": "NoStupidQuestions"} +{"thread_id": "upimgq", "question": "Failed a final because I bombed this (and others) question.\n\nCan someone break this down Barney style so I might understand? I'm always missing these kind of problems.\n\n\nProve that the worst case runtime of any comparison-based sorting algorithm is \u2126(n lg n). (This means that the worst case runtime of any comparison-based sorting algorithm cannot be made better than n lg n.)", "comment": "This sounds like a question that's checking to see whether you understand a proof that you've been shown in class, or in a textbook. I can't imagine they'd expect you to figure it out from scratch. It's kind of like asking you to prove that there are an infinite number of primes, or that \u221a2 is irrational.\n\nWikipedia has [an outline of the proof](https://en.wikipedia.org/wiki/Comparison_sort#Number_of_comparisons_required_to_sort_a_list), which saves me the trouble of typing it out. Feel free to ask for clarification if there's something you don't understand about it.", "upvote_ratio": 110.0, "sub": "AskComputerScience"} +{"thread_id": "upiolo", "question": "Hey guys,\n\n&#x200B;\n\nI was wondering if somebody could help me, I am trying to figure out how to solve an error (NameError: name 'user\\_pick' is not defined) - This error occurs when I don't type an answer into the input and just leave it blank and press enter, and I was wondering if someone could help so instead of giving it an error I could personally put a print statement.\n\n&#x200B;\n\nHere is the following code - It says the error is on line 20.\n\n&#x200B;\n\n import random\n \n \n introduction = input(\n \"Welcome to Advanced Rock Paper Scissors! | Press enter to continue \")\n \n wannaplay = input(\"Would you like to play Rock Paper Scissors? (y/n) \")\n if wannaplay.lower() == \"yes\" or wannaplay.lower() == \"y\":\n print(\"Great!\")\n elif wannaplay.lower() == \"no\" or wannaplay.lower() == \"n\":\n print(\"ALT + F4 then\")\n else:\n print(\"Unknown Response | Please use one of the following: \\\"Yes\\\",\\\"Y\\\",\\\"No\\\" or \\\"N\\\"\")\n \n if wannaplay.lower() == \"yes\" or wannaplay.lower() == \"y\":\n user_pick = input(\"Rock, Paper or scissors? \")\n possible_options = [\"rock\", \"paper\", \"scissors\"]\n computers_action = random.choice(possible_options)\n \n if user_pick.lower() == \"rock\" or user_pick.lower() == \"paper\" or user_pick.lower() == \"scissors\":\n print(\n f\"\\nYou chose {user_pick} whilst the computer chose {computers_action}!\")\n elif user_pick == \"\":\n print(\"Answer invalid | Please pick one of the following: \\\"Rock\\\", \\\"Paper\\\", or \\\"Scissors\\\"\")\n else:\n print(\"Answer Invalid | Please pick one of the following: \\\"Rock\\\", \\\"Paper\\\" or \\\"Scissors\\\"\")\n \n if user_pick.lower() == computers_action:\n print(f\"Both players selected {user_pick}. It's a tie!\")\n elif user_pick.lower() == \"rock\":\n if computers_action.lower() == \"scissors\":\n print(\"Computer chose scissors, you win!\")\n else:\n print(\"Computer chose paper, sorry, you lose!\")\n elif user_pick.lower() == \"paper\":\n if computers_action.lower() == \"rock\":\n print(\"Computer chose rock, you win!\")\n else:\n print(\"Computer chose scissors, sorry, you lose!\")\n elif user_pick.lower() == \"scissors\":\n if computers_action.lower() == \"paper\":\n print(\"Computer chose paper, you win!\")\n else:\n print(\"Computer chose rock, sorry, you lose!\")\n\nPlease could anyone assist me with this, i'm very new to python so any and all help is greatly appreciated! - I'm happy to answer any questions :)\n\n&#x200B;\n\nThanks.", "comment": "Hey I saw you got your overall question answered, I just want to mention this to make your if statements a bit easier.\n\n if wannaplay.lower() in [\u201cyes\u201d,\u201dy\u201d]:\n\nAnd similar formats can help when you use \u201cor\u201d on multiple similar conditions.", "upvote_ratio": 50.0, "sub": "LearnPython"} +{"thread_id": "upioz9", "question": "If I sleep for 8 hours or so, I wake up with mild bed breath. It's unpleasant, but I can simply brush my teeth and I pretty much forget about it.\n\nBut heaven forbid I take a 20 minute nap, because I'll wake up and my mouth will taste like VOMIT. I'll brush my teeth, but that horrible, horrible taste still lingers; dancing on the surface of my tastebuds. Mocking me for succumbing to that fleeting moment of drowsiness.\n\nWhy is this??? Shouldn't my breath taste worse after a full night's rest??", "comment": "Just a guess, but most people don't brish before naps so the bacteria get all yhe benefits of drymouth time but with a head start compared to night time post brush.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upip6e", "question": "\"How are you doing?\" I say \"Good, thanks. How are you?\" Well, obviously you're doing shit. It's your spouse/brother/sister/mom/dad's funeral.\n\n\"Thanks for coming\". I say (without thinking) \"Thanks for inviting me.\" Shit. You didn't really invite me. I mean, I don't know you. I know your spouse/brother/sister/mom/dad.", "comment": "\"I'm holding up. It's hard.\"\n\n\n\"You're welcome. I admired/liked {deceased} a great deal.\"", "upvote_ratio": 90.0, "sub": "NoStupidQuestions"} +{"thread_id": "upip6e", "question": "\"How are you doing?\" I say \"Good, thanks. How are you?\" Well, obviously you're doing shit. It's your spouse/brother/sister/mom/dad's funeral.\n\n\"Thanks for coming\". I say (without thinking) \"Thanks for inviting me.\" Shit. You didn't really invite me. I mean, I don't know you. I know your spouse/brother/sister/mom/dad.", "comment": "Overthinking. Just respond I\u2019m sorry for your loss and express your condolences/you\u2019re there if they need anything\u2014whatever. \n\nIt\u2019s also ok to respond the way you did as well. Not to be dismissive, but whether you say any of the above, they\u2019re most likely focused on the fact that they lost somebody, not about how you responded \ud83d\ude4f\ud83c\udffc", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiptv", "question": "Why were Dalmatian dogs associated with fire stations and why aren't they in fire stations anymore?", "comment": "Their historical use at a fire station would be to run out in front of the carriages (before fire trucks) and guide the horses on a path to the fire, possibly at night or through a panicked crowd. We don\u2019t need that anymore. Now they\u2019re just mascots, really, and a lot of fire stations don\u2019t bother. In addition to being pretty, Dalmatians have terrible hips and they die early and tend to be deaf.", "upvote_ratio": 90.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiptv", "question": "Why were Dalmatian dogs associated with fire stations and why aren't they in fire stations anymore?", "comment": "They're definitely still in fire stations. My local fire station has a working Dalmatian", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiptv", "question": "Why were Dalmatian dogs associated with fire stations and why aren't they in fire stations anymore?", "comment": "Because Dalmations are good for working with horses. Back when firemen used horse drawn carriages the Dalmations would run ahead and clear a path", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiqzs", "question": "I feel like at a lot of companies management doesn't see how vital IT/ IT security are until they are attacked and have no idea what to do. With a possible recession looming, are IT Security jobs likely to be one of the victims of a recession?", "comment": "There are increasing conversations around the subject of the Board of Directors of publicly traded companies having responsibility to ensure the security of customer data within the organizations they supervise. \n\nZero legislation thus far, but the observations that those conversations are taking place is a huge start. \n\nInsurance providers are now offering Cybersecurity / Ransomware insurance policies, and offer sizable discounts to companies with robust security policies & practices in place. \n\nBoard members have a high motivation to ensure self-preservation and to protect themselves from liability after a cyber-event. \n\nIt's a slow-moving process, since many Boards of Directors are populated with dinosaurs. \n\n----- \n\nIt is also important to understand that there is tremendous overlap of skills between Cybersecurity / Information Security and IT Operations. \n\nTo fill any of those roles, you need to possess many of the exact same skills & understandings, which means you can apply to work in any of those roles (if you want to).", "upvote_ratio": 130.0, "sub": "ITCareerQuestions"} +{"thread_id": "upiqzs", "question": "I feel like at a lot of companies management doesn't see how vital IT/ IT security are until they are attacked and have no idea what to do. With a possible recession looming, are IT Security jobs likely to be one of the victims of a recession?", "comment": "Nothing is safe in a recession. When companies need to do layoffs then usually they spread the pain out as wide as possible. The only way to stay safe is to be one of the integral people that a company wouldn't lay off until it gets to the end of the line.", "upvote_ratio": 50.0, "sub": "ITCareerQuestions"} +{"thread_id": "upiqzs", "question": "I feel like at a lot of companies management doesn't see how vital IT/ IT security are until they are attacked and have no idea what to do. With a possible recession looming, are IT Security jobs likely to be one of the victims of a recession?", "comment": "Recession is likely to see an increase in malicious cyber activity. This one business unit that will likely see an more support when others are seeing layoffs", "upvote_ratio": 40.0, "sub": "ITCareerQuestions"} +{"thread_id": "upir6f", "question": "19M, 166cm, 73kg. on Sertraline 200mg and protosone.\n\nHi, I am suffering from aura migranes for around a month now and I find pushing on my temples hard or putting pressure on them helps with the pain. Is it unhealthy or bad if I put rubber bands around my head for an extended period to replicate this pressure without my involvement?", "comment": "Unless it's really tight and causes too much pressure on the skin, I can't see how it would cause a problem. It's not like it'll dent your skull or anything. \n\nBut don't try to replicate the watermelon rubber band thing where you keep doing it until the watermelon explodes.", "upvote_ratio": 50.0, "sub": "AskDocs"} +{"thread_id": "upirm4", "question": "Why is that?", "comment": "Because with social media, they can use what you upload to make revenue.\n\nCloud storage services are private", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiswz", "question": "If a film needed an American character to be a very obvious bad guy, what accent would they choose? \n\nAs a foreigner, I would think of an evil American character to be a New York banker or a sophisticated Southerner.", "comment": "Savannah accent has real Bond villain vibes", "upvote_ratio": 1540.0, "sub": "AskAnAmerican"} +{"thread_id": "upiswz", "question": "If a film needed an American character to be a very obvious bad guy, what accent would they choose? \n\nAs a foreigner, I would think of an evil American character to be a New York banker or a sophisticated Southerner.", "comment": "Depending on the context, delivery and the writing, almost any accent can sound sinister. From a Texas twang to a cool New York accent. Kevin Spacey made a smooth Southern drawl sound downright threatening at times in *House of Cards*.", "upvote_ratio": 1520.0, "sub": "AskAnAmerican"} +{"thread_id": "upiswz", "question": "If a film needed an American character to be a very obvious bad guy, what accent would they choose? \n\nAs a foreigner, I would think of an evil American character to be a New York banker or a sophisticated Southerner.", "comment": "Depends on what kind of evil you want\n\n\nTough guy - NJ \n\n\nDiabolical - southern gentleman\n\n\nFucking psycho - there's nothing crazier than a Minnesota accent yelling \"oh, how ya doing there Bob, I'm gonna chop you up into little pieces, don't ya know\"", "upvote_ratio": 1340.0, "sub": "AskAnAmerican"} +{"thread_id": "upiu1c", "question": "I don't understand why bye needs to be repeated twice but hello/hi doesn't. Also since bye literally means the same thing as bye bye?", "comment": "It\u2019s just a saying. It\u2019s not that deep.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiuoq", "question": "What is the most useless built in function?", "comment": "Either is_computer_on or is_computer_on_fire from BeOS.", "upvote_ratio": 60.0, "sub": "AskProgramming"} +{"thread_id": "upiuoq", "question": "What is the most useless built in function?", "comment": "Beep \n\nFrom old qbasic\n\nLiterally no use besides annoying the shit out of everyone.", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "upiuoq", "question": "What is the most useless built in function?", "comment": "string.repeat(number) in JavaScript. How often do people use this for it to be a built in function?", "upvote_ratio": 50.0, "sub": "AskProgramming"} +{"thread_id": "upiwka", "question": "If someone backs out of and rainchecks plans made with you, is it on you or them to reschedule?", "comment": "It's not \"on\" anyone. If you want to make plans with them, wait a little bit and try again. If they want to, then they will reach out to you. It doesn't need to be complicated.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiwka", "question": "If someone backs out of and rainchecks plans made with you, is it on you or them to reschedule?", "comment": "My rule for myself is that if I cancel the plans, it's on me to create the alternate/reschedule.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upixcm", "question": "Hi I'm 24M, white. I smoke and drink occasionally.\n\nI've had this spot under my toenail for maybe a month or 2 now and I just thought it was a bleeding that will fade. However I just came across pictures and info on subungual melanoma. I will make a doctor's appointment asap to check it but if anyone has info that would be greatly appreciated.\n\nHere is the picture of my toenail: https://imgur.com/a/4qlpiLp", "comment": "Looks more like an injury causing hematoma to the nailbed that is slowly growing out. That takes months, since toenails grow slowly. But yeah, still get it looked at. Keep in mind subungual cancer is very rare.", "upvote_ratio": 40.0, "sub": "AskDocs"} +{"thread_id": "upixcn", "question": "Is it not cheaper for employers not having to rent, heat and power an office?", "comment": "Because that's how they've always done things, because they don't trust that their employees are getting work done, because they don't know how to supervise when people *are* working in a physical office and they *especially* don't know how to supervise when everyone's scattered to the winds working remotely.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upixcn", "question": "Is it not cheaper for employers not having to rent, heat and power an office?", "comment": "It's called control.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upixcn", "question": "Is it not cheaper for employers not having to rent, heat and power an office?", "comment": "Managers validate their existence this way.\n\nIf employees are self managing 4 managers become 2, then two become one.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upiy2x", "question": "Age: 15\n\nGender: girl (unfortunately trans)\n\nHeight: I don't know cause knowing would make me hate my body more, too tall though, but uhh to trick automod cause it says this is required, my height is 5'4\"\n\nWeight: I don't know this either cause of more hating my body reasons, very underweight though, I think probably around 120 or 125 lbs\n\nRace: White\n\nDuration of complaint: Like a few seconds\n\nAny existing relevant medical issues: No, none\n\nCurrent medications: Daily ritalin, biweekly estradiol, biannual hormone blockers\n\nYeah, I had really needed to pee when I went to sleep, and then wet the bed at about six am; is this just a really embarrassing one-time thing or should I be concerned? \ud83d\ude2d", "comment": "If you're AMAB, then your biological sex will influence your chance of bedwetting. In cis-gendered boys, about 1-5% still have intermittent bedwetting at night even up to age 18. If it just happened once, and isn't recurrent, I wouldn't worry too much about it. \n\n&#x200B;\n\n>Gender: girl (unfortunately trans)\n\nI'm assuming since you're on estrogen that you're MTF? Also, quit saying unfortunately. You're FORTUNATE that you realized the truth about yourself. Embrace it. For once in history, it's at least partially accepted. It'll get easier over time. Hang in there and be nice to yourself.", "upvote_ratio": 250.0, "sub": "AskDocs"} +{"thread_id": "upiy99", "question": "What is your favorite 2000s movie?", "comment": "I\u2019m assuming you mean from 2000-2009.\n\nTo answer the question though Superbad.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upiy99", "question": "What is your favorite 2000s movie?", "comment": "Super Troopers", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upiy99", "question": "What is your favorite 2000s movie?", "comment": "The dark knight no debate", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upj0gk", "question": "I recently became more aware that there is so much that I don\u2019t understand. Stuff that\u2019s forgotten, unable to be put into words, that no one understands, that is impossible to understand. Is it important to be aware of how much I don\u2019t understand? If so, why does it matter if I don\u2019t understand it?", "comment": "\u201cTrue knowledge exists in knowing that you know nothing.\u201d -Socrates", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upj0gk", "question": "I recently became more aware that there is so much that I don\u2019t understand. Stuff that\u2019s forgotten, unable to be put into words, that no one understands, that is impossible to understand. Is it important to be aware of how much I don\u2019t understand? If so, why does it matter if I don\u2019t understand it?", "comment": "Yes, and it's important because you have to remain humble and strive towards growth and learning. You also have to respect those that know more than you about specific topics. The only way to improve yourself and your life is to accept your limitations and view your understanding of the world realistically.\n\n Idiots that think they're smart are some of the worst people on the planet.", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upj2s7", "question": "what is your biggest \"I've won but at what cost\" situation you've been?", "comment": "A mother of a young girl tried to force her daughter into taking piano lessons, even though the girl had zero interest and wanted no part of it.\n\nI explained that while music lessons were a good thing, it was nonetheless a mistake to coerce a child into taking piano with many hours of required practice (that doing so might turn her against music study in the future).\n\nAs a result, the daughter thanked me and said that maybe some day, if she had any real interest, she'd decide for herself to take lessons. \n\nMeanwhile, her Mom is annoyed and thinks I should've forced the issue, no matter what.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "upj2s7", "question": "what is your biggest \"I've won but at what cost\" situation you've been?", "comment": "Im now able to use the handicap restricted elavator at work , but only because i broke my foot", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upj2s7", "question": "what is your biggest \"I've won but at what cost\" situation you've been?", "comment": "I have finally won the long game in a war of workplace politics, but now I am saddled with way more responsibility than I can realistically fulfill.", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upj4hk", "question": "What's the weirdest sub?", "comment": "Meatball. Like, who decided that something circular and decidedly unsandwichable should be in a sub? Don't get me wrong, it tastes amazing, but it still strikes me as weird.", "upvote_ratio": 2590.0, "sub": "AskReddit"} +{"thread_id": "upj4hk", "question": "What's the weirdest sub?", "comment": "Definitely r/Alzheimersgroup", "upvote_ratio": 1600.0, "sub": "AskReddit"} +{"thread_id": "upj4hk", "question": "What's the weirdest sub?", "comment": "/r/dicklips\u00a0(NSFW) \n\nFor those of you that can't click the link, it's a sub where people Photoshop out the dick when a woman is giving a blowjob but leave a bit of the head, which makes her mouth look closed, resulting in a very weird face. It's a completely unnecessary and ridiculous community and yet it exists.\n\n[Here is a SFWish example of what I mean if you don't want to go](https://i.imgur.com/Z18Rm3S.jpg)", "upvote_ratio": 1240.0, "sub": "AskReddit"} +{"thread_id": "upj5al", "question": "Bought used Motorola 5g ace and the previous owner apparently deleted the keyboard and only used voice typing. There is no way to log into google play to download as the voice won\u2019t recognize login info.\n\nAny thoughts on how to reinstall?", "comment": "You could use a Bluetooth keyboard or USB OTG cable to plug a keyboard in and type your login with that.", "upvote_ratio": 30.0, "sub": "AndroidQuestions"} +{"thread_id": "upj9j7", "question": "Hello.\n\nMy 93 y.o. grandmother has been experiencing CMI for years. Her main complaint is postprandial pain (and weight loss as an objective finding). Stenosis was confirmed ~5 years ago via US and Doppler, but she refused to undergo revascularization.\nRecently she has experienced a heavy upper GI bleeding and for couple of days (under a week) after disharge from ER she had no postprandial pain at all. The only \u2018unusual for her\u2019 procedure performed in the ER was RBC transfusion.\n\nSo my question is \u2013 what could cause pain relief in this context and is there any conservative way to reproduce this effect? I did not find any recommendations on non-pharmacological treatment in literature.\n\nTIA, I highly appreciate your ideas and help", "comment": "Pain relief was likely from not eating for a few days. That's a common approach to bowel ischemia. When you don't put food in the stomach, then there is much less stimulation of blood flow to the intestines, so then ischemia is much less likely to happen. A transfusion would have magnified this effect by increasing the oxygen carrying capacity of the blood, and thus lowering the rate of ischemia in the gut. \n\nThere is no pharmacologic management of bowel ischemia unless there is a secondary cause (like vascular inflammation). Mesenteric ischemia because of atherosclerosis, which seems like the situation for your grandmother can only be fixed by removing the affected bowel if it becomes necrotic, placing a stent, etc.", "upvote_ratio": 40.0, "sub": "AskDocs"} +{"thread_id": "upjadt", "question": "From what I\u2019ve been taught, there was a one child policy in China. Parents preferred to have boys because they would be better than girls. This led to having abortions, killing, or abandoning any female babies birthed. But why wouldn\u2019t they want a girl baby so she could eventually repopulate?", "comment": "boys used to work and generate money while girls would be married and live as housewives, usually the parents of the daughter would have to pay for the wedding and then after that the daughter would be maintained by the other family's man. Also males used to carry the family name opposed to females who would adopt the male's family name", "upvote_ratio": 110.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjadt", "question": "From what I\u2019ve been taught, there was a one child policy in China. Parents preferred to have boys because they would be better than girls. This led to having abortions, killing, or abandoning any female babies birthed. But why wouldn\u2019t they want a girl baby so she could eventually repopulate?", "comment": "Men have significantly more opportunities in China and this was even further exaggerated back then. Families who were depending on the success of their children to escape poverty or to earn face and were limited in their number of children would vastly prefer to have a masculine child.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjbft", "question": "Who\u2019s the dumbest person you have ever met?", "comment": "i refuse to answer on the grounds that it may incriminate myself.", "upvote_ratio": 140.0, "sub": "AskReddit"} +{"thread_id": "upjbft", "question": "Who\u2019s the dumbest person you have ever met?", "comment": "This guy once at my army training was made to carry round a small plant everywhere we went to as i quote my sergeant \"replace the oxygen you waste from being alive\"", "upvote_ratio": 80.0, "sub": "AskReddit"} +{"thread_id": "upjbft", "question": "Who\u2019s the dumbest person you have ever met?", "comment": "Myself. \nI realise this now.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upjdc3", "question": "So when you eat sugar you know you have that energetic state then feel tired or sleepy? I usually don't have the energetic part and just want to fall asleep I noticed this as when I started eating anything sweet I feel a bit tired and it can actually sometimes makes me fall asleep can someone tell me the reason behind this?", "comment": "Hyperglycaemia will make you sleepy.. Doesn't mean you're diabetic but it couldn't hurt to get checked out.", "upvote_ratio": 40.0, "sub": "ask"} +{"thread_id": "upjez4", "question": "I experienced a pretty severe case of Serotonin Toxicity Syndrome caused by an interaction between Trazodone (50mg 1x daily at bedtime) and Buspirone (15mg 3x daily) and almost died. I took an initial 12mg of Cyproheptadine to detox and took 2mg every 2 hours for the first 2 days as well as 1mg of Clonazepam 4x a day to stop the muscle spasms. Unfortunately, I have made little progress since I stopped the 2 medications that caused it. It's been almost 3 days now since stopping the medications but the muscle spasms and rigidity are starting to worsen and the pain is becoming unbearable again. The Clonazepam which worked wonderfully at first now seems to be working less and less. How long until I start to feel better? It's been days since I have taken any of the medications that caused this hell to happen. It seems impossible that this would happen given what I've done. I need advice on what I should do, please. Increase my dosage of Clonazepam? Start taking Cyproheptadine again?\n\nSymptoms I experienced:\n\nHypertonia\n\nHyperthermia\n\nHigh Blood Pressure Reading\n\nMuscle Spasms in both shoulders, entire spine, back, and neck \n\n(the spasms in my neck were terrifying)\n\nAn excruciating and piercing 10/10 pain in both shoulder blades\n\n&#x200B;\n\n&#x200B;", "comment": "Sorry, I don\u2019t understand - are you admitted to the hospital? From the way you worded this post it sounds like you\u2019re trying to manage this at home? If that\u2019s the case you need to go to the ER immediately.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upjf0o", "question": "Hi all. Can anyone please recommend a structured learning course series or online / virtual camp for a student who will be entering 7th grade in the fall? He has plenty of computer / app *use* knowledge but hasn\u2019t ever substantively coded so this would need to be at the beginner level. His math skills are on par with any 7th grader in NY public schools. \n\nI would like this to be a half time endeavor at least where several hours each day over the summer are devoted to instruction / problem solving. \n\nGreatly appreciate any advice !", "comment": "I would recommend Mit's scratch for a 7th grade student. It's interesting and fun while not requiring higher levels of math to a certain degree.", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upjits", "question": "trying to escape from a relationship.AMA", "comment": "[And you\u2019re a scammer?](https://www.reddit.com/r/AMA/comments/ulmemu/i_scam_people_for_money_ama/?utm_source=share&utm_medium=ios_app&utm_name=iossmf)\n\nedit: you deleted the post but forgot to delete your comments.", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "upjj00", "question": "Short version: Title. Is a 4 week notice to my current company really insane? I want 2 weeks notice to current employer and 2 week vacation between jobs. \n\n\n\nLonger Version: I would like to have 2-3 weeks to train up my team on what I do, as well as close my stories to leave on a positive note, and then 1-2 week of 'vacation' between jobs, so I just said that I \"wanted to give current employer 4 weeks notice\" to make it simpler. The HR guy was like appalled that I'd ask for 4 weeks and his reasoning was \"people end up not showing up, their current employers will try to match to keep them and they'll stay\". This seems like a red flag, but I'm curious if it's blood red or just a slightly pink flag.... anyone have experience with that?", "comment": "You probably should have just given a desired start date rather than saying \"4 week notice.\"", "upvote_ratio": 130.0, "sub": "CSCareerQuestions"} +{"thread_id": "upjj00", "question": "Short version: Title. Is a 4 week notice to my current company really insane? I want 2 weeks notice to current employer and 2 week vacation between jobs. \n\n\n\nLonger Version: I would like to have 2-3 weeks to train up my team on what I do, as well as close my stories to leave on a positive note, and then 1-2 week of 'vacation' between jobs, so I just said that I \"wanted to give current employer 4 weeks notice\" to make it simpler. The HR guy was like appalled that I'd ask for 4 weeks and his reasoning was \"people end up not showing up, their current employers will try to match to keep them and they'll stay\". This seems like a red flag, but I'm curious if it's blood red or just a slightly pink flag.... anyone have experience with that?", "comment": "It\u2019s definitely a red flag. It shows a lack of empathy in the new company.\n\nIt also means they are likely understaffed and desperate for more help. Another red flag.", "upvote_ratio": 80.0, "sub": "CSCareerQuestions"} +{"thread_id": "upjj00", "question": "Short version: Title. Is a 4 week notice to my current company really insane? I want 2 weeks notice to current employer and 2 week vacation between jobs. \n\n\n\nLonger Version: I would like to have 2-3 weeks to train up my team on what I do, as well as close my stories to leave on a positive note, and then 1-2 week of 'vacation' between jobs, so I just said that I \"wanted to give current employer 4 weeks notice\" to make it simpler. The HR guy was like appalled that I'd ask for 4 weeks and his reasoning was \"people end up not showing up, their current employers will try to match to keep them and they'll stay\". This seems like a red flag, but I'm curious if it's blood red or just a slightly pink flag.... anyone have experience with that?", "comment": "It\u2019s not the biggest red flag in the world but it\u2019s certainly not a good one if they *need* a dev in 2 weeks not 4.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upjky1", "question": "I feel like I often let people talk over me and interrupt me in meetings that I hold ( I'm the president of an organization) way too much. I'm too passive and easy going. How can I change this without seeming rude", "comment": "Building rapport, earning trust and not breaking it, meeting deadlines, holding people accountable, rewarding good behavior", "upvote_ratio": 80.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjky1", "question": "I feel like I often let people talk over me and interrupt me in meetings that I hold ( I'm the president of an organization) way too much. I'm too passive and easy going. How can I change this without seeming rude", "comment": "Lead by example. \nMake sure you are doing your job to 100 percent completion and your workers will follow suit", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjky1", "question": "I feel like I often let people talk over me and interrupt me in meetings that I hold ( I'm the president of an organization) way too much. I'm too passive and easy going. How can I change this without seeming rude", "comment": "It appears you're a native collaborator. It doesn't mean you are weak, but rather you value group effort.\n\nIf you have a healthy one-on-one relationship with each member of the team, this is no problem. In fact, this is a strength.\n\nBalance your nature by strengthening your personal interaction with your team members. They will respect your opinion because they know you care. \n\nEstablish the standard that you value their contributions, but a universal set of rules must be followed in order to be fair to everyone on the team, and you are the enforcement for the rules. Enforcement of a system of fairness is universally accepted. When a person breaks the rule, it must be clearly defined what rule is broken and fair discipline must be given. People on the team who see this will respect the rules and your role as the keeper of the rule.\n\nThere is a difference between discipline and punishment. Know it and remind yourself and the members of the team. Being fair means being consistent, and an orderly team will respectfully try to be consistently fair to you and each other.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjlxh", "question": "Redditors of the great resignation, why did you quit your job?", "comment": "Told me they wanted me back in the office. I flat out said No. They told me to come in or it will mean my job is at risk. I laughed and said go ahead fire me ...I'll have a job in a week and you'll have to find a skilled coder to take over my legacy projects in cobol....\n\n\nI'm still working from home btw", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upjlxh", "question": "Redditors of the great resignation, why did you quit your job?", "comment": "There\u2019s no such thing as the great resignation. That implies that workers are responsible. Companies have failed to pay fairly and hire responsibly and they\u2019re losing employees. \n\nYou can\u2019t have 5-10% inflation and only provide 2% raises. You can\u2019t have 10 employees in a department 3 years ago and see work double and not add headcount. You can\u2019t give people WFH and not compensate employees more when productivity goes up, but then phase out WFH and expect productivity to stay the same without increasing compensation. You can\u2019t expect people to risk a deadly disease without increasing compensation. \n\nAnd this is also is affecting service workers more than white collar workers. They were called heroes and then weren\u2019t compensated and were also screamed at by customers for 2 years. So yeah. They quit.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "upjlxh", "question": "Redditors of the great resignation, why did you quit your job?", "comment": "They told me WFH would no longer be allowed. I had a new job lined up within two days.", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upjm5r", "question": "What is a part in a video game that you got stuck on as a kid?", "comment": "Dark souls part where you start the game.", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upjm5r", "question": "What is a part in a video game that you got stuck on as a kid?", "comment": "Monstro from Kingdom Hearts..", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upjm5r", "question": "What is a part in a video game that you got stuck on as a kid?", "comment": "Jak 2 pretty much the whole game, that game was hard as hell as a kid", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upjo13", "question": "I'm not trying to start any kind of debates or simular, I'd just like to know if anyone knows when in history this was \"decided\" and why. \nI'd also like to add that I'm certainly aware that cultures exist in which men wearing this clothing is accepted but I'm talking about the way it's portrayed in media and a majority of the world.", "comment": "It's due to the historical patriarchal structure of society. Traditionally women were treated as the weaker/lesser members of society, so a man dressing like a woman would make him look weak. That idea has been engrained in society and there are definitely people who firmly still believe it. Thankfully the tides are changing especially in younger generations, and many people don't care what you wear nowadays, so long as you're a decent person.", "upvote_ratio": 100.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjo13", "question": "I'm not trying to start any kind of debates or simular, I'd just like to know if anyone knows when in history this was \"decided\" and why. \nI'd also like to add that I'm certainly aware that cultures exist in which men wearing this clothing is accepted but I'm talking about the way it's portrayed in media and a majority of the world.", "comment": "If I had to guess, I'd say it's because women's cloths were designed to make them look delicate and elegant. highlighting features like, breasts, waist, collar bones, neck. Features I say drift more towards being attractive on women then Men, because women were seen as soft and so accentuating those points lead to men wanting to marry them and thus bigger dowrys and such for the family. Men looking delicate, or like a woman is frowned upon because until sort of recently men took on a protector and a supporter role. A protector who is delicate/soft clashes with engrained ideals.\n\n\nPlus men you do see in dresses these day are either trying to look more feminine (femboys, traps, cross dressers, etc) or they're the butt of some joke or prank, something encouraged to laugh at. \n\nAtleast this is my perspective", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjqui", "question": "The title says it all, i have been working as a backend developer for over a year now, recently my organisation offered to train and hire me on a devops role with a revised pay, my question is do you guys think it\u2019s an actual upgrade in terms of carrer progression ?", "comment": "The real question is: what is your end goal as a career path in your field?\n\nThey are kind of different in terms of paths, if they are training you to give you more responsibility and keep doing what you do as a dev, then yes an upgrade. But a devOps role is more of managing stuff for developers? Such as servers that host applications, setting up cloud functions, stuff like that. I don\u2019t have a ton of experience with it as I have been learning it slowly as work has been throwing that role to share between other devs. But essentially there wouldn\u2019t be as much coding if any, but database stuff make sense to know as usually backend and devOps can merge together.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upjub8", "question": "I feel like we all have that ONE concept that just didn\u2019t make any sense for a while until it was explained in a new way. For me, it was parameters and arguments. What\u2019s yours?", "comment": "Nested for loops. Someone just told me that clocks are a nested for loop. The second hand finishes, then the minute, then the hour. It's so simple and yet powerful", "upvote_ratio": 1170.0, "sub": "LearnProgramming"} +{"thread_id": "upjub8", "question": "I feel like we all have that ONE concept that just didn\u2019t make any sense for a while until it was explained in a new way. For me, it was parameters and arguments. What\u2019s yours?", "comment": "Object and classes", "upvote_ratio": 970.0, "sub": "LearnProgramming"} +{"thread_id": "upjub8", "question": "I feel like we all have that ONE concept that just didn\u2019t make any sense for a while until it was explained in a new way. For me, it was parameters and arguments. What\u2019s yours?", "comment": "Waiting for someone to post about recursion.", "upvote_ratio": 830.0, "sub": "LearnProgramming"} +{"thread_id": "upjvim", "question": "I know there is probably a reason I just can not figure it out.", "comment": "Therapists have to be paid, and they have expenses such as administration, rent, etc.\n\nWould you really want to get therapy from an untrained minimum wage worker?", "upvote_ratio": 280.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjvim", "question": "I know there is probably a reason I just can not figure it out.", "comment": "It takes a ton of money and training to become a good therapist.\n\nSo they charge a lot.", "upvote_ratio": 150.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjvim", "question": "I know there is probably a reason I just can not figure it out.", "comment": "Supply and demand. There\u2019s a high demand and relatively low supply. It\u2019s a free market with scarce resources so the equilibrium is a relatively high price.\n\nThere are many cheap/free resources that people underutilize because they either don\u2019t know about them OR they don\u2019t trust their quality because they\u2019re free.", "upvote_ratio": 100.0, "sub": "NoStupidQuestions"} +{"thread_id": "upjwf7", "question": "Hi all, my brother is 26M and had 4 nosebleeds in 24 hours, they are pretty heavy nosebleeds. We got covid this past Monday. So I don't think I can just take him to see our family doctor. Its also the weekend where the health services I know of are closed. We are in Canada. He's disabled in the legs as well so its difficult for me to drive him.\n\nIve put a humidifier in place for him since the first time and given him lots of water and fruit juice to replenish him. But it keeps on happening, could I please get some advice on what to do? I thought about calling 911 emergency but Im not sure what they can do for us since we have covid. I tried calling health hotlines over here but the wait is taking hours. Thank you for any help", "comment": "It's pretty common to get nosebleeds after an upper respiratory infection (like COVID) because the nasal mucosa is very irritated and prone to bleeding. If he gets a nosebleed, firmly pinch the nostrils shut and lean forward. Direct pressure is the best thing to get it to stop. Try putting a small amount of Vaseline gently into his nostrils twice a day. This helps keep the nasal mucosa moist and less likely to bleed. Seek urgent medical care if you can't get the nosebleed to stop after 30 minutes, or if he is feeling very dizzy, like he is going to pass out.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upjxxr", "question": "My partner (34M) was told in 2016 he may have mild crohns. After a recent exacerbation of symptoms over the last 3 months or so (frequent diarrhea, bloody stools, gut pain, upset stomach, nausea, throwing up) and having entire nights that he spends in the shower or close to the toilet, he finally went back and got another colonoscopy. The doctor was not able to identify anything. Said there was no sign of crohns and did not prescribe him anything for relief, rather said it ~might~ be IBS and to follow up in 2 months. What are next steps? I just want him to have relief and it\u2019s incredibly frustrating to wait around for these appointments and feel like it\u2019s to no avail. My stepdad gave me glycine powder and Lectin Shield supplements. Could these possibly help symptoms? I have the DC paperwork in front of me for any additional questions.", "comment": "IBS is super common. And it's by far the most common cause of chronic diarrhea and abdominal pain with a normal scope. However, your partner also needs a test for celiac disease, and probably an upper scope as well. \n\nIf that's normal, it's usually IBS, or something similar (we call it functional dyspepsia if it's over the stomach, for instance - but it's all just nerve problems with different parts of the GI tract).\n\nI usually have people try the low FODMAP diet first. Antispasmodics like Bentyl and Levsin work fairly well, too. Probiotics work for some people. In those with diarrhea or constipation most of the time, there are newer medicines like Amitiza, Linzess, and Viberzi that are pretty effective. There's a newer treatment for IBS (FDA approved, even) called IB stim that uses electrical stimulation. \n\nBut there's always lots of trial and error, since it's very different from one person to the next.", "upvote_ratio": 50.0, "sub": "AskDocs"} +{"thread_id": "upk026", "question": "My doc is on vacation and until she\u2019s back I need some help deciphering my blood test results not to go crazy from anxiety. 25F healthy otherwise, took initial blood test two months ago and it came back with elevated ALAT (120) with all other blood, hormone and electrolyte counts within the normal. So my doc ordered an abdominal ultrasound and nothing unusual was detected. She told me to come back next month and redo the blood test. Avoided alcohol, fatty foods and exercise for a week before the test as instructed. Was expecting the enzyme to go down. but the test came back even worse. Now I have 158 ALAT and 55 Gamma GT(slightly elevated normal is 45). Everything else is still in order. No symptoms of anything whatsoever.The only things I found googling this were of course hepatitis and liver cancer. Any other ideas maybe?\ud83e\udd1e\ud83c\udffc", "comment": "If your ultrasound was normal, I wouldn't worry about liver cancer. Let's get that one out of the way. \n\nYour best bet is to see a hepatologist. There are dozens and dozens of common causes of isolated ALT elevation. It takes a ton of blood work to rule things out. Causes run the gamut from infections, to autoimmune problems, to genetic problems, to medication side effects, etc. You really need someone who is used to the proper workup for this kind of thing and won't stab blindly, but also won't ignore this for months.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upk3ih", "question": "You're on a date and it's going really great. What can another person say to ruin it completely?", "comment": "Vaccines cause autism", "upvote_ratio": 350.0, "sub": "AskReddit"} +{"thread_id": "upk3ih", "question": "You're on a date and it's going really great. What can another person say to ruin it completely?", "comment": "\"Thanks for the ride but I have a date with someone else, I figured you wouldn't drive me if you knew I was going on a date with someone else and I really needed a ride.\" \n\nOnline dating, talked to her for a while, finally got the courage to ask her out and then she said that as we got there.", "upvote_ratio": 190.0, "sub": "AskReddit"} +{"thread_id": "upk3ih", "question": "You're on a date and it's going really great. What can another person say to ruin it completely?", "comment": "You looked better on Tinder.", "upvote_ratio": 170.0, "sub": "AskReddit"} +{"thread_id": "upk90a", "question": "So I wrote a program to write the different attributes like title, total number of comments, total upvotes, post body, author name of submissions in a CSV file.\n\nCode:\n\n class ptdata(Thread):\n \n def run(self):\n print('opening post_data csv')\n \n \n with open('post_data.csv', 'a') as f:\n headers = [\n 'ID', 'Date_utc', 'Upvotes', 'Number of Comments', 'Subthread name', 'Post Author'\n ]\n writer = csv.DictWriter(f,\n fieldnames=headers,\n extrasaction='ignore',\n dialect='excel')\n writer.writeheader()\n for post in subreddit.stream.submissions():\n #print(post.title)\n \n data = {\n \"ID\": post.id,\n \"Date_utc\": post.created_utc,\n \"Upvotes\": post.ups,\n \"Number of comments\": post.num_comments,\n \"Subthread name\": post.title,\n \"Post Auther\": post.author\n }\n \n writer.writerow(data)\n print('writing post row')\n # print(data)\n\nBut when I looked into the data it wrote:\n\n ID Date_utc Upvotes Number of Comments Subthread name Post Author\n 0 sw73ml 1645266563.0 2 NaN I fucking love cars, but actually driving, or ... NaN\n 1 sw73sa 1645266581.0 3 NaN It's my birthday!!!! NaN\n 2 sw73va 1645266588.0 3 NaN My bike just got stolen NaN\n 3 sw73x0 1645266593.0 4 NaN I feel like an outsider socially NaN\n 4 sw75gk 1645266754.0 10 NaN Hallo? Ist dis Bert und Ernie\u2019s BDSM emporium? NaN\n ... ... ... ... ... ... ...\n 7703 uou8wd 1652455643.0 2 NaN Holy crap I forgot how good\u2026 NaN\n 7704 uou8yy 1652455648.0 4 NaN Just got told to kill myself NaN\n 7705 uou8zv 1652455650.0 4 NaN hey YOU NaN\n 7706 uouagi 1652455771.0 1 NaN STEVEN UNIVERSE IS GREAT NaN\n 7707 uouaks 1652455780.0 1 NaN drinking water after chewing gum is the cold e... NaN\n\nit is something like this. As you can see it shows NaN in the number of comments and post author column. But When I looked at a different CSV file for which I used the same code, it had written the Author name but not the number of comments.\n\n&#x200B;\n\nwhy is this happening?\n\n&#x200B;\n\n&#x200B;\n\nAlso is there any way to get all that data back? because this bot is running for more than 3 months now and without this information this data is kinda useless", "comment": "You have typos, so your dictionary doesn't match the headers: `'Number of Comments'` != `'Number of comments'`, and `'Post Author'` != `'Post Auther'`", "upvote_ratio": 30.0, "sub": "LearnPython"} +{"thread_id": "upkbhu", "question": "I normally don't mind providing a range here as Im relatively confident about my worth, and have no hurry to switch jobs as I currently have a great job I love (even if I know I could be earning quite a bit more)\n\nBut this feels like a very one-way street as recruiters always reply only with a \"we can/can't afford that\". Leaving me with little to no information as to what the current job market salary range is like. And I hate how even if I'm the first one to ask the position's salary range, they'll turn around the question and ask for mine (expected salary) instead. \n\nCurious how others handle this question. Do most not mind? Am I in the wrong for feeling this way?\n\nAnd for those that agree, how do you insist you won't answer unless they provide a salary range? I can't figure out a way to do so without coming off as arrogant.\n\n**edit:** the question isn't so much about how to give a expected/desired salary range minimum to consider changing jobs. I already know my worth and can easily provide a range. My question is how do I go getting a position's salary range without giving my information (expected salary) essentially for free.", "comment": "Here you go:\n\nhttps://fearlesssalarynegotiation.com/salary-expectations-interview-question/\n\nRead that over and over until it is burned into your brain.\n\nNever specify a salary yourself. Always force them to make you an offer first.", "upvote_ratio": 90.0, "sub": "CSCareerQuestions"} +{"thread_id": "upkbhu", "question": "I normally don't mind providing a range here as Im relatively confident about my worth, and have no hurry to switch jobs as I currently have a great job I love (even if I know I could be earning quite a bit more)\n\nBut this feels like a very one-way street as recruiters always reply only with a \"we can/can't afford that\". Leaving me with little to no information as to what the current job market salary range is like. And I hate how even if I'm the first one to ask the position's salary range, they'll turn around the question and ask for mine (expected salary) instead. \n\nCurious how others handle this question. Do most not mind? Am I in the wrong for feeling this way?\n\nAnd for those that agree, how do you insist you won't answer unless they provide a salary range? I can't figure out a way to do so without coming off as arrogant.\n\n**edit:** the question isn't so much about how to give a expected/desired salary range minimum to consider changing jobs. I already know my worth and can easily provide a range. My question is how do I go getting a position's salary range without giving my information (expected salary) essentially for free.", "comment": "You can just flip the question on them. \"What has the team budgeted for this role?\" Most recruiters will give you a range and from there you can say \"$(highest number they gave you) is in line with what I'm looking for\" or \"That's below what I'm looking for\".", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upkcmj", "question": "like nobody will choose javascript for AI or Machine Learning everybody for this things chooses python, or nobody will choose Ruby to make game engine or OS everybody for this things chooses C++ or Rust", "comment": "Just because you can create a Web server in C doesn't mean that you should, just because you can create a DBMS in python, doesn't mean that you should.\n\nA butter knife, a filleting knife and surgery scalpel can all cut stuff, but you wouldn't make a sandwich with a surgical scalpel.\n\nEach of them has it's own use case, some overlap, but in general some are more popular in some areas than others.", "upvote_ratio": 260.0, "sub": "LearnProgramming"} +{"thread_id": "upkcmj", "question": "like nobody will choose javascript for AI or Machine Learning everybody for this things chooses python, or nobody will choose Ruby to make game engine or OS everybody for this things chooses C++ or Rust", "comment": "\"Turing completeness\" is an abstract theoretical framing of programming.\n\nBasically, according to computer science theory, since all programming languages are essentially just higher level layer abstractions of just logic gates, essentially, every programming language ever is basically doing the same thing as every other language.\n\nThat theoretical description of programming isn't that useful when you're talking about practical programming objectives. When it comes to practical programming, the availability of the existing compatible body of work is the determining factor of what language to choose for a new project. Sure you COULD recreate anything from one language in another given enough time and effort, but why bother? There's no need for that.\n\nSo since so much of our work is built upon existing standards, languages, and other infrastructure, there arises different niches for different \"technologies\".\n\nLast bit. Recall that C++ is a compiled language. I think theoretically it's possible to compile from one language to another. That's the idea with Pandas. Python using a C written library so those data calculations can be fast. Faster than if they used Python data structures. I suppose you could do AI linear algebra in JS; Computer scientists have been putting a lot of work into writing these virtual machines, and trans compilers and whatnot. Node, I hear is actually pretty bleeding edge efficient these days.", "upvote_ratio": 70.0, "sub": "LearnProgramming"} +{"thread_id": "upkcmj", "question": "like nobody will choose javascript for AI or Machine Learning everybody for this things chooses python, or nobody will choose Ruby to make game engine or OS everybody for this things chooses C++ or Rust", "comment": "Well not all languages can do the same things, or it is just much more complicated to do said thing. For example, C requires many more lines for certain functions than Python requires; however, C is more memory efficient and can run faster if it is fine tuned properly.\n\nFor experienced coders, using multiple languages and linking them together will prove to be faster than doing it all in one. Im sure others can give you far more examples like the one I mentioned if you\u2019re still confused", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upke4l", "question": "What's something that's hard to accept about yourself?", "comment": "There is a 99.9% percent chance that I myself am the reason I have so little friends.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upke4l", "question": "What's something that's hard to accept about yourself?", "comment": "Being so hideous and worthless as a person", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upke4l", "question": "What's something that's hard to accept about yourself?", "comment": "ive accepted everything i am totally ok with dying alone and loveless or whatever. Honestly not a big deal to me.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upke5n", "question": "How many people here are waiting for something to kick in? What is it?", "comment": "I'm waiting for my coffee to kick in so I can shower and go to target lol", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upke5n", "question": "How many people here are waiting for something to kick in? What is it?", "comment": "Antidepressants \ud83d\ude01", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upke5n", "question": "How many people here are waiting for something to kick in? What is it?", "comment": "Muscle relaxants & a sleeping pill (chronic pain patient)", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upkg92", "question": "Looking at getting a new car and found one that seems great in like every way, except it\u2019s manual and I have no idea how to drive manual. Is it difficult to do, I know it requires extra focus and you have to do more stuff with the knobs and shit while driving. What are the pros and cons of driving stick?\n\nI\u2019m just nervous, I don\u2019t know ant to buy a new car, then realize that I hate driving stick", "comment": "IMO it's easy. I learned back when I was 16, and it's one of those things you never forget how to do. Each car is a bit different, so it takes you like 2 minutes to feel out the clutch and the gear box, but then you can drive the car no problem.\n\nI strongly suggest learning how to drive one.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkg92", "question": "Looking at getting a new car and found one that seems great in like every way, except it\u2019s manual and I have no idea how to drive manual. Is it difficult to do, I know it requires extra focus and you have to do more stuff with the knobs and shit while driving. What are the pros and cons of driving stick?\n\nI\u2019m just nervous, I don\u2019t know ant to buy a new car, then realize that I hate driving stick", "comment": "Driving auto is easier, not gonna lie\u2026 but manual is not *that* hard. It\u2019s not difficult like technically challenging, it\u2019s just an extra thing to do while driving. The one part that takes a little finesse is easing into first gear from a dead stop (especially on a hill). The rest is just going through the motions.\n\nIMO your reason for choosing an auto over a manual should be \u201cI don\u2019t *want* to bother driving stick\u201d rather than \u201cI can\u2019t drive stick\u201d.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkg92", "question": "Looking at getting a new car and found one that seems great in like every way, except it\u2019s manual and I have no idea how to drive manual. Is it difficult to do, I know it requires extra focus and you have to do more stuff with the knobs and shit while driving. What are the pros and cons of driving stick?\n\nI\u2019m just nervous, I don\u2019t know ant to buy a new car, then realize that I hate driving stick", "comment": "If you otherwise very much like this car then I say it's definitely worth it to learn. It will probably take a while before it's comfortable but you should be able to learn the basics in under 2 weeks.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkgmf", "question": "What I mean is, is there a dedicated place / app / thing for people to go and participate on project, or maybe something where you get sent a project that others people already worked on, then you have a limited time until you must send it again to another person ?\n\nI feel like it could really help me learn the \"bulk\" of programming and not just the precise things I'm working on.\n\nAnd if you had one that's in python it would be best :D", "comment": "Like Github?", "upvote_ratio": 30.0, "sub": "LearnProgramming"} +{"thread_id": "upkh1e", "question": "Rich people of Reddit, what's the craziest/most unethical thing you've seen people in your circle spend money on?", "comment": "Paid a group of homeless guys to only use the bathroom on a competitors business. Eventually bought that place for a massive discount.", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upkh1e", "question": "Rich people of Reddit, what's the craziest/most unethical thing you've seen people in your circle spend money on?", "comment": "I know a guy who went to get a new drivers license and had to pay ~$100k in back parking tickets, then joked about it after.\n\nApparently he couldn't get a permit to park in front of his house, so he just did anyway, and accepted like a $200 fine everyday.", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "upkh1e", "question": "Rich people of Reddit, what's the craziest/most unethical thing you've seen people in your circle spend money on?", "comment": "[deleted]", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upkigo", "question": "like nobody will choose javascript for AI or Machine Learning everybody for this things chooses python or nobody will choose Ruby for game engines everybody for this things chooses C++ or Rust", "comment": "Turing completeness is a theoretical concept that very roughly means that language can represent logic for any program. It says nothing about pragmatic possibility and sanity of using all languages for all programs.", "upvote_ratio": 80.0, "sub": "AskProgramming"} +{"thread_id": "upkjhx", "question": "I'm having python project in my linguistics studies. The goal is to generate a string using a formal grammar like this example:\n\nS -> NP VP\n\nNP -> D N\n\nVP -> V NP\n\nVP -> V\n\nD -> the\n\nD -> a\n\nN -> cat\n\nN -> dog\n\nV -> chases\n\nV -> bites\n\nI've just started learning python, the course started not even two months ago so I'm still very new to it. But I'm thinking that I want the rules stored in a dict object. So far I've been able to create a dict with the items on the left and a list with the items on the right with this:\n\n def formal_grammar(file_name):\n S_dict = {}\n leftlist = []\n rightlist = []\n list_w_lists = [] \n \n with open(file_name, 'r', encoding='utf-8') as f:\n for line in f:\n item = line.strip('\\n')\n item = item.split(' -> ')\n S_dict[item[0]] = []\n leftlist.append(item[0])\n rightlist.append(item[-1])\n \n for word in rightlist:\n word = word.split()\n list_w_lists.append(word)\n print(S_dict)\n print(list_w_lists)\n\nThe results looks like this: S\\_dict == {'S': \\[\\], 'NP': \\[\\], 'VP': \\[\\], 'D': \\[\\], 'N': \\[\\], 'V': \\[\\]}\n\nlist\\_w\\_lists == \\[\\['NP', 'VP'\\], \\['D', 'N'\\], \\['V', 'NP'\\], \\['V'\\], \\['the'\\], \\['a'\\], \\['cat'\\], \\['dog'\\], \\['chases'\\], \\['bites'\\]\\]\n\nHow do I get the list objects as values to their right keys. The code should work with any formal grammar and then be able to generate the lexical items. I'm feeling really stuck on this, please help!", "comment": "I don't find your question to be well explained. \n\nWhat exactly are you trying to do? Please explain it in such a way as to make it understandable for someone who has no knowledge of linguistics or formal grammars (as this is a python subreddit, not a linguistics subreddit), making sure to include a concrete example of a desired output. \n\nMy best guess is, given a txt input eg. \n\n S -> NP VP\n NP -> D N\n VP -> V NP\n VP -> V\n D -> the\n D -> a\n N -> cat\n N -> dog\n V -> chases\n V -> bites\n\nyou want to progressively substitute the space-separated capitalised tokens with (presumably uniformly at random) chosen mappings. For example, starting with `S` (which I presume to be \"sentence\"), we might have\n\n S -> NP VP -> D N V NP -> the cat chases D N -> the cat chases a dog\n\nand so the desired output would be `'the cat chases a dog'`. Running it again might yield a different randomly chosen output.\n\nIs this correct?\n\nIf so, here is how I might approach this:\n\n from random import choice\n\n\n def get_grammar(file_name):\n grammar = {}\n with open(file_name) as f:\n for line in f:\n key, value = line.strip().split(' -> ')\n if key not in grammar:\n grammar[key] = []\n grammar[key].append(value)\n return grammar\n\n def sub_from_grammar(string, grammar):\n if string.islower():\n return string\n tokens = (choice(grammar[token]) if token in grammar else token for token in string.split())\n return sub_from_grammar(' '.join(tokens), grammar)\n\n\n formal_grammar = get_grammar('grammar.txt')\n print(sub_from_grammar('S', formal_grammar))", "upvote_ratio": 40.0, "sub": "LearnPython"} +{"thread_id": "upkm0n", "question": "I love music and have always wanted to play shows with a band but have always been nervous that I was not talented enough. Last night I finally played a show with people I love and songs I\u2019m proud of writing. It went really well and the 40 or so people who were there had an amazing time. This has been one of my major goals for a really long time and my fellow band members are super stoked about it. For some reason though, I just don\u2019t feel anything. No happiness or sadness. Why?", "comment": "I\u2019m the exact same way. \n\nThings don\u2019t hit me till like a year later. \n\nI think it has a lot to do with childhood and what kind of environment you were raised in. \n\nAlso could be an adhd things as well. My brain tends not to get super excited over things most people would be freaking out in. \n\nIt\u2019ll come tho :) be super proud of yourself you did amazing!", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkm0n", "question": "I love music and have always wanted to play shows with a band but have always been nervous that I was not talented enough. Last night I finally played a show with people I love and songs I\u2019m proud of writing. It went really well and the 40 or so people who were there had an amazing time. This has been one of my major goals for a really long time and my fellow band members are super stoked about it. For some reason though, I just don\u2019t feel anything. No happiness or sadness. Why?", "comment": "Sometimes when we achieve something we have been laboring for we feel weird because we have a hard time realizing that the struggle is over and it's time to build on the goal or find a new one. I graduate from nursing school today and feel similarly. You have been pouring your effort into achieving this and you don't have that goal to strive for anymore. That's ok. Move the goal post and reflect on how far you have come.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkme9", "question": "Was the bombing of Hiroshima and Nagasaki were entirely unnecessary and done for psychological damage?", "comment": "Whether the atomic bombs were \"necessary\" depends really on what you define as \"necessary.\" In an absolute sense, nothing is \"necessary\" \u2014\u00a0the United States could, for example, have just declared the war over and let Japan keep its occupied lands and that would be that. Obviously that was not what American policymakers (or the general population) thought was in line with American interests, and certainly the nations occupied and attacked by Japan would not have thought that was in their interests as well. \n\nSo the question to ask is what aims the US was pursuing, and whether those could have been achieved by other means. The US was explicitly asking for \"unconditional surrender,\" which it knew was a \"big ask,\" and in fact there were people within the US policy structure (and outside of it but important advisors, like Churchill), who thought that was unreasonable if their other goal was a swift conclusion to the war. Even these people, though, thought that the only \"condition\" acceptable was to be lenient with regards to the postwar disposition of the Emperor and the Imperial House. \n\nBut in any event, even with that caveat, there were certainly other options on the table if the US was concerned with avoiding the use of the atomic bombs (for whatever reason, including but not limited to the sparing of civilian life). I have [written at some length about these](http://blog.nuclearsecrecy.com/2015/08/03/were-there-alternatives-to-the-atomic-bombings/). Whether any of these would have guaranteed that the US would have achieved its aims (either unconditional surrender or almost-unconditional surrender) without the use of the atomic bomb eventually is unknown \u2014 we can't \"re-run\" history as if it were a simulation and see if the Japanese high command would have gone one way or the other under different circumstances. There are some who think that the war would have ended without the atomic bombings, but if you still had the Soviet invasion of Manchuria. There are many who think that Nagasaki was not that important for the Japanese surrender decision, and could have been avoided (this somewhat misses why Nagasaki was bombed, but this is a different question entirely; it was not about some calculated strategic move, but because the weapon was ready to be used, and the assumption was that many atomic bombs would need to be dropped before Japan surrendered \u2014\u00a0the plan was not \"bomb or invade\" but \"bomb _and_ invade\" and their surrender actually caught the US off-guard). I'm personally of the view that we can't really know these things, because the exact circumstances of what actually happened were so very overlapping and feel very \"contingent\" (could have gone many different directions), so it is pretty impossible to imagine we can \"isolate the variables\" this way. This does not mean that I think the atomic bombs were \"necessary,\" it just means, I don't think our knowledge of the situation is ever going to be advanced-enough to let us say if they were necessary or not in this specific definition \"necessary.\"\n\nThe historical fallacy of this entire line of thinking is that this is not how the US viewed the atomic bombs at all. It was not a big \"decision\" to use them, they were not in any way seeking to minimize civilian life, they were not in any way seeking to limit the destruction visited upon Japan prior to the use of the atomic bombs. They did not know the end of the war would happen in early August 1945, they did not expect the atomic bomb to just end it, they did not consider it as big of a \"moral\" question as we do today. The people in charge of the atomic bombing operation saw many good reasons for dropping the bombs and almost no good reasons for not dropping them. It was \"overdetermined\" in this respect. When we go back and ask whether they thought it was \"necessary,\" we are implying that they cared about that question, which they definitely did not. Maybe they should have \u2014\u00a0we are allowed to judge them, as people who are living in a world very much shaped by the consequences of their decisions and mindsets. But as a _historical_ question it is sort of moot for this reason, in my mind.\n\nI would not phrase the goal as \"psychological damage\" (the concept of long-term trauma from war was still in its infancy, and indeed part of the modern idea of PTSD comes out of studies of Japanese atomic bombing survivors done by the psychologist Robert Jay Lifton in the 1960s), but I would phrase it as a \"psychological impact,\" specifically on the Japanese high command and Japanese morale in general. The bombings were not done because they were _militarily_ all that important \u2014 what military/industrial targets they destroyed were explicitly chosen to \"justify\" using such a weapon on an urban target, but the urban target was the real target, because they wanted to \"showcase\" the power of the new weapon. They did this for multiple reasons, including impressing the Japanese high command and general population (with a hope it would lead to the acceptance of the Allied surrender terms), impressing the Soviet Union with this new weapon (with a hope that it would give the US an advantage in postwar negotiations and power struggles), and impressing the entire world with this new force to be reckoned with (with the hope that it might lead to a better organization of world affairs, possibly treaties to ban the manufacture of such weapons, and so on). Different individuals within the planning process leaned towards different motivations (and any individual could have multiple motivations; people are complex), but these three stand out as major \"hopes\" on which a proper \"understanding\" of the weapon\u00a0\u2014 understood by them as a truly horrific display \u2014\u00a0was necessary. Again, one can judge this through modern eyes (we do not have to accept the terms in which they saw things as being the best or only ones to see them), but it is important to make sense of what their actual goals were at the time, as opposed to imagined or after-the-fact rationales (e.g., a lot of ink is usually spilled explaining why the military base in Hiroshima was a significant target, but it is clear from the targeting documentation that the actual \"military value\" of Hiroshima was not something that mattered as much to the targeting planners as its size, geography, ability to showcase the power of the bomb, etc.).\n\nAnyway there is obviously much more that can be said about this topic, and you can find a lot of sub-discussions (was Nagasaki necessary? did the Soviet invasion have more to do with surrender than the bombs? why did they choose Hiroshima and Nagasaki specifically? etc.) in the FAQ and /r/AskHistorians archive (most easily searched through a limiting Google query in my experience).", "upvote_ratio": 70.0, "sub": "AskHistorians"} +{"thread_id": "upkmof", "question": "[SERIOUS] What tips would you give to someone who is about to move out from his parents to live alone for the first time?", "comment": "Get a calendar and list your bills on it.", "upvote_ratio": 80.0, "sub": "AskReddit"} +{"thread_id": "upkmof", "question": "[SERIOUS] What tips would you give to someone who is about to move out from his parents to live alone for the first time?", "comment": "lock your doors \n\n\nget home-lock your doors \n\nget in the car-lock your doors\n\npeople come over after they leave check to make sure windows are closed and locked\n\nhave a alarm for your door or se sense of security", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "upkmof", "question": "[SERIOUS] What tips would you give to someone who is about to move out from his parents to live alone for the first time?", "comment": "Buy a plunger. Get one before you need one, not when you need one.\n\nPay close attention to your bills, at least for the first few months, so you can keep track of where your money's going and spot if the electric company has forgotten to bill you, before it becomes a nasty surprise.\n\nThe plunger advice also applies to anything else that would be a real pain to have to pick up when you need it, such as basic medicines/first aid kit, spare toilet roll, and some sort of instant food such as cup ramen. \n\nTake some time to go through your parents' house looking at everything you've taken for granted because it was always handy.\n\nYou'll probably fall down on this one (god knows I do), but it's easier to keep a house clean than to clean a messy house. Try to at least keep it in a state where you wouldn't be too embarrassed to bring home a hot girl/boy/etc from a night out.", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upkq5t", "question": "When I see people posting selfies on Instagram, I noticed that some girls would hold the phone right up to their face, obstructing it from the perspective of the viewers, I would also notice that some of them go back and forth between selfies with hidden face and selfies without hidden face.", "comment": "Some angles make your face look weird and your body look good. Covering your face with the phone (or a hand, or a sticker, etc) hides that while still showing the rest of the picture.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkqek", "question": "What\u2019s the dumbest reason someone stopped talking to you?", "comment": "Idk I was never given a reason, everyone just disappeared slowly", "upvote_ratio": 140.0, "sub": "AskReddit"} +{"thread_id": "upkqek", "question": "What\u2019s the dumbest reason someone stopped talking to you?", "comment": "I finished my homework early and decided to hand it to my teacher. My teacher said I can give it another day. She didn't ask others to submit it nor did she praised me. For some reason my friend got mad at the fact that I wanted to hand in my homework early, proceeded to stop talking to me and made the whole class hate me. I was bullied for a week straight then things went back to normal - everyone acted like nothing happened.", "upvote_ratio": 100.0, "sub": "AskReddit"} +{"thread_id": "upkqek", "question": "What\u2019s the dumbest reason someone stopped talking to you?", "comment": "they started hanging out w wealthy people", "upvote_ratio": 80.0, "sub": "AskReddit"} +{"thread_id": "upkqji", "question": "I\u2019ve heard both terms used but I was wondering if they were the same thing, since they both mean being attracted to both genders.", "comment": "I\u2019m bisexual but not pansexual. \n\nBisexual: I\u2019d date either man or woman, but I\u2019m not attracted to say, trans people or non-binary, etc. \n\nPansexual would date anyone regardless of their gender identity.", "upvote_ratio": 80.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkqji", "question": "I\u2019ve heard both terms used but I was wondering if they were the same thing, since they both mean being attracted to both genders.", "comment": "Bi girl here...\n\nPan people have zero gender preference, would date people regardless of gender, while bi people often have specific preferences.\n\nAlso, omni people are basically pan, but have a preference for a specific gender.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkwn6", "question": "people with depression, what is that one thing keeping you going?", "comment": "That there are people who love me and rely on me. I'd never want to hurt them or have them suffer the aftermath of me taking my own life, so I continue existing for them despite having no intrinsic desire to live for myself.", "upvote_ratio": 390.0, "sub": "AskReddit"} +{"thread_id": "upkwn6", "question": "people with depression, what is that one thing keeping you going?", "comment": "Drugs", "upvote_ratio": 370.0, "sub": "AskReddit"} +{"thread_id": "upkwn6", "question": "people with depression, what is that one thing keeping you going?", "comment": "I just don't have the balls to actually do it.", "upvote_ratio": 250.0, "sub": "AskReddit"} +{"thread_id": "upkx4b", "question": "why is it sexist to say keep your legs closed to a girl if you don't want a baby but it isn't to say keep your dick in your pants to a man if you don't want a baby", "comment": "they\u2019re both generally poor advice. think abt it this way. would you tell someone wanting to avoid car accidents \u201cjust don\u2019t drive\u201d? it\u2019d be technically correct, but it\u2019s glaringly obvious to the point of uselessness, and cars are just part of some people\u2019s lives that they won\u2019t give up. we all take _some_ risks. youd tell them to drive defensively and be alert and not text and stuff, or maybe even thats still too basic.\n\nneither remark is sexist \u201cin a vacuum\u201d, but human communication doesnt exist \u201cin a vacuum\u201d, and many people saying \u201cclose your legs\u201d have a sexist worldview where women are promiscuous for having sex and are 100% responsible for everything baby-related. i\u2019ve often seen the \u201cdick\u201d one used as a _counter_ to the \u201cclose legs\u201d one, trying to _even_ the field.", "upvote_ratio": 100.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkx4b", "question": "why is it sexist to say keep your legs closed to a girl if you don't want a baby but it isn't to say keep your dick in your pants to a man if you don't want a baby", "comment": "It seems like the sexism applies to the first bc of the long history of double standard slut shaming, though both are wrong imo. Babies should not be seen as a punishment for having sex. Instead, comprehensive sex education and affordable access to all the various birth control options should be the standard.", "upvote_ratio": 100.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkx4b", "question": "why is it sexist to say keep your legs closed to a girl if you don't want a baby but it isn't to say keep your dick in your pants to a man if you don't want a baby", "comment": "I dont see how either of them are sexist\n\nSeems like common sense to me, takes two for tango", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upkxy7", "question": "What's hard to do when you're a long way from home?", "comment": "Go home", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "upl00p", "question": "Why did denazification work when we're always told that forcing someone to hear something they don't want to just breeds resentment?", "comment": "When you can't openly talk positively about an ideology or openly display symbols of that ideology, it becomes really hard to convince new people to believe in that ideology. Some of the less intense believers will also give up on the ideology once they see how strongly society is against them. Without a stream of new recruits, the ideology dies off as its believers die off.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upl02h", "question": "I haven't heard anyone talk about it recently, but Wikipedia talks about it in the present tense.", "comment": "As far as Myanmar goes, people pretty much stopped talking about the Rohingya once the military coup happened. There are stories about it here and there but the coup, possible civil war and Suu-Kyi\u2019s detention are gonna be 99% of the news you\u2019re getting out of there.\n\nIt\u2019s still happening and a very serious issue but it\u2019s a lot harder to get accurate information when the military is running the country and shutting down media outlets and other avenues of communication, either by pressure or outright use of force.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upl15m", "question": "What is something so near yet so far?", "comment": "Proxima Centauri.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upl15m", "question": "What is something so near yet so far?", "comment": "The future", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upl19a", "question": "What commercial have you quoted the most?", "comment": "Look up the British \"dime\" chocolate bar adverts from the 1980s. There's one that mentions armadillos. Anything that happens to be crunchy on the outside, soft in the inside and one of us is duty bound to shout ARMADILLOS afterwards.", "upvote_ratio": 30.0, "sub": "ask"} +{"thread_id": "upl19z", "question": "Every baby I've seen is very curious and observant by nature, they literally learn a Language just by listening to others, so is there anything inherent in the person's brain that makes them stupid when fully grown, or is it just because of the type of parents and environment?", "comment": "Yes.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upl3lt", "question": "What irritiates you the most??", "comment": "In day to day life, people who have speakerphone conversations in public - fuck off", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upl77b", "question": "What is your favorite book quote about love?", "comment": "first to admit I never read the book it comes from, Matthew Stover's novelization of Revenge of the Sith (I think). but the quote lives in my heart. \n\n\n\"The brightest light casts the darkest shadow. The dark is generous and it is patient and it always wins \u2013 but in the heart of its strength lies its weakness: one lone candle is enough to hold it back. Love is more than a candle. Love can ignite the stars.\" \n\n\nlike. damn.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upl78m", "question": "No even a year and it turned to shit...", "comment": "Me too! Though I just turned 40. I had the nerve to tell my wife she was out of line after she bought a $1,400 bottle of Belvedere at a club on my 40th birthday, despite me specifically asking her not to, and then screaming to all of my friends (and my sister) that I am a piece of shit and would probably not even fuck her later.\n\nI have come to realize that I cannot fix her problems, despite my best efforts and my sincere desire to do so. You will come to that realization as well. Moving on is not easy, but it is sometimes necessary.", "upvote_ratio": 30.0, "sub": "AMA"} +{"thread_id": "upl8wb", "question": "I love the girlfriends I have now, but I tend to struggle to find other girls interested in deep discussion when it comes to philosophy, science, and history. Most of my male friends happily discuss these topics with me, but I am longing for female perspective. Should I just keep looking online? I also find that it is hard to keep in touch with people online if they are not genuinely interested in a meaningful friendship.", "comment": "Take a university course?", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplaex", "question": "Why don\u2019t I know anyone who died from unwashed hands?", "comment": "Because people wouldn't say \"they died from unwashed hands,\" they'd say \"they died from [insert infectious disease here].\"", "upvote_ratio": 120.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplaex", "question": "Why don\u2019t I know anyone who died from unwashed hands?", "comment": "there are many forms of bacteria which themselves cause a myriad of different illnesses. death would be attributed to the illness rather than lack of hand washing", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplaex", "question": "Why don\u2019t I know anyone who died from unwashed hands?", "comment": "What you hear about are people dying of contagious diseases, often complications of some larger one. E.g. a patient who \u201cdied of AIDS\u201d who really died of pneumonia as a complication of a cold that their body couldn\u2019t fight off (because of the AIDS) that they contracted from a door knob touched by a person that didn\u2019t wash their hands and neither did they.\n\nBy the time you get to the actual dying, it\u2019s usually impossible to trace it back to the actual cause like a specific person not washing their hands.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplc1d", "question": "I don't like the heat, I never have. It's uncomfortable, itchy, and it gives me sweat hives. However, I'm always wearing a hoodie regardless of weather (Dad claims it spawned from childhood self-image issues) The one I wear most days is black. Whenever I go out in the summer in a t-shirt I start sweating within minutes. But if I'm wearing my hoodie I hardly even feel the heat as is and can spend hours outside before I even need water.", "comment": "Could be that is baggy and not close to your skin so it doesn\u2019t make you sweaty and air can still move around in it. \n\nThat\u2019s also wild for your dad to say. You could just leave it as \u201cyou feel comfortable in a hoody\u201d", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplcwk", "question": "What's a good name for a pet but absolutely terrible to name a human?", "comment": "Fred", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplcwk", "question": "What's a good name for a pet but absolutely terrible to name a human?", "comment": "Mr. Chonkers", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "uplcwk", "question": "What's a good name for a pet but absolutely terrible to name a human?", "comment": "poopie", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upldbv", "question": "Janitors of Reddit, What is the worst thing you have found that someone left behind?", "comment": "Found this half finished problem on a chalk board once and solved that shit", "upvote_ratio": 160.0, "sub": "AskReddit"} +{"thread_id": "uplgbe", "question": "What\u2019s a phrase or saying that everyone knows in your region/country but no one has heard outside?", "comment": "Jeet meaning did you eat", "upvote_ratio": 60.0, "sub": "AskReddit"} +{"thread_id": "uplgbe", "question": "What\u2019s a phrase or saying that everyone knows in your region/country but no one has heard outside?", "comment": "Translated means \u201cyou step on our eyeballs\u201d. Is a formal way of saying \u201clove to have you over\u201d", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "uplgbe", "question": "What\u2019s a phrase or saying that everyone knows in your region/country but no one has heard outside?", "comment": "I don't know what the current ones are but as a kid it was bodacious and hella", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upli96", "question": "I habitually change my tampon every time I use the bathroom. I went to the bathroom and attempted to change my tampon per usual, but didn\u2019t feel the string. I was at a bar, 3 drinks in, and it was a little hectic so I thought maybe I had already taken it out, but I\u2019m not sure. I did not put a new one in. \nI really think that it was still in there because for several hours after realizing I couldn\u2019t locate it, and not having a pad or putting a tampon in, my underwear and pants were unscathed. \nWhen I got home I felt around for it and couldn\u2019t locate anything. It is now the following afternoon, and I tried to feel around for it again, and I\u2019m still coming up with nothing. What else can I do? I am highly considering going to an urgent care facility but I do not want to go through the trauma of an unknown person poking around in there if I can avoid it. I am a survivor of rape and terrified that I might have to do this.", "comment": "So, first things first. Relax! It's either been removed by you or is still in your vagina. There's no other option.\n\nDo you have a bath? Have a nice warm soak and concentrate on relaxing your muscles. Don't even think about routing around yet.\n\nOnce you're nice and relaxed, bear down slightly as if you're trying to poo. This engages your pelvic floor muscles and will squeeze your vagina too.\n\nNow for the actual searching. It depends on what's easiest for you. You can stay in the bath lying down, or out of the bath in a deep squat, sitting on the toilet, or with one foot on the bath and the other on the floor. You'll need to insert 1 or 2 fingers into your vagina, the aim is to search everywhere rather than actively trying to pull anything out. Move in slow sweeping motions and try to feel all the way up to your cervix (it'll feel firmer than the surrounding tissue, and a bit like a donut). \n\nIf you find it, great! Now's the time to pull. If you don't and you've definitely reached your cervix then the likelihood is there isn't one there. The cervix is never open enough for a tampon to get through, so rest assured it won't go anywhere else.\n\nIf you want some reassurance then that may be the time to go to the clinic. The examination will be very fast as once a speculum is in and open it will be very obvious if there's a tampon or not. I wouldn't expect the speculum to be in any longer than 30 seconds. \n\nI hope this is helpful.", "upvote_ratio": 70.0, "sub": "AskDocs"} +{"thread_id": "upli96", "question": "I habitually change my tampon every time I use the bathroom. I went to the bathroom and attempted to change my tampon per usual, but didn\u2019t feel the string. I was at a bar, 3 drinks in, and it was a little hectic so I thought maybe I had already taken it out, but I\u2019m not sure. I did not put a new one in. \nI really think that it was still in there because for several hours after realizing I couldn\u2019t locate it, and not having a pad or putting a tampon in, my underwear and pants were unscathed. \nWhen I got home I felt around for it and couldn\u2019t locate anything. It is now the following afternoon, and I tried to feel around for it again, and I\u2019m still coming up with nothing. What else can I do? I am highly considering going to an urgent care facility but I do not want to go through the trauma of an unknown person poking around in there if I can avoid it. I am a survivor of rape and terrified that I might have to do this.", "comment": "The tampon cannot go through the opening of the cervix. If you are able to feel all the way through your vagina to your cervix, and you feel no tampon, it's very likely that you simply took it out without remembering it. Of course, the only way to know for sure is direct visualization. If you do need to do this just to be sure, I recommend that you tell the provider up front that you have a history of sexual trauma so they can take extra care during the exam to make sure you feel comfortable and in control.", "upvote_ratio": 50.0, "sub": "AskDocs"} +{"thread_id": "uplib5", "question": "What name would you give a phobia of things that keep falling over no matter how many times you try to balance them upright?", "comment": "Weeblewooblephobia", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "uplib5", "question": "What name would you give a phobia of things that keep falling over no matter how many times you try to balance them upright?", "comment": "LGBTphobiabia because he refuses to be straight...", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplmts", "question": "Why do aliens depicted in movies almost always look like reptiles of some sort?", "comment": "To be the opposite of us mammals, I'd wager. The jagged crudeness of their hard skin. The thin oval pupils. Adds that sort of dinosaur fear factor into it all, i'd wager. Something along those lines.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplpxt", "question": "What school tip can be a lifesaver?", "comment": "Actually go to class.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplpxt", "question": "What school tip can be a lifesaver?", "comment": "one school tip that can be a lifesaver is to always stay organized. having a plan and knowing where everything is can help you avoid last minute scrambling and stress.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplpxt", "question": "What school tip can be a lifesaver?", "comment": "This is a simple one, just be super nice to the teachers and not a trouble maker and they will treat you like a god compared to your classmates, one of my teachers trusts me with her ID and sends me to the printer when I could be doing something bad with it.", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "uplqz2", "question": "Do people upvote questions they like or respond to on this sub?", "comment": "I upvote questions that make me say \"oh that's an interesting question\" especially if it is novel for this sub. There is a lot of repetition here, so when someone asks something that hasn't been asked before i think that deserves extra attention and visibility.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplqz2", "question": "Do people upvote questions they like or respond to on this sub?", "comment": "Obviously some people do, as lots of questions are upvoted.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplqz2", "question": "Do people upvote questions they like or respond to on this sub?", "comment": "I usually upvote questions that I think lots of people are asking themselves and could benefit from the answers", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplrxi", "question": "What's the most extreme form of bdsm you've ever seen anyone indulge in?", "comment": "I knew a couple that were into suspension and crosses. She came to work covered in bruises, and she would proudly tell us about what instrument caused each bruise. They were super open about everything.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplrxi", "question": "What's the most extreme form of bdsm you've ever seen anyone indulge in?", "comment": "I'd love to share but I'd get so much hate it's not worth it", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "uplrxi", "question": "What's the most extreme form of bdsm you've ever seen anyone indulge in?", "comment": "Being hung by fishhooks always raised an eyebrow for me.\n\nI tried shibari once, that was as far as I needed to go :)", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upltcr", "question": "What the dog doin?", "comment": "Hey Vsauce, Michael here.\n\nWhat is, the dog doing?", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upltcr", "question": "What the dog doin?", "comment": "Being the best pupper he can be!", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upltcr", "question": "What the dog doin?", "comment": "Annoying the other dog Ladybird. He's much younger and loves to play", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplufs", "question": "What dream did you have that made you wanna revisit but your alarm ruined it, and have been waiting for the that sequel?", "comment": "a dream where i felt so happy that i woke up feeling happy, and it made the rest of my week.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplvad", "question": "What is your favorite thing about Reddit?", "comment": "How we gang up on people who don't agree with us.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplvad", "question": "What is your favorite thing about Reddit?", "comment": "that there are discussions about every aspect of life on this planet, and it's all anonymous.", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplvad", "question": "What is your favorite thing about Reddit?", "comment": "The anonymity", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "uplwkv", "question": "Why is India the Mecca of scammers?", "comment": "I'm guessing you're American? To make scamming worth it you have to be poor (for the most part) and if you're scamming Americans then you need to speak English.\n\nSo the most scammers are going to come from countries with a lot of English speakers who are poor. Countries like India and Nigeria fit that bill.", "upvote_ratio": 90.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplwye", "question": "Redditors of Reddit, what is the funniest number?", "comment": "What's funnier than 24? 25", "upvote_ratio": 70.0, "sub": "AskReddit"} +{"thread_id": "uplwye", "question": "Redditors of Reddit, what is the funniest number?", "comment": "3", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplwye", "question": "Redditors of Reddit, what is the funniest number?", "comment": "[3](https://youtu.be/F6_jZEgQSp0&t=3m36s)", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplxak", "question": "What are some of the most overused phrases and responses you\u2019ve come across on Reddit?", "comment": "This", "upvote_ratio": 50.0, "sub": "AskReddit"} +{"thread_id": "uplxak", "question": "What are some of the most overused phrases and responses you\u2019ve come across on Reddit?", "comment": "My dog stepped on a bee.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplxpm", "question": "In the Adam West \"Batman\" series, why was there a specific (red) phone that they used to call him - I mean was that the only phone that his number would work from?", "comment": "There was no number. \n\nThe phones were actually wired directly together. It was more like an intercom - but through the city. Those kinds of phones did exist, but I don't know if there is any application for them anymore.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplxpm", "question": "In the Adam West \"Batman\" series, why was there a specific (red) phone that they used to call him - I mean was that the only phone that his number would work from?", "comment": "That would be a \u201chotline\u201d or a phone that is only wired to one specific other phone in a direct connection. There is no number, or if it\u2019s a small closed system it\u2019s like you dial 1 for the first phone connected and 2 for the second.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplxpm", "question": "In the Adam West \"Batman\" series, why was there a specific (red) phone that they used to call him - I mean was that the only phone that his number would work from?", "comment": "There used to be a \"Red Telephone\" that directly connected the White House to the Kremlin in the USSR. While this was a metaphor for having a phone that contacted the Russians (the \"Reds\" due to the color of their flag), pop culture at the time latched onto the idea of a special red telephone that directly connected two important groups. \n\nSo in this case, the idea was that Commissioner Gordon had a special phone that could only reach Batman, that Batman had set up a special phone that no one else could access, a private line.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplyle", "question": "I was always taught to hit my dog if it being bad but I don\u2019t know if it works", "comment": "Dog should respect you not be afraid of you.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplyle", "question": "I was always taught to hit my dog if it being bad but I don\u2019t know if it works", "comment": "No", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplyle", "question": "I was always taught to hit my dog if it being bad but I don\u2019t know if it works", "comment": "No. Would you respond well being hit for being bad?\n\nPraise is 100x more effective and will lead to a much better relationship with your dog.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "uplzk9", "question": "What do you do to motivate yourself?", "comment": "Nothing", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "uplzk9", "question": "What do you do to motivate yourself?", "comment": "Look at the failure of others", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplzk9", "question": "What do you do to motivate yourself?", "comment": "Clean my room/house. I find doing this small thing helps me go on to do other things.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "uplzqe", "question": "Not getting married means you are considered a single income. In CA, there are many breaks and financial assistance if you make under a certain income. For example: if you want to send your kid to college, it would be more beneficial to report a lower income in order to qualify for FASFA.\n\nAre there more financial benefits to get married or not?", "comment": "I think that in most situations, your incomes are averaged or various breakpoints are doubled, so it's hard to lose out, particularly if you and your spouse have very different incomes. But I'm not sure if that's co sistent across the board.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upm0e9", "question": "Introverts of Reddit, how do you feel about the idea of being \"adopted\" by an extrovert?", "comment": "Sounds demeaning.", "upvote_ratio": 240.0, "sub": "AskReddit"} +{"thread_id": "upm0e9", "question": "Introverts of Reddit, how do you feel about the idea of being \"adopted\" by an extrovert?", "comment": "Mandatory not me, but my best friend. \nShe is the introvert. We met 9 years ago. I said hi she barely said anything. I assumed I befriended her. I started to invite her partying and reunions at my place. Little by little she started to open up. We share hobbies. But most of the times I did the taking. (Alone or with more people. \n\nShe once told me she liked it that way. She gets to do everything she wants without dealing with people. She once call me her \u201csocial shield\u201d. \n\nAnyways. We are getting married soon. \n\nBtw, she says hi, Reddit. (She just nodded)", "upvote_ratio": 170.0, "sub": "AskReddit"} +{"thread_id": "upm0e9", "question": "Introverts of Reddit, how do you feel about the idea of being \"adopted\" by an extrovert?", "comment": "What do I get out of it", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upm1fe", "question": "If you are able to transform into an animal and then hurt your tail, do you still feel the pain when you transform back to your human form?", "comment": "I mean we still have a tail bone, so", "upvote_ratio": 40.0, "sub": "AskReddit"} +{"thread_id": "upm1i2", "question": "At least in the United States, the news talks about it all the time and uses it as a gauge for like, if we're heading towards a recession and stuff like that. Doesn't the stock market only apply to those who actually *invest* in the stock market? I'm pretty sure most people can't do that. So if my assumption is true, why should we care if the rich become slightly less rich if we're all struggling regardless?", "comment": "Many many people have their retirement plans tied to the stock market.\n\nYou don't have to be rich to invest in the stock market.", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upm2b9", "question": "What product do you absolutely stand behind, and buy with your own money?", "comment": "Vans. You can't go wrong with them.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upm2b9", "question": "What product do you absolutely stand behind, and buy with your own money?", "comment": "Dumb TVs", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upm2b9", "question": "What product do you absolutely stand behind, and buy with your own money?", "comment": "Samsung. They made my TV(11 years old and still works), all my phones, and my tablet that despite being 7 years old still works but can't be updated so not many apps still work with it. I've never had a problem with any of them.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upm2d1", "question": "Dear Redditors, what's the weirdest situation you have experienced while having a driving lesson?", "comment": "When I was 16 and on my last practice session, I went through the whole thing rather flawlessly I thought, and then at the very end my driving instructor mentioned something about how the dead animal we\u2019d seen on the side of the road had been sad.\n\nAnd I was like\u2026what dead animal??\n\nHe looked baffled. He told me we\u2019d had a whole conversation about the animal while I was driving, and I had also been sad. I literally remember none of this.", "upvote_ratio": 30.0, "sub": "AskReddit"} +{"thread_id": "upm2tb", "question": "A friend of mine (32M), 260lbs, developed this eye infection since\nyesterday we are currently looking for an ophthalmologist\nbut we would like some advice, thanks so much.\n\nhttps://imgur.com/gallery/Y2ZnGpn", "comment": "Appears to be a chalazion and as a result, swollen eyelids.", "upvote_ratio": 30.0, "sub": "AskDocs"} +{"thread_id": "upm548", "question": "what were spreadsheets like before Excel?", "comment": "Before Excel we had Lotus123 and Supercalc - other spreadsheet programs", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upm548", "question": "what were spreadsheets like before Excel?", "comment": "Very similar to Excel, but not necessarily with as many features, and sometimes with a textbased user interface, rather than a GUI.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upm8cc", "question": "Elon Musk sounds like a cheap deodorant. What other famous names sound like products?", "comment": "Bezos sounds like cheap gross drugs no one wants to use but everyone has in their cabinets.", "upvote_ratio": 150.0, "sub": "AskReddit"} +{"thread_id": "upm8cc", "question": "Elon Musk sounds like a cheap deodorant. What other famous names sound like products?", "comment": "Dua Lipa \n\n*pour femme*", "upvote_ratio": 130.0, "sub": "AskReddit"} +{"thread_id": "upm8cc", "question": "Elon Musk sounds like a cheap deodorant. What other famous names sound like products?", "comment": "brad pitt", "upvote_ratio": 90.0, "sub": "AskReddit"} +{"thread_id": "upm8il", "question": "Why are cotton-balls fuzzy and jeans aren't, if they're both made of cotton?", "comment": "Same reason you probably don't want to wipe your ass with notebook paper even though it's made from trees just like Charmin.\n\nDifferent processes go into making these products, they are treated and managed differently to get the end result.", "upvote_ratio": 80.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmaqq", "question": "Like how far high is owned? Like hypothetically, could one build a 100 feet tower with no problem? If not what is the cut off of ownership? This has been on my mind for months now", "comment": "This is a big: It depends.", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmaqq", "question": "Like how far high is owned? Like hypothetically, could one build a 100 feet tower with no problem? If not what is the cut off of ownership? This has been on my mind for months now", "comment": "In many places, you own all the way down to the center of the earth and all the way up to space. \n\nBut just because you own something, doesn\u2019t mean you can do what you want with it!\n\nThink about it. Just because you own a dog, doesn\u2019t mean you can abuse it. Just because you own a stereo, doesn\u2019t mean you can blast it at 3am. \n\nAnd owning land doesn\u2019t give you the right to dig a mine shaft or build a tower. Those rights are determined by your country/state/province/city laws and regulations. \n\nThe applicable laws are probably aviation laws, building zoning regulations, mining laws, easements, nuisance laws, migratory bird and other environmental protection laws, and many more. \n\nTo drive the point home: ownership doesn\u2019t mean a free pass to build whatever.", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmaum", "question": "Is this because they are too associated with Christianity, and so Jews stopped using them over time? Or were they even banned from using them by Christians?\n\nOr is it that the Anglicised versions of these names are ones popular in Britain and America, while there are non-Anglicised versions more popular in Israel and amongst the Jewish diaspora? (Like Simeon/Shimon)\n\nAm I wrong about the Jewish nature of some of these names? The apostle Philip, for example, I've not listed as that's actually a Greek name. Same with Paul (Saul is of course a fairly common Jewish name).", "comment": "u/The_Manchurian\n\nThis isn\u2019t really a history question, it\u2019s a language question. \n\nJonathan is a common Jewish name, in the form of John for one example, but also (in Israel especially) forms like Yonaton; it is in fact one of the most common boy\u2019s name in Israel. This is the pattern for the rest of the names, Mary - Miriam/Maryam and that sort of thing, and is in turn the second most common girl\u2019s name in Israel. Andrew is Greek, not Hebrew or Aramaic and Mark/Markus is from Latin and not Hebrew or Aramaic. Elizabeth is still very much in use, sometimes in its original Hebrew Elisheva. Mathew is also a common Jewish name, sometimes in the form Mattityahu.\n\nSorry, but this is a question has an incorrect premise, and I\u2019m not sure how you came to believe it.\n\nhttps://www.chabad.org/library/article_cdo/aid/3825225/jewish/Popular-Jewish-Hebrew-Boy-Names.htm\n\nhttps://www.kveller.com/the-22-most-common-jewish-baby-names-in-israel/\n\nhttps://www.etymonline.com/word/andrew\n\nhttps://www.etymonline.com/word/mark", "upvote_ratio": 140.0, "sub": "AskHistorians"} +{"thread_id": "upmcdv", "question": " I am a big classic rock fan, I love bands like Beatles, Zeppelin, Floyd, Cream etc. \nSo I just want to ask the folks who have lived through such amazing music, what is your experience as well as memory of it?", "comment": "Who says I'm done, yet?", "upvote_ratio": 70.0, "sub": "AskOldPeople"} +{"thread_id": "upmdwo", "question": "Coworker moved to an area where the his small development is in the middle of two much, much larger developments. Thanks to poor/non-existent planning, there is only the original two-lane road (one lane going in each direction) that has heavy and constant traffic after the developments were built.\n\nCoworker mentioned he got yelled at by a car that passed him while cycling on this road, which has a 55mph speed limit in the middle stretch although it drops to 45mph at the ends where the large developments are. I said that it's probably not a good idea to cycle there from a safety prospective, and that's it's also a dick move to cycle down that road since he's going maybe 20mph while the limit is 55mph and also because it's one lane with heavy traffic so cars stuck behind him can't easily pass him. Coworker disagreed and said it was within his right to cycle there and that cars stuck behind him should learn patience as waiting for a cyclist is no different than waiting for a red light or for a pedestrian to cross\n\nWhat do you think?", "comment": "Check your local laws. That's dangerous for all involved.\n\nYeah, his attitude shows it's a planned pleasurable dick move.", "upvote_ratio": 90.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmdwo", "question": "Coworker moved to an area where the his small development is in the middle of two much, much larger developments. Thanks to poor/non-existent planning, there is only the original two-lane road (one lane going in each direction) that has heavy and constant traffic after the developments were built.\n\nCoworker mentioned he got yelled at by a car that passed him while cycling on this road, which has a 55mph speed limit in the middle stretch although it drops to 45mph at the ends where the large developments are. I said that it's probably not a good idea to cycle there from a safety prospective, and that's it's also a dick move to cycle down that road since he's going maybe 20mph while the limit is 55mph and also because it's one lane with heavy traffic so cars stuck behind him can't easily pass him. Coworker disagreed and said it was within his right to cycle there and that cars stuck behind him should learn patience as waiting for a cyclist is no different than waiting for a red light or for a pedestrian to cross\n\nWhat do you think?", "comment": "No. But it is a dick move to yell at someone for operating a vehicle in a legal and safe manner.", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmdwo", "question": "Coworker moved to an area where the his small development is in the middle of two much, much larger developments. Thanks to poor/non-existent planning, there is only the original two-lane road (one lane going in each direction) that has heavy and constant traffic after the developments were built.\n\nCoworker mentioned he got yelled at by a car that passed him while cycling on this road, which has a 55mph speed limit in the middle stretch although it drops to 45mph at the ends where the large developments are. I said that it's probably not a good idea to cycle there from a safety prospective, and that's it's also a dick move to cycle down that road since he's going maybe 20mph while the limit is 55mph and also because it's one lane with heavy traffic so cars stuck behind him can't easily pass him. Coworker disagreed and said it was within his right to cycle there and that cars stuck behind him should learn patience as waiting for a cyclist is no different than waiting for a red light or for a pedestrian to cross\n\nWhat do you think?", "comment": "I think it\u2019s a mild dick move to hold up traffic regardless of why. Like If you notice a line forming let the cars pass by you for 30 seconds then continue on your way. Not saying constantly stop/move for every car, just if you\u2019re making a traffic jam... that\u2019s imo \n\nBut I wouldn\u2019t yell at a bicyclist though, that\u2019s pretty outta pocket. It\u2019s about /sharing/ the road", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmet9", "question": "I want to live in a cheaper country like mexico or philippines when i get my degree and work remotely as a software engineer.\n\nIs this realistic or are remote jobs too difficult and unpredictable to get? i\u2019m from uk", "comment": "Theoretically yes and I have been personally invited to interviews for jobs like that, but other way around: living in the UK and working for an EU employer for example. But be careful - there can be a lot of mess with taxes, especially if the country you end up working in does not have a double tax agreement with the UK. You will end up being taxed twice on your income in such a case.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upmgdg", "question": "Could you please explain what 'first base, 2nd base etc' stand for in a date, thanks?", "comment": "Traditionally it's something like...\n\n* First base = kissing\n* Second base = touching intimate areas over the clothes\n* Third base = touching under the clothes\n* Home run = having sex\n\nSome people include things like handjobs, fingering, and oral in \"third base\". Exact definitions vary, because there isn't any authority who gets to say what is and isn't the right terminology.", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmhrp", "question": "what's the point of zoom meetings if people can discuss with text messages.", "comment": "\"Why are cars a thing? You can just get around by crawling.\"", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmhrp", "question": "what's the point of zoom meetings if people can discuss with text messages.", "comment": "Text messages can be really slow for a two way conversation.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmj1w", "question": "If it is man made from natural resources like oil. Why can we not create a process that unmakes it back into oil?", "comment": "we can. it's called pyrolysis. it takes more energy than pumping oil so it's not economically feasible.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmj1w", "question": "If it is man made from natural resources like oil. Why can we not create a process that unmakes it back into oil?", "comment": "With some plastics, like thermosets, there is a chemical transformation that changes it on a molecular level into something that can't be reversed.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmj9v", "question": "I\u2019m so curious about this. If it\u2019s true, what does anal sex feel like for men? Can y\u2019all have orgasms just from anal penetration? Someone please enlighten me.", "comment": "yes sorta. pressure can be put on the prostate through anal penetration and cause an orgasm.", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmj9v", "question": "I\u2019m so curious about this. If it\u2019s true, what does anal sex feel like for men? Can y\u2019all have orgasms just from anal penetration? Someone please enlighten me.", "comment": "Yes. You can cum without even touching your dick if your prostate is ah... attended to... properly. Even if you're, say, straight, and just taking dick for pay, you can cum your brains out from the experience, though you might not otherwise be aroused. One of my favorite scenes in all of pornography is just that.\n\nThe prostate is a wonderful organ.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmjch", "question": "Like, how much does single guy in late 20s early 30s in california need to make to kinda not worry about bills and always have food while occasionally buy big purchases/go on vacation?\n\nLets assume they dont live in downtown la or sf since those two are outliers even in ca i think", "comment": "California is a big place. There are cities 45 minutes from LA where a 100k salary would get you a very comfortable living", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmlbk", "question": "I (female, 16) was riding scooters today and fell. As a result, hit my head. No bleeding or losing consciousness. I felt like my head was spinning for a few minutes and got a headache. It's been a few hours and the headache is still going on. I also have a small bump on my head where I hit it. Is this serious? Should I be worried? Please help because I am scared to death.", "comment": "While you\u2019re not dying, I would recommend a visit to a hospital or urgent care clinic if you\u2019ve hit your head. Were you wearing a helmet? \n\nPain and swelling is expected but you should be checked over to make sure you\u2019re ok", "upvote_ratio": 40.0, "sub": "AskDocs"} +{"thread_id": "upms1x", "question": "Essentially I have no college and no work experience, I learned front end online and I'm still learning while also applying for jobs. The only interview I ever got is with a witch-like company called GenSpark that trains full stack java for 12 weeks, then locks me in a 1.5 year contract. I'm struggling to find any job and the lack of college/experience is really turning off a lot of the employers. Should I just go with this or a different WITCH company? Or should I just keep applying for jobs and improving my skills?", "comment": "Yes. With your essentially no skills and no (relevant) education any job you can get that will build skills and experience you should take.", "upvote_ratio": 50.0, "sub": "CSCareerQuestions"} +{"thread_id": "upmt4r", "question": "How do they know where home is?", "comment": "Most bugs don't have a \"home\". They just shelter in the best available spot based on where they happen to live and forage. \n\nIt may be under a leaf on a tree or bush, under a rock, under fallen leaves on the ground, or an overhang of some sort.\n\nThose that make their own home, like tent caterpillars or bees and wasps, will hunker down in their tent or hive or hole.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmuoa", "question": "How are U.S. senators and other diplomats able to safely get to Kiev?", "comment": "They tell Russia ahead of time so they are not accidentally killed, if Russia attacks and kills one then that would open up a huge shit storm that no one wants\n\nIn Syria we actually had a common radio freq and phone numbers to deconflict between us and russia", "upvote_ratio": 70.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmuoa", "question": "How are U.S. senators and other diplomats able to safely get to Kiev?", "comment": "Russia has focused just on the east, and also because Putin isn't dumb enough to bring others into the war when Russia hasn't even shown that much prowess just against one country.", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"} +{"thread_id": "upmwst", "question": "Hello everyone, need some advice. I will try to be concise.\n\nI have an offer for $145k for a 12 month contract in a LCOL area with a different company. It is not a guarantee that my contract would be renewed after the 12 months is up.\n\nRight now, I make $62k in a LCOL area. That will be going to $70k next month. In June 2023, that will go up to $80k. It is a government position, so these promotions are guaranteed. The $70k is already confirmed.\n\nPros of the contract work:\n\n* Raises my salary ceiling\n* $145k goes a LONG way in my state\n\nCons of the contract work:\n\n* Possibly unemployed in June 2023\n* Benefits are terrible: no 401k, my dental & vision would be out-of-pocket, etc.\n* 100% In-office\n* Would have to relocate on short notice\n* Edit: Re-reading my own post, basically everything about this role sucks in comparison except the money\n\nPros of staying put:\n\n* Guaranteed raises, could live quite comfortably on $80k + benefits. Am already living comfortably on $60k, only thing I can't afford that I want is a house, which would be easily achievable on $80k+.\n* It's remote\n* Incur far less risk. I'm not in a position where I can afford to lose steady income, I have no family in the area.\n* Don't have to relocate within the next month.\n* Excellent benefits. 5% 401k match, pension fund, insurance is great and paid for at minimal cost to me, HSA is funded by employer, alot of PTO and sick leave, etc.\n\nCons of staying put:\n\n* Slower career growth\n\nI have 2 years of experience, and I'm happy in my current role. I only interviewed because the recruiter called me directly. I am frustrated by feeling like I don't make enough money, but it's not so important to me that I'm eager to stick my neck out to make more. I've done the math obsessively, and the annual net worth increase is **only about $12k** more if I take the contract position (**over the $80k position I'll have in summer 2023**), factoring in a rent increase and the absence of benefits. At my current salary of $62k, it's more like $25k. Not a life changing amount of money to me at this point, and the company isn't as impressive on a resume as my current one.\n\nWhat would you do?\n\nEdit: formatting and salary info", "comment": "If you actually want to make more money, then study for interviews, apply everywhere, and see what you\u2019re worth on the open market. Chances are, you can find something better than something that literally just fell in your lap.", "upvote_ratio": 40.0, "sub": "CSCareerQuestions"} +{"thread_id": "upmwst", "question": "Hello everyone, need some advice. I will try to be concise.\n\nI have an offer for $145k for a 12 month contract in a LCOL area with a different company. It is not a guarantee that my contract would be renewed after the 12 months is up.\n\nRight now, I make $62k in a LCOL area. That will be going to $70k next month. In June 2023, that will go up to $80k. It is a government position, so these promotions are guaranteed. The $70k is already confirmed.\n\nPros of the contract work:\n\n* Raises my salary ceiling\n* $145k goes a LONG way in my state\n\nCons of the contract work:\n\n* Possibly unemployed in June 2023\n* Benefits are terrible: no 401k, my dental & vision would be out-of-pocket, etc.\n* 100% In-office\n* Would have to relocate on short notice\n* Edit: Re-reading my own post, basically everything about this role sucks in comparison except the money\n\nPros of staying put:\n\n* Guaranteed raises, could live quite comfortably on $80k + benefits. Am already living comfortably on $60k, only thing I can't afford that I want is a house, which would be easily achievable on $80k+.\n* It's remote\n* Incur far less risk. I'm not in a position where I can afford to lose steady income, I have no family in the area.\n* Don't have to relocate within the next month.\n* Excellent benefits. 5% 401k match, pension fund, insurance is great and paid for at minimal cost to me, HSA is funded by employer, alot of PTO and sick leave, etc.\n\nCons of staying put:\n\n* Slower career growth\n\nI have 2 years of experience, and I'm happy in my current role. I only interviewed because the recruiter called me directly. I am frustrated by feeling like I don't make enough money, but it's not so important to me that I'm eager to stick my neck out to make more. I've done the math obsessively, and the annual net worth increase is **only about $12k** more if I take the contract position (**over the $80k position I'll have in summer 2023**), factoring in a rent increase and the absence of benefits. At my current salary of $62k, it's more like $25k. Not a life changing amount of money to me at this point, and the company isn't as impressive on a resume as my current one.\n\nWhat would you do?\n\nEdit: formatting and salary info", "comment": "Stay where you are, as long as you\u2019re somewhat secure. Get more experience, enjoy those guaranteed raises. Everything about that 1099 job sucks in comparison. At five years, you\u2019ll likely be able to cash that experience in for a nice jump in salary as a W2.", "upvote_ratio": 30.0, "sub": "CSCareerQuestions"} +{"thread_id": "upn8o5", "question": "Why do people buy designer underwear if it is always hidden under the pants?", "comment": "More comfortable, might last longer, plus they're uh.... not always hidden", "upvote_ratio": 60.0, "sub": "NoStupidQuestions"} +{"thread_id": "upn8o5", "question": "Why do people buy designer underwear if it is always hidden under the pants?", "comment": "They feel nice and sometimes they are not hidden", "upvote_ratio": 50.0, "sub": "NoStupidQuestions"} +{"thread_id": "upn9sh", "question": "How big can a planet be in our solar system (or similar solar systems)", "comment": "About 10 Jupiter masses until it gets massive enough to do fusion in its core and it becomes a star.", "upvote_ratio": 30.0, "sub": "NoStupidQuestions"} +{"thread_id": "upndjt", "question": "I'm trying to weed out those who are just looking for easy sex.", "comment": "If you *are* demi then yes\n\nIf not then no", "upvote_ratio": 40.0, "sub": "NoStupidQuestions"}