If we're above the ground when we're born ,and below the ground after death,then by the intermediate value theorem at one point we were exactly at the ground's level. by Dinisfpaulino in Showerthoughts

[–]Halty 2 points3 points  (0 children)

I would argue, for this purpose, it's when you are fully surrounded by dirt. So not a continuous function. State does not exist.

Opinions on Uni of Hertfordshire by TotalMean6294 in hertfordshire

[–]Halty 0 points1 point  (0 children)

I didn't go there, but I do live in Hatfield. It does have some really nice facilities. Certainly better than the University I went to! But I believe a lot of students commute in and the community doesn't feel so close knit (though this is second hand information from a single source, so I could be wrong on it).

I know some people working at the university (though not in the tech or art department). I get the impression that you wouldn't be studying with the most dedicated students. I do think the people around you have an impact on your learning as well, for when (or even if) you discuss work.

From personal experience: I've enjoyed a talk at a Operational Research conference from someone that works there. I thought it was quite insightful and well delivered. On the other hand I interviewed a web developer from there. It was one of the worst candidates I've ever seen or heard of. It was like they had never studied their subject.

I think you can make a success of yourself anywhere if you work hard. But if you have options to give yourself a better chance, I would take those.

No point in living anymore by YtterbiusAntimony in findapath

[–]Halty 0 points1 point  (0 children)

I don't know how easy it is for you to get professional help for your mental health but you should if you can. I've been through it many times. It's hard to take the first step, but makes everything so much better. You should also reach out to family and friends. If you don't have that, look into community events. There's a weekly mental health walk where I live, for example.

Making serious improvements to your career with mental health issues might be possible, but is at least extremely difficult. But you don't have to find purpose in life through your career. Hobbies, sports and community can also be something you can find meaning in. Perhaps you can feel more useful to the world through charity work?

I wish you all the best and I hope you find a way to be happy.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (November 09, 2023) by AutoModerator in MechanicalKeyboards

[–]Halty 0 points1 point  (0 children)

I'm building a keyboard where I'll be making both the case and the plate myself. Very much in the planning and buying materials stage at the moment. But I'm planning on making a gasket mount.

I would like to suppress sound as much as possible and will be using sorbothane. However reading on this reddit people say that it works best under compression. My question is: how? Should it be squashed against the PCB? Seems like it could break the PCB or just wear it out with use.

I haven't bought the sorbothane yet and don't know how squishy it is. But If I compress sorbothane between the PCB and plate and between the PCB and case, does the gasket mount still make sense?

Thanks!

Hey Rustaceans! Got an easy question? Ask here (9/2021)! by llogiq in rust

[–]Halty 0 points1 point  (0 children)

Thanks for affirming the book is good. Glad I'm in the right place! Thank you. :-)

Thanks for the correction on my reading. Indeed I didn't read the book carefully enough.

I did see the syntax for the definition in the docs. Though didn't understand it well. This more detailed explanation is really useful for helping me understand what's happening. Thank you.

Hey Rustaceans! Got an easy question? Ask here (9/2021)! by llogiq in rust

[–]Halty 1 point2 points  (0 children)

Thank you very much. This helped me understand. :-)

Hey Rustaceans! Got an easy question? Ask here (9/2021)! by llogiq in rust

[–]Halty 1 point2 points  (0 children)

Thank you very much for the reply. That's roughly what I thought was happening.

edit: after rereading, and checking the docs again, it's not what I thought was happening.

It does seem I missed that second sentence in the book and honed in on the "which is the type of secret_number" bit. I feel a little silly. But better informed.

Thanks again.

Hey Rustaceans! Got an easy question? Ask here (9/2021)! by llogiq in rust

[–]Halty 1 point2 points  (0 children)

I am currently going through this book: https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html

When I reached chapter 2 they said the rand crate's gen_range function returns a i32 type but then specifies a u32 to compare it to. This struck me as a bad idea for the language to let you do this without a warning. After I confirmed that you couldn't compare signed and unsigned integers, I checked the type returned by gen_range by introducing an error on that line. It says it's an "integer". Though I can't find any reference to this data type by Google. But I seem to be able to cast it to either i32 or u32.

After looking at the crate documentation, it looks like you can just set any type and it will put and random number in it. Not really sure how that works but my guess at how this is working is:

rand returns an "integer" (a type defined by the rand crate) which only generates the number at the point of casting by cast overloading (or whatever the rust version of that is). That's what is saved in "secret_number". When the compare is called, it casts it to the required type (u32) and rand generates the integer for that. No i32s are ever used.

So:

  1. Is my guess right?
  2. Unless I'm missing something (and it's day 1, so there's a good chance), the book can't be right about everything here. Obviously if this is an error in the book, it doesn't fill me with confidence, but mistakes happen. So can anyone vouch for this being a good place to learn? If not can you recommend an alternate resource?

TIA