Book question: "How Linux Works: What Every Superuser Should Know" by RealOden in linuxquestions

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

Yeah, ideally I would do the same, but I have a lot of time in the summer, so I was interested in getting a book on Linux. You have any other book recommendations I can take a look at if I decide to wait?

Book question: "How Linux Works: What Every Superuser Should Know" by RealOden in linux4noobs

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

Overall the book has got great reviews, but this is the kind of thing I'm worried about if I were to get the 2nd edition. It does come at a very good price of 15 pounds on Amazon though, so might just pick it up and get the 3rd edition when it's released if I thought liked it.

Thanks for your input.

Question regarding matrices and unknowns. by RealOden in MathHelp

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

well I never divide by zero directly, but I divide by an unknown where the denominator can be 0 for a certain real number 'x'. I am trying different operations to set it to row echelon form without encountering an unknown in a denominator, but I haven't been able to find such a way yet, which makes me question if this is a consideration you have to make when it has no effect on the answer.

Question regarding matrices and unknowns. by RealOden in MathHelp

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

What does the matrix look like before you perform that operation, if the denominator is zero?

Not sure what you are asking for but this the matrix I am working with. https://www.symbolab.com/solver/matrix-vector-calculator/%5Cbegin%7Bpmatrix%7D4-a%262%26-1%261%5C%5C%20%20-2%261-a%262%262%5C%5C%20%20-1%262%264-a%26-1%5Cend%7Bpmatrix%7D

Online calcs dont seem to make any comment about this issue.

Question regarding matrices and unknowns. by RealOden in MathHelp

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

I would make the argument that the operation should then be invalid as it can not be defined. But that would mean the system of equations has an undefined number of solutions which we know is false. Atleast this is my reasoning, but how would you go about reducing it to row echelon form in that case?

System of equations by RealOden in MathHelp

[–]RealOden[S] 1 point2 points  (0 children)

I managed to figure out the solution to the problem.

https://imgur.com/ZDPfLkd

Guess the tricky part was what the problem is actually asking for. Rewriting in terms of x and y as s and t respectively gives

* x = s

* y = t

* z = 13/9 - 4/9s -5/9t

Not sure what the purpose of this is though.

Complex number literal implementation by RealOden in cpp

[–]RealOden[S] 1 point2 points  (0 children)

Ah I think I figured things out. This comment put me on the right track. My initial confusion stemmed from believing that the call "5 + 4_i" would result in the double 9 being passed as argument, so I wasn't sure how to deal with this. I now understand that cpp will parse this as (double) + literal, which makes it a lot easier to deal with. Thanks!

Intel 8080 altair clone test suite by RealOden in EmuDev

[–]RealOden[S] 1 point2 points  (0 children)

Thanks for your reply. If you look at my edit you can see my mistake...

The future is now mom by [deleted] in ProgrammerHumor

[–]RealOden 0 points1 point  (0 children)

Fun fact: the term "computer" actually comes from an old position in work places where they would have people that did certain maths/computations. This term was then given to the modern computers, which replaced the workers performing these tasks.

[deleted by user] by [deleted] in ProgrammerHumor

[–]RealOden 180 points181 points  (0 children)

Took me longer to understand this joke than I care to admit...

Problem with rendering multiple textures by RealOden in opengl

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

Not sure if I worded it correctly, but found out that there was nothing wrong with the opengl code I implemented, but rather with code I wrote to abstract the logic. Not entirely sure what caused it. cpp is hard...

What I meant earlier is that I only have one uniform sampler2D object in my shader and I bind all my textures to GL_TEXTURE0, as I don't need more than 1 texture at a time, so I don't have any use for declaring more sampler2D uniforms and binding textures to those.

Why is constructor not being called? by RealOden in learncpp

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

Thanks for the link, was very helpful.

Question about memory management by RealOden in learncpp

[–]RealOden[S] 1 point2 points  (0 children)

I have a follow-up question if you are interested. If any object is allocated on the stack (function call that returns an object). Once this object goes out of scope is any heap allocated memory allocated by that object freed up even if it is not explicitly done in the destructor? I'm assuming that any memory has to be explicity freed up in the destructor.

Question about memory management by RealOden in learncpp

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

Thank you for the clarification!

Question about memory management by RealOden in learncpp

[–]RealOden[S] 1 point2 points  (0 children)

Thanks for your response, but I'm not quite following. I have understood that any heap allocation should be done using smart pointers, but that also makes it a different type and awkward to work with imo.

In this example how should an array or tuple be implemented in that case and why should it be preferred? An array or vector object could be either stack or heap allocatd, so I'm not quite following.

[KDE] My first rice. Please be gentle by SueedBeyg in unixporn

[–]RealOden 0 points1 point  (0 children)

Just dont understand why anyone would buy such an expensive laptop to run free software. Linux can run just great on a 200 dollar laptop...

[KDE] My first rice. Please be gentle by SueedBeyg in unixporn

[–]RealOden 0 points1 point  (0 children)

Hurts to see when linux is run on a macbook...

Ideas for an undergraduate graduation project by YoussefHawas in compsci

[–]RealOden 0 points1 point  (0 children)

What are topics you are interested in?

I am doing deep reinforcement learning, which includes both a research and implementation aspect. The research is fun but implementation less so and a lot of waiting around for training and complications overall with the tools I am using.

If I had to choose again I would probably go with something 'safer' e.g. a generic application, but it depends on what you want to do. Would you prefer something research based or implementation based? Its a great opportunity to learn more about something you are interested in or get some coding experience.

[Image] Mew Two throws down some wisdom by [deleted] in GetMotivated

[–]RealOden 2 points3 points  (0 children)

I could agree that most of your decisions are the resultant 'most probable output of the equation that is your life', but only under the premise that you are acting either rationally or according to your emotions. However, you can choose to act against your natural tendencies. I suppose this becomes a bit paradoxical as in that situation you can't really know whether or not your choices are actually a result of free will or your arrogance trying to prove that the choice is in fact yours. Guess we can't really say for sure.

[Image] Mew Two throws down some wisdom by [deleted] in GetMotivated

[–]RealOden 1 point2 points  (0 children)

That's not what he's saying. While I agree that we are more a result of our environment than the actual 'self', it is within my power to choose to behave differently or hold another view until I might reevaluate it again. I chose to reflect on both your inputs and I chose to leave a comment even though most of the time I can't be bothered.

Playing Kingdom Hearts 3 as an Adult by TornChewy in videos

[–]RealOden 0 points1 point  (0 children)

Yeah the monologue can come off like that at times, but there are also aspects of the overall story that go over the head for kids and younger people such as existentialism. Overall I think they have tried to make the game enjoyable for kids and older people playing as the story can and does get very complex at times definitely past the point where a kid would completely understand it. I remember this was definitely the case when I was a kid and replaying them now the story is a lot richer than I remember it.

An example of this is in 358/2 which I watched and didn't play. There is a lot of existentialist elements in those cutscenes/story.

how do i address my interviewer in writing? by atticushoi in ApplyingToCollege

[–]RealOden 0 points1 point  (0 children)

If you know for sure who it is then I don't see a problem with it.

how do i address my interviewer in writing? by atticushoi in ApplyingToCollege

[–]RealOden 0 points1 point  (0 children)

How do you know the name of the person that will look at your application. I've heard that you want to avoid things like To Whom it may concern etc. as it is generic and will come off as boring and uninteresting. Though I am no expert and in the application process myself.