• Breaking News

    Tuesday, March 26, 2019

    Podcasts or videos of good programmers solving problems out loud and explaining their logic? learn programming

    Podcasts or videos of good programmers solving problems out loud and explaining their logic? learn programming


    Podcasts or videos of good programmers solving problems out loud and explaining their logic?

    Posted: 26 Mar 2019 05:20 AM PDT

    Anyone have any good resources of coders talking through their code (maybe while coding live)? A colleague mentioned he watched a series a while ago where someone was live streaming their development of code and talked through all the decisions, or another series where good programmers were posed problems and had to solve it out loud on the spot.

    Really I'm interested in anything that lets me listen to the logic behind decision making. Thanks!

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

    Made my first 2D game, but there are some issues.

    Posted: 26 Mar 2019 05:54 PM PDT

    Hello guys I have been programming in Java for a few months now. This is my first attempt at a 2D game. I was wondering if you guys could look at it and give me feedback on my code and organization.

    There are some issues with the game however. In the Movement class the enemyMovement method doesn't seem to function consecutively. As it only animates the enemies every other game, but they still move every time. Also, in my HitDetection class the playerHit method activates randomly after the first death. I'm not sure if these issues are because I'm using a lot of static methods and variables.

    Thank you. I'm fairly new to git as well so yeah.

    https://github.com/ProgrammingLuis/SpaceInvaders

    EDIT: Just fixed the issues. My playerHit method was also hitting disabled spaceships so I checked if they were enabled. Also, I separated the animation functionality into a separate class and compared imageIcons directly. I just want some feedback + suggestions now. Thanks. :)

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

    What type of programming languages to learn if you want to become a hacker?

    Posted: 26 Mar 2019 10:56 PM PDT

    Hey guys! I am currently learning to be a hacker for my future career in Cyber Security , and I was wondering what language should I be learning for hacking? What type of programming languages would a hacker learn?

    So far I am currently learning C, but I want to expand my programming language knowledge to help my goals?

    Language that I think to learn next is: -JavaScript -HTML and CSS -Python -PHP -MySQL

    Any other recommendations? Thank you guys! Looking forward to hearing from you guys.

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

    How are kill cams and replays implemented in online FPS games? How does the game record other players perspectives and show it to you?

    Posted: 26 Mar 2019 04:06 PM PDT

    I think I have a general idea of how this works, but I can only find results for making replays in other game genres (RTS/MOBA). What I could find for those games is that they handle it by recording player inputs, and then the replay file is just replaying those inputs with the same starting game parameters. Or by saving the game state every frame and replaying that.

    Is that how an FPS kill cam works? Wouldn't that be slow in a game with a lot of different factors and players?

    Do any FPS games handle this by recording actual videos on the player's client? That seems easier to implement.

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

    Why does modern software practices reflect a lot of operating systems concepts?

    Posted: 26 Mar 2019 02:36 AM PDT

    I am currently attending a OS concepts course at uni and I think a lot of the concepts that this course is teaching us is a lot of things that we have already seen in a modern software.

    Things like process management, message based communications, resource allocation, memory segmentation, and I/O use the same concepts outside of the world of operating systems too.

    Is it the fact that an OS is such a big piece of software that it is nearly inevitable to not imply knowledge from multiple domains or the fact that OS is something that works very close to the hardware and allocation problems that it is fundamental to find such solutions in modern software, or something else?

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

    How to get registration, contact and other kind forms using code?

    Posted: 26 Mar 2019 11:46 PM PDT

    Do you know how can I get kinds of forms for my web page design?

    I want to get registration, contact and other kinds forms.

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

    New Udacity "Data Structures And Algorithms" worth it?

    Posted: 26 Mar 2019 07:38 PM PDT

    Hi! I just noticed Udacity released a new nano degree about Data Structures and Algorithms. I'm a self taught developer and i think this is a topic that has a lot of theory that i don't know very much about (i went to a bootcamp, Ironhack, but they teach no CS related topics at all).

    The syllabus is not very detailed and not give much info about the specifics of the topics that it covers.

    Do you think this nano degree is worth the $600 given that Udacity have a reputation of having "better than average" courses? Also, any books or courses recomendations about this topic that are not that heavy would be appreciated.

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

    So what math/programming books are your currently reading?

    Posted: 26 Mar 2019 05:19 PM PDT

    I'm going to college, a very bad college, the next semester, so I'm reading all these:

    1- Epp's Discrete Mathematics.

    2- Strange's Linear Algebra.

    3- Stewart's Calculus.

    4- TCLR Introduction to Algorithm.

    5- OpenCV 3 by O'Reilly.

    6- OpenGL Superbible.

    7- Programming Principles and Practice Using C++ by Stroustrup

    8 - O'Reilly's Python 3.

    Guess who many units of math we have in that cesspit? 2! I have to prepare. What about you? What are you studying atm and why?

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

    How to automatically load applicationContext for Spring unit testing?

    Posted: 26 Mar 2019 11:02 PM PDT

    Hi all,

    I am newbie at Spring and as intern have been asked to write a few unit test cases for a Spring 3.2 application. Problem is that I am not able to run it because upon running the test case I get a null pointer exception from another method that this one relies on, which then further relies on some more classes including one that gets data from a database. I had a look at a prexisiting test and it seems that it tries to invoke an applicationContext from an applicationContext.xml file. I tried to do that with my test case but it didnt work :/ . Some or the other error keeps coming up. So was wondering, is there any way in Spring 3 to make it automatically detect whatever the test case needs and do the necessary setup so that all I need to do is click the 'run junit test' button and it runs. I would rather spend time on writing the tests instead.

    Thanks! :)

    p.S. - using jdk 7 and intellij community edition

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

    Designing domain-specific security scheme

    Posted: 26 Mar 2019 10:49 PM PDT

    Consider fictitious filtering system which selectively transforms result sets based on their content. The criteria is a configurable secret. Neither the criteria nor the transformation event should be exposed to clients, eavesdroppers, intruders or an individual malicious administrator.

    The attack vector is decentralized among multiple components. One must gain access to multiple components to gather the key artifacts to reconstruct the sensitive knowledge. Exposure of implementation details doesn't reduce the security of the scheme.

    Cryptography's golden rule is don't roll your own. Essentially the example system is a custom cryptography protocol. How should one prepare to design such a system without strong background into information security?

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

    How to detect a gunshot?

    Posted: 26 Mar 2019 06:50 PM PDT

    I'm building a Gunfire Locator System from sratch. I'm woried now only with the detection, not the triangulation.
    The idea is to have an audio recorder, the audio recorder streams the data to a server and the server runs the detection algorithm, throwing some kind of alert when a shot is detected.

    On the current stage of the project I'm using an Android device as the audio recorder and a desktop app to receive the audio packets. These two apps are already working great.

    Now I'm on the detection part and pretty much lost.
    - Is there any stable algorithm/library that would help me with the detection in real-time?
    - Is an Android device capable of record audio with enought quality to distinguish a gunshot?
    - Is this a "simple" problem or it is a complex one?

    For now I was able to find only learning algorithms, but was not able to find a good gunshot database to use for training.

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

    Web app technologies that don't support asynchronous operations?

    Posted: 26 Mar 2019 10:06 PM PDT

    I'm learning Node.js and I've learned how asynchronous operations work.
    On the about page for Node.js, in regards to being asynchronous, it mentions:

    "This is in contrast to today's more common concurrency model where OS threads are employed."

    What technologies use "concurrency model where OS threads are employed."?
    Basically, I'm asking if there are web application technologies that don't support asynchronous operations?

    If anyone can help me wrap my head around this, I'd greatly appreciate your time! :)

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

    Need help with assembly language (Masm 615)

    Posted: 26 Mar 2019 09:55 PM PDT

    Is there any tutorial for this like step by step because I am having trouble understanding simple things

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

    What exactly is a python framework and can i build myself a website from it? (Complete beginner)

    Posted: 26 Mar 2019 09:31 PM PDT

    I'm wanting to look into building my own website as kind of a portfolio but i'm an absolute beginner with 0 coding experience except from a "hello world" print in an older version of python. I googled how to get started on building my own website from scratch and started looking at something called "Django" but started doing some research and only got completely lost. Some people were saying something about using a text editor (i don't know what that is) and to start on the back end through a server (again don't know what that is). All i'm trying to say is that i need a person to point me at something that can teach me stuff to help me build a website. Any and all advice is greatly appreciated.

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

    Do you think someone can be a Graphics/Vision/Learning programmer as well as a JS/JS-related technologies web developer?

    Posted: 26 Mar 2019 09:28 PM PDT

    I don't want to be just another web developer. There's enough of them as it is, and shining in this particular area of expertise is hard. I am studying graphics/vision/learning which are related to each other, and I'm very happy, but when the morning arrives, and my mom reminds me that she's ran out of money again, I get reminded that there's so little jobs for a graphics/vision/learning programmer, especially remote jobs... What do you think I should do? Should I give up my dream and become an exasperated web dev, don't go to college, and get a job? I don't want to...

    PS: I know you can't be a web developer who focuses on Graphics/Vision/Learning, but demand for such programmer is even lower. I mean general MVC CRUD programmer.

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

    How can I edit Friend in the fourth index of the vector using pointers? So I want the fourth friend in the iterator to have name KEN instead of KANEKI.

    Posted: 26 Mar 2019 05:42 PM PDT

    /**************************************** Store class objects in vector By: nirvanarupali Compiled in Borland C++ *********************************************/ #include <iostream> #include <vector> #include <string> using namespace std; class Friend { public: Friend(); ~Friend(){} void setName(string friendName){ name = friendName;} void setAge(int friendAge) { age = friendAge; } void printFriendInfo(); string name; int age; private: }; //implementations Friend::Friend() { age = 0; } //printing void Friend:: printFriendInfo() { cout << "Name : " << name << endl; cout << "Age : " << age << endl; } int main() { // Create a vector of Friend objects vector<Friend> list; string Name; int Age; float Height; Friend f1; Friend prevDir = *new Friend; Friend *pDir; Friend *pPrevDir; f1 = *new Friend; for (int n=0; n<20; n++) { f1.setName("larry"); f1.setAge(n); if(n ==4 ){ f1.setName("KANEKI"); pDir = &f1; prevDir = f1; pPrevDir = &prevDir; } if(n == 9){ pDir->setName("KEN"); *pDir = *pPrevDir; } list.push_back(f1); } // Now setup an iterator loop through the vector vector<Friend>::iterator it; for ( it = list.begin(); it != list.end(); ++it ) { // For each friend, print out their info it->printFriendInfo(); } return 0; } 

    This is the output:

    Name : larry Age : 0 Name : larry Age : 1 Name : larry Age : 2 Name : larry Age : 3 Name : KANEKI //I want this to change to KEN Age : 4 Name : larry Age : 5 Name : larry Age : 6 Name : larry Age : 7 Name : larry Age : 8 Name : KANEKI // This should still be larry Age : 4 //this should be 9 Name : larry Age : 10 Name : larry Age : 11 Name : larry Age : 12 Name : larry Age : 13 Name : larry Age : 14 Name : larry Age : 15 Name : larry Age : 16 Name : larry Age : 17 Name : larry Age : 18 Name : larry Age : 19 

    edit: i added its current output

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

    Mysql csv file import

    Posted: 26 Mar 2019 09:22 PM PDT

    I have a csv file with some columns empty, which are mapped to nullable datetime on a table. When I try to import it using mysql workbench, data fails to load. I tried replacing the empty columns with NULL and imported it, but no luck. Any mysql expert here who knows a workaround?

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

    What does the line char *pvowels = (char *) malloc(n * sizeof(char)); do particularly the (char *) part?

    Posted: 26 Mar 2019 03:17 PM PDT

    https://www.learn-c.org/en/Dynamic_allocation

    Right now, I am using that website to teach myself C. But because English is not my native language (I have to guess what people mean from the context sometimes) and I don't have much programming background (I took like 2 programming courses in college, mostly Java), it feels like they are skipping and jumping through contents too much. Is there another website to be recommended so that I can teach myself C?

    char *pvowels = (char *) malloc(n * sizeof(char));

    Like that line, I have no idea why there are so many *'s, which I am guessing refers to a memory location. Also, I don't get why there are ( ) around char *.

    int n = 5;

    char *pvowels = (char *) malloc(n * sizeof(char));

    int i;

    pvowels[0] = 'A';

    pvowels[1] = 'E';

    *(pvowels + 2) = 'I';

    pvowels[3] = 'O';

    *(pvowels + 4) = 'U';

    char *pvowels seems to be a string value, which saves a letter per array unit. Not sure what (char *) does. malloc(n * sizeof(char)) allocates memory space to pvowels right?

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

    What after c++ beginner course ?

    Posted: 26 Mar 2019 02:17 AM PDT

    What should I proceed in Computer Science courses with as I am a undergraduate student pursuing Electronics and Instrumentation as my Major in BITS Hyderabad.

    Interested in CSS,HTML & JavaScript.

    Aiming for an Internship in Google and Post Graduation In Computer Science field.

    First Year In College.

    Can spend 6-7 hours a week.

    Primary Concern : What to do next ( I'm only a beginner)

    Basically done with CBSE Class XII CS Portion.

    I am done with following skills using C++ and MySQL:

    1. Intro to OOP
    2. Working with Classes
    3. Inheritance
    4. Array ( Sorting,Searching, 2D array )
    5. File Handling
    6. Pointers
    7. Data Structures ( Linked list , Static and Dynamic STACK , Static and Dynamic QUEUE)
    8. SQL

    SQL COMMANDS: CREATE TABLE, DROP TABLE, ALTER TABLE, UPDATE ….SET…., INSERT, DELETE; SELECT,DISTINCT, FROM, WHERE, IN, BETWEEN, GROUP BY, HAVING, ORDER BY;

    SQL functions: SUM ( ), AVG ( ), COUNT ( ), MAX ( ) AND MIN ( ); Obtaining results (SELECT query) from 2 tablesusing equi-join, Cartesian product and Union .

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

    Ifstream not working correctly? C++

    Posted: 26 Mar 2019 09:01 PM PDT

    This is such a rudimentary concept; but for some reason regardless of what I type in, it will not give me anything. Maybe I'm a bit rusty. I've looked up the documentation; but I must be missing something.

    #include<fstream> . . . std::string x; std::ifstream myIn; //char stuff[20]; myIn.open("stuff.dat"); //myIn.getline(x); //myIn >> stuff[0]; myIn >> x; //std::getline(myIn, x); std::cout << x << "\n"; . . . 

    All of the commented things are just random things I have tried that still do not work? What am I doing wrong. The file I believe is named correctly and is in the correct folder. The file has words as well as numbers spaced between each one.

    EDIT: I fixed the issue; apparently the file was named "stuff.dat.txt ". How come when I save a notepad file as stuff.dat it doesn't convert to .dat instead of .txt?

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

    Does anyone have experience with LaunchSchool?

    Posted: 26 Mar 2019 04:42 PM PDT

    I stumbled across their site a few days ago and I'm really intrigued by their program. I'm about to graduate college and I'm looking at options for getting into a career in software development. I really like their long-term approach as I don't immediately need a job and I'm looking for something I can spend a year or two on something if it means learning things the right way. If people know of other longer-term online programs (at least a year) I'd be interested to hear about those as well. Thanks in advance!

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

    ELIPHD: How does web assembly work? Say I've got some c++ module, what happens to that when I compile it to .wasm, then how is that loaded in a browser and ran on the client? That also may not even be how it works so correct me if I'm wrong

    Posted: 26 Mar 2019 04:36 PM PDT

    I've done some research and haven't been able to find specifics anywhere but maybe I'm dumb and bad at googling, feel free to just link and say "read this" and thank you!!

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

    Learn a new language without relearning basics?

    Posted: 26 Mar 2019 08:06 PM PDT

    I have used Swift for 4 years and Java for 1. I am finishing up my first year in college.

    I want to learn C this summer without relearning the basics while still covering new oddities/behaviors of C (especially pointers).

    How do most (experienced) programmers go about learning new languages? E.g. transfer existing skills instead of relearning the core concepts.

    I usually prefer NOT to do video courses.

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

    In relation to http/server interactions, what is an "origin constraint"?

    Posted: 26 Mar 2019 07:30 PM PDT

    I've already searched online and I'm not seeing a clear definition.

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

    No comments:

    Post a Comment