How can I be ready for competitive programming? Ask Programming |
- How can I be ready for competitive programming?
- Creating a basic shapes program with user input in Eclipse
- Tools to engineer documentation
- Has anyone managed to successfully use C++20 modules in their programs?
- How to make a chrome extension not run the content_script until the user hits the toggle button in the toolbar?
- If javascript code click() an element and the page redirects to another url[same domain], why can’t document.getElementsByClassName(‘class’)[0]?
- API Separation of concerns
- Once again, a question about bootcamps...
- Addition Algorithms
- (X-post from r/cellular_automata)I need some help adding wind and elevation to my forest fire simulation(in python using cellular automata)
- Help with real stock data
- Collecting data from webpages and saving it to files
- Advice/Assistance for a piece of my Code please - functions
- Is there such a thing as a mouse with absolute positioning?
- New to Coding
- When using TextPad what does "tool completed with exit code 1" mean?
- Need help with my python code
- Web app cooperating with Netflix, HBO, etc.
- Using .htaccess files on disappearing csunix
- Help to star making desktop apps
- How long would this take?
- MySQL syntax error during user creation when there is no apparent error
- Simple (web) load testing tools?
How can I be ready for competitive programming? Posted: 06 Feb 2021 08:40 PM PST Hey, I'm a high school senior. I have good knowledge in python, C#, C, html, CSS, and JavaScript. How can I be prepared for competitive programming like IOI and other competitions? Where should I practice and learn? And what topics I should learn? [link] [comments] |
Creating a basic shapes program with user input in Eclipse Posted: 06 Feb 2021 09:37 AM PST New to studying computer science and need to create a basic program in which the user can create a rectangle, triangle or hexagon with the colour of red, green or grey. I think I'm ok at drawing the shapes using rect.setx(10) etc, but I'm not quite sure how to make the user input work properly. If the input is invalid I need an appropriate message telling the user the correct shapes and colours (I guess using else) I am very new to the subject and eager to learn! [link] [comments] |
Tools to engineer documentation Posted: 06 Feb 2021 12:41 PM PST I'm going to have to massively overhaul the documentation for a larg-ish product that has, currently, little to none. Some things to do are clear and well-defined (adding type annotations, documenting the code itself with the tools for the language/framework, swagger for the API, ...), because there are well-defined tools for them. So my question is: what are the tools for documenting everything else (business logic, architecture, workflows, processes, ...)? I was thinking of using a wiki, but that's like saying "use a text editor", or Confluence for that matter. There must be something structured towards documentation, encouraging good practices, suggesting stuff, ... Is there? [link] [comments] |
Has anyone managed to successfully use C++20 modules in their programs? Posted: 06 Feb 2021 12:41 PM PST All my own attempts so far have critically failed without producing any fruits. I can't even seem to get the simplest example (i.e. https://mariusbancila.ro/blog/2020/05/15/modules-in-clang-11/) to work no matter what compiler version I try - gcc 10.2, Clang 11... Searching in google doesn't seem to find any success stories either. Are they currently in a usable state, or is it just a problem with my own configuration/environment? [link] [comments] |
Posted: 06 Feb 2021 05:27 PM PST background.js manifest.js [link] [comments] |
Posted: 06 Feb 2021 09:13 PM PST the class exists on that new page but not the original one, so it's undefined, how to fix this issue? [link] [comments] |
Posted: 06 Feb 2021 08:52 PM PST Hi! So i'm recently completed a Web development online bootcamp that used javascript for front end scripting also backend stuff with NodeJS/Express. I'm trying to get some more practice by creating a React app that get's all of it's data from an API. Anyways I was just trying out Mozilla Web docs Fetch method and I realized that I could use it on the client side and server side. Is it acceptable to make fetch and other api calls on the client side or do they need to server side only? Thank you! Edit: Spelling/phrasing [link] [comments] |
Once again, a question about bootcamps... Posted: 06 Feb 2021 08:30 PM PST I'm getting closer to 40 and more than ever I'm looking to change up my career. The pandemic has made my wanting a change in careers even more so urgent. Currently I'm an unemployed career(10 yr+) bartender, needless to say, not feeling too much hope in that field, nor do I really have the drive to do that anymore for a multitude of reason. Prior to that I built massive A/V systems for about 8 years and got my first taste in coding with low level programming of integrated control systems. I've been wanting a career change for a while now and the state of the world has put even more fire under my ass to do so. For the last 6 months I've been trying to teach myself as much as I can regarding coding with the idea of going to a bootcamp once I felt like I had a good enough idea of what I'm doing before I invested the time and money. I started off using Codecademy and have moved on to using Treehouse, which I feel like I've gained way more knowledge with how it is structured. On Treehouse I was focused on JavaScript until I hit a wall where it felt like nothing was sinking in and I was just lost. So I started over entirely and have have been doing their front end course, which I feel so much more drawn too. My goal was to be at least enrolled in a bootcamp by the year anniversary of when I lost my job. I was looking into Hack Reactor, but now I'm leaning more toward focusing on the front end side of things. I was drawn to Hack Reactor primarily for the reviews and overall reception and credibility I've come across. Another big factor is that I would only have to pay a deposit up front until I'm hired. With all that said, I'm really just looking for suggestions of a potential bootcamp or even what direction to go in. I don't think that I can afford anything beyond the deposit, so I would be looking for a school that waives the fees until being hired. I'm also torn on where my focus should be. Would it be better to go the full stack route, just focus on front end,or continue my original plan with Hack Reactor and focusing on JavaScript, with the hopes that it would actually click in a more formalized environment? TLDR; a career change is necessary, I've tried to teach myself as much coding as I could with limited time and now I'm looking for the right bootcamp and direction of focus in a bootcamp that that doesn't require tuition upfront. [link] [comments] |
Posted: 06 Feb 2021 07:49 PM PST Disclaimer: Don't worry. I know much better than to get excited over a "discovery" you've made or a wheel you thought you've invented... and I plan to conduct more independent research on the topic later. However, I'm currently working and I thought I'd maybe get the ball rolling and possibly acquire some insights/ sources/ articles from folks who've been around this particular block before while I'm occupied. Some stuff I've been wondering about: What possibilities, if any, are currently being researched to improve logical summation algorithms at the near-hardware level? What are some of the "premier" algorithms in use today and could I get you to break down the numbers for me in terms of performance? Are there any NON-hardware related usecases in which an efficient summation algorithm (or something different but reminiscent of one) would be useful? If I cited an algorithm that could perform 100% accurate summations on 32-bit integers in at MOST 5 iterations- each iteration consisting of 8 logical gate operations performed on each bit, thus 8ops × 32bits × ~5passes, would this be impressive by the standards of any decade? Thanks for the advice or the abuse- whatever comes to me. [link] [comments] |
Posted: 06 Feb 2021 01:45 PM PST I can already do it with a flat/no wind forest(see code below i found somwhere) but i struggle to add wind/topography to be more realistic. I read some papers and kinda already know the principle behind it, but my knowledge in python is still fairly limited. If my post doesn't fit please let me know. [link] [comments] |
Posted: 06 Feb 2021 06:57 PM PST Hello I am starting in py, I wanted to know if there is any way to modify this code so that it delivers the quotes by a handler, since I can not find a way to modify ... When running the api these are sent automatically every 60 seconds ... My idea is to call as follows INTC (/intc) <get share price> Thank you [link] [comments] |
Collecting data from webpages and saving it to files Posted: 06 Feb 2021 08:14 AM PST Hey everyone, Im collecting data on grateful dead shows, but running into some logistical issues. I have written a python script that takes data from various text files, grabs the stuff I care about, organizes it, and puts it into a csv file. Unfortunately, I can't find a single file with all the setlist information, like I could for other parts of my data, so I need a way to: 1: go to:https://www.cs.cmu.edu/~mleone/gdead/setlists.html 2: select a year, for example: 1972: https://www.cs.cmu.edu/~mleone/gdead/72.html 3: Then go link by link and copy that data into a text file, ultimately grabbing every show I tried web scraping via python, but Im not super familiar with it, and I couldn't figure out a way to do it, partly because the files I need are stored on the web as txts, not HTML. I also tried a program called Macro Scheduler, but that doesn't seem to have the functionality I need. I've put a good deal of time into the other aspects of this project, so I don't want to give up, but I also don't want to do this manually. [link] [comments] |
Advice/Assistance for a piece of my Code please - functions Posted: 06 Feb 2021 02:50 PM PST Hi all, relearning Python, well coding, to be exact. I'm stuck on trying to implement a timeout flag for my code. The user should has the option to run the program with the time flag X. X being the amount of time the user has until the program exits. I got that working but didn't know how to implement that into my main while continuing the main program. Might be overthinking it. That being said if you see any recommendations or best practices in my code, please let me know. Want to improve. Thanks! ``` import csv,sys,time,argparse data = [] #list container to store the data score = 0 def getArg(): parser = argparse.ArgumentParser() parser.add_argument("-t","--time",type=int,help="Add a timer to the quiz") parser.add_argument("-r","--rando",help="Randomizes the questions") args = parser.parse_args() return parser def Time_Arg(): #function for Time flag args = getArg().parse_args() if args.time: start_time = time.time() while True: current_time=time.time() elapsed_time = current_time - start_time if elapsed_time > args.time: print("Time Is Up") sys.exit() if name == 'main': with open('PATH TO CSV') as csv_file: data = list(csv.reader(csv_file)) #reading the csv_file then turning that into a list print("You scored: %d out of " % score, len(data)) #printing the number correct out of length of problems ``` [link] [comments] |
Is there such a thing as a mouse with absolute positioning? Posted: 06 Feb 2021 03:35 PM PST I know tablets have this sort of functionality where a point on the tablet corresponds with a point on the screen but I'm looking for something like a mouse setup where a point on the mouse mat corresponds with a point on the screen. Any ideas? [link] [comments] |
Posted: 06 Feb 2021 07:05 AM PST Hello everyone! I recently started a coding Bootcamp to become a Full Stack Developer. Aside from super basic HTML & CSS knowledge, I have no clue about the rest, I just know I love computers and I'm willing to learn as much as possible. What's your advice for this process? I got a bit overwhelmed after looking for information online as there is a ton, which one works best or results more efficient to me? I don't know. I appreciate any ideas, I'm aware it will be an intense journey but I'm so ready for it. [link] [comments] |
When using TextPad what does "tool completed with exit code 1" mean? Posted: 06 Feb 2021 10:09 AM PST I am trying to get a program to compile and run for a class using TextPad and I do not know what the error is. I have copied the program from an example in the text and I do not see any errors and I really need to learn how to do this. I NEED HELP [link] [comments] |
Posted: 06 Feb 2021 04:53 AM PST I made a client and server with the socket module and made it so when you type a command at the server end it would execute it on the client end and there would be multiple clients connected at one time and I want the output of the command to go back to the server but only one of the output goes back to the server and the other one gets printed when I run the next command can someone help me, please? SERVER: ``` import socket CLIENTS = {} def client_cmd(conn): del CLIENTS[conn.fileno()] while True: ``` CLIENT: ``` import socket socket = socket.socket() def Communication(): for _ in range(100): ``` [link] [comments] |
Web app cooperating with Netflix, HBO, etc. Posted: 06 Feb 2021 03:04 AM PST Hello, [link] [comments] |
Using .htaccess files on disappearing csunix Posted: 06 Feb 2021 11:33 AM PST Hello, so I am hosting my website on a csunix account and I just finished coding my project. When I go to upload the files to csunix the .htaccess files I was using do transfer over. There is no error saying that they could not be transferred over they just load and then disappear. Was wondering if anyone else has had this problem and knows why it happens and if there is a solution. Thanks [link] [comments] |
Help to star making desktop apps Posted: 06 Feb 2021 05:26 AM PST Hey, i'm learning C, i know some of the basics, now i want to create desktop apps, i have some ideas of apps that i want to do that would make my life easier and i want to try them (realy basic things like a to-do list for example) but i have no idea where to start, i would realy apreciate if you could reccomend some tutorials or websites that cover the "how to start". Thank you Sorry for the writing, english is not my first language! [link] [comments] |
Posted: 05 Feb 2021 10:51 PM PST For a beginner. How long do you reckon it would take me to familiarize myself with the content required to make this app for my phone. I mainly wanna use a joycon to use as a remote micro-controller for my daily habit tracker typa thing. Any advice is much much appreciated, thanks! I'm new to reddit posting (was this a sufficient post?) [link] [comments] |
MySQL syntax error during user creation when there is no apparent error Posted: 06 Feb 2021 04:15 AM PST Hi guys, I'm trying to install Moodle using Ubuntu using the following guide: https://docs.moodle.org/38/en/Step-by-step_Installation_Guide_for_Ubuntu I'm currently on step 6 where I have to create a MySQL user with the correct permissions and this is where I'm getting stuck. The 1st command - However the 2nd command -
Returns the error message - The installation manual mentions that this may be a problem so advises me to use - However instead of giving me a hash value it comes up with the same error of - I am a beginner to all this so I'd appreciate any responses, thanks in advance! [link] [comments] |
Simple (web) load testing tools? Posted: 06 Feb 2021 03:50 AM PST When writing web services, I occasionally want to sanity check that it doesn't break under load - especially when it comes to multiple parallell requests. Are there any good FOSS tools out there that allows me to for example call an endpoint with 16 concurrent connections? That preferably comes with a usable cli (e.g. I don't have to write C# or Java to configure it). I've tried Locust, but it's overly complicated to configure and more importantly it's way too opaque - I have no idea how many parallell connections are made at any one point, for example. It's also not performant enough (the "caller" reaches its max capacity before the server does), and I had it behaving really weirdly for really slow endpoints (timing out, even if I specified a higher timeout in locust). My current workflow is to create a bash script that just runs a curl command in an infinte loop, then I simply start the script multiple times. It's MUCH more performant than locust, but it doesn't enable me to test load under parallell calls. TBH, there's no reason this tool couldn't be much more complicated than [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