• Breaking News

    Friday, March 1, 2019

    [HTML] [CSS] Thrilled to have finished my first FreeCodeCamp project, meet George Costanza! learn programming

    [HTML] [CSS] Thrilled to have finished my first FreeCodeCamp project, meet George Costanza! learn programming


    [HTML] [CSS] Thrilled to have finished my first FreeCodeCamp project, meet George Costanza!

    Posted: 28 Feb 2019 07:38 PM PST

    I've been following the FreeCodeCamp lessons, trying to invest at least 30 minutes a day on it.

    I'm thrilled about successfully finishing my first project and wanted to share it with you guys!

    Please feel free to comment and I'm looking forward to your constructive feedback.

    George Costanza CodePen

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

    Do I even have a chance, should I give up?

    Posted: 28 Feb 2019 10:48 AM PST

    I'm 21, with no college degree.

    I've recently started programming(want to make games), and I have learned..... But still a long way to go.

    I am self-learned and I'm not currently attending any computer science courses or anything.

    But my question is: By having no degree, will I even have a chance to have a future career in game programming? I'm a hard worker(if that counts), or should I give up on the game making part? Should I do something else in the programming field?( I hate this because I love games and I want to make them so bad :( ).

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

    Podcasts for learning?

    Posted: 28 Feb 2019 06:19 PM PST

    I have a day job where I can listen to audio through headphones for my entire work day, but I can't watch anything. I would assume learning programming through audio wouldn't really work, but I figured I'd ask anyway and see if anyone has any good audio resources. Thanks.

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

    How do you approach a coding problem, really?

    Posted: 28 Feb 2019 05:52 PM PST

    When I see a problem e.g. on Leetcode or something, I tend to jump right into it and start coding my way out. It seems at the beginning that this straight-to-work approach is faster than planning, making a mental map or a pseudocode and then coding, since I will run into problems and have to debug till I get there anyway. Do you skip the planning phase, and are able to solve it anyway? I feel like if I have solved something in this greedy way, I don't quite get the hang of the idea or algorithm at work. What do you think is better: just make it work, or know it inside out and work out a well-thought-out solution?

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

    Best resources to learn C++?

    Posted: 28 Feb 2019 04:48 PM PST

    Hello everyone,

    I'm kind of a newbie in C++. I know there are many already, but which free online resources do you guys recommend more for me to learn and practice?

    Thanks in advance!

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

    Why is 2,147,483,647 the biggest number you can write with 4 bytes?

    Posted: 28 Feb 2019 06:43 PM PST

    A friend of mine said 2,147,483,647 is the biggest number you can write with 4 bytes.

    Now, I started to run some tests and here's where the question appears:The biggest number you can write with 1 byte is 11111111, right? If you translate it to decimal, it would become 2^0 + 2^1 + ... + 2^7 = 255, which is the maximum value you can get with a single byte.

    By trying the same with 11111111 11111111 11111111 1111111, which would theorically be the biggest number with 4 bytes, the translator actually translates it to 4,294,967,295. BUT if you replace the first 1 with 0, then it will become 01111111 11111111 11111111 11111111, which ACTUALLY translates to 2,147,483,647.

    So the actual question: why do people say that 2,147,483,647 is the biggest number you can write with 4 bytes, instead of 4,294,967,295?

    BTW I'm really new to computer science, please try to make it simple.

    EDIT: Thanks for all the replies! My question has been answered

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

    Learning Golang - I am new to programming and looking for reasonable goals/projects

    Posted: 28 Feb 2019 03:15 PM PST

    I am new to programming and looking for a reasonable attainable goal.

    I need some reasonable projects to try. I also am a little confused by workspace structure and the best way to layout directories and files etc.

    I primarily am working with Go in vim on Linux.

    Any advice or direction is much appreciated! I feel like I understand everything I have learned about programming in general I just have no actual projects or goals to try and prove out learned skills or better them.

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

    How did extensions like Grammarly integrate machine learning? Was it built directly into the extension or is it using calls to external API?

    Posted: 28 Feb 2019 02:37 AM PST

    Hi there. I'm trying to build a Chrome extension that will use OpenCV and ML however I'm not sure how to design the architecture. I'm not sure whether I should make a server somewhere that does the ML processing and send the result to the extension via API call or can I just embed the ML module into the extension (maybe in the javascript file)?

    P/S: I'm trying to make a image/video analytic extension

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

    Is it possible to begin interning with very basic skills?

    Posted: 28 Feb 2019 04:54 PM PST

    Could I possibly start interning somewhere with only Python and a bit of Html/Javascript? Or should I know Django/Flask and all kind of algorithms before I even get started?

    submitted by /u/At-LowDeSu
    [link] [comments]

    Getting started with Open Source is overwhelming

    Posted: 28 Feb 2019 07:50 PM PST

    I am attempting to contribute to this open source project and I am finding it really difficult to start contributing to it.

    I have no previous open source experience. The project I have chosen is written in Java and I am using the Eclipse IDE. I have forked the repo and set it up on my local machine (I ran the HelloWorld module successfully on my local). I went through the code base and understood most of it.

    I do not know how to pick a problem/issue and attempt to solve it. The repo provides a list of open tasks but for some reason I am just not able to move forward and begin implementing any solution for any of the open issues/tasks. Should I discuss my solution with the community before implementing my ideas? Or is it recommended to submit my solution as a pull request and see where it goes from there?

    Every time I attempt to contribute anything, I get stuck somewhere along the way, get overwhelmed and lose interest. Please help!

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

    Want to transition from PHP. Which language should I pick?

    Posted: 28 Feb 2019 06:44 PM PST

    My friends and former co-workers keep telling me that PHP is dead. I've been a developer for 9 years and I taught myself to program with PHP. But it's getting harder to find good paying jobs in this language, and the ones that are just ignore you if you haven't used whatever flavor-of-the-month framework is popular (despite php frameworks all mostly being similar).

    So, if I were to try and learn a new language, what would you recommend? Python? Nodejs? Java?

    Thanks in advance for any insight.

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

    Compiled vs Interpreted

    Posted: 28 Feb 2019 07:43 PM PST

    Machine code(instructions the CPU can directly understand)

    Does EVERY language turn into machine code?

    C vs Python

    When C is compiled is it (without any intermediaries) turned into Machine code?

    (except the compiler which is written in assembly I assume)

    When people say Python is interpreted(using C or whatever language) does it mean that Python is turned into/converted into regular C then executed as if it was C?

    How does Python exactly turn into machine code to be executed? And what allows it to be "interactive"?

    How does Java fit into this, how is it executed?

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

    How Hard Finding A Remote Job For Non EU-US Citizen?

    Posted: 01 Mar 2019 12:36 AM PST

    If you can speak English fluently?

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

    Why does my value return false in my second print statement [Python]

    Posted: 28 Feb 2019 08:08 PM PST

    favoriteCar = 'dodge viper' print("I'm trying to decide if the dodge viper is better than a dodge neon...") print("I'm pretty sure that's" + favoriteCar == 'dodge viper') 
    submitted by /u/piefawn
    [link] [comments]

    Print string to the console on Windows using Assembly

    Posted: 28 Feb 2019 08:04 PM PST

    Hey everyone. I'm trying to make a programming language, and I (obviously) need to be able to perform I/O with it.

    I also want it to compile to machine code, which is almost 1:1 with assembly... So, how can I write string values to the console in Windows, with Assembly? (knowing how to do it on Mac and Linux would be handy too).

    I've Googled it and searched for the past couple hours, and all I've found is some StackOverflow posts that don't really explain how anything works, it just says "do this."

    Also, I'd like to use the Windows API, and not the C library.

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

    "Not all code paths return a value" How do i fix this?

    Posted: 28 Feb 2019 07:38 PM PST

    static int GetYear(string message, int minYear, int maxYear)

    {

    int year;

    bool isValid = false;

    while (!isValid)

    {

    Console.WriteLine("Enter the year(1582 - 2100: ");

    if (int.TryParse(Console.ReadLine(), out year))

    {

    if (year >= 1582 && year <= 2100)

    {

    isValid = true;

    }

    else

    {

    Console.WriteLine("ERROR: out of range");

    }

    }

    else

    {

    Console.WriteLine("ERROR: wrong year");

    }

    return year;

    } }

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

    First Hackathon, advice?

    Posted: 28 Feb 2019 08:23 PM PST

    I will be attending my first Hackathon (LA Hacks in SoCal) in a month. I have decent knowledge of programming in C/C++ and C# (I'm an ECE student), and will be teaming up with at least 2 people that I know pretty well. We all have similar skills since we've taken the same programming classes and all came into school knowing nothing about programming. We might be having 2 more guys from our robotics club team with us, but nothing is set in stone.

    Anyways, what advice do you have for someone's first time? FYI this event is 36 hours. Any recommendations on what type of project to work on?

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

    Knowing when to figure it out for yourself.

    Posted: 28 Feb 2019 05:22 PM PST

    Computer Science student here, fairly unskilled in any particular area of programming, but a little bit of a solid foundation as I am in the middle of my education.

    I hear so much from CS students about learning things your own way, being self-taught, and generally disregarding the formal educational model for the most part and going for the knowledge yourself.

    I am not anywhere near my ideal in actual programming ability, and I fear that I may ask for help too often. It's just that whenever I attempt to develop my own solution to a problem, I often create more problems that prevent me from even solving the original. Or I get overwhelmed and give up.

    What do you think is a reasonable time to seek answers via Google, peers, Professors, etc. versus developing your own solutions?

    edited: removed an unnecessary question

    submitted by /u/69monty69
    [link] [comments]

    [Verilog] Creating a module that adds three 4 bit numbers

    Posted: 28 Feb 2019 05:43 PM PST

    The question states "Suppose you are given a 1 bit full adder that is instantiated with the following code FullAdder(Cin,X,Y,S,C). Create a module that adds three 4 bit numbers together. (It may be most efficient to make 2 modules, one to act as a 4 bit adder, and one to act as the 3 number adder)"

    I believe I created a module to act as a 4 bit adder but I am unsure on how to create one that acts as a three number adder and relates them somehow. This is the first course I've taken that uses Verilog (it's a Digital Logic class) and am completely lost, I was only able to create this code based off of a semi-similar example in class, it doesn't even fully make sense to me.

    My code for the 4 bit adder is:

    module FullAdder_4bit (Cin, X, Y, sum, Cout);

    input [3:0] X, Y;

    input Cin;

    output [3:0] sum;

    output Cout;

    wire C1, C2, C3;

    FullAdder f0 (Cin, X[0], Y[0], sum[0], C1);

    FullAdder f1 (C1, X[1], Y[1], sum[1], C2);

    FullAdder f2 (C2, X[2], Y[2], sum[2], C3);

    FullAdder f3 (C3, X[3], Y[3], sum[3], Cout);

    endmodule

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

    Simple AR image recognition (webbased or android) - where to start?

    Posted: 01 Mar 2019 01:00 AM PST

    Hi!

    Me and some fellow students have a few weeks to mock up a interactive prototype.

    We would like to for example build a local library of a few selected book covers - then when the camera sees it shows a note/ review. Either as nice 3D AR or a simpler 2D overlay.

    We just don't know where to start and if this is something that can be build relatively easy.

    Hope you can help

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

    C++ Student Beginner learning pointers, but ran into a problem even the teacher didn't know...

    Posted: 28 Feb 2019 09:10 PM PST

    Hi, I'm a first year cs c++ student learning about pointers, dynamic variables, and dynamic arrays right now. Anyway, I was doing my coding assignments and came across a weird problem. The code is really basic and is supposed to demonstrate my use of dynamic variables and I believe I did it correctly, but my output comes out very strange. When I try and output my name using a cout statement, the console shows my name, but it is followed always by random characters afterwards. I thought this was odd since a friend of mine was also in the class and his code was practically identical to mine but he did not have the same issue. I approached my teacher about the problem and he looked over my code and said that it looked fine and that he would look into it later. However, he is not the most reliable teacher when it comes to assisting students and I want to find the root of the problem so I wont have any issues in the future if I use something like this. Is there a reason why it's doing this with my code?

    Again, I'm a beginner so if the answer is simple, I apologize ahead of time. I hope it's ok to post my whole code on here too. I know it's crummy as well, most of the code was supplied to us and we just had to fill in certain sections. My teacher is not the best computer science teacher out there (he's actually awful but he's my only option).

    I supplied my code if you wish to help me find out my problem.

    Ive tried looking up any issues similar to this but couldn't find any

    The output issue I'm having:

    Hi Garrettttt²²²²▌▌Φ║╚▌

    This is the line where the code is executed:

    cout << "Hi " << name << endl; 

    /*==================================================================== Program: dynamic.cpp ====================================================================== Description : This program demonstrates the use of dynamic variables ====================================================================*/ #include "stdafx.h" #include <iostream> using namespace std; const int MAXNAME = 10; int main() { int pos; char *name = nullptr; int *one = nullptr; int *two = nullptr; int *three = nullptr; int result; // Fill in code to allocate the integer variable one here one = new int; // Fill in code to allocate the integer variable two here two = new int; // Fill in code to allocate the integer variable three here three = new int; // Fill in code to allocate the character array pointed to by name name = new char[MAXNAME]; cout << "Enter your last name with exactly 10 characters." << endl; cout << "If your name has < 10 characters, repeat last letter. " << endl << "Blanks at the end do not count." << endl; for (pos = 0; pos < MAXNAME; pos++) { cin >> *(name + pos); // Fill in code to read a character into the name array }// WITHOUT USING a bracketed subscript cout << "Hi " << name << endl; for (pos = 0; pos < MAXNAME; pos++) { cout << *(name + pos); // Fill in code to a print a character from the name array // WITHOUT USING a bracketed subscript } cout << endl << "Enter three integer numbers separated by blanks" << endl; cin >> *one >> *two >> *three; // Fill in code to input three numbers and store them in the // dynamic variables pointed to by pointers one, two, and three. // You are working only with pointer variables // echo print cout << "The three numbers are " << endl; cout << *one << " " << *two << " " << *three << endl; // Fill in code to output those numbers result = *one + *two + *three; // Fill in code to calculate the sum of the three numbers cout << "The sum of the three values is " << result << endl; // Fill in code to deallocate one, two, three and name delete one; delete two; delete three; delete name; system("pause"); return 0; } //========================================================== /* ---- OUTPUT ---- Enter your last name with exactly 10 characters. If your name has < 10 characters, repeat last letter. Blanks at the end do not count. Garrettttt Hi Garrettttt²²²²▌▌Φ║╚▌ Garrettttt Enter three integer numbers separated by blanks 3 4 5 The three numbers are 3 4 5 The sum of the three values is 12 Press any key to continue . . . */ //========================================================== 

    SOLUTION: Needed a null terminator so the output would know when to stop. I added

    *(null + pos) = '\0'; 

    right before

    cout << "Hi " << name << endl; 

    name[MAXNAME - 1] = '\0'; 

    would work too

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

    Dragging objects in Unity

    Posted: 01 Mar 2019 12:47 AM PST

    I am attempting to make a sort of stacking-game in Unity right now. I am wondering how to make the game so that I can move objects around my game by dragging them. I have only managed to find some bad, outdated tutorials on the matter. I am hoping you can help me, guys.

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

    Stuck and unsure of what to do about it

    Posted: 01 Mar 2019 12:46 AM PST

    So far, I have completed 2 tracks and nearly finished another on a site i've been using to learn Python called Treehouse. I got up to about dictionaries and got to a coding challenge that stumped me like the last few consistently have. The answers that were on that site at this point seemed alien, and it was then that I realized that I may not have learned as much as I thought. I tried going back to a couple videos in the beginning of the first track, but i'm not picking up anything new.

    At this point, i'm kinda stumped and thinking maybe I should try another learning resource. Any suggestions?

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

    Making a script to edit file with root

    Posted: 01 Mar 2019 12:42 AM PST

    Hi everyone, I made software in the past for University purpose. But I'm still a beginner. I had the idea to create a script which modify some rooted folders. Some advice where to start? Can you advise me some good guide to grant permission inside the script? Probably I'll use Java, but I'll glad to listen your advises.

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

    How do I find a certain value in an ArrayList of an unknown size?

    Posted: 28 Feb 2019 02:55 PM PST

    I'm trying to figure out how to find a value in an ArrayList of objects that I don't know the size of. It returns the position of the item if it's found or -1 if it doesn't exist. I figured out how to find the value if t does exist but I don't know what to do if it's not there.

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

    No comments:

    Post a Comment