Programming

Podcasts that may humanize successful developers and tech leaders?

Learn Programming - Tue, 06/19/2018 - 19:09

I find myself discouraged by successful developers and tech CEOs, because I can't even imagine these people as beginners.

Are there any podcasts you could recommend that would help humanize them, their journey, or something else I'm not considering? Thx

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

Running multiple instances of a single-threaded program on few high clocked cores vs many low clocked cores.

Learn Programming - Tue, 06/19/2018 - 19:02

If I want to run 15 programs with each "using up" 1 GHz, would it be wiser to run them on an 8 core CPU clocked at 2 GHz, or a 4 Core CPU clocked at 4 GHz?

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

New to coding and programming.Looking for a good program to learn with.

Learn Programming - Tue, 06/19/2018 - 18:55

Hi there!I'm a freshman in college and I'm looking to get into computer science as my major but I'm currently looking for a good in depth program where i can learn enough coding languages to be able to do projects on websites like upwork instead of working the basic 9-5.Its college and every advantage makes graduating much easier.I'm trying to get to the point where i can do everything on my own because my parents are too poor to help me get my education.

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

Timeseries data from multiple rasp pi to mobile

Learn Programming - Tue, 06/19/2018 - 18:22

I have multiple timeseries data that are not being stored anywhere yet, but I would ultimately want those data to appear in an user mobile application. Currently the architecture I am thinking of is:

multiple rasp pi -> kafka cluster -> timeseries database <-> central Java backend <-> mobile application.

Am I going towards the right direction?

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

Tips for getting started in .NET?

Learn Programming - Tue, 06/19/2018 - 17:54

I'm getting started on .NET development for the first time, any tips or personal experiences anyone would care to share? I'll be developing specifically in ASP.NET MVC.

submitted by /u/93dsamson
[link] [comments]

Server Database Python

Learn Programming - Tue, 06/19/2018 - 17:47

I am familer with using SQlite with python to create a local database. But I am looking at creating a program that will have multiple logins, accessing the same database stored on a server, either on the network, or online. Possibly using a raspberry pie. How do I go about creating the database and connecting to it?

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

What are some interesting language features that may not be well known?

Learn Programming - Tue, 06/19/2018 - 17:18

One that comes to mind is Go's defer, which allows you to postpone the execution a function until the very end of the current function.

Another cool one is Python's while else (or for else) control flow. The else allows you to execute code if the loop exited without breaking.

List comprehensions in Python and Haskell (or any functional language) are also very interesting, although they're pretty well known.

This is a discussion thread, so discuss away!

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

Face Recognition at scale (1/N)

Programming - Tue, 06/19/2018 - 17:13
Categories: Programming

If I create a desktop application using python (PyQt5), do all computers that run it need to have python installed?

Learn Programming - Tue, 06/19/2018 - 16:59

As stated in the title. Lets use adobe reader for example. It's written in C++. How can I just "use" adobe reader as it's installed without having C++ on my computer? The reason I'm asking this is because I am an intern who has been tasked with creating a program for the less tech savvy at my internship and I wanted to use python and PyQt5, but they need to simply open it up like an .exe and do what they need to do and be done. Any input?

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

[Android] How do I prevent my app from crashing whenever it enters the background?

Learn Programming - Tue, 06/19/2018 - 16:53

(Using Android Studio)

My app runs fine, up until the point where I exit the app (not close it) and it ends up in the background. I get "Application has stopped" whenever this happens, and in Logcat i always get a NullPointerException.

Is there a way pause the app 'as is' on exit without crashing, then when the app resumes (user opens app from background), the app continues executing where it left off?

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

Ashamed to ask for homework help (C++)

Learn Programming - Tue, 06/19/2018 - 16:48

So I'm in an intro programming class for C++ and I've been working on this one homework problem for days now. It's due tonight and at this point I'm expecting to get a D at best. I know the reddit community is not really keen on helping with homework assignments, but I have been to the ends of google and back and I simply can't understand why my code won't work. I'll post a reply to this post with my current code that is sucking.
I can make code that does math and prints a result to the screen.

What I can't figure out, is how to cast doubles into floats and print those along with the double results.
Or how to combine it all into one loop, because I really need the extra credit.

Here's my assignment:

Write a program to calculate and print the result of the following two operations:

1/1 + 1/2 + 1/3 + 1/4 + 1/5 + ... + 1/99999999 + 1/100000000

and

1/100000000 + 1/99999999 + 1/99999998 + 1/99999997 + ... + 1/3 + 1/2 + 1/1

Results should be totaled and printed once using float variables for each calculation and once using double variables for each calculation.

There should be a total of four answers printed. Make sure that the answers are adequately labeled. You may use

any of the three loop mechanisms (while, do-while, or for).

EXTRA CREDIT #1:

Use only one loop in the program (10 points).

EXTRA CREDIT #2:

Write an explanation if any differences exist in your answers (20 points).

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

Faith in humanity restored

Programming - Tue, 06/19/2018 - 16:25
Categories: Programming

Out of work software engineer looking to add more to resume

Learn Programming - Tue, 06/19/2018 - 16:21

So I programmed in c#, vb.net, transact sql, xaml and xml for over 4 years. I'm trying to get back to work and some people( like my mom) are recommending that I need more languages on my resume but I don't know what to learn or if there is a reason to. The most popular language today is Java but that's because it's the object oriented language that all the college kids are learning right? Well when I was in college I learned C and C++. The very year I was leaving they were adding Java to the curriculum so I missed that whole boat. Nevertheless I got a job in c# anyway which is also an object-oriented programming language, so here I am thinking well if job is such a big deal but C sharp is similar do I really need to learn it and add it to my resume? Then I heard another big one is Python and people are saying oh it's so easy to learn and I'm thinking well if it's so easy to learn is it REALLY a good idea to put it on the resume too? And what about JavaScript will JavaScript isn't for Windows or mobile applications, it's for websites mostly, and I don't know if I'm going to be programming websites and I might just do applications again. And then there's a bunch of whole other languages out there to learn but I just I don't know what I need on my resume and quite frankly I don't know what kind of job to look for any more. Dot net is not as big as it used to be but it's still out there, I've always wanted to be a game developer but at the same time it's not a good idea as a sole career. I'm starting to feel like I'm going in circles.

Sorry if that's a wall of text. Maybe I rambled a bit. What do you guys think I should learn?

Thank you for helping me get back to work!

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

Switch/Case statements from MATLAB translated to Python if/elif

Learn Programming - Tue, 06/19/2018 - 16:17

I have the following code in MATLAB:

for i=1:2:(length(varargin)-1) switch upper(varargin{i}) case 'MM_ITERS' MMiters = varargin{i+1}; case 'SPHERIZE' spherize = varargin{i+1}; case 'MU' mu = varargin{i+1}; case 'LAMBDA' lambda = varargin{i+1}; case 'TOLF' tol_f = varargin{i+1}; case 'M0' M = varargin{i+1}; case 'VERBOSE' verbose = varargin{i+1}; otherwise % Hmmm, something wrong with the parameter string error(['Unrecognized option: ''' varargin{i} '''']); end; end; end

I understand that this is a variation of the if/elif statements for Python. However the part that is somewhat confusing is the switch statement at the start. MATLAB documentation states that "the switch block tests each case until one of the case expressions is true". Does that mean that switch acts most as a while loop instead of an if/elif loop?

If so, since I am attempting to translate this code into Python, should the translation treat this as an if/elif loop or a while loop?

Thanks!

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

Pages