Jump to content

codesidian

Member
  • Posts

    58
  • Joined

  • Last visited

Everything posted by codesidian

  1. 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. If 100USD is your total budget you'll probably get better deals on second hand systems rather than building yourself - unless you're willing to spend a ton of time trying to source parts at rock bottom prices. Ex-business machines would be ideal for what you need and they're super cheap. There's the Dell optiplex systems that are in abundance and will be fine for basic office work. They're available for as little as 40USD, and you can always upgrade in the future. I recently picked up a couple of hp mini pcs and thinkpads. I grabbed 3 HP 260s for around 50USD all in. That being said, with 100USD you can stretch to a more powerful machine like a thinkcentre. A laptop could be a fantastic choice if you don't already have the peripherals and are really stretched on your budget, however keep longevity in mind. The preloved thinkpad market is also great for machines around 100USD/125USD, if you can snag a deal. I wouldn't be too worried about your config if all you need it to do is log inventory in excel or access.
  3. You will never get the resolution you think you'll get. I got falsely banned from MW on PC that i played almost daily from 2019 until 2021. I assume it was afterburner/rivatuner overlay doing something funky proccing the anti-cheat. From their point of view there's a high 90 percent chance you're actually a cheater. It costs tons of money to handle support as is, there are other non-potential cheaters that need it, plus it'd take a decent chunk of human eyeball time to actually determine whether or not you were cheating. I sent them all my recordings - which can just not include cheats, system scans - which can just not include cheats, everything - which can.. you get the point. Their response is always "Cheating is naughty, you're probably naughty, sorry.". Take is as a blessing, thousands of hours is unhealthy. I'm super glad i got banned.
  4. When timing code in Python you should generally use the timeit module from the standard library rather than the time module. There's a couple of issues with repeatability of timing snippets that result from using time alone. If being accurate isn't really important then it doesn't matter, but it's good to know
  5. This is my current set up: I have a couple of devices behind the 5 port switch (top), and a couple behind the 8 port switch (bottom). I'd like for all devices to continue on as normal (green box), but with SERVER 1 (red circle) behind isolated and still have an internet connection. I apologise if this is a stupid question but is it possible with how i've set it up? If anyone could point me in the right direction i'll be forever grateful. I tried setting Server 1 and the connection to the router (PORT 8) on the bottom switch to be a part of their own VLAN like: VLAN/Ports 1 2,3,4,5,6,7,8 2 1,8 However, it was still visible from behind the other switch (top). I'm assuming it's because that's only relevant from behind of the switch, not in-front of it. Their positions in this network are constrained physically - though if what i'm asking is impossible i'll have to make do. Ideally the rest of the network shouldn't know Server 1 exists and vise versa. The router doesn't have any VLAN capabilities, but the two managed switches do.
  6. This is pretty awesome! I use github copilot daily which massively increases my productivity, but the only times i've used GPT was either I needed something simple done quickly or didn't want to learn how to do something. Really cool to see how far it can take someone with next to zero programming knowledge though, and if it feeds your passion for software engineering then more power to you.
  7. This is bad, and i highly recommend trying to find out why what you're currently doing isn't working. For now though try using an attribute selector or escaping the meta-characters: alert($('[id="#AA[0][1][A]"]').val()); alert($("#AA\\[0\\]\\[1\\]\\[A\\]").val());
  8. It's true that value is in the journey and not the destination. Build your minimal viable product, assess it, grow it, scrap it, rebuild it. Do not worry about the tools you're using when it's a passion piece. Use what you know, love, or learn what you're passionate about. Personally i'd say a web app is best fitting option to cover your required use cases, which'll work with what you've already been exposed to. You can build it to run on any screen. I wouldn't worry too much about your backend given what you're describing can be pretty much be built on the FE. As for installing, web apps can be installed on mobile devices which you can prompt the user to do - but don't worry too much about that yet. That being said, just try and do it however and whatever you feel happy with. I've found more often that not a lot of personal projects end at the point of choice paralysis or the never-ending scope I assign to them.
  9. 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.
  10. 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
  11. Either connect your code, or use a tool. Their docs have a rundown on mongo shell which you can use to test your installation.
  12. How about: What are some ideas for side hustles that new Java developers can get into? Heck, even: What are some ideas for side hustles that new Java developers can get into? Java isn't really relevant when it comes to what tech you can build. Unless you're talking about working with a specific framework/existing tech such as minecraft. If you want a side hustle specifically tailored to software development then there's a couple of options i can think of. First being contract/freelance work. You will definitely need to check your current employment contract when it comes to this one since you'll be working for another party even if it is out of hours. This can be a breach of some contracts. That being said, it's viable and pretty easy to pick up if you have a decent portfolio. Another option would be to solve a problem, and charge for it/ask for donations. Any ideas I could throw your way would be viable opportunities for myself so I guess you'll need to figure out this one on your own. Create a SaaS product, a tool that people may want to use etc. As for non-dev related side hustles, i'm not too sure. There seems to be a rush towards 3D printing crap and flogging it on etsy/ebay so you could try that. In regards to job security - I don't think that's true at all. If you work in a volatile area such as opting to work for startups then sure, since startups fail. However, this isn't ever a problem because the lack of devs overall. Finding a job is crazy easy once you have experience. Though, I can only talk about my own experiences and those around me.
  13. 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.
  14. 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
  15. {% for like in liked %} {% if like.liked_post == page %} <span><button class="btn btn-secondary" id="unlike">Unlike</button></span> {% endif %} {% if like.liked_post != page %} <span><button class="btn btn-secondary" id="like">Like</button></span> {% endif %} {% empty %} <span><button class="btn btn-secondary" id="like">Like</button></span> {% endfor %} You're creating two buttons for every like in liked, regardless.
  16. 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.
  17. You're using the with statement outside of your loop meaning that your socket will be closed when you exit that code (aka your indentation is wrong). You're also in effect receiving data on the client once, but sending it in a loop from your server. You do not need to send data back to the client by the look of it, unless you do in your use case. Server loop should look something like: while true: data = connection.receive() if not data: break processData(data) Client loop should look something like: while true: data = getSensorData() socket.sendall(data) time.sleep(1)
  18. Any intrusive enough scan of your running processes will flag you. You can hide, but then whatever you do to hide may leave evidence that something is hidden. That may be enough to get you a ban. I've been banned from games from just having software on my PC that didn't even touch the game I was banned from. This is the biggest obstacle and cannot be circumvented indefinitely. So, if the software you're botting is on your machine then you're a bit stuck if they're aggressively fighting you. If the bot detection is good enough you will be caught, and it can be good enough with a machine learning model trained to detect abnormal players. The only way to not get caught be would be to write the software to perform exactly like a human which sounds pointless but gives you a definite AFK advantage. However, it's tricky and you will probably get caught in the process. Mouse movements cannot be linear or even show an algorithmic pattern. They have to be random. Not truly random, people can be consistent to a degree but it would be an obvious indicator that it isn't a human interacting with your software if their cursor snaps or follows repeatable patterns 100% of the time. Really, everything a player does cannot be 100% consistent. No inputs should follow a non-random algorithm. Reaction times are pretty unreliable, as long as you're around 180-300ms you'll be fine. Just don't go doing everything in Xms intervals. Another thing to watch out for is connecting or any other type of automation around getting your bot to actually play. It's easy to overlook things that aren't gameplay. If when disconnected your bot instantly connects without any delay, it's a bit suspicious. I would also recommend against running 24/7. People eat, sleep, and work. Bots don't. So don't make the mistake of shoving it on a VPS and forgetting about it.
  19. 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.
  20. Python is definitely the easiest route. I'd personally setup a flask server on the pi and serve a simple control page to the browser. Display toaster status, even estimate cooking time etc. As for electronics you should probably just control the plunger considering everything else will just work and you aren't bypassing all the safety mechanisms. A pull solenoid or even an electromagnet with some ferrous metal on the plunger will do the job of a human. You could get fancy by controlling the mystical toaster dial with a stepper motor if you wanted. Just be safe. Is there anywhere we can follow progress?
  21. It would be easier to create a wear OS app that will either connect to your pi via bluetooth or even better send a request over the network to a server running on the pi; you will be able to trigger it from anywhere. Afaik capturing the signal isn't difficult, but then you'll need to reverse engineer the commands being sent and send the "next slide" command yourself or whatever command you want to use. This may not even work depending on how commands are sent or if there's authorisation involved. If you simply want a button on your watch to be received by your pi, create your own button. However, if you want the challenge then sniff the signal. It sounds like a lot of fun.
  22. Chrome has blocked and removed flash support. However, there are alternatives such as BlueMaxima. Just let flash die. Unless someone else is carrying the torch, running out of date software is how you get pwned. Especially online...
  23. I really like this idea. I've been using lua macros with a bunch of individually labelled numpads for a while, so a software solution sounds right up my street. I'll have a fiddle with it later. Opening up the source would be awesome if you can do that, although there's definitely a market out there for something like this so understandable if you want to keep it close to your chest.
  24. The simplest solution would be just looping over your lists: if len([item for item in box1 if item == search]) > 0: print(f"{search} is in box1") Then again for the other boxes. However, this will get slow real fast if you're storing a large amount of items. You can speed this up by sorting the data and using other search algorithms. Binary search is O(log(n)) as apposed to O(n) in this linear search. Another approach would which has been stated is using a DB. At least that also takes care of storing the boxes data when your program isn't running. Personally (because I like them) I'd use flask or django. Serve a simple web app that can search a DB and provide other functionality with the added bonus of it being available on your local network. You can get something like this set-up in no time at all.
  25. I've recently built a machine with the wraith prism, and i too had this exact problem. I've created mirrors for the tool for anyone that might run into this: https://www.mirrored.to/files/0QRCD4ZO/Setup.exe_links https://drive.google.com/drive/folders/1gyU_sxc6UXh6ZtWdmmt6unexdQNCB4MF?usp=sharing Virus scan is here: https://www.virustotal.com/gui/file/bdb7d9f66978dc9b472d06ac3b7e13ae2e40afab7adc75f68a4ae7170245e6dd/detection Check the hash once downloaded if you're worried. Just search it on virus total. Just checked and you can download from their site again. I'll keep this here however, just in case this happens again.
×