• Breaking News

    Tuesday, March 12, 2019

    Has anyone here actually "learned to program" and gotten a job as a programmer from an unrelated field? learn programming

    Has anyone here actually "learned to program" and gotten a job as a programmer from an unrelated field? learn programming


    Has anyone here actually "learned to program" and gotten a job as a programmer from an unrelated field?

    Posted: 11 Mar 2019 08:38 PM PDT

    Everyone says "learn to code" when people complain about their jobs. Has anyone here successfully changed careers and taught themselves to code without going to school or having a CS degree? If so, how long did it take? Which language did you learn?

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

    Are all programmers workaholics?

    Posted: 11 Mar 2019 05:16 AM PDT

    Trying to become a programmer. For the past 4 months i have devoted myself to sit down every day, and learn. It's been tough. I usually spend around 5 - 8 hours working, learning. Though, i just feel like 4-5 hours of this is efficient. Then i see, or hear other people talk how they sit down like 15 hours a day, every day. Like, is that even possible? Is it possible to be concentrated for that long? I know there might be some exaggerations, but still, do you need to be a real workaholic to succeed in this industry? When people talk about programming, they say stuff like, you need to learn for 15 hours every day, and you can't relax a bit, and for the rest of your life you will be constantly learning. How can you actually cope with this? Yeah, i know, life is hard, it's not a fairy tale. But seems like you need to just concentrate on programming and forget all other stuff in life. Don't get me wrong, I'm not complaining. And yeah, programming is kinda exciting for me, but sometimes makes me wonder if i will be able to do this. Thinking about it, for the next 20 years, life full of stress, and constant working, not having time for anything else. Is this generally true? In the end, it's just a job, and like every other job you need to work. But, again, do you need to be a real workaholic to actually succeed in this industry??

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

    I built an open-source Slack skin for Reddit!

    Posted: 11 Mar 2019 03:30 PM PDT

    Hey Slackers, meet Redackt! Inspired by pcottle's MSOutlookit, I decided to build my own Slack-like skin for Reddit. Now you can pretend to be messaging your colleagues, while actually browsing your favorite subreddit. This was my first big project in React, but it was a lot of fun and taught me a lot. I'm also making it completely open source so you guys can help me make this a truly wonderful time-waster! I wanted to make it as functional as possible so I added stuff like:

    • Dark Mode
    • Threads
    • Add/Remove Subs
    • Search
    • Likes/Gildings

    I'd love your help with the issues that the app has, and you can get more info on the readME

    Disclaimer: Obviously, I don't own Reddit or Slack, just wanted to make something cool combining the two!

    See it here

    GitHub Repo

    Let me know what you think or join me in building something awesome!

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

    How should I go about learning C++?

    Posted: 11 Mar 2019 07:49 PM PDT

    What's the best way to go about learning C++? So far, I've been following the CS50 curriculum at school, which uses C, and I've been programming for robotics, which uses C++ (however, it uses an API where I don't do any work with creating my own classes.)

    Seeing as I would like to become more familiar with object oriented programming, I thought I would look into C++. What are the best resources available to become familiar with the language? I don't mind buying any books to follow, but I would like to give online materials a shot first.

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

    [Python] Inheritance help with accessing parent variables

    Posted: 11 Mar 2019 07:36 PM PDT

    Hi, I'm having some trouble with a simple python program to explain inheritance. I have experience with other languages but this one is just stumping me for such a simple issue.

    I'm receiving an error where I'm unable to access the internal variable __happiness of the Pet type from a call in the subtype Cat.

    https://pastebin.com/pvbzrLVL

    This is the code I have at the moment, and I've tried a number of variations of the implementation of super and etc. From what I can gather, because im overriding the initialisation constructor in the subtype, I can't access the parent variables? Would I just need a getter for happiness? I've done some googling and can't find a solution so I thought I'd ask if its something simple I'm not understanding coming from Java.

    This is the error I receive: AttributeError: 'Cat' object has no attribute 'Cat_happiness'

    Thanks

    Edit: Solved, it was something simple after all. Private vs protected variables.

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

    In your opinion, how important is documentation/communication ?

    Posted: 11 Mar 2019 10:33 PM PDT

    I know this sounds like a stupid question but I think it deserves to have its own topic.

    In my class, many people are saying "There's no need to learn [insert main language here] because we're developers, it's stupid".

    I think this is just wrong. Documentation and communication is an entire part of computer science and yes, writing good documentation requires good language skills.

    What do you think ?

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

    When is a beginners portfolio robust enough to begin applying to junior dev positions?

    Posted: 11 Mar 2019 07:38 AM PDT

    I'm a relative beginner, working through freecodecamp and planning to move to Colt Steele's boot camp or p1xt's guide to continue learning when finished with all of it. I obviously don't have a CS degree but I do have a magna cum laude bachelors degree in philosophy, which does help with logic itself.

    I'm wondering at what point should I begin applying to junior dev jobs? How many front-end projects should I have in my portfolio before it's time to start applying? There is clearly never a point where one should not be learning throughout a coding career, so at what point should one feel confident in applying to jobs when they have no experience in applying or working as a programmer?

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

    Plink - How to end a session?

    Posted: 11 Mar 2019 08:26 PM PDT

    Hello. I'm having trouble scripting. I need to send commands through serial. I'm using Plink to do this, however I'm having trouble with timing, since the system requires some time to react. I'd like to send a few commands, end the session, put in a delay, and open a session again. Is there a way to do this? Alternatively, if there's a way to put in a delay with Plink itself, that'd be awesome. Thanks!

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

    Asymptotic Analysis Explained with Pokémon: A Deep Dive into Complexity Analysis

    Posted: 11 Mar 2019 07:44 PM PDT

    A unique and interesting way of explaining a boring yet important topic of Asymptotic Complexity Analysis. The article takes the form of a story and tries to explain the important tools and techniques used for analyzing the complexity of algorithms. Additionally, a detailed analysis of some iterative and recursive algorithms is shared. A complicated topic such as the Master Method is also explained beautifully IMO. Go ahead, have a look!

    https://medium.freecodecamp.org/asymptotic-analysis-explained-with-pok%C3%A9mon-a-deep-dive-into-complexity-analysis-8bf4396804e0

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

    Need a Mentor for Machine Learning

    Posted: 11 Mar 2019 08:56 PM PDT

    I have a few questions about machine learning and I need someone knowledgeable. Can anyone answer a couple of questions / be my mentor?

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

    Non CS looking for free tutoring for Tech interviews

    Posted: 11 Mar 2019 08:33 PM PDT

    Hello,

    I used to be Computer Science and have a decent basis, but I am struggling on studying for my technical interviews. I've been reading CTCI and doing leetcode/watching YouTube videos, but it would be a lot of help if I could talk and ask someone things. Thank you so much. If you could DM me or comment i'd appreciate it.

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

    Learning python

    Posted: 12 Mar 2019 12:18 AM PDT

    I need someone to suggest me some good video tutorials that'd teach me Python from a beginner to advanced level.

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

    Are websites like HackerRank, LeetCode and Codewars appropriate for beginners wanting to learn?

    Posted: 11 Mar 2019 10:26 AM PDT

    Most of these websites have simple easy problems for starters as well as more complex and harder problems for you to solve as you develop. It is also very convenient to have someone give you a problem to solve without you actually having to come up with a project idea. Most of these websites also have a nice interface game-mechanics which make them addictive. That said, is it appropriate for someone wanting to learn, or only for experienced programmers wanting to compete?

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

    Speed, Speed, Speed JavaScript vs C++ vs WebAssembly

    Posted: 11 Mar 2019 09:20 PM PDT

    Franziska Hinkelmann spoke at CovalenceConf 2019 about how JavaScript stacks up against C++ and WebAssembly, what kind of code is actually fast, and the performance considerations one should account for when building apps with web technologies.

    --> https://www.youtube.com/watch?v=ia8IXU0eli4

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

    Clean Code; Is this the correct book?

    Posted: 11 Mar 2019 07:00 PM PDT

    I've hear a lot about people suggesting "Clean Code" for reading. I was looking to buy the book and wanted to make sure it was the correct on. is this it?

    https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882

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

    Algorithms and Proofs?

    Posted: 11 Mar 2019 09:01 PM PDT

    My course in data structures and algorithms will be requiring that I not explain and code an algorithm for a problem, but to explain the proof of an algorithm. We learned about selection sort today and while I understand how it works and why the time complexity is O(n2), I don't understand the proof behind it.

    What are some articles/books that I could read that will explain the proofs behind algorithms?

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

    Trying to learn JavaScript, I made an animated background gradient generator that mostly works

    Posted: 11 Mar 2019 03:03 PM PDT

    https://codepen.io/evanmacbride/full/GeMNWm

    I wrote a script that will semi-randomly generate animated background gradients with contrasting colors and degrees of origin. I'm using two variably transparent "veil" divs to hide the point at which the background actually changes color. The result looks pretty smooth, except there's an occasional flicker when an animation cycle ends. I'm guessing that if I used a jQuery callback function instead of vanilla JS, I could get a smoother transition, but I haven't learned enough jQuery yet to try that.

    Another weird thing I noticed is that CodePen is putting a border around the page that I don't know how to get rid of. Let me know if you have any tips to get this working better. One last thing: I set the animation time to 14 seconds to demonstrate the effect, but it looks better the slower it is. Thanks!

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

    [CSS] Im trying to add flag images on my navigation but adding images to the nav bar ends up removing the black nav banner. Any idea whats going on here?

    Posted: 12 Mar 2019 12:32 AM PDT

    This is the template I am using

    https://startbootstrap.com/themes/agency/

    On the <!-- Navigation --> section of the code I added the flag images to denote different language versions

    <li class="nav-item">

     <a class="nav-link js-scroll-trigger" href=""><img src="ES.png" />ES</a> </li> <li class="nav-item"> <a class="nav-link js-scroll-trigger" href=""><img src="RU.png" />RU</a> </li> <li class="nav-item"> <a class="nav-link js-scroll-trigger" href=""><img src="PT.png" />PT</a> </li> 
    submitted by /u/DeepKaizen
    [link] [comments]

    Unity Help!

    Posted: 12 Mar 2019 12:31 AM PDT

    I am doing a Unity project and keep getting the error error CS1501: No overload for method 'AddForce' takes 0 arguments. Here is my code;

    using System.Collections;

    using System.Collections.Generic;

    using UnityEngine;

    public class Shoot : MonoBehaviour

    {

    public GameObject bulletPrefab; public GameObject ShootPoint; 

    // Start is called before the first frame update

    void Start()

    {

    }

    // Update is called once per frame

    void Update()

    {

    GameObject bullet = (GameObject)Instantiate(bulletPrefab, ShootPoint.transform.position, Quaternion.identity);

    bullet.transform.GetComponent<Rigidbody>().AddForce();

    ShootPoint.GetComponent<Rigidbody>().AddForce(ShootPoint.transform.forward * 3);

    }

    }

    Please help, anything is appreciated!

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

    Video Course To Master Magento 2 Development

    Posted: 12 Mar 2019 12:05 AM PDT

    Magento is a trusted open-source e-commerce software and platforms offering a full-featured website with little effort used by over 250,000 stores. According to pay-scale, an Magento developer salary is over $100,000. As a PHP developer, you can start your Magento career with this course

    This course goes from beginner to advanced in Magento development. Since Magento 2 is a robust framework, concept are well explained with appropriate coding examples to reinforce it. Also we made sure the examples are real world scenarios.

    After this course, you will not only be able to create Magento 2 module, you will also understand the framework thereby debugging Magento 2 better and faster.

    in this 12 hours video course you will learn

    - Architecture & Design pattern in Magento 2

    - Request Flow Processing

    - Database & Setup Scripts including building custom APiI

    - Entity Attribute Value

    - Presentation Layer

    - Customizing Adminhtml.

    Check it out at https://www.udemy.com/simplified-magento-2-video-course-from-beginner-to-expert/

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

    Building a mini Search Engine

    Posted: 11 Mar 2019 11:24 PM PDT

    Hi r/learnprogramming community! I'm building a small search engine currently. I have built a crawler that gets relevant links. By relevant links, I mean links that contain some essential information regarding Machine Learning topics.

    I also created an inverted index.

    Now my question is : what are some ranking algorithms I can use?

    PAGERANK I went through a little bit of Page Rank algorithm. But because I can only crawl a few links, the algorithm isn't feasible.

    TF-IDF When I crawl through the web, I only add links that have some certain number of important keywords. Example: "Neural Network", "Backpropagation", "Machine Learning" etc.

    Because Machine learning appears in almost all the pages I have crawled, the score of "Machine Learning" would be low. That's one reason why I feel TF-IDF may not work well for my project. If I'm wrong, please feel free to correct me.

    What are other algorithms I can consider? Thanks in advance.

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

    How to set grad[ ] in NLopt?

    Posted: 11 Mar 2019 11:23 PM PDT

    I would like to ask about NLopt as follows below. (The NLopt website refers to https://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/)

    Question1: If the number of constraints is bigger than the number of variables, how can we set "grad[ ]" in the "myconstraint"? Is there any (automatic) method to solve the problem without introducing Lagrangian multiplier?

    Using Lagrangian multiplexer, I know we can solve the problem. However the use of Lagrangian multiplexer we have to obtain "my_constraint_data'' manually, which make it difficult to solve large-scale problem.

    Example : Minimize f= -((x1)^3)-(2*(x2)^2)+(10*(x1))-6-(2*(x2)^3) subject to 10-((x1)*(x2))>=0, ((x1)*(x2)^2)-5>=0 and (x2)-(x1)*(x2)^3 >= 0

    Based on the problem above, we have three inequality constraints like below.

    Constraint 1: c1 = 10-(x1)*(x2) >= 0

    Constraint 2: c2 = ((x1)*(x2)^2)-5>=0Constraint 3: c3 = (x2)-(x1)*(x2)^3 >= 0In NLopt tutorial, we know that grad[0] = d(c1)/d(x1) and grad[1] = d(c2)/d(x2) as the gradient of constraints. Then, we set grad[ ] as same as follows.

    double myconstraint(unsigned n, const double *x, double *grad, void *data) {

    my_constraint_data *d = (my_constraint_data *)data;

    if (grad) {

    grad[0] = -x[1]; //grad[0] = d(c1)/dx[1]

    grad[1] = 2*x[0]+x[1]; //grad[1] = d(c2)/dx[2]

    grad[2] = ???; //grad[2] = d(c3)/dx[3] but we only have 2 variable (x1)&(x2)

    }

    return (10-x[0]*x[1], x[0]*x[1]*x[1]-5, x[1]-x[0]*x[1]*x[1]*x[1];

    }

    The problem is we do not know how to set "grad[ ]" (especially for c3) if the number of constraints are larger than the number of variables.

    Of course we can solve the problem with non-automatic method like below by using Lagrangian multiplexer (l1, l2, l3) where grad[0] = -l1*(d(c1)/d(x1))-l2*(d(c2)/d(x1))-l3*(d(c)/d(x1)) and grad[1] = -l1*(d(c1)/d(x2))-l2*(d(c2)/d(x2))-l3*(d(c)/d(x3))

    double myconstraint(unsigned n, const double *x, double *grad, void *data) {

    my_constraint_data *d = (my_constraint_data *)data;

    //set l1, l2, and l3 as parameter of lagrangian multiplier

    double l1=d->l1,l2=d->l2,l3=d->l3;

    ++count;

    if (grad) {

    grad[0] = l1*x[1]-l2*x[1]*x[1]-l3*x[1]*x[1]*x[1];

    grad[1] = l1*x[0]-2*l2*x[0]*x[1]-l3+3*l3*x[0]*x[1]*x[1];

    }

    return (10-x[0]*x[1], x[0]*x[1]*x[1]-5, x[1]-x[0]*x[1]*x[1]*x[1]);

    }

    Meanwhile, it is not easy to apply non-automatic method into large-scale problem because it will be inefficient and complicated in programming.

    Question2: Is there any method to solve nonlinear simultaneous equations using NLopt? (When Lagrangian multiplexer is applied in case of the number of constraints are larger than the number of variables, nonlinear simultaneous equations should be solved).

    Your answer will be really helpful to us. Thank you.

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

    Embedded video not playing sound

    Posted: 11 Mar 2019 10:51 PM PDT

    I'm very new to web development and am just trying to learn some small things and I tried to embed a video file in an html page. While the video will play just fine, there is no sound. The volume button is grayed out but when playing the original file the sound works just fine. Is there something obvious I'm missing? When I tried googling this I mainly found people wanting to mute their video which didn't seem like the things I needed.

    <!DOCTYPE html> <html> <head> </head> <body> <video width="320" height="240" controls> <source id="video" src="video.mp4" type="video/mp4"> </video> </body> </html> 

    Edit: It turns out I made a mistake with file types, the first test had used an mp4 that happened to have no sound to begin with and the second test I ended up testing with an mkv that did was supposed to have sound and it just didn't occur to me that the issue was with the file types.

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

    [MIPS] Understanding structs

    Posted: 11 Mar 2019 10:43 PM PDT

    Hi everyone, I'm working on some MIPS instructions and was wondering how to translate this C code into MIPS:

     struct { int foo[10]; long bar[10]; }; 

    If foo[0] starts at address 0xABCD1230, then foo[1] would be at 0xABCD1234, and so on? But for long, which takes up 64-bits, and if each register only holds 32-bits, would I have to allocate 2 registers per long? Please let me know if my train of thought is correct, thank you!

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

    No comments:

    Post a Comment