VPN software?

Learn Programming - Thu, 11/15/2018 - 17:07

Ok I want to make a program like this so when I hit connect it’ll connect to a specific VPN connection? I just need the button code, idk how to do that

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

Beginner Questions on Web Development (Odin Project, career outlook, perfectionism)

Learn Programming - Thu, 11/15/2018 - 17:06

Hello, my name's aromaticcomfort and I began coding in the last 3 months or so. I took Codecademy's free HTML course at the beginning of that time frame and a little bit of their CSS and Javascript courses and then stopped until the past couple of weeks because I was a little overwhelmed and not sure if I wanted to put in the time to master it. I'm currently in an unstable financial position with no college degree and I don't really want to take in all of the time and debt that a degree would take at this point so I'm heavily leaning towards committing to coding and seeing if I can get a decent paying job that way within a year or so. I've been recovering from various addictions, mental illnesses, etc... over the last few years and have been slowly reteaching myself how to learn and think logically. I think my brain is finally clear enough to where I can learn at a fairly efficient pace again and enjoy the process of it as well.

I recently stumbled upon the Odin Project a few weeks ago and the structure and guidance involved is very appealing to a beginner like myself. I am currently on the Web Dev 101 course and on the first HTML/CSS project which involves recreating the Google homepage's layout. I thought I would have no problem with it at first but it's taking me quite a long time to complete it. Writing the HTML is pretty easy for me but the CSS is taking me a lot longer to write out and connect all of the different commands together.

Here are a couple of specific questions that I have if anybody could answer any of these:

  1. Would it be a realistic goal to be able to attain a Junior Developer job within the next 6-12 months if I stick to the Odin Project and also pursue my own projects when I gain a decent grasp on the various languages? I am very determined to reach this goal and I am currently working an overnight job that I could devote about 3-5 hours towards coding almost every night for. From what I've read on the internet, this is entirely feasible although it would be harder due to my lack of relevant experience and a college degree. I really just want to make at least $40k per year so I can actually support myself financially and that seems to be a very conservative estimate for a Junior Web Developer position although my lack of education might impact that

  1. Should I spend extra time "mastering" each language or is it a better idea to get a general understanding of one topic and then move on to the next one? For example, I'm currently working on the Google homepage on the Odin Project. I can get everything looking pretty nice with my current knowledge and skill level but there's a few specifics that I'm struggling with. When I use pixels and percentages to line up all of the elements I can get it looking alright in the browser size that I'm working at but then I change to full screen and everything is way out of place. I think using em's might help with that but don't really know. So is it smarter to keep working on that until I can comfortably make a "perfect" version or just move on to the next concept. From what I've read, bootstrap and flexbox seem to be more efficient ways of doing similar things. I also am getting rather confused at implementing the sprites that Google has in the upper right corner of their homepage like the "apps" and "notification" icons. Don't get me wrong, I'm really loving learning new tools in CSS but I'm really committed to getting a decent-paying job in the most efficient manner at this point and I'm worried that my perfectionism might be holding me back.

I'm having a ton of fun with coding and I wish I would've started years ago, I've almost completely cut out videogames and replaced them with coding. I get a similar dopamine rush which is pretty cool and makes it a lot easier to stick with. At the same time, it is very exhausting and takes a lot of concentration and energy to stay focused sometimes. While I really enjoy coding compared to most "work," I'm really missing being able to use my finite time and energy levels towards my passion projects like philosophy, music production, teaching myself maths and sciences, as well as other things that take up a lot of time and energy. All in all, I think programming is my most realistic shot at obtaining a solid career that I would enjoy and the community seems pretty helpful as a whole which is pretty cool.

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

! (Logical NOT operator) - How would you explain this to someone?

Learn Programming - Thu, 11/15/2018 - 16:53

! operator inverts something, if something is true it makes it false and vice versa. But how to explain when its in if statement var a = true; if(!a){ print("Its true!") }

I like to read this like, because it really understandable to me:

if(a == false){ print("Its true!") }

Or in other words:

Is it true that a is equal to false OR is it true that a is false, because if it is, print this.

I saw somewhere on stackoverflow this, and I immediately took this and learned it that way: !a is same as a == false

So I am asking all of you good people, is this true or correct way of understanding the ! operator?

Thank You!

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


Learn Programming - Thu, 11/15/2018 - 16:52

We have been learning about Binary Search Trees in the last few weeks. I am trying to figure out how exactly I would create a method that would print the tree off backwards in Java. Does anyone have anything I can read to help? or any direction? or pseudocode I can look at and try to figure out from there? Any help at all would be great

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

XCode on Windows?

Learn Programming - Thu, 11/15/2018 - 16:44

