• Breaking News

    Thursday, April 25, 2019

    Thoughts on Humble Software Bundle on Web Development ? learn programming

    Thoughts on Humble Software Bundle on Web Development ? learn programming


    Thoughts on Humble Software Bundle on Web Development ?

    Posted: 24 Apr 2019 02:29 PM PDT

    Are there any people or places that review your code and suggest improvements?

    Posted: 24 Apr 2019 05:56 AM PDT

    I'm attempting to make a website using html and css but I'm having difficulty making it responsive and I'm also uncertain as to if I'm doing things the proper way. I was curious if there's any resources out there or any tips on how to find people to review code once I finish up and tell me how to make my site more responsive or how to have better practices / what I did wrong, meaning people or subreddits either online or in real life that will look over all my code and tell me what they noticed and how to improve.

    Thanks!

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

    What do you prefer for JS Webstorm or VSCode

    Posted: 24 Apr 2019 10:05 PM PDT

    I am a student. I am using VSCode for node and react. Its ok. I like Pycharm by Jetbrains alot. Jetbrains makes Webstorm. Would it be worth switching from VSCode to Webstorm.

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

    Is using APIs for personal projects bad practice as a student since you’re just using pre-made features to build the project fast?

    Posted: 24 Apr 2019 05:01 PM PDT

    I am going to make a web application and I'm thinking about using an API which is literally awesome. After using the features of API, I will be done in around 2 hours and just a few lines of code. I'm wondering that if employers would see that code, they would think that I'm just using outside sources to do my projects.

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

    Recommend a Data Science Courses

    Posted: 24 Apr 2019 05:54 PM PDT

    As the title suggest, anyone has a data science course you could recommend? Appreciate the recommendation!

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

    Any good websites/worksheets to practice hand tracing loops?

    Posted: 24 Apr 2019 07:01 PM PDT

    I got wrecked on my CS exam because 90% of it was just hand tracing loops and figuring out the output. Can anyone recommend any workbooks, online resources, or worksheets where I can practice hand tracing loops? Especially nested loops

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

    How hard is it to be taught programming?

    Posted: 24 Apr 2019 09:45 PM PDT

    Title. Recently was accepted into a pretty prestigious college's CS undergraduate program and I am terrified to say the least. Never had any problems in school and set some good study habits, but I have zero experience in coding and it's intimidating that I will be starting to study this in the upcoming future.

    Has anyone else been in a similar situation?

    submitted by /u/-Sharpshooter
    [link] [comments]

    What was the most beneficial project you undertook while learning to program?

    Posted: 24 Apr 2019 12:28 PM PDT

    What project or program have you done that has taught you the most since you began programming? I think mine would be a pretty basic weather app I made with Python. It taught me how to properly use an API as well as MATPLOTLIB and a few other popular libraries.

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

    Is Python good for freelancing?

    Posted: 24 Apr 2019 10:55 AM PDT

    Hey folks,

    I was recently looking at the job opportunities in Python. I checked the freelancing platforms and as I was expecting there are primarily jobs in Javascript and PHP. However there are certain some in Python, so I wanted to hear your thoughts and recommendations if you have any experience.

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

    Google - "Separate the concept of user identity and user account" what does it mean?

    Posted: 24 Apr 2019 02:15 AM PDT

    I am reading Google's best practices on user accounts and this following paragraph confused me

    Your users are not an email address. They're not a phone number. They're not the unique ID provided by an OAUTH response. Your users are the culmination of their unique, personalized data and experience within your service. A well designed user management system has low coupling and high cohesion between different parts of a user's profile.

    What do they mean?

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

    My first chrome extension!

    Posted: 24 Apr 2019 06:20 PM PDT

    Hello guys. So i started learning javascript a few months ago and decided to make a chrome extension. The extension basically imitates the 'bangs' functionality of DuckDuckGo.com. I decided to upload my code to github first and take feedback from you guys before actually uploading it to the chrome store. Let me know of any suggestion/criticism you guys have for me.

    Here is the link to the github repository: https://github.com/areeeeb/QuickSearch

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

    I want to create a drag and drop "Bootstrap page builder". Where do I start?

    Posted: 24 Apr 2019 07:22 PM PDT

    I want to create a drag and drop "Bootstrap page builder" web app using front-end stack. Where do I start and what stack is the best for this purpose?

     

    I'm not new to programming (few years in Python, Javascript and Java) but has very little experience with front-end development. So today I got the idea to create a Bootstrap page builder to fasten up my project's front-end development. I found a lot of similar program like Bootstrap Studio, Pingendo, and Layoutit but all of these programs are very limited (at least to my needs). So I thought, why not create my own?

     

    However, since I never did any interactive front-end program before (the one with drag and drop and stuff), I have no idea where to start. What kind of library or framework do I need? Is Angular/react/vue good for this? Or vanilla JS + jquery is enough?

     

    Planned features:

    • Drag and drop HTML/Bootstrap element (e.g. grid, input, tables, etc)
    • Able to edit the CSS properties of the elements through UI
    • Able to attach JS event to the element through UI
    • Allows inline code editing
    • Allows saving of page template (in the form of HTML code, or custom file format)
    • Allows saving edited HTML component. For example, I drag and drop a bootstrap table into the 'canvas'. I then add my own CSS on the element. I then want to export this so it can be used on other pages.

    So what's the best way to do this?

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

    I'm a bit confused about how to merge two ArrayLists but only include the new ones.

    Posted: 24 Apr 2019 08:40 PM PDT

    package problem71_combinenewnumbers; import java.util.Collections; import java.util.ArrayList; public class Problem71_CombineNewNumbers { public static void main(String[] args) { ArrayList<Integer> list1 = new ArrayList<Integer>(); ArrayList<Integer> list2 = new ArrayList<Integer>(); list1.add(4); list1.add(3); list2.add(5); list2.add(10); list2.add(4); combineNew(list1, list2); System.out.println(list1); // prints [4, 3, 5, 10, 4] System.out.println(list2); // prints [5, 10, 4] } public static void combineNew(ArrayList<Integer>first, ArrayList<Integer>second){ ArrayList<Integer>third = new ArrayList<Integer>(); third = second; third.removeAll(first); first.addAll(third); } } 

    I'm following a guide from the University of Helsinki and it never taught us the removeAll method is there a way to do it involving loops?

    Also I couldn't think of a way to print the second list while still keeping it's old numbers (list2 in original form).

    Also an unrelated question, but I'm curious. Why do I not need parentheses in the parameters when using ArrayList, but I need them everywhere else.

    Thanks

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

    Resources/help understanding android studio constraints!

    Posted: 24 Apr 2019 11:52 PM PDT

    I've always hated having to deal with css positioning, it seems javas tools are more of the same thing. I was wondering, what resources did you use to finally understand these concepts? Struggling with positioning views when I really want to get to building something neat.

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

    Run C# Files

    Posted: 24 Apr 2019 11:41 PM PDT

    Just started programming during my free time, have done a bit of C-languages and moved up to C#. But I've never really been able to view my code in action. I need some sort of compiler, any suggestions?

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

    What is FreeCodeCamp not teaching me?

    Posted: 24 Apr 2019 11:29 PM PDT

    I understand that FreeCodeCamp is meant to learn the actual code itself, but I feel like I would learn better if I knew how to apply what I've learned outside of the FreeCodeCamp editor. I apologize if FreeCodeCamp does teach this in later lessons, but as of now I have only completed html/css and am on beginners JavaScript.

    For example, what type of programs do I use? How do I combine html/css + JavaScript to work in tandem? Can html/css + JavaScript be combined into one single file? Like html and css can be in the same .html file using a <style> tag, can JavaScript be on the same file too? Is JavaScript capable of eliminating the need to use html/css altogether?

    I understand a program like notepad++ is an editor, but I understand there may be better programs to use.

    Any information or direction that resources regarding such information would be most appreciated. Also, do you think FreeCodeCamp is sufficient in place of learning from a book? Would it be wiser to learn from a book, or would utilizing both types of resources be better?

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

    Why would I use a database partition over an index?

    Posted: 24 Apr 2019 10:06 PM PDT

    Instead of partitioning something based on an ID, couldn't I just create an index for the ID?

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

    C++ Beginner homework help. Nested for loops.

    Posted: 24 Apr 2019 06:09 PM PDT

    Hey guys back again with a small issue.

    The assignment is to print a forward slash (/) using for loops that increment or decrement an inputted number.

    Input of 5 will have an expected result of

    - - - - 5

    - - - 4 -

    - - 3 - -

    - 2 - - -

    1- - - -

    Dashes are used to illustrate spaces, but dashes are not needed in output.

    Unfortunately, I am stuck at this point. I was able to get the output mostly correct. My output appears as:

    - - - - 1

    - - - 2 -

    - - 3 - -

    - 4 - - -

    5- - - -

    With the numbers climbing in value from the bottom rather than descending in value from the top.

    I understand that using i-- and i++ within a for loop controls which direction the values move, however on adjusting those values I either cause an infinite loop or the formatting of the output becomes incorrect.

    I am unclear on which lines of code are needed to be adjusted to allow for the proper descent of values down the lines while keeping the same formatting. Any advice or hints are appreciated.

    Thank you for the help.

    Pastebin link to code :

    https://pastebin.com/KW086MxQ

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

    Having trouble with a translator web app I'm trying using api?

    Posted: 24 Apr 2019 09:08 PM PDT

    https://codepen.io/anon/pen/dLQZaE

    I don't get errors but nothing happens. wondering what I'm missing, maybe using some wrong syntax or method?

    e: also changed second input to div just incase but didnt change

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

    Building Machine Learning Movie Recommender

    Posted: 24 Apr 2019 09:06 PM PDT

    Hello everyone! I posted recently asking help request of some sort of a guide or direction in building an App that Recommends Movies. I'm extremely new at using angular7. Upon further researching and professor giving more details on what he wants, It has to be made with Machine Learning. Does anyone have a guide or reference I could go by that's helps me develop machine learning with movie recommendations?

    Like these but at a smaller scale.

    movix.ai

    https://www.tastemonster.com/

    My work, planning on removing questionnaire page and implementing the recommender starting there.

    https://github.com/LamarRJ1/TheMovieMaster

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

    Learning Post-Redirect-Git, Post variables aren't being updated in the following example.

    Posted: 24 Apr 2019 08:43 PM PDT

    in my first PHP file, here is the form that is created:

    <form id="signin" action="post.php" method="POST" >

    <fieldset> <p><img src="img/banner.png" width="521" height="346" alt="Super Lights Banner"></p> <p>Welcome to Super Lights</p> <p><label for="name">Your Name: </label> <input type="text" name="name" id="name" value=""></p> <p><input type="submit" id="startButton" value="Start Game"></p> </fieldset> 

    </form>

    *After a button is pressed, the code in post.php is executed, which is the following: *

    <?php

    $playerName = $_POST['name'];

    // The Redirect part of: Post/Redirect/Get

    header("location: lights.php");

    exit;

    The redirect portion works fine, and lights.php opens and the code there runs. The problem occurs when trying to set playerName, I get the error that this is an undefined index, i.e., the post variable is never being set.

    The example I've been looking at, was a learn Post-Redirect-Get page, and is the following code, all in one .php file

    <html>

    <head>

    <title>Registration Form</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 

    </head>

    <body>

    <?php if (isset($_POST['form_submitted'])): ?> //this code is executed when the form is submitted <h2>Thank You <?php echo $_POST['firstname']; ?> </h2> <p>You have been registered as <?php echo $_POST['firstname'] . ' ' . $_POST['lastname']; ?> </p> <p>Go <a href="./exprg.php">back</a> to the form</p> <?php else: ?> <h2>Registration Form</h2> <form action="exprg.php" method="POST"> First name: <input type="text" name="firstname"> <br> Last name: <input type="text" name="lastname"> <input type="hidden" name="form_submitted" value="1" /> <input type="submit" value="Submit"> </form> <?php endif; ?> 

    </body>

    </html>

    I've used this code as well, and this works flawlessly. I've been comparing what's being done to my attempts above, and can't see what I'm doing differently. Any help at all would be greatly appreciated, as I have no idea what is different in my attempt, they look similar. Thank you.

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

    Reservoir sampling

    Posted: 24 Apr 2019 08:34 PM PDT

    I don't quite get it. Are you constantly updating the random number as the stream of numbers come in or something like that? But then how would that be random? I'm kinda confused.

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

    Help using an API authentication key in website build.

    Posted: 24 Apr 2019 04:47 PM PDT

    Hi all, I am working on my final project for one of my computer science classes and am running into a big issue.

    The project is to develop a web page that uses an api we selected. The api I chose was Fun Translations API. This API requires a payment of $5 to use so I paid it and was given a authentication key. I am using node js and express to do this we are allowed to use other npm packages, but these are what I have installed so far. The issue is that when I start my server and attempt to connect to the local host I get returned by the api "429". I read online that 429 is used when too many requests are made so I need to implement the authentication key somehow in my code. I am not sure how to do this exactly and the API's website isn't much help. The website states to:

    For public calls you don't need to pass any API key. Just invoke the endpoint (see examples below). For paid subscriptions you need to pass the API key.

    Currently we support API Key based authentication. Please set a request header 'X-FunTranslations-Api-Secret' with value of your API key. Alternatively you can also pass api_key= as a request parameter, though we strongly discourage this mode of passing the key.

    I tried to this, but I don't think I am doing it right. I am going to include my main.js express server code below and want to thank anyone for the help in advance.

    'use strict'; const express = require('express'), app = express(), request = require('request'); // Configure middleware for static resources app.use(express.static('resources')); // Setup renderer to be Pug app.set('view engine', 'pug'); app.set('views', 'views'); // Setup Express routes app.get ('/', function(req, res){ console.log('Making the request'); let EnglishText = "Did you see the bounty hunters?" request( { url: `https://api.funtranslations.com/translate/huttese.json`, json: true, // resquest automatically converts body to JSON }, function(err, response, body) { console.log(err); if (err) { res.sendStatus(500); return; } console.log(response.statusCode); if (response.statusCode >= 400) { res.sendStatus(500); return; } const translationJSON = body; console.log(translationJSON); console.log(`Received translation ${translationJSON.contents.translated}`); res.render('test', translationJSON); console.log('translationPage pug sent'); } ); }); // Start the Express server const server = app.listen(3000, function() { console.log(`Server is running on port ${server.address().port}`); }); 
    submitted by /u/zmFreeFisher
    [link] [comments]

    [Git] Preserving merge history in merge commits

    Posted: 24 Apr 2019 07:57 PM PDT

    If I want to merge master into my feature branch, it seems like the "standard" thing to do is merge and resolve any conflicts in the same "merge" commit.

    It seems to me like it'd make more sense to just commit with the conflicts in place (and all the <<<'s and >>>'s), then fix the conflicts and make a second commit. The reason is that if there are a lot of commits from master that I'm merging in, the merge commit is basically all of those commits as one, plus whatever had to be done to resolve the conflicts, which makes it hard to see exactly what was done for conflict resolution.

    I'm not too familiar with rebasing workflows but it seems this is one advantage to that approach, in that the conflict resolution shows in the first commit instead of the last one.

    Is there a better way to separate the work being pulled in from master from what had to be done to resolve conflicts?

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

    No comments:

    Post a Comment