• Breaking News

    Wednesday, April 25, 2018

    Ray Kurzweil as a 15-year-old "created a pattern-recognition software program that analyzed the works of classical composers, and then synthesized its own songs in similar styles". How would have this been made 50 years ago without deep learning and neural networks? learn programming

    Ray Kurzweil as a 15-year-old "created a pattern-recognition software program that analyzed the works of classical composers, and then synthesized its own songs in similar styles". How would have this been made 50 years ago without deep learning and neural networks? learn programming


    Ray Kurzweil as a 15-year-old "created a pattern-recognition software program that analyzed the works of classical composers, and then synthesized its own songs in similar styles". How would have this been made 50 years ago without deep learning and neural networks?

    Posted: 24 Apr 2018 02:31 AM PDT

    I am reading Kurzweil's Wikipedia page,

    In 1963, at age fifteen, he wrote his first computer program.[19] He created a pattern-recognition software program that analyzed the works of classical composers, and then synthesized its own songs in similar styles. In 1965, he was invited to appear on the CBS television program I've Got a Secret, where he performed a piano piece that was composed by a computer he also had built.

    I thought that style transfer and analyzing a dataset for patterns (unsupervised learning) are only possible now with the tools we have in this decade. How did these pattern recognition programs work almost 50 years ago? Does anyone have any specifics on this?

    Examples in the form of pseudocode, references to existing work, etc are welcome!

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

    Mechanical Engineer to iOS Developer in 8 months.

    Posted: 24 Apr 2018 07:33 AM PDT

    TL:DR - Started out working at a dead end job and quit to become iOS Developer. Hit a few dead ends along the way but now am a Senior iOS Developer making way more money than I could've ever imagined I would.

    I just wanted to post on here and tell everyone how thankful I am of this subreddit and your support in general. I can't tell you how many times along my journey I've used this subreddit for help and inspiration in general. I've seem plenty of posts on here about quitting your job and pursuing development. I wanted to walk you through my successful journey and some of the missteps I had along the way.

    I was fresh out of college (with a B.S. Mechanical Engineering degree) and took the first job I could find with the company I interned and co-oped with as an Associate Engineer. About a year into this job (2016) I decided I really didn't want to work for this company anymore. I was doing MAYBE an hour of work everyday, I didn't feel like I was challenging myself, my boss was an ass and the people I worked with were complete failures, etc.. I remember watching The Social Network and that sparked my interest for programming and web development in general. In college I took a few programming classes that I absolutely loved and did really well in them so in my free time while working as an Associate Engineer (nights and weekends) I began learning some web development with HTML/CSS and JS. Shortly after that, I remember like it was yesterday, I was playing basketball staring at my phone thinking "How the hell would I make an app like this?". That night I began researching and learning the language of iOS Development and general information.

    Fast-forward about 2 months and I decided I was going to pursue becoming an iOS Developer. I had completed a few free online courses at this point (Appcoda and Udacity if I remember correctly) but wanted more of a challenge. I bought Mark Price's iOS Development courses on Udemy and this was when I really started working like crazy. While working at my actual job 8 hours a day and working out after I began doing 3/4 hours of the Udemy course at night before bed. This was pretty average, some days I just wouldn't feel like doing iOS while others I would work well into the night. I felt I wasn't learning as quickly as I wanted to. This is when I quit my full-time job (August 2017).

    It was a big risk at the time but I was living at home with enough money saved up to last me about two-years unemployed. My family was really supportive of me and I knew I was going to have to work extra hard now. I bought two iOS Development books (Big Nerd Ranch Guide), read through those and completed two Mark Price courses over the course of 3 months working with iOS development 8+ hours a day and loving every minute of it.

    Soon after completing these courses I felt I should start applying to iOS Development jobs. I was applying every Friday to many jobs for about a month and hearing back from maybe a 2/3 a week. Companies were extremely impressed with my skills and I was making it to the second and third rounds for most of the interviews but falling flat during the technical aspect. This was pretty demoralizing as I felt like I was an extremely good iOS Developer working with many iOS frameworks and tools along the way. This lasted about a month and I just couldn't land a job and stopped programming altogether so my skills were slipping. I was trying to find the best way to increase my chances of landing a job while also becoming a better programmer so I could nail these technical parts of the interviews. To help with this I began making my first iOS app late in 2017.

    This app is called Listemize (iOS only), please feel free to check it out and give me your feedback. It took me about a month to complete and is my single greatest iOS achievement to date. I'd like to sell my app to you for just a minute. I completed this in February of this year and have over 260 users on it. Listemize is a completely free personal group and list manager app. I believe it is the easiest way to manage and keep track of your personal lists as well as group lists. Listemize has a very unique UI is a beautifully created tool that automatically keeps your group lists up to date and syncing real-time across all of your family and friend's devices. It uses authentication tools for logging in, email verification, user management with password resetting, email resetting as well as re-authentication. Firebase is used as the backend and again uses cloud services and snapshots to update real-time within milliseconds.

    I believe this app really put me on the map with iOS development and I began getting more and more interviews for jobs and companies would simply call and ask about this app once they heard about it.

    About a month ago I accepted a position as a Senior iOS Developer (yes, SENIOR) at a company making way more than I would've ever imagined once I began this journey. I want to thank you /r/learnprogramming and everybody here who has inspired and helped me along the way.

    Mamba out

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

    Is there a subreddit Slack/Discord/ for people who are in the programming job search process?

    Posted: 24 Apr 2018 10:46 PM PDT

    A place for like minded people to provide morale support/help/tips for job searching.

    I've already looked at r/cscareerquestions, and sometimes posters will get downvoted into oblivion for asking legitimate questions.

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

    What are some good certifications that can be obtained online or available internationally?

    Posted: 24 Apr 2018 10:10 PM PDT

    Hey guys! I'm currently pursuing a master's degree in physics, but I really, really love programming and have taken a semester worth of Java, C/C++ and C# in my undergrads and am currently taking python. I was wondering if there were any certifications I could get that would help me get a job as a programmer. Any advice? :)

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

    Our discord server is growing!

    Posted: 24 Apr 2018 03:34 PM PDT

    Hello all!

    I know a lot of you have posted saying that you don't have many people to talk to about programming. We have a discord server where we are doing just that :p

    So if you need help with getting started, or where to go next, wondering why your code isn't working, are looking for a code review, or just want to talk about programming, feel free to stop by.

    We have a variety of experience levels in a variety of languages, so there's likely someone around that can help you, if you need it!

    https://discord.gg/ug37zP4

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

    Just finished business programming course. Having a lot of trouble understanding simple programming fundamentals going forward

    Posted: 24 Apr 2018 06:06 PM PDT

    So I just finished a introductory business programming course using Java and it left so much out. I feel like cramps so much in to the course that it didn't actually stop to clarify a bunch of things so now I'm completely confused about numerous things in several languages including Java and python.

    Starting with Java...

    I don't really understand what static means or does. I have read it repeatedly that static refers to the class itself and you don't actually have to initialize a new instance in order to use something labeled static. Plus, I have this very muddled foggy idea that something that is static is only declared once in memory and doesn't get declared again and again every time a new instance is created, say if you make hundreds of objects, it will only be created once. This means almost nothing to me is I don't have any understanding of memory or memory management or even data structures because that was not really covered in the course.

    Return is also thoroughly confusing. I'm not exactly sure if return retrieves something and passes it to the class, the Constructor, or if it does neither and simply exits the function and goes back to the root scope. Not sure when to use it, when not to use it. I know you can do a system out print And you don't really need to do return but if you do a calculation using a method you have to return it in order for it to be used in the driver class that you are calling the method from.

    For Python, init makes literally zero sense to me no matter how I read it. It appears to be that it is acting as sort of a Constructor for a class but there's little idea in my mind when you would ever use it and when you wouldn't. Also, self appears to be the same thing as this in Java, referring to the instance itself.

    Seems like I have a lot of gaps to fill in my programming understanding before I can even start going forward into more advanced stuff because the course left out so many basics

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

    What's a good resource that summarizes the differences between imperative and functional languages, and how to use them?

    Posted: 24 Apr 2018 09:27 PM PDT

    I'm taking an AI class, and while I know the difference because of prior classwork some of my classmates do not. Is there an article floating around somewhere that can help them understand how to get in the functional programming mindset?

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

    I'm making an app and I suck at UI - help!!!

    Posted: 24 Apr 2018 06:14 PM PDT

    I'm learning how to make apps, and I am a backend engineer. I only have built simple UI's for classes back in the day, but I don't do UI stuff ever in my job.

    Now I am noticing that it is a different type of beast.

    I'm having a lot of trouble designing 'likeable' UI's.

    Do you have any suggestions on books, or tutorials, that allow you to make pretty good UI's using Swift? (XCode)

    Mine needs to be very simple, a few fields, a few toolbars! But I can't make it look good. It just looks super ugly and nerdy and overly-simple, that it makes you never look at that app again.

    Any suggestions?

    Would it be better to just buy one of those themes, like here: https://www.uplabs.com/posts/c/ios/market/price/free and use that?!

    Your answers are truly appreciated. G'day.

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

    Need help understanding Git

    Posted: 24 Apr 2018 11:47 PM PDT

    I'm a college kid who's been hearing a lot from other CS majors that I need to work on projects and whatnot to make my resume look better, to learn, gain experience, etc. I know programmers use Github for that thing so I went on Codecademy to learn how to use Git. Also, if there are better resources to learn Git and solidify my understanding I'd love to hear it. My 3 main questions.

    1) I'm not exactly sure I truly get a staging area and working directory. Like this image. Or am I misunderstanding it and the "working directory" just means normal stuff on your local computer (stuff in your documents folder, on your desktop, etc.)? Why don't you take have 2 positions? 1 for making edits and backtracking if you need it. The second where it's finally committed? Why are there 3?

    2) What's the difference between "git clone" and "git fetch". Here are the defintions I'm given.

    git fetch: Fetches work from the remote into the local copy.

    git clone: Creates a local copy of a remote.

    They sound awfully alike. What makes them different from one another?

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

    C# Connect 4

    Posted: 24 Apr 2018 07:29 PM PDT

    I've ran into a problem with finding the diagonal line, it finds the winner from right to left but doesn't find the other way? Can anyone help?

    Color Player1 = Color.Red; Color Player2 = Color.Yellow; Color Nobody = Color.AliceBlue; Color FindHLine() { for (int row = 0; row < bHeight; row++) { for (int col = 0; col < bWidth; col++) { if (hLine(col, row)) { return gameButtons[col, row].BackColor; } } } return Nobody; } Color FindVLine() { for (int row = 0; row < bHeight; row++) { for (int col = 0; col < bWidth; col++) { if (vLine(col, row)) { return gameButtons[col, row].BackColor; } } } return Nobody; } Color FindDLine() { for (int row = 0; row < bHeight; row++) { for (int col = 0; col < bWidth; col++) { if (dLine(col, row)) { return gameButtons[col, row].BackColor; } } } return Nobody; } bool hLine(int col, int row) { if (gameButtons[col, row].BackColor == Nobody) { return false; } if (col > bWidth - WinningLineLength) { return false; } for (int i = 0; i < WinningLineLength; ++i) { if (gameButtons[col, row].BackColor != gameButtons[col + i, row].BackColor) { return false; } } return true; } bool vLine(int col, int row) { if (gameButtons[col, row].BackColor == Nobody) { return false; } if (row > bHeight - WinningLineLength) { return false; } for (int i = 0; i < WinningLineLength; ++i) { if (gameButtons[col, row].BackColor != gameButtons[col, row + i].BackColor) { return false; } } return true; } bool dLine(int col, int row) { if (gameButtons[col, row].BackColor == Nobody) { return false; } if (row > bHeight - WinningLineLength) { return false; } if (col > bWidth - WinningLineLength) { return false; } for (int i = 0; i < WinningLineLength; ++i) { if (gameButtons[col, row].BackColor != gameButtons[col + i, row + i].BackColor) { return false; } } return true; } public void hWinner() { Color winner = FindHLine(); Color winner2 = FindVLine(); Color winner3 = FindDLine(); if (winner == Player1) { MessageBox.Show("Player 1 has won"); Close(); } else if (winner == Player2) { MessageBox.Show("Player 2 has won"); Close(); } if (winner2 == Player1) { MessageBox.Show("Player 1 has won"); Close(); } else if (winner2 == Player2) { MessageBox.Show("Player 2 has won"); Close(); } if (winner3 == Player1) { MessageBox.Show("Player 1 has won"); Close(); } else if (winner3 == Player2) { MessageBox.Show("Player 2 has won"); Close(); } else { } } 
    submitted by /u/Lewis2609
    [link] [comments]

    Automatically testing an Android function that needs user authentication

    Posted: 24 Apr 2018 08:33 PM PDT

    I am trying to require user authentication through Keyguard Manager for an Android app as part of a flow. This means that user must be authenticated to go through the flow. This is accomplished by starting a Keyguard Manager createConfirmDeviceCredentialIntent generated activityForResult and receiving an activityResult from it.

    I want to test that flow automatically. This causes a problem because my automated test isn't able to authenticate itself(i.e. enter swipe pattern or enter PIN). How can I get my test to automatically pass this to put the test environment into an authenticated state? Can I mock some function in the Keyguard Manager to automatically pass the authentication check?

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

    Would making a reddit clone be too difficult?

    Posted: 25 Apr 2018 12:03 AM PDT

    I've been brainstorming programming projects I can do then this idea popped into my head.

    I thought of making a reddit clone. Comment, creating user accounts, voting system, etc etc. Obviously the first prototype will be ugly asf, but as I learn more I can improve the design and function.

    Problem is, I'm not sure where to get started. I'm borderline intermediate with Front-End development. I still have much to learn before I can declare myself intermediate. I haven't touched backend yet, but my choice would be Node.js.

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

    Looking for websites that gives tutorials on popular programs made from scratch.

    Posted: 24 Apr 2018 01:01 PM PDT

    I have been developing for a year now. I feel preety confident with my language. I want to take a step up and learn how complex and popular programs are made from scratch. Some examples would be compiler, operating system, a shell, text editor, popular websites, data compressor etc. Preferred language will be C but it could really be anything.

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

    Learn by looking at others code - is it bad?

    Posted: 24 Apr 2018 09:40 AM PDT

    I'm just a beginner/intermediate level student, but sometimes I feel like I learn better when I analyze the code from other people. For example, I try on my own at first, but when I see I can't grasp it, I go to Stack Overflow and look at code. I don't simply copy it, I look at it, and try to understand why is it working.

    Is it bad? Should I try another approach?

    Thanks a lot.

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

    Kotlin’s Nothing: Its Usefulness in Generics

    Posted: 24 Apr 2018 11:27 PM PDT

    [JavaScript] Unable to store geolocation coordinates to global variables

    Posted: 24 Apr 2018 07:34 PM PDT

    I am trying to store the geolocation coordinates to the variables lon and lat that I defined globally. But when I check console, it always says undefined. I am pretty sure my code is wrong, but I have no idea what it is. I keep reading about it, but it's not making sense to me. Code:

    var lat; var lon; navigator.geolocation.getCurrentPosition(function(position) { lat = position.coords.latitude; lon = position.coords.longitude; }); console.log(lat + "" + lon); 
    submitted by /u/AlwaysFailCode
    [link] [comments]

    Help Simple Neural Network Backpropagation Math

    Posted: 24 Apr 2018 10:58 PM PDT

    I've got a neural network that has two inputs, two weights plus a bias and one output. x1 and x2 are inputs, w1 and w2 are weights, b is the bias, z is the sum of the inputs multiplied by their respective weights plus the bias, and pred is z after being passed through a sigmoid function. To calculate the error I use the following formula:

    error = (target - pred)2

    And here's my backpropagation code:

    1) let derrordpred = 2*(target - pred);

    2) let dpreddz = -pred*(1-pred);

    3) let dzdw1 = x1;

    4) let dzdw2 = x2;

    5) let dzdb = 1;

    6) let derrordw1 = derrordpred * dpreddz * dzdw1;

    7) let derrordw2 = derrordpred * dpreddz * dzdw2;

    8) let derrordb = derrordpred * dpreddz * dzdb;

    9) w1 -= derrordw1 * learningRate;

    10) w2 -= derrordw2 * learningRate;

    11) b -= derrordb * learningRate;

    So on line 2) I made dpreddz a negative value (the "-" sign at the front) which results in the NN training itself to become worse. But why is that? Like if I had following equation (3-x)2 the derivative of this would be 2(3-x)*-1 where -1 is the derivative of (3-x). So why doesn't this method also apply to this case with my NN?

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

    Help with Code.org not so simple Black Jack program

    Posted: 24 Apr 2018 07:12 PM PDT

    For APCSP I have to create a program that shows my very limited knowledge of programming. We can choose any language we want; I chose code.org's language since it is what I have been learning throughout the school year.

    In my program, I have a function called newCardPlayer which draws a new card for the player. If the random number is 1, the player has the option of setting the value of the ace to 1 or 11. My issue is that when more than one ace is drawn in the same hand, some portion of the program concerning the ace seems to repeat itself, and I cannot figure out why. For example, if an ace is drawn two times in the same hand, the sum is two more than it should be. If three aces are drawn, then the sum is 3 more than it should be, and so on. Also, if an ace was drawn in the previous round, the next round's sum is messed up if an ace is drawn, even though I have commands that rest the player's sum.

    The link is https://studio.code.org/projects/applab/A494ZkNZpReo0ZNyXRb7L6y3xhyXz1EYpkol_QrOQy4/edit

    Thanks for the help.

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

    Processing Cycle Loop HELP

    Posted: 24 Apr 2018 10:52 PM PDT

    i just started to learn code So i wanted to cycle numbers between 0 to 255 . here is my attempt at it . thank you in advance

    float t; float t1; float t1c = t1; float tc=t; t = 0; t1 = 255; void setup() { size(1080,720); background(t); stroke(t1);

    t++; t1--; }

    void draw() { rect(0,25,45,55); }

    if(t<=0){ t=t1c; } if(t1>=255) { t1=tc }

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

    Best online course ?

    Posted: 24 Apr 2018 04:44 PM PDT

    Hi all, I am a maths undergrad in 2nd year and want to self-learn python and computer programming as a complete beginner! I am looking for a legitimate course that is in depth, university-like, and comprehensive for an intro course. (not like codeacademy- i want to learn as if im doing a uni course, preferably an online course is made by a uni like MIT OCW, but not like im being taught in the 80s). Does anyone have any course recommendations? Perhaps from edX, Udemy, or MIT OCW for a complete beginner to python? Cheers!!

    submitted by /u/nymz-98
    [link] [comments]

    [Python] Windows 10, trouble installing correctly

    Posted: 24 Apr 2018 06:38 PM PDT

    Hello, I have installed and uninstalled Python version 3.6.5 64-bit for Windows 10 as an executable download. Things go well, and I am able to write code, etc. with the shell and everything. The issue stems from the command prompt- I'm unable to bring up the directory for Python, and wish to make sure that everything is in place before writing and saving anything. I have googled this question, and have done the whole [path] bit, down to saving it to C:\Python or C:\Python365. Typing those in yields a message that it doesn't exist. I am wondering if 1) It REALLY matters and 2) If I am doing something wrong. This is a step I'm stuck on while following "Idiot's Guide: Beginning Programming". Thank you!

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

    PHP login page allowing login regardless

    Posted: 24 Apr 2018 06:15 PM PDT

    I created a login handler (form on a different page) and it "works" however if you fill in the form it goes to the main page regardless if you have the correct info or not. I'm not sure why.

    <?php function handleSubmit(&$connection) { require '../config.php'; try { // get form data $username = $_POST['username']; $password = $_POST['password']; // validate if (empty($username) || empty($password)) { throw new Exception('All fields required'); } // try to create new user record $q = "SELECT * FROM user WHERE username = ?"; $stmt = $connection->prepare($q); // returns mysqli_stmt object $stmt->bind_param('s', $username); // if successful route to login page if (!$stmt->execute()) { throw new Exception($stmt->error); } $result = $stmt->get_result(); // returns mysql_result object $user = $result->fetch_object(); // could be false // validate entered password with hash in db if (!$user || !password_verify($password, $user->password)) { throw new Exception('Invalid username or password'); } // hooray, we made it, start a new session session_start(); $_SESSION = [ 'id' => $user->id, 'username' => $user->username, ]; header('Location: ./'); // else, display error } catch (Throwable $e) { echo '<p style="color:red">' . $e->getMessage() . '</p><a href="login.php">Back</a>'; } } if ($_SERVER['REQUEST_METHOD'] === 'POST') { handleSubmit($con); } 
    submitted by /u/jschnees
    [link] [comments]

    What is the output of >>>print (list1[0:1], list1[5:7])

    Posted: 24 Apr 2018 09:35 PM PDT

    list1 = [2,4,6,8,10,12,14,16,18,20]

    I thought the answer was [2,4] [12,14] but the quizlet I'm using says it's [2] [12,14]. Why is the 4 omitted? (Python3)

    submitted by /u/Damascus-Steel
    [link] [comments]

    No comments:

    Post a Comment