I've been taking a course on IOS Development in college, and I want to keep writing in and learn more about Swift. However, from my knowledge, XCode is only usable on Macs and systems using MacOS, and I have a Dell laptop. I did the course through renting a Macbook from my school, but I don't want to check it out every two weeks. Does anyone know how I can use XCode on a Windows computer without buying a new laptop?

(I know Black Friday is coming up, but I'm still a broke college student, and I don't want to have a separate computer just for app development)

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

Anyone self taught that meets up in the OC, in California

Learn Programming - Thu, 11/15/2018 - 16:38

I’m switching careers and really interested in coding and want to go into front-end. I’ve been doing some self taught stuff in html, css, and JavaScript. I wanted to see if there was other beginners out here in the OC who get together and kinda do passion projects to build their portfolio and teach other new things and stay on track on this programming path. Let me know. Or even online groups would be cool too :)

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

Homework Help Pls? Im really stuck C++ Bubble Sort and Selection Sort

Learn Programming - Thu, 11/15/2018 - 16:24

Ok I'm currently in cs 101 at a community college and the professor has made it into a self learning course which has not been much help for major of the class. I'm really stuck on this c++ homework and I cannot find proper answers or guides on the internet any help will be deeply appreciated.

The Homework Question is this prompt:

Randomly generate a large array of ints (10000).

Compare sorting time (us) between

bubble sort,

selection sort,

std::sort using timers

 use std::vector to store the data

 run the program 3 times and produce a

table that shows the total processing for

each algorithm (in ms or s)

I have been trying for a while I just cant get it all I have is a function that make a a random array

#include <iostream>

#include <ctime>

#include <cstdlib>

using namespace std;

int randomArrayGenerator ()


int temp;

int arraySize;

cout << "What is the desired Integer Size?" << endl;

cin >> arraySize;

int arr[arraySize];


