What kinds of stuff can you do programming recreationally? Ask Programming |
- What kinds of stuff can you do programming recreationally?
- A BEGINNER QUESTION
- Why does Agile get so much training geared towards it?
- What is the exact use of namespace std in C++ ? Beginner here
- Unusual post but: what chair do you use?
- C++ library to parse .doc files?
- Uniqueness in the default hash functions in Java
- [Java] why is my 2D array printing out null?
- Ways of sorting by popularity
- Can you please idiot proof explain requirement docs and how an IDE and VENV handles them?
- How would you create this project?
- [Java] program failing due to a null pointer exception.
- Easy way to move dev environment from vm native os ?
- Best way to build a budgeting app?
- Final Project for school (Help)
- Sockets with Vanilla JS/HTML & Python back end
- Help With Research Project (Urgent)
- Looking for help understanding prompt regarding storage and memory allocation to users
- Is creating one class that stores many static variables a bad programming habit?
- Bin-packing/Knapsack variation: Fitting discrete data into discrete servers
- Using JS to create a visual for basic python CL program
- What information does using a gpg key expose about me?
- Cant seem to pass selectionNode to count function?
- Blazor WebAssembly - GetAuthenticationStateAsync() not called on page refresh
What kinds of stuff can you do programming recreationally? Posted: 04 Aug 2021 07:56 PM PDT I am not great with computers. I do not know anything about anything with programming, it is as exotic and foreign to me as it could be. I would be good to learn programming because I'm going to grad school and I'm gonna need to know more statistical shit and all that kind of intimidating nonsense. I know a tiny bit of R, but I know that's way different from programming (though it makes me less terrified of the programmer screen I see on TV). I've finally got a relatively nice laptop and I've been considering working on learning shit on my own. I know people create programs and things recreationally. I know this is a super broadly answered question but: What can you do? What kinds of projects? What can you create? How can you use it both for utility and for fun? Thanks! [link] [comments] | |||||||||
Posted: 04 Aug 2021 06:30 PM PDT I´m currently reading a book called Structure and Interpretation of Computer Program and I´m stuck in the part of naming something in a Lisp program using the word define. I searched a Lisp engine online and tried using the code but it says the word define is an undefined function. What could be the reasons for this case? [link] [comments] | |||||||||
Why does Agile get so much training geared towards it? Posted: 04 Aug 2021 02:57 AM PDT So I've just started a new job, after a 3-month training course in Java development. I already had about 6 months of experience working in what was basically Agile for a much smaller company. My training period contained a bunch of training on Agile, and then in my first month at the new job I got another 16 hours of it over four days last week. The one thing I can't work out is why so much time was spent on training me and my colleagues to work in Agile. It's so simple to me, and honestly I think "Agile is small bits added over time" could have replaced the whole thing. I simply do not understand why so much training exists to get across such an easy and simple concept. Edit: A word [link] [comments] | |||||||||
What is the exact use of namespace std in C++ ? Beginner here Posted: 04 Aug 2021 09:45 PM PDT I've tried to look online but all the definitions seem really confusing. Any help would be appreciated. [link] [comments] | |||||||||
Unusual post but: what chair do you use? Posted: 04 Aug 2021 05:24 AM PDT Hi, this post may be unusual because this sub is about programming but I hope someone can help. I am a software engineering student and I noticed that WFH has messed up my posture a lot and my lower back has been hurting more than normal. I'm looking for a good chair for programming, especially in terms of posture. I hear about Herman Miller but it's so expensive. Anything is appreciated! [link] [comments] | |||||||||
C++ library to parse .doc files? Posted: 04 Aug 2021 12:47 PM PDT Hello Can someone advice a possibly MIT or similar library to extract text from .doc files? i found a good one for .docx but none for .doc files thanks [link] [comments] | |||||||||
Uniqueness in the default hash functions in Java Posted: 04 Aug 2021 06:05 PM PDT If I create a HashMap<Integer,Integer> or HashMap<char, char> am I correct to assume that any character and integer will be uniquely hashed? How do I know when I need to implement my own hash function if uniqueness is required? [link] [comments] | |||||||||
[Java] why is my 2D array printing out null? Posted: 04 Aug 2021 10:25 AM PDT Btw I'm trying to create a TicTacToe board. Here's my main class for the board, as well as the interfaceit imported (which includes the enums) and here's a little test class where I'm testing to make sure the board looks how it should. As you can see, I'm getting a board full of "null" when I run the test class, when it should be full of the enum value BoardChoice.OPEN. [link] [comments] | |||||||||
Posted: 04 Aug 2021 08:51 AM PDT I used the other day a bayesian sort here but I didn't like the results, they are clearly not ordered the way they should. For example, in the following table the second row should be first because views and rating are higher:
Perhaps I made a mistake in the implementation. The relevant code is this: I learned about this formula in ELI5: imdb's "Top 250" scoring system (A.K.A. "a true Bayesian estimate"). I want to know about other ways of sorting by popularity to see if there is one that I like. [link] [comments] | |||||||||
Can you please idiot proof explain requirement docs and how an IDE and VENV handles them? Posted: 04 Aug 2021 08:39 AM PDT You're welcome to look at the tldr at the end, but the context might help you so I recommend reading it. I've done hours of research collectively on this for work and I still feel like I have absolutely no idea how this all works. Here's what I understand, and you can hopefully help me fill in the gaps. Python is tricky. Often different projects you're working on (or even different files within the same project) need different versions of the same dependency. Something like Flask maybe, or even a database driver. Sometimes new versions of a dependency break old functionality in your code. I understand that the requirements document tells other people who are using this project (especially if you're collaborating with other people using a remote repository like github) what dependencies they need, and what versions of the dependencies they need. What I'm not particularly understanding is how ide's and virtual environments automate this and keep the correct dependencies installed. I understand the basic idea of what I virtual environment is. When a virtual environment is active, rather than your project having access to all your global dependencies you have installed on your machine, it only has access to what's installed in the virtual enviornment. I get that. But its where the IDE and VENV try to smartly set up those dependencies using the requirements document that throws me off. For starters, I try to do as much through the IDE as possible and avoid the command line when I can. I understand this will bother probably most programmers. I understand the power of the command line as well as its simplicity, but I also like taking advantage of the tools in the ide. And I try not to mix the two (ONLY use the cli, or ONLY use tools from the ide). I know there's a really simple command to create a virtual environment and how to activate it. But since i'm trying to use my IDE mostly (in this case, its Jetbrains' python IDE pycharm. For those who use java, its nearly identical to intellij), I try to set up the virtual environment using the built in tools there. Some context, I almost never start a project from scratch at work. I'm always cloning from a repo (which I do easily inside pycharm). Sometimes though, it like, automatically sets up a venv or prompts me to, other times it doesn't. And I can't seem to find a pattern of why. Sometimes I'll try to set up a venv inside pycharm myself by going to the "configure interpreter" section, and sometimes virtual environment is an option, sometimes it isn't. In the project I'm working on right now, it did prompt me to set up a virtual environment. But like... it doesn't seem to work or I'm not understanding what it does. I believe the advantage of doing a virtual environment through pycharm is that it knows where your requirements file is and knows what versions of dependencies its supposed to use. But I can't seem to get a handle on it. There's a button called "sync requirements" which I THOUGHT meant "ok, look at the requirements doc in case anything new was added, now go ahead and install or uninstall dependencies so that only the ones listed in that doc are there". But that isn't what it does, instead it updates the requirements doc itself to include all the dependencies I currently have installed. So the opposite of what I wanted. It gets even more messy if you have 2 requirements docs in the same project (for example, one inside the root directory, and one inside of a folder if the scripts in that folder require different versions of the dependencies that scripts do in other parts of the project). Tldr: So basically what I'm trying to ask is, what does the requirements document do. How do I use my virtual environment to make sure that I am only using the dependencies included in that document? Should I just give up on trying to do it all smartly through the ide and just manage all my dependencies manually with the command line? help? [link] [comments] | |||||||||
How would you create this project? Posted: 04 Aug 2021 09:57 AM PDT Hello guys! I have an app idea which id greatly implemented already more than once but I just want to make my own one because of trust, later you will understand As I go to work every day I have to leave my dog at home and it would be really cool if I could somehow host a server at home which has a camera attached to it and I can get a live feed maybe frequent photos of the camera. I am working with .Net and Angular so I would create it with this stack. How could I run a server at hom which I can access outside of my home's network? Maybe create a vm which runs only if I start it? I would be more interwsted about the server/accessing the server/running the server at your own computer part not the actual implementation in C#/Angular [link] [comments] | |||||||||
[Java] program failing due to a null pointer exception. Posted: 04 Aug 2021 02:06 PM PDT I have a program I created for a TicTacToe board, and it seems to be passing my own test class just fine. However, when running it against the a different test class that was provided by the instructor I keep getting NullPointerExceptions and it seems to be failing just about all of the tests. From what I can tell, it seems that there is something wrong with my point array which is causing the errors, but I can't figure it out. Here's the class for the TicTacToe board that I created: https://pastebin.com/dYX3w4NM Here's the interface for the TicTacToe class: https://pastebin.com/6wEUDQd3 Here's the test class that keeps failing: https://pastebin.com/H8vL3jaJ Edit: I managed to fix the Null Pointer error by adding in the following constructor into my TicTacToe class: https://imgur.com/a/rzGzwVA However, the test class is still failing 22.8% of the tests. [link] [comments] | |||||||||
Easy way to move dev environment from vm native os ? Posted: 04 Aug 2021 06:16 AM PDT I'm using clion and I'm programming a C ++, I've been developing this project for a while meaning a couple years, unfortunately my discipline hasn't been good enough where everything is portable in the development environment. my boss suggested to me that there's no reason for me to run a VM I can just run it natively, but I install dide and what I think are the required libraries and everything just blows up. obviously this question is too big for a technical solution but I'm looking for hints Or general knowledge how to get a native copy of Windows 10 working like a specific VM. sorry for the stupid question and any help would be appreciated thank you [link] [comments] | |||||||||
Best way to build a budgeting app? Posted: 04 Aug 2021 09:33 AM PDT Whether it already exists or not, I want to build an app that allows users to import csv/xlsx files from their credit card/bank statements, and categorize all the transactions. Right now I have a functioning prototype in C#, but its a simple console app. What is the preferred way to build this out in a way that will allow the user to interact with it (drag and drop transactions into categories, etc)? I'm familiar with HTML/CSS/JS as well as C#, but I'm open to trying new languages and technologies for this. I'm just looking for an idea on how to structure this, thanks! EDIT: also, if anyone knows a way to automatically pull the latest statement from Bank of America, Citi, Chase, Amex, etc, that would be great! [link] [comments] | |||||||||
Final Project for school (Help) Posted: 04 Aug 2021 05:09 AM PDT Hello. I am on a final project for school and I am new to web developing. I have decided to make a cash for cars website. On one of the webpages I would like if someone could input their model of car and be able to told what the last successful listing for their car was on eBay or craigslist. I have not learned how to code any retrieval sort of code that can show data but pretty much only know css, html basics. So I'm wondering if there is a some sort of code line that I can put in to, say, get the last successful eBay sale for a certain car? Let me know if im asking for too much or if this is achievable [link] [comments] | |||||||||
Sockets with Vanilla JS/HTML & Python back end Posted: 04 Aug 2021 12:40 PM PDT I have a small website in production. I've used sockets before but I'm not super comfortable with them, and I'm a little confused as to how I can implement them in this particular architecture since it's the first semi-largescale project I've used that combines multiple languages. Currently, I'm using flask to generate routes to HTML documents and I have vanilla JS to handle any events. If I need to get something from the Database (Flask SQLAlchemy) I make an AJAX call which allows me to use python code to retrieve any information I need in the form of a JSON. I want to add in a small card game (or even a chat room) where multiple users can connect and play against each other. I believe this is technically possible with AJAX but I don't think the performance would be very good. Is there any way around having to install nodejs? I'd like to avoid trying to install anything else on the server because I'm not very comfortable with the set-up and trying to make changes to the server/virtual environment. I wasn't sure if it was possible to use python sockets for both the clientside and serverside connection. If so, I was hoping someone might be able to explain how it might work at a somewhat high level. Once the user clicks on a button to join a game, they should be taken to the game URL and the socket connection should be triggered. Can this be done through a Javascript AJAX call? Once the connection is made, updated game information should be displayed to all clients connected to that room whenever someone makes changes and the connection should close whenever the user exits the window/leaves the room. [link] [comments] | |||||||||
Help With Research Project (Urgent) Posted: 04 Aug 2021 10:46 AM PDT Hello, So I am currently working on a research project in python that simulates a new encryption method. I am trying to test how well it works by using image files (JPEG, PNG, etc.), specifically ones with different ratios of 0 and 1 bits (e.g. a file with 70% 0 bits and 30% 1 bits). However, I am struggling with finding image files with such ratios anywhere on the internet. Does anyone have any image files with such ratios, or are there any good resources or websites on the internet to check out that might have such files? [link] [comments] | |||||||||
Looking for help understanding prompt regarding storage and memory allocation to users Posted: 04 Aug 2021 04:47 AM PDT So my assignment in one class is pretty vague and basically prompts us to discuss how to balance memory and storage when it comes to creating a game for users. So how to make sure the users are not using too much memory and too much storage, what is the way to create a balance? Professor says there are 300 images in the game and they will take up 2 gB total so I have to figure out how to weigh out that 2GB among memory and storage the proper way... honestly I really don't understand how to even go about this assignment. I tried asking my professor and he gave us more tips but they are also very vague. Like should I say something like "only 10 pictures will be in memory (RAM) at any given time while the rest remain in storage to ensure the game can properly run on all users PC's" (since it is a PC game) please I need some advice. thank you [link] [comments] | |||||||||
Is creating one class that stores many static variables a bad programming habit? Posted: 04 Aug 2021 10:28 AM PDT So basically this question came to my mind because I'm making a project in lwjgl and I'm storing a static constant vector3 for the RGB color of each mesh I'm rendering. What I think is that if I store that variable in a single class called "Constants" for example, I can get its value from that class in my meshes without having to create one for each. This is probably a stupid question because maybe the compiler already does this kind of optimization but I don't really know that much. [link] [comments] | |||||||||
Bin-packing/Knapsack variation: Fitting discrete data into discrete servers Posted: 04 Aug 2021 05:42 AM PDT I have a Python coding task that appears to be some kind of variation of either bin-packing or knapsack problem, I'm not entirely sure. I have an option that seems to work, but I don't think it's the correct solution per se, as there may be edge cases that could fail. (I'm not a CS or math student, so my knowledge in algorithms/combinatorics is quite rudimentary.) The problemA user can choose a configuration of 3 data types:
The console app asks: "How many small pieces you need? Medium? Large?", in order. I need to fit these pieces of data into the cheapest server configuration:
So for example, if the user chooses a total of 20 GB of data, the function should note that it would be cheaper to use 2 small servers rather than 1 medium server. The function that I wrote primarily uses division to look for whole numbers, with floor/ceil calls wherever appropriate. I wrote blocks that sequentially go through a configuration with just L servers, then L & M, then L, M & S, etc. Here is the function: I have a sense that something is wrong here. For example, when I input 100 small data, 350 medium and 50 large, I get this output: The function seems to work as intended; however, I just manually checked that, for example, if I was to take 29 medium servers that leaves us with 725-696 = 29 GB, which I could fit onto 3 small servers. Total cost for 29 medium and 3 small is $4283.92, which is cheaper than the M : 30, S : 1 option, but doesn't even make it into the list. What am I missing here? I have a feeling that my algorithm is very crude and I'm potentially missing out on more optimal solutions. Do I need to literally go through every possible option, eg for 14/13/12/11/10... large servers, with medium/small combinations also iterating through every option? I guess for that I need to look up combination math formulas? [link] [comments] | |||||||||
Using JS to create a visual for basic python CL program Posted: 04 Aug 2021 07:50 AM PDT Hi, I've created a simple command-line python program to play Hangman I was told I could use an SVG to animate the progressive death of the man in Hangman using javascript, are there any recommended resources on how I can port my python program to JS and to get this animation going? I've never used JS before and never ported a program, usually just all in one language so far. Thank you in advance [link] [comments] | |||||||||
What information does using a gpg key expose about me? Posted: 04 Aug 2021 07:23 AM PDT I want to start signing my commits and for that I'm supposed to use a gpg key. But when I create a gpg key it asks for my email address. Does this mean that anything I sign can be used to get my email address? Like let's say my email is test (at) example com, I create a corresponding gpg key and use that to sign a commit. I then push that commit to github. github correctly censors my email address to random numbers test (at) noreply user github com. But it'd now also display my signing information. If a malicious user were to look at that information, could they somehow decrypt that to find out the test (at) example com? [link] [comments] | |||||||||
Cant seem to pass selectionNode to count function? Posted: 04 Aug 2021 06:58 AM PDT ```<!DOCTYPE html> <html> <body> <p id="para"> This is some random text for testing purposes</p> <p id="counter"></p> </body> </html> <style> </style> <script> //on higlighting the text, the textresize function is called which passes the selected text. document.addEventListener("drag",()=>{ let selection = document.getSelection(); textresize(selection) //this addevenlistener is the main culprit here, it has selection defined within so "selection isnt global and cant be passed to other functions." } ) let click =0; let fontsz = document.querySelector("#para").style.fontSize; if (fontsz == "") { fontsz = "1em"; } function count(num, selectionNode){ click+=num; console.log(click) document.querySelector("#counter").innerHTML = [link] [comments] | |||||||||
Blazor WebAssembly - GetAuthenticationStateAsync() not called on page refresh Posted: 04 Aug 2021 03:12 AM PDT I have custom AuthenticationStateProvider in my Blazor WebAssembly app and it's not calling GetAuthenticationStateAsync method on page refresh so if user is logged in and then they manually refresh page ClaimsPrincipal is AuthenticationState is not populated so user can't be Authorized. I'm using JWT which is saved in cookie for auth, and that cookie remains after page refresh, app just doesn't call GetAuthenticationStateAsync (which it should on page refresh if I learned blazor correctly). Here's my custom AuthenticationStateProvider: [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