What is the 'order of a function'? Ask Programming |
- What is the 'order of a function'?
- Best way to create a "magic button"?
- Interviews that go really well suddenly canceling positions. Is it something on my end?
- I could really use some help with React, updating state using fetch method
- Non-static method ' ' cannot be referenced from a static context
- Can someone explain to me, a total beginner to prolog, how this merge sort code works step-by-step?
- C++ set and get functions for arrays
- Can someone explain this array question?
- Linux Admin/Engineer to Developer, have any of y'all done it?
- Help with a PUT request (JSON)
- What is the name of the online code syntax highlighter site that produces output in a "MacOS-like" window? (Example inside post)
- Noob Question
- Any clues on what resources were used or needed to create an app similar to letterboxd
- Anyone figure out a good way of programming while walking?
- Can somebody explain what every line of this code does ?
- Confused Question
- What's y'all's favorite DE?
- Need help with reading Open Source Repository
- Hwo do I create a repetition flowchart which finds the sum and average of the given series of numbers. Please. Thank you.
- C++ book recommendation
- Can you use interpolation for better collision?
- Why don’t people just make objects move at the same rate every frame and just change the rate of how often it happens for speed?
- How to access the same linked list in a function of different class?
- Passing and returning a string with a C function through Python 3
What is the 'order of a function'? Posted: 19 Jan 2021 01:53 PM PST Hello everyone, Please see the image here: https://imgur.com/yK1gqPS I started a course in programming that mainly focuses on algorithms and already the first few checkpoint questions have me tripped up. The question asks: "What is the order of each of the following functions?" lists out a few math expressions. I'm confused on this because it's a review question for a section, but the section doesn't say anything about the order of a function. What is the order of a function is. Can someone please lend some insight? [link] [comments] |
Best way to create a "magic button"? Posted: 19 Jan 2021 01:41 PM PST I'm hoping to find an easy way to give non-technical people the ability to hit a backend route. I'm a backend developer and I have several routes that process things in a dev/sandbox environment. There are a couple project managers who do a lot of testing with the application, and they're constantly asking me to process these things, which can occasionally get pretty distracting. I've tried to introduce them to Postman so they can do it themselves, but that's (apparently) too difficult for them. I could code a basic html/js page with buttons and deploy it on Heroku or something, but spending an hour+ to do that doesn't seem like the best use of my time. Any suggestions for something quick and dirty? Thanks [link] [comments] |
Interviews that go really well suddenly canceling positions. Is it something on my end? Posted: 19 Jan 2021 09:56 PM PST In two recent interviews I was told I did the best out of all the candidates on the interview questions and agreed to the same salary they offered, but then two days later both times I got an email saying the position is canceled. Could it be something I'm doing on my part or is it just bad timing due to election/COVID combined with crummy luck? [link] [comments] |
I could really use some help with React, updating state using fetch method Posted: 19 Jan 2021 09:46 PM PST Hey everyone! I'm currently learning React, state management, and making API requests within react. I was able to fetch and receive a status of 200 based on my client-side application. I'm simply just trying to use the Google Books API to display search results based on filters, just to make sure I understand how an application like this would work. I ran into trouble with a CORS error. To get around this error I just updated the request mode to no-cors. I think that might be part of my problem though because when I view the component tree using DevTools, the state is not updating with the newly received data and I'm getting an error message "Failed to fetch"' even though the network tab displays a 200 status code. Any help on how to receive and display fetched data from a server when using state? Any help would be appreciated. [link] [comments] |
Non-static method ' ' cannot be referenced from a static context Posted: 19 Jan 2021 09:05 PM PST I'm trying to build Tic Tac Toe using Java and I keep getting errors when trying to call methods in the main method. I looked at tutorials and I as still unable to figure it out. Can anyone explain what I'm doing wrong and what the solution would be? Thank you! [link] [comments] |
Can someone explain to me, a total beginner to prolog, how this merge sort code works step-by-step? Posted: 19 Jan 2021 11:23 AM PST I have here a merge sort algorithm. I am aware that it prints the sort step-by-step, but I still get confused as to how it works. I understand the code up until the printList in the middle. I get lost after that. Could someone care to explain in simple terms? I found it difficult to learn and understand due to a lack of learning materials. Thank you! % Initialize inquiry start :- write('Input the number of elements: '), read(N), get_nums(N, List), write('Sorting...'), nl, merge_sort(Sorted, List, [], []), nl, write('Sorted Array'), nl, printList(Sorted). % get numbers to sort from user get_nums(0, []). GetNums(N, List) :- % outputs the numbers in the list in a line, seperated by spaces printList([]). printList([X|Tail]) :- % merge two sorted lists into one sorted list merge(List, List, []). merge(List, [], List). merge([MinList1|RestMerged], [MinList1|RestList1], [MinList2|RestList2]) :- merge([MinList2|RestMerged], [MinList1|RestList1], [MinList2|RestList2]) :- % split list into smaller lists merge_sort([], [], Left, Right):- is_list(Left), is_list(Right). merge_sort([A], [A|[]], Left, Right):- is_list(Left), is_list(Right). merge_sort(CurSorted, CurList, Left, Right) :- [link] [comments] |
C++ set and get functions for arrays Posted: 19 Jan 2021 02:09 PM PST I'm stuck on using set and get functions for arrays. I tried creating this below: in public: string getPuser(int n){ return Puser[n]; } void setPuser(int n, string val){ Puser[n] = val; } in private: string Puser[99]; However when I fill the array with a value and use the getPuser function it doesn't return anything. Why is this? [link] [comments] |
Can someone explain this array question? Posted: 19 Jan 2021 07:35 PM PST Write a C code to read a series of integers (0-9) and counts the number of times each number was entered. The input is terminated by 999. Uses the following format to output the data. Number Times Entered 0 14 1 6 [link] [comments] |
Linux Admin/Engineer to Developer, have any of y'all done it? Posted: 19 Jan 2021 07:02 PM PST I am debating on moving to the developer path, specifically (ideally) as a backend python developer. I started at help desk level with no degree, after 1 year I moved to Linux Admin, then after ~3.5 years I moved to "Linux Support Engineer" where I've been for about a year. I work at an MSP, and am completely burned out from phone calls and tickets among other things. I really don't want to be on call, and Ideally I want to work remotely. I was targeting linux engineer/devops/sre type jobs, but I've had trouble finding work that fit those requirements (Off and on searching for 18 months or so). So I re-evaluated what I enjoyed and decided that a backend python developer seemed up that alley. I started online school in December (BS in Cloud Computing), I have an RHCSA, was working on RHCE until I started school. I know bash really well, enough git to get by, and I've been using python off and on for the last 2 years. I am very comfortable with linux and things relevant to it's administration and prefer to live in the terminal. Most of my work in python is around CLI tools that integrated with internal REST APIs (main libraries were argparse, requests, sqlite, ldap, etc...). I haven't had any code reviews or that sort of thing, all the tools I wrote were things I thought our team could benefit from. I manage them via an internal git repository. With that in mind, do you think I have a decent chance? Have any of you made the same or similar switch? My only concern is losing passion writing someone else's code. That said, I just enjoy code and debugging in general (from what I've done so far). The reduction in stress would also be incredible. [link] [comments] |
Help with a PUT request (JSON) Posted: 19 Jan 2021 02:51 PM PST Hi! Preface: I have almost no business doing this, as I'm not a programmer and have no training or knowledge of JSON, APIs etc. I've been fiddling with coding for 20+ years and always just figure things out when I need to - I guess this is probably a fairly common story here, so thanks for listening. I'll try to keep this brief. I am using Zapier to work with an API for a CRM called Chime. Here is the API documentation. I have successfully set up a GET request that pulls a user record, so I know that my token and content-type are working. It is set up as shown in this screenshot. So with that GET, I have found the "leadId", and am trying to use that in a PUT request to edit the contact record. The documentation for that starts at 5.3.8, which is here. The specific lead info that I want to update is within the LeadRequest schema, with the name of "customAttributeList". The schema for this is an array with the following names:
This is the best I can come up with for my PUT request:
See screenshot of Zapier here. However, I get a 400 error when I run it. I know this is a long post and I'm probably way off, but if someone feels like taking a look, it would be much appreciated. Been reading JSON documentation and trying different approaches for 2 days now and just can't seem to figure out what I'm doing wrong. Thanks for reading! [link] [comments] |
Posted: 19 Jan 2021 07:45 AM PST I thought I bookmarked a site after seeing it mentioned on Reddit a few times, but I cannot for the life of me remember what it was called.. The site highlights your code and produces output in little window with a MacOS-like look, similar to this: [link] [comments] |
Posted: 19 Jan 2021 12:17 PM PST Okay guys, I hope this is the correct subreddit. I want to have a bot which scans websites for any changes. Whenever something on the website (something).com changes, I want to be notified. Is that possible? If so, is this the right subreddit? Or where should I look? Thanks in advance [link] [comments] |
Any clues on what resources were used or needed to create an app similar to letterboxd Posted: 19 Jan 2021 09:13 AM PST I want to make an app similar to letterboxd, not for public release just for practice. Im guessing I would need a database to store the movies, their actors, their ratings, etc.. then each account having their own lists and stuff like that. The only databases I have experience with is MongoDB, and Neo4j. Also is there a way for the app to automatically update with new movies with their names, Image, etc.. instead of adding them manually? Any help would be appreciated thank you! EDIT: Just saw that they use an opensourced movie database called The Movie Database :) [link] [comments] |
Anyone figure out a good way of programming while walking? Posted: 19 Jan 2021 03:59 AM PST Because of a medical condition, I'm supposed to be walking quite a bit (just standing in place won't cut it). I was wondering if anyone has figured out a good way of programming on the go? I don't think a phone would work because typing/navigating is just too inconvenient. I was thinking something along the lines of using a wireless keyboard (I mostly use Vim) with something like Google glass, but not sure how realistic it would be to get a pair of those. I assume most people just use a treadmill with a laptop, but I can't get a treadmill in my house. I can take my laptop to the gym, but was curious to see if anyone has seen or uses a more convenient approach. [link] [comments] |
Can somebody explain what every line of this code does ? Posted: 19 Jan 2021 02:38 PM PST Code is in visual basic (Microsoft Excel) makes a Pascal Triangle/Pyramid: [link] [comments] |
Posted: 19 Jan 2021 03:19 AM PST I started programming when I learnt C one year ago , it was amazing and felt in love with it because it was my first programming language ever and after that in the past few months I started learning some basic front-end stuff like html css js , made a few projects to apply the knowledge and it's going pretty low , I know the next step is to learn some JS frameworks but I think that I know nothing about the web like backend stuff , infrastructure , security ... ect I mean I can go and learn react and some backend framework like nodejs , and make some projects but I'm not really interested in it since I won't be knowledgable about how the web works deeply , I'm interested about deep understanding/ knowledge of how the web works before I jump to learning the tools so if you guys have any books or guides / tutorials , to understand the web deeply from zero: how servers works , how backend stuff works (even if it's just theory) , maybe networking also , security , the history of the web . I'm not interested in what most of the web devs do: learn technologies keep making projects and then send your work to multiple companies until one project impresses someone and he hires you , [link] [comments] |
Posted: 19 Jan 2021 10:17 AM PST |
Need help with reading Open Source Repository Posted: 19 Jan 2021 09:11 AM PST I was goining through the thrust library because I thought i was developing something similar to it. So I checked their repository so see how they have implemented some of the things. I found the repo: https://github.com/NVIDIA/thrust In this i found all the header files (.h) but i wanted to see the implementation of some of the functions. I'm looking for .cpp/ .cu files but cant find them anywhere. So what I'm asking is am I blind or does this open source code doesn't include function definitions? TL;DR: Where are the .cpp/.cu files? [link] [comments] |
Posted: 19 Jan 2021 02:49 AM PST |
Posted: 19 Jan 2021 05:25 AM PST Hey everyone, going into my senior semester at university and taking a class called Scientific Computation in Numerical Analysis. I'm pretty good and knowledgeable in Java and Python. This class is using C++ for scientific computation and the book the professor recommends C++ Programming in Easy Steps by Mike McGrath. Does any of you amazing people have any additional sources I should use to dive deeper into C++ to get familiar C++? I'm currently looking for software engineering internships and would love to be able to add another language to my resume. [link] [comments] |
Can you use interpolation for better collision? Posted: 19 Jan 2021 04:48 AM PST Why don't they make it so that based on the velocity of an object, they could determine if an object is going towards another one and if the object is too fast, instead of just going through the object, it would put it where it should be? [link] [comments] |
Posted: 19 Jan 2021 04:44 AM PST This would make it so really fast things won't go through objects [link] [comments] |
How to access the same linked list in a function of different class? Posted: 19 Jan 2021 03:57 AM PST Hi, I'm doing a shopping cart project that utilize two linked lists and I'm facing trouble getting a value from a specific node from another class. I don't know if I can just paste my code here but I'll just do it. Sorry if I didn't do a good job in stating the problem, and thank you. void FindandCalc(int ID) Above is the function that direct to another function callfunction(). I believe it create a gateway to call the function from other class. static int callfunction(string z){ The callfunction() function int findItemPrice(std::string I){ This is the function that I call inside callfunction(). int main() The call function returned 0 in the console. I suspect that callfunction() doesn't really access the data inside the node that is input from the main function, instead it create a new linked list that doesn't have any data, and that's why it always return false from findItemPrice function. TL;DR Need a way to pass data in linked list that is input from the main function into another function inside a different class. [link] [comments] |
Passing and returning a string with a C function through Python 3 Posted: 19 Jan 2021 03:13 AM PST I am using Python 3.x to interface with a C .so library which I programmed, the C function takes a string, scrambles it, and returns it back. The problem is, whenever I try to call the function from python, it returns random error codes. The code works just fine when calling it from C. In the function a new When calling the function from C, I compile the code using code::blocks, targeting x86_64. When compiling the C function for python, I use
Does anyone know what the issue could be? [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