• Breaking News

    Friday, February 1, 2019

    FCC released a list of 560+ free programming courses classified by Beginner, Intermediate and Advanced learn programming

    FCC released a list of 560+ free programming courses classified by Beginner, Intermediate and Advanced learn programming


    FCC released a list of 560+ free programming courses classified by Beginner, Intermediate and Advanced

    Posted: 01 Feb 2019 10:53 AM PST

    Here's the link https://medium.freecodecamp.org/free-online-programming-computer-science-courses-you-can-start-in-february-e621d959e64 I think it's a pretty exhaustive list and touches on almost everything in programming if you're not looking for something very specific. Enjoy!

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

    Note-Taking Tips While Learning to Code

    Posted: 01 Feb 2019 11:23 AM PST

    I am working my way through a few Intermediate Python and R courses online and I was wondering what are some good ideas for effective note-taking as I learn new concepts?

    I find myself taking screenshots of new concepts and snippets of code and then dropping them into Evernote, but that seems rather clunky. I have also tried to take notes directly in a text editor. I was typing the code snippets and then commenting out my explanations of each concept. I have even tried handwriting notes in my iPad Pro using GoodNotes 4, but that seems to be the clunkiest solution of all.

    So far, most of what I have been learning I have remembered by working on small projects and through simple repetition, but I would like to have a comprehensive set of notes for each topic I learn so that I can refresh my memory or when moving to other languages and then coming back to this one.

    Any tips and tricks you guys have developed for effective note-taking while learning to code?

    Thanks!

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

    How much Math is required for Data Structures?

    Posted: 01 Feb 2019 08:57 PM PST

    I searched this subreddit but didn't see a clear answer. If this question belongs elsewhere, please let me know.

    I have a EE degree from over a decade ago. Recently started M.S in Comp Sci and I am in the first week of a Data Structures class. Content is fun but for homework, prof assigned questions that require proof by induction etc and I don't recall this Math from my undergrad days. It has been a while and after reviewing some YouTube videos, I think this was taught in Discrete Math and as part of EE, we took Linear Algebra for studying circuits but never took Discrete Math.

    So how much Discrete Math and theoretical Math is really required for a Data Structures course? A lot? Should I stick with the course and keep going? Any insights from those who also completed a Data Structures class with minimal Math background would be appreciated.

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

    Some Books For Free!*

    Posted: 01 Feb 2019 12:48 PM PST

    Hi /r/learnprogramming -

    I'm purging some books and came across some programming books I no longer need. If interested all I'd ask is for you to pay shipping and I'd be happy to send. (I didn't see this prohibited but if it is I apologize)

    Books:

    • Head First HTML with CSS & XHTML
    • Head First C#
    • Python Playground
    • Doing Math With Python
    • C# 4.0 Pocket Reference
    • A Smart Way to Learn HTML & CSS

    If interested let me know, I'd rather them all not necessarily go to one place so more could benefit, but if only one person is interested then that is fine. Thanks!

    Edit: Books all spoken for! Thank you to everyone, happy this went well and that they could be used by others!

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

    Using open access data as an API?

    Posted: 01 Feb 2019 11:37 PM PST

    I've got a few ideas for apps that, as opposed to searching for some private API, I think would be better served by using free US government data that's open to everyone. As an aside, is there a directory of API that someone can use to check if a given API fits within the scope of their project?

    Given that this project has the potential to be monetized, I'd like to know is it legal to use government data for commercial purposes? If not, what are some API you usually use for projects (I know Amazon has a few, Shopify, but I'm unsure how they all connect)?

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

    Creating a database for a website.

    Posted: 01 Feb 2019 04:06 PM PST

    I wish to create a database for a website that I want to create. I understand the basics of how to create a database using SQLite3 in python 3.7 and I want to add this to my website. I want the user to be able to input data into this website and then some calculations are done with this data and it is presented in a different part of the website. In conclusion, I just want to know if I can create a database with SQLite 3 and python, where one could input information, that can be used in a website created with HTML. Thank you.

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

    Helping storing and accessing string values with Web Forms C#?

    Posted: 01 Feb 2019 09:31 PM PST

    I am currently working on an assignment and have a request reservation.aspx, request confirmation.aspx and a RequestClass.cs. I am trying to get labels on the confirmation page to have the same text that the textboxes on the request page.

    To do this I have declared public strings in the reservationclass (public string firstName;). In the request page I have declared the use of the other class and created ReservationObject and set it equal to the textbox value. (ReservationObject.firstName = firstNameBox.Text;)

    On the confirmation page I have firstNameLabel.Text = ReservationObject.Text;

    It is not displaying anything for the label, anyone know as to why?

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

    Hey one of my friends did something on my personal computer

    Posted: 01 Feb 2019 05:08 PM PST

    He went to terminal and put in some command using bash with rn or something and everytime I open terminal it deletes everything in a certain folder

    He said its reversable for 5 dollars but I would like to find it out the other way

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

    Is there great books as to troubleshooting bugs/glitches?

    Posted: 01 Feb 2019 07:51 PM PST

    Still learning programming and just curious if there was a proper way of handling bugs

    Currently looking for great references (preferably books) to learn more other than the widely known "rubber ducky" debuging

    Advises are appreciated.

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

    SQL help!!

    Posted: 01 Feb 2019 11:31 PM PST

    Trying to answer this question.

    Find the names, IDs, and number of staff supervised of the Chief Scientists whose scientists have incorporated the most critical flaws to completed (i.e. delivered, deployed or destroyed) superweapon projects in the past year. You should report the top 3 Chief Scientists.

    Current Solution:

    https://imgur.com/a/P6KYdTM

    any idea how to just have the ManagerID, Employee_Name, and the count for manager ID ?

    So ideally it should display :

    2, Jack AB , 2

    5, Jack AE, 2

    Thank you

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

    How to update information constantly in JavaFX from another PC

    Posted: 01 Feb 2019 11:17 PM PST

    I just started learning javafx and I'm trying to create a queuing system that has an admin UI and a staff UI. I have a all the forms setup and the tableview works fine. Now when I add a queue to the table, I want to be able to send the queue information to the specified staff (different computer). How do I send the queue information from the admin side to the staff side? And when the staff clicks done the queue will be dismissed on both machine (admin and staff).

    1.) Constantly read/update data from my database and store it in some kind of collection and set it to the tableview.

    OR

    2.) Do I send it via sockets (but then if it's a socket how do I remove in case the admin decides to remove the queue from his side?).

    If 1 then do I use ScheduledService?

    Thanks

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

    I have limited computer science experience/knowledge. Can I still participate in Outreachy/Google's Summer of Code?

    Posted: 01 Feb 2019 11:09 AM PST

    Like the title says, I'm a noob when it comes to programming. To give you some insight on my current breadth of knowledge, I've taken Intro to Comp Sci 1 and 2 and am currently taking Intro to web dev, Data Structures/Algorithms, and Computer Organization at my local community college. I haven't created any side projects and I don't know how to use github yet.

    With that being said, could I participate in Outreachy or Google's Summer of Code with my current skill level? What are some things that I should study/do in order to become more qualified for either programs? Any advice is appreciated!

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

    URGENT DEBUG HELP: Seg Faults when working with pointers and strtok?

    Posted: 01 Feb 2019 11:04 PM PST

    #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <fcntl.h> #include <sys/types.h> #include <sys/wait.h> #include <errno.h> #include <string.h> int main(int argc, char *argv[]) { char content[500]; int fd; ssize_t bytes = 0; int line_counter = 0; fd = open(argv[1], O_RDONLY); int i = 0; char* token; const char a[2] = "\n"; const char b[2] = " "; char storage[100][100]; char temp[100][100]; bytes = read(fd, content, sizeof(content)-1); //close(fd); if(fd < 0) { write(1, "File doesn't exist\n", 19); return 1; } token = strtok(content, a); strcpy(storage[0],token); printf("%s\n",storage[0]); while(token != 0) { i++; token = strtok(NULL, a); strcpy(storage[i],token); printf("%s\n",storage[i]); } /* token = strtok(storage[0],b); strcpy(temp[0], token); printf("%s\n",temp[0]); i = 0; while(token != NULL) { i++; token = strtok(NULL, b); strcpy(temp[i],token); printf("%s\n",temp[i]); } */ return 0; } 

    This is the output I'm getting:

    /bin/ls -l /bin/cat command.txt /usr/bin/wc -l -w command.txt ?? Segmentation fault 

    How do I get rid of the ?? and Seg fault...? No errors or warnings either...

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

    Changing 256 byte blocks to number for enryption

    Posted: 01 Feb 2019 11:03 PM PST

    Hey. I'm working on RSA and ElGamal encryption systems but I'm stuck. I've written those algorithms, I know how it works. How can I change 256 byte chunks of file into number from range [1, 2^2048]? Because I can't pass 256 bytes as an argument with generated public key to encrypt.

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

    Any recommended history programming language books?

    Posted: 01 Feb 2019 07:10 PM PST

    I'm reading Masterminds of Programming and I find it super interesting how old languages influence new languages.

    Are there any recommended books that focus on this history of programming languages? I'm more or less familiar with modern mainstream languages but the old ones (cobol, ada, pascal).

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

    If all browsers were to decide to add an additional scripting language apart from JavaScript, which one should it be?

    Posted: 01 Feb 2019 10:50 PM PST

    My vote goes for Python for its sheer simplicity and shorter learning curve. Which one do you think it should be?

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

    Is HTML and CSS supposed to be common knowledge?

    Posted: 01 Feb 2019 04:19 PM PST

    Hi all, I'm VERY new to programming, basically day 1. I don't even have a laptop yet to apply things I've been reading (getting one soon though!). I heard that HTML and CSS was the very basics of programming so I figured I would start there, but later was told that they aren't REALLY programming languages. I shifted to Python now and have been reading the Python crash course book by Eric Matthes. Very excited to continue learning Python, but should I go back and learn HTML and CSS? Is it something that recruiters see as a given that you should know?

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

    Palindrome exercise, recursive -- not sure why I get undefined?

    Posted: 01 Feb 2019 10:05 PM PST

    Hi, I am trying to learn some computer science principles for upcoming job interviews at tech companies. I am self-taught with programming for the web, but relatively noob with algorithms. I am on Khan Academy and I am doing a recursion exercise. I can do it with loops, but with recursion, I am stuck and I am not sure why. I have 3 examples, "a", "motor", and "rotor" and the function labels them true, false, undefined, respectively. For "rotor", I am getting into the first if-case, as evidenced when I used //println(str) and I see an output, but it simply does not output TRUE, and instead, outputs undefined. Even with an else statement, I can't get it to say something else. Help?

    // Returns the first character of the string str

    var firstCharacter = function(str) {

    return str.slice(0, 1);

    };

    // Returns the last character of a string str

    var lastCharacter = function(str) {

    return str.slice(-1);

    };

    // Returns the string that results from removing the first

    // and last characters from str

    var middleCharacters = function(str) {

    return str.slice(1, -1);

    };

    var isPalindrome = function(str) {

    //print(str.length);

    // if outsides match and leftover is 2+...

    if ( str.length <= 1 ) {

    //println(str);

    return true;

    } else if (firstCharacter(str) === lastCharacter(str) && str.length > 1) {

    //println(middleCharacters(str));

    isPalindrome(middleCharacters(str));

    } else if ( firstCharacter(str)!== lastCharacter(str)) {

    return false;

    }

    };

    var checkPalindrome = function(str) {

    println("Is this word a palindrome? " + str);

    println(isPalindrome(str));

    };

    checkPalindrome("a");

    checkPalindrome("motor");

    checkPalindrome("rotor");

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

    Convert displayed CSV file to XML

    Posted: 01 Feb 2019 10:05 PM PST

    Hey guys,

    In my current project I can open and display a CSV file in a datagridview, with the option to edit and save the file.

    I am trying to create another button on the GUI that after the CSV file is loaded into the datagridview, it will convert the displayed CSV file into XML format and im then able to save it.

    Im super new to this and im not really sure were to start, so any help hints or feedback would be much appreciated.

    Let me know if I need to provide any addition information.

    Thanks

    using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnOpen_Click(object sender, EventArgs e) // Created OpenFileDialog control using a Forms designer at design-time { openFileDialog1.ShowDialog(); //called the ShowDialog method to browse a selected file txtfilepath.Text = openFileDialog1.FileName; BindDataCSV(txtfilepath.Text); //set data into textfilepath } private void BindDataCSV(string filePath) { string[] lines = System.IO.File.ReadAllLines(filePath); DataTable dt = GetDataTable(lines); if (dt.Rows.Count > 0) { dataGridView1.DataSource = dt; } } public DataTable GetDataTable(string[] lines) { DataTable dt = new DataTable(); if (lines.Length > 0) { //first line to create header string firstline = lines[0]; //reads first line of string array at index 0 string[] headerLabels = firstline.Split(','); //splits the firstline using comma delimited string foreach (string headerWord in headerLabels) { dt.Columns.Add(new DataColumn(headerWord)); //added DataColumns for header } //for data for (int r = 1; r < lines.Length; r++) { string[] dataWords = lines[r].Split(','); //split strings into lines DataRow dr = dt.NewRow(); //inset a new row into a data table int columnIndex = 0; //start of column is 0 index foreach (string headerWord in headerLabels) { dr[headerWord] = dataWords[columnIndex++]; //increment the value by 1 in columnIndex } dt.Rows.Add(dr); //adds DataRow in the DataTable } } return dt; } private void btnSave_Click(object sender, EventArgs e) { // Displays a SaveFileDialog so the user can save the Image SaveFileDialog saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.Filter = "|*.csv"; saveFileDialog1.Title = "Save CSV File"; saveFileDialog1.ShowDialog(); // If the file name is not an empty string open it for saving. if (saveFileDialog1.FileName != "") { using (StreamWriter sw = new StreamWriter(saveFileDialog1.FileName)) { WriteDataTable(dataGridView1.DataSource as DataTable, sw, true); } } } // Write data to csv public static void WriteDataTable(DataTable sourceTable, TextWriter writer, bool includeHeaders) { if (includeHeaders) { List<string> headerValues = new List<string>(); //opened an instance of List<T> for headerValues foreach (DataColumn column in sourceTable.Columns) { headerValues.Add(QuoteValue(column.ColumnName)); } writer.WriteLine(String.Join(",", headerValues.ToArray())); } string[] items = null; // if string array is null or empty foreach (DataRow row in sourceTable.Rows) { items = row.ItemArray.Select(o => QuoteValue(o.ToString())).ToArray(); writer.WriteLine(String.Join(",", items)); // adds rows to the array and joins comma delimited strings } writer.Flush(); } private static string QuoteValue(string value) { return String.Concat("\"", value.Replace("\"", "\"\""), "\""); } private void XML1_Click(object sender, EventArgs e) { } } } 

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

    Live stream startup coding by a self-taught developer

    Posted: 01 Feb 2019 06:02 PM PST

    Hi everyone. I am a self-taught developer and I am currently streaming myself programming.

    The reason is that building shitty stuff that works is a very good way to learn, and I hope to inspire other learners to take the similar approach when learning to code. (More about it in my latest post in this subreddit, "What I learned teaching myself programming for five years" .

    Right now, I am building a free and open source note taking application called Dnote (source code: https://github.com/dnote/cli) that respects users' privacy. I will be building end-to-end encryption feature for this project completely on live.

    I'm currently live on https://www.youtube.com/watch?v=fzhPZALkLek. I'll be streaming on the same channel in the future. I hope that this can inspire fellow learners out there to take actions and build things!

    • Sung
    submitted by /u/stokkid
    [link] [comments]

    How can i change my main display outside of the UI?

    Posted: 01 Feb 2019 09:45 PM PST

    I want something that can change the "main display" as show under screen resolution settings, I've set up an auto-hotkey script that opens desk.cpl and moves to mouse to do it manually but for some reason sometimes when i move the main monitor the co-ords for the mouse aren't right or it runs multiple versions of the same script, I have no idea why.

    This is so i can switch my pc to upstairs easier, downstairs i have my PC with 2 monitors at 1920x1080 & 1440x900 and then i have a cable that leads upstairs inside the wall that contains USB/VGA/3.5mm that leads to another 1920/1080 monitor, i want a 1 click, reliable way to move upstairs.

    Any help is greatly appreciated.

    submitted by /u/0gravy0
    [link] [comments]

    Unliking twitter html code not working anymore, help.

    Posted: 01 Feb 2019 09:34 PM PST

    Hi, Twitter changed there design and in the old design i used to goto the inspect element > consolde and enter this code " $('.HeartAnimation').click(); " and all my liked tweets would unlike. twitter change there design i was wondering if anyone can help me get the new code ?

    thank you

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

    Kind of stumped on this question from a layout perspective

    Posted: 01 Feb 2019 09:22 PM PST

    I'm doing a uni project. I've finished my SQL code, done all the query questions and have also completed my ER Diagram.

    I've now come across this question and I'm not sure how to go about it. How do i present it on paper?

    "Implement a relational database schema based on your ER model. You should: a. State the schemas for any database tables used. Ensure that any tables are normalised to at least 3NF. Provide a description of any decomposition you performed, and list the functional dependencies."

    Do i just say " Entity XX = Normalised to 3NF etc etc" ?

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

    How do I access my cookies?

    Posted: 01 Feb 2019 09:09 PM PST

    I'm sending an ecrypted cookie from my node server to a reactjs front end, but I can't seem to find how to access this cookie in react. Is the process automated? Once the cookie is sent over, does it automatically send it back on requests? Thanks.

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

    No comments:

    Post a Comment