• Breaking News

    Tuesday, March 27, 2018

    Teach Yourself Computer Science (a DIY curriculum) learn programming

    Teach Yourself Computer Science (a DIY curriculum) learn programming


    Teach Yourself Computer Science (a DIY curriculum)

    Posted: 27 Mar 2018 08:16 AM PDT

    Link

    TL;DR:

    Study all nine subjects below, in roughly the presented order, using either the suggested textbook or video lecture series, but ideally both. Aim for 100-200 hours of study of each topic, then revist favorites throughout your career.

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

    How to not fuck up your eyes by programming ?

    Posted: 27 Mar 2018 05:10 AM PDT

    I'm coding for a year. I would like to avoid my eyes getting fucked up by looking at a screen for 8 hours + a day. What steps can I make to maintain a good eye-sight for years of this lifestyle ?

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

    I want to understand machine learning but I don't have any educational background in CS or IT

    Posted: 27 Mar 2018 06:45 PM PDT

    I'm also a grad student and my professor is proposing we incorporate machine learning in our research but none of us have any background on CS or IT. I know that sounds a bit farfetched but I have time (years actually) to study it. Any good tips on how and where to start? Recommendation for a good book, online resources, or any general advice would be greatly appreciated. Thanks!

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

    27, '11 CS college dropout, I always enjoyed it casually but I am scared of going back and have forgotten a lot. Looking for some pointers

    Posted: 27 Mar 2018 10:59 PM PDT

    In 2010 I was a first year college kid studying CS did well in all my CS classes but dropped out in 2011 due to some mental health concerns. I haven't touched a text editor since then and I'm honestly kind of saddened by it all and scared to even try. I failed in a big way and I'm kind of embarrassed to try again. I feel like I've forgotten everything except for public static void main() which will be in my head forever. But I want to dip my feet into the pool again and looking for some guidance. I don't have any of my old books or notes so I'm really starting over.

    Looking for tips on getting back into it both in terms of mentality and good starting points

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

    Couple of errors in a C++ program, I want to know about.

    Posted: 27 Mar 2018 10:28 PM PDT

    I've been trying to practice basic operator overloading in C++ and I don't understand these errors.

    • identifier "Dec" is undefined (at line 8)

    • identifier "Jan" is udnefined (at line 8)

    • initial value of reference to non const must be an lvalue

       #include"stdafx.h" #include<iostream> #include<conio.h> using namespace std; enum class Month { Jan=1, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec }; Month operator ++(Month &m) { m = (m == Dec) ? Jan : Month(int(m) + 1); return m; } istream& operator >> (istream &is, Month &mm) { int mi; is >> mi; return Month(mi); } Month main() { Month p; cout << "Enter the month" << endl; cin >> p; } 

    The program isn't complete. I just want to know what's the reason for these errors.

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

    Are web sockets important to learn (web dev)?

    Posted: 27 Mar 2018 10:14 PM PDT

    I'm pursuing full stack web development (self-taught, on my own). I think my projects are diverse but I've never had any desire to include real-time communication. Is this technology something that I should learn? Or is it a lower priority?

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

    I made an IntelliJ plugin which let's you search the errors on Stackoverflow while you are in your IDE

    Posted: 27 Mar 2018 12:14 PM PDT

    https://github.com/egek92/SearchOverflow-IntelliJ

    Here is the plugin, I hope it helps Java and Kotlin developers here!

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

    I'm going to teach my kids some HTML & CSS. And I need some advice.

    Posted: 27 Mar 2018 11:28 PM PDT

    I'm a father of two: a 10 and a 7-years old. I want to help them understand computers better. But, instead of teaching them Scratch or Python, I'm going to teach them how to make a few web pages using HTML & CSS. Maybe I'll go further with some simple javascript codes then.

    The reason behind this little plan is that the kids would be excited more when you have your own homepage which they can show their friends. On the other hand, I have this fear that learning mark up language upfront could, uh, may interfere the later understanding how software works.

    So, I want to hear what do you think. Do you agree with me or am I making a mistake? And, if you teach your kids how to make web pages, how are you going to teach them? Thanks!

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

    [C++] Unsure of how multi file compilation with includes and headers/source files should work

    Posted: 27 Mar 2018 05:24 PM PDT

    So I've been struggling with this one a little, since I haven't found a lot of resources that are super clear on this one. Everything I come across is just a cursory "Oh you can make a declaration in a header file and then #include it" then on to the next topic. Cool, but I'm confused.

    Let's say I've made my own library, or a piece of a library, or some source file with functions that I use a lot. Recently, I made a .cpp file that has a class and some function definitions in it, and I've been wanting to use it in various programs I write.

    So it's easy enough, I've made a .hpp file that has the function and class declarations for this. In my main.cpp, I have #include "example.hpp" . So, compilation like this works fine:

    $ g++ -std=c++17 -o main main.cpp example.cpp 

    Here's my confusion. What if I don't want to have to lug around "example.cpp" into every folder or into every g++ compilation command? What if I just literally want to #include "example.hpp" in main.cpp and just have it work like this? :

    $ g++ -std=c++17 -o main main.cpp 

    There should be a way right? I've been told you shouldn't include .cpp files, and that makes sense. So how is that I can just use stuff like <iostream> without having to add another source file to my compilation line for g++ ?

    This seems like such a simple thing but it's been really difficult to find some resource that covers this type of thing, so any help here is appreciated.

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

    Best free resource to learn SpriteKit with Swift 4?

    Posted: 27 Mar 2018 11:19 PM PDT

    I need a free resource that teaches SpriteKit to a total beginner so that I can apply my coding knowledge from the official Swift 4 book by Apple.

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

    Examples of vulnerable programs to practice finding vulnerabilities?

    Posted: 27 Mar 2018 10:40 PM PDT

    I have a job interview coming up where I will be asked to look through code and find security vulnerabilities. Likely in the form of overflows, etc. Is there some collection of small programs that are vulnerable that I can learn from? Thanks

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

    Can someone please tell me why the brackets aren't working here? I am insanely new to programming and this is frustrating. The last two brackets at the end are causing the entire thing to not work.

    Posted: 27 Mar 2018 10:02 PM PDT

     e.printStackTrace(); } } }); } /** * Create the application. */ public ProdaApp() { initialize(); } 

    {

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

    Things and ideas, need help.

    Posted: 27 Mar 2018 05:58 PM PDT

    Hey guys, so I am a teenager that started programming about a year ago. Since then I have built some simple video games on python, a javascript script for a school website and I have played around a LOT with raspberry pi's, so I'm somewhat familiar with the command line. I'm in the robotics club where we use actual java code as well as github, so that was a good learning experience that's the only real life experience I have. I'm tired of online courses, it's always the same. I already know how to make a variable and I know how for loops work, I need some real experience and I have no inspiration right now. What are some cool easy to intermediate projects that I could do? Thank you guys and sorry for the formatting, I'm on mobile

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

    How to install minGW properly, as typing gcc 'filename.c' in cmd gives me error that gcc is nor recognized?

    Posted: 27 Mar 2018 09:01 PM PDT

    Hello all for my assignment my prof gave some psuedo code and asked us to compile it in minGW. There is .c and .pcp file. I have installed the minGW and it is in the C drive. I have tried changing the path in the edit environment variables for your account and added the file path. Still I can't get it to work. Can someone please tell me how to install it properly, or if i missed any steps. ( i have did everything as said in these two websites basically - https://www.ics.uci.edu/~pattis/common/handouts/mingweclipse/mingw.html for installation, upto step 9, as i don't have any eclipse.

    and https://www.windows-commandline.com/gcc-not-recognized-internal-external-command/ for solving error) my path looks like this %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\C:\MinGW\bin\gcc.exe

    thanks in advance!

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

    Why am I not getting a valid response from a REST API web service via Postman?

    Posted: 27 Mar 2018 08:58 PM PDT

    I have a API web URL which only accepts POST commands for searching it's contents. I have authorized it with an API –KEY and an unique ID in the header tab of postman and put all the requires fields in the Body tab .

    I am getting a response from the server saying that they got my request because I am getting a request_id back. But for some reason I am getting the response status as "ERROR". I am not sure what's going on . What could be the reason that's causing the server to accept my request, but not able to reply back ? I been trying to get any response from this server that makes sense for the past 6 hours.

    Response from Server

    Code Snippet

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

    [C] List even numbers from 1 to n using while loop

    Posted: 27 Mar 2018 08:32 PM PDT

    I have an assignment where I'm asked to revise the following code

    #include <stdio.h> void printEven(int n) { printf("\nEven numbers between 0 and %d: ", n); if (n >= 2) { int i = 2; do { printf("%d ", i); i += 2; } while (i <= n); } else if (n <= -2) { int i = -2; do { printf("%d ", i); i -= 2; } while (i >= n); } else printf("Nothing to print.\n"); } int main() { printEven(8); printEven(-11); return 0; } 

    The instructions: the revised main function should ask the user to enter a number (x), and then call the printEven( ) function to print all integers between 0 and x; the loop will keep asking the user for input, until the user enters 0 as the input.

    I could only come up with this but it keeps failing.

    #include <stdio.h> void printEven(int n) { printf("\nEven numbers between 0 and %d: ", n); if (n >= 2) { int i = 2; do { printf("%d ", i); i += 2; } while (i <= n); } else if (n <= -2) { int i = -2; do { printf("%d ", i); i -= 2; } while (i >= n); } else printf("Nothing to print.\n"); } int main() { int n; printf("Enter an integer: "); scanf("%d", &n); while(n > 0 & n < 0) { printEven(n); } printf("Bye.\n"); return 0; } 

    Please help

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

    [Java] Having trouble understanding how to store data read from a .txt file

    Posted: 27 Mar 2018 02:34 PM PDT

    I understand how to read from a file in general, but I do not understand how to store those elements within the file so as to be able to manipulate the data.

    For instance, my text file has 5 lines, each line has 4 elements: First Name, Last Name, ID number, Hourly Wage.

    Example: John Doe 001 12.50

    Like I said I can read this and print it out, but I am lost as for how to store each bit of information.

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

    Improve Your Websites. Learn CSS in under 20 mins...

    Posted: 27 Mar 2018 08:31 PM PDT

    So I've been teaching myself programming for a long time, but only relatively recently got into web development, so I've been learning a lot about HTML and CSS obviously, and I decided that a lot of the resources I used had a bit of a barrier to entry so I decided to try to help others up the ladder by making a CSS tutorial that I thought started from the extreme basics.

    If you're new to CSS I'd love to know if you find the tutorial to be straightforward enough, and if you've been working with CSS for a long time then I'd love it if you let me know if I missed anything obvious.

    Thanks so much! Here's the link to the tutorial!

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

    Angular 2+ Beginner: Basic questions on syntax and also flow of code from book example.

    Posted: 27 Mar 2018 04:32 PM PDT

    I'm trying to learn Angular for work so I started using this book from codecraft

    So the book has this Joke app repo is here and I've done the tutorial. I'd like someone to explain to me what's going on and the flow of the code (the order of code execution).

    Joke-List: I don't understand (jokeCreated) and [joke]="j"

    <joke-form (jokeCreated)="addJoke($event)"></joke-form> <joke *ngFor="let j of jokes" [joke]="j" (jokeDeleted)="deleteJoke($event)"></joke> 

    There's more to the code based on the repo.

    My questions

    1. Could someone explain to me what these two lines are actually doing?
    2. What's the flow of the code structure especially since Joke-List seems to interact with Joke-Form and Joke?
    3. What's the technical term for the parenthesis () in this case copied and pasted above
      1. and also the square brackets []?
      2. What does [joke] correlate to and "j"? I see that on other tutorials it would be something like [hidden]="executeSomeFunctionHere() which would be an attribute to an HTML property and iirc.
      3. I think I'm confused because I have difficulty seeing how everything interacts with each other, especially since the joke-form has that submit button and joke has the delete button, so what/why is joke-list doing those steps?
    submitted by /u/Hikaroshi
    [link] [comments]

    [Javascript] Require Explanation for Simple Factorial function

    Posted: 27 Mar 2018 08:15 PM PDT

    I've been learning to code and I'm on basic algorithms right now. I just did a simple factorial function but I am having some trouble wrapping my head around how it works. I've read a few explanations, but they're not very clear. Would anyone be able to provide an explanation of what each loop is doing, perhaps give an example of what exactly occurs in the first 3 loops of this code to illustrate for me? Thank you.

    Here is the code:

    function factorialize(num) { for (var i = 1; num >= 1; num--) { i = i * num; } return i; } factorialize(5); 
    submitted by /u/LWish
    [link] [comments]

    Need some guidance in regards to learning CS

    Posted: 27 Mar 2018 08:09 PM PDT

    I took my first CS class last semester having no experience in coding whatsoever. Fast forward to now, I'm actually pleasantly surprised with how much I learned. That's to say I don't know anything, but coding seemed so daunting and challenging from the outside that it feels cool to break off some of your misconceptions and know you can tackle this beast.

    But what's increasingly bothering me is the way I'm currently learning code for my current class. Each chapter of my book seems to be filled with tons of superfluous information and contrived examples that we need to memorize for the quizzes, but only the real 'meat' of book is needed to do our assignments. If anything, banging my head on an assignment makes me retain new things I learn elsewhere (like right on this sub) more than remembering the answers to quiz questions.

    At the same time, I feel like there has to be a reason these books are published and people buy them.

    But for anyone who has been through school and taken CS classes, while also worked on actual programs rather than school assignments, do you feel like learning via book after you start getting the hang of learning how to teach code to yourself (rather than by an instructor) has any benefit to it? Or would I not be crazy to abandon textbooks all together and start just by reading other people's code and working on my own project--seeking help and guidance from other people in the process?

    I'm an engineering major and I really do want to be able to write some practical code in the future, in order to just make me a more versatile maker in whatever it is that I do. Do you guys have any suggestions to move passed this beginner phase and into something more intermediate? Anything you wish you knew that would've made you learn faster? Thanks.

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

    Swift 4: Firebase and Geofire location queries!

    Posted: 27 Mar 2018 08:03 PM PDT

    Hey guys, this might be a little informal but I have been trying to search for an answer for days. I am trying to pull my data from Firebase with the help of Geofire. If you have any experience with Swift and Geofire I would love for you to check out my question on stack overflow. Thanks in advance!

    https://stackoverflow.com/questions/49525027/swift-4-geofire-query-not-printing-any-results

    submitted by /u/c-longg
    [link] [comments]

    AI Projects?

    Posted: 27 Mar 2018 07:57 PM PDT

    I am trying to find a solid project tutorial on AI, I feel that I learn better with project tutorials. Does anyone know any decent ones? I can not really find a decent youtube tutorial out there. I don't mind which language but my preference is python C# or C++.

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

    How to set up GitHub pages to have 2 remotes? One for development, and one for production?

    Posted: 27 Mar 2018 04:04 PM PDT

    Lets say you already have a live page on Github pages for the world to see at www.billy.github.io/my_page. You push using 'git push origin master'.

    But what if you wanted a separate, temporary Github page (another remote to push to), so that you can test to see what the new features look like live, without pushing to www.billy.github.io/my_page.

    What are some ways to solve this problem?

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

    No comments:

    Post a Comment