License/ownership of a software, what should I do? Ask Programming |
- License/ownership of a software, what should I do?
- Is there any ways to make code for obs to record google meet class while I'm absent?
- Recursively replace characters in string
- Suggestions for fast languages with garbage collection
- For beginners: Which code editor to use!
- Best way to run x86 code?
- Interesting question in interview (countdown game)
- advice for creating a chrome extension (beginner)
- Looking for a simply ORM (or basically whatever helps me to map POJOs from a sql query) for java
- Peculiar gitignore behavior
- Doing a survey for university on People who studied CS online.
- How to return the pos of the mouse?
- MongoDB query and insert
- "nmake" syntax
- Web Form to PDF?
- How do you keep your system clean?
- Needing some help with a software project connecting mySQL database to visual studio
- Dating life lol
- Can you run this?
- Codecademy Challenge
- Putting a background image in C#
- How to get started with Graphs?
License/ownership of a software, what should I do? Posted: 23 Jan 2021 08:53 PM PST I want to write a program in my spare time for my entrepreneurship and I think it could also help the company I'm working for as a programmer, what should I do about the software license if I present the idea to the company? If I develop the program for the company, I won't be able to use it for my entrepreneurship. If I write the program in my spare time and then present it to the company I may be seen as an unfaithful employee, since I won't give away my work either. [link] [comments] |
Is there any ways to make code for obs to record google meet class while I'm absent? Posted: 23 Jan 2021 12:34 PM PST Hey reddit! I'm asking for help. I'll be at the psychiatrist while one of my main lesson will be going on. I'm sorry for asking, it's probably isn't even relevant or anything, but I really need to keep up with that class. Is there any chance I can make it or find a similar program? [link] [comments] |
Recursively replace characters in string Posted: 23 Jan 2021 03:09 PM PST Hello everyone, I'm working on a project and i want to create a function that replaces some characters of a given string with a letter / symbol. Example: example 3xample €xample £xample 3x4mple 3x4mpl3 3x4mpl€ 3x4mpl£ 3x@mple 3x@mpl3 ... I hope that I'm making sense on what I'm trying to obtain. I've been around this for hours now and it seems like it's a simple solucion... Any help is more than welcome! EDIT: I'm working on python [link] [comments] |
Suggestions for fast languages with garbage collection Posted: 23 Jan 2021 06:04 PM PST The idea here is that I want my code to be (reasonably) fast but not have to worry about memory management. I'll discuss two options here I've already evaluated and why I didn't find them quite ideal. OCaml: I had relatively good experiences with this one, although the lack of operator overloading made arbitrary precision arithmetic very painful. I know this because I had to do a lot of it for my fractal rendering, an example of which can be seen here. Granted, that was pushing an entire decade ago, and maybe things have improved since then. The ecosystem overall was a bit subpar but, again, perhaps things have changed. Scala: I found that Scala is an extremely fine language. I didn't do much with it but it was always an entirely pleasant experience. Unfortunately my experience with JVM build tools is diametrically opposed to that. I'm not entirely sure what the author of SBT was thinking. So one thing I'm definitely looking for is a multi-paradigm approach: ideally, imperative, object-oriented and functional. I'm not a purist; I like to use whatever tool expresses my ideas most readily and efficiently. I'm also looking for sane build tools and an overall at least halfway-decent ecosystem. Having said that, I'll entertain whatever suggestions the readers have. Just give it a go. Also, FWIW, I'll be doing all of this on Linux and applications I have in mind are scientific computing, machine learning and algorithmic trading. Thanks for your suggestions. [link] [comments] |
For beginners: Which code editor to use! Posted: 23 Jan 2021 04:04 AM PST This post was created to help beginners that asking about which text editor they should choose. Because it seems we are getting this question from time to time (and not only to this subreddit), I decided to create a post that anyone can save and refer when we are asked this question in any subreddit. It would also be cool if it's gonna get pinned here so beginners can see it right away (but I don't expect this much lol). I should also be clear with the fact that this list will be small and some of you may want to add more stuff so fell free to comment any additional editors if you think that there is something different that they offer and they're worth mentioning! Let's begin! Text editor or IDE? A lot of people ask for an IDE but the only thing they want is just a text editor and a compiler. For that exact reason this post will just talk about text editors. Even if I was to talk about IDEs, I don't have a lot of personal experience with IDEs so I can't guarantee for anything. Tho I can see some words for two. GeanyGeany is a lightweight IDE and even tho it is an IDE, it doesn't include any compilers but once you have them, it can work well with them and do linting, build projects, run them etc. Don't forget to add it's plugins package! Gnome builderGnome builder is more of an IDE! It has support auto completion for C/C++ (and maybe other languages idk), It has by far my favorite UI, It supports modal editing with Vim keybindings and it is actually really good. Text editors: EmacsEmacs is a powerfull and extensible code editor written in Emacs Lisp and configured with this language. I starts small and you can extend it as much as you want. It can be even more than a text editor. It can view images, it has a built in web browser, email client, file manager and even more. It can lunch other apps and it can even go as far as being used as a window manager (NO! I'm not kidding!!!) which is that I never seen other editor being capable of doing. If you want a pre-configured Emacs, have a look on Doom Emacs. NeovimNeovim is a lightweight yet powerful text (TUI) based text editor! It can also be as extensible as Emacs but it is ONLY a text editor! It is configured in Vimscript or Lua and it has tons of plugins available. VScodeVScode is a text editor that has a good default configuration. It also has support for auto-completion and linting for some languages be default. It is also extensible as the other two (I don't know how much tbh) and it has a built in plugin system that you can navigate from inside the editor. If you decide to use pre-built binaries, I would suggest you use VScodium which is VScode open source binaries. GeditFor people that want to go a little bit simpler and don't need a lot of fancy features, you can use Gedit and it's plugin package. It has a lot of cool features and it can interact with external tools and shell scripts and can have a terminal inside the editor. Of course there are a lot more editors that are worth know but I think that when someone asks what they should choose they don't want a lot of options so I tried to stay as minimal as possible and mention only editors that I thought had something different to offer. Thanks a lot for reading this post and happy coding everyone ;) [link] [comments] |
Posted: 23 Jan 2021 10:24 AM PST Hello everyone I have been provided with the following code What would be the best way to run this and see if work for different values step by step [link] [comments] |
Interesting question in interview (countdown game) Posted: 23 Jan 2021 08:00 AM PST Hey, I had an interview a few weeks ago for a position with a large investment bank (C++ role). It was typical interview and was well prepared for most questions. I was asked about the diamond inheritance problem, vtables, vector vs list performance, implementing circular buffer, etc.. But one question I got was super interesting and I wondering what would be the optimal solution. The question was: There's a gameshow called Countdown in the UK. It's where you've got a board of 9 random letters and contestants have 30 seconds to come up with the longest word out of those letters. So the question was initially stated as, given an input of all valid words in the english language, come up with a data structure that could be used to solve a round of countdown in quickest time. So I thought for a while and asked what the memory limitations of the program are. He said unlimited memory and unlimited time prior to a round of a game. So I thought, ok, we could generate a set of all possible 9 random letter combinations (sorted, to equivalents), and pre-compute the largest word for each. Then we could store these in an unordered map of <hash\_of\_combination> - > <longest\_word>. Then during a round, all we need to do is sort the letters, compute a hash and then use the map to grab the largest word - super. He then said now we have unlimited time but memory limitation such that this huge map wouldn't be able to fit in memory. So I thought ok, this feels like a job for trees. But couldn't really come up with a nice solution, and we were running out of time. I came up with a solution where we generate 26 trees, one for each letter in the alphabet. The first tree has root node A with child nodes being all second letters for words beginning with A, and so forth. So for the word AGE, we'll have a sub portion of the tree A -> G -> E, with something on nodes A and E to signify these are end of valid words. When it comes to a game round we would sort our 9 random letters and traverse each tree in turn with a depth first search, keeping track of the longest word found so far until we've iterated all valid routes in each possible tree. In terms of max time complexity I think my solution is almost n^3, as we have to iterate max n (9) trees, of which the iteration of each tree has a complexity of n^2. So not very efficient. I feel like theres a nicer solution out there, anyone know? :) [link] [comments] |
advice for creating a chrome extension (beginner) Posted: 23 Jan 2021 06:53 PM PST I just turned 20 and I want to get into ux design and learn programming. As one of my portfolio projects I want to create a chrome extension that without giving too much away basically filters certain websites and videos on youtube while allowing u to view all your filters and deactivate them when you want in a couple of clicks. Problem is, i'm new to programming and don't know which languages I should learn and furthermore which bootcamp/videos I should learn from. Ik this is going to be hard but the project is something I've been meditating on for a while now and would serve as more of a passion than just a portfolio project. [link] [comments] |
Looking for a simply ORM (or basically whatever helps me to map POJOs from a sql query) for java Posted: 23 Jan 2021 06:53 PM PST So i have a simply project, i was using plain old JDBC and it was ok, but when my project started to grow i found that mapping joins or one to many relationships are a pain. I tried Hibernate, Mybatis, ebean and any of those convinced me, then i found sql2o which seemed perfect, but then i discovered that it doens't map inner POJOs or OneToMany relations. So I'm looking for a simple library that can help me to map POJOs from sql without beeing too complex or heavy. [link] [comments] |
Posted: 23 Jan 2021 06:16 PM PST I have two gitignore files in my repo:
The first one (at The second gitignore has the contents: ``` Ignore everything in the current dir/* ``` From what I understand, the leading slash is supposed to make the pattern resolve against the directory that this gitignore file is in ( Now's the puzzling part: When I create a file in another subdirectory (e.g. I verified this using
What is going on? Why is the second .gitignore "leaking" patterns? [link] [comments] |
Doing a survey for university on People who studied CS online. Posted: 23 Jan 2021 10:35 AM PST Hi everyone, I am doing a survey for my university on those that learned CS with online courses, or pursued online degrees in CS. If this sounds like you, and you don't mind a 10 min zoom call survey, DM me for a chance to win a 25$ gift card. [link] [comments] |
How to return the pos of the mouse? Posted: 23 Jan 2021 12:47 PM PST I'm fairly new to programming and i'm trying to figure how to get the mouse position in order to make a simple draw tool. i.e, when the user presses a key, draw a pixel onto the current mouse X,Y. I tried assigning a seperate variable to it, but obviously its not static so it kept changing every frame. Thanks! [link] [comments] |
Posted: 23 Jan 2021 04:06 PM PST Here are pictures of the code and db structure. I have an application that queries an object that lists the month (e.g. 01/2021) and includes an array of validated forms (e.g. safeForms). Within the safeForms array, I am generating another object that contains the exact day (e.g. 01/23/2021) and an array that contains the forms submitted for that day. I am able to correctly generate the initial post should the month object not exists. I am not able to figure out how to query the exact day of an existing month and to then insert into the corresponding form array for that specific day's object. Is my structure wrong for what I am trying to accomplish or am I using the wrong DB queries? I have tried findAndUpdate as well as using $elemMatch but have not figured out a solution yet. [link] [comments] |
Posted: 23 Jan 2021 03:52 PM PST Have spent decades avoiding all things Microsoft, but now need to translate a proper 'make' Makefile to an 'nmake' Makefile. Can anyone transmogrify this fragment into nmake-speak for me? FWIW, you will earn my eternal gratitude. [link] [comments] |
Posted: 23 Jan 2021 08:17 AM PST Hello! I'm not a programmer, and I don't work in web development at all, so I'm not sure if this is the right place to post this, but I have an idea for a pretty simple business that involves users completing a form on a website then having the website do some basic calculations (simple division, multiplication, etc.) then populating the results of those calculations into a clean, well-designed PDF file that the user can download. This seems like something I could build out using an existing service but, quite frankly, I'm not sure how to start looking for something that specific. Is anyone in this community familiar with a service like that? [link] [comments] |
How do you keep your system clean? Posted: 23 Jan 2021 03:37 PM PST I have a question for you all. How do you keep your system clean? I use the same computer for coding, working and gaming and I keep everything "clean" except when it comes to programming. I'm talking about web servers, apache, mysql server, php, python, git, etc. You get the point. Do you just install it on there and use whatever you need? Do you use something like Docker? With PHP I started using Vagrant + Virtual Box which made everything easier. I could have machines with different PHP versions, different setups, etc and only an IDE installed on my machine. But now that I use more stuff I don't really know how to keep everything as clean and ordered as possible. [link] [comments] |
Needing some help with a software project connecting mySQL database to visual studio Posted: 23 Jan 2021 08:00 AM PST I'm working on a project (currently in college studying comp science) to build an app that resembles quizlet, but I'm having trouble connecting my database. I've got the connection string and the syntax should be correct, but every time I run the program it comes up with an authentication error despite the user and password being correct. MySQL uses sha256 to encrypt the password and I have a huntch that visual studio uses a different encryption and therefore causes the passwords not to match up. Any ideas on how to solve this? I'm using C# as my language and the program is based on Windows forms. [link] [comments] |
Posted: 23 Jan 2021 06:28 PM PST Hey everyone, i know there's a lot of busy Computer programmers here, that's great! I understand that some professionals are focusing so much on work, and was wondering how is the dating life going for you? PS: I understand this a sensitive topic, so feel free to DM me instead of commenting below if you feel too uncomfortable with that :) [link] [comments] |
Posted: 23 Jan 2021 01:16 PM PST Can you run code from this guide ? guide .. I found it very interesting and Im that type, who learns better if I see what Im doing. So can you run this code or its only me who gets error while I try project it into chrome. [link] [comments] |
Posted: 23 Jan 2021 07:56 AM PST I've looked at the project walkthrough video and my code is exactly the same as the example in the video. Yet, I'm getting an error message returning for the following code: The following error message is returning: 4 - Returns an object with all keys and values inverted - Failed: _.invert({originalKey: "originalValue"})["originalKey"]) returned undefined instead of anotherKey. [link] [comments] |
Putting a background image in C# Posted: 23 Jan 2021 12:47 AM PST Hello everyone, I would like to ask if does anybody here know how to put a background image on a panel in C# that does not move when I scroll? The output that I desire is something similar to the background images of a website where the image doesn't move as I scroll. I tried placing a panel with the image that is set to stretch with the autoscroll to false then put a transparent panel overlapping it which contains the textbox and stuff and set autoscroll to true but it didn't work for me [link] [comments] |
How to get started with Graphs? Posted: 23 Jan 2021 03:18 AM PST So, I'm trying to learn DSA and I find graphs to be really intimidating. I know graph traversals- DFS and BFS. But I'm stuck on how to proceed further? Do I learn the fundamental algorithms? Or practice questions? If so, what would be the best resources/path? I use C++ for DSA, so any language specific resources would be great too. Thank you! [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