• Breaking News

    Tuesday, October 2, 2018

    Learn Basics of TensorFlow (Machine Learning library) this Sunday. Live-streamed course for serious learners learn programming

    Learn Basics of TensorFlow (Machine Learning library) this Sunday. Live-streamed course for serious learners learn programming


    Learn Basics of TensorFlow (Machine Learning library) this Sunday. Live-streamed course for serious learners

    Posted: 01 Oct 2018 07:51 AM PDT

    Hi everyone, I regularly offer free live-streamed classes open to the Reddit community that over 2,000 students have taken in the past three months. This Sunday, I will be offering an Intro to TensorFlow class. TensorFlow is a popular Machine Learning library in Python. All are welcome.

    Who is this for? Complete or near beginners who want to learn TensorFlow and Machine Learning

    Interested to know more? Take a look here: https://docs.google.com/forms/d/e/1FAIpQLSfWH2ePhvC4xoJVUQcem5JdR44UvB8MmD4ATiuxsbYn_Xth5A/viewform?usp=sf_link

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

    Humble Bundle -- Head First books

    Posted: 01 Oct 2018 12:54 PM PDT

    https://www.humblebundle.com/books/head-first-books

    PAY $1 OR MORE!

    Head First Ruby
    Head First C
    Head First Object-Oriented Analysis and Design
    Head First SQL
    Head First Statistics

    PAY $8 OR MORE TO ALSO UNLOCK!

    Head First JavaScript Programming
    Head First PMP
    Head First HTML and CSS - Second Edition
    Head First C# - Third Edition
    Head First Agile

    PAY $15 OR MORE TO ALSO UNLOCK!

    Head First Design Patterns
    Head First Java - Second Edition
    Head First Python - Second Edition
    Head First Learn to Code
    Head First Android Development - Second Edition

    submitted by /u/create_a_new-account
    [link] [comments]

    I built my first api

    Posted: 01 Oct 2018 09:17 PM PDT

    Today I felt like I accomplished something. I have built my first todo api with nodeJS and MongoDB Heres the link:https://github.com/mraza007/Express-Api Let me know what you guys think about this

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

    Short, helpful programming videos

    Posted: 01 Oct 2018 11:31 PM PDT

    I'm looking for videos on programming I can watch while I'm eating lunch at my day job. Series like https://www.youtube.com/watch?v=-c0blZ6AmQE that have decent insights in under 15 minutes.

    Does anyone have any recommendations?

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

    I struggle with comprehension and critical thinking in programming

    Posted: 01 Oct 2018 05:06 PM PDT

    Hey all,

    I've always been extremely interested in programming and creating things. I tried diving into a few languages and quickly became discouraged because I realized, even after months of practicing the basics, I couldn't create anything on my own. I find I struggle with actual comprehension of topics. The only things I have been able to create are essentially copied from tutorials or read from a book.

    I was hoping someone could share some resources about critical thinking skills and how to comprehend the topics rather than just regurgitate material from tutorials or guides. Do others struggle with this as well?

    Thanks!

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

    Getting a little frustrated with some Javascript. Tried a few other subreddits with no luck :(

    Posted: 01 Oct 2018 06:02 PM PDT

    Literally cannot seem to get traction on any other subreddits, will try here!

    First and foremost, I do not know much about Javascript at all.

    Some background on the project;

    This guy here has made some code to automatically switch through photos. If you scroll down to the code section and look at the "Update!" area, that is the code I am using. He is injecting some javascript using Greasemonkey.

    I'm coming into an issue where the code he is using is only half working. When it hits the "right arrow" key (what I've figured out is Key 39), it compares the web address before and after the right arrow key. If they are the same, it's hit the end of the album and reloads to the first picture. The reloading part works, but it looks to me like the right arrow key is not first being pressed. So it just continually is refreshing the page and not really getting anywhere. I know some basic coding, so I can "read" what he wrote, but I cannot begin to troubleshoot it.

    Any help would be extremely appreciated. Thanks!

    Running Firefox ESR V 52 and Greasemonkey V4.1

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

    Hacktoberfest: Share Your Open Source Projects

    Posted: 01 Oct 2018 09:26 AM PDT

    I wanted to be in the clear of any self-promotion rules, so I figured I'd turn my advertisement into a community thread.

    IT'S HACKTOBERFEST!

    This is an amazing time for new developers to upgrade their skills with git and many other languages/frameworks in the interest of contributing to open source and getting a free shirt and stickers!!

    Please comment with your favorite open source repository on GitHub.

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

    How to read a JSON raw data file line by line with Python

    Posted: 01 Oct 2018 06:19 PM PDT

    Hi all

    JSON file may be like this. and each line is one json data format! how to use python to decode it and read it

    {"sha256": "0001a959869f81b94c6b380f5161cdf315203227b8bcb89814576d9b037156c9", "appeared": "2017-11", "label": 1, "histogram": [18907, 1586, 1944, 1515, 1420, 918, 881, 950, 991, 896, 1587, 937, 934, 847, 872, 940, 991, 1104, 1696, 864, 881, 887, 951, 1096, 910, 842, 845, 1332, 794, 813, 797, 956, 1387, 809, 874, 930, 1112, 892, 894, 881, 796, 880, 833, 821, 877, 810, 845, 861, 959, 866, 848, 2673, 828, 824, 862, 861, 1027, 799, 809, 892, 839, 805, 848, 952, 945, 845, 847, 1123, 948, 1119, 1157, 1421, 1044, 905, 1243, 927, 894, 881, 858, 1148, 1108, 1518, 1002, 1262, 1042, 987, 1286, 814, 1007, 872, 865, 1350, 1532, 1160, 1403, 1150, 1096, 1117, 864, 1014, 1135, 1174, 1198, 928, 932, 1633, 1010, 1364, 1537, 1052, 1513, 1194, 1102, 861, 1218, 1225, 1313, 970, 1105, 1006, 941, 979, 1001, 757, 897, 724, 809, 842, 1066, 865, 794, 904, 814, 805, 834, 829, 921, 939, 765, 934, 773, 856, 810, 945, 776, 801, 796, 769, 855, 797, 769, 774, 862, 826, 771, 795, 820, 768, 774, 844, 772, 780, 876, 843, 831, 791, 821, 788, 790, 726, 780, 751, 792, 758, 766, 839, 837, 774, 808, 796, 837, 719, 833, 845, 824, 834, 805, 793, 835, 774, 819, 765, 900, 895, 828, 864, 856, 850, 768, 887, 795, 796, 787, 763, 813, 791, 853, 855, 850, 853, 824, 771, 782, 789, 855, 795, 823, 719, 801, 740, 750, 802, 826, 721, 852, 841, 843, 816, 827, 819, 789, 777, 837, 776, 803, 862, 809, 836, 752, 789, 920, 841, 786, 899, 827, 779, 793, 799, 940, 806, 805, 838, 893, 849, 865, 1849], "byteentropy": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2950, 236, 68, 33, 262, 158, 70, 62, 65, 10, 15, 55, 19, 27, 23, 43, 10391, 170, 1099, 104, 435, 140, 3386, 1737, 39, 24, 40, 62, 70, 69, 124, 542, 2216, 66, 130, 85, 87, 35, 437, 192, 49, 3, 20, 44, 38, 12, 31, 651, 7600, 746, 437, 3742, 834, 923, 768, 488, 1010, 108, 177, 172, 156, 104, 208, 959, 17808, 4579, 1165, 2200, 4861, 9981, 6305, 2677, 251, 141, 107, 226, 221, 75, 59, 544, 439, 256, 29, 76, 197, 519, 305, 188, 1, 0, 0, 0, 22, 0, 0, 16, 2616, 207, 376, 166, 275, 195, 443, 319, 330, 122, 117, 164, 246, 127, 189, 252, 545, 44, 241, 59, 166, 53,

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

    Team up to do Harvard CS50 Together

    Posted: 01 Oct 2018 08:51 AM PDT

    I'm looking for 3-4 people to take Harvard CS50 together. Since I work full time, I'm trying to see if we can approach this course in a more structured manner. We will attend every week on a certain day and time. I would like us to follow this note taking practice. We can use Discord/Slack for all communication/collaboration. If there's someone really good at organizing, maybe s/he can create a Kanban board for the cohort to follow. Let me know what you think, if you have any suggestions and how you'd like to proceed.

    Edit: We will be taking requests until tomorrow (Tuesday 11pm PST).

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

    What are some good first projects to create?

    Posted: 01 Oct 2018 06:33 PM PDT

    Hey everyone, I am currently about to take the MTA 98-361 exam, which gives a lot of information about C#, SQL, html, css, and javascript. With those languages what are some good projects that I could create to learn and show off relevant skills to employers?

    So far I have only created a few landing pages with html and css, or some basic console apps with C#.

    At the moment I'm leaning towards:

    • Random NPC generator for DND in C# to input random values into an sql database.
    • Webpage with JavaScript.
    • MVC webpage with C#.
    submitted by /u/SociallyAwkwardSnake
    [link] [comments]

    Vignere Cipher help

    Posted: 02 Oct 2018 12:27 AM PDT

    Here is the problem

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

    EER Diagram. Am I doing this right? Using completeness contraints or not?

    Posted: 01 Oct 2018 11:50 PM PDT

    https://imgur.com/gallery/9m2cuDc

    im unsure if i'm using completeness constraints correctly here or if I should just use another box to represent the relationship?

    Draw an EER diagram for the following situation:

    TomKat Entertainment is a chain of theaters owned by former husband and wife actors/entertainers who, for some reason, can't get a job performing anymore. The owners want a database to track what is playing or has played on each screen in each theater of their chain at different times of the day. A theater (identified by a Theater ID and described by a theater name and location) contains one or more screens for viewing various movies. Within each theater each screen is identified by its number and is described by the seating capacity for viewing the screen. Movies are schedule for showing in time slots each day. Each screen can have different time slots on different days (i.e., not all screens in the same theater have movies starting at the same time, and even on different days the same movie may play at different times on the same screen). For each time slot, the owners also want to know the end time of the time slot (assume all slots end on the same day the slot begins), attendance during that time slot, and the price charged for attendance in that time slot. Each movie (which can be either a trailer, feature, or commercial) is identified by a Movie ID and further described by its title, duration, and type (i.e., trailer, feature, or commercial). In each time slot, one or more movies are shown. The owners want to also keep track of in what sequence the movies are shown (e.g., in a time slot there might be two trailers, followed by two commercials, followed by a feature film, and closed with another commercial).

    transform the EER diagrams into a set of relational schemas, diagram the functional dependencies, and convert all the relations to third normal form

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

    Easiest way to send a push notification from a python3 script to my iPhone?

    Posted: 01 Oct 2018 11:48 PM PDT

    I have a python script running every few minutes that I want to send me a push notification to my iPhone after hitting some conditional, whats the easiest way to go about this? I thought I could just send myself an email but would rather use something else if possible/simple enough

    submitted by /u/fence-sitter
    [link] [comments]

    Run your race at your pace

    Posted: 01 Oct 2018 03:19 AM PDT

    I have been teaching myself programming for about four months. It's often discouraging to hop on this subreddit and hear success stories of others who landed a job after teaching themselves programming. Typically those stories go like "I studied twelve hours a day" and/or "quit my job and went headfirst into study for 6 months".

    My story is a little different. I work full-time, and am married with three young kids. Also, I have a few other life responsibilities outside of family that make demands on my time. My wife stays at home with our kids, so quitting my job to study full time is too risky of a scenario for us. Consequentially, I don't have 12 hours a day to spend studying programming. I can usually get about 1 hour in each morning from 5-6am, and then a bit more sprinkled throughout the workday.

    I am thrilled to hear stories of people diving full in and studying for 10-15 hours a day, and then landing a job in a few short months. That is admirable and takes great discipline. However, I also need to regularly remind myself that that story isn't typical, and more importantly, that's not my story.

    While I may be on the same course, I am certainly not running the same pace. And thats ok.

    I wanted to post here, because I think (hope??) there are lot more of us running 10 minute miles on this marathon (i.e. studying 1-2 hours a day in between life). Our race will take a little longer, but thats ok.

    Run your race, at your pace. Comparison is the enemy of joy.

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

    Error saying Runtime exception, translating to MIPS from C++

    Posted: 01 Oct 2018 07:35 PM PDT

    Hi everyone! This is my first assignment on MIPS, and I got an error Runtime exception for the line lw $t7, ($t6), the 3rd line under the ifLoop. I tried commenting every line I know. I'm really confused how this was an error. Thank you for the help!

    MISP:

     .data x: .word 0 #int x[] = {0, 20, 10, 6, 0, 4, 2, 4}; .word 20 .word 10 .word 6 .word 0 .word 4 .word 2 .word 4 ascend: .word 0:8 #int ascend[8] = {0}; endl: .asciiz "\n" # j $s0 # i $s1 # &x[0] $s2 # &ascend[0] $s3 .text main: li $s0, 0 # int j = 0; la $s2, x la $s3, ascend li $s1, 0 # int i = 0; # for (int i=0; i<7; i++) { for: mul $t1, $s1, 4 # i * 4 add $t1, $t1, $s2 # add i to x /// x\[i\] lw $t2, ($t1) # load it add $t3, $s1, 1 # i + 1 mul $t4, $t3, 4 # (i+1) \* 4 add $t4, $t4, $s2 # add (i+1) to x //// x\[i+1\] lw $t5, ($t4) # load it blt $t1, $t4, ifLoop # if (x\[i\] < x\[i+1\]) { #else do the bottom addi $s1, $s1, 1 # i++; blt $s1, 7, for # if i < 7 at this time, go back to for loop # } # } ifLoop: mul $t6, $s0, 4 # j * 4 add $t6, $t6, $s3 # add j to ascend lw $t7, ($t6) # load it sw $s1, ($t6) # ascend\[j\] = i; addi $s0, $s0, 1 # j++; j for li $s1, 0 # for (int i=0; i<j; i++) { for1: mul $t0, $s1, 4 add $t0, $t0, $s3 lw $a0, ($t0) li $v0, 1 syscall # cout << ascend\[i\] << endl; la $a0, endl li $v0, 4 syscall # } addi $s1, $s1, 1 blt $s1, $s0, for1 li $v0, 10 syscall C++: #include <iostream> using namespace std; int x[] = {0, 20, 10, 6, 0, 4, 2, 4}; int ascend[8] = {0}; int main() { int j = 0; for (int i=0; i<7; i++) { if (x[i] < x[i+1]) { ascend[j] = i; j++; } } for (int i=0; i<j; i++) { cout << ascend[i] << endl; } } 
    submitted by /u/idkwhatoputforthis
    [link] [comments]

    I’m having trouble deciding what language to use

    Posted: 01 Oct 2018 03:40 PM PDT

    I have a file with a whole lot of (organized) text, parts of this text is in Base64. I want to write a program what will take the string from the file, decode it, and output the decoded text to a file or a console... I'm fairly new to programming as well, but I'd want to use a language I can use for other stuff too, if that makes sense. Can anyone help me out?

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

    How do class member functions work with header files in C++?

    Posted: 01 Oct 2018 07:23 PM PDT

    Typically, using headers and functions in C++, I'm under the impression that you would declare your function in the .h (header) file, and then define them in a separate .cpp file.

    How does this work with classes and member functions? Do I declare the class and the member function in the header file, then define each member function in the .cpp file, or do I just declare and define it all in the .h file?

    If I do use a separate .cpp file, can I define many member functions of the same class in one instance?

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

    Never wrote code to employed developer- Case studies

    Posted: 01 Oct 2018 10:25 AM PDT

    TLDR: there is a new article of case studies on Medium, of 4 people who went from never writing code to getting employed as a developer in less than a year. Check the link below, it's crazy.

    I just read this article on Medium that was pretty crazy. Some people took Andrei Neagoie's course on Udemy and then got full time jobs as software developers afterwards.

    This is some really awesome progression. After reading this I think I'm not pushing myself hard enough. I like that they have a bunch of tips in the article about how they actually made such good progress. Some dof the people in these case studies went from no coding experience to employed as a developer in less than 6 months. That's so awesome. I think I might buy this course.

    One big takeaway that I had is that everyone who is featured in here worked on development at least 2 hours per day, probably 7 days per week. I think that much deliberate practice had a positive effect on what they were able to practice. So this article might seem like a bit of hype until you really dive into it.

    How often is everyone else practicing? Right now I'm probably doing 6-10 hours a week, but thinking that isn't enough.

    Here's the link: https://medium.com/@andreineagoie/full-time-developer-in-just-a-few-months-zero-to-mastery-case-studies-b3c3ca3bcb24

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

    Which language to automate an Excel sheet

    Posted: 01 Oct 2018 10:27 PM PDT

    Hi guys. I'm pretty new to programming, and I'm wondering if R, VBA, or Python would be my best choice to do the following.

    At work I use an Excel workbook. Both have pivot tables. The first sheet is basically a list. I need to take the name and number (two separate cells), and filter the second sheet (what activity this name and number combo has done. And put it in a new work book.

    I know python has the Pandas package which could be useful. I just didn't know if another language could make it easier/work better.

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

    Looking to build Desktop Applications. Where or How do I start learning?

    Posted: 01 Oct 2018 12:42 PM PDT

    I've been wanting to get into programming for a while and nothing has really appealed to me more than creating useful desktop applications with a nice UI. Either an app I like does something in a way I feel I would like to improve upon or just fun ideas I have floating around in my head that I would like to see become a reality.

    One such app I would like to make is an app that can keep track of timed events in a game. Be it manually or automatically by reading the screen.

    Looking around at different languages, WPF along with C# definitely stood out as the thing I am looking for. I watched the first two episodes of this playlist by AngelSix that I found by a little while back mentioned in this sub but I feel slightly overwhelmed. Is all the information there and I'm just not grasping it? or should I maybe learn some C# first before jumping into WPF and not try to learn them simultaneously? Or perhaps I could be going down completely the wrong path and hopefully you could suggest an alternative one that better suits my goals.

    TL:DR: Where should I start with learning to create desktop applications?

    submitted by /u/just-sayin-
    [link] [comments]

    Blog post: What makes code unreadable

    Posted: 01 Oct 2018 10:07 PM PDT

    This blog post goes through several design patterns and explains common mistakes that programmers make.

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

    My display method in OpenGL does nothing. Why is this?

    Posted: 01 Oct 2018 03:56 PM PDT

    glClearColor(0.0f, 0.0f, 0.4f, 0.0f); GLuint vertexbuffer; glGenBuffers(1, &vertexbuffer); glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer); glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(vmath::vec3), &vertices[0], GL_STATIC_DRAW); GLuint ufBuffer; glGenBuffers(1, &ufBuffer); glBindBuffer(GL_ARRAY_BUFFER, ufBuffer); glBufferData(GL_ARRAY_BUFFER, indices.size() * sizeof(vmath::vec2), &indices[0], GL_STATIC_DRAW); glActiveTexture(GL_TEXTURE0); glEnableVertexAttribArray(0); glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer); glVertexAttribPointer( 0, // attribute 3, // size GL_FLOAT, // type GL_FALSE, // normalized? 0, // stride (void*)0 // array buffer offset ); // 2nd attribute buffer : UVs glEnableVertexAttribArray(1); glBindBuffer(GL_ARRAY_BUFFER, ufBuffer); glVertexAttribPointer( 1, // attribute 2, // size GL_FLOAT, // type GL_FALSE, // normalized? 0, // stride (void*)0 // array buffer offset ); glDrawArrays(GL_TRIANGLES, 0, vertices.size()); 

    Is the entire method. The vertices array and the indices array are loaded in at a different point. I am fairly certain they load in correctly. I set my main display function in main

    glutDisplayFunc(display); 

    For some reason this just doesn't do anything. The background is not set to the color I expected (dark blue) and nothing else actually happens. I know glut and opengl are both initializing correctly. It just seems nothing happens.

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

    [Bash] If Loop Bracketing Error.

    Posted: 01 Oct 2018 09:46 PM PDT

    Hey guys. Here is everything I have:

    1. My script is checking to see if a Windows 10 .iso file is done downloading, and then if it is, it should copy it to /data/iso and then exit.

    code:

    #!/bin/bash while true; do if [[ -e Win10* ]] ; then echo copying Win10 iso... cp Win10* /data/iso/ else echo Not found yet... sleep 3 continue fi break done 

    Which, when executed, never finds the file unless the name is exactly Win10*.

    I'm not sure what I have done wrong, could someone please help me out here? I looked at this StackOverflow post to no avail.

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

    Is there a field of computer science that deals with a heavy amount of pure math on the daily?

    Posted: 01 Oct 2018 09:46 PM PDT

    Title is the question. I love pure math and solving problems and have a natural talent for math but I am a computer science major and kind of plan to stick to it because I'm not so sure of the job security and salaries of math majors... so the question remains; is there a field of computer science that involves alot of math that I can study and possibly work towards a career in?

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

    No comments:

    Post a Comment