• Breaking News

    Tuesday, April 9, 2019

    Salary by developer type learn programming

    Salary by developer type learn programming


    Salary by developer type

    Posted: 09 Apr 2019 09:03 AM PDT

    List from the 2019 Stackoverflow Study (US only)

    • Engineering manager $152k
    • Engineer, site reliability $140k
    • DevOps specialist $122k
    • Data scientist or machine learning specialist $120k
    • Engineer, data $120k
    • Developer, back-end $116k
    • Developer, mobile $112k
    • Developer, embedded applications or devices $111k
    • Developer, desktop or enterprise applications $110k
    • Developer, full-stack $110k
    • Educator $110k
    • Scientist $110k
    • Database administrator $105k
    • System administrator $105k
    • Developer, front-end $103k
    • Developer, game or graphics $103k
    • Data or business analyst $100k
    • Developer, QA or test $99k
    • Designer $98k
    • Academic researcher $95k
    submitted by /u/rab_eye
    [link] [comments]

    Improve my problem solving skills

    Posted: 09 Apr 2019 05:05 AM PDT

    I have been for the past 5 months learning C# on my spare time, i understand the syntax, i know most of fundamentals and have somewhat decent grasp of core programming principles. How can i improve my problem solving skills? I have done some programming challenges in here reddit, coderbyte, and a few easier euler problems. I still hit a total brick wall many of the time when looking at the problem descriptions and dont know where to start(especially the intermediate/advanced level challenges). I dont have a technical background in terms of education, should i learn maths or stick to these coding challenges, or do a larger project or combination of all these things?

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

    Is anyone here an AI engineer without a degree?

    Posted: 09 Apr 2019 08:01 PM PDT

    Just wondering if it can be done. I dont have the mental capability nor the money to keep up with the pace of college. so id thought id start with front end development work my way up the charts (obviously learning the basics of AI from real college textbooks and the like AT MY OWN STUPID slow pace lol) through full stack engineering and eventually becoming an AI engineer.

    Now i think its unlikely. I never met anyone who has done this and the job posts are all keen on having only masters and phd... Sounds pretty unlikeley too me that it can happen, but i know that some one has done it and hopefully i can get a story of how they did it.

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

    Windows Cmd / Powershell: What's the difference between "run" and "run as administrator"

    Posted: 09 Apr 2019 07:58 PM PDT

    Lots of things that I try to do in Powershell (install packages, add/remove files, etc.) I get a permission denied error. However, if I "run as Administrator" then everything runs fine. Is this normal behavior? Considering that my user (myself) is an administrator, I guess I'm not understanding the difference between "run" and "run as administrator". Thanks in advance for any clarification!

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

    Is it possible to have a C++ and python program run simultaneously and have both of them communicate with each other?

    Posted: 09 Apr 2019 01:06 PM PDT

    I have written a simulator in C++. The simulator will grab images and send to a trained neural network. The neural network will be written in python and will give me an output which I then need to send back to the simulator in C++. I know that in C you can use pipes to communicate between programs but I am not sure if it will work with C++. In particular, I am really not sure how you can even smooth communication between two programs written in entirely different languages.

    Furthermore, in the long run, I am looking to deploy my C++ code on an embedded application. How can I then take advantage of neural networks which are only written in python?

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

    Help with python?

    Posted: 09 Apr 2019 11:14 PM PDT

    I am new to python and need some help with some code I am writing. Here is the code:

    or x in range(0, 40):

    f= open(str(a) + " Test.txt", "w+")

    for i in range(500):

    f.write("Test %d\r\n" % (i+1))

    f.close()

    a = a+1

    Have converted it to an executable but need admin privileges to make it work. How do I give an exec admin privileges on a mac?

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

    Setting Select Option in JavaScript

    Posted: 09 Apr 2019 10:25 PM PDT

    I have a piece of code that uses database info to populate the options in a select drop-down box

    function showDogSelect(){ var options = [];

    function callback(tx, results) { var select = document.getElementById("allDogs"); var id; var name; $("#allDogs").empty(); for(var i=0; i < results.rows.length; i++){ var row = results.rows[i]; console.info(i); var id = row['id']; var name = row['name']; var option = document.createElement("OPTION"); var txt = document.createTextNode(row['name']); option.appendChild(txt); option.value = row['id']; if(i == 0){ option.setAttribute('selected', true); } select.insertBefore(option, select.lastChild); } } Dog.selectAll(options, callback); 

    }

    I would like to make the first datapoint grabbed selected by default. My issue is that it is technically selected (option is highlighted when drop-down arrow is pressed, that data point is used when select list is left the way it is & the form is submitted) but its' corresponding text is not visible by default (select text area is just blank)

    I have tried code such as

    select.selectedIndex = 1; and select.selectedIndex = row['id'];

    But the text shown by default is still blank & hasn't changed, and the default selection disappears

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

    Need Help With Some Code in Python

    Posted: 09 Apr 2019 09:37 PM PDT

    I am new to python and working on a project involving text files (I am on Linux). I want to create multiple sets of text files and write in them with one function. Here is the code I am using;

    a = 1

    for x in range(0, 10):

    f= open(int(a), "Test.txt", "w+")

    for i in range(500):

    f.write("You are on line %d\r\n" % (i+1))

    a = a+1

    I am getting the error:

    f= open(int(a), "Test.txt", "w+")

    TypeError: coercing to Unicode: need string or buffer, int found

    Any help is appreciated! Thanks!

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

    C++ Linked lists

    Posted: 09 Apr 2019 05:46 PM PDT

    Hi, I had an school assignment due April 1, we got the results today and mine didn't compile on my professor test program, I spoke with him on class today and he allowed me to turn in again the project today to get half of the lost grade; but I really need help with this on my last 3 functions. I basically did everything I knew, but these last 3 functions are killing me, if someone are able to help I would really appreciate it! I uploaded everything on GitHub

    https://github.com/davidluky/LinkedList

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

    Using 2 relational operators simultaneously in C++?

    Posted: 09 Apr 2019 11:39 PM PDT

    For one of my homework assignments in my intro to C++ class, I was asked to create a program to output "grade is B" if the variable 'score is between 80 and 90. Else, output 'grade is not B'. So my question is, is there any way to do 2 relational operators at once?

    For example I thought about doing this;

    if(80 <= score <= 90){ 

    but that didn't work so I did

    if(score <= 90 && score >= 80){ 

    If there is any way to do it in the first way, please let me know! thanks

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

    [C#] how lazy is linq

    Posted: 09 Apr 2019 11:22 PM PDT

    is

    list.OfType<T>.FirstOrDefault(); 

    equivalent to

    T res; foreach (var item in list) { if (item is T t) { res = t; break; } } 

    or

    T res; List<T> anotherlist = new List<T>(); foreach (var item in list) { if (item is T t) anotherlist.Add(t); } res = anotherlist.Count == 0 ? null : anotherlist[0]; 
    submitted by /u/silentcon
    [link] [comments]

    Lightweight backend and database type for photography

    Posted: 09 Apr 2019 11:21 PM PDT

    Hello to everyone, I'm rebuilding an old photography site and I want to sharpen my skills a little.

    Pages are static but I have to build a dynamic gallery/portfolio on one of them and let the "client" (it's a patient friend) upload and apply some tags.

    I read that SQL databases are bad for managing photos (why?), what do you advice?

    And what's the best lightweight backend language for this? (keep in mind that I'm doing this to learn, so the more "mainstream" and used it is, the better).

    I hate PHP, if it can help.

    EDIT: I would very much like to stay away from CMS like wordpress!

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

    What determines the amount of loops in a simple program? (C++,for loops specifically)

    Posted: 09 Apr 2019 10:57 PM PDT

    I'm completely lost here. There seems to be a pattern in the amount of loops and a number program but i just can't figure it out.

    My midterm had this hard af question yet the answer is so easy after seeing it. The question was to write a program that prints a number with 3 unique digits and the digits are created from the numbers 1,2,3,4 so the output is 123,124,134,132,... Etc..

    The answer is to use three for loops i was like fine whatever until i showed the question to someone and he instantly said you had to use 3 loops like wtf how did he know.

    I always thought the hard part in programming was the Syntex and translating the code but i was wrong. The creativity is the hardest part imo. I respect programming a lot now.

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

    Re-designing a recursive algorithm to non-recursive

    Posted: 09 Apr 2019 10:31 PM PDT

    I'm working on a Leetcode problem that I'm a bit stuck on.

    The problem is to find all "valid" (matched) pairs of parenthesis given a number n. So for example given n = 2, thje output would be ()(), (()). I've gotten an algorithm working that is recursive, but struggle to make one that is not (which the problem asks for).

    My scratched out solution:

    def para_generate(str, n, l, r): if r < n: if r < l: para_generate(str+')', n, l, r+1) if l < n: para_generate(str+'(', n, l+1, r) else: print(str) 

    It's super simple and works. But when I try to translate it to a non-recursive function, I end up with problems. For example, doing something naive like:

    def para_generate(n): r = 0 l = 0 str = '' while r < n: if r < l: str+=')' r+=1 if l < n: str+='(' l+=1 else: print(str) 

    Just produces one of the possible combinations. Obviously the problem here is we need an additional test case to decide which if statement to follow. The recursive method just follows all possible branches, whereas the above only follows one. I suppose I could add a way of keeping track of past str values and add some sort of check after each if statement, but that would be terribly inefficient as well as. A bunch of different combinations of if and while could be placed in as well, but that only works for very low numbers n.

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

    Recommendations for programming bootcamps

    Posted: 09 Apr 2019 12:39 PM PDT

    I've been studying Java and Python now for about a year and two things became apparent to me the other day:

    1) I hate my job

    2) I enjoy the feeling I get when I struggle with a problem for hours on end and then finally solve it.

    This realization led to wanting to pursue programming as a profession, but I feel like a lot of beginner to career stories I see are people being overly modest about their abilities before starting programming. I've looked into a few local and national bootcamp programs and I see two major advantages to these.

    1) they present material in an organized way, which allows them to focus on the key concepts necessary to secure a job.

    2) they assume a good portion of the responsibility for helping you find a job after graduation.

    For the first, I see a lot of material out here (still working through 'Automate the Boring Stuff') but I don't know what I need to isolate to be able to have the skills necessary. I think having a guided learning experience would be beneficial. For the second, I'm concerned with spending several thousand dollars and then having the program bail on me in no better position than when I started.

    Has anyone on this sub done the bootcamp route? Which one did you use? Would you recommend it? Any input is welcome.

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

    Running a program in parallel using MPI

    Posted: 09 Apr 2019 10:19 PM PDT

    How would I distribute and run a python file (a game I made) on multiple GPU nodes using MPI? Any resources or videos I can look into?

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

    With so many interesting fields, how did you decide what field to stick with?

    Posted: 09 Apr 2019 03:40 PM PDT

    I have my masters degree in education. But I've really enjoyed all things programming so far. I picked it up for fun but really enjoy it and would like to maybe switch careers eventually.

    I like so many areas though, data science, software development, machine learning, mobile development, AI, ethical hacking, etc.

    For those of you that decided on a field and are happy with it, how did you make your decision?

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

    How to print arrays in a format? Link below on how the array should look like.

    Posted: 09 Apr 2019 09:19 PM PDT

    https://imgur.com/gallery/co7YBGU

    I tried System.out.print ("%5s", Array.toString(array)); but didn't work. It just printed in sets. And no idea how to \n. All 12 numbers belong to one array.

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

    Coding on online platform

    Posted: 09 Apr 2019 09:14 PM PDT

    From time to time I practice problem solving and algorithms on online coding platform. However on a couple of websites when I don't find a programming language that I'm comfortable with, I get disheartened and just stop solving them. This keeps me away from practising. Should I learn a new language for this purpose? I always find C, C++ and Java on all of these websites but I don't have an iota of interest in learning them. Although C and C++ are the languages that I started with, I find the structure of the syntax very difficult and non-intutive. What should I do? Swallow the hard truth and just learn them? I'm also interested in learning python. Have seen quite a few posts here and is market relevant as well. What do you think programming gurus?

    submitted by /u/therearenoname-_-
    [link] [comments]

    Is it possible for me to learn to code?

    Posted: 09 Apr 2019 10:53 AM PDT

    Everyday for the past few years i wanted to have a career in coding. Not exactly what i want to code, but i wish i could code things like Java, swift, and one i feel strongly about, python. I have books but never opened them. Now im 29 still with the same thoughts and disappointment of not doing it years ago. I cant go back to school and have to self teach because i work and need to keep a roof over my head. I loose motivation and have self doubt constantly but every morning i get upset with myself that i didn't open a book and start learning the night before.. I guess what im asking is, is it possible to still learn and find a career out there like ive been thinking about years ago. Is it too late? What do i have to do?

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

    what is the difference between 'typename' and 'class' in case of templates in C++?

    Posted: 09 Apr 2019 02:28 PM PDT

    #include<iostream> using namespace std; template<class T, class U> class A { `T x;` `U y;` public: `A() { cout<<"Constructor Called"<<endl; }` }; int main() { A<char, char> a; A<int, double> b; return 0; } 

    here we have used `class` instead of `typename` in line 4.
    what difference will it create if we use `typename` there?
    the ouput didnt change on changing it though.
    wanna know the conceptual difference.

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

    [C++] When trying to find a random number between a range of two numbers, how do I find a number bigger than MIN but less than MAX?

    Posted: 09 Apr 2019 08:21 PM PDT

    int MAX_VALUE = 50; int MIN_VALUE = 25; int randomNumber; randomNumber = rand()%(MAX_VALUE - MIN_VALUE + 1) + MIN_VALUE; 

    How do I find a random number 25 < x < 50? But doesn't touch 25 or 50? Stuck as hell and wondering if this is an easy algorithm many students can get at first glance.

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

    What is a good certified AngularJS course for a mid level programmer?

    Posted: 09 Apr 2019 03:46 PM PDT

    I don't know if this is allowed here but I'll try.

    I am looking to buy a course for a friend as a gift. He is a full stack developer with some expirience and he is interested in developing his skills further in AngularJS. What are your recommendations on some certified courses?

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

    Java program to find the average won't work with decimals

    Posted: 09 Apr 2019 07:31 PM PDT

    package problem.pkg36; import java.util.Scanner; public class Problem36 { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int n2 = 0; int n3 = 0; while(true){ int n1 = cin.nextInt(); n3++; if(n1 == -1) break; n2 = n2+n1; } double n4 = (n2/(n3-1)); System.out.println(n2); System.out.println("Average: " + (n4)); System.out.println("Number of inputs " + (n3 -1)); } } 

    I was using the integers 5,4,2 and was getting back 3.0. What is causing this?

    Also the way the program is structured you type -1 to break from the loop. Do compensate for this when I was writing the code to display the number of inputs I just put subtract 1 from n3 (n3 is the variable for the inputs.) Was this the best way to go about it?

    Thank You.

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

    No comments:

    Post a Comment