Poke-Like Feature Questions Ask Programming |
- Poke-Like Feature Questions
- What specs should I prioritize in a laptop for programming and a software engineering degree?
- For people who do a lot of peer-review, what factors do you look for?
- Why does HackerRank blow so much, and why do companies use it?
- How to get over coding anxiety, as in (probably) knowing what and how to do it, but you always procrastinate to do other smaller, simple and useful but not so important things because of fear of failure, specially when it's big projects or things that will take some time commitment?
- One or two sentence summary about how notifications on an app works?
- Programming in the outdoors: Any recommendations for a compact, folding, portable chair ?
- My service has to make a calculation that involved a bunch of external API calls that slows it down. How can I speed it up?
- Color to English text
- How to fix this youtube error?
- Is there any alternative to tf.gradient () or any other way to compute gradient in python ?
- Issue with clicking button in Windows
- Valgrind on the python interpreter shows tons of errors
- I want to filter audio by a game sound and make my keyboard light up, but I don't know where to start.
- Seems like it would be great if there were some sort of central body to legislate the official best practices for security & software development? A lot of times I find myself Googling questions which seem like they should be convention but there's still ongoing debate about it.
- i have this problem constantly, does anyone know how to fix this?
- Get the two instances with highest items in common
- Hey! Willing to pay, I want to build a comparable company analysis program.
- I cannot figure out why I am getting an "Out of Range" error on this.
- Remote project
- Youtube keeps changing every elements' XPath every so often. And how to not edit my code because of it? smarter way?
- What's a good answer to give in interviews when they ask you "where do you want to be in 10 years time?"
- Recommendations for TV Guide Listing API (United States)
- Programming beinnger course suggestions?
Posted: 29 Mar 2021 08:53 PM PDT Hello! So I've been trying to create a feature for a website that acts just like the poke feature on Facebook. I guess my question is how do I even begin? I'm not too adept in coding personally so I'm not sure where to start. The feature would be a button that when clicked will send an immediate notification to the other user that they've been poked by me. Are there any features similar to that that I could look into and find out how to build? If anyone has any knowledge on this I would love to know!! Thank you! [link] [comments] |
What specs should I prioritize in a laptop for programming and a software engineering degree? Posted: 29 Mar 2021 11:37 AM PDT What components should be my priority in a laptop for programming in general and maybe a little bit of light gaming on weekends? From what I've gathered I should aim for the most powerful processor and most ram I can afford for programming. How does Apple's M1 compare to the i7 and AMD chips for programming, are there any limitations? How much ram memory is recommended? After Processor and Ram, I've gathered that a good screen is also very desirable and one should get the best one they can as It will make the programming experience more comfortable. As for storage, SSD is preferable but maxing out SSD isn't as important as maxing out ram ou processor because you can always get an external sdd later on. How important are graphical units for programming? Are they used in any area, or is it just for gaming and photo/video editing? I think I remember reading they could be relevant for data science/ machine learning, but maybe I'm wrong. Should I at least spend some extra on this for some light gaming? Am I missing anything else? Maybe a good webcam ? [link] [comments] |
For people who do a lot of peer-review, what factors do you look for? Posted: 29 Mar 2021 05:38 PM PDT I have to start giving some peer-review for a colleague, but I could use some tips on how to give it effectively. How do you do it? [link] [comments] |
Why does HackerRank blow so much, and why do companies use it? Posted: 29 Mar 2021 10:31 PM PDT I had to take a programming test on HackerRank for a job interview. No problem right? I registerd an account, logged in, and started taking it. The first question was about summing the series N/k0 + N/k1 +... until N/kn =1. Easy right? Well, you'd think, but they fucked up the final test case so my answer wasn't accepted. How do you fuck that up? Well, I did the rest of the test and got all correct answers, so I chalked it up to a one-time error and moved on. A few days later, I noticed HackerRank had a "Skills" section so I went over and checked it out. I saw a few "Problem Solving" options, and having a ton of experience, I figured I'd juice my resume a bit on there and start with the easy one and move on to the intermediate one the day after. The first, and only quesiton I did, was simple: For a string s and a length k, find the substring of length k with the most vowels. Easy, right? Well, not so: I wrote a totally correct implementation that was rejected on some test cases, not because it was wrong, but because it timed out. I thought to myself, wow, that's annoying, but let's just look at the inputs and see what might be happening. All of the failed test cases were hidden, with no information given other than "Optimize your program." OK I thought, how absolutely fucking annoying, but I rewrote my initial approach which used an admittedly lazy iteration to check for the vowel into an if statement and retried. Failed again, with no new information given. So I tried stuffing the if statement into another function and just filtering the substrng with filter(), hoping that would be faster. Nope. So I wasted 30 minutes thinking about this dumb ass simple problem just because HackerRank decided my program ran past an arbitrary limit on inputs you aren't even allowed to see or understand. How the fuck do websites like this survive? So I'm never using HackerRank again. [link] [comments] |
Posted: 29 Mar 2021 09:55 AM PDT Maybe this doesnt apply to many here, but I'm a graduate student working on machine learning and computer vision. I have self-taught myself programming in order to be able to do this. I've spent countless hours in both theory and practice and have actually managed to do (what I personally think) neat things, nothing super amazing but at least made me feel like I know what I'm doing. But at the same time, I spend a lot of time just thinking about a program I should do for something, but then don't because I fear it will take me too much time or that I won't actually be able to implement it, and then go to do something easier. The worst part is I've noticed many times these things I am "scared" of doing, once I sit down and focus on it, I manage to do it in a few hours/days of time. I know this sounds kinda ridiculous but I think the problem is because since I'm not a CS student and don't have as many hours programming as others I don't feel capable to do this, and that fear, anxiety and stress of not being able to keep up with others standards is what keeps me down the most, not my ability itself (which could definitely improve but I don't think it's the main bottleneck). Does anyone have any techniques or suggestions to deal with these kind of problems and being a more confident programmer, specially when it comes to venturing into programming the unknown or what hasn't been done? [link] [comments] |
One or two sentence summary about how notifications on an app works? Posted: 29 Mar 2021 01:47 PM PDT I know this sounds weird, but for an application for a computer science programming course it asks to describe how a feature of an app works (an app you propose). Has a very short word limit. I have taken an intro to programming course, but don't know much. The feature I would like to talk about is sending push notifications but I cant seem to understand how to summarize all these giant walls of code into like "Using Java script something something class function.... notifications will be sent according to what the user selects..." I have no idea but would like to try to answer that part of the question! [link] [comments] |
Programming in the outdoors: Any recommendations for a compact, folding, portable chair ? Posted: 29 Mar 2021 01:51 AM PDT Hi. Given the circumstances, I find myself wandering around seeking isolated and inspirational spots to code in the outdoors. A typical setting is open countryside, perhaps by a shady tree etc. That also serves as motivation to get some fresh air and exercise (by way of walking to and fro). Sitting on the ground hasn't been working out very well for me and I wondered if there are reasonable lightweight, compact, foldable etc chair options that folks might know of and could recommend ? FWIW I usually take a lightweight backpack with my laptop, a book/writing pad, water and snacks and I usually end up spending 3-6 hours coding/ruminating/reading. Any insights appreciated! [link] [comments] |
Posted: 29 Mar 2021 06:32 PM PDT I'm using Java/Spring boot. My Microservice A gets an API call to perform a calculation. Part of this calculation involves a list of Objects that each need a sub calculation done on them that involves making a few rest calls to an external Service X to get data, but each of these sub calculations is independent and they don't need to be done in any order and have no relation to each other. Currently I have Microservice A just iterate through this list of objects and do its calculations on them one after the other but it's really slow entirely due to the time the rest calls make, it'd take less than a second if it had direct access to the data and didn't need to wait for responses to get it (waiting until responses are received before making more calls definitely is a big part of the problem). I'm assuming some type of threading would make this a bit faster but I would rather not have to muck with threading too much if I don't have to because I have little experience with it. My thought is that if I make a Microservice B that is called for each of the Objects in the list that when I get down to all the containerization and shit at the end that the adaptive scaling or whatever that shit is would be able to spin up a bunch of instances of Microservice B that would be making their own calls and not be blocked by waiting for each other to finish and that would help solve my problem and make things happen faster. If there is still a bottleneck on how quick Service X is able to fulfill these requests because it can only handle so many rest calls at a time or whatever that's okay because it's not my problem. I'm working with people that control Service X so I can just tell them it's their fault [link] [comments] |
Posted: 29 Mar 2021 10:17 PM PDT I'm hoping to create a program which takes a color as an input (hex codes, pixel brightness, et cetra) and provides a English word (brown, yellow, et cetra) for each color. And, I want it to have color ranges, so that it can represent every 16 million different colors with a few different English words (for example, (0,0,0) is black, and (0,1,1) is also black, (255,0,0) is red, and (252,10,5) is also red. The words doesn't have to be precise; I don't want words like "coral red" or "pale green" appearing on my program. I just want them to be vague; like red, purple, blue, green, pink, white) Is there a already created table for such use, or do I have to make it by hand? And if I have to make it by hand, can you please suggest some easy ways to do it? [link] [comments] |
How to fix this youtube error? Posted: 29 Mar 2021 10:15 PM PDT |
Is there any alternative to tf.gradient () or any other way to compute gradient in python ? Posted: 29 Mar 2021 02:25 PM PDT |
Issue with clicking button in Windows Posted: 29 Mar 2021 04:19 PM PDT I'm trying to find the exact mechanism for why you can click on a button in windows. Like a classic windows 7 type button, and if your cursor moves when you click the button, it doesn't do the action. It highlights the button in various showing it was depressed, but not activated. I'm wondering what this is called because I'm having an issue at work with a program and sometimes I'm clicking buttons quickly and they're not being pressed and the program doesn't give me an indicator that the action has been taken when it IS pressed so I don't know if it has been either way, if that makes sense. Any help would be appreciated! [link] [comments] |
Valgrind on the python interpreter shows tons of errors Posted: 29 Mar 2021 04:06 PM PDT My question is basically, is this because the python interpreter is too complex a program for valgrind to analyze it correctly? Is it because there are somehow huge problems in the python interpreter that no one bothered to do something as simple as run valgrind on it to find (I somehow doubt this, but that is what it would indicate to me)? Or is there something else going on more subtle? I checked on both the python installed on my system and compiled cpython to make sure and both have mostly the same output. Tons of use-after-free and a couple conditions based on uninitialized values or use of uninitialized values. running running This one is especially high, and only gives 477 errors when using the systemwide python on my machine, I can't imagine that these reflect real bugs because otherwise I feel like a segfault would happen long before you ran any real program on it. But while false positives for memory leaks make sense, I don't see why valgrind would report so many actual seemingly critical errors. What is going on here? [link] [comments] |
Posted: 29 Mar 2021 01:04 PM PDT I want to program something for a friend of mine. He has a Logitech G910 and he wants his keyboard to light up, when a certain sound plays (loot drop in a game). Since the game doesn't have any publicly accesible API for that, I figured it would be the easiest to look for the sound in his audio output, but I don't know where to start. Can any of you help me out? I don't even know which language to use (I know Java and Python, mainly. A few otehrs, but only not much). [link] [comments] |
Posted: 29 Mar 2021 08:52 AM PDT On a side note: is it a good idea to whitelist IPs and store them in the DB if they successfully authenticate two-factor authentication and check "do not ask me again for this device"? Is that how it goes? Because I've been Googling this for a bit and I'm not sure if this is the best practice to store IPs in the database and query from it every time I do authentication for a user. [link] [comments] |
i have this problem constantly, does anyone know how to fix this? Posted: 29 Mar 2021 12:40 PM PDT #include <stdio.h> #include <stdlib.h> #include <locale.h> void main(){ setlocale(LC_ALL, ""); int n1, n2; char op = '+'; //inputs do user printf("digite os valores: \n"); scanf("%d %d", &n1 &n2); //error here ---------------------------------------------------------------------------------------- error: invalid operands to binary & (have 'int *' and 'int')| [link] [comments] |
Get the two instances with highest items in common Posted: 29 Mar 2021 12:18 PM PDT EDIT: this should be done in PYTHON I'm trying to analyze a database of trucks and the items they carry to find out which two trucks are the most similar to one another (share the highest number of items). I have a table similar to this: In the above example, `16` and `13` are the most similar trucks, as they both have the `294` and `85394` items. The way I'm doing this is like the following pseudo code: So I would end up with something like this: I understand this is not the most efficient way as I'm going ever the lists too many times and that shouldn't be done. Is there a more efficient way? [link] [comments] |
Hey! Willing to pay, I want to build a comparable company analysis program. Posted: 29 Mar 2021 12:10 PM PDT Hey all! So in the finance world, we often use the DCf and CCA valuation methodologies. One of my buddies made an automated program for the DCF, and that really inspired me: Why not create one for the Comparable Company Analysis? If any of you would know how to go about developing a program like this let me know! I'm not looking for someone to build it for me, but teach me how to build it. I'm willing to pay as well! [link] [comments] |
I cannot figure out why I am getting an "Out of Range" error on this. Posted: 29 Mar 2021 03:37 PM PDT Why am I getting an error at line 341 I'm, sure I am simply overlooking something, but what the F am I missing? [link] [comments] |
Posted: 29 Mar 2021 10:45 AM PDT Im trying to figure out a way to have a client be able to turn on off LEDs on multiple Pi's. Basically the user would select the pi they want to turn on off the led, and click on/off and the led responds appropriately. However, without the web server running locally on the pi I'm not how to do this. I was thinking I could set a field in the DB that a pi is listening on, and when that field changes respond appropriately. Just curious if there is a better way to do this [link] [comments] |
Posted: 29 Mar 2021 06:39 AM PDT Will that change elements' ids, or they won't? I know they will definitely change class names. [link] [comments] |
Posted: 29 Mar 2021 03:47 AM PDT |
Recommendations for TV Guide Listing API (United States) Posted: 29 Mar 2021 09:40 AM PDT Does anyone know of or have experience with tv channel listings APIs? There seem to be a few out there but they are expensive (hundreds to thousands of dollars per month for a modest number of calls). I need to be able to target a local area and specific TV provider as you can do on the TV Guide website, for example. I'd also be willing to scrape a website but can't really find a good candidate for that either. Most relevant sites are highly-dynamic using Javascript to filter geographic areas and providers. I wasn't having much luck with BeautifulSoup and I intend to run this on a headless server (like a Raspberry Pi) so I believe that would eliminate Selenium. If you're curious on the app itself, I'll include some details below. Background on the app: I'm creating an app for personal use by one shut-in elderly relative (100% non-commercial and I'm even doing the work for free). Thus, it would be nice to find something free. The idea is a single page that shows TV listings and changes the channel with a single press. It's not a smart TV so it will interface with an IR LED to handle the TV changes. I did find one API that allowed 50 calls per month on a developer plan but, unfortunately, that's not quite enough. I suspect that I'll need a few hundred calls per month if the app is used 10-15 times per day by the user. If needed, I can create a generic channel lineup but it would be cooler if it actually showed you what was on before you changed the channel. [link] [comments] |
Programming beinnger course suggestions? Posted: 29 Mar 2021 09:14 AM PDT My 16 year old niece surprised me big time this weekend when she told me she wants to learn programming and would like to know where to start. I would like to know if anyone has some good suggestions for a good coursera,udemy or even youtube course. Im gonna be teaching her linux sysadmin stuff but im super keen to sign her up for a paid course and help her work through it. [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