• Breaking News

    Monday, November 12, 2018

    Any self-taught programmers here? learn programming

    Any self-taught programmers here? learn programming


    Any self-taught programmers here?

    Posted: 11 Nov 2018 01:29 PM PST

    I'm a biochem/math major in college, but am trying to teach myself python. Are there any of you here who have had success in teaching yourselves?

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

    [BEGINNER TUTORIAL] Build your own custom real-time object classifier

    Posted: 11 Nov 2018 10:14 PM PST

    Step-by-step beginners tutorial on building a real-time object classifier for any custom object of your choice.

    https://medium.com/@chuanenlin/tutorial-build-an-object-detection-system-using-yolo-9a930513643a

    Feel free to check it out and kindly smash the clap button if you found it useful!

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

    Best resources to learn Data Structures/Algorithms for c++?

    Posted: 11 Nov 2018 08:25 PM PST

    Hey guys, I'm a high school student looking to improve my programming skills. I'm trying to study for a programming contest, and I think my knowledge of data structures and algorithms is quite lackluster. I've been looking all around the place for something (Don't mind paying a little bit if it's really worth it) to take me from a beginner's knowledge of the topic to a solid understanding of them. I was also wondering if it's worth sitting down and learning a lot of theory or just trying to get into questions and learning the concepts as I go along and get stuck on questions. Thanks!

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

    how to become "intermediate"?

    Posted: 11 Nov 2018 04:40 PM PST

    I have learned attitudes such as variable loops or file handling. I do not know what to do next. There are plenty of resources for beginners but very few for people who already know something. my language is python, which is quite universal, so I do not know what I can do with it.

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

    How can I think of a port? Why does each process use just one port?

    Posted: 11 Nov 2018 05:31 PM PST

    I'm taking a super interesting networks class and trying to dive deep into the material. We built a DNS proxy that sends requests upstream to Google's DNS resolver, and used python sockets library to do so. We implemented both TCP and UDP versions, and I understand each to be an end to end connection (likely a short one for DNS query/responses).

    My question here is, all queries get directed to port 53 on whichever server is handling it, b/c it's standard port for DNS. Isn't this ineffective? I think of each port on a server as one "bay" the machine can receive and process traffic on - don't google's machines get all clogged up when they're getting millions of requests sent to one port, and all traffic going into and out of just one (of the thousands available)? Wouldn't it be way more effective/efficient to use as many ports as possible on a machine dedicated to handling DNS queries (or FTP or HTTP/whatever)? Or am I thinking of a port/socket incorrectly?

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

    [Android][Kotlin] How to make loop iterate after interval

    Posted: 11 Nov 2018 10:26 PM PST

    this is what i'm doing but ain't working loop runs in instant

    private fun startQuiz() {

    for (i in 0..3){
    if(i==3){
    start.toggleVisibility()
    l1.toggleVisibility()
    l2.toggleVisibility()
    question.toggleVisibility()
    break
    }
    else{
    start.text = (3-i).toString()
    }
    Handler().postDelayed({
    }, 1000)

    }

    }

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

    Coding language for stock trading/stock analysis

    Posted: 11 Nov 2018 02:52 PM PST

    I'd like to get into coding to help me analyze stocks. I've heard python is good for that. Any thoughts? Also, has anyone done any programming relating to the stock market?

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

    What are some things you can do with C that you can’t do with Java, Python, Ruby, or C++?

    Posted: 11 Nov 2018 09:59 PM PST

    In terms of developing applications, embedded systems, robotics, computer vision/machine learning, or anything else you can think of.

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

    Use RegEx to search range of number [x-y] where x and y are determined via input

    Posted: 11 Nov 2018 07:40 PM PST

    Hey Guys,

    Trying to design a regex in Java that will do something similar to the following."User selects starting point, x = 3, and the amount of numbers to reserve (1000), y = x + 1000.I want to then create a string for a LIKE DB search that will search for any value existing in the DB that is within this range to determine a match (3 - 1003)."

    I understand ranges work differently in regex, but wasn't sure if anyone knew of a good way to leverage greater than | less than logic in regex. OR a nifty way of have a range be generated off of user input that is mildly inconsistent.

    Thanks!

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

    Are you having your job cloud and distributed computing related skills? How did you go about learning the skills, getting hired and further strengthening your job skills?

    Posted: 11 Nov 2018 06:45 PM PST

    Career in job cloud and distribute computing seems to be an apt career choice. How did you go about learning the relevant skills, developed skills and pursuing the career to stay relevant and strike a higher salary?

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

    I am a python beginner who is planning to take CS for undergrad in the states.Please help me!!!

    Posted: 11 Nov 2018 08:50 PM PST

    I am currently enrolled in the Udemy zero to hero python course.I will be completing this course by this month.

    I will try to complete the python mega course by February.

    I will be having 5 month break for the summer because I am an international student.

    Can you guys please advise me how and what to study during the 5 month break.

    This includes any books,websites,courses,etc

    If possible provide a step to step instruction of what I should study during these 5 months:

    (March,April,May,June,July 2019)

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

    Why would someone build their own interpreter?

    Posted: 11 Nov 2018 08:47 PM PST

    just started my internship, they asked if i can develop an interpreter. I really don't know how, though I'm more curios to know why.

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

    Question About Chrome Dev Tools

    Posted: 11 Nov 2018 06:05 PM PST

    I've asked this question over at r/webdev but got upvotes and no responses. So I thought I may post the question here.

    Here is the link to the question: https://www.reddit.com/r/webdev/comments/9vxx8b/chrome_dev_tools_snippets_section_question/

    Question:

    I've created a lot of snippets in the Chrome Dev Tools, however, I cannot figure out where Chrome stores the snippets in the directory or how to mass export.

    I'm learning JS and programming in general and only a week in and I have searched for a way in google, but only found code instead of something built into Chrome.

    If someone has experience with exporting snippets please guide me to the right path.

    ***

    I've searched google and no where can I find a way to mass export/save my snippets. I have to save them one by one, which can be tedious.

    The only thing close to it I found was - https://stackoverflow.com/questions/19025718/which-file-does-snippets-of-chrome-dev-tool-saved-at

    If mass export isn't possible, where on the file system are these snippets located? I'm on Ubuntu 18.4

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

    Baby question on first Java project-- why is the result different on multiple loops?

    Posted: 11 Nov 2018 03:12 PM PST

    Hey, first post here and just picked up my first code book literally 2 days ago so sorry if anything is terrible, including my knowledge of what things should be called.

    import java.util.Scanner; public class MadLibs { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String playAgain = ""; do { System.out.println("Pick a COLOR."); String color = scan.nextLine(); System.out.println("Pick a PAST TENSE VERB."); String pastTenseVerb = scan.nextLine(); System.out.println("Pick an ADJECTIVE."); String adjective = scan.nextLine(); System.out.println("Pick a NOUN."); String noun = scan.nextLine(); System.out.println("The " + color + " dragon " + pastTenseVerb + " on the " + adjective + " " + noun + "."); System.out.println("Would you like to play again? (y/n)"); playAgain = scan.next(); } while (playAgain.equalsIgnoreCase("y")); System.out.println("Okay, thanks for playing!"); scan.close(); } } 

    The intent of the loop was to be able to do this simple mad libs sentence over and over. The first time you enter the color/verb/etc, it functions as expected; hitting enter brings up the next prompt. Once all 4 are entered, it makes a sentence.

    But if you hit 'y' when asked if you want to play again, it spits out the first two prompts "Pick a COLOR" and "Pick a PAST TENSE VERB" on the same line one after the other and doesn't give the option to input the color; the next input is used for the verb spot.

    Why is it doing this, and why only on the second (and beyond) loops?

    (Side note, yes this is from the Chapter 2 "bonus" project from Bryson Payne's "Learn Java the Easy Way" from the humble bundle that was recommended here a few weeks back. Thanks to whoever posted that!)

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

    Is it a problem if i just go straight to wordpress with barely knowing that much HTML?

    Posted: 11 Nov 2018 11:27 PM PST

    My first immediate goal is to set up a site that makes people aware of the challenges people go through who are hard of hearing. Would you advise I continue to learn code or should I just go ahead and make a site through wordpress. I am currently unemployed so I am hoping ultimately to start to at least make this into a side income job, nothing major of course but I do need some motivation.

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

    Is there a zyBooks equivalent for learning C#/Unity?

    Posted: 11 Nov 2018 07:18 PM PST

    Hi,

    I'm taking classes to learn Python, and I've found the online textbook we use (zyBooks) to be extremely useful (all of the learning is done through the textbook because the lectures are entirely useless). The only other coding-learning I've done prior to this class was through codecademy with html and maybe a few other minor things. Now that I have had a taste of zyBooks, I can't see myself ever wanting to use anything less to learn coding.

    Unfortunately, I don't think zyBooks teaches C#. I was wondering if there is an equivalent online textbook for C# that exists.

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

    [Python] TCP socket programming with multiple clients, connection eventually dropped

    Posted: 11 Nov 2018 03:30 PM PST

    We have 4 clients sending TCP packets very frequently (5-10 per second avg) to 1 server. They send, send, send, but eventually the server no longer receives the data. It's tough to isolate whether this is a socket problem or a problem somewhere else, the issue takes a long time to reproduce.

    The (simplified) setup is like:

    Client-side:

    while True: try: data = Data() s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((IP, PORT)) # IP and PORT are the same across all clients s.send("{}".format(data)) s.close() except: pass 

    Server-side:

    class MyTCPHandler(SocketServer.BaseRequestHandler): def handle(self): self.data = self.request.recv(1024).strip() lock.acquire() if data not in list: list[data] = Data(data) list[data].update() lock.release() server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler) t = threading.Thread(target=server.serve_forever) t.daemon = True t.start() 

    Is there anything obviously wrong with this setup that would lead the client-server connection to end? Given enough time, anywhere from 5 minutes to 5 hours or more, all connections will eventually end (at different times for different clients). At that point we manually restart the clients.

    The goal here is to have a permanent multi-client to server connection established so data can be forever sent.

    Thanks for any help.

    Edit: Added note: "IP and PORT are the same across all clients"

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

    Should i learn Rust or Go first( jobs wise )?

    Posted: 11 Nov 2018 10:31 PM PST

    I am in the search of finding a "language of the future" to learn,and it has to be one of these two,but i dont know which to start with first.

    From what i gather,Go is destined to be the next "fad" language after Ruby/Rails and currently Javascript frameworks for Web Dev,except it is actually good,concise syntax,compiled,not interpreted,concurrency support,lots of libraries,it seems like it is the Java of the future,but without the overdoing of object-oriented behaviour and pointless verbosity of Java.

    Now on the other hand Rust seems to be the same as Go but with less "stability" and less libraries,but much more interesting uses,like i have seen projects on Github about making OSes using Rust(apart from famous ones like Redox),using Rust to write firmware for microcontrollers etc,and I personally find low-level programming much more interesting than any kind of WebDev( i am currently trying to get some projects up using the MEAN stack just to get a decent job ).

    So what should i learn first? Which language's demand in the job market will explode in the coming years

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

    Question about .exe files

    Posted: 11 Nov 2018 06:38 PM PST

    So I just made a basic quiz game with Python, converted it to a .exe file,and exported it to my personal discord. It works, but windows keeps giving whoevers opening it a bunch of messages saying that the file isn't safe. Is there a way to secure it so they don't have to be all the security alerts? I couldn't find anything on chrome

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

    Gameplay programming?

    Posted: 11 Nov 2018 09:32 PM PST

    So, I'm 100% completely new to anything & everything related to programming. But, I've done some research, and gameplay programming seems really cool. I like the thought of implementing controls from the player, to the characters in-game. I'm on square one right now, so, where should I go from here? What is expected of me? What should I know/learn? HOW to know/learn? I just need guidance. Please and thank you.

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

    Need help identifying time complexities for given functions

    Posted: 11 Nov 2018 09:18 PM PST

    Hey I wrote down what I think the time complexities are for the functions below as comments but if someone can correct me if I'm wrong please do so! Trying to learn from an online resource but don't have access to the answers

     var a = function(array, targetElement) { var minIndex = 0; var maxIndex = array.length - 1; var currentIndex; var currentElement; while (minIndex <= maxIndex) { currentIndex = Math.floor((minIndex + maxIndex) / 2); currentElement = array[currentIndex]; if (currentElement < targetElement) { minIndex = currentIndex + 1; } else if (currentElement > targetElement) { maxIndex = currentIndex - 1; } else { return currentIndex; } } return -1; }; //Time Complexity: linear because while loop is similar to a for loop iteration so it won't stop until mixIndex <= maxIndex //////////////////////////////////////////////////////////////////////////////////////////////// var b = function(string) { var tracker = {}; var result = []; for (var i = 0; i < string.length; i++) { var letter = string[i]; tracker[letter] = tracker[letter] || 0; if (tracker[letter] === 1) { result.push(letter); } tracker[letter] += 1; } return result; }; //Time Complexity: linear because for loop is iterating through a string and everything done within the loop is constant time /////////////////////////////////////////////////////////////////////////////////////////////// var c = function(array) { for (var i = 0; i < array.length; i++) { var item = array[i]; if (array.slice(i + 1).indexOf(item) !== -1) { return true; } } return false; }; //Time Complexity: Quadratic because indexOf and the for loop are nested within one another and so it is n*n /////////////////////////////////////////////////////////////////////////////////////////////// var d = function(array) { var numberOfElementsToRemove = 3; while (numberOfElementsToRemove-- > 0) { array.pop(); } }; //Time complexity: linear because the time it takes for function to run is proportional to size of array //////////////////////////////////////////////////////////////////////////////////////////// var e = function(number) { for (var i = 1; i < number; i = i * 2) { console.log(i); } }; //Time complexity: Logarithmic //////////////////////////////////////////////////////////////////////////////////////////// var f = function(array) { array.forEach(function(item) { for (var i = 1; i < 10; i++) { console.log(item + i); } }); }; //Time complexity: quadratic because it's a nested double for loop so it's n*n 

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

    Best python IDE?

    Posted: 11 Nov 2018 05:01 PM PST

    What are the best IDEs for python programming? Good debugger, intuitive, nice layout, etc. I currently have Atom.

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

    Difference between MOOCs and OCW

    Posted: 11 Nov 2018 08:42 PM PST

    I'm trying to self learn some cs and I was just wondering what the difference between the two are suppose to be. I've already read that OCW is more of an archive of how classes are ran rather than a learning resource, but I really don't see how it's much different than something like edx or coursera.

    For example, I want to start learning more about probability so I've been looking into some courses. edx has an intro to probability, but I found that there's a class with the same name on ocw. Which should I take, what would be the pros and cons of each?

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

    Senior dev wants me to use Visual Studio 10 Premium

    Posted: 11 Nov 2018 08:25 PM PST

    Hello everyone!

    I have started learning software, but thanks to my work, I was sent on a business trip to our software company.

    I love working with these people, but I do have a question. The senior software dev that I will be working with wants me to download VS 10 premium version that the rest of the office uses. I thought I would be using the latest VS 17, and for myself personally, if I am going to continue learning software, I want to use the latest IDE. Is that a wrong mindset? Is not newer the better?

    What are some key differences or significant differences that I should expect from VS 10 and VS 17? Or what about this premium version? Can I do everything on VS 17 community version?

    Thank you everyone :)

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

    No comments:

    Post a Comment