Want to make a space shooter with multiple ships, completely new to coding Ask Programming |
- Want to make a space shooter with multiple ships, completely new to coding
- Generating random matrix with specific conditions
- Help reading from a text file into array then printing to console in C++?
- Is there a service that allows you to pay for a high power VPS but only when you need it?
- How do you handle category tags (like question type on r/askProgramming) in Postgres?
- Visit A List of URL's
- failed in competitive programming
- C++ Cannot use getline and fin
- Anyone experience web server hangs when doing heavy server side processing?
- Getting started with graphing/charting smart contract data - help!
- Could you help me on why my program won't redirect to the options when I type in the correct letters.
- If we view the space of all possible small programs like puzzles, where some people post half of a program as a thread title they claim always halts quickly for all possible suffixes, and responses are possible other halfs of it they claim does not halt by then
- How to precisely determine which client was first at doing something (ignoring network speed)?
- Best Practices for Docker and Java WAR Apps
- Using recursion to solve problems that otherwise seems it would involve dynamic creation of forloops.
- Help for a project involving spreadsheets with large amounts of data.
- What are examples of data storage and data structures commonly used in Java?
- Questions for web development
- Python list iteration question
- DVD-RW as a boot and storage drive? (hypothetically)
- How to use this python testing tool?
- Microsoft Visual Studio Programming Question
- I NEED HELP ON HOW TO PROGRAM/CREATE
- Technology stack for a very simple blog cms?
- Moving from a Product model to a SaaS model?
Want to make a space shooter with multiple ships, completely new to coding Posted: 06 Apr 2018 08:10 PM PDT I don't even know what questions to ask. Basically they will be square and triangles shooting at each other. I want to have some level of AI. I want it to be kind of rts style where you click to send the ships somewhere, the ships have range limits and stuff, more vulnerable on the sides than the front etc. Basically want language works best for this, is something like this very hard for a beginner? I mean, it probably is but assuming I put the time into it. I thought of the idea watching LotGH and figured it would be pretty simple to make a game of squares and triangles shooting each other. Picture for reference [link] [comments] | ||
Generating random matrix with specific conditions Posted: 06 Apr 2018 06:49 PM PDT I'd like to generate a random NxN matrix which satisfies the following: Each row and column consists of {-1,-1,2} with the rest of the entries being zero. Each row and column sums to zero. I will be using these matrices as n-colorability matrices for a study in knot theory, and at this point I'd just pay someone to code it for me. Edit: PM if interested in doing this and we can discuss payment details [link] [comments] | ||
Help reading from a text file into array then printing to console in C++? Posted: 06 Apr 2018 02:52 PM PDT I'm new to C++ and as the title says I wanted to be able to read a text file into a 2D array and then print the contents to the console window maintaining the same format. For example if my text file is: 123 123 123 123 123 123 123 123 123 I want to be able to print it to the console window keeping the same format. Thanks for any help. [link] [comments] | ||
Is there a service that allows you to pay for a high power VPS but only when you need it? Posted: 06 Apr 2018 09:41 PM PDT I work on a huge project that can take an hour to compile on a 16 core machine. And I'm currently working on expanding the build system to fill more needs. As is natural when adjusting a build system, this requires A LOT of clean builds to check how various configuration changes effects the multitude of different architectures and platform combinations. I've been using digital ocean to create a 32 core Ubuntu 16.04 droplet when I get into work for the day and then just snapshotting and destroying at the end of the day. But there has to be a better way to do this. Can anybody point me to one? [link] [comments] | ||
How do you handle category tags (like question type on r/askProgramming) in Postgres? Posted: 06 Apr 2018 09:18 PM PDT In my situation I'm attaching job industry tags to a few different models. For example, a job-seeker, a job-poster, and an investor can all have a Finance, or Web development tag. I use sequelize as well. [link] [comments] | ||
Posted: 06 Apr 2018 08:52 PM PDT Hello. The script I would like to make isn't too complicated. I would like to visit a list of about 1000+ URL's with a second in between each visit. Each URL is a video download of about 2 seconds, and when I stitch the videos together, it will make one large video about an hour long. I can easily make the list of 1000+ URL's in an Excel spreadsheet. Once I get that list, how can I program a script to visit each of those links with a second in between each visit? That second delay is crucial so that my browser doesn't get overloaded with 1000+ links at once. Thanks in advance for any help!!! [link] [comments] | ||
failed in competitive programming Posted: 06 Apr 2018 11:20 AM PDT today i participated in codechef contest, i was understanding some of the problems but can't implement my ideas properly it make me more nervous with each passing minute and at last i left it. i have not solved a single question. how should i practice for it, what resources should i follow, and should i do open source projects and competitive programming together [link] [comments] | ||
C++ Cannot use getline and fin Posted: 06 Apr 2018 07:49 PM PDT Hello, I am trying to do an assignment for my school but I cannot get it to work. I need to put in data into array from a text file that is formatted in the following way: Student Name GPA Student Name GPA And continues in that format for how many students there are. The code I am trying to use looks like the following: The results of this just show the first person and their GPA then stops. If I try to take away the fin.ignore it results in me receiving a crashing error and says a bunch of numbers after the first person. I cannot use vectors as the assignment states I must use getline. I'm not sure what else to try. If anyone has any ideas to fix this issue I would be greatly appreciative! [link] [comments] | ||
Anyone experience web server hangs when doing heavy server side processing? Posted: 06 Apr 2018 07:36 PM PDT I need to handle pdf uploads, parse them into text and allow searching on it. Rebuilding the index causes the server to hang. Everything is using promises with async and await. Is the website hanging normal? Should I implement that as a service separate from the server? [link] [comments] | ||
Getting started with graphing/charting smart contract data - help! Posted: 06 Apr 2018 06:40 PM PDT Hi. My goal is to create a chart/graph of the amount of ether in a smart contract from the point of it's creation until now. How do I get my data (read-only)? Web3.js? Etherscan api? Some other service/library? [link] [comments] | ||
Posted: 06 Apr 2018 06:27 PM PDT include <iostream>include <cmath>include <iomanip>include <limits>using namespace std; int main() { } [link] [comments] | ||
Posted: 06 Apr 2018 05:35 PM PDT What if people posted such small code strings like theories, as in the scientific method, theories that for all possible inputs this code is always true (quickly halting), and in a gamelike competitive way people post responses of such possible inputs trying to get closer to disproving such theory. If such a theory resists many attempts at being disproven, despite many people being interested and uncertain if its true or not, then we tend to think its more likely to be true. If it is disproven, let it be downvoted and other more interesting, more uncertain, theories rise, and let other systems of organizing theories and counterexamples of them be tried. ...then how should such a turing-complete (except limited to maximum compute cycles and memory) puzzle system be built? Halting-oracles, being logically impossible, are an interesting kind of puzzle even to approximate, such as in 1 line of javascript of puzzle (claimed always halts quickly) and 1 line of javascript that, when is the string param of the function returned by eval of the first line of javascript, takes more than some max time (such as .1 second) to return. [link] [comments] | ||
How to precisely determine which client was first at doing something (ignoring network speed)? Posted: 06 Apr 2018 01:23 PM PDT Hi all :) I have a question for you guys, sorry if its a bit long. Suppose there are three people in a room (A,B,C). When person A gives the signal, B and C have to tap the screen of their mobile phone as fast as possible. This action will send a http request to a server somewhere else and the server will have to know which player tapped the screen first. As I don't want network speed to influence the results, I can't just have the first request that reaches the server as the winner. I was thinking of generating a unix timestamp for each player tap, but I'm not sure if this could be used to precisely identify who tapped first. Also the mobile apps could be running on different platforms so I don't know if unix times are exactly the same on different devices. I hope my question was celar. Any suggestions on how I might solve this problem? Thank you guys :) [link] [comments] | ||
Best Practices for Docker and Java WAR Apps Posted: 06 Apr 2018 04:29 PM PDT Can someone explain the theory behind using Docker alongside java apps packaged in WARs? For some context here, I currently have 4 load-balanced tomcats. The tomcats each have a copy of the appropriate WAR files. the tomcats each maintain their own database connection information (context.xml). I have a configuration database that each of java apps talk to in order to understand how they should be working. We are moving toward docker, but I am having trouble wrapping my head around how it fits into our situation. Things I understand:
Things I don't understand:
As you can see, I am a bit confused around the "best practices" here. Please offer me your sage advice around Docker. [link] [comments] | ||
Posted: 06 Apr 2018 03:28 PM PDT HI all, This question uses java as an example, but I am open to other language suggestions as a guide to how this problem should be solved: First, Thank you to anyone who takes the time to review this. I'm looking to solve a problem i've pondered for several hours now essentially involving two variables. I've posted the code submission below (hopefully it formats correctly on first try) and given code example of exactly what the behavior and functionality expected when the variables are known immediately, however for the code to be fully functional, it would need to either dynamically create for loops or use recursion instead. The first coding example i provided supplies the variables k and b where k = 3 and b = 2. I've given a more in depth description in the code, but essentially i would like to print the numbers 12, 13, and 23 given k = 3 and b = 2. i know since b = 2 I will need 2 for loops to obtain the correct result. An additional example I've demonstrated in the code is where k = 5 and b = 3. In this example, I'd like to print the numbers 123, 124, 125, 134, 135, 145, 234, 235, 245, and 345. Notice that no digit of the integer can be larger then k, b = the number of digits in the integer, there can be no repetition of integers, all possible numbers need to be printed, the numbers are listed sequentially, and the goal is to obtain the possible numbers where 124 eliminates the need to print 142 as the number have already been printed. Here is the actual code which hopefully is concise and efficient enough to more effectively explain the problem I'm attempting to solve, demonstrate that an additional four loop is needed for each increment of the b variable. I'd like to figure out a way to write this using recursion where dymanic for loops aren't required. again thank you to anyone who takes time to review. public class RecursionRequest { } [link] [comments] | ||
Help for a project involving spreadsheets with large amounts of data. Posted: 06 Apr 2018 02:44 PM PDT I'm writing this in Java, but my question is not really language specific. I want to write a program that takes data from separate spreadsheets and organizes the data by date. The spreadsheets are electricity data and temperature data. Each spreadsheet essentially has a date column and a value column, where the values are generated hourly (so there are multiple temperatures per day, for example). How can I organize this into a final output that displays values by the date? For example, "2018/01/01: the high temperature was 90 degrees and the total electrical usage was 25 kWh." So far I've read in each spreadsheet to its own class (e.g. TemperatureData), with date and value data members. Now I'm kind of stuck on how to organize this data into appropriate data structures in a way that I can associate the information with a particular date. Any ideas or advice would be greatly appreciated. [link] [comments] | ||
What are examples of data storage and data structures commonly used in Java? Posted: 06 Apr 2018 08:25 AM PDT I'm a pretty early level programmer studying for college, I have been tasked with creating a Tic Tac Toe game, however after searching online I still can't figure out a way to discuss data storage and data structures in the code. So I was wondering if people could provide common examples. Thanks for any help. [link] [comments] | ||
Posted: 06 Apr 2018 02:15 PM PDT Recently decide to switch career paths into web development. I was interested in getting into contact with a few developers in that field, particularly through Skype or phone conversation. Would love to pick your brain with a few questions! If this is something you might be interested in please PM me! [link] [comments] | ||
Python list iteration question Posted: 06 Apr 2018 08:09 AM PDT I am passing a list of length 1 over this loop: and get an error: list index out of range. However, when I specify where the range begins as 0, it works fine. why is this? I thought using 0 was optional. [link] [comments] | ||
DVD-RW as a boot and storage drive? (hypothetically) Posted: 06 Apr 2018 04:07 AM PDT Talking with a friend earlier tonight, we were joking about using a DVD-RW in lieu of a traditional HD. It was originally a joke, but we started thinking if it would be possible to replace a HD with a rewriteable DVD. We imagined sectors of the disk with the OS being 'no-write' zones that held the current OS, and then different portions of the dvd being cache and error checking areas, then near the time to shut down a new 'no write' section being written and the MBR being changed to point to that new area, after error checking. Obviously, latency would be massive so we're only talking hypothetical, and error checking would take up a major portion of the storage. Would it be possible though? Assuming just a basic OS install and basic storage for small files depending on space available after all error checking. [link] [comments] | ||
How to use this python testing tool? Posted: 06 Apr 2018 08:56 AM PDT This year, codejam (programming competition made by google) is going to change some things, and the probes will be interactive. They will give a python testing tool that we can use to test our code. How can we do that? I will write my code in C using visual studio. How can I communicate with that python testing tool? For more details : https://codejam.withgoogle.com/2018/challenges/0000000000000130/dashboard (The download link can be found at the bottom) [link] [comments] | ||
Microsoft Visual Studio Programming Question Posted: 06 Apr 2018 04:46 AM PDT I haven't programmed in years, but my work recently asked me to help them with something and I almost made it all the way through without too much trouble, but this one issue has driven me insane. If anyone could provide assistance I would greatly appreciate it! I'm trying to make a button that executes the equation: ((1.4142*(dia/2))+(dia/2))+1.57 dia is in a different text box, so when I click this button it grabs the number and should change it to the answer. Before the math it looks like this right now: this.TextBox55.Text = Strings.Format(Conversions.ToDecimal(TxtDia.Text)); But anytime I try to multiply or divide the TxtDia in the parentheses it gives errors like Error CS0019 Operator '*' cannot be applied to operands of type 'string' and 'int'" I've tried putting them in other places, rewriting the equation to make it so I can do it after, and it just.. wont work. It will divide/multiply it by 2 if i put them after the (TxtDia.Text)) but adding more than that gives the same error. Any help is appreciated, please keep in mind my knowledge is limited :\ [link] [comments] | ||
I NEED HELP ON HOW TO PROGRAM/CREATE Posted: 06 Apr 2018 10:45 AM PDT I work in the university setting, where students take a bunch of courses. These courses are prerequisites for other courses. I'd like to create a system where they check off the courses they've completed, and then once done, this would run and produce a list that shows courses they are eligible to take based on their course information inputted that they have completed. I don't know much about coding/programming, but I am looking for suggestions on the easiest way to create something like this for a newbie. [link] [comments] | ||
Technology stack for a very simple blog cms? Posted: 06 Apr 2018 04:02 AM PDT I've been asked to hand over a blog cms that would be easy in use for a boy with down syndrome. The blog already runs on wordpress. One possible solution I thought of would be to simplify current interface by removing menu items but that still might be too much complicated. Another option would be an independent blog system. For learning purposes I have previously made a blog system in java sping boot but it has only basic functionalities yet and would be difficult to deploy. Do you have ideas how to better solve it? [link] [comments] | ||
Moving from a Product model to a SaaS model? Posted: 06 Apr 2018 02:36 AM PDT
|
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