BHustus

Bangor, ME

Hey folks.

Name's Brandon H, up and coming coder currently a senior in high school. I have a fairly firm grasp on code, and intend to help out where I can, but it seems like I still need a lot of help, myself.

I've been playing games for a long time, and once I entered high school I started to crack down on studying to become an actual game designer. A lot of my questions will probably be related to game-making, likely with Unity.

Keep it happening, folks.

Oct
8
revised Ubuntu 19.04 will not progress to login unless I quickly press F12
added 269 characters in body
Oct
8
comment Ubuntu 19.04 will not progress to login unless I quickly press F12
This appears to be consistent across all the logs. What is unusual about this?
Oct
8
revised Ubuntu 19.04 will not progress to login unless I quickly press F12
added 190 characters in body
Oct
8
awarded Editor
Oct
8
revised Ubuntu 19.04 will not progress to login unless I quickly press F12
added 839 characters in body; added 12 characters in body
Oct
8
comment Ubuntu 19.04 will not progress to login unless I quickly press F12
@WinEunuuchs2Unix I have found at least one erroneous boot log, however there are over 3000 lines and I do not know what to look for here. I can see a number of events pertaining to my keypresses, disconnect and reconnect of the mouse and keyboard, confirming this to be one of the boots that did not succeed.
Oct
8
asked Ubuntu 19.04 will not progress to login unless I quickly press F12
Oct
2
awarded Yearling
Oct
2
awarded Yearling
Aug
19
awarded Notable Question
May
4
awarded Good Question
Jan
18
awarded Notable Question
Jan
18
awarded Popular Question
2018
Dec
28
awarded Popular Question
Aug
21
awarded Popular Question
Jun
3
comment String::contains(String) gives "the trait bound String: FnMut<(char,)>` is not satisfied"
"Complete" does not mean your complete project, it means that the code you provide has to be functional (complete) enough to reach the error, without extraneous details that need to be sifted through. That's why "minimal" is the first part of MCVE; your example should be large enough to express the error you're having issue with, and no larger.
Jun
3
comment String::contains(String) gives "the trait bound String: FnMut<(char,)>` is not satisfied"
Here is a minimal recreation of your issue. And in case you weren't aware, a reference to a string (&foo) can be used anywhere an &str can, so the solution is a trivial s_i.contains(&s_i_minus_1). I'm almost certain this is a duplicate of something, although string contains [rust] search doesn't come up with anything immediately applicable.
May
14
comment Get the first letters of words in a sentence
I've got to say, using flat_map to take advantage of Option's IntoIterator functionality is something I never would've considered.
May
9
comment How do I convert two u8 primitives into a u16 primitive?
I mean, not necessarily for optimization purposes, but for clarity. Bit-shifting seems like it would more clearly explain what you're doing: "I want to shift 8 bits to the left, then place the other number in the empty right half to create one number". Multiplication does the same thing, but it seems like another step to parse for people reading the code.
May
9
comment How do I convert two u8 primitives into a u16 primitive?
I don't know a ton about binary manipulation, but wouldn't a left shift be more appropriate than just a multiplication?
1 2 3 4 5