Programming Languages and Libraries for a Multiplayer Game? Ask Programming |
- Programming Languages and Libraries for a Multiplayer Game?
- What language for extracting data from long text files ?
- Do distributed caches ever use the disk?
- How do compilers run in our system?
- Easier way to run OpenSSH and automatically enter password.
- In Programming 1 currently, have a question regarding line formatting
- [Question] Is this the right way for automating the detection of wildcard subdomains, if not, what would you do? Some more wildcard DNS record questions inside.
- Docker Compose or Minikube for home server?
- Need help coming up with an IT/CS/Programming club name for our school.
- How could I change the default color scheme in Windows 7 prompt quickly?
- Is it ever worth letting memory leak for performance gains?
- SQL Join statements
- Consume REST API and insert the data into a SQL table
- how do i make my program detect a unique or new log entry value?
- Why can't we have a language with all the features?
- Why won't my batch file close after execution?
- I cant remember stuff i learn
- HTML, CSS and JS: How to animate an image or gif traveling from point A to point B on another image to some specific (x, y) location of the image?
- A Simple Case of LNK-2019 Error
- What is reminder of division?
- Regarding string matching full description in text
- Hey I want to start competitive programming i have 1.5 month for my internship selection drive .... plz help me ..... i know cpp
- XAML/WPF - How would you go about creating a sidebar button with an Icon and Text that change color on an IsChecked event? (Example inside)
Programming Languages and Libraries for a Multiplayer Game? Posted: 30 May 2021 02:30 PM PDT I want to make a multiplayer game on its own website, but I don't know how to get started. The game I have in mind is as text-based as Cards Against Humanity, but also requires text input from the users and web scraping. My goal is to make a single player version working first then make it multiplayer and make the UI look nice! I have about a year of programming experience from university. What programming languages or libraries would you recommend for this? I know Python and C, but I'll definitely have to learn more like HTML/CSS/JS. Thank you so much! [link] [comments] |
What language for extracting data from long text files ? Posted: 30 May 2021 10:41 AM PDT Hi ! First of all about my programming experience : It's pretty low. I understand basic rules and algorithms, started learning python a few years ago but stopped before being able to do anything concrete (except mess around with turtle.py) due to a lack of motivation : I had no real goal it was just for fun. However it means I understand how variables work, I can quickly pick up syntax rules, I've used loops and basic stuff.It was a long time ago so I don't remember much about python, I wouldn't mind switching to something else like JavaScript or anything if needed. Now I have a reason to learn. I have long text files containing about 8000 lines each. For each line there are 3 informations I would like to extract and put in a separate text file. For example (with fake information) the line : Would end up being : Sometimes there are variations like this :
The structure is always like this so automating the extraction shouldn't be too complicated (removing everything after the first number until it detects the date of birth then keeping the occupation and place) I need to write a script that does this automatically, this way I can just copy paste the file into Excel and convert it to cells. What language would be accessible enough and would allow me to do this without getting into too complicated stuff ? Do you have further recommendations on how to approach this in the language you chose ? NB : There's no emergency I'll have time to study the language, but I currently don't have the "mental space" to learn about pointers for C++ or stuff like that (but it's probably not needed anyway) Thanks ! [link] [comments] |
Do distributed caches ever use the disk? Posted: 30 May 2021 09:41 PM PDT I know the concept of a cache is to serve the data fast, so a distributed cache usually saves data in RAM. Do distributed caches ever use disk space for something like for virtual memory or is data always just stored in RAM? [link] [comments] |
How do compilers run in our system? Posted: 30 May 2021 03:23 AM PDT Our programs are complied and converted to low level language aka assembly language or binary language with the help of compilers. But how do the compilers themselves run? Who converts gcc compiler to binary if it didn't already exist? [link] [comments] |
Easier way to run OpenSSH and automatically enter password. Posted: 30 May 2021 09:32 PM PDT At my job multiple times a day I need to login to any of 140 linux installations and do a reboot using "sudo reboot -f". I take the station number that's called out to rebooted, go to a website, search for the station, click the information link, click-drag to highlight the address then open a Command prompt and manually type in "ssh <station address>" type "yes" to allow access to the system THEN input login formation followed by "sudo reboot -f" followed by my my password again. I've done a batch file with roughly 300 IF statements. The file starts with: followed by another 300 lines. I'd like to, after verifying it's the right station by typing 'yes', to automatically enter everything else, run the 'sudo reboot -f' and enter my password, but this seems beyond the scope of a batch file. Is there some easy way to accomplish this? [link] [comments] |
In Programming 1 currently, have a question regarding line formatting Posted: 30 May 2021 07:38 PM PDT I'm currently in programming 1 (basic C++) and our most recent assignment asks us to write a program that retrieves test scores and names from a file, print the name, test score, average, and letter grade in a per-name-per-line format. The data is stored in the file as such: George Washington,73,55,98,82,48 Disclaimer: I have already rewritten this program using getline and was able to produce the results I needed to. The program I am pasting is the program I first wrote. For some reason, this assignment was assigned before we learned getline so most people did not do well. Luckily, our professor realized this and mentioned getline and extended the deadline, but I digress. Here is a screenshot of the output (first pic is this program's output, second is my rewritten one which is how it is supposed to look): https://imgur.com/a/Oi2m57j My question is: is it possible to produce the output that my rewritten program produced with the first program I wrote? Here is the first program: https://pastebin.com/Vu6jKDYB [link] [comments] |
Posted: 30 May 2021 01:36 PM PDT I am trying to automate the process of detecting wildcard subdomains in the reconnaissance phase of searching for security vulnerabilities. What I thought of doing is to check the response code for several subdomains that for sure do not exist (eg. xdthiscantexistlol.example.tld and similar), and if they return 200, compare the responses between all of those non-existing domains. After that, I would compare the responses from brute-forced subdomains with responses to non-existing subdomains, and if they are the same, I can say it is a wildcard subdomain. Is this correct? Since I am not native English speaker, here is the easier to read 1st paragraph:
Second question is if I am able to do this by dns queries. I've searched the internet for this, and I've found the following. If I use dig ("dig a xdthiscantexistlol.example.tld") and get a valid result, it is probably a wildcard domain. I don't understand what is a valid result. This is a result I get for a subdomain that I actually know is a wildcard. Would the results be the same for querying other subdomains from other domains if they are wildcard? What does 300, IN, and A mean in this answer section? [link] [comments] |
Docker Compose or Minikube for home server? Posted: 30 May 2021 06:38 PM PDT So long story short, Ive made a series of custom Home Automation mircoservices in various containers. I don't foresee myself needing more than one host server ever. Maybe eventually but I highly doubt it as there will never be enough traffic to ever matter. If there is and I need a multiple host cluster I will go k8s. That being said, for my single home server, I will never use the full capabilities of k8s with only one node, so it seems like overkill. So that brings me to Minikube or Docker Compose. I've seen time and again everyone saying never to use Minikube for production as it creates a single point of failure... but seeing as I will only ever have one server for the foreseeable future I will always have a single point of failure no matter what. Docker Compose seems pretty straight forward if not cumbersome. Minikube makes me have to learn another networking configuration as I have to understand the control plane to understand how nodes are networked together. But I'm unsure if Docker Compose has the ability to restart containers on failure or what kind of health checking it has if any. Is there any kind of recommendation for this kind of set up I have as far as orchestrating the containers I've created? [link] [comments] |
Need help coming up with an IT/CS/Programming club name for our school. Posted: 30 May 2021 01:24 PM PDT I'm sorry if this is the wrong place to ask. We are starting an IT/CS/Programming group at our school (IT, CS, and Computer Programming degrees). Those degrees all fall under the Information Technology umbrella. But we fear that calling the group "IT Club" would alienate students who want to focus on programming and/or CS. What do you all think would be a good name that accurately envelops all 3 fields? This should be a name that welcomes all students and encourages everyone to apply. [link] [comments] |
How could I change the default color scheme in Windows 7 prompt quickly? Posted: 30 May 2021 12:41 PM PDT Hi, guys! I'm still trying to play xNetHack, but I have no knowledge about coding. The main problem is, that xNetHack forcefully overwrites the custom color settings with default ones, when launched with curses interface enabled. This is a common problem with NetHack, but it still remains unfixed. I have noticed, that there are some inactive commands in nethackrc file, like "#options=palette:black-0-0-0". This stuff has something to do with colors, obviously, but curses interface has returned an error after I've tried to enable this command. Ok, these options doesn't work... However, I've managed to change those default colors to the custom ones in windows command prompt, but I was able to do that when xNetHack was still running. So, seemigly, I should do this every time when I launch xNetHack, so now I'm trying to create a bat file, which should perform those changes automatically. So, my questions are simple: is this possible to change the color scheme for Windows 7 prompt in a couple of clicks only? Can I create a bat file for that? [link] [comments] |
Is it ever worth letting memory leak for performance gains? Posted: 29 May 2021 11:37 PM PDT I've had some code slow down significantly when I fixed a memory leak, instead of relying on undefined behavior. If for your target platform you know the leak won't impact other code; is it ever worth letting it happen for performance? The user could just restart the device. [link] [comments] |
Posted: 30 May 2021 02:54 PM PDT Trying to learn basic Mysql stuff for data science and so far I feel the query generator website has been very helpful. https://tools.knowledgewalls.com/sqlselectgenerator Does anyone know if a similar tool that I can use to generate JOINs ? [link] [comments] |
Consume REST API and insert the data into a SQL table Posted: 30 May 2021 12:16 PM PDT Please save me some if you can as I feel like I'm going down the rabbit hole here. I am not a professional programmer but I occasionally write some code at work (mostly SQL but occasionally php, javascript and even some C#) I've been trying to find a solution where I will consume a REST API and insert the json data into a MS SQL table. After some research it seems like this is not a very common practice as I have found limited information about it (or am I completely missing something) but I've narrowed it down to the best solution being SSIS where I write a C# script component (basically creating my own REST API clinet) and then pass the data down to a table to a connected database. Before I continue digging into this method and potentially waste my time is there a more obvious or easier way that I should be handling this? [link] [comments] |
how do i make my program detect a unique or new log entry value? Posted: 30 May 2021 11:17 AM PDT it's like this i want to make a program that'll register user login events on a windows pc, so i want to make sure it can detect whenever a new value / different (other than the users who usually logon). what are the bases that i need? [link] [comments] |
Why can't we have a language with all the features? Posted: 30 May 2021 03:18 AM PDT I know that Java and python has huge number of frameworks for carrying out different tasks. But why do we still follow different languages for different needs? Why can't we just use a single language for all our needs? Databases, networking, gui, embedded etc require different languages? [link] [comments] |
Why won't my batch file close after execution? Posted: 30 May 2021 10:00 AM PDT I have this very simple batch file
But even though I am calling exit it doesn't close the command prompt window after it's done. I thought it might have something to do with having to return a value or something in the python script, idk. I tried adding sys.exit() at the end but that didn't work. Any ideas? [link] [comments] |
Posted: 30 May 2021 09:57 AM PDT I watched mosh's curse for python, i have been doing for 3 hours every day and today is my third day. In first 2 days i watched first 3 hours, but today i rewatched what i forgot. There are some stuff that i can tell you if i wake me in middle of night and some that i totaly forgot about. How ever when it comes to test my abilities i bug, i have an idea what should i do but there is allways wall in front of me. How long do you usually need to memorise everything from curse and do you have any efective methodos? [link] [comments] |
Posted: 30 May 2021 09:19 AM PDT I am trying to make a stickman walk on a map using only css and js, how should I go about this? What if I want it to travel some specific path on the underlying image? Thanks in advance! [link] [comments] |
A Simple Case of LNK-2019 Error Posted: 30 May 2021 08:19 AM PDT I know the reasons why LNK2019 error may occur, but for the life of me I can't figure out where the problem is in my code, LNK2019 and other popular questions on SE couldn't help me. I would really appreciate if someone could look into it, the problem is trivial but consistent when I try to structure my projects in the following way:
The error is as following: [link] [comments] |
Posted: 30 May 2021 07:35 AM PDT How is 10%3=1 in python? % is something called reminder of division but i never heared about that thing, i am not an american so idk some math phrases in english. [link] [comments] |
Regarding string matching full description in text Posted: 30 May 2021 07:25 AM PDT So I recently came across this question "Given a string T and a string S of length 3,count all indices in T such that T[i]T[i+2]T[i+4] and S are the same." For example T :azcabcab and S is abc then output is 2 because T[3]T[5]T[7]="abc" similarly if T is aabbcc and S is abc output is again 2 T[0]T[2]T[4] or T[1]T[3]T[5] .meaning i can either be 0 or it can be 1 therefore answer is 2. Would appreciate it if someone could help me in figuring out the pseudo code or if you could give me pointers as to from which direction shall I approach this ? [link] [comments] |
Posted: 30 May 2021 01:04 PM PDT |
Posted: 30 May 2021 05:28 AM PDT Hey there! I've been trying to think of different ways.. but with all of my testing I can't find the best path to mirroring this type of button. https://imgur.com/gallery/8p83kzi Basically I have Icons that I have made, and I would like them to sit to the left of a button (Radiobutton to be specific) and when clicked, the background color/border of the button to change (of which I already have a created Resource for).. but to ALSO change the icon color to an inverted color. I'm not sure how to get an Icon + Radio Button grouped in a way where I can create an "IsChecked" event to do such a thing though. Honestly not even sure the best way to group an Icon + Radiobutton together either. Thoughts? I've tried the below and not too sure how I'd handle the color changing aspect. If I was to change it to a RadioButton and then set it to match the style of a ToggleButton (as I was planning on doing).. then I should be able to use an IsChecked event?
[link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment