Start using github if you are a beginner in programming learn programming |
- Start using github if you are a beginner in programming
- What can python do that c++ can't or isn't well suited to?
- When writing a script, how do I handle the requested input from the package that is being installed?
- [C] A free ebook that talks about how to do OOP in C
- Starting a youtube series on python let me know what you think?
- Free IT tools for students with .edu mail
- Worried about my programming background
- Change LetsEncrypt certbot domain
- I made a post about coding tools I wish I had known about when I started and it was well received, here is part two.
- CS50 - Is CS education at US unis always this brilliant?
- [BLUEJ][JAVA]Has anyone compiled the BObject extension for BlueJ?
- Advanced C Books?
- A few questions regarding a calculator program in a C++ text-book.
- [Java] Nested classes, logical error
- Mount a drive, detect directory, and save files.
- Proving a poker program is correct
- Android using data from json
- Uncaught TypeError: element.addEventListener is not a function - Adding an event listener to multiple elements?
- Direction needed on systems design for a particular webapp
- I Want To make an IOS App/Game But I am new to this and have no idea to the first step in this process
- [c] I don't understand why I am getting an infinite do/while loop.
- why do I need to do x.length-2 in my for loop as a preface for my nums[i+2]
- I hear advice on being careful about "divitis", but after inspecting sites like Reddit, I'm confused about that advice.
- Having trouble running my project in eclipse
Start using github if you are a beginner in programming Posted: 25 Feb 2018 04:08 AM PST If you are a beginner there are many advantages of using git now:
Take a look at github and how to use git. https://youtu.be/IOUiaO-YGZM [link] [comments] |
What can python do that c++ can't or isn't well suited to? Posted: 25 Feb 2018 11:58 PM PST Pretty much all my experience in programming is in c++ and some web development outside of c++. I'm thinking about learning python just cause it seems like a skill that is expected of a lot of people rn and is especially sought after in more mathematical applications. But can someone give me a concrete well thought out comment about why python is better than c++ at statistical/data analytical applications? [link] [comments] |
When writing a script, how do I handle the requested input from the package that is being installed? Posted: 25 Feb 2018 11:16 PM PST So basically if I have a script that includes sudo apt-get RandomThing And then while its downloading and installing it asks, itll take X space do you want to continue? Will it allow the user to give input there or will it go to the script for the next line and use that as a response to the question. If it goes to the script, should I start off the script with ScriptToExecute.sh < 'yes' so that way the yes would be used as input for when the running script looks for it? [link] [comments] |
[C] A free ebook that talks about how to do OOP in C Posted: 25 Feb 2018 12:39 PM PST This is not C++, This is pure ANSI C (no classes, no objects, nada). It was an interesting read, even though I haven't gone through the whole thing yet [link] [comments] |
Starting a youtube series on python let me know what you think? Posted: 25 Feb 2018 07:57 PM PST |
Free IT tools for students with .edu mail Posted: 25 Feb 2018 11:49 AM PST Since I'm a student I'm searching for such tools. I can recommend JetBrains which gives you awesome IDEs for free! [link] [comments] |
Worried about my programming background Posted: 25 Feb 2018 07:21 PM PST Currently, I'm a 4th year student taking BS computer science. already in the process of my internship. Graduation is on may. And my mind is bugging me about what's gonna happen to me in the industry? would I even survive? I keep on doubting my self. First of all, I'm not really good at it, just an okay one. I didn't really excel in my high school and college. But one thing I can tell, I really liked programming even though its very frustrating at first. Java is my main programming language and here's what i just know about it. JAVA basics(variables,loops,conidtions,etc.), OOP concept(Inheritance,class,methods,constructor,etc.), access modifiers. I am just concerned that, I am not really exposed with hashtables,maps,list,APIs,Frameworks. Can I still catch up? I would appreciate some advises :) [link] [comments] |
Change LetsEncrypt certbot domain Posted: 25 Feb 2018 10:23 PM PST I'm running my Django application on Digital Ocean with Ubuntu 16.04/Nginx/Gunicorn. I issued a (SSL?) certificate by running the following command: however I now want to change my domain from or do I just change the current code and replace it with the new domain? E.g. my Nginx conf looks like this: I've already changed: to my new domain Advice appreciated. [link] [comments] |
Posted: 25 Feb 2018 08:04 AM PST Hello! A little over a week ago I made a post here pointing to an article I had written for freeCodeCamp. The original post can be found here. This post was generally well received and all of the responses from this community were awesome. I wanted to take those recommendations (many of which I have found extremely useful myself) and share them with the freeCodeCamp community. If you want a condensed version of the recommendations in the comments from the other post, here it is: Tools I wish I had known about when I started coding: Revisited.. I want to say thank you to this community for all that you do to help people learn how to program. I started on this subreddit and though I'm still very much a beginner I wouldn't be where I am without the community here. [link] [comments] |
CS50 - Is CS education at US unis always this brilliant? Posted: 26 Feb 2018 12:16 AM PST Hi all, it's become a bit of a meme outside of the US that Americans are 30k+ in debt after their undergrad degrees. Now it all makes sense. I'm currently working on the CS50 course on Edx, and I feel like I'm learning more in one course than during my first year of CS at a European uni. They created a custom cloud-IDE, the course is interactive, the instructor is a beast and even the lecture hall looks posh as shit. I'm wondering, is this representative of American colleges in general? My uni offers exchange programmes and I was considering just going to the UK or Finland for free, but if this is how CS is taught in the US, it might be worth it to spend some extra dough. I'm assuming quality differs depending on where in the US one studies, of course. Maybe people who have experienced both American and European unis can chime in. Cheers! [link] [comments] |
[BLUEJ][JAVA]Has anyone compiled the BObject extension for BlueJ? Posted: 25 Feb 2018 11:59 PM PST Hi, I am relatively new to java and blueJ and I am looking for a way to remove an object from the bench in blueJ (eg when a goal is complete that specific goal can be removed, keeping the GOAL parent class). So far the only way I have found is the BObject extension for blueJ, however after spending a couple of hours on the only page on how to install, i'm still lost and have tried quite a few ways. Is there anyone who has a compiled .jar that for the BObject extension? link to the extension page! [link] [comments] |
Posted: 25 Feb 2018 07:43 PM PST Hey all, does anyone know of any books using C (or C++ for that matter) teaching advanced C topics such as: concurrency, multithreading, networking, GUI programming (or graphics programming), etc.? Other topics can be inclusive, but I aspire for the book to be for someone who has enough C background (or other programming background) to be able to jump into the book with relative ease. Any and all suggestions (comments and corrections inclusive) are welcome. Thanks! [link] [comments] |
A few questions regarding a calculator program in a C++ text-book. Posted: 25 Feb 2018 11:25 PM PST I'm going through 'Programming Principals and Practice using C++' by Bjarne Stroustrup. And, in the first few chapters the book walks the reader through a the creation of a calculator program. In a nutshell, it utilizes a "grammar" for parsing of the input. ----------------------- The Grammar-------------------------------------- Expression: Term Expression "+" T erm // addition Expression "–" T erm // subtraction Term: Primary Term "*" Primary // multiplication Term "/" Primary // division Term "%" Primary // remainder (modulo) Primary: Number "(" Expression ")" // grouping Number: floating-point-literal And then this grammar is implemented using this program. One thing I don't understand is, how does the primary() function if it encounter '+' '-', '' etc. Since it doesn't has any way to deal with those. And since, both expression() and term() call upon primary(), then wouldn't the program just keep on returning errors whenever it encounters a token of 't.value = '+' , '-', '', '/' and so on...... Secondly, how is one supposed to run this program in Visual Studio 2017? From what I understand, one should include "std_lib_facilities.h" in the header files. I've done that (copied the file from online and saved it as "std_lib_facilities.h" in the program folder). It still returns errors like "cout not defined", "cin not defined", "error not defined" etc. [link] [comments] |
[Java] Nested classes, logical error Posted: 25 Feb 2018 11:19 PM PST Today I was trying out nested classes - I have some very simple code that won't execute properly for some reason. I added some .out.print lines to debug, and idk why but only the System.out.println("1") goes through. When debugging and stepping into the readFile method, it gets to the scanner assignment and then skips the entire rest of the method. WHy? public class Encouragement { public static class Reader { } public static void main(String[] args) { } } I'm going insane over here can someone help? [link] [comments] |
Mount a drive, detect directory, and save files. Posted: 25 Feb 2018 11:13 PM PST Hello all. I've spent all day wondering what I'm doing wrong, I have an imbedded system, and I'm trying to take a mess of pictures, and save them to a USB drive. I'm on Ubuntu using the built in compiler. So I have a drive, /dev/sda1, mounted @ /media/usb. In terminal, I CD into /media/usb, and mkdir test. ls just gives me test. In my code, when I do struct stat st, and stat("/media/usb/test", &st) I get -1, stat("media/usb" &st) gives me 0. What gives? I think I've made this harder on myself than I should have. What's the easiest way of mounting /dev/sda1, checking to see if test exists, if not, creating test, and then unmounting /dev/sda1, all in code, without root access? [link] [comments] |
Proving a poker program is correct Posted: 25 Feb 2018 10:14 PM PST Recently I wrote a little poker program that evaluates poker hands. I was thinking, if I developed an online poker game, I'd want to prove that my program was correct for all possibilities before opening for business, without evaluating every potential poker hand manually. How would you go about that? Would you do unit tests with a variety of hands that covers representative possibilities and call it good? For some reason, in this case that makes me feel nervous. [link] [comments] |
Posted: 25 Feb 2018 09:59 PM PST So I currently have all the json parsed and stored into objects. But the problem is every time I go to a different page I need an AsyncTask to load the json from scratch again. Is there anyway that I can just retrieve all the data from json on the first page of activity and use it in other activities? [link] [comments] |
Posted: 25 Feb 2018 09:29 PM PST Hey guys, So this is what is stumping me the most in vanilla JS right now. I learned a little bit a jQuery, which I am getting real easily, but I want to make sure I am not sure studying jQuery, I want to keep up on my JS skills. I started coding beginning of January, so I don't have too much experience. In a course on Udemy I am taking, we created a todo-list type of thing with jQuery, which you could add and remove list items. This is not part of the project, but for more practice, I am trying to rewrite the jQuery part in vanilla JS. There is not much code right now, as I wanted to figure this problem out before I continue along, as this problem as given me trouble several times, so I want to figure out the correct way to go about it before getting into more advance stuff. so I have a list In JS, I did this, to simple toggle a line-though and opacity change from my CSS file. What I am trying to do, is when one item from the ul is selected, I want it to toggle the class. The thing is, I am getting this error "Uncaught TypeError: li.addEventListener is not a function" - So, how do I add an event listener to multiple elements? In jQuery, it's simply Would I have to create a loop to iterate through them, since there are multiple elements? How would one add an event listener to multiple (of the same) elements? EDIT ; well I figured out I had to make a for loop, so I got that figured out. The thing is now, it's saying "Cannot read property 'classList' of undefined" - why is this? I am simply trying to toggle this class on and off with a click. What am I missing or doing wrong? Here is the code I have now [link] [comments] |
Direction needed on systems design for a particular webapp Posted: 25 Feb 2018 09:28 PM PST Background: I work for a small analytical chem lab, we test things. We currently use paper forms that describe what the client needs their sample tested for. The customer fills this out with pen. The office folk look at this work order, and then log it into our system. The newly logged work orders reside in SQL/Access based software, and is how the lab knows what work is in house, what tests the samples need, etc. I'd like to throw together a proof of concept web application that is able to process customer orders, and have them logged into our system without the need for office folk to manually log them in. We currently use an in house, local SQL server, and an MS Access based interface. The web app would need to be able to add things to certain DB tables in our in-house server. Unfortunately, this part cannot change. All work orders from the web app must be merged with our in-house SQL server. As far as the back end goes, my current idea would be having a web-based SQL DB that has the work-order schema cloned from our in-house DB, and then the in-house DB will pull from the web-based DB when new orders are detected. I'm not entirely sure the best way to go about this, though. As far as I understand, the stack wouldn't matter so much on the front end, but on the backend I'm thinking python/flask simply because it's not too complicated, I'm familiar with these, and the volume of order requests would be MAX 200 - 300 per day. Front end I'm sure I could throw together something in bootstrap CSS and JS, do some form validation, etc. Not too worried about accounts or billing or anything like that at the moment. Thoughts on overall system design? I've never really done anything on this scale before. It feels like full stack web dev to me, and all I've ever really made is a simple website on localhost with some DB entry examples and some physics simulations in JS. How hard is this going to be? [link] [comments] |
Posted: 25 Feb 2018 09:25 PM PST I understand i will have to learn the coding first but whats the language wheres the best place to use it on windows or to create script. [link] [comments] |
[c] I don't understand why I am getting an infinite do/while loop. Posted: 25 Feb 2018 09:20 PM PST Please explain what I am doing wrong and what I need to do to fix this loop. include <stdio.h>int main() { int x, y; do { }while (!(x==0 && y==0)); } [link] [comments] |
why do I need to do x.length-2 in my for loop as a preface for my nums[i+2] Posted: 25 Feb 2018 09:07 PM PST I probably butchered the fuck out of the title because I have no idea how to ask this question. Goal: Given an array of ints, return true if the sequence of numbers 1, 2, 3 appears in the array somewhere. This will give me out of bounds exception, and I must do nums.length-2 in my for loop in order to fix that. I know that much... However, I have no idea why I need to do that. An explanation would be highly appreciated as I'm getting frustrated... [link] [comments] |
Posted: 25 Feb 2018 09:01 PM PST Reddit's HTML structure has three hundred quadtrillion bazillion divs, even on a simple page. Why is that? Is it because it was created a long time ago, when divitis wasn't considered that big of a deal? [link] [comments] |
Having trouble running my project in eclipse Posted: 25 Feb 2018 08:56 PM PST Hello I am very new to coding and have been running into a problem. I will try to be as descriptive as I can so bear with me. I am coding using the latest version of Eclipse (Oxygen) - 64 bit and MinGW 7.1.0 - 64 bit. The language is C++. The toolchain I am using is MinGW GCC. I am in an introductory coding course and have already asked my professor for help but he says he doesn't know what the problem is. My process step by step:
Even just loading up eclipses built in Hello World test, building it, and then running it, will give me the same error. Also even using the schools computers in the computer lab gives me the same error. After googling the problem for many hours people keep suggesting I go to Run -> Run Configurations, click C/C++ Application, then hit the New button. This creates a new section just below it with the name of my project. However the path to my executable is blank. Everyone keeps saying to set the path to my executable. The problem is I don't have one. There is no executable for my project to link it to in order to run it. It's not in my project folder or any where in my eclipse installation. Running the project with the path left blank results in the error "Program file does not exist". If anyone could help me that would be awesome. [link] [comments] |
You are subscribed to email updates from learn programming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment