Are there any library with common exceptions so I don't have to reinvent the wheel? Ask Programming |
- Are there any library with common exceptions so I don't have to reinvent the wheel?
- Should I quit school?
- Idk what programming language should i chose
- Any out there that know if it is possible to reprogram the Amazon/Netflix channel button on a TV remote?
- Allow External Tenant SSO Access to My App and Send Emails as Themself
- JSON: How do I swap JSON key with array value?
- How Can I Make a REST API in a Docker Container Publicly Accessible?
- New SWE made Git tag without updating branch head for new SW release. Is he "right" or "wrong"
- Not understanding what git pull does
- Advice for Cross-Platform Framework/language
- Looking for chat messages (text) processing pointers
- Framework to Autogenerate Forms for SQLite Tables?
- C#: How to combine DataTable.WriteXml and SaveFileDialog
- How to optimize parallel tasks that aren’t fully utilizing cpu/memory?
- How do password managers share your password with other users?
- If anyone here regularly uses interfaces (.NET, Java, several others), could you help me understand them?
- Question about ideas of making WPF application.
- How do I go about checking if a name is actually real.
- commando argument
- How can I get single string from 'multistring'
Are there any library with common exceptions so I don't have to reinvent the wheel? Posted: 05 Aug 2021 08:17 PM PDT are there any js library with with common exceptions, similar to C#'s such as ArgumentOutOfRangeException(), ArgumentNullException(), etc so that I don't have to reinvent the wheel? edit: I'm using react js, if matters [link] [comments] |
Posted: 05 Aug 2021 08:28 AM PDT I've got 3-4 years professional experience at this point. I was two years into my CS program when I had twins and I had to pause school to start working. This last year I was finally able to get back into it, this time an online program through WGU, while still working full time. I'm having difficulty finding motivation to prioritize studying over family time. WGU's model is competency-based, meaning if you can pass the final, you can pass the class immediately. Unfortunately, their Software Engineering program is run through the IT department, which means there are a lot of IT-centric classes which don't directly apply to software development. Things like getting a CompTIA A+ certification, as an example. In other words, a lot of stuff that I know for a fact I don't need to know to be really good at my job. This IT/hardware stuff does not come easily to me, despite being somewhat relevant to software. This is made worse by the fact that online learning really doesn't work for me, especially if it's something that I have trouble finding value in learning. The reasons I went back to school include:
Reasons I'm contemplating quitting:
What do you folks think? [link] [comments] |
Idk what programming language should i chose Posted: 05 Aug 2021 05:14 AM PDT So im 18 yr old and im going to attend a computer science college, i wanna start learning from now but honestly im really confused on what to start with, my sister says i should start with python because it will ease the learning process and also has good job opportunities, on the other hand i was thinking of learning another language which would help me more in my expertise (i want to be a software engineer but my dream is to be a game developer),so i was thinking java/JavaScript/C#/c++ and honestly i dont know what to start with, keep in mind that i want to earn money as soon as possible cause i dont want to be a burden on my family and yeah, thanks in advance for help. [link] [comments] |
Posted: 05 Aug 2021 05:16 PM PDT Basically, my parents are old and always one to watch Al Jazeera on YouTube but are illiterate when it comes to using any function of a TV that goes beyond switching channels. So before I get a freelance person to take up the challenge with programming on my parent's LG Smart TV and remote I want to know if this is possible. I want to change the Amazon button to go directly to Al Jazeera's YouTube channel. Has anyone else thought/done this before? [link] [comments] |
Allow External Tenant SSO Access to My App and Send Emails as Themself Posted: 05 Aug 2021 12:57 PM PDT I have a web application that several clients (with several users each) login to using SSO. I created an Azure AD application, set up the tokens, and put the appropriate end points in. Users choose to login, they get redirected to Microsoft, put in their credentials, they get redirected back to my application and Microsoft sends some tokens. Easy. We do offer the ability to send emails from our platform. Previously we have done this using an email address we provide to the client that falls within our tenant. We use basic password authentication and the Microsoft Graph API to send these emails with a simple http request. Now clients want to be able to login with SSO and then send emails using their logged in user/email. Obviously this poses a problem because they are authenticating to my tenant and Azure app but I of course don't have access to their tenant to send emails for them. I've worked around this by having a test client create a duplicate of my Azure AD app in their tenant, share their tokens with me, and making all requests using their credentials. Obviously this is not an ideal way to set up all of my clients, don't even get me started on the security issues this presents either. So my question is, how can I provide users an Azure AD SSO login experience and access to their emails without the need for their password? I've done a little bit of research and looked into publishing my application to the Microsoft Application Network. I could have them install my application in Azure but I am not really sure that this solves my problem and past the installation of my application, I don't really know what other configurations would have to happen. Is this possible at all and what's the appropriate path to accomplish it? Thanks. [link] [comments] |
JSON: How do I swap JSON key with array value? Posted: 05 Aug 2021 12:48 PM PDT Forgive me if this is not the right place to post this. I have a JSON file with a key of "provider_name" and an array of states:
I need to convert this so that the state is the key and the provider names become the array:
What is the best way to do this conversion? [link] [comments] |
How Can I Make a REST API in a Docker Container Publicly Accessible? Posted: 05 Aug 2021 12:44 PM PDT I have a computer running ubuntu on my network that I use as a server. I want to run a REST API on it via a docker container and be able to publicly send it requests. I have the container working on my local network. I can send a request to the servers local IP address from a different machine and get a response. I set up a port forward in my router settings and pointed it to the port that the docker container is exposing, but when I try to send a request to the servers public IP address and the forwarded port, I get a connection refused error. I don't really understand networking. Can someone help me understand why this wouldn't work? Thank you. [link] [comments] |
New SWE made Git tag without updating branch head for new SW release. Is he "right" or "wrong" Posted: 05 Aug 2021 11:40 AM PDT Ignoring the obvious point that he's wrong because he didn't communicate with the team this is how he does "releases"... On my team, we've historically made new major releases X.0 by creating a branch when a new release candidate is created, then we iterate on the release candidate separately from the master branch. Specific releases that get signed off on then have their commit tagged as Release X.N. Usually, we need to do minor bug fixes, so we'll do a commit in that branch and then tag it as X.(N+1), X.(N+2), etc. Recently, a new (but experienced) SWE joined the group and did a minor bug fix version based on the major release branch, but he only tagged the commit and didn't update the header. This caused a problem because the next SWE to make a minor bug fix version pulled the header of the major release, which didn't include the changes of the new SWE, and we had a regression. Is there a reason why the new SWE would have done what he did? Are we being redundant in updating the major release branch header or something? [link] [comments] |
Not understanding what git pull does Posted: 05 Aug 2021 11:30 AM PDT This should be simple. I clone my works repository. In my ide, I make a new branch off of the master. I do some work on my branch, let's call it branch1. I commit and push my branch1 to our remote repository on GitHub. My boss makes a change on master and he pushes. On my machine still with branch1 checked out, when press "update" on my ide (got pull) is it pulling any new changes made to my branch1 on GitHub (there likely are non) into my local machine, or is it pulling my bosses change to master and then merging it into my branch Thanks [link] [comments] |
Advice for Cross-Platform Framework/language Posted: 05 Aug 2021 07:32 AM PDT Hello, I am looking to make a cross platform tool, and I'm unsure what framework I should use. I would like to target pc/mac for desktop apps (linux as stretch), and android/ios for mobile. Desktop apps will be full featured, and would need to sync two local db with a server, add and remove entries from one of them, and have timed pop ups. A stretch goal would be to integrate a pdf reader with the ability to detect the user hovering over a word and display a temporary pop up over it. I have also played around with the idea of doing something similar to goldendict's double copy pop up, but that might be excessive. Web/mobile apps would simply need to sync db, display notifications on a timer (if enabled and desktop app is not "active"). I'm thinking before a notification timer, a simple check to see if the desktop app has run a sync in the last five minutes to do that. I hope to be hosting everything myself on heroku, and would like to choose a language/framework that simplifies the workflow so each platform can easily be kept up to date. I hope this is enough information, if anybody has any more questions, please let me know. Note, I am doing this as my personal project for uni, but hope to expand into a freemium model should it be successful. Thank you!! [link] [comments] |
Looking for chat messages (text) processing pointers Posted: 05 Aug 2021 10:58 AM PDT Hi guys. I'm attempting to find a tool that can process a lot of text and display analytics about the text content. The specific use case is the analysis of live stream chat messages. The idea is, among other things, to provide content creators insight into what's being discussed and show warnings to deescalate when the mob mentality diverges from what the creators intended. I'm aware of Moobot which detects various ways of chat spam and automatically performs temporary user bans. This happens without any system insight given to the moderator. Moobot is also closed-source, maybe there is a similar tool with public-source? This path would allow me to build dashboards on top or give me directions to build my own system. Following a different path I've read up on Clickhouse and Postgres as databases to perform text processing on, but those lack advanced text algorithms. I'm stuck at that point. What I'd like to have analytics on, given a tuple of (a username, Unicode message data);
[link] [comments] |
Framework to Autogenerate Forms for SQLite Tables? Posted: 05 Aug 2021 06:57 AM PDT Hi, I have an SQLite database with a few tables I would like to add to over time via a Form. Is there some sort of framework (Ideally some sort of GUI, but some sort of Django style framework would work) that can autogenerate forms so that I can add new records quickly? A bonus would be if I could push to multiple tables on the same page. Thanks [link] [comments] |
C#: How to combine DataTable.WriteXml and SaveFileDialog Posted: 05 Aug 2021 10:32 AM PDT I have already data from a sql query and want to save it as XML by using DataTable.WriteXml, but I have to give a path as parameter. The path should be given by a SaveFileDialog but I don't know how to use it correctly. Can I do something like DataTable.WriteXml(SaveFileDialog.ShowDialog()....)? I use Windows.Forms SaveFileDialog and not Win32 [link] [comments] |
How to optimize parallel tasks that aren’t fully utilizing cpu/memory? Posted: 05 Aug 2021 06:02 AM PDT I'm still somewhat new to high performance computing, so apologies if some of my terminology is wrong. I've been running large datasets on a cluster, and have recently been learning about parallelization (using GNU parallel). I've gotten it to work, but after looking at the job stats, it seems like I'm underutilizing the cpus and memory. I'm using the following parameters in my bash script: SBATCH —ntasks=12SBATCH —cpus-per-task=4SBATCH —mem-per-cpu=1GThe job stats: CPU Utilized: 03:57:03 CPU Efficiency: 8.23% of 2-00:01:36 core-walltime So obviously I'm using too much memory and can reduce it, but what can I do to optimize this? More tasks? More cpus with less memory? Maybe specific more threads within the actual program in running? [link] [comments] |
How do password managers share your password with other users? Posted: 05 Aug 2021 08:38 AM PDT I understand the basics of end-to-end encryption, but I recently got confused at how Password Managers are capable of sharing secrets when it is supposedly encrypted at all times on their servers. Is someone lying? Or is there a technology I don't know about/understand? Take 1Password for example https://support.1password.com/1password-security/ (Note 1Password is by no means unique to this feature set, but I'm using them as an example). They claim that my passwords are "end-to-end" encrypted, which should mean it is encrypted on my device using some combination of my master password or some private key. Assuming they aren't storing my master password in plain text on their servers, they should only ever see a jumbled mess of text. Then when I go to read the password, they return that encrypted version and my local client uses the master password the generate the original password. I follow along so far (maybe I have already gotten confused?), with the basic idea that 1Password's servers should never have access to my unencrypted secrets. They couldn't even if they wanted to. So if 1Password only has access to an encrypted version, and the only way to un-encrypt is with my specific account information, how is it possible to share secrets? How can every employee of a company seamlessly access some set of shared passwords, without sharing their master password or some private key? The first thought I have is that 1Password is actually sharing the organization's private key for us. While that means a more seemless customer experience, it also means 1Password actually has direct access to the private key! Which goes against the rule of they couldn't access my secrets even if they wanted to. I mean I can "encrypt" any data I ever send and store with the password "hunter2" and technically it will be end-to-end encryption, but I don't think (hope?) that is what is being advertised. So how do password managers (or secrets managers or anything like that) share a password securely? I found the 1Password White Paper https://1password.com/files/1Password-White-Paper.pdf and it seems to suggest that whenever a password is shared, a new copy is generated that is first decrypted by the original owner, and re-encrypted for the other recipient (using their public key). That seems like it would work, but couldn't that also be a really expensive task to share a password with a large team? Is that the only way? [link] [comments] |
Posted: 05 Aug 2021 08:33 AM PDT Sorry if this is a stupid question, but I have a hard time with this. I've googled a million examples, but they haven't addressed the question I have. I've used interfaces a lot in apps I was maintaining, but I've never used them in my own apps, as I always just use inheritance. I understand interfaces and know how to use them, but I have a hard time seeing what makes them useful. I'm sure they are useful, because people much smarter than I am use them, but it's something I have a hard time understanding. I wrote an example below, which you don't have to use, but it illustrates the question I'm trying to understand. Example: imagine I have the following. interface IFlyable class airplane implements IFlyable class helicopter implements IFlyable Now, I can declare a variable: IFlyable undeterminedFlyingMachine; [link] [comments] |
Question about ideas of making WPF application. Posted: 05 Aug 2021 08:21 AM PDT Hello reddit. I need some help. I'm writing a program that have to output some information. I have created a wpf application with two Comboboxes. The first combobox is responsible for subdivision and second one for employe position. Each subdivison have a few positions. That is, for example "After-sale service center" have "supervisor, two managers and one senior manager". What I do in my app is pick subdivison then employee position and the app adds this positions into List. There after an user clicks on button "Show" and app displays information to TextBlock. The app have to output the following or something like that: "After-sale service center have 1 supervisor, 1 manager. Supervisor may have only 1 printer and 1 scaner. Manager may have 1 printer, 1 scaner. Totall amount of technique makes up 4." How can I make the output like that? It comes to my mind only put information in about technique with many "If" or "switch" statements into app directly. But I seem this is not right approach. If you have any ideas about this I'm glad to take them. My english is not native hope you understand me. [link] [comments] |
How do I go about checking if a name is actually real. Posted: 05 Aug 2021 12:51 AM PDT Hello, I'm currently doing some R&D for a project where I need to identify if a name is actually real. The requirements are essentially:
For 1) and 2) it is deemed acceptable to handle those requirements using a database lookup. Essentially we will store a lot of different words in our database in which customers can't activate with. However I'm unsure how to handle 3). Has anybody come across this issue before? What kind of libraries might help with a problem like this? [link] [comments] |
Posted: 05 Aug 2021 05:26 AM PDT the program isn't working the way i wanted i am wondering what i am doing wrong in that case. [link] [comments] |
How can I get single string from 'multistring' Posted: 05 Aug 2021 03:31 AM PDT Hi. I have defined this multistring (or however would you call it) public static string ReadFromLine(int lineNumber, params string[] searchedAttribute) This string has 3 values. lineNumber, which is the current XML line reader is reading, then 2 searched attributes, searchedAttribute[0] and searchedAttribute[1]. Is there a way how can I use this 'multistring' in a if condition ? I would like to do something like this (outside of the 'multistring' definition) : if (searchedAttribute[1] == "negativ.") Is there any way I can do that ? Thanks... There is the source code : [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