How much do you code without looking at documentation? Ask Programming |
- How much do you code without looking at documentation?
- What is the best way to create a web bot?
- What is the proper way to deal with methods silently "failing"?
- VSC extension - DevTools for Chrome?
- How to build a cache for a file database?
- How would you solve the following interview question?
- Calculate sum of inputs with Assembly 6502
- How do I find/call software that has a GUI but are also controllable through the command prompt?
- sorting array in Java/C# vs Javascript/Python?
- Unable to compile C code
- Python or NodeJS?
- Testing a function that gets called inside a for loop?
- Experienced programmers: If you woke up as your 22yr old self one day, what type of career path would you go for? Would you lean more towards startups or corporate?
- Help with finding documentation to integrate fingerprint scanner with web application
- What are downstream dependencies?
- Have you ever developed in a coffee shop?
- How do I get into low-level programming?
- How to collect datas from Project Euler ?
- I have a data set consisting of 100 shopping lists Each shopping list has 10 items on it - I want to give a percentage similarity between every possible pair... Best way of doing it?
- Element not found whatever i try
- Need help on finding a solution
- following post on social networks: SQL, NoSQL, Graph or other?
- Complete Beginner at App Development
How much do you code without looking at documentation? Posted: 24 Jun 2021 11:36 AM PDT Because I jump around between languages, libraries and frameworks for work, I feel like I'm always looking up documentation even for some basic syntax things. It has made me feel like I don't have a firm grasp of any single language. Is that normal? [link] [comments] |
What is the best way to create a web bot? Posted: 24 Jun 2021 11:21 PM PDT I am creating an API wrapper in .NET that will ultimately be used to write a bot for a social media platform. Using a combination of Fiddler and my browser's dev console to identify the API calls that my browser makes, I've been able to replicate those calls in my app using the HttpClient classes to perform read-only operations such as browse feeds, user profiles, etc. However, I'm at the point now where I need my bot to be able to post content, upvote, leave comments, etc. This requires me to authenticate, but I am lost on how to build that request. When monitoring outgoing requests through Fiddler while logging in through my browser, it shows me cryptic information like this: When I view the authentication request through the dev console in Firefox, I seem to be able to get more descriptive data, likely because I can see it before it gets encrypted to send over HTTPS. However, it seems that the request contains parameters (authentication tokens perhaps) that are generated by Javascript which are all obfuscated by minification. Would I have to actually debug/step through all of that code to try to figure out how it's building the request? What are some effective methods of doing this? Or perhaps there is a better approach to creating this bot entirely? Any pointers would be greatly appreciated. [link] [comments] |
What is the proper way to deal with methods silently "failing"? Posted: 24 Jun 2021 07:16 PM PDT Failing might be the wrong word. What I've done is created methods that given some other circumstance, might not do anything. The plus side is that there's no exceptions halting the program. On the other side, when a method doesn't produce an action, it can be hard to debug until I trace the entire chain of calls. An example would be Place()'ing a checkers piece on a checker board. If there are no open spots, it doesn't error out, it simply just does nothing. Is there a better way to deal with this? Some type of non-exception logging? [link] [comments] |
VSC extension - DevTools for Chrome? Posted: 24 Jun 2021 08:39 PM PDT Total noob question here. I am following some coding tutorials, and the instructor has a Chrome console window docked inside of VSC. This looks super handy! Right now I'm copying and pasting from VSC into the console everytime I want to check some of the baby JavaScript code that I'm learning. A little Googling uncovered that the instructor might be using a VSC extension called DevTools for Chrome, so I've installed it, but I cannot for the life of me figure out how to use it. There are no instructions and there's no obvious way to make my screen look like the instructor's - anyone have a suggestion or a link to a guide? Thanks! [link] [comments] |
How to build a cache for a file database? Posted: 24 Jun 2021 05:28 AM PDT Hi all ! I need to implement a basic DBMS on files and i also need to implement a cache, it should support multi threading and do CRUD operations. I will store frequently accessed records in the cache where multiple thread can do CRUD operations on the records and one thread to do the transactions on the data file . Now my problem is how do i cache a query?? all what i said before works fine on a single record but let's say i want all the books written by some author , how to ensure that the next time a user request them they will be all in cache and i don't need to read the data file again for every request ? To be more general i need to know how to implement a cach and i can't use something like Redis i was specifically asked to build it my self and to not use sql for the storage that's why i use files . [link] [comments] |
How would you solve the following interview question? Posted: 24 Jun 2021 10:58 AM PDT I was given this question in an interview and I was stumped. It resembles jump game and stair case climbing problems but its different. Problem: (I don't remember it exactly but I'm sure I have most of the details) Array of size n. h1 and h2 are hops. A hop is a positive integer greater than 0, less than n. A hop is a forward or backward movement in the array. Eg. if h2 = 2. We can make a hop of h2 from index 3, to either index 1 or index 5. A hop is only valid if it stays within the bounds of the array. K is the number of required hops. You must make K hops to arrive at a destination i. No more no less. Given a starting position x, fill the array with the number of valid hop combinations to arrive at each location i in the array. E.g. If n=5, x = 1, and we are currently trying to arrive at location 0. If h1=2, h2 = 3, k=2; the number of valid ways to hop to index 0 from starting position index 1 are: h1, -h2 re: forward and backward movements are allowed. A hop cannot go out of bounds. only 1 valid 2 hop combination exists. (hopefully I didn't make a mistake here) in our array of size n we will edit: This is using each location in the array as a destination. It is easy to do a recursive brute force solution to this problem. Sadly that was the best I could come up with and it was not good enough to get an offer. for(int i = 0; i < len; i++) { validCombinations = checkHops(len, remainingHops, i, h1, k) + checkHops(len, remainingHops, i, -h1,k) + .... // you get the idea, I can't figure out how to format code here arr[i] = validCombinatons } checkHops is a recursive function. I suppose it can be done iteratively but that solution would look rather verbose. How can this be done more optimally? [link] [comments] |
Calculate sum of inputs with Assembly 6502 Posted: 24 Jun 2021 01:02 PM PDT Hi! Is anyone familiar with Assembly Language 6502? I am having trouble with my code. I am basically trying to get a user to choose a fixed number of inputs to calculate the sum of those inputs. The user should atleast enter 5 numbers. This would be used on a Commodore 64 Computer. Here is my code so far... start: ; Push Accumulator PHA ; x register TXA PHA ; get userInput JSR userInput ; sum of 5 integers A, B, C, J, K LDA A CLC ADC B CLC ADC C CLC ADC J CLC ADC K JSR sumResult userInput: sumResult: Not sure where to go next. Thanks in advance! [link] [comments] |
How do I find/call software that has a GUI but are also controllable through the command prompt? Posted: 24 Jun 2021 12:37 PM PDT Is there a specific name for these kind of programs? I'm no more than a "tech enthusiast" (not an absolute beginner but a beginner nonetheless) and I'm experimenting with automating some stuff and make some processes a little bit faster. I'm on Windows and I use batch files and powershell scripts very often for it. For example, I've created an alias called "radio" to execute a command that opens a VLC network stream of an online radio. So, how can I find this kind of software? Is there a specific name for it? If I search for "command-line programs" or something like that I usually just find programs that don't have a GUI. [link] [comments] |
sorting array in Java/C# vs Javascript/Python? Posted: 24 Jun 2021 04:20 PM PDT I don't have a technical vocabulary to properly describe, but I've noticed in Java and C# you sort array by using method from Array class: while in Javascript is using sort method of instance why is that? Is that because static vs dynamic language or is it the way designer decided? [link] [comments] |
Posted: 24 Jun 2021 04:10 PM PDT Hello, I am running a file which uses a function called addTo from another file (header file), but I keep getting this error: Any idea how to fix/debug? TY! :) [link] [comments] |
Posted: 24 Jun 2021 11:05 AM PDT Greetings sirs, i'm thinking about start programming some useful apps, and I need one help. I wanna do a bot to order some items automatically, like: order shoes on a sneaker drop / order shoes on a sneaker restock. I'm a little bit new on programming languages and I want opinions. Should I start learning NodeJS or Python for it? And for the programming market (professions)? [link] [comments] |
Testing a function that gets called inside a for loop? Posted: 24 Jun 2021 06:17 AM PDT I'm a total rookie when it comes to testing. Let alone python unit testing. But I've got a function I need to write a test for and I'm running into an issue because the function is inside of a for loop. Its a "for item in dictionary:" for loop the runs like 5 or 6 lines of code, but one of the lines is calling a function that I want to test. The issue I'm running into is that when I write my test case, I can only give it a single argument to use when in reality, it runs like 10 times and has a different argument every time. This is causing an issue, because in my actual code, every time the loop gets run, its modifying a list elsewhere in the program. so when I go to test the value of the list, the list isn't accurate because its not running multiple times and therefore not modifying all the parts of the list correctly. Is there a special way you can test a function perhaps multiple times, giving it a different argument each time? I know you could just "do multiple tests" but the problem is that I need it to all happen in a single test, or else the list I'm checking the values of won't be correct. Am i explaining that well at all? [link] [comments] |
Posted: 24 Jun 2021 09:59 AM PDT To add to the discussion: Startup pros might include getting to work with new tech, making an impact, or being able to accelerate your career path. Corporate pros might include having more resources, brand recognition, more structure and mentorship, and less stress. Any thoughts? [link] [comments] |
Help with finding documentation to integrate fingerprint scanner with web application Posted: 24 Jun 2021 05:44 AM PDT Hello, I'm an intern developer and I have to use a futronic fingerprint scanner (FS 80) to sign up and authenticate people at my workplace, problem is I can't seem to find the documentation anywhere, I got and SDK, but it has only a demo program, no docs, no source code, nothing. Can anybody tell me how to acquire it? Is it sold with the device? Cause I was given a used one... Any help is appreciated, thanks in advance [link] [comments] |
What are downstream dependencies? Posted: 24 Jun 2021 09:17 AM PDT This could be as much of a human language question as a programming language (English is not my first language). I've come across the following instructions:
I wonder what 'downstream dependencies' mean? The context here is to create a simple app that interacts with an API. [link] [comments] |
Have you ever developed in a coffee shop? Posted: 24 Jun 2021 07:01 AM PDT It's mostly a meme, it's hugely inefficient at least in my case. I prefer to work no a desktop PC, with 2 monitors and in a quiet room. No music at all. And I find it hard to believe that one can normally develop stuff in a coffee shop, with a laptop and a glass of coffee. What do you think? Have you ever done that? [link] [comments] |
How do I get into low-level programming? Posted: 24 Jun 2021 02:34 AM PDT I am a self-taught programmer. I am neither from CS nor from an electrical background. I have programmed high-level things like web development, app development, and other things. But these don't satisfy me. I want to know how computers work under the hood and play with those. I did some research, found some suggestions which are like 5-6 years old. Furthermore, different people are talking about different starting points like C, Linux, Assembly, OS, etc. These made me really confused about where to start. Can you please suggest me a good pathway? I have a little knowledge of C. I know I have to learn a lot and I am ready for it. [link] [comments] |
How to collect datas from Project Euler ? Posted: 24 Jun 2021 07:50 AM PDT Hi, Sorry if the title is not clear as I am not english And even more sorry if I'm not allowed to post such a question here (tell me if it's the case and I delete) So, I am working on project Euler problems to train my maths and programming skills, but there are some problems I can't even begin to solve as I can't copy the given datas in Spyder (which I'm working with) For example, problem 18's triangle or problem 11's grid And I can't just copy paste the numbers and put them in a list by hand, so is there a solution for that issue ? Thanks in advance [link] [comments] |
Posted: 24 Jun 2021 03:22 AM PDT Hello you lovely bunch, I'm not really a programmer, more an engineer trying to solve a problem... Like the title says, I've got:
I'm trying to understand the best way of comparing each list to every other list, and giving a similarity score as a percentage between each. The goal is to: Group the shopping lists into clusters. Each cluster contains shopping lists that are 70% or more similar. I can do it in excel but it takes forever and grinds my PC to a halt - especially considering I would like to be able to run it over 1000s of shopping lists. I did it using the handshake problem because comparing list A to B is the same as list B to A My gut tells me graphs could do this - each list is a node and the edge-lengths are similarity... Tried using Gephi but can't get my head round it. What kind of programmer should I look for? Someone good at R or Python? Is there anything that can do this out-of-the-box or does it need something custom built? Struggling to know what to look for! I'm a marketing director with 10 years experience so happy to return the favour in any way I can if anyone can help :) Thanks a million... Pulling my hair out over this (what little I have left lol) [link] [comments] |
Element not found whatever i try Posted: 24 Jun 2021 10:05 AM PDT Hey guys, can anyone find the correct element for entering mail and password on this website ?Can anyone point me in the right direction. import time driver = webdriver.Chrome('C:/Users/Admin/AppData/Roaming/Python/Python39/chromedriver.exe') driver.find_element_by_css_selector( i keep getting this error NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="root"]/div/div/div/div[5]/div/div/div/div[1]/div[1]/input"} [link] [comments] |
Need help on finding a solution Posted: 24 Jun 2021 08:31 AM PDT do you guys know a way (Or program) to find the top people that are mentioning a specific topic on SNS or online? So a program that would find the top 10 people that are talking of bitcoin for example on their contents? In other words if you type the content in the program, it analyzes the top 10 people and gives you a list! [link] [comments] |
following post on social networks: SQL, NoSQL, Graph or other? Posted: 24 Jun 2021 04:09 AM PDT Hey guys, I was thinking about technologies that could be used and the structure of a social network, like Instagram, Facebook. My main question is regarding getting the latest posts from the people I follow. Thinking of an example of a user who follows 10k people, to render this page chronologically, I would need to consult the last posts of these 10k in a row, right? I currently use a document-based database (Firestore). I thought of storing an array with the ids of the accounts that the user follows, and reading the posts created in the last 3 days. So, for this case, if someone has been through a similar situation, is it better to structure it in a SQL database to take advantage of the power of queries and joins, or do I stay in noSQL, or suddenly the graphs served me better like neo4j? Or even another technology that I didn't even think about? [link] [comments] |
Complete Beginner at App Development Posted: 24 Jun 2021 06:32 AM PDT I've been interested in game development for a long time and now I want to develop apps rather than games as well. But my question is which languages and programs should I use? Like, in game development UE with c++ and unity with c# are the most popular ones. Which programs should I use to develop apps or the languages are just enough to develop apps? Most importantly which program and language should i use specifically for: 1- Windows 2- Linux 3- Mac 4- IOS 5- Android 6- Multi platform. Like, buildable for Windows, Linux, Mac (or mobile) I would like to hear detailed and specific answers .And if there are multiple answers for a section given above, please specify the best for you with reasons. Probably now you can understand how beginner I am. I'm open to all of your suggestions and recommendations. [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