for(int i=0; i<arraySize; i++){

arr[i] = (rand()%100)+1;

cout << endl;

cout << arr[i] << endl;




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

Whining about The Odin Project

Learn Programming - Thu, 11/15/2018 - 15:52

Hi there:

I'm in the middle of the Ruby section of the Odin Project. This will come off as a bunch of excuses, which is exactly what it is, but I'd love some perspective on why I should actually suck it up and do some of these projects.

In the Data Structures section, there was a section on linked lists, which don't exist in Ruby. But I learned to sort of approximate them. A little skeptical about this project but OK.

I'm currently onto Binary Search Trees and building a tree from scratch given an array. Gotta be honest, it feels way too hard, but also not particularly useful, which has me wondering if it's actually worth spending my very limited time on. The next section is testing, and then databases, both of which seem obviously vital.

Then there's the dreaded chess project - now, I'm actually a chess fanatic and it would be fun to work on something like this, but I feel like it will take a huge amount of time that would be much better utilized on something more practical. It just feels, I don't know, inefficient?

Do I just need to suck it up, or does the Odin Project go a little overboard on some of this stuff?

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

How can I make an RGB LED cycle through colors with Arduino coding?

Learn Programming - Thu, 11/15/2018 - 15:51

I am working on a project for my engineering class in college. We are using the programming language Arduino. My professor didn't teach much about the programming language, and I am trying to get an RGB LED light strip to switch cycle through different colors over a set amount of time.

leds[1] = CRGB(0, 255, 0);;


leds[2] = CRGB(0, 0, 255);;


I got this code from a website that was using the Arduino language to have lights change color, but whenever I try to run that code, my light stays one color and does not cycle through the colors that I want it to.

Am I doing something wrong? Or is there an easier way to do that?

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

Intermediate programmer looking to pick up C++ or SQL

Learn Programming - Thu, 11/15/2018 - 15:44

Hey all.

I'm a masters Physics student (UK) looking to pick up another language, since most of the jobs I'm looking at are programming (mostly data analyst and engineering), and while they don't care about specific language I figured it'd be good to learn the basics of another.

I currently know Python to a pretty good level, as well as some rudimentary Fortran (primarily in the context of HPC), and would consider myself "decent" at programming since I use it a lot for my masters. Obviously this is primarily through the lens of physics, not CS.

I was thinking C++ or SQL would be a good shout, but the SQL course on codecademy seems really short and doesn't have a C++ one. What free courses/sites would you recommend for learning those languages?

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

Too much spoiled by my desk monitor, can't code comfortably on laptops

Learn Programming - Thu, 11/15/2018 - 15:42

As the title says, being used to program on my 24" monitor makes it cumbersome to adapt to a laptop when it's the only thing I can use. It's not even about the resolution, the problem is that on a 15" screen I can't see the same amount of information without considerably reducing the font size and it's not optimal.

I already use all sorts of cool and modern programming fonts but do you know which ones objectively look better at very small sizes? Any other tips about something I'm doing wrong when approaching this problem?

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

Anyone familiar with integrating SimpleSAMLphp with Drupal 8?

Drupal - Open Source Content Platform - Thu, 11/15/2018 - 15:42

I'm trying to put up our Company's SSO in front of our Drupal CMS. The end goal is to authenticate via our Company's system (which has high security and 2-Factor Auth, etc.), use the person's email to look up their Drupal account and login to Drupal with that account.

I've been reading through documents from Acquia, the SimpleSAMLphp site and other posts around the web, trying to reconcile some conflicting information. Here's what I have so far.

The Authentication System

For our Company's Authentication system (the remote IDP), I have:

  • I've installed the simplesamlphp_auth contrib module via composer
  • I've created a boilerplate config.php file. All this really specifies is the database connection for recording sessions.
  • Converting the XML from the IDP, I've created a metadata/saml20-idp-remote.php file. It specifies the sign on URL.
  • I've modified the authsources.php file to use the IDP I defined in metadata/saml20-idp-remote.php
  • I've configured/activated the simplesamlphp_auth module. I've enabled the option to "Automatically enable SAML authentication for existing users upon successful login". The unique identifier is the mail attribute from the IDP.
Current Behavior
  • On the /user/login page of the CMS, there is a link that goes out to the "Federated" Login (my company's authentication system.
  • I click there, enter my credentials, do my 2FA and all that works.
  • Once I get out of the my company's system I am redirected to the /admin/content page, which is configured on the IDP side.
  • I am NOT logged into Drupal :(

After stepping through some code, it seems as though the SimpleSAMLphp library does NOT think I am authenticated by the IDP and so it doesn't continue the logic flow any further.

Am I missing any other configuration files?

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

Machine learning

Learn Programming - Thu, 11/15/2018 - 15:38

Hi, i have 6 months of programming experience mostly in web development. I know technologies such as node js and react. I decided that I would like to learn something more challenging such as machine learning. Does anybody know any good online tutorials or articles to learn machine learning from scratch? Thanks in advance:)

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

How to create 3D visual animations with code?

Learn Programming - Thu, 11/15/2018 - 15:31

Hi, not sure if this is the right place to post this. I want to create high quality 3D geometric animations like those posted here:

Does anyone know if this is possible to do with coding instead of animation software, and if so could point me to what technologies I could use?

If not, do you know which software I could use?

Thank you so much!

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

Please give me advice

Learn Programming - Thu, 11/15/2018 - 15:30

Hi, I am 16 years old and have a little bit of programming experience. I love coding, I find it rewarding and fun, thats why I want to study CS, but before going to university, I really want to study on my own. The thing is that I don't know what I want to create, I started with making games, it was fun and all but I never got a game idea I wanted to make into reality. Then I started studying web development, this I found to be easy, but not enjoyable. I never had an idea for this one either. Then I started to think about making a program for a desktop or a mobile, but the only thing I could think of was making an AI chat bot that could learn, basically what I wanted turned out to be a little too hard to make so I stopped for a while.

Again I love programming, but thats when I know what to do. I want to code with a purpose, not just for learning purposes. To find out what I enjoyed I tried a lot of programming languages, I know little bit of everything, I just can't figure out what to do.

Other than creating something with purpose, I always dreamed of making some money out of it before I go to university. It's just somethi g I want to do to make parents proud you could say. I am not talking about a lot of money here, I work as a waiter in the summer when I want to buy something. Just want to make a program that could sell. Only after that I can call myself a programmer, or at least say that I can program. Its for self-confidence and motivation.

Please guide me if you've been in the same situation as I am. I really feel insecure about my skills since I've never made anything other than small games and programs for learning purposes.

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

[CSS] How to deal with easy-to-break designs and "perfectionism" about responsiveness?

Learn Programming - Thu, 11/15/2018 - 15:28

Hello, I'm building my first personal website and I have some "problems".

From popular devices, excluding some minor tweaks I should do and a few missing media queries, my website looks at least decent:

But when I manually resize the window from the devtools it takes nothing to break my website and look awful:

I feel like a design like this can be done in 2 ways: the good way, which I'm missing, and the one that will take you to write 1000 media queries to fix every aspect of your header for every size.

What do you do in cases like this? I'm relying on absolute positioning and translate to build these kind of designs, but I'm wondering if I'm doing something wrong. Am I being too "perfectionist" considering the improbable screen sizes where my website breaks (meaning that I only should care about the popular devices) or is it right to want a website look good at every size?


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