wtf is kwargs and foo and why do they show up everywhere learn programming |
- wtf is kwargs and foo and why do they show up everywhere
- C++ Learning Resources
- [Python] password validation function
- REGEX for removing the ~#~ at the end of filenames and placing the number back before the extension
- Any reliable total course advice for learning Computer Vision with using dlib, OpenCV, face_recognition libraries for beginners
- C# help (Danger Beginner behind the wheel)
- Why does GitHub still not have a download button to download files, subdirectories etc?
- How much JS should I learn for Node?
- Making a Discord for Data Science Beginners (community hub)
- C# Web Development
- Can programming become a hobby if you learn it well enough?
- Angular and .Net Core Web API Starter Application as Template
- How do I set the background of my website in CSS, rather than cover it up?
- How to correctly save mongoose model after changes in an Array
- Question about C# and Java docs
- For the assembly command 'LDA #4200', which address mode is being used?
- Personal Dashboard Help
- Why even use a semicolon in C ?
- Resizing images with HTML and CSS
- How can i push my files to git
- Ordering System in C with CRUD feature
- Wierd issue about Sequelize associations
- Help with google maps javascript api (i think its javascript) programming
- Prep for data structures and algorithms c++
- webhost without credit card
wtf is kwargs and foo and why do they show up everywhere Posted: 04 Nov 2020 08:19 PM PST I feel stupid ive been learning programming for like 2 years but every time I see those words I get so lost [link] [comments] |
Posted: 04 Nov 2020 03:14 AM PST I'm a Java programmer and I want to transfer to C++, reason being Java doesn't really offer what C++ offers performance-wise, and it seems like it's easier to apply your ideas in it when you know it well. The OOP there is more complicated than Java, and has new stuff like memory managing, etc. [link] [comments] |
[Python] password validation function Posted: 04 Nov 2020 07:42 PM PST Hi I'm learning python atm and im having trouble writing a function for validating passwords. The conditions for the password are
I wrote my code like this and it always returns False. I tried putting a while loop over the for loop to maybe solve the problem but it doesn't seem to work. I've searched google for some hints but they all seem to use regex and "any" function. I want to stick to for and while loops for now and no matter what I change I can't seem to make the function return True. Any idea on this? def pw_validation(user_input): specialCase=['!','"','#','$','%','&',''','(',')','*'] flag=False while flag: ...for i in range(len(user_input)): ......if not user_input[i] in specialCase: .........flag = False ......if ord(user_input[i])<97 and ord(user\_input\[i\])>122: .........flag = False ......if not user_input[i].isdigit(): .........flag = False ......else: .........flag = True return flag user_input=input('Enter your password: ') print(pw_validation(user_input)) [link] [comments] |
REGEX for removing the ~#~ at the end of filenames and placing the number back before the extension Posted: 04 Nov 2020 08:53 PM PST So... Many... Files... Hey everyone. I'm going through an old external drive that I used to dump loads of files into when I moved from computer to computer back in the day and I came across a directory with many thousand files (I'm literally still waiting on
For example, a file name that I just grabbed from the output of my still running tar process is " My guess is that at some point many years ago while I was learning to use Linux, I (for some reason) opened my root directory with a text editor without knowing what I was doing, leaving myself with ungodly numbers of backup files. No clue how they ended up where they are now. I want to go through these for the sake of searching for anything that I might want to keep and organizing them. Step one of this process is going to be to remove the trailing tildes then moving the number back into the filename in case files with the same name aren't duplicates and, as far as I can tell, this is a perfect job for regex. For the sake of simplicity, I think I want to use Python. I don't have much experience with it, but I heard that its regex implementations are spot on and, from what I've done in it, it seems very useful. Now, on to the questions:
Thank you all in advance. I know that this was a lot, but I'm genuinely a bit exited to take on this kind of mundane exercise. It seems like a pretty good learning experience. [link] [comments] |
Posted: 04 Nov 2020 07:00 PM PST I'm kinda beginner, I started to learn Python for about 3 weeks ago and write my first script about 1 week ago. It was about object recognition, I used HAAR Cascade method and trained my own classifier. I added some codelines in my script to extract detected objects as an another file to train my classifier better. Now I want to make this further and better. I want to learn how to use libraries that I mentioned in the title and create reliable multiobject/face detector script to use with my drone. Is there any video tutorial series or anyone interested to work with me and teach to me? Thanks in advance. Edit: I'm a student with nearly no money for courses, so it would be awesome if the resources you suggest be free. I believe there is a lot of people who needs/interested with this, so we accept resources as some github repos with detailed projects or free udemy courses or youtube channels or free pdf's etc [link] [comments] |
C# help (Danger Beginner behind the wheel) Posted: 04 Nov 2020 07:30 PM PST Hi, guys, i started learning to code (have like a week in) in C# and I'm trying to make a basic console program that allows the user to input an X amount of pairs of values that correspond to triangles base and height. Then the program has to print: 2-The amount of triangles that have an area<12. This is what i got so far (i think it kinda does the job, but the problem is that its repeating the same value to calculate the area instead of using the values of the next iteration. I apologize before hand, for the following code may make sick a good amount of you guys. [link] [comments] |
Why does GitHub still not have a download button to download files, subdirectories etc? Posted: 04 Nov 2020 09:46 PM PST Why can I not download individual files and directories instead of the entire repository? I'm aware of extensions that do this but it just seems like such a simple yet much needed feature to implement. Why has it not been done? What am I missing? [link] [comments] |
How much JS should I learn for Node? Posted: 04 Nov 2020 10:26 PM PST Hey guys, I was curious about how much JS I should learn before trying to tackle Node.js. Honestly, I'm super, super new to JS(like 3 days). But I'm pretty familiar(on a beginner level) with C/C++, python, java, html, css so I know the fundamentals of programming. I've learned about callbacks/js function notations/asynchronous functions so far. Should I bother spending time taking a JS course or just learn JS along the way with Node? Specifically, I'm trying to build an API for a discord bot so admittedly it is quite a big project but I'm pretty excited for it so I don't want to waste time. [link] [comments] |
Making a Discord for Data Science Beginners (community hub) Posted: 04 Nov 2020 11:47 PM PST I have nobody. In my experience, to be good at something you need to surround yourself with it, and I'm looking for fellow students with their eyes set on Data Science. I myself am a 28 year old in Florida, going to undergrad for computer science degree, with intentions of going into graduate school for data science. Anyways, I think it's healthy for people without that special circle to be able to communicate with other budding wiz's. I made a Discord on this subreddit before for beginner programmers in general, and it was such a big success that I had to ditch it because I had no idea how to run a server with 500+ people. I want this Discord to be for people interested in data science, however. If you're super new, I'm with you. I'm still reading through a beginner's Python book. Intermediate+ veterans are also welcome to help out. Thank you. [link] [comments] |
Posted: 04 Nov 2020 08:47 PM PST So I am interested in web development with c#, I usually use php but once I figured out that it is *possible* to make websites etc with c# I was curious and wanted to try. I have a few questions about it if anyone can answer them please! So first off, is web-dev possible to do this with vanilla c# or will a framework be necessary? I skimmed over something saying that c# can replace JavaScript, but could also directly interact with JavaScript, is that true? If the ASP.Net framework is the only one for c# web development then any good tutorials or anything to learn to use this? I created a quick project in visual studio but couldnt figure out how it is routing to display the pages. [link] [comments] |
Can programming become a hobby if you learn it well enough? Posted: 05 Nov 2020 12:00 AM PST Hobbies are usually stuff you do that isn't your daily work. It usually is simple but repetitive and so becomes a bunch of habits that the body can turn to in relaxation mode. I am wondering if something like programming where you got simple stuff and then complicated stuff can be something you can kind of do in the relaxation mode if you learn it well enough and it becomes second nature? Does it depend on what you are actually making for your hobby, is some stuff easier than others? [link] [comments] |
Angular and .Net Core Web API Starter Application as Template Posted: 04 Nov 2020 08:35 PM PST https://dotnetlead.com/net/angular-and-net-core-web-api-starter-application/2095/ This is an Angular/.Net Core Web API starter application that has the basic functionality for Adding, Editing, and Deleting customers so that you can use it as a starting point for building your applications. It uses the following frameworks:
[link] [comments] |
How do I set the background of my website in CSS, rather than cover it up? Posted: 04 Nov 2020 10:10 PM PST So I'm building a React project and I found this nifty website with CSS generated backgrounds. https://www.magicpattern.design/tools/css-backgrounds But I'm at a loss how to apply it, when I copy the css into my [link] [comments] |
How to correctly save mongoose model after changes in an Array Posted: 05 Nov 2020 12:43 AM PST I'm trying to push a few new entries into an array and then save the model after loop completion: const profile = await MasterProfile.findOne({ userId: masterId }); But it does not seem to save changes into db at all. How can I do that correctly? [link] [comments] |
Question about C# and Java docs Posted: 05 Nov 2020 12:41 AM PST In a previous thread I was told that Microsoft Docs contains 100% of C#, Does Java documentation as well? [link] [comments] |
For the assembly command 'LDA #4200', which address mode is being used? Posted: 04 Nov 2020 06:31 PM PST Odd question ik but me and my friend where having a discussion about it. I said immediate but he says relative and we dont know who is right. Any help is appreciated. [link] [comments] |
Posted: 04 Nov 2020 06:30 PM PST I'm working on building a personal dashboard, a side project to go through the process of learning and building all the pieces that go into web app development. Wondering if I can get some direction on the process to do so and some best practices. Just to clarify the main languages I know are Python and JavaScript, so I was going to do this with Flask and React. The overall plan: Questions: Any other tips for best practices are appreciated! [link] [comments] |
Why even use a semicolon in C ? Posted: 04 Nov 2020 01:51 PM PST Hello, I'm a very fresh CS freshman and got asked to remove a semicolon from some code and report the difference. So I did, removed one semicolon and compiled the code but besides a few warnings there's no difference.. So I removed all of them and still no difference...this might happen because the code just declares a variable and prints it but still, why do I have to tell the compiler that a phrase ends at a certain point if the outcome doesn't change if I dont ? Would appreciate any insight on this Edit: Solved, the code doesn't even compile lol [link] [comments] |
Resizing images with HTML and CSS Posted: 05 Nov 2020 12:19 AM PST I am extremely new to coding. I am following along with a Youtube Tutorial on how to make a website using HTML and CSS (link: https://youtu.be/99vHH_6F0Ko). I am stuck on 17:32 when he begins to include the images in the slider. Mine are not filling up the page for some reason. [link] [comments] |
How can i push my files to git Posted: 05 Nov 2020 12:16 AM PST I anyone know how can i push my files please write it step by step [link] [comments] |
Ordering System in C with CRUD feature Posted: 05 Nov 2020 12:04 AM PST Hi, I just started programming a month ago in my computer science course in college and in our school we are tasked to create a program that has a CRUD feature. Our professor said that the program should show a menu in which you can choose to either create, read, update, and delete. My pick is a program where the user can create an order, and then there is already a given set of items they can choose from. They can also update their order or delete them, as well as read their order. Is this easy to do for a beginner like me, How can I start with it? Thank you for the help. [link] [comments] |
Wierd issue about Sequelize associations Posted: 04 Nov 2020 11:49 PM PST I have 2 functions below. If i run them they work for the first time but after each ran and then re-run any of them they fail because it tries to select a column which is in another table
or
function 1: function 2: [link] [comments] |
Help with google maps javascript api (i think its javascript) programming Posted: 04 Nov 2020 11:37 PM PST Hi guys so I am trying to make a car HUD that uses a raspberry pi to project a HUD using a smart mirror called MagicMirror for a school project. (I'm not the best at programming sadly) I am trying to get a google maps javascript API working so that it displays a route between two location. My intention was to get an android phone to send its gps location in the form of a txt file. The info would then be extracted by the javascript to use the data as input which refreshes every 5 minutes. As of now I have been able to get the phone to send the lat and lng values of its location to the Pi using a socket and then i parsed the data so that it would just leave me with the lat and lng data as a string. I wanted to import this string into the javascript API to use it as the starting location. I have considered using readFile or JQuery but im really not sure where to start to input this data. I am referencing the code for the MagicMirror module from https://github.com/mrdis/MMM-google-route Below here (have highlighted the parts i have edited), but instead it has caused my google map to just not load, would appreciate any help possible, thank you guys so much :) const fs = require('fs') fs.readFile('Input.txt', 'utf-8', (err, data) => { if (err) throw err; const gps = data; }) function getDirections(){ self.config.minimumRefreshPeriod && (Date.now() - lastDirectionsTime < self.config.minimumRefreshPeriod * 1000 * 60) ) { return; } try{ var dr = { origin: data; } if(!dr.travelMode) dr.travelMode="DRIVING"; if(dr.travelMode=="DRIVING"){ * let's set it to 1 minute from now by default var dfaultDepartureTime = new Date(Date.now()+60*1000); if(!dr.drivingOptions) dr.drivingOptions={}; if(!dr.drivingOptions.departureTime) dr.drivingOptions.departureTime = defaultDepartureTime; if(dr.drivingOptions.departureTime < defaultDepartureTime) dr.drivingOptions.departureTime = defaultDepartureTime; } if(dr.provideRouteAlternatives===undefined) dr.provideRouteAlternatives=true; if(self.state.overrideDestination){ dr.destination = self.state.overrideDestination; } directionsService.route(dr, function(response, status) { if (status === 'OK') { directionsDisplay1.setDirections(response); directionsDisplay1.setRouteIndex(1); directionsDisplay0.setDirections(response); clearInfo(); addInfo(response,0); addInfo(response,1); wrapper.style.display="block"; self.lastRefresh = moment(); updateAge(); } else { clearInfo(); addError("Google directions service status: "+status); } } ); [link] [comments] |
Prep for data structures and algorithms c++ Posted: 04 Nov 2020 11:23 PM PST I'm going into my second class of programming in C++ in January. I know all the basics such as functions, loops, and a little bit OOP. I'm working on pointers and references now. What are some things I should practice on so I don't get overwhelmed in class? [link] [comments] |
Posted: 04 Nov 2020 11:18 PM PST I have been working on a website for a while now. I've reached the point where I want to set it online. While searching for a webhost I always see they are payed or you need a credit card. Since I only am 14 and don't have a credit card. I tried to sign up for azure for students and AWS for students but for what I know both are for university/college students. I also don't really know how connect a domain name to the website itself. [link] [comments] |
You are subscribed to email updates from learn programming. 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