• Breaking News

    Sunday, April 8, 2018

    Is there any good plain simple programming challenges list to improve coding skills? learn programming

    Is there any good plain simple programming challenges list to improve coding skills? learn programming


    Is there any good plain simple programming challenges list to improve coding skills?

    Posted: 07 Apr 2018 03:18 AM PDT

    Hi, Soon I finish my CS BSc and I want to improve my coding skills (algorithms, data structures, etc).

    I tried some sites but they want me to pay money, others are bloated like TopCoder and just to understand how to work with them I feel it would take too much time.

    I just want to solve problems.

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

    [C] what's the point in passing a const pointer to a function?

    Posted: 07 Apr 2018 05:47 PM PDT

    I heard that passing a pointer to a function allows the function to modify the variable so what's the point in passing a const pointer to a variable? why can't I just pass a regular variable or a non-constant pointer?

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

    Is Java a good language for back end web development? And is Spring a good framework for a career start?

    Posted: 07 Apr 2018 09:53 PM PDT

    Is Java a good language for back end web development? And is Spring a good framework for a career start?

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

    Where can I get programming exercises from??

    Posted: 07 Apr 2018 11:17 PM PDT

    I've been learning coding for the past months and the tools I've been using have been really helpful until this point. I am now trying to take my coding knowledge from being basic to literally creating something. I've thought of just creating a website but don't know what I'd put into it. So now I'm looking for either a software, website, books or even apps that gives me exercises to create and challenge myself to the next level. And please I do not want the basic create a form and save kinda thing. I want the create the whole website from beginning to end with help and tips when needed.

    Thanks in advance guys 🖐🏾

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

    Im taking the Fall 2016 MIT open courseware intro to computer science using python course Is this good?

    Posted: 07 Apr 2018 09:59 PM PDT

    I'm trying to see how the different fields of computer science are so i choose which I like best and so I want to take the college courses to have a feel of all of them.

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

    Exception throw (ntdll.dll) for C program. Any help appreciated!

    Posted: 07 Apr 2018 06:30 PM PDT

    Hi! I am trying to write a program that that reads a file and puts the numbers into an array, but I am getting a Access Violation error.

    Here is my code:

    #include <stdio.h> #define SIZE 10 #define _CRT_SECURE_NO_WARNINGS main() { FILE* ptr; int number[SIZE]; int count = 0; int test; ptr = fopen("numbers.txt", "r"); if (ptr == NULL) { printf("Error file not open\n"); system("pause"); exit(-1); } // end if printf("OPEN\n"); while (fscanf(ptr, "%i", &number[count]) != EOF) { printf("The value = %i\n", number[count]); count++; }// end while // YOU WORK HERE fclose(ptr); system("pause"); 

    This is the entire error message: Exception thrown at 0x76F9A225 (ntdll.dll) in input.exe: 0xC0000005: Access violation writing location 0x00000085. occurred

    Thank you for help in advanced!

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

    Code review: Making a factoring function more compact and concise(Python3)

    Posted: 07 Apr 2018 06:22 PM PDT

    So as an exercise, I am trying to make a simple function that takes an integer and returns all of it's factors as compact and concise as possible in tuple form. This is as simple as I could make it offhand and wonder if anyone here has a way to simplify it even further:

    def factors(num):
        factorList = []
        for n in range(1, num + 1):
            if num % n == 0:
                factorList.append(n)
        return tuple(factorList)

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

    What is the proper way to initialize anonymous(?) enums within a class.

    Posted: 07 Apr 2018 08:13 PM PDT

    class A { public: enum { STATE1, STATE2, STATE3, STATE_COUNT } state; double x = 0; double y = 0; A(int s) : state(s) {} }; int main() { A a(A::STATE1); } 

    I like the idea of using enums this way because it feels cleaner to me then the alternatives, but I don't know the proper way to initialize them from the constructor.

    I get this error:

    buff.cc:15:15: error: cannot initialize a member subobject of type 'enum (anonymous enum at buff.cc:5:4)' with an lvalue of type 'int' A(int s) : state(s) {} ^ 

    So what type should I use for the constructor argument?

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

    Why i can just can't learn JavaScript, after spending a year of it?

    Posted: 07 Apr 2018 11:52 PM PDT

    I have been struggling to learn JavaScript for a year. My head just can't warp around JS concepts.I could easily pick up Python and Django, but,because i am doing web apps, i am kinda cornered to learn JS by any means. And i just can't don't know, i tried every possible strategy to approach JS, just like i approach new things, and learn farily quickly, with more practice. While learning JS, i tried to practice every day for hours and hours and do some projects, and i struggle to wrap my head over JS.

    I am not sure why this did not happen with Python/Django, when i was studding them, and python is my first language to learn, without any previous experience in programming whatsoever.

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

    Translating code to GUI or an app (Java?)

    Posted: 07 Apr 2018 11:07 PM PDT

    I know basic coding and am trying to work on a side project (which is unbelievably difficult because I don't know how to start). But I just need to learn how to translate code to user interface. For example, If I wanted to make a simple Venmo I would create a person class and allow them to be able to receive, send, and view their money to other people. How would I do this with like buttons and stuff???

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

    What's the best place to review Java collections?

    Posted: 07 Apr 2018 07:19 PM PDT

    Hey programmers,

    So I have an exam coming up and its on Java, not really the language itself but the collections, stacks, queues, lists, trees .etc. I was looking for a quick way to review all the key things that I need to remember for each collection but couldn't find anything like that. Any suggestions on where to look or what to do? I really can't afford to screw this exam up.

    submitted by /u/Mr_Perry-Winkle
    [link] [comments]

    What are some good projects to learn web scraping?

    Posted: 07 Apr 2018 11:03 PM PDT

    I want to learn data scraping with python and packages like beautiful soup and scrapy. I have a basic idea about both libraries and now I want to try them out but I don't want to scrape any of the websites that forbid scraping in their terms of service. So, is anyone aware of a website, with a quite a bit of data, that I can scrape for fun?

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

    I'm sick of mental masturbation and get rich quick schemes. I Want to finally learn programming. Is my learn programming roadmap viable?

    Posted: 07 Apr 2018 11:36 AM PDT

    I'm sick and tired of the mental masturbation and get rich quick schemes I've been chasing for 5 years since I learned about blockchain. Don't get me wrong I love blockchain but now I want to focus on actually developing instead of just chasing blockchain tech without really understanding everything.

    So I have made the decision to learn programming I'm 21 and unemployed and I have a little money saved to depend on while I learn programming.

    I want to focus on learning crypto/blockchain tech and full stack javascript with most of the focus on back end. I plan on creating a crypto currency project and would like to have the skills to make it myself. During my whole learning process I'll be attempting to develop a blockchain/crypto application. During my learning process I'd also like to work on other organizations projects like bitcoin/ethereum/lisk contributing to there repos to better understand the technology.

    I'd like to learn the mean stack although I might replace angular with react.

    To learn javascript I will start by reading eloquent javascript, I think starting with this book is good because the 3rd edition just came out and it's not out of date.

    Once I'm done eloquent javascript and to do something more interactive which isn't a book I will start free code camp ( if you have a better course to learn javascript/mean stack please let me know.) I want a main focus on backend/nodejs. while I'm doing free code camp I'll read you don't know javascript because I heard it is really good for understanding the nuance of the language and understanding how to use javascript at its fullest. During down time or when I'm on the go I'll use the solo learn app to brush up on some skills, is the solo learn app worth it on just brushing up on basic skills when your on the go?

    Once I have a decent grasp on all that or maybe even during free code camp I'll look into electron and how it can be used to build apps on all platforms so whatever I build can be made once and is cross compatible.

    Then I will try to find some good recourse to learn cryptography/blockchain. I might do this earlier in the process I might actually do it right after eloquent javascript because I need to learn blockchain for the project I'm doing. I was looking into reading mastering bitcoin by Andreas but I heard it only shows how to do things in python and C. So will reading mastering bitcoin make no sense if I'm doing javascript? I'm finding it hard to find good blockchain learning resources since it's sounds. So if anyone can recommend a good recourse to learn cryptography/crypto and blockchain I'd really appreciate it.

    Once I get into a book and I like a concept I can read forever so if you have some good interesting books then please recommend them. My goal will be to learn programming for at a minimum 8 hours every day. If I get deep into it and I enjoy it I'll shoot for 10-12 hours. Following this timeline how long do you think it will take me to be decent at the skills I listed above where I would be able to build a decent application. Also if there is a way to focus on just nodejs for now and get proficient at that first I'd like to know.

    I want to focus mostly on backend but I still want some grasp of the front end because when I build my application I want to do most if not all of the back end. Then once it is functional I can either outsource the front end development, get a confounder to do it or raise money for my app based on the work done and then outsource the front end development.

    I'm focusing on backend because I feel like that's where the real money is at and I also feel like backend is where the real app development is. When you're doing backend I feel like that's the development of the apps actual functionality so I feel it would be more fulfilling to develop the back end. I feel front end is mostly just design, there is still definitely value in that so I will look to have an ok grasp on front end. I'll also be learning a bit of front end mostly so I can communicate properly with my front end developer on how I would like things to be done.

    I'm really interested in financial markets and think it would also be cool to do something like a high frequency trading implementation or a quant trading bot with nodejs. I hear wall street is looking for nodejs devs and since they're getting into crypto I think this would be something cool to know.

    One last question I have is if I get demotivated what is a good way to get myself motivated again to keep learning? Sorry if it was kind of long I'm just really excited that I'm finally taking the plunge to learn this. Thanks for reading this post if you have any suggestions or any critiques of my roadmap then please let me know. I would love to finally start to learn programming and I want to make sure I'm going about it the right way.

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

    How to make two widget in one window? python(Tkinter)

    Posted: 07 Apr 2018 06:52 PM PDT

    I wanna make a simple personal text editor in python. I want to add a console feature in it, specifically I want it to look like this [https://imgur.com/a/wQYH5] (with another Text widget below for command line). here's my current script:https://pastebin.com/S7wSXjHA

    How do I do that in python?

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

    [Java] need help understanding this method in an assignment

    Posted: 07 Apr 2018 10:19 PM PDT

    I have an assignment to make a spell checker with a binary tree, i am not sure what the load method does exactly. there is a file named dict_14.pre in the project explorer. does it mean i have to load it into an arraylist?

    https://gist.github.com/YoungCoconut/935664f67b278b671f9f92e7ee6171e0

    submitted by /u/4LokoInACobraClutch
    [link] [comments]

    Python 3 Batch files first attempt giving a vague 'Syntax Error' just about the Drive where file located

    Posted: 07 Apr 2018 06:21 PM PDT

    I'm making my first .bat file, in chapter 6 of Automate the Boring stuff.. The .bat is just 2 lines long. Here is the example given on the page:

    @py.exe C:\Python34\pw.py %*

    @pause

    However, my python installation and my folder with my .bat and .py is on my E drive, so I amended the filepath of his example to:

    @py.exe E:\HDD Programs\Python 3\MyPythonScripts\pw.py %*

    @pause

    When I try to save that as a .bat, it highlights the E of my filepath (where the file is) in red, and just gives me 'Syntax Error Invalid Syntax'. Is it because my windows and python are installled on separate drives they're having trouble interacting? I have googled as many variations on 'batch file python filepath syntax error' as I can, and I can't find any examples of such a simple-seeming problem. I am really struggling to understand how to work with these .bat files and proceed further, but I can't find any explanations to address my situation. I am on Windows 10 for my OS.

    Here is a screenshot of the line of code and the error. https://imgur.com/U5Oz2nN

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

    currently_playing not working when using the Spotipy library

    Posted: 07 Apr 2018 02:23 PM PDT

    I'm trying to access music that the user is currently playing using the spotipy Spotify python library.

     import json import spotipy import spotipy.util as util from spotipy.oauth2 import SpotifyClientCredentials cid = "xxx" csecret = "xxx" redirectURI = "xxx" username = "xxx" client_credentials_manager = SpotifyClientCredentials(client_id=cid, client_secret=csecret) sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager) scope = 'user-read-currently-playing' token = util.prompt_for_user_token(username, scope, cid, csecret, redirectURI) if token: sp = spotipy.Spotify(auth=token) else: print("Can't get token for", username) current_track = sp.current_user_playing_track() print(json.dumps(current_track, sort_keys=False, indent=4)) 

    I've also tried using sp.currently_playing(). I am able to access other data such as sp.current_user_saved_tracks(limit=3, offset=0). Using what I currently have, it always errors out saying AttributeError: 'Spotify' object has no attribute 'current_user_playing_track'. I've explored using node instead but I really would like to stick with python.

    submitted by /u/intherelike-swimwear
    [link] [comments]

    [C] Macro Functions?

    Posted: 07 Apr 2018 09:28 PM PDT

    New to C

    Trying to create a function that reads roughly like this:

    define IS_ABC(x) (

    (X == AB) || (X == BC) || (X == CD) )

    AB, BC and CD are #define'd further above in my program

    Error I get "Expected ')' before '==' token"

    New to C, help

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

    can someone show me what the backend of a website looks like ?

    Posted: 07 Apr 2018 08:35 PM PDT

    i only know wordpress, like there is a user interface and admin interface, but how about websites created from scratch, how do admins manage the content (for exemple a new article and so) if they are not developers ?

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

    Getting ready for internship, need suggestions

    Posted: 07 Apr 2018 08:23 PM PDT

    Recently accepted into an internship.. networking got me here.. but my coding skill lack. My biggest fear is walking through the door of the internship and not being able to code simple stuff so...

    I am trying to get better at Java, C#/.NET (never have seen C# in play).

    Any suggestions on what to grind? I have about a month and a half left.

    Thanks!

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

    First programming project

    Posted: 07 Apr 2018 08:19 PM PDT

    I have a project for work. I need to create a program for creating Windows batch files. I'm not exactly a programmer, but considering I will need something for this and Cisco CLI automating, I hear Python can do both?

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

    What are some of the best Udemy course(s) for learning front-end web development such as Java, HTML, and CSS?

    Posted: 07 Apr 2018 12:42 PM PDT

    There are tons of front-end courses available and I'm having a really hard time differentiating the bad from the good, hopefully one of you can help point me in the right direction. Thanks!

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

    Java file opening..Surround with try catch or throw exception?

    Posted: 07 Apr 2018 07:03 PM PDT

    I get an error in eclipse and it suggests me to do one or the other (I guess these are ways to protect myself if the file isn't existing). From what I understood, with try / catch.. the program will not stop running if I fail to open the file, but throws file not found or i/o (I forgot which one it autocompleted for me) just throws an exception and stops the program there. Is my understanding weak?

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

    [MySQL+SpringBoot]How do I handle pagination at the database as well as the business layer?

    Posted: 07 Apr 2018 06:24 PM PDT

    Lets say there's a MySQL query which takes around 20 seconds to execute returning a long list of rows. I send the exact data through my java application to the user.

    The thing is user isn't going to see all the data at once and that 20 seconds hold up to even see the first 10 rows puts them off. I googled around a little bit and the suggestion was to use pagination. But I don't know where or how to apply it?

    As per my understanding it has to happen somewhere on the database level so that the user doesn't wait and the data keeps getting fetched. But how will the db know to keep sending data and at what intervals. Putting this on application level will still be slow, isn't it?

    submitted by /u/ML-newb
    [link] [comments]

    No comments:

    Post a Comment