• Breaking News

    Monday, April 20, 2020

    [MEGATHREAD] Free Courses learn programming

    [MEGATHREAD] Free Courses learn programming


    [MEGATHREAD] Free Courses

    Posted: 03 Apr 2020 02:10 AM PDT

    In order to coordinate the current offers for free courses during the COVID-19 crisis, I've created this megathread.

    Please, post all your findings in top level comments (directly under this thread).

    No indirect links and check the validity of the coupons before posting, and, if possible, mention the expiry date.

    From now on, all other "Free Courses" threads will be removed. This thread is the only place where listings of free courses are allowed.

    Don't post always free courses.


    Don't fall for Udemy sales. Udemy is the furniture store of e-learning, there are always discounts.

    Also, don't fall for the stacksocial, etc. bundles currently advertised everywhere. They list exaggerated prices for the individual courses and out of the bundle commonly only one or two courses are necessary.

    Humble Book Bundles are generally worth it (with the exception of Packt books as they are known for low quality).


    No requests

    submitted by /u/desrtfx
    [link] [comments]

    A compiled a list of great websites to exercise and challenge your coding skills

    Posted: 19 Apr 2020 08:41 PM PDT

    https://www.looperino.com/blogs/coding-advice/list-of-websites-that-offer-programming-exercises-and-challenges

    My favourite one personally is The Odin Project and Programming by Doing. It seems like FreeCodeCamp is not on the list. I've heard from many people before that they prefer The Odin Project over FreeCodeCamp though, so there is that.

    Other ones like Timus are for more advanced programmers since it contains problems from ACM contests, and those ones are difficult.

    submitted by /u/leaguelism
    [link] [comments]

    Books to learn

    Posted: 19 Apr 2020 12:18 PM PDT

    Recommend me your favorite CS books. I'm most interested in C and Python. But I'm also interested in theory and history.

    submitted by /u/pullmyhandleforcoin_
    [link] [comments]

    Created my first website!

    Posted: 19 Apr 2020 06:43 PM PDT

    Going into this I knew very little python, no css, no html or bootstrap so It was a massive learning curve. It currently has no income model but am trying to get adsense set up. I would greatly appreciate if you guys would help build up the user base! Also if you have any ideas regarding a premium membership instead of adsense i would love to know. Thank you!

    Tutorswapp is a place to meet new people and learn new skills. Instead of paying for a teacher for a subject, Tutorswapp tries to connect people interested in learning from each other: http://www.tutorswapp.com/

    submitted by /u/The_reCAPTCHA
    [link] [comments]

    What does company expect when they put experienced in Linux as one of their requirements?

    Posted: 19 Apr 2020 03:04 PM PDT

    I've been using Ubuntu for my main os for nearly a year now, and unlike what my initial expectations it's more or less the same beside the performance which is better. Of course the installation and update and the like is different but I don't seen why company need to especially list this requirements. Any insight to this matter? Thanks for reading.

    submitted by /u/dangerblown
    [link] [comments]

    Why do languages like Java and Python need their runtime environments/interpreters/virtual machines installed to run stuff written in them, instead of simply complied into .exe's and whatnot without users needing to install extra stuff?

    Posted: 19 Apr 2020 10:45 AM PDT

    I'm trying to figure out if I should learn Kotlin so I can also make Android apps, or just Python and maybe web development. So many options. I want to learn a language that's as cross-platform, resource-efficient and user-friendly to run and use as possible.

    submitted by /u/jointventuredan
    [link] [comments]

    Are there settings every css should have?

    Posted: 19 Apr 2020 01:03 PM PDT

    I've recently been starting all of my css docs with a set font size (px), and 0 padding/margins.

    I would rather set all of my font-sizes as rem/em based off the initial font, and then do custom padding/margins as I see fit.

    1. Is this good practice?
    2. Are there any other settings that are good to create for the majority of documents?
    submitted by /u/ultimatekarlos
    [link] [comments]

    Are Harvard online programming courses good?

    Posted: 19 Apr 2020 01:10 PM PDT

    Hello i headed up on Harvad website and see they have some courses I have interest in. Does anyone took one? How does it work?

    submitted by /u/crepuscopoli
    [link] [comments]

    What is your "why" for programming?

    Posted: 19 Apr 2020 11:06 PM PDT

    I'm a first year university student studying computer science and like most beginners tackling something new (especially programming) I find a lot of the complexity difficult and daunting. The long problem sets, intense projects, preparing for interviews and internships, etc. requires intense amounts of time and energy. However, I know that with enough genuine effort and consistency, I can do well and achieve so much using computer science.

    Unfortunately, without a strong reason for learning computer science, I find it extremely easy to get discouraged when things get too difficult. Either that, or I get caught up in all the details and lose my motivation. To avoid this I typically go back to the reasons why I'm doing this in the first place, which is to make my parents proud and prove to myself that I'm capable enough to pursue something like computer science. Of course, there are the reasons everyone knows like job security and a nice salary, but I was wondering what are your "why"s?

    submitted by /u/sm5102
    [link] [comments]

    FreeCodeCamp vs The Odin Project

    Posted: 19 Apr 2020 07:14 PM PDT

    I've recently embarked on my journey to become a web developer! Kinda been lurking on Reddit for a while now and came across this community.

    My goal is to lean on the resources on the internet. Such as this guide. https://github.com/bmorelli25/Become-A-Full-Stack-Web-Developer

    So I figured I would start somewhere and started with FCC. But it can be a bit tough to understand. I find the videos help a lot. But I don't have any experience with TOP.

    I wanted to see everybody's experience/opinions of the two or if there are better resources available.

    submitted by /u/dcoates83
    [link] [comments]

    Does anyone know how long harvard will be giving out free online courses?

    Posted: 19 Apr 2020 10:51 PM PDT

    Does anyone know how long harvard will be giving out free online courses?

    submitted by /u/Unknown_Doragon_Kira
    [link] [comments]

    How to Quick Sort with mid-point as pivot?

    Posted: 19 Apr 2020 10:19 PM PDT

    I have been stuck on this problem for a while now. I used the Hackerrank video as sort of a reference, I don't really know if it is right. I don't know Java. Normally I don't have a problem with that but this algorithm is a bit confusing. This is what I did: link. There are doodles showing my thought process.

    Pseudocode:

    Pick a mid point use as pivot,

    use two pointers at two ends, move them towards the middle.

    Every time the Left selected element is greater than the pivot AND the right is less, swap

    stop when the pointers meet. Partition at that point. Repeat

    submitted by /u/MFDOOMKendrickEarl
    [link] [comments]

    Absolutely stupidly insane speed difference between javascript and julia on a wheel factorisation prime generator

    Posted: 19 Apr 2020 11:01 AM PDT

    Me and a friend kind of figured out wheel factorisation (before we knew it was actually a thing) and wanted to try coding it in our respective languages. After coding his code in js and me in julia, he put it onto repl.it, and i just ran mine locally (on a pretty powerful pc though).

    His code generated the first 1,000,000 primes (up to 15mil something) in 1.5 ish seconds.

    let target=prompt("How many primes do you want?"); let primes=[2,3,5]; function check(n){ for(let i=0;i<primes.length;i++){ if(n%primes[i]==0){return false;} if(primes[i]>Math.sqrt(n)){return true;} } } function generate(){ var start=Date.now() let n_multiple=2; let percentage=0; for(;;){ let multiple=1; let next_multiple=primes[0]; for(let i=0;i<n_multiple;i++){ multiple*=primes[i]; next_multiple*=primes[i+1]; } let mods=[1]; for(let i=3;i<multiple;i+=2){ let output=0; for(let j=0;j<n_multiple;j++){if(i%primes[j]==0){output=1}} if(output==0){mods[mods.length]=i} } let base=multiple; for(let i=0;i<next_multiple/multiple-1;i++){ for(let j=0;j<mods.length;j++){ let n=base+mods[j]; if(check(n)){ primes[primes.length]=n; if(100*primes.length/target>=percentage+5){ percentage=100*primes.length/target; console.log("%d%",percentage); } if(primes.length==target){ let end=Date.now(); let time=new Date(); time.setTime(end-start); let seconds=(time.getMinutes()*60000+time.getSeconds()*1000+time.getMilliseconds())/1000 return [primes,primes[primes.length-1],seconds]; } } } base+=multiple; } n_multiple+=1; } } let x=generate(); document.getElementById("result").innerHTML="Generated first "+target+" primes in "+x[2]+" seconds, final one is "+x[1]; 

    This is his code.

    My code generated primes up to 9699690 (which is the end of the 6th wheel I think) in 31ish seconds:

    primes = [2, 3, 5] file = open("primes.txt", "w+") function is_prime(num) root = sqrt(num) for prime in primes prime > root && return true num % prime == 0 && return false end end function wheel(rang, num) list = [1] for i in 3:num all(i % prime != 0 for prime in primes[1:rang]) && append!(list, i) end return list end @time begin for i in 2:7 num = 1 for prime in primes[1:i] num *= prime end list = wheel(i, num) new_list = [] for iter in 1:(primes[i + 1] - 1) for item in list append!(new_list, item + iter * num) end end for item in new_list is_prime(item) && append!(primes, item), write(file, string(item, "\n")) end end end 

    Admittedly I am quite new at Julia, but I can't really read javascript, and I was wondering what makes his code more than 25* faster than mine if we go to the same values? If it's a difference in method, what makes his so much faster, since I've been told that js and julia are pretty close together in terms of maths operations speed...

    submitted by /u/Ning1253
    [link] [comments]

    Where to start

    Posted: 19 Apr 2020 02:58 PM PDT

    I am a 29 year old female with no finished education besides high school (never had the headspace when still studying). I really want to move on from the low end jobs and have been thinking to start to learn programming. I'm not quite sure where to begin. Website development or application design does sound really interesting. Can anyone advise with which language to start or where to begin.

    submitted by /u/zodje
    [link] [comments]

    The rest of the internet is useless: help me learn git

    Posted: 19 Apr 2020 07:49 AM PDT

    So I've searched all over the internet to solve this problem and I almost have:

    git reset --hard <old-commit-id> git push -f <remote-name> <branch-name> 

    I know these are the commands I want to use to roll back a few changes in a GitHub repository but I don't know how to actually access my repo in Git Bash. I know how to make a new repo and I know how to clone a repo but I don't know how to access one I've already cloned with GitHub desktop.

    Going through this tutorial hasn't helped at all really, and I can't find any others that tell me how to do this:
    https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control

    So I must be blind or stupid, pls help.

    submitted by /u/Sir_Quackalot_
    [link] [comments]

    Any special COVID-19 free/discounted courses on Data Structures & Algorithms?

    Posted: 19 Apr 2020 07:40 PM PDT

    Pretty self-explanatory title. Figure I need to get a handle on DS&A eventually, anyway. Now that I have the quarantine time, I was hoping to find a good course for free or discount.

    Preferably in Python or C++, but ultimately, anything will do.

    Any help is greatly appreciated.

    submitted by /u/JamalBruh
    [link] [comments]

    Projects to help learn programming?

    Posted: 19 Apr 2020 09:04 PM PDT

    I am a high schooler and I have found that I enjoy coding. The experience that I have is limited to a C++ class and The First Robotics club at my high school where we programmed a robot in java. Considering I feel I am new to the coding scene what project or devices would be best to learn more about coding? I have considered getting a raspberry pi and a small programmable/ robotic arm, are these worth my time? Then if the robotic arm is a good option are there any to be recommended below the $200 price range. Lastly I'm not sure if this is the right forum to post this on, if not please guid me to one better suited.

    Thanks in advance all advice is helpful!

    submitted by /u/Giant1Giant
    [link] [comments]

    What do you recommend for a developer who could’t managed to develop projects?

    Posted: 19 Apr 2020 10:14 PM PDT

    I've been in this situation for so long. I graduated from Computer Engineering in 2017 and since then struggling. I think, I am in situation called tutorial hell. Since my graduation, i am still fighting and trying to improve myself. I really love programming but i don't have a strong learning structure or couldn't managed build a learning path for me.

    What do you recommend for a person like me? Any recommendation appreciated.

    submitted by /u/aintabb
    [link] [comments]

    Im starting to learn how to code through Codecadsmy. Which is honestly an amazing product. But though I'm taking the computer science career path. And im just in chapter 3. I want to get an idea of what skills and languages I need to learn to be a full stack dev.

    Posted: 19 Apr 2020 09:31 PM PDT

    Like I said im starting to learn how to program through CodeCademy. And it's just amazing. The lessons are concise, the projects are complex enough to make you think, yet doable. So I really like the program. Once CodeCademy starts charging those that got their "scholarship" for covid-19 I will definitely pay for their service. I want to really be able to code full complex programs, and hopefully start working on some of the projects running around in my head. In other words I want to become a full stack developer. I have at least three project ideas running in my head. But being still inexperienced I don't know what I need to learn to carry them to fruition. So I decided to consult the reddit. If this is not the right place I understand:

    Idea 1: A Nintendo DS/Switch video game series. Obviously I won't be able to program a game as complex as Pokemon sword and shield or Ultra Moon and Ultra Sun. But I have an idea that it's running around in my head. Start with a simple platformer, before trying to do a pokemon map like game. Obviously since any game I try will be a one man show im going to start first with DS. So my questions are what technologies do I need to master? What languages are best suited for video games in Nintendo? How many lines of code would I expect to need to write?

    Idea 2: a program to run on either Android/iOS/ or in browser. That has me create a checklist interface where I can input the start of (say) a work day. And every item checked off is time stamped and inputted into a database. And at the end of the list I have a close of day button. That time stamps close of day. And starts a new entry. And I can access reports that can be editted in app and sealed into a PDF for printing. What technologies do I need to master? What languages are best suited for an app like this?

    Idea 3: an intra family Facebook like social media app where a network of accounts can access the app. In the app they can post personal status with photos. Upload videos and DM other members of the network. All of it encrypted and protected. Originally I'd like to develop it for mobile. And maybe add a desktop version on browser. What techs do I need to master? What languages would be good for it? And how many lines of code will I expect to Write in average?

    As an added bonus: what languages would I need to know to design a basic OS for Raspberry pi? I know there is Linux but creating an OS that can operate a single board computer and access the peripherals would be an interesting project. Thanks.

    submitted by /u/Lion_TheAssassin
    [link] [comments]

    How to get a job

    Posted: 19 Apr 2020 06:56 PM PDT

    I don't have a degree, and don't have any technical work experience. Say I wanted to get a job coding in a year where do I start? I've got some experience learning coding, but I'm a beginner really.

    submitted by /u/pullmyhandleforcoin_
    [link] [comments]

    I work as a research data analyst, where my work requires a lot of Google search.

    Posted: 19 Apr 2020 08:58 PM PDT

    I come from a non-cs background and have no knowledge in coding. Is there any programming that I can learn to make the work a little easier.

    submitted by /u/Holdmykaapi
    [link] [comments]

    PHPmyadmin subscribe form help

    Posted: 20 Apr 2020 12:18 AM PDT

    I made a subscription for on my website that connects to mysql and php and should input the users data into the table i have on phpmyadmin. the form itself returns successful when information is put in. However, when i check my table, the data entry is empty. the thing is, it recognizes that an entry has been made, and fills in the auto incremented "ID" area, but the (optional/null) website, the first name, last name, and email are completely blank. is there some weird thing going on? my code works perfectly other than the blank entries in the table. help?

    <body id="body"> <div class="container-fluid"> <div class="row"> <div class="col-sm-offset-1 col-sm-10 containingDiv"> <?php $link = mysqli_connect("localhost", "xx", "xx", "xx") or die("ERROR: Unable to connect: " . mysqli_connect_error()); echo "<p>Welcome!</p>"; ?> <?php // get user inputs $yoursite = $_POST["yoursite"]; $firstname = $_POST["firstname"]; $lastname = $_POST["lastname"]; $email = $_POST["email"]; //error messages $missingFirstname = "<p><strong>Please enter your first name!</strong></p>"; $missingLastname = "<p><strong>Please enter your last name!</strong></p>"; $missingEmail = "<p><strong>Please enter your Email!!</strong></p>"; $invalidEmail = "<p><strong>Please enter a valid email address!</strong></p>"; if($_POST["submit"]){ if(!$firstname){ $errors .= $missingFirstname; }else{ $firstname = filter_var($firstname, FILTER_SANITIZE_STRING); } if(!$lastname){ $errors .= $missingLastname; }else{ $lastname = filter_var($lastname, FILTER_SANITIZE_STRING); } if(!$email){ $errors .= $missingEmail; }else{ $email = filter_var($email, FILTER_SANITIZE_EMAIL); if(!filter_var($email, FILTER_VALIDATE_EMAIL)) $errors .= $invalidEmail; } if($errors){ $resultMessage = '<div class="alert alert-danger">' . $errors . '</div>'; echo $resultMessage; } else{ $tblname = "subscriptions"; $yoursite = mysqli_real_escape_string($yoursite); $firstname = mysqli_real_escape_string($firstname); $lastname = mysqli_real_escape_string($lastname); $email = mysqli_real_escape_string($email); // // execute insert query if(!$yoursite){ $sql = "INSERT INTO subscriptions(firstname, lastname, email) VALUES('$firstname', '$lastname', '$email')"; }else{ $sql = "INSERT INTO subscriptions(yoursite, firstname, lastname, email) VALUES('$yoursite', '$firstname', '$lastname', '$email')"; } // if(mysqli_query($link, $sql)){ $resultMessage = '<div class="alert alert-success">Subscribed Successfully!</div>'; echo $resultMessage; }else{ $resultMessage = '<div class="alert alert-warning">ERROR: Unable to Complete Subscription</div>'; echo $resultMessage; } } } ?> <h1>Subscribe to my page!!</h1> <p>Receive an email when a new post is added to my website!</p> <form action="subscribe.php" method="post"> <div class="form-group"> <label for="yoursite">Your Website/Blog</label> <input type="text" id="yoursite" placeholder="yoursite" class="form-control" name="yoursite" maxlength="30"> </div> <div class="form-group"> <label for="firstname">First Name</label> <input type="Text" id="firstname" placeholder="firstname" class="form-control" name="firstname" maxlength="20"> </div> <div class="form-group"> <label for="lastname">Last Name</label> <input type="Text" id="lastname" placeholder="lastname" class="form-control" name="lastname" maxlength="20"> </div> <div class="form-group"> <label for="email">Email</label> <input type="email" id="email" placeholder="email" class="form-control" name="email" maxlength="30"> </div> <input type="submit" name="submit" class="btn btn-success btn-lg" value="Subscribe!"> </form> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html> 

    submitted by /u/MO-life-MO-problems
    [link] [comments]

    Should I use Native for my mobile app or something like React Native?

    Posted: 19 Apr 2020 08:25 PM PDT

    I have a mobile app idea, and like most people I would dream of it being used by millions. I have some experience in web development and would like to have a career there if things don't pan out the way I hope with the app. I also wanna keep this idea pretty close to the chest at least until I have a working beta up and running. Except I can't help thinking about the correct technologies I need for its potential success, or if most of these frameworks are much of the same and it doesn't really matter that much. I must state however that performance speed and responsiveness are more important to me than the development cost and I know native would be the way to go in that sense. Except how much of a performance difference are we talking about? If the user has to wait a couple of milliseconds more for data/animations then that's not really noticeable. and building everything in JavaScript would save time, but I'm only willing to compromise the performance by a small amount. So let me tell you some of the functions the app would handle. -Provide real time updates of millions of user's locations -Provide really simple animations with buttons or icons -Provide a messaging system/camera -Provide a custom built payment system I feel like tracking the location of millions of users in real time would be costly on performance which is why native could be better. But I've never worked with either of these technologies and would like to know your 2 cents.

    submitted by /u/spabsa
    [link] [comments]

    Roadmap to self tutor programming

    Posted: 19 Apr 2020 08:23 PM PDT

    Hey everyone,

    I'm a recent graduate which Bachelors in Engineering.Though I have a degree in computer engineering from a prestigious institute, I haven't really taken any of my courses seriously while I was a student. Most of my friends were busy interning at top tier companies such as Google, Microsoft while I was completely lost and didn't know what to do. Therefore I didn't take much interest in my career at that time and mostly wasted my time.

    Now, I'm searching for good jobs but mostly getting rejections and I absolutely feel like I've wasted my 4 years of graduation. I have a goal to become better at software development and get a job in one of the top tech companies. The okly obstacle is that don't really know where to begin with. It's not like I suck at coding, it's just that I lack direction. I would rate myself 3-4/10 in this field and want to become at least 8/10 before I start working.

    I'm looking for a detailed roadmap of self teaching myself software development(from the very beginning), with all the online courses/books/guides/videos/podcasts required/helpful. I want to delve deeper into tech industry and dev career and want to make it my passion. Any links/personal advice would be appreciated.

    Thanks for your time guys!

    submitted by /u/cab2cap
    [link] [comments]

    Why is my query not returning anything? mongodb

    Posted: 20 Apr 2020 12:08 AM PDT

    Can someone please explain why my query is not returning anything? According to the collections, the query should return at least 1 document.

    Here is the question:

    Write a query to retrieve the documents of users who are either a part of faculty and checked out book 5235 or students under the age of 30 who have checked out book 5240. Display the documents in a readable format.

    Here is my query: db.user.find({ $or: [ {$and: [{type: "faculty"}, {"checkouts.book": 5235}]}, {$and: [{type: "student"}, {age: {$lt: 30}}, {"checkouts.book": 5240}]} ] },{display:1,type:1}).pretty(); 
    submitted by /u/Master-Baiter88888
    [link] [comments]

    No comments:

    Post a Comment