• Breaking News

    Tuesday, May 1, 2018

    Those of you who are self taught -- how did you maintain the discipline to keep going day to day? learn programming

    Those of you who are self taught -- how did you maintain the discipline to keep going day to day? learn programming


    Those of you who are self taught -- how did you maintain the discipline to keep going day to day?

    Posted: 30 Apr 2018 01:00 PM PDT

    I'm 23, I am finishing a degree in Political Science, and now I'm trying to teach myself programming. I don't want to dwell on my past mistakes (like why the hell did I choose poli sci when I don't even like it).

    The point is I'm starting now and I truly want to be a front end web dev to start.

    I used various online resources to learn HTML and CSS. I tried freecodecamp and code academy, but things didn't really stick until I began a udemy course. This was all in the course of three months with studying on my free time.

    I'm currently on the JavaScript portion and it's so hard. I know I'm not the first to say that but I'm in the middle of all this studying and I'm feeling lost.

    In addition to the udemy course I'm reading the You Don't Know JavaScript book and taking notes. I want to understand the why behind things but I'm not sure how to achieve this properly.

    People say to build projects but I'm not even sure how to begin. Is it possible with just a text editor?

    The reason I'm not pursuing a cs degree yet is it's not feasible at this moment. I don't have the money to pay for community college classes just yet. If I truly hit a wall I may consider classes in January.

    I'm not sure if my post makes complete sense but I'm just hoping for some kind of advice from people who literally started with no knowledge of programming.

    I'm at this point where I'm questioning my abilities. I'm trying to ignore the negative thoughts and just keep going.

    Edit: I can't get back to all the messages, but just know I'm extremely grateful to EVERYONE who offered some advice. It's more helpful than you guys may realize. Thanks!!

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

    A Project To Help People Learn Git Commands

    Posted: 30 Apr 2018 01:54 AM PDT

    Hello there,

    I am working on an open-source project to help people who wants to get rid of GUI clients for various reasons. It shows basic commands with descriptions which you should know and use daily, and with search option you can filter out which commands can be used for it (for instance if you search for branch, it will show commands related to branches).

    It started as a side-project to help my friends / colleagues check out commands easily, but it turned out it has been shared through my friends lots of times and it is being used on a daily basis. Suprising enugh, I wanted to share it with you people. Maybe someone finds it useful and / or wants to contribute!

    Edit: Critisim is more than welcome! You can request features and / or criticise anything related to it. If you find this project useful, please consider giving it a star in GitHub so more people can see it while searching for git tutorials.

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

    Anywhere to get an AS in comp sci online?

    Posted: 30 Apr 2018 09:31 PM PDT

    I've been using many resources online and through books to learn programming over the past few years but now I'm looking for a degree. I've seen a few posts discussing online degrees on this sub but they only seem to include mostly bachelor's degrees opposed to a 2 year degree. Is there an online college that offers a good, proven degree? My local California community college doesn't offer anything for comp sci, so I'm hoping to complete a degree online alongside my current job. Thank you!

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

    [Question, C++] When converting a stringstream in hex format to a long, why does it drop the sign?

    Posted: 30 Apr 2018 08:53 PM PDT

    So I am trying to convert a stringstream which contains a value in hex to a signed long by doing this:

    #include <iostream> #include <sstream> #include <climits> using namespace std; int main() { stringstream hx; hx << hex << LONG_MIN; cout << hx.str() << '\n'; long value; hx >> value; cout << value << '\n'; return 0; } 

    Actual Output:

    8000000000000000 9223372036854775807 

    Expected Output:

    8000000000000000 -9223372036854775808 

    This happens for other numbers than just the minimum long, it happens to all negative numbers which require at minimum 16 hex digits to represent.

    Note: I'm on a Mac which I think uses a version of the Clang compiler. This has caused me some trouble before, but I haven't found anything online that leads me to believe this is the issue.

    edit: forgot to specify problem occurs with negative numbers only

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

    Best Git learning resource?

    Posted: 30 Apr 2018 05:42 PM PDT

    I tried learning from Codecademy's git overview, but that thing literally lags my brand new computer to hell, idk how or why, but it does.

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

    How viable is Udemy for employable skills?

    Posted: 30 Apr 2018 04:06 PM PDT

    I'm new-ish to programming and so far, everything I know is from Youtube, Udemy, and StackExchange. Realistically, can I actually obtain a steady job without a degree and is it realistically possible to beat out other more experienced programmers?

    I know C# and enough of many other languages to recognize what they are when I see code.

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

    Stay away from this programming book author

    Posted: 30 Apr 2018 05:01 AM PDT

    Name: Wallace Jackson

    This author has more than a dozen books on amazon. Most of those in the absolute beginners & "Pro" something category. Now, Every book of his I've read just contain a lot of cross references to his other books which I generally have no problem with, but after looking at the referenced book, you'd realize it's the same material literally copied and pasted just in a little different order. Oh! And he has a book titled along the lines of "Pro UI" and He claims to have worked with Sony, Nokia and many multinational companies but just take a look at his website: http://wallacejackson.com/index.html

    Here's the preface page from his book "Android Studio New Media Fundamentals" https://s9.postimg.cc/l4ld5s2kv/Wallace_Jackson.png

    Scary thing is, His books sell pretty well actually.

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

    PHP: Uploading an image to my site then placing it inside an already made div.

    Posted: 30 Apr 2018 10:01 PM PDT

    So I'm a complete noobie to PHP. I know HTML, CSS, and a bit of Javascript, but I have no knowledge of PHP. In fact the code I have now is taken from w3schools. I've figured out how to generate the uploaded image using "echo", but that's about it, and it's far from what I'm trying to accomplish.

    HTML:

     <form style="text-align: center; margin: 5px;" action="upload.php" method="post" enctype="multipart/form-data"> <strong>Upload:</strong><br> <input type="file" name="fileToUpload" id="fileToUpload"><br> <input type="submit" value="Upload" name="submit"> </form> <div class=images> <div class="image" date="April 30th, 2018" devid="test image"><img src="T.png"></div> <div class="image" date="April 30th, 2018" devid="test image"><img src="tst.png"></div> </div> 

    PHP is linked above, all that's been added is this:

    echo "<br>"; echo "<br>"; echo "<img src=$target_file>"; echo "<br>"; echo "<br>"; 

    What I'm trying to do is have the PHP place the uploaded file into the "images" div immidietly. I'll figure out how to add things like a image description myself, but for now this is what I mainly need.

    If this isn't enough then I actually have the code in action at https://www.ioi-xd.xyz/memecapsule. Ignore the stupid name, please.

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

    Where to begin looking for a job?

    Posted: 30 Apr 2018 05:43 PM PDT

    Obviously, I know hearing about a job or getting an interview can solely be based on who you know and networking BUT....

    I've seen people use the phrase job board a few times. Didn't know if there was a standard or go to website for developers to see what jobs may be available in their area for their skill level.

    Thanks for any help/clarification you guys can provide!

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

    This will be my fifth time starting over learning programming.

    Posted: 30 Apr 2018 06:49 PM PDT

    Basically I have started c++ for about 2 years off and on. Life and distractions would get in the way.

    I am an athlete as well, so I would be always too tired, hungry, impatient, unfocused to get past the "learning hump"

    I finally am going to give it 1 more go. The only thing I'm changing is keeping a log of what I learned everyday.

    Any advice? Should I continue on with c++ or go to something like python?

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

    [Python} I have python 3.6.5 installed but terminal says My version is Python 2.7.10

    Posted: 01 May 2018 12:28 AM PDT

    Hey guys, I'm trying to figure out this probably simple problem I'm having. Every time I type 'python --version' in my command line terminal, it outputs that I have python 2.7.10. However, I recently installed python 3.6.5 and my IDLE application reflects that. I suspect that I have multiple versions installed somewhere and it would help me get past some other issues I'm having if I can figure out why my terminal window displays something different from my IDLE application. Any help is appreciated, thanks!

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

    why is my insert statement being rewritten?

    Posted: 01 May 2018 12:28 AM PDT

    For some reason, after the for loop is passed, the whole statement is replaced with \n + (last item in the array) with no other words.

    https://pastebin.com/7hQZ1nbj

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

    [C++] while(cin>>input) loop for two arrays

    Posted: 01 May 2018 12:27 AM PDT

    I'm trying to prompt the user for a series of numbers until they stop inputting with the sentinel value X.

    int main() { const int CAPACITY = 100; int a[CAPACITY]; int a_size = 0; int input; int input2; int b[CAPACITY]; int b_size = 0; cout << "Please enter as many numbers as you want. X to stop inputting numbers." << endl; while (cin >> input) { if (a_size < CAPACITY) { a[a_size] = input; a_size++; } } cout << "Please enter an another array of numbers." << endl; while (cin >> input2) { if (b_size < CAPACITY) { b[b_size] = input2; b_size++; } } system("pause"); return 0; } 

    The first part of my

    while(cin>>input) 

    code works as expected, but when I prompt the user for another set of numbers, my program does not even allow the user to input a number before terminating the program.

    https://imgur.com/a/ui9hf5f - here is a test run. The first loop allows me to input as many numbers as I want, but the second loop doesn't even let me input anything.

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

    Going from Java to C#?

    Posted: 30 Apr 2018 08:07 PM PDT

    Hi everyone,

    I currently work as a Java developer for a huge multinational corporation. The segment I'm in was a smaller company that got bought a few years ago. Now that we are part of the larger company my options are open to move to other locations ( I'd love to move to an office in Europe and still be with this company).

    Anyhow, the problem is our segment is a Java while the rest of the company is C#. If I want to stay in the company and move it sounds like I need to switch to C#. I know very little of it, taking only a couple of classes in college. For those that are familiar with both what do you think? How's the transition and learning curve?

    Thanks

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

    Learn Python By Scraping Google Search Results

    Posted: 30 Apr 2018 11:52 PM PDT

    [Python - A bit of JS][Web] Python file not returning contents

    Posted: 30 Apr 2018 11:23 PM PDT

    Summary of what program is supposed to do: Send an AJAX request to python to retrieve the homepage contents.

    Summary of problem: No data is being retrieved from Python.

    Steps taken and additional info:

    • Adding an alert in the Success statement in AJAX request goes through, meaning request was successful

    • Alerting the data supposed to be retrieved shows nothing, so no data is being received from Python

    • Changed variable on the last line of Python code to print on IDLE. Printed fine, directory is correct.

    Suspected problem:

    • No data is actually being passed to the Python file? I have no idea how to troubleshoot this.

    Here's the JS function to send the request to python:

    function loadHome(){ $.ajax({ type: "POST", url: "../python/bossInfoRetriever.py", data: "htmlFileName=home_boss_list.html", dataType: "html", success: function(retrievedData){ if(parseInt(retrievedData)!=0){ $('#main-content').html(retrievedData); } } }); } 

    Here's the bulk of the python file: def file_content(fileName): with open(fileName) as html_file: content = html_file.read() return content

    form = cgi.FieldStorage() htmlFileName = form['htmlFileName'].value print file_content("../html/" + htmlFileName + ".html") 
    submitted by /u/not_a_web_developer
    [link] [comments]

    Is a OSX device easy to set up for a good programming environment?

    Posted: 30 Apr 2018 03:22 PM PDT

    basically i use vs code, vim and git. what i liked about linux is that when i needed something, i could just copy and paste and bunch of commands in my terminal and voila. can i do that on a osx device?

    edit: i know all os are good but i just like stuff that are convenient... eg i tried to install linux on a laptop before and it took a whole day

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

    How long would it take ?

    Posted: 30 Apr 2018 10:45 PM PDT

    Let's say I have no experience in programming but is really good with computer/technology and have a great memory how long do you guys think it would take to build a medium sized app if I start learning tomorrow and put a lot of work into it?

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

    Opinion about this course on Udemy? (link in text comment)

    Posted: 30 Apr 2018 09:51 PM PDT

    https://www.udemy.com/unrealcourse/. Thinking if it's worth buying?

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

    Example portfolio websites?

    Posted: 30 Apr 2018 09:51 PM PDT

    Just wondering if anyone has any good examples of portfolio websites.

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

    16 year old who would like to learn

    Posted: 30 Apr 2018 09:34 PM PDT

    Hi. I'm 16 years old and I would like to learn more about programming. I took a programming class last semester but the teacher didn't teach so well and i ended up getting overwhelmed with how much there was to learn. Can someone recommend me some useful tools or tutorials to further my knowledge. I've recently been searching tutorials online to learn java. But I don't know where to move on from there. I've been able to learn some of the basics but when it starts getting complicated I get overwhelmed and demotivated to move on. I would like to make a career out of this and would really appreciate some advice.

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

    Re-learning Core Concepts, whats worth it?

    Posted: 30 Apr 2018 09:24 PM PDT

    To give some history, I've been doing QA for around 8 years and doing automation the past 2 of them. I graduated with a C.S. degree (With an "ok" GPA that im not particularly proud of) but I struggled more in college than I wanted to...but that was 10 years ago almost now.

    Anyways I've been really relearning a lot of concepts, because I wanted to move into actual Software Development (even though Im doing some coding now). In a way I think I understand things (like Object Oriented Program/Breaking down a programming problem into small pieces) way more than I did before. I think I managed to stumble through CS with a very mediocre GPA (2.7~ish or so..which admittedly isn't great a lot of that had to do with my "Other" classes me not being great in, my C.S. classes I actually usually got A's/B's) but I didn't really *learn* things in the correct manner. Some of it is my fault I admit.

    Anyways im ok at math, but I see the CLRS book recommended a lot for instance and holy shit that book is incredibly difficult to understand. I got an A in my discrete math class but other math classes I did ok at. Anyways DS+Algo seem to be my weak point. I can usually pick up syntax and basic stuff well enough...but my C.S. concepts def. need some work.

    Besides DS+Algo is there anything worth re-studying? I did take the Coursera Algorithms 1 course (With Sedgewick) and managed to finish all but the last assignment (just sorta had other things come up). Is CLRS REALLY the best book to learn this stuff? Cause it seems more math heavy than need be yet it's recommended all the time? (Is it maybe because it "seems" smart...but maybe impractical?)

    Anyways I feel just a bit dumb like im not really cut out for this...but surely if i've gotten this far I can figure out the rest?

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

    Where can I find a text file dictionary (to find word definitions) for my project?

    Posted: 30 Apr 2018 09:10 PM PDT

    Hi all! I'm working on an "index card generating" project in Clojure, and one of my features will be to generate word definitions. I can't seem to find a text file version of a dictionary I could potentially download..would anyone have any suggestions? Maybe there's a direct Clojure/java library I can use that already has all the definitions, so I won't need to download anything big?

    I'm having a hard time finding anything since dictionary also refers to hash tables :'(

    Does anyone have thoughts on this?

    EDIT: My preference is for a Spanish language dictionary, but will take what I can get.

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

    How do I know when I'm ready to apply for entry level dev work?

    Posted: 30 Apr 2018 12:21 PM PDT

    Any suggested (shorter preferably) projects you guys recommend to know if you are qualified. Started self learning python, have some experience (not professional, 1 class each :s ) with c++ and sql but I'm looking to go python route. Also preferably project's with answer keys so that I can learn from mistakes. Looking to have a end goal of sorts so that I won't embaress myself when I go to an interview.

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

    Unable to Change Background Based on Time of Day - Vanilla JavaScript

    Posted: 30 Apr 2018 08:09 PM PDT

    I am about to rip my hair out I'm so frustrated. For the past 7 hours I have been trying to figure this out, and I feel like a complete idiot. I'm awesome in CSS and HTML, but I suck at JavaScript, so please don't make fun of me. I had a nice web app working fine, was even storing local data for a user's name, and everything just stopped working for no reason, couldn't figure it out and got made fun of on stackoverflow (done with that site) so I started again. I originally had this in a switch statement, but now it's not working as an if/else if statement either - only the else works. Please let me know what I'm doing wrong - I don't see anything wrong with my code.

     const date = new Date(); let hours = date.getHours(); let minutes = date.getMinutes(); let dayWeek = date.getDay(); let dayMonth = date.getDate(); let month = date.getMonth(); let year = date.getFullYear(); let background = document.querySelector(".background-image"); let timeOfDay = document.querySelector(".time-of-day"); console.log(hours); if (hours >= 7 && hours <= 10) { background.classList.remove("afternoon", "evening", "night"); background.classList.add("morning"); timeOfDay.innerHTML = "morning"; } else if (hours >= 11 && hours <= 14) { background.classList.remove("morning", "evening", "night"); background.classList.add("afternoon"); timeOfDay.innerHTML = "afternoon"; } else if (hours >= 15 && hours <= 18) { background.classList.remove("morning", "afternoon", "night"); background.classList.add("evening"); timeOfDay.innerHTML = "evening"; } else if (hours >= 19 && hours < 6) { background.classList.remove("morning", "afternoon", "evening"); background.classList.add("night"); } else { console.log("error"); timeOfDay.innerHTML = "error"; } 

    EDIT: If I attempt to change the timeOfDay or background in the else statement, it works to whatever I put in there.

    EDIT 2.0: Code reformatting.

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

    No comments:

    Post a Comment