What are some tips for reducing mouse usage while programming? Ask Programming |
- What are some tips for reducing mouse usage while programming?
- Google is known to use "monorepo" with billions of files. Does it mean all the Google products (major atleast like yt, drive, search ...) are in a single git monorepo?
- Why in C and similar languages the Main function returns an int?
- Can someone recommand some easy web development and CS (in general) topics?
- Trying to know what I don't know
- API to create an image (with text/details) and display it
- What would you choose between Flask and Golang as a backend to React for someone with no experience with either?
- I need help putting together a JSON template
- Languages that can be merged
- Naming question
- How to compile a mathematical expression at runtime?
- Can I rely on dynamically scrapping Google reviews for a production-level app?
- What programming concepts should I know to be familiar with a lot of languages because they mostly use the same logic and methods? Any documentation?
- Real-time map querying for X w/ set criteria in proximity?
- Referencing a file (forward slash path) from Windows is giving error while the same works for Linux
- User Authentication workflow for mobile application
- java database jar file?
- Does Python Unittest actually required Classes?
- How to highlight a specific part of text in SwiftUI text? [Help]
- How crucial is it to develop on the same system you're developing for:
- Generating Reports for Non-Uniform Data
- Is it better for my parallel processes to be long runners or short runners?
- I have a problem with Rock, Paper & Scissors.
- Mixcloud integration on WordPress?
What are some tips for reducing mouse usage while programming? Posted: 25 Jun 2021 10:43 PM PDT Currently, I use IdeaVim extension for IntelliJ and Vimium for chrome, so I don't have to use mouse most of the time when I am using them. But when I switch to other apps like slack, I sometimes have to use mouse. I really like the way we can open links using vimium. Is there something similar that we can use to control other apps using only the keyboard. Also, will tiling managers be a good choice? [link] [comments] |
Posted: 25 Jun 2021 08:25 AM PDT If yes, how do they manage such monorepos. Right from cloning to checkout, disk usage, etc [link] [comments] |
Why in C and similar languages the Main function returns an int? Posted: 25 Jun 2021 02:15 PM PDT So in the C lang (& c++) the main func is created to return 0, whats the point of that? Can you return other values or have it be a void func? [link] [comments] |
Can someone recommand some easy web development and CS (in general) topics? Posted: 26 Jun 2021 12:21 AM PDT I have my bachelor's thesis and I need to prepare 10 topics to talk about, about web dev and computer science.. I don't really have time to prepare due to working all day (12 hours to be more exact.. yeah..) and so I need someone to recommend me 10 easy topics that you find easy for yourself as a beginner.. any help would be greatly appreciated. [link] [comments] |
Trying to know what I don't know Posted: 25 Jun 2021 12:33 PM PDT For some background, I graduated with a BS in Statistics/Data Science. And coming from a research institute, the courses weren't very hands-on but rather theoretical, so I've always had trouble connecting the dots to practical, real life coding problems. For example, I just got assigned a project at work where I have to use python to recreate the same outputted data (which was previously created with SQL) that's shown in Power BI. Yes, I know how to code in python here and there (and same with SQL). However, I'm very lost and confused on where to begin. All I know is that I have the data coming into Power BI from our multiple data sources. And it's currently being manually created using SQL and may break down once we incorporate the new data coming in - making the current process tedious and inefficient. So the end goal is to be able to recreate the same table/output but using python instead for efficiency and flexible (?? not sure if thats the best word for it but essentially can easily incorporate data that's going to come from 2 new data sources in the near future) purposes. You may see my level of expertise from my scattered explanation here, but I'm really just trying to put into words my loopholes because I've never been able to pinpoint explicitly the faults in my understanding. Any tips on where and how to start? If you have any idea what I'm having trouble with and know some resources and/or books that you think may help, that would mean so much to me. Thank you in advance! [link] [comments] |
API to create an image (with text/details) and display it Posted: 25 Jun 2021 02:00 PM PDT Hi, I have some information in my code like book name, book author, publication date, etc. I was curious if there is an API (I'm new to APIs so preferably one with a lot of documentaiton) to be able to 1) create an image 2) overlay text on top of it 3) get that image 4) display it on my webpage? Something like https://www.bannerbear.com/ but free [link] [comments] |
Posted: 25 Jun 2021 02:54 PM PDT I'm actually an R Shiny developer, but I'm looking to branch out with some more heavy duty webapp development, and wanted to do a React app as a personal project. I'm tied between Flask and Golang as a backend. Flask would definitely be more applicable for my current day job, but Golang looks like it might open more doors in the future (i.e. it may be in higher demand). Does anyone have any opinions between the two? If there's a good working tutorial I could learn from with one of the stacks, that would definitely help me decide! [link] [comments] |
I need help putting together a JSON template Posted: 25 Jun 2021 06:02 PM PDT I am looking to build an astrology database, I figure it's a great project for me to take on and learn. Basically I'm looking to do something like this, for each date of the year: "January 1": [ { id: 0, }, { id: 1, }, etc.... ], "January 2": [ ], "January 3": [ ], and so on . . . . I realize the above is an imperfect skeleton with syntax errors, and so I was hoping one of the many much smarter people than I on here could help me put together something solid to get me going. [link] [comments] |
Posted: 25 Jun 2021 11:14 AM PDT Not sure if this the most relevant community to post this to but I just learned today that I can use SQL in Python. So now I'm curious if there are any other pairs of commonly used languages that can be used together. Also, why is it that Python and SQL can be used together? Can't quite wrap my head around that idea since it's not like we can use R and Python together. [link] [comments] |
Posted: 25 Jun 2021 03:19 AM PDT What field name is better ? And why ? or [link] [comments] |
How to compile a mathematical expression at runtime? Posted: 25 Jun 2021 04:19 PM PDT Hi, While I mention "compiling" in the title, my question is much more about abstract code design than it is about the inner workings of a specific language. For a current project of mine, I want users to be able to input simple math expressions (Think "A=B*C") which can then be evaluated whenever needed on given variables. There doesn't lie too much difficulty in parsing a string and then evaluating the expression based on some branch conditions. However, it would be quite bothersome (well, inefficient rather) to have to parse the same string every single time the same formula is needed to be run, where just the values of the variables might differ. So I've been thinking, what if that expression could somehow be "compiled", and then just evaluated on values fed to it? That ought to be more efficient. The problem is: I'm honestly not quite sure how I would go about doing so. What would a "compiled expression" even look like? There certainly are math libraries for most languages out there that probably do something similar, but I'm wondering, how should such a problem be approached? Basically, how do I get rid of all the branching? How do I achieve the equivalent of letting my program convert the expression to C code, call the compiler on that and then run that as an external process (regardless what language I'm using), which is obviously quite stupid? But now that I think about it, if my project is written in something that isn't compiled in the first place, such as JavaScript, even hard-coded expressions are probably not really properly compiled into something that can be executed quickly, no? I feel like I'm confusing myself here. Any ideas? [link] [comments] |
Can I rely on dynamically scrapping Google reviews for a production-level app? Posted: 25 Jun 2021 06:42 AM PDT I have an idea for an app, but it relies on dynamically scrapping Google reviews per user request. Google's Places API only lets me get 5 reviews at a time, so I need to scrape to get everything. However, if I scale my app, I'll be hitting Google a lot, and I'm not sure if I'm allowed to potentially profit off of scraped data? [link] [comments] |
Posted: 25 Jun 2021 07:10 AM PDT I feel like I should study programming in a more general way instead of hopping from one language to another. While learning a language helps ease the learning of another, I'd rather study a general documentation of some sort, regarding programming. Frontend or backend doesn't matter. Is there anything like that that isn't language-specific? [link] [comments] |
Real-time map querying for X w/ set criteria in proximity? Posted: 25 Jun 2021 05:33 AM PDT Firstly, lmk if there's a better sub for this question. I've been trying to find (or figure out if I need to make it myself) a way/program/app that uses google or Apple Maps info to search for example: I'm looking to move to a new place, I have an address of the new potential house, but I want to filter/check if specific amenities (supermarket, park, beach) are located within .5 miles of the address. Then, ideally, I'd like to reverse that and say: (maybe using, idk Zillow api) search for houses for sale where [specific amenities] are within .5 mile radius. And yes I know the real estate apps currently have similar filtering features, but my question is how to do that on a much more specific level. For example, say I not only wanted a supermarket within .5 mile radius, I wanted to say, show me houses where a Whole Foods is within .5 miles. Again, sorry if this is not the place for this question, please redirect me if so, or let me know if I'm just explaining something I'd need to hire a team of developers for… My thought is just that if someone has already built a site with these more detailed map query abilities, the people in this sub would be the ones to know about it [link] [comments] |
Referencing a file (forward slash path) from Windows is giving error while the same works for Linux Posted: 25 Jun 2021 02:02 PM PDT I have a gradle file which references another gradle file using: When opening the code in Android Studio, the above Gradle file is executed and with the same exact setup, it works for Linux but DO NOT work when done for Windows. What is the cause of the error and how to make referencing another file compatible in Windows? [link] [comments] |
User Authentication workflow for mobile application Posted: 25 Jun 2021 10:15 AM PDT Hey everyone, This is going to be more of a software design post. Before we get started, just for good measure, I'll just define these terms here. * End-User: the actual end-user of the application (resource owner of their personal Google account). * Client: The client-side mobile application (written in React Native) residing on the End-User's mobile phone. * Server: A backend server (AWS EC2 instance) that exposes APIs that are hittable by the Client. Okay, so now with the housekeeping out of the way, I had a question about an authentication workflow that I wanted to get some insight and criticism on. I'm designing a mobile application where I want users to be able to create an account for our product using Google (similar to how you can create a StackOverflow account using Google). (The reason for this is because I don't want to deal with password management and all the security concerns that may arise with that.) The way I am thinking of designing this workflow is:
So this is what I have so far for users to "create accounts" on our application and be able to login to it at a future point. The questions I have so far are:
I have read up on the differences between Authentication/Authorization, and while I understand that OAuth 2.0 is an Authorization framework, I just want users to create accounts with Google and not necessarily use OAuth 2.0 to hit any Google Service APIs. I understand that by doing that, I am essentially using OAuth 2.0 as Authentication instead, but isn't that technically what StackOverflow is doing as well? I would very much appreciate any sort of feedback/criticism on this architecture! Thanks! P.S.: I am fairly new to the area of security engineering, so my understanding of this subject may be lacking in many areas. [link] [comments] |
Posted: 25 Jun 2021 02:00 PM PDT If I did a javax connect sqlite desktop app and make a jar file, Will jar file run in another pc without installing sqlite driver on the new pc? [link] [comments] |
Does Python Unittest actually required Classes? Posted: 25 Jun 2021 09:03 AM PDT I'm getting a little confused by unit testing in python. I've been routinely told that unittest requires the use of classes (which would be a headache since the project I'm working for currently at work isn't object oriented and has no classes). I was told that while other python testing libraries didn't have this limitation, unittest did. But then I saw someone doing unit testing on a program that wasn't object oriented. So I was told that only the test file had to be inside of a class, but that the file BEING tested didn't need classes. Great. But now I'm watching tutorials and seeing people who are using classes in neither their original file, nor the file where they're writing the unit tests. Does unit test require classes or not? [link] [comments] |
How to highlight a specific part of text in SwiftUI text? [Help] Posted: 25 Jun 2021 11:55 AM PDT I am trying to a build an app where user can highlight a specific part of of the paragraph. Suppose There is a long paragraph in Text() , Then i will use gesture to highlight a specific line or multiple line of that paragraph. Then i will save the highlighted text in only in database. I am new to the swift and i not able to figure out how to achieve this. It will very helpful if someone guide me on this. [link] [comments] |
How crucial is it to develop on the same system you're developing for: Posted: 25 Jun 2021 05:49 AM PDT I know a lot of companies run their servers on linux machines for obvious reasons. And therefore there are a lot of developers who do their work on linux machines. But is that necessary? I was told when I started my first software development job that we work with linux so I would need to create an ubuntu virtual machine. But I'm actually not 100% sure why. Our files are all stored on github. The servers that they are run on I'm told are linux. But why does the machine I use to make code matter? If the answer is obvious, my apologies. But if I'm just using a code editor to author the code, should it really make a difference? The python code I'm writing will be interpreted on the machine that runs it, so as long as I'm careful with dependency management etc, is it really 100% important that I do all of my development for the same device I'm developing for? [link] [comments] |
Generating Reports for Non-Uniform Data Posted: 25 Jun 2021 10:37 AM PDT Our clients collect data via a number of surveys. Each survey is different. The data ends up being collected initially as key value pairs. eg, there is a table that records the responder, the question, and the answer value. This allows the client to define their surveys however they want, and collects the data fine. To generate a report for a single response to the evaluation, we pull the rows for a given response and combine them with the questions, which is easy enough. This is really just outputting the data, no real summarization or aggregation. Now we need to be able to generate reports that cover all the the responses for a survey at once. We need to be able to do things like summarize for a given question how many times each response was sent and graph them. There are two primary problems:
Does anyone here with experience in this type of reporting have some advice or are you able to point me towards a solution? Ideally the programming involved would be retrieving the kvp data, transforming it, and putting it somewhere that a reporting tool could process/understand and generate the reports for it. It seems like manually programming the reports is just a losing battle and the UI for it really complex. Thanks for any advice. [link] [comments] |
Is it better for my parallel processes to be long runners or short runners? Posted: 25 Jun 2021 05:43 AM PDT I have the following options- I can put a few thousand entries of data in a small function and run it as a parallel process until it finishes. Or I can put a hundred entries through a big (main) function, and it will run that small function about 10-100 times per entry. Is there going to be a difference in performance? My gut tells me there might be Memory benefits, but the processor speed is the real bottleneck. Thoughts? [link] [comments] |
I have a problem with Rock, Paper & Scissors. Posted: 25 Jun 2021 06:00 AM PDT I have a problem with Rock, Paper & Scissors. In my "click" event, I return the userChoice correctly, but when I try to get the computerChoice everything goes crazy. ``` let possibleChoices = [Rock, Paper, Scissors]; Rock.innerHTML = ` <i class="fas fa-hand-rock" value="rock"><p>Rock</p></i>`; Paper.innerHTML = ` <i class="fas fa-hand-paper" value="paper"><p>Paper</p></i>`; Scissors.innerHTML = ` <i class="fas fa-hand-scissors" value="scissors"><p>Scissors</p></i>`; // Create functionality let choices = possibleChoices.forEach((possibleChoice) => possibleChoice.addEventListener('click', (e) => { userChoice = e.target.getAttribute('value'); randomChoice = Math.floor(Math.random() * possibleChoices.length); computerChoice = possibleChoices[randomChoice]; console.log(userChoice, computerChoice); }) ); ```
``` <button><i class="fas fa-hand-rock" value="rock"><p>Rock</p></i></button> ```
``` computerChoice = possibleChoices[randomChoice].getAttribute('value'); ``` it returns 'rock', 'null' And many other ways with different results, but never the value. What do you think the problem is? Here is Github repository [link] [comments] |
Mixcloud integration on WordPress? Posted: 25 Jun 2021 04:48 AM PDT Hey 👋 would it be possible to integrate a Mixcloud account to a WordPress site, where each new upload creates a new 'blog post' on the site, featuring the image and text on that individual Mixcloud upload? It's for an Internet radio station where every show is uploaded to Mixcloud to listen back to after broadcast. Thanks! 🙌 [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