Jump to content

v0nN3umann

Member
  • Posts

    36
  • Joined

  • Last visited

Reputation Activity

  1. Agree
    v0nN3umann reacted to MladenM in I want 2 of my h tags on the same line   
    <style> h2 { display: inline-block; } </style> add this into html, at the end of the page. 

    Basicly everyone gave you same solution with different ways of implementing it. 
    2 of those solution inserted style in tags itself with attribute "style"

    i added separate way of inserting style of elements in tags outside.

    And best way is to include *.css file. best way is to name it style.css

    You can add it like this

     
    <head> <link rel='stylesheet' href='style.css' > </head>  
  2. Like
    v0nN3umann got a reaction from MladenM in I want 2 of my h tags on the same line   
    <h2 style="display:inline">Total price </h2><h1 style="display:inline"/> Should also work.
    But I would use a separate CSS-File for the styling
  3. Agree
    v0nN3umann reacted to Mira Yurizaki in I want 2 of my h tags on the same line   
    Don't use headers for content like this. Use <p> tags and separate <span> tags as necessary.
     
    EDIT: Since I believe you're using header tags for styling, you should learn how to style HTML:  
    https://www.w3schools.com/html/html_styles.asp (this method is discouraged, but for the sake of having it)
    https://codeburst.io/how-to-style-your-website-with-css-e72e7046fda5
    https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms
     
  4. Agree
    v0nN3umann reacted to Franck in if progress 100% then ???   
    progressBar1.Maximum is the max value it can reach. If you want to know if the bar is currently set at it's maximum you need to do
     
    if(progressBar1.Value == progressBar1.Maximum)  
    .Value is the current position of the progress bar.
     
    Out of curiosity what was your question on Stack, I can check and maybe reopen it if valid. But as @wasab mentioned people should have been very nice with you when you are new and tip you on how to change the question in order to make it valid. It is meant to be a Q&A mega library. Anyhow that's how we try to mod it.
  5. Agree
    v0nN3umann got a reaction from ILoveZed in Mac for programming?   
    I agree. But in my experience it can be a little bit more difficult to use a mac for some courses. For example if you have a mac-specific problem and the teacher only knows windows.
    But this shouldn't happen regularly.
  6. Agree
    v0nN3umann reacted to colonel_mortis in Java - Strings   
    It is the same as other classes. Given a simple custom class
    class Vec2 { private int x; private int y; public Vec2(int x, int y) { this.x = x; this.y = y; } public int getX() { return x; } public int getY() { return y; } } you could write code like
    Vec2 v = new Vec2(4, 3); Vec2 otherV = v; int resultV = doSomethingWithVec(v); This is exactly like the ways that you use Strings
    String s = "A string"; // sort of syntactic sugar for new String("A string"), although it is more nuanced than that to improve performance String otherS = s; int resultS = doSomethingWithString(s);  
    For some classes, you might use setters or mutator methods rather than creating a new instance, such as
    public void setX(int x) { this.x = x; } This works well for some classes, but it can also introduce a bunch of extra issues if you're not careful. The Java designers, as well as the designers of most other languages, therefore decided to make strings immutable, which means that once you create a string there is no way for you to modify it without creating a new string. This allows for a bunch of optimisations to be performed by the JVM (Java backend), and prevents a bunch of accidental issues that could occur with mutable classes if you're not careful.
     
    Strings do have a few syntactic sugar things, like string literals and using + to concatenate them, and these operations are not as simple as just calling regular methods behind the scenes because they take advantage of performance optimisations, but you can think of "a" + "b" as being the same as "a".concat("b").
  7. Like
    v0nN3umann got a reaction from gabada in Unity to Visual studio   
    It looks like there is something wrong with your installation of Visual Studio Tools for Unity.
    Maybe try to reinstall it, and make sure that all paths of your Visual Studio installation are correct.
     
    Open Visual Studio Installer and make sure you added Unity Game Tools (might be labelled differently, I'm not sure about that name)
  8. Agree
    v0nN3umann reacted to reniat in API   
    Since it's such a specific requirement (conversion and it HAS to be done through consuming an api), i'm guessing its some kind of homework assignment. I just want to throw this out there, since i also think doing a Rest API call for something this trivial would not be a good actual solution.
  9. Agree
    v0nN3umann reacted to Chunchunmaru_ in Why such different hardware requirements?   
    My guess is they use porting layers from DirectX to OpenGL which could increase the overall hardware requirements
  10. Agree
    v0nN3umann reacted to Rehmat in Have to setup multiple PC's, can I clone them?   
    If they have windows already installed and you just want them to all run the same software applications then ignore my above post and do the following:
    Set up 1 pc how you need it.
    Then create an image of the OS
    Go to the other 7 pc's and restore from the image.
    They will still use their own product keys. 
     
    BTW if you would like to extract they keys for usage on other machines then look at this: 
    https://www.nextofwindows.com/how-to-retrieve-windows-8-oem-product-key-from-bios
     
  11. Agree
    v0nN3umann reacted to DevBlox in Processing Power Recommended for Programming   
    Well, yes, you don't need a good monitor, but that sure as hell is nice. I personally love screen real-estate and crisp text, can get around bigger IDE's without constantly pushing things around to see the widget or screen I need. When I had a small screen I just got some vi plugins and worked on that, but eventually I needed more features on bigger projects. I'll get around to a 21:9 someday, code on one side, library reference on another, perfect.
  12. Informative
    v0nN3umann got a reaction from Vasllo in How can I disable a Chrome's API?   
    This should work: https://www.ghacks.net/2019/04/17/fix-chrome-blocking-keyboard-multimedia-keys-from-working/
  13. Agree
    v0nN3umann reacted to Unimportant in C++ | Class Private Method   
    While true, I'd advice against taking this too far. I would not go and take something that should clearly be a simple struct and make it's members private and add a bunch of getters and setters just in case things change.
     
    There's enough refactoring tools these days to make those kinds of changes easily and quickly. And if a simple public data structure suddenly has to change into a invariant there's probably greater changes to worry about.
  14. Informative
    v0nN3umann got a reaction from Hi P in C++ | Class Private Method   
    If you would make all your private variables visible like that, there is no benefit of making them private.
    But the huge advantage of making variables private is that you can add some logic to verify inputs or only allow read access to callers outside the class.
     
    The purpose of the private keyword is to make sure that not everyone can access your data. Continue learning programming and you will see that it helps to bring a certain structure in your program and keep all your data safe.
     
    Maybe read:
    https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)
    https://stackoverflow.com/a/14399960
    https://stackify.com/oop-concept-for-beginners-what-is-encapsulation/
     
  15. Agree
    v0nN3umann reacted to Sauron in Linux security & stability for storage computer   
    Of course
  16. Agree
    v0nN3umann got a reaction from DVEntertainment in Lineage OS on Redmi Note 7   
    With a Xiaomi phone you just need to create an account and then wait a few days (3? I'm not sure) to unlock your bootloader.
    And with an unlocked bootloader flashing a custon ROM should be no problem at all.
    But make sure to follow instructions of some sort if you are inexperienced, because there are things you could possibly do wrong.
     
    Doei en veel geluk ? (was that correct?)
  17. Like
    v0nN3umann reacted to DVEntertainment in Lineage OS on Redmi Note 7   
    That is perfect dutch!
    Thank you!
     
  18. Like
    v0nN3umann reacted to DVEntertainment in Lineage OS on Redmi Note 7   
    okey thank you!
  19. Like
    v0nN3umann got a reaction from _Hustler_One_ in Show off your old and retro computer parts   
    Found an old graphics card...
  20. Agree
    v0nN3umann reacted to LogicalDrm in Copied files only half the size   
    I would recommend using something 3rd party when moving a lot of files. My go-to for that kind of backupping is FreeFileSync.
  21. Agree
    v0nN3umann reacted to JacobFW in Memorizing Programming Languages   
    Agree with lacion.
     
    What I normally tell people is that there are two primary skills you have to learn as a programmer.
    a)  How your language works
    b)  How to design a program with that language.
     
    You start off learning a specific language (or maybe more than one), and as you work with it and work on projects, you begin to understand how you structure your programs, how to modularize your program to make them simpler, how to design them.
    Once you have that down, then that starts feeding back into how you write your programs, what languages you use, what hardware, etc.
     
    Thankfully, most of the common programming languages used today have a great deal of similarities in syntax (functions, loops, conditions, etc) and have many similar basic operations and data structures (math library, arrays + array operations, strings + string operations).  What this all means is that even just learning one language you're able to easily start using another one, because there's a damn good chance you can do the same operations in both languages, even if the specifics are different.
     
    And no, there's no shame in having to look up stuff or refer to official documentation.  Hell, I prefer to do that.  I've run into too many situations where some arrogant asshole assumed he knew everything and churned out a bunch of code with blatant errors that would have been easily caught if he either double checked.
     
    And when you're working on production code in a live environment where if you make a big mistake could take people offline that instant, not taking the time to doublecheck is flat out unacceptable.
     
    When I left my interview for my current job, my boss gave me a list of problems he wanted me to work.  He told me: 
    "I don't care what resources you use to solve these problems.  I just need to know I'm hiring someone who can solve them."
     
  22. Informative
    v0nN3umann reacted to lacion in Memorizing Programming Languages   
    I work as DevOps/SRE and as such I have to deal with code in a lot of different languages (basically whatever the different teams uses) there are days where I have to make code changes in 4 different languages (python, node, typescript, golang) remembering language specifics at the rate I have to change is almost impossible. 
     
    I would say that knowing where to look to get the answers to your questions doubts is more important than knowing language specifics, also using IDE's with good autocomplete and deep inspection is a must, also I usually keep a few CheatSheets for the common languages I use at hand to be a bit faster.
     
    if you work professionally on a single language the knowledge will get imprinted in your brain the more you work with it, its just the natural learning process. I try not to get to used to a single language as the nature of my job demand me to be "fluid" in whatever gets thrown at me.
  23. Informative
    v0nN3umann got a reaction from Hi P in Memorizing Programming Languages   
    Yeah, it's pretty normal to forget function names and stuff. I've been programming different languages for a few years now and I always have to look up the most basic stuff. The important thing is that you know where to search.
     
    And I also can tell you that my colleagues (most of them with 8+ years of experience) still forget function or module names. It is even normal to forget what your own functions do (that's why you comment everything).
     
    So don't worry and learn how to search your own code to find function names. And if you start with another language you will have the problem that you'll always use the wrong functions.
     
    So take your time and most important: have fun coding!
     
  24. Agree
    v0nN3umann reacted to Jurrunio in How intel or AMD lock they're CPU multiplier   
    Software. the microcode to be specific, without Intel's in-house program modding that is absolute hell.
     
    I would love to know how you could lock a value in some code with hardware. It's not like they made the multiplier write-protected, otherwise underclocking won't work either.
     
    EFI is just the boot process file, tells the CPU what to do in the boot process. Your clock multipliers are already set at this point so you cannot.
     
    E5 v3's single-core-turbo on all cores is a bug done by NOT executing part of the microcode. I only know this far because that's what I was told to do when unlocking the CPU and after the mod the CPU was not recognized by CPU-Z.
     
    don't PM me for instructions
  25. Agree
    v0nN3umann reacted to tinpanalley in Questions for my attempt to try Linux   
    Evernote is awful unless you pay. It just has too many limits in the free accounts.
×