Is multiple databases logical? Ask Programming |
- Is multiple databases logical?
- Programming practice problems
- Canadian graduate: job hunting dos and don'ts
- Tips on how to get started
- How to get started with python?
- Traveling Salesman problem with GA (Processing)
- Programming to automate work tasks
- What is straightforward list of recommended technical skills/knowledge for software or full stack web development?
- best approach for notification/activity log ?
- What exactly is NodeJS?
- Fundamentally misunderstanding Java Scanner class.
- Would you like to make an app?
- Trying to learn Microservices and containers (among other things), would this idea be a real-world use case for them?
- What takes time when connecting to WiFi?
- [c] I'm getting an error from semctl with errno = 22 what does this error mean?
- First SE role, no SE experience
- My RoboArm doesn't respond
- 5k files, remove header (eml)
- Need help deploying/executing a .jar file
- Will programming become generally easier to do but harder to be paid well to perform?
- Mobile App Development vs Desktop one
- 2D Subset Sum Problem
- 3D reconstruction - merging point clouds?
- Resources to Learn C# from Scratch
- I want to create a Facebook marketplace bot
Is multiple databases logical? Posted: 29 Apr 2021 10:01 AM PDT very noob question. But let's say some has these features; the ability to send and display currency, a user's profile info (name, photo, uploaded photo/video), and a catalog of videos accessible throughout the platform. Would multiple SQL databases and a CDN make sense? This is a general question but I simply chose to highlight the specifics. [link] [comments] |
Posted: 29 Apr 2021 04:40 PM PDT I'm wondering if you all have any suggestions for simple projects that are good for using to understand new languages or coding styles? Something in the vein the Advent of Code challenges. I usually end up working on very practical and somewhat boring problems, and I'd like some more fun problems/puzzles to work with. [link] [comments] |
Canadian graduate: job hunting dos and don'ts Posted: 29 Apr 2021 12:18 PM PDT Hi, I'm a recent graduate in Ontario, and I was wondering what red/green flags I should be looking for in job descriptions/application processes. For example, recruiters who contact me out of the blue seem sketchy. Additionally, I see a lot of job postings that seem to be jibberish, as in the person writing it has no technical experience, what's up with that? I appreciate your help! [link] [comments] |
Posted: 29 Apr 2021 07:43 PM PDT Hi! I have an excel file with ~150 names. I need to enter each one on to a text field on a website. Press "search." And then paste one of the results back in the excel file. How do I get started with this? Any leads? I've been out of coding for a while but I'd be happy to know where to start. Thanks! [link] [comments] |
How to get started with python? Posted: 29 Apr 2021 03:41 PM PDT So I want to seriously get into coding. (Python). (Important!: I'm a 13 dude who doesn't have any money)I watched a video abt it and it wasn't helpful at all. So is there a way where a I can learn python for free ? I don't care if it is a video, a website or even a game. If yes can yall also tell me a good code sculptor? [link] [comments] |
Traveling Salesman problem with GA (Processing) Posted: 29 Apr 2021 07:06 PM PDT Hi everyone, I looking for someone who can help me solve the Traveling Salesman problem with genetic algorithm. Im using Processing. If someone has a file with something that could help me I would love it ! Or if someone can give me some key fonction or more ! [link] [comments] |
Programming to automate work tasks Posted: 29 Apr 2021 08:18 AM PDT Hello Programmers of Reddit! I am hoping that you all may be able to help guide me in the correct direction so I can begin addressing an issue I am having with work. I believe that a LOT of the daily work I, and many others do, can be automated through programing in some way. I will provide as much information about the job, my daily routine, and what I am trying to do below. I work for a state government agency that deals with criminal cases, law enforcement agencies, and victims of crimes. A typical day starts by receiving new criminal cases from the day before. I use google chrome to view the cases but any browser works. I read the summary of the case and begin assigning "to-dos". The "to-do" section is a tab on the criminal page with a drop down menu with specific options. Some of the to-dos are assigned to my Admin but many of them I personally take care of. Most of the ones that I do involve requesting evidence from law enforcement agencies. Each has a different process to do but most just require filling out an online forum. Below is a example of a case to better illustrate what I am talking about. This morning I received a new "hit and run case". I read the facts of the case, see that the victim called 911 after the person who hit them ran after the accident. The officers were able to locate the person and arrested them. I begin assigning to-dos. -911 (Admin) -Offense Report (Admin) -Body Worn Camera (Me) -Dash Camera (Me) -Call Victim (Me) -Get vehicle estimate (Me) To request the body worn camera and dash video, I need to go to a separate webpage and fill out a form using the Defendant's information. Once I have requested, I need to go back to the to-do section and indicate that I have started the process. I want to know what program/language/whatever thing I need to do to start automating this process. Nearly every Hit and Run has the same "to-dos", every Theft has the same "to-dos" as every other theft, every DWI has the same "to-dos" as every other dwi. I would like to figure out ways that the program could recognize the type of crime based on the Charge, and assign the appropriate to dos. For example. A new hit and run comes in, the program sees that it is a "Hit and run" and automatically assigns the appropriate to-dos. If possible, to even begin requesting the evidence based on which law enforcement agency it sees. Please let me know any information you can give me so I can start learning how or what to do to makes this process automated. Even if this type of work is far beyond my abilities/comprehension, I would still like to have some knowledge to bring when I contact IT. [link] [comments] |
Posted: 29 Apr 2021 10:51 AM PDT (cross-posting with r/careerguidance) TL;DR
Some background Being an intermediately experienced programmer with a passion, I have been wanting to acquire as many technical skills as I can for software development. Some research has lead me to topics I have 0 clue about: databases & concurrency, Node.js, Angular, React.js, SQL, etc. (forgive any misuse of any terms). Further research into these terms has gotten me even more lost, like watching countless tutorials on Node.js on Youtube labelled 'for beginners', which use jargon that they make seem obvious to any beginner but which I have never heard before (e.g. 'Node,js uses a single-thread event loop'). My goals are to develop a workable set of technical skills in software or full stack web development given that I am familiar with the JavaScript, Python, HTML, and CSS fundamentals. I am currently leaning toward learning/understanding Node.js, React.js, Angular, and creating a portfolio website with projects I've completed. However, I am getting lost with all the information online that seems to have no starting point, and so I am asking the developer community for some pointers. [link] [comments] |
best approach for notification/activity log ? Posted: 29 Apr 2021 08:39 AM PDT hey everyone, i'm trying to implement a "recent activity" log for users of a site so they can see what's happened recently when they login (this has nothing to do with push notifications/etc). the site obviously has users (userID) and each user can be tied to an organization (organizationID). there's a junction table that ties users-to-organizations, so it's a many-to-many. a user may do things in the site that for an organization (ex: create an event for that organization/etc) and we want everyone to know what is going on for that organization lately. quick erd/layout (by no means complete)...
the way i see it is there are 2 ways to track activities that pertain to the organization. method 1: create an activityLog table that logs events against the organizationID:
every time someone logs in and I want to generate the recent activity log, i would query the activityLog table and join to userInOrg and filter on the currently logged in userInOrg.userID. i'd probably have to join to the organization table too so that I can pull in orgName/etc as well as join to the user table on userIDWhoPerformed so i can list who did what. the downsides here are 1) i'm running that query every single time that JOINs activityLog to userInOrg (and also the other 2 tables) method 2: create an activityLog table that logs events at the userID level:
every time an activity occurs, i immediately query the userInOrg table and log everything into activityLog for the users that are relevant at that point in time (each user gets their own record with their ID in userIDToNotify). every time someone logs in, i just have to query the activityLog table and filter on the current user ID where it matches userIDToNotify (of course it would be indexed). i would once again have to join to the org table to get the orgName/etc and to the user table on userIDWhoPerformed to get the persons username. downsides here are 1) redundant data - a more or less duplicate record for every activity for each user tied to an organization. 2) would have to make sure this "pre-logging" doesnt affect/slow down responses to the Users when they do things (easy enough) so there's no negative impact to the UI. other thoughts... A) i realize method 1 would allow new users in the organization to inherit the history of organization's activities for all of time (unless I filter for dateTimeAdded to org -vs- activityDateTime). not sure i care either way about this right now B) in method 2 i'd still have to JOIN to other tables (to get the orgName and username of the person who performed the activity), so method 2 only removes one JOIN to userInOrg so i'm not sure the performance benefit would be that great C) in method 2 i could theoretically customize each users notifications (ex give a different one to an admin of an organization -vs- a regular user). not sure i actually need to do this at all. D) in terms of the number of rows of users and organizations, I mean reasonably, i would be thrilled if it were a couple thousand or tens of thousands or hundreds of thousands. we aren't talking billions here. however, there could easily be 10's millions of records in activityLog itself. E) as I write this out, the probable lack of huge benefit in (B) because of the still need to JOIN to the org and users tables and (D) knowing that this data set is probably tiny in terms of databases, I think the performance of the dynamic approach #1 wouldnt be soooo bad. F) if i do ever implement push notifications for mobile apps/etc, it would be more closely aligned with method #2 (however, i would probably make that into an entirely separate system) recommendations? Any suggestions on what is the better approach? To dynamically figure out which records the current user cares about via query on page load or to just have that list of events pre-parsed and a quick lookup each time. I run into this problem time and time again and dont have a strong rationale for either approach. Thanks! [link] [comments] |
Posted: 28 Apr 2021 10:30 PM PDT I am familiar with how the web works overall, and how full stack software developers use front-end and backend frameworks, along with a database to build web applications. For example Flask, Angular, and PostgreSQL. In addition, I often read about MERN (and MEVN, MEAN…you get the point) - MongoDB - ExpressJS - ReactJS - NodeJS If expressJS is the backend framework...then, what exactly is NodeJS? A simple Google search yields: "Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser." Can someone explain what this means to me, and why it is important? Is this comparable to, say, Java's JVM, but NodeJS relates to JS instead? I'm trying to compare and contrast different stacks and would appreciate an easy to understand explanation. Thanks [link] [comments] |
Fundamentally misunderstanding Java Scanner class. Posted: 29 Apr 2021 10:53 AM PDT Hello! My wife is taking a beginner programming class in Java, and she's having trouble with Files and Scanners. In my quest to help her understand it, I realized that I don't really understand it myself. For example: It seems the consensus is that each program only requires a single Scanner object. But if that's the case, how do you handle when a program needs to take input from multiple sources? Say a program needs to take a user prompt in the console, but you'd also like to use the Scanner class on a File object to easily loop through the file and use methods like nextLine(). How would you handle that with only a single Scanner? Secondly, what actually does the close() method of Scanner do? My wife seems to think that using a line like Scanner inputFile = new Scanner(f) "opens" the file, and close "closes" the file, and we use close because it's the responsible thing to do. But the opening and closing a file makes sense on an OS to me- you're opening it in a program, starting a new task, and when you close it, you end that task. Is the file actually being "opened" somewhere? I'm guessing not. And if not, what does "closing" it actually mean? (I googled that for a while and could not fine a decent answer. The documentation just says "it closes the Scanner"). And you can close system. in , so how does that relate to all of this? Can Scanners be "re-opened"? Is that even useful, or should you just be closing Scanners (particularly, Scanners with files) and the end of each program? And lastly, what's even the purpose of the Scanner class at all? Why do we need a class at all to get input? Does Java not have a Console.ReadLine() equivalent that we can just set to a String variable? Sorry, I know it's a lot of questions, but I just like to understand these things as much as I can so I don't spread misinformation or use a bad analogy. Thanks for any help in advance. [link] [comments] |
Would you like to make an app? Posted: 29 Apr 2021 07:53 PM PDT Just kidding, help me make a webpage to get me to fight tucker carlson he needs guy in the face. I know reddit can do it. [link] [comments] |
Posted: 29 Apr 2021 10:04 AM PDT tl;dr is an asset management system that does image and video conversion + editing, stores analytics on usage, and needs a robust authentication and authorization system a legitimate use case for Microservices? When I'm learning something new, instead of just following all the tutorials directly, I like to try to adapt the tutorial and apply the lessons to a real-world app that I want for myself. But I also like it to be a legitimate use case for that technology or concept that I'm attempting to grasp. This app would be a long evolving (over years) app that I would add to when I want to learn something new (e.g. the auto-tagging). With that said, I'm wondering if an asset management software with the following features would be a legitimate use case:
Based on the reading I've done and the videos I've watched so far, my thought was to break it up like this:
My reasoning for laying it out this way is I would expect there to be times when I upload one small jpg, and other times when I upload 80gigs of GoPro video from a day on the mountain and I would want it to scale how many instances I have working on video conversion. The analytics one I have separate because, again, I would expect that to get pretty large at some point with the amount of data I hope to collect. Is this a legit use case or should I try to come up with another idea? If you were building this would you build it as a monolith or services? [link] [comments] |
What takes time when connecting to WiFi? Posted: 29 Apr 2021 03:33 PM PDT Like between the moment you enter the correct wifi password and the moment you can do a http request. [link] [comments] |
[c] I'm getting an error from semctl with errno = 22 what does this error mean? Posted: 29 Apr 2021 02:35 PM PDT [link] [comments] |
First SE role, no SE experience Posted: 29 Apr 2021 02:23 PM PDT Hello, I have secured an internship at a top tech consultancy company as a SE. I am experienced in data science processes (Python, SQL etc.). But I have no experience in the SE life cycle and I am not from a Computer Science background. They use JavaScript at this company and I was hoping someone could tell me the best way to get prepared and learn the fundamentals of SE. Any resources or advice appreciated! :) [link] [comments] |
Posted: 29 Apr 2021 09:40 AM PDT Hey friends, im learning programming and as a little project i tried doing a RoboArm with an arduino, sadly im having a lot of trouble with my code i'd guess. All the motors work fine by themselves but as soon as i try to plug two motors at once, they just cease to respond, no one of them work and the arm just gets super weird by shaking itself around. If anyone can help me out on this one, it would be great, thanks :) [link] [comments] |
Posted: 29 Apr 2021 09:01 AM PDT As the title suggests, I have a little over five-thousand eml (email) files, which are plain-text/HTML. I have the same multi-line HTML header (and eml header) on many of these files that I want to programmatically remove. The headers are the same, but I'm not sure how to do this with such a large quantity in the fastest time possible. I'm thinking python3, as I'm best at it. So far, my idea is to pipe/cut ls output to get a list of file names, and individually open each of them, regex sub it out of each file (I haven't looked too much into multi-line regexes, and I know I'll have to escape a lot), and close each individually, but I don't know if this is the fastest method to complete this, or if there is some program already available? semi-pseudocode of what my current plan is below:
[link] [comments] |
Need help deploying/executing a .jar file Posted: 29 Apr 2021 12:31 PM PDT Hi all, I'll try to keep it as straight to the point as I can, I created a job in Talend to pull data from one table to another in my DB, i then extracted that job as an executable .jar file. I then imported that .jar fil(as a stand-alone) and it's dependencies to eclipse IDE, and am able to execute the .jar from within eclipse and it works fine. Using the cloud foundry plugin for eclipse I am connected to my server within the ibm cloud foundry, and am trying to add the project to the server using the plugin, and am getting a few different errors "Cannot invoke "org.eclipse.jface.text.ldocument.setdocumentpartitioner because "document" is null" So I tried to deploy using the ibm cloud foundry CLI, and get errors related to my build pack when I just try to use the java_buildpack, but it actually deployed using the liberty-for-java buildpack even though it's just a .jar and not an actual web application, but it is not actually executing it's just sitting there with a status of "running" or "started" but I don't know how to actually execute it or where to. I'm not sure if this is because the buildpack is incorrect but somehow worked to get it deployed. So any tips on how I can deploy just an executable jar file into cloud foundry, then execute it preferably from eclipse(but anywhere else works too!)would be super appreciated! [link] [comments] |
Will programming become generally easier to do but harder to be paid well to perform? Posted: 29 Apr 2021 03:33 AM PDT There is a trend towards:
Regarding point number (4), this is also because a general improvement in technology. We wouldn't have had Stack Overflow without fast internet connection, WiFi (you can google stuff on your phone almost anywhere), cheap data, fast computers, etc. Note, I'm not claiming that there's a single "evil entity" orchestrating all of this. It's just that, economically speaking, there's a collective interest among the employers (companies, organizations, governments, etc.) to lower the wages by investing in (1), (2) and (3) and (4). There are also technological improvements and even social improvements (globalization, pro-immigration) that build this trend. Call it a "trend" if you will. Simple problems are getting easier to solve, problems that are left are the ones that are very difficult to solve, and the trend goes on in this direction, while more people are thrown at the problems. How to deal with these points? How do you prepare for the future, to plan ahead and have a good career? [link] [comments] |
Mobile App Development vs Desktop one Posted: 29 Apr 2021 11:03 AM PDT Hey there. I'm actually a C++ developer, doing more indie games and desktop apps a bit. But in the last couple of days, I'm having doubts , if mobile development is more perspective and more high-demand than desktop one. What is your opinion on this topic? [link] [comments] |
Posted: 29 Apr 2021 06:42 AM PDT Given a set of arrays containing non-negative integers, and a value target, determine the subset of array values who's sum is closest to target without exceeding it. or Given a set of arrays containing non-negative integers, and a value target, select 0 or 1 values from each array who's sum is the closest to the target without exceeding it example: given the set of arrays: [5,8] [7,11,1] [8,5,9,1,1] [4, 12] and the target: 10 a valid solution would be [5,1,none,4] or [5, none, 1, 4] or [8, 1, 1, none] The target 3 would have no exact solutions, however the best solution is a sum of 2 with [none, 1, 1, none]. We would not want to exceed 3 and select [none, none, none, 4] even though it is the same distance from the target. Any ideas on how to most efficiently solve this? I am currently just brute force-ing this and calculating every possible combinations sum, then sorting the sums to find the closest to my target which is obviously horribly inefficient. Is the Dynamic Programming approach to the normal Subset Sum problem applicable here? I'm having trouble seeing how to apply it [link] [comments] |
3D reconstruction - merging point clouds? Posted: 29 Apr 2021 05:07 AM PDT I am not sure if this is the right subreddit ask but here we go. I have created a small application where from a set of two images I generate a disparity map (essentially depth map), use the map to create a point cloud and finally creating a simple mesh from this. It works okay but with the limited amount of angles there is a lot of data missing of course which brings me to my next question. How do I go about using multiple sets of images? I realize I need to identify points of interest and comparing them between the sets somehow and then use this to apply a rotation. The problem is I can't seem to find any information on how this is done. If anyone could point me in the right direction I'd be very greatful. The project is done in python mostly using OpenCV and open3D. Thank you [link] [comments] |
Resources to Learn C# from Scratch Posted: 29 Apr 2021 07:46 AM PDT Hi everyone, I was wondering if anyone would have any resources for learning C# from scratch? Someone is considering me for a new job, but they require me to learn C# before I start. Which will most likely be in 2/3 months. I have a good understanding of Python, R and MATLAB, but have absolutely no experience with C#. Your help would be much appreciated. [link] [comments] |
I want to create a Facebook marketplace bot Posted: 28 Apr 2021 11:05 PM PDT I want to create a facebook marketplace bot that will scan for a set of criteria and it will notify me once something is posted. The why: I want a certain car but whenever I find a good deal, it has already been sold. (Friend found a good deal on one and it was within an hour of posting but it already sold that quickly) (I know there is a notification feature for FBM but In my experience it isn't that good) I have taken basic coding classes but really don't know how I can start this. Any help would be greatly appreciated! [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