Jump to content
Phishing Emails & YouTube Messages - Fake Giveaway Read more... ×
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited



About straight_stewie

  • Title
  • Birthday 1994-05-10

Profile Information

  • Gender
  • Location
    North Mississippi
  • Interests
    Audio, Programming, Engineering. Just a hobbyist now, unfortunately.

Recent Profile Visitors

3,233 profile views
  1. straight_stewie

    Smoking Barrels - LTT's Unnofficial Gun Club!

    Some would still argue that there is no such thing as an "assault rifle", and that the whole term is contrived to make the weapon itself seem like a crime.
  2. straight_stewie

    who is responsible

    I guess that depends on how you set things up, and where you are. *If you stand as publisher, you might actually be liable for the content on the site. *If, on the other hand, you just deliver blank software and some tools to add resources to it, and your client publishes and maintains it, then you would likely be in the clear. However, I find it weird that such questions are asked. IMO the best way to write software is the one where no one asks the developers a legal question. Devs write code, not law. * Disclaimer: I am not a lawyer.
  3. straight_stewie

    Reset Button

    Some would consider a non-functioning reset button a feature.
  4. That's kind of a tough one to answer correctly. In short words: It depends on the definition of "beginner". In general, one should start learning a second language when learning the second language is nearly entirely about learning the new syntax and grammar, and doesn't require you to learn basic things to make simple programs. The one exception to that rule is when you switch paradigms: C is very different from Java, and will require "relearning" (or rather, forgetting) quite a few things. A similar thing happens when switching to a language like Common-Lisp, for example. In longer words: Are you aware of the basics of OOP programming? What is polymorphism, and what mechanism allows us to achieve polymorphism? What does "Separation of Concerns" mean? What is encapsulation, and why can it be important? What are "invariants" and how do we make sure that our *thing always maintains its invariants? Are you aware of the basics of data structures? What is a self referential structure? How does a linked list work? Can you make a min/max heap? Do you know the basics of algorithms in general? Given a simple algorithm, can you determine its Big O runtime? What level of understanding do you have with Boolean Algebra?
  5. straight_stewie

    Method with Multiple Parameters

    There is not enough information in the post to know for sure. Is the declaration a part of a class or is it all alone by itself? If I had to make a SWAG about what's going on, I would venture to guess that this is a method in some data structure which adds a new Student object into the structure, but that's complete speculation.
  6. straight_stewie

    I Have No Clue About Anything PC

    Does anybody really *know PC? But all jokes aside, welcome to the forum, I hope we can help.
  7. Some people seem to think that the purpose of SSE/2 and AVX/2/E is solely to allow operations on longer integers. That is actually the least of it's purposes, and is only a by product of their implementations. These instruction set extensions provide SIMD, or Single Instruction Multiple Data, models to programmers. They are meant to process the same operation on more than one unit of data at once. For example, each 256 bit register can be treated as 8 32 bit integers, an operation of the form C = A + B can then perform 8 separate additions of 8 pairs of 32 bit integers in one instruction. One should also be aware that it is not true SIMD in the sense that all of the additions (in this example) are physically being carried out at once: Rather, like all of Intels instructions, it is a highly optimized microprogram that is able to leverage parts of the processor not accessible to normal developers to improve the performance of "common" operations.
  8. straight_stewie

    [Noob Question] Setting up Eclipse C++ with MinGW?

    I just have to say, I have found VS to be, by far, the least confusing and the easiest to use IDE ever, and I've also used a few of the JetBrains IDEs. The only toolchain that I've found comparable in ease would be the classic VIM and GCC/G++ combination, but even that has a fairly steep learning curve for someone unfamiliar with VIM. I would suggest that we stop Microsoft bashing and help OP with the question, which was: The question didn't mention anything about needing to be small, or portable, or how much OP hates big bad Microsoft. So, in light of that, I still believe that the best option is for @Divergent2000 to install Visual Studio 2017 Community and check the C++ development option in the installer. If OP needs it to be a small install, he can simply deselect all of the .NET stuff and not worry about having C# functionality. There is simply no other IDE with the sheer amount of development effort and quality, documentation, and community support as Visual Studio, and whether you, as a developer with some experience, would currently choose that or not, it is clearly the best solution to OP's problem of finding easy to reach C++ development on Windows.
  9. straight_stewie

    Will wiping my drive clear everything?

    In general, run Malwarebytes. If still unsure, run MalwareBytes and Kaspersky. You should do this regularly as part of your standard operating policy. In general, there are very few things that can subvert that combination, the only publicly known of which are highly believed to be state sponsored targeted espionage packages from EquationGroup.
  10. straight_stewie

    How cold is to cold

    I would say that somewhere around 0oR is too cold.
  11. straight_stewie

    Outside of computers/gaming, what hobbies do you guys have?

    Racing Hobie Cats, running trot lines (I'm not much of an angler), and target shooting.
  12. This will be a very short blog post, but I hope that it helps someone. I've noticed that many people learning C++ struggle with understanding pointers, references, variables, and the const keyword. So I plan to write a few charts and some words that can be used as a sort of reference to help. I will not try to go above and beyond in explaining what pointers, references, and const are, as there are already many resources that do wonderful jobs of that. General Rules There is really only one rule I want to touch on here. There are generally two styles of declaring pointers and references in C++ Put the asterisk by the type, or put the asterisk by the variable name. int* x; int *x; Many people prefer the second one. They claim that when you are declaring multiple variables in one line, it prevents you from accidentally declaring a pointer to a variable of type, and a variable of a type. int* x, y; // x is a pointer to an int, and y is an int int *x, *y; // x and y are pointers to ints. Of course, consistency is key when it comes to readability. So the same rule should apply in all situations. There is generally no good way to make easily readable complex parameter declarations if you adopt the second style shown above. But clearly, you should adopt the second style shown above to prevent errors. Well, I believe that right to left readability is of utmost importance to writing good C++, and so the rule that I use to make everything consistent is: Don't declare multiple variables in one statement. int x, y; // bad. // good int x; int y; But what is right to left readability and why do I believe it is so important to write code in such a way that it is maintained? Right to Left Readability Right to left readability is a simple principle, and it helps one understand pointers, references, and const statements so greatly that I believe developers should make it a habit to write code that matches this principle. Ostensibly, the rule says that I should be able to read a parameter declaration or the left side of an assignment from right to left and end up with a valid English sentence that says what the declaration or assignment is doing. Some examples: int a; a is an int int* a; a is a pointer to an int int &a; a is a reference to an int Notice the algorithm I'm using to read the declarations here: First, read the name of the variable. Then, insert a verb, in this case, some form of "is a". Then state whether it is a pointer, a reference, or nothing, and then state the type. One level of const const int a; a is an int that is const const int* a; a is a pointer to an int that is const const int &a; a is a reference to an int that is const Notice that we've added a new form of is: "that is". In this case we use "that is" to refer to the int, and not the reference or the pointer. For example, the pointer can be changed, but the integer that the pointer references cannot. One level of const, redux int const a; a is a const int. int* const a; a is a const pointer to an int int& const a; a is a const reference to an int. (notice that this is nonsense, all references are const in this way; meaning that the reference cannot be changed once assigned.) Here, we've introduced yet another verb: to. In this case, const means that the variable, whether it be a pointer, a reference, or an object cannot be changed. So, int* const a is a pointer to an int and that pointer cannot be changed. Also notice that const int a and int const a are identical. Two levels of const const int* const a; a is a const pointer to an int that is const This means that a is a pointer that cannot be changed and that it points to an integer that cannot be changed. const int& const a; a is a const reference to an int that is const a is a const reference to an int that is const Please notice that this is nonsense. All references are const in the sense that the reference cannot be changed. However, in this case, the object that a refers to also cannot be changed. And that's all there is to it. It's really not that complicated, once you learn the appropriate way to write it out and read it right to left. Just incase my hurried formatting above wasn't easy enough to read, here is a chart below. I will leave out invalid entries, such as const references. Full Chart int a; a is an int. int* a; a is a pointer to an int int& a; a is a reference to an int int const a; a is a const int. a cannot be changed int* const a; a is a const pointer to an int the pointer to a cannot be changed const int a; a is an int that is const a cannot be changed const int* a; a is a pointer to an int that is const the pointer can be changed, but the int pointed to cannot be changed through a. const int& a; a is a reference to an int that is const. the int that is referenced cannot be changed const int* const a; a is a const pointer to an int that is const. the pointer cannot be changed, and neither can the int that is pointed to.
  13. straight_stewie

    Getting started with Tensorflow (GPU edition)

    Python's import system basically only uses relative filepaths. Ostensibly this means that all of your libraries, like tensorFlow or numpy expect to be installed to your python installs root location, and python expects that as well. The problem you are experiencing is because you are using a global python install: i.e. you downloaded python from python.org, and installed it, and added it to your PATH variable. But, you are using local library installs. Ergo, python doesn't know where the libraries are, and the libraries don't know where python is. There are two ways easy ways to fix this: Stop using Conda. I mean, do you really need to have separate environments for every project you're working on? Instead, you can use pip to install your packages into your global python installation, and then they will work from everywhere with few problems. Use Conda, but also install python into every Conda environment. This way, all of your libraries and your python install are in the same place. This could be finicky, I haven't tried it myself. The third way is what I described above. This basically tells python to switch it's "system path" from whatever is in your PATH variable that points to your pythons root directory, to whatever path you put there, and then you can import things from that folder. I know that all of the science packages really try very hard to push you into using Conda, but you do not need to use it. Most or all of the packages available on Conda are also available on pip. Installing tensorFlow globally is as easy as typing "pip install tensorflow" at the command prompt. (unless you're running linux, then: "sudo pip install tensorflow") EDIT:: For the Cuda enabled version of tensorFlow, the commands would be "pip install tensorflow-gpu" and "sudo pip install tensorflow-gpu" respectively.
  14. straight_stewie

    windows problems -_-

    Have you undone the registry modifications yet?
  15. straight_stewie

    windows problems -_-

    Your internet connection and sound manager buttons are missing from the task bar?