I'd like to ask you guys a question, how or in what way is a Programming Language made? Ask Programming |
- I'd like to ask you guys a question, how or in what way is a Programming Language made?
- I'm such a newbie, curious about how a product like Tinder is built
- javascript for loop seemingly terminating too soon?
- Embedding a map with users being able to add points
- Convert TXT to CSV
- Editing a specific input returned from a map - JS
- Help with beta installation
- How does one determine the complexity of this code?
- What are competency based questions in an interview?
- This is a long one so please bear with me! Embarked on a Raspberry Pi project and quickly realised we've bitten off a bit more than we can chew but would still like to make this work!
- I'm looking to get certifications in Microsoft Sql Server 2012/2014/2016 but I'm running into issues
- Teaming up with unknown individual at hackathons. Any thoughts?
- How can I host a terminal-based game so that people can just play it in their terminal without needing to clone my repo and run it locally?
- Programming Skills for Physics
- Using a class as the value in a map (C++)
- Javascript multiple arraybuffers to canvas
- [Academic] Sedentary lifestyle in workplace and behavioural aspects among employees (All Welcome)
- Raspberry pi for programming?
- After a long unproductive day because of some legitimate reasons, and you have only 3 hours remaining before you go to sleep would you just leave it or program?
- How to run this code?
- How to store variables needed by many classes(colors, physics constants..) in OOP?
- While Loop Bubble Sort in Python
- Python command prompt issue
I'd like to ask you guys a question, how or in what way is a Programming Language made? Posted: 03 Apr 2021 03:26 PM PDT For example, how are operators defined in Programming Languages? how does the program know that with "=" I mean "equals"? Does anyone have a quick summary or an article i could read? I'm interested in this topic right now but can't find anything for my question, Or rather i dont know how to phrase the question to get a answer. [link] [comments] |
I'm such a newbie, curious about how a product like Tinder is built Posted: 03 Apr 2021 10:05 PM PDT I've been wondering for a while just how much work goes into building something like tinder I've heard a lot about frontend, backend, database and all that. So do you have to first build the UI with something like React, then add functionality to it while still using React I guess? And you need a database to store user profile info such as name, bio, pictures, and chat convos, so AWS I guess? Plus, something like stripe to process payments? Am I on the right track? Like I've never worked on a project before and I want to get a basic idea of how it would work. I'm using tinder as just an example because I feel like it is concise enough to understand relative to say how facebook is built or how youtube is built. I might be wrong. If anyone can enlighten me on the nuts and bolts I would kindly appreciate you sharing your knowledge. Thank you. (EDIT) Also do they have different codebases for their webapp and their mobile app or is it the same codebase? If this question doesn't make any sense, please disregard it. [link] [comments] |
javascript for loop seemingly terminating too soon? Posted: 03 Apr 2021 07:43 PM PDT Console says (this.size - newrow.length) is 4, which is expected. The output is: | 0 0 | 1 and then it terminates. Any idea as to why this would be happening? [link] [comments] |
Embedding a map with users being able to add points Posted: 03 Apr 2021 02:58 AM PDT So, i am trying to embed a map on my website, with users being able to add their own locations, a bit of description and a photo. Right now I am doing it with google my maps, but the issue is that anyone who can edit the map can also delete everything there. So, does anyone know any good alternatives to this? Also, I am not sure whether this is the right sub for this question, if anyone could guide me to a more proper one, I would be glad. [link] [comments] |
Posted: 03 Apr 2021 04:05 PM PDT I was wondering if anyone knows how I could do this. I have a TXT document filled with notes (note content and title) that are all formatted the same and have the date included. Would it be possible to convert this document to a CSV file with the headers date and note content? [link] [comments] |
Editing a specific input returned from a map - JS Posted: 03 Apr 2021 07:26 PM PDT Re: React/Javascript: Im returning some data from an api and want user to be able to update it with their own info and send back. I'm mapping over what I return but when I go to click into a single input field, it focuses on only one and only sends one. What is the best way to go about this? I could technically just set a state for each of my data fields and set those to 5 individual input fields, but if I have a key and each mapped input is unique, it should save me some unecessary code. Example: As I said, alternatively I could just set each response key/value pair in its individual state / value to its own input box and update it accordingly when submitted. [link] [comments] |
Posted: 03 Apr 2021 07:13 PM PDT I'm in a group working on a capstone project for school and we need to do a beta installation of our application. We've been building a web application in Netbeans and we're trying to deploy it on Heroku but we can't seem to get it to work. Anybody recommend other hosting options that are fairly straightforward? [link] [comments] |
How does one determine the complexity of this code? Posted: 03 Apr 2021 06:29 PM PDT Basically this code takes in a string like "sss3aa2s1c1" and will turn it into "a2c1s4" as the output I am trying to determine the complexity of the code I just wrote and I am having trouble. Time Complexity:
So the overall time complexity would be O(n2) right? Space Complexity: O(n2) as if we has 's' of 'a1b1c1', both output and tracker store everything? [link] [comments] |
What are competency based questions in an interview? Posted: 03 Apr 2021 06:08 AM PDT I have an interview for a Software Verification Engineer(its a junior role) and the email said
Any idea what these questions would be like? I don't think there would be any coding because they have asked me to use google hangouts on my phone [link] [comments] |
Posted: 03 Apr 2021 02:36 PM PDT So, the back story: We're building, as part of a larger venue, some 30m Airsoft/Air Rifle/Archery ranges.On those ranges, we have some 30m target returners. The original plan was to send said targets up and down the range with an in/out switch and motor/pulley system - that would work fine. About half way through installing the system we floated the idea of controlling it with a touch screen/Raspberry Pi/Stepper motor combo and decided to go ahead and do it. That leaves me precisely here, having no idea beyond a little research how to implement this solution. The touchscreen part is easy, we got that covered. We'll be 3D printing a case to house the Raspberry Pi, Adafruit DC Stepper Motor HAT and touch screen. The stepper motor HAT will send power to the stepper motor via Cat 6 (Mk1 will have one motor, 4 wires. Mk2 will likely have two motors, 8 wires - RJ45/Cat 6 seems like the logical choice). We'll be using a 1.8 degree step motor for this project. That's hardware sorted, on to the logic.What we're aiming to do is have a touch screen GUI with a number of features. Feature one: A slider choosing distance for the target from 5 - 30m and a "Set" button that will run a script(?) to set the target to the chosen distance from "home" at 0m. I have found a Python script to run that will power the motor for a given number of steps then hold the position of the motor at that point but that's as far as I've got with that so far. We'd also need it to "remember" the current position so that if a user selected 20m, the target would move to 20m. If the user then selected 30m, the target would only move another 10m rather than trying to move 30m - that wouldn't work, the range is only 30m long! It would also need a button to return the target to zero. A display showing the current target distance would also be ideal. Feature 2: A session timer that can be modified by an administrator (pin authentication?) where it counts down the session time as set by the admin, starting the count from the first time a target distance is selected. Upon reaching 00:00 it will return the target to 0m, display an "end session" message and an administrator would need to start a new session before the system can be used again. Feature 3: A help button. This would send a notification/signal to something/someone somehow telling them that Range x needs assistance. No idea how to implement this at all! Feature 4: A nice looking GUI with logo and range number at the top Feature 6: Calibration. We can calculate the number of steps per meter easily enough, though sometimes the calibration may be out if there is any slip in the pulley system. It would be ideal if through the "admin" option (for setting session time) there was also the ability to manually control the motor, bring it back to "Home" (zero) and reset the "zero" so that all new step counts would be taken from that start point. Lastly, run in full screen at startup tldr - embarked on project beyond my capabilities pls provide advice hive mind, much appreciated much love [link] [comments] |
I'm looking to get certifications in Microsoft Sql Server 2012/2014/2016 but I'm running into issues Posted: 03 Apr 2021 12:29 AM PDT I found this on Microsoft's official page, listing multiple certifications for exactly the type of thing I am looking for. https://docs.microsoft.com/en-us/learn/certifications/browse/?products=sql-server For pretty much all the certifications that interest me, it says this: " This exam retired on January 31, 2021. For currently available options, please refer to the Browse Certifications and Exams page. " Okay so I assume they cycle them... How long until the next "round" of exams or training comes? Am I SOL for an entire year or longer potentially? IF I cannot get a SQL Administrator Certificate (or something close to it) from Microsoft, could anyone recommend some other good, reputable places out there? I am willing to spend (~$3000) for certificates. I want quality ones. EDIT: I do not need certifications in querying data but rather Administrating a Database. [link] [comments] |
Teaming up with unknown individual at hackathons. Any thoughts? Posted: 03 Apr 2021 02:08 AM PDT I'm a first year CS student and willing to join hackathon this summer. As I don't know much students in my school (online courses makes it hard to connect with others), I'm willing to participate in hackathons alone and eventually team up with unknown individuals. I only know so much programming languages and want to get some insight of what it's like teaming up with unknown team members? [link] [comments] |
Posted: 03 Apr 2021 07:52 AM PDT I made a little Scrabble clone/trainer I like to play in written in Python, and I'd like to be able to play it on other machines, and have other people be able to play it, just through their terminal without needing to download it and run it locally. I'm assuming there's some way that I can set it up so that people can SSH to the server and it will immediately put them into a game and restrict them from quitting it and doing other operations on the server, but Googling this isn't yielding any the results I'm looking for. Can anyone point me in the right direction for this kind of a task, or is it not really possible and I'd be better off just wrapping it in a simple Flask app and hosting that intead? [link] [comments] |
Programming Skills for Physics Posted: 03 Apr 2021 11:09 AM PDT Programming Skills I'm currently an undergrad pursuing a physics degree and I've noticed that programming is way more relevant in the physics world than I thought. So I'd like to get started in learning some of the basic programs I might be using. I took one C++ class in college that seemed very introductory and part of it was switched to online learning due to covid so I'm sure I didn't learn it as well as I should have. I also took a python class in high school but that was a complete joke and I have no recollection of that. So what's a good way to learn these languages and it's applications on your own? [link] [comments] |
Using a class as the value in a map (C++) Posted: 03 Apr 2021 10:36 AM PDT I have been trying to create a map where the key is a data member of a class, and the value for each key-value pair is all of the data members in the class. An example of the output I'm trying to get would be: This is what I have so far, but I can't figure out how to parse the class as a value. Any help would be much appreciated! [link] [comments] |
Javascript multiple arraybuffers to canvas Posted: 03 Apr 2021 10:14 AM PDT Hello there, I'm having a very frustrating time with this problem. Im doing this in javascript/vue and the goal is to fetch multiple images from an amazon s3 bucket using axios, then draw each of the images onto a canvas allowing the user to download the canvas containing all the images. The function I wrote is as follows.
So I get the image, convert it to base64, check to make sure Im not drawing outside the width of the canvas (still working on doing the same for height), and creating a dataurl for that canvas. The problem is that this only works sometimes and Im not sure why. If I have 14 images total. Sometimes this works great and draws all 14 to the canvas. But sometimes for whatever reason I will only see 8 of them on that same canvas when I should still see 14. And its random too. I do notice after putting console.log(img.width) after setting the src it gives me a 0 for some images width randomly. Not sure what Im doing wrong and Im also curious if this could be done in a better way in general with the whole arraybuffer -> Buffer -> base64. Any help would be much appreciated, thank you. [link] [comments] |
[Academic] Sedentary lifestyle in workplace and behavioural aspects among employees (All Welcome) Posted: 03 Apr 2021 09:52 AM PDT Greetings for the day, A research study on the title "A STUDY ON THE IMPACT OF SEDENTARY LIFESTYLE IN WORKPLACE AFFECTING BEHAVIORAL ASPECTS OF EMPLOYEES. The objective of this study is to examine how sedentary lifestyle affects the mental health, life style, worker's performance, interpersonal relationship, physical activity of employees. Kindly fill up this form. The form is designed for Indians, but anyone can fill it up. 1 USD = 73.39 ~74 USD BPO - Business Process Outsourcing KPO - Knowledge Process Outsourcing LPO - Legal Process Outsourcing Your response would be of great help for the research work. Will be kept confidential and we use for research purpose only. Would be glad if you can also share this form with your colleagues to support us in the research work. Thanking you in advance. [link] [comments] |
Posted: 03 Apr 2021 04:13 AM PDT I recently bought a raspberry pi 4 8gb model and I was wondering would I able to program on it and which programming language would be best Any help is appreciated [link] [comments] |
Posted: 03 Apr 2021 07:19 AM PDT This question is to beginners as well as to people who are working on a personal project. So would you just leave it for the next day or you would program because you are scared there would be decline in your progress? [link] [comments] |
Posted: 03 Apr 2021 04:11 AM PDT I want to run this unit converter to see how it looks on the browser. I have downloaded Github Desktop and Atom, but I could not find a. way to open the site in browser to see how the converter looks. Can anyone guide me on how to run the code to see the site live on a browser? [link] [comments] |
How to store variables needed by many classes(colors, physics constants..) in OOP? Posted: 03 Apr 2021 01:27 AM PDT I solved this problem by creating a lookup table in a header file with an array of colors that are used through out my game. However I was told this is bad practice and to rather store them in the classes that they best fit in. But with this comes another problem: The class containing the variables also has a reference to the one that needs them, and in c++ it's not possible to cross include files. Does anybody know what would be a good thing to do in this case? [link] [comments] |
While Loop Bubble Sort in Python Posted: 03 Apr 2021 12:24 AM PDT I was given a problem to make a function that sorts different sized lists using the bubble sort method. You must only use while loops and the list needs to be sorted from largest to smallest. I've learned how to bubble sort with for loops but I was struggling sorting the whole list only using while loops. The closest I was able to get was I'm guessing the issue is in my inner loop, while(y < len(Rlist)-1-z). After being calling BBsort, only the first few elements of Rlist was sorted. Below is some unwanted output from my code. Working with a list size of: 3 [1480, 3215, 2457] The list is in descending order is: False [3215, 2457, 1480] After Bubble Sorting, the list is in descending order is: True Working with a list size of: 10 [1480, 3215, 2457, 4959, 1305, 3010, 4946, 1450, 5761, 7732] The list is in descending order is: False [3215, 2457, 4959, 1480, 3010, 4946, 1450, 5761, 7732, 1305] After Bubble Sorting, the list is in descending order is: False The deadline for this question passed, so I am asking after. [link] [comments] |
Posted: 02 Apr 2021 11:38 PM PDT I have been trying doing some python and following the guy below in the youtube vid, everything worked perfectly fine until I got to the part where I have to type "python3 abcd.py" in the command prompt in which it returns "python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.". I have done exactly what it said, installed python through microsoft, disabled the shortcuts. I even added the path for python and it still does not work. When I disable the shortcuts it says this: "'python3' is not recognized as an internal or external command, operable program or batch file"I get very confused when I try any other solution. Can someone give a step by step guide on how to solve this problem? Thank you very much. https://www.youtube.com/watch?v=d2kXmWzfS0w&ab_channel=DerrickSherrill [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