Jump to content

codesidian

Member
  • Posts

    58
  • Joined

  • Last visited

Reputation Activity

  1. Funny
    codesidian got a reaction from cretsiah in Why GTA 6 is so woke?   
    Maybe you should have done a proper research. 
     
    GTA VI is based in Vice City, which is a fictional city based on the real world city of Miami. Looking at the demographics of Miami, it turns out that only 14% of Miami is White. 
    After looking at the trailer and counting 141 NPCs who's race i could determine easily, discounting anyone ambiguous (and skimming pretty quickly through it), I counted a total of 55 white people and 86 non-white people making the demographics of Vice City to be about 39% white. That's more than double that of Miami. If anything, Vice City is too white. 🙂
  2. Funny
    codesidian got a reaction from Mark Kaine in Why GTA 6 is so woke?   
    Maybe you should have done a proper research. 
     
    GTA VI is based in Vice City, which is a fictional city based on the real world city of Miami. Looking at the demographics of Miami, it turns out that only 14% of Miami is White. 
    After looking at the trailer and counting 141 NPCs who's race i could determine easily, discounting anyone ambiguous (and skimming pretty quickly through it), I counted a total of 55 white people and 86 non-white people making the demographics of Vice City to be about 39% white. That's more than double that of Miami. If anything, Vice City is too white. 🙂
  3. Funny
    codesidian got a reaction from RockSolid1106 in Why GTA 6 is so woke?   
    Maybe you should have done a proper research. 
     
    GTA VI is based in Vice City, which is a fictional city based on the real world city of Miami. Looking at the demographics of Miami, it turns out that only 14% of Miami is White. 
    After looking at the trailer and counting 141 NPCs who's race i could determine easily, discounting anyone ambiguous (and skimming pretty quickly through it), I counted a total of 55 white people and 86 non-white people making the demographics of Vice City to be about 39% white. That's more than double that of Miami. If anything, Vice City is too white. 🙂
  4. Funny
    codesidian got a reaction from TimedPing in Why GTA 6 is so woke?   
    Maybe you should have done a proper research. 
     
    GTA VI is based in Vice City, which is a fictional city based on the real world city of Miami. Looking at the demographics of Miami, it turns out that only 14% of Miami is White. 
    After looking at the trailer and counting 141 NPCs who's race i could determine easily, discounting anyone ambiguous (and skimming pretty quickly through it), I counted a total of 55 white people and 86 non-white people making the demographics of Vice City to be about 39% white. That's more than double that of Miami. If anything, Vice City is too white. 🙂
  5. Funny
    codesidian got a reaction from will0hlep in Why GTA 6 is so woke?   
    Maybe you should have done a proper research. 
     
    GTA VI is based in Vice City, which is a fictional city based on the real world city of Miami. Looking at the demographics of Miami, it turns out that only 14% of Miami is White. 
    After looking at the trailer and counting 141 NPCs who's race i could determine easily, discounting anyone ambiguous (and skimming pretty quickly through it), I counted a total of 55 white people and 86 non-white people making the demographics of Vice City to be about 39% white. That's more than double that of Miami. If anything, Vice City is too white. 🙂
  6. Funny
    codesidian reacted to Ottoman420 in Why GTA 6 is so woke?   
    Rockstar is whitewashing Miami! BOOO WOKESTAR
  7. Funny
    codesidian got a reaction from Ottoman420 in Why GTA 6 is so woke?   
    Maybe you should have done a proper research. 
     
    GTA VI is based in Vice City, which is a fictional city based on the real world city of Miami. Looking at the demographics of Miami, it turns out that only 14% of Miami is White. 
    After looking at the trailer and counting 141 NPCs who's race i could determine easily, discounting anyone ambiguous (and skimming pretty quickly through it), I counted a total of 55 white people and 86 non-white people making the demographics of Vice City to be about 39% white. That's more than double that of Miami. If anything, Vice City is too white. 🙂
  8. Agree
    codesidian reacted to Ottoman420 in Why GTA 6 is so woke?   
    this isnt 4 chan.
     
  9. Like
    codesidian reacted to Biohazard777 in !!! PLEASE HELP !!!   
    Your topic titles...
    I suggest you read this:
    https://meta.stackoverflow.com/a/326590/5235984
    This isn't SO, but the people you want to get help from... probably feel the same way as the person I'm quoting.
    You didn't even say what you are using...

    Anyhow, here maybe this will help:
    https://github.com/expo/expo/issues/17510
  10. Like
    codesidian got a reaction from RockSolid1106 in Item not recognizing in vscode python   
    I think it might benefit you if you took a step back and learnt some of the basics of how the computer works from metal to the OS and above. Skipping that, even just how the tools you are using work. The text you're writing needs to abide by the rules of the interpreter, in this case Python. It'll take your text and covert it into instructions that your CPU understands. A PNG file is not valid python. So what are your options? You could convert the PNG into a format that can be represented in valid python or an algorithm to generate such data - but that's probably not the best option since it already exists on your disk. Then how do you access it there? You write the instructions to read the file from the disk. You can simply read it in as a bunch of bits. That's not too useful for what you're doing and you probably don't want to write your own PNG parser, so you can use a library that can do it for you. There's tons of options for that, however the only one i know of that'll be useful for you would be pygame. 
     
    It might seem more fun to skip the boring fundamentals, but it'll help you in the long run. 
  11. Agree
    codesidian got a reaction from Mungaru in I know absolutely nothing about programing and if this should even be here   
    You're right this probably shouldn't be here, it's mainly for programming related questions. However, i'm sure it would fit nicely in Programs, Apps and Websites or PC Gaming. 
     
    With that being said I'll try and help best i can without knowing the status of your system.
     
    First press windows key + R, type in cmd, hit enter. Then, type in java. If it says java is not recognised as an internal or external command then go the JRE section of this post, if it lists a bunch of stuff like this (you might have to scroll up): 

    Click here:

    Type in CMD and hit enter

    In the command window that pops up type in this command
    java -jar OptiFine_1.20.1_HD_U_I5.jar Make sure the optifine file name is exactly the same as the one in your folder - then press enter:

    You should now see the optifine window:

     
    JRE
    You might need the JRE, not the JDK. You can get the latest JRE here:
    https://www.java.com/en/download/windows_manual.jsp
     
    Once you have that installed, the optifine jar should be executable and you can double click it. Also make sure you're getting optifine from here:
    https://optifine.net/downloads
  12. Like
    codesidian reacted to felpsey in Really not able to grasp React due to it being so complicated, help please.   
    Hi shivajikobardan,
     
    Given the information you have provided, I will base my response on the assumption that you are new to programming and are interested in pursuing web development as a discipline.
     
    When learning a programming language for the first time, it can be easy to boggle down with its features or keywords.
    The ability to solve a problem with code is exciting, however it can be easy to jump ahead and tackle something large and complex, like react.
     
    It is vital that you learn the fundamentals of programming so that you understand the underlying theory and application of the code.
    This will give you the required technical skillset in order to understand the level of complexity of a framework or architecture.
     
    Here are a few examples:
    Numbers Arithmetic operations Expressions Assignments Functions Complexity Abstract data types (Booleans, Sequences, Collections) Iteration Sorting Search Fortunately, you don't need a computing or computer science degree to understand algorithms, data structures or computability, there is a plethora of resources available on the internet such as codecademy, which provides an interactive learning experience, with an established curriculum, while tracking your progress in real time.
     
    Therefore, I would advise taking the time to learn the fundamental theory of programming.
     
    Ethan
  13. Agree
    codesidian reacted to mariushm in Help to create a script to sort files based on timestamp.   
    If you use Total Commander - https://www.ghisler.com/download.htm - , you can select files in folder by specific rules.
    for example you can say select all files with date between 1st of august and 31st of august, which contain the word "test"
    Then simply drag them to the other panel to move them (or press F6 key which is shortcut for move)
  14. Agree
    codesidian reacted to Biohazard777 in How to check a website once a day for winning numbers.   
    Java has HttpClient built in... It is just as "simple" to use as .NET WebRequest for what OP wants to do. 
    By "simple", he would need to manually extract the info he is looking from a potentially lengthy String (instead of using selectors to find elements like a sane person 😀). Which is why I didn't recommend it in the 1st place....
    I do agree about the API remark, if it is available that is the way to go.
  15. Like
    codesidian got a reaction from _Omega_ in How to check a website once a day for winning numbers.   
    Definitely! One of my first big projects was creating a web scraper in Python, and it's a great project to learn more about web tech. 
    There's two options usually:
    - Simulate the browser
    - Make the requests programmatically and parse the html. 
     
    Now, i'm not too familiar on scraping tools for Java or C. There may also be caveats with the page you're trying to access - like it being JavaScript generated which you'll need to parse if you're making the requests yourself. Though as a starting point you can try firing a get request, parsing the body, and extracting the numbers. I've a had a quick look at what's available for Java since that's probably the quickest to develop this in:
     
     
    Jsoup looks very promising, it seems to wrap the HTTP calls and the parsing. I'd say that's a good shout.
     
    When it comes to scraping, you'll need to programmatically locate the element that has the data you're looking for. You need to find a "pattern" of where the data is that you want to extract. In HTML there's attributes like name, id, class etc. that you parse out to get the data you need. Jsoup should have plenty of documentation on how to do that. 
  16. Agree
    codesidian got a reaction from Biohazard777 in How to check a website once a day for winning numbers.   
    Definitely! One of my first big projects was creating a web scraper in Python, and it's a great project to learn more about web tech. 
    There's two options usually:
    - Simulate the browser
    - Make the requests programmatically and parse the html. 
     
    Now, i'm not too familiar on scraping tools for Java or C. There may also be caveats with the page you're trying to access - like it being JavaScript generated which you'll need to parse if you're making the requests yourself. Though as a starting point you can try firing a get request, parsing the body, and extracting the numbers. I've a had a quick look at what's available for Java since that's probably the quickest to develop this in:
     
     
    Jsoup looks very promising, it seems to wrap the HTTP calls and the parsing. I'd say that's a good shout.
     
    When it comes to scraping, you'll need to programmatically locate the element that has the data you're looking for. You need to find a "pattern" of where the data is that you want to extract. In HTML there's attributes like name, id, class etc. that you parse out to get the data you need. Jsoup should have plenty of documentation on how to do that. 
  17. Informative
    codesidian got a reaction from Wictorian in [Python] Optional variables in funtion   
    Just some quick tips others might find helpful:
    You must specify an initial value to your optional args, otherwise they're not optional since they need a value. 
    They must be at the end of your functions' args as in:
    def foo (reqArg, reqArg1, reqArg2, optArg = 0, optArg1 = '', optArg2 = True): And another way would be to pass an args list like:
    def bar(reqArg, reqArg1, *args): or have passed args as a dictionary with kwargs.
    def foobar(reqArg, **kwargs): # get is used since it allows us to define a default value (if the kwarg wasn't passed) print(f"{reqArg} {kwargs.get('message', '')}") foobar("hello", message="world") foobar("goodbye") Output:
    hello world goodbye  
  18. Agree
    codesidian got a reaction from Alexeygridnev1993 in Web scraping with python3   
    Selenium is a browser automation tool. Although it can be used for web scraping, it's most definitely not ideal. Requests with a parser like what they're doing here, or a specifically designed scraping framework such as scrapy are much better options. 
  19. Agree
    codesidian got a reaction from hirushaadi in Web scraping with python3   
    Selenium is a browser automation tool. Although it can be used for web scraping, it's most definitely not ideal. Requests with a parser like what they're doing here, or a specifically designed scraping framework such as scrapy are much better options. 
  20. Agree
    codesidian got a reaction from shadow_ray in Teacher looking for some help   
    I think what you're looking for is called Moodle. They have a demo here where you can pick a role of teacher, student, parent etc. It's pretty much how you describe. 
     
    Students can upload work, teachers can mark/give feedback, parents can view a students progress and work etc. It even works in that structure. 
  21. Like
    codesidian reacted to kragoth1234 in The under 100 line challenge!   
    A very simple random maze game, with "3D" ray casting graphics. Github

     
  22. Like
    codesidian reacted to ReaperFS in Using an Android Tablet as a Macro keyboard   
    Can you please turn this into an open source project or please provide the source code for us to customize it a little bit more?
  23. Like
    codesidian reacted to WaggishOhio383 in can't download wraith prism rgb control software from coolermaster site (page blocked)   
    Will a google drive upload work?
     
    https://drive.google.com/file/d/1q0Er0HA0oLGieItWt_YGuz9OYdnSohgA/view?usp=sharing
  24. Like
    codesidian reacted to Egvera94 in can't download wraith prism rgb control software from coolermaster site (page blocked)   
    looking for alternative link/mirror
  25. Agree
    codesidian reacted to straight_stewie in For Loop With A New Variable Assigned To Each Element   
    re.search only finds the first match or none. It does not represent a collection of matches.
     
    We could help you better if you could tell us exactly what you are trying to do.
     
    Until that time, however, suffice it to say:
    If the language is reflexive, then it's technically possible to iterate over some collection of objects and turn them into uniquely named variables. However, this is the least efficient, most difficult, and hardest to get right way of handling collections of items.
     
    There are a bunch of different types of data structures which can let you efficiently access collections of objects using all sorts of patterns. The selection of which data structure to use is dependent on what you actually know about the objects when the collection is created and how you want to use the objects later. Therefore, if you could tell us more specifically what you are trying to do, then we could help you much better.
×