• Breaking News

    Friday, April 27, 2018

    Codecademy Launched Learn SQL from Scratch! learn programming

    Codecademy Launched Learn SQL from Scratch! learn programming


    Codecademy Launched Learn SQL from Scratch!

    Posted: 27 Apr 2018 11:39 AM PDT

    A HUGE thank you to all the peeps in this subreddit who helped out on the intensive <3 We worked nonstop over the last few months - building and iterating - aiming for nothing but the best curriculum. Projects from this course will also use datasets from real companies/organizations such as Warby Parker, Kickstarter, The Metropolitan Museum of Art, and Hacker News!

    Link: https://www.codecademy.com/pro/intensive/learn-sql-from-scratch

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

    I feel I am below average.

    Posted: 27 Apr 2018 08:33 PM PDT

    Anytime i try to solve a programming problem and actually see some of the solutions on stackoverflow or elsewhere i feel frustrated that i cannot come up with such solutions,

    I know breaking problems into smaller problems its the core of problem solving, but i feel i am not even doing that right.

    The fear keeps creeping up on me that maybe i am not cut out for this, maybe some people don't have the brains to be great programmers.

    It feels like i am constantly running without getting faster or stronger, just getting winded.

    I need some advice......... sigh

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

    I want to moonlight as a programmer to gain experience and (eventually) a bit of extra cash. Is this possible?

    Posted: 27 Apr 2018 09:58 AM PDT

    Are there companies online that will take on people freelance and remotely, with little experience, but willing to accept shit (or no) pay?

    Preferably with a bit of mentoring.

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

    I will be dedicating my summer for learning Java.

    Posted: 27 Apr 2018 05:50 AM PDT

    Please give me assignments(simple and hard). P. S. Thank you. For those who helped me.

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

    Exercises, prompts and other learning tools to keep me sharp over summer (Python and Java)

    Posted: 27 Apr 2018 10:56 AM PDT

    Just finished my first semester of programming towards my Computer Science degree, where I learned python. I've done well but I'm looking to keep myself sharp and practiced over summer, so it'd be awesome if someone could point me to resources for programming exercises, prompts, projects, problems etc. to keep me sharp. Like I said what I've learned is python, and next semester is Java, so it'd be good to get a head start on that too. Thanks!

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

    Want to start making "real world" projects using JavaScript without having to develop a Full Stack? Try google scripts.

    Posted: 27 Apr 2018 08:15 AM PDT

    It's easy and it's free!

    Open a google spreadsheet and go to "Script Editor" and get started.

    Want ideas for things to work on? Go to /r/googlesheets and /r/spreadsheets . People post things there all the time that require scripting to solve.

    Figuring out how to solve real world problems will advance your skills much more than following online tutorials.

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

    (C) I'm having trouble figuring out what's going on in this loop. We're looping through through a char ** value.

    Posted: 27 Apr 2018 07:35 PM PDT

    I more so don't understand the line: printf("val[%d]: %s\n", index, val[index]);

    I see that it corresponds to the end of the output. My main question is how can i access some of the values in the first part of the output? I'm not sure what's going with the char ** value.

    Here's the code:

     char **val = getValue("persons.txt", id , 0, 0); int index = 0; if (val != NULL){ while (index != -1) { printf("val[%d]: %s\n", index, val[index]); index = val[index+1] != NULL ? index + 1 : -1; //ternary operator } } 

    The output is pretty long. But I'll give you one block of output which I'm pretty sure corresponds to one index in the char ** array:

     line: 912086676#9#20181101 tempLine: 912086676#9#20181101 currCol: 0; temp: 912086676 searchStr: 912086676; temp: 912086676 searchFound: 1 currCol: 1; temp: 9 currCol: 2; temp: 20181101 //and then at the very end val[0]: 912086676 val[1]: 912086676 val[2]: 912086676 val[3]: 912086676 val[4]: 912086676 

    Note: We're using this to search for a specific value in a table in a separate text file. Here's the text file:

     tuid#role_id#role_expiration_date 912086676#9#20181101 912086676#32#20181015 912086676#7#99999999 912086676#1#20171223 912086676#19#20170829 123456789#49#20171130 123456789#32#20190422 123456789#19#20200601 999999999#9#20160910 999999999#7#20150705 A88888888#49#20191130 A88888888#19#20191130 
    submitted by /u/PuppyLand95
    [link] [comments]

    How do you know if you mastered a concept in CS?

    Posted: 27 Apr 2018 05:05 PM PDT

    Like if/else loops. While loops. For loops. When does it feel like second nature in when to use them in your code?

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

    (C) What does an index of -1 mean in C?

    Posted: 27 Apr 2018 07:14 PM PDT

    I'm reading something like this:

    int index = 0; If (Val != null) {

    While( index != -1) ...

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

    Need some help on choosing a language for a simple mobile app.

    Posted: 27 Apr 2018 10:34 PM PDT

    I want to make a mobile app with a simple functionality recently, and am having some trouble deciding on a programming language to use. I heard from some of my friends that React Native is great recently and works on both iOS and Android. Does anyone has any other suggestions? I prefer iOS over Android since that's what I use. I'm familiar with Java and Python, and have not too much experience with JavaScript but I am willing to learn. Thanks!

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

    Building a Web Scraper

    Posted: 27 Apr 2018 10:31 PM PDT

    Hi. I apologize if this subreddit isn't the best fit for my question, but I'm pretty new to programming. I haven't built anything, nor do I have any projects. I'd like to build a web scraper though and I've managed to get so far as having a VM with Ubuntu and Python installed on my Windows (sadface) computer. Google has one detailed site from what I've seen on this topic, but I get a bit miffed on the importation of the requests library.

    I realize I may be biting off more than I can understand, but we've gotta start somewhere, right? Any tips, suggestions, or insight on this matter (webscraping or requests library or even in general) is very much appreciated.

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

    Etch a sketch CSS and JS question

    Posted: 27 Apr 2018 10:30 PM PDT

    Hey guys i have a couple of features I've been trying to get to work on this etch a sketch clone project that i cant figure out. Here is the codepen:

    https://codepen.io/Ramoncarden/pen/OvjbXN

    The first issue is with the white knobs. I have been unable to get the knobs to stay in place when i resize the page. Also is there a way to set the knobs on the bottom corners and keep them there? The layout looks fine on my laptop, but then when i view it on my desktop the knobs are way off on the vertical axis.

    The second issue involves the speed of drawing. You press down on the directional buttons to draw, but at the moment the line draws much too slow. I already tried changing the line context.lineTo(376 + horizontal, 206 + vertical) so that it would move by more than one pixel at a time, but this gave me a dashed line effect, which is not what i intended.

    If anyone could help me with either of these issues to finish up this project that would be great.

    Thank you

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

    Need help with allowing user to input until valid in c#

    Posted: 27 Apr 2018 10:27 PM PDT

    I need some help here I'm attempting a text adventure but I'm finding it hard to make it so that no matter what the user inputs it will keep looping until they enter something valid (1 of 3-4 options). here is what I have so far.

    class Program { byte hitPoints; byte atkPower; static void Main(string[] args) { Thread.Sleep(1000); Console.WriteLine("Welcome to Wolf's text adventure!");//Welcom Player Thread.Sleep(1000); Console.WriteLine("Press 'Enter' to start..."); Console.ReadLine(); Console.Clear(); Console.WriteLine("Please select your class.");//Select Class Thread.Sleep(750); Console.WriteLine("1.Marksman."); Thread.Sleep(500); Console.WriteLine("2.Paladin."); Thread.Sleep(500); Console.WriteLine("3.Warlock."); bool valid = false; string response = Console.ReadLine(); while (!valid)//if invalid repeat { Thread.Sleep(750); Console.Clear(); if (response?.FirstOrDefault() == '1') { Thread.Sleep(750); Console.Clear(); Console.WriteLine("You have selected 'Marksman' HP=50 ATK= 50");//class confirmation Console.ReadLine(); break; } if (response?.FirstOrDefault() == '2') { Thread.Sleep(750); Console.Clear(); Console.WriteLine("You have selected 'Paladin' HP=75 ATK= 25");//class confirmation Console.ReadLine(); break; } if (response?.FirstOrDefault() == '3') { Thread.Sleep(750); Console.Clear(); Console.WriteLine("You have selected 'Warlock' HP=25 ATK= 75");//class confirmation Console.ReadLine(); break; } else { Console.WriteLine("Invalid entry. Please re-enter a valid option."); Console.ReadLine(); } } Console.WriteLine("Break Catch"); Console.ReadLine(); } } 

    Keep in mind I'm EXTREMELY new to programming, thanks.

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

    Hello world! I’m here looking for some materials to start my learning process in networking/development!

    Posted: 27 Apr 2018 10:25 PM PDT

    Hey people!

    So I've been now exploring programming for quite some time. I tried out Java, Python, HTML, CSS, learned some basics just to get the idea of how they work. Now I have to say that I'm a medic so I don't have any education in this field but I really enjoyed learning all that stuff. But around these days I feel like getting a bit more serious in this, learning from the scratch, getting to know the basics, how it all works etc etc. I do know some of it but it's sure just a fraction of the basics one should know when they want to be active in this field. I'm also super interested in networking, but I'm complete noob in that field. I'd love to learn a bit about its basics, about internet security and stuff like that.

    So I'm looking for resources, books, online courses, anything really. https://www.reddit.com/r/HowToHack/comments/7ritb4/everybodys_always_like_how_do_i_do_this_or_that/?st=JGIWG0O1&sh=de6873e4 I found this post but I don't know how noob friendly are those books. I'd still love to continue working towards game development but that still needs a lot of learning (not to mention that I'm actually working on my digital art drawing because you can't do much without graphics ha ha). So I was thinking that getting the basics from networking field could help me move towards a state at which I can earn some extra money doing it.

    Keep in mind that I'm okay with spending a few years to learn all of this. My plan is to build a house, I have a plot of land and I'd like to live as a homesteader. This all will be possible 5-6 years from now, I'm 22 now. And it would be cool if I could bring some more money in doing something else I love. By which I mean working on PC. So any book, course or advice/material is highly appreciated !

    Thanks a lot for taking your time to read this!

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

    Jupyter/ipython widgets - how to display in html/pdf/outside of notebook?

    Posted: 27 Apr 2018 10:11 PM PDT

    I want to share my Jupyter notebook with others and an html/pdf is the best way for me to do so but the interactive widgets don't show up and from what i've searched they would need to install and set python/javascript up and i'd prefer avoiding that. Is there any other way I can share my notebook with others? Will hosting it on Heroku/Azure/AWS let the widgets show up?

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

    need help. C program using while loop

    Posted: 27 Apr 2018 09:13 PM PDT

    Write a program that will compute and display the sum of the powers of x from the first power to the nth power, where x and n are non negative integers given by the user. Ex. if x = 3 and n = 4, then compute 31 + 32 + 33 + 34 = 120; thus display 120. Use while loop

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

    [Python] How can i remove duplicate items from a text file?

    Posted: 27 Apr 2018 09:11 PM PDT

    I have an assignment where i need to remove duplicate words from a text file. For example, if i ran the function on the line "The blue blue ball" it would write the result "the blue ball" to the output file. The teacher has provided most of the code already, i just need to define the functions. The code should also ignore the words "first" and "last". These words were stored in the variables FIRST and LAST.

    This is what i current have:

    # Part 2: # Removes extra occurrances of consecutive duplicate words from the words list. # Note: It does not reduce the words "first" and "last". # Input: # words - an ArrayList of words, no uppercase, no punctuation # wordsIter - a list iterator for the words list def reduceDuplicates(words, wordsIter): previousWord = "" wordsIter.first() while wordsIter.hasNext(): previousWord = wordsIter.next() currentWord = previousWord if currentWord == FIRST or currentWord == LAST: currentWord = previousWord continue elif currentWord != previousWord: previousWord = wordsIter.next() elif currentWord == previousWord: wordsIter.remove() 

    My code as of now deletes every word in the list because it sets the currentWord to the previousWord. I just made it like this until i figure out how i can fix it. I know i need to set the previousWord variable to the first word in the list, and iterate through the list until i find a word that matches it, and delete said word, and set previousWord to the next word in the list. If the code doesn't find a duplicate word, it should just move on to the next word and test for duplicates again.

    This is the guidance my professor gave us for this particular problem:

    Part 2

    Introduce a variable called previousWord and initialize it to an empty string. Call first() to prime the list iterator. Use a while loop with a hasNext() condition to traverse the words list. In the while block: Use next() to get the next word. If the word is equal to "first" or word is equal to "last", then update the value of previousWord to be the current word and use continue to keep looping. If the word is equal to the previous word, call remove() on the list iterator. Update the value of previousWord to be the current word.

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

    This is more of an excel question, but r/excel is dead

    Posted: 27 Apr 2018 09:05 PM PDT

    I have two columns of data: like this

    10 YES 28 NO 33 YES 48 NO 5 YES 

    How do I separate the rows with YES away from the rows from NO?

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

    C++ overloading operators with class templates

    Posted: 27 Apr 2018 05:10 PM PDT

    Trying to get this header file to be able to use these operators. I am getting

    Error C2270 '<<': modifiers not allowed on nonmember function

    Error C2955 'PatientRecord': use of class template requires template argument list

    https://pastebin.com/Q6QxTsZT

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

    Why does this one image website have so much source code?

    Posted: 27 Apr 2018 08:52 PM PDT

    http://www.kanyewest.com/

    It's literally just a button that plays a sound file...but the -view source- shows a pretty substantial amount of content.

    I see a little bit of twitter and ad analytics, but what exactly is being tracked and sent from people simply clicking on a button?

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

    Learning recursion

    Posted: 27 Apr 2018 08:50 PM PDT

    Hi all,

    What is the best online recourse to learn recursion in C++? I feel like recursion is very important but seems like most online courses dont teach it so is it not that important?

    Thanks

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

    (PHP) name of image may different but image is same. How can I avoid those uploads ?

    Posted: 27 Apr 2018 08:49 PM PDT

    I want to remove duplicate image upload, if occured I want to map to existing one. how can I detect those same images if same image having different name uploaded ?

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

    Java: How is this possible

    Posted: 27 Apr 2018 08:46 PM PDT

    Student[] studArr = Util.readFile("studentData.txt");

    What I don't get it is that this is an array right?

    WELL......how is it possible for the name Student to be there instead of a value type like String, int, double etc?

    What does this mean?

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

    No comments:

    Post a Comment