• Breaking News

    Thursday, September 10, 2020

    What’s the path to being a full stack developer? learn programming

    What’s the path to being a full stack developer? learn programming


    What’s the path to being a full stack developer?

    Posted: 10 Sep 2020 11:45 AM PDT

    Do you start as a junior web developer, then gradually reach a senior web development and then finally full stack or how does it work?

    Thanks

    Edit : I didn't expect a plethora of comments, so thank you everyone for taking time to share your opinions and experiences, I'm sorry if I don't go through all the comments, but I really appreciate your time. :)

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

    What is best online resource to learn Data Structure & Algorithms from scratch?

    Posted: 10 Sep 2020 10:24 AM PDT

    So I am total beginner,I just learned C++ few days ago,now I wanna learn DSA from online but there are way too many videos on this topic on YouTube,so it's quite hard to decide which should I take up

    It would be great if you lost me some good resources,thanks

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

    How do I get IT experience to add on my resume?

    Posted: 10 Sep 2020 09:51 PM PDT

    I am 24 and decided to go back to school for my bachelors. I work as a paralegal and am doing 3 classes this semester. I've taken courses on C, Information Security, and am enrolled in Java, another on C, and E-Commerce. Is it hard to get a full time internship with just college courses taken and not with actual real-world experience?

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

    is it good practice to use "beautify", "tidy" features

    Posted: 10 Sep 2020 12:11 PM PDT

    Recently I find that I am too lazy to go through and try to line up certain parts of my code. The "beautify" "tidy" functions seems like a really convenient way to automatically indent your code. Should I use the "tidy" features that some ide's and text editors include or should I make it a habit to tidy up my code myself?

    submitted by /u/2kfan
    [link] [comments]

    [Discussion] Recursion: A Simplified Example

    Posted: 10 Sep 2020 09:28 PM PDT

    I'm trying to wrap my head around using Recursive Functions and came up with this very simplified lay-man's example:

    Until I count to 5, consider the following question: Count 1: Question: What is in the bottle on the table over there in the kitchen near the entrance? Count 2: Question: What is in the bottle on the table over there in the kitchen? Count 3: Question: What is in the bottle on the table over there? Count 4: Question: What is in the bottle on the table? Count 5: Question: What is in the bottle? Answer: Water. 

    I've understood recursion thus far, I think what I'm trying to wrap my head around next is how do I pass the "Answer" all the way back up to Count 1?

    In a C Program I'm able to do it using a pointer. The problem I have with that is, that my pointer is tightly coupled to my main() function. I'd like to do it without using a pointer from the main function, and keep it internal to the recursive function only.

    Marked the post as a Discussion, figured it would be helpful to have this conversation in the community.

    submitted by /u/brand-new-reddit
    [link] [comments]

    I don't think I'm learning.

    Posted: 10 Sep 2020 11:04 PM PDT

    I don't know who else to talk to about this so forgive me if this sounds a bit too personal. I started learning front end development at the start of the year and I don't think I learned anything. I started a building some code and I realized I was forgetting things that should be easy. I forgot how to link my index to my css. I still don't know how to use css flex or grid. After months of learning I still can't expect myself to do the easiest things. I don't even generate the code by myself most of the time. I just look at online and copy/paste what somebody else did if I can't figure it out. I feel like I can't do this anymore. I build website after website and none of it sticks. I fear I won't be able to learn this if i keep forgetting it. I fear I won't get ahead in life. Can anyone give me some advice on what to do if I feel I can't remember what I may have learned.

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

    I’m Michael Ellison. I grew up experiencing poverty and homelessness, co-founded a $1+ billion company, then started a nonprofit helping underrepresented students land tech careers. AMA!

    Posted: 10 Sep 2020 05:45 PM PDT

    Why unable to display image to webpage using thymeleaf and springboot?

    Posted: 10 Sep 2020 12:50 PM PDT

    What i am trying to do is displaying images fetched from Mysql database to webpage using thymeleaf inform of cards.

    But instead of getting images in cards by passing url:-

    http://localhost:8080/showapplication/v2 

    what i am getting is cards with no image!!

    I don't know what i am doing wrong.Please help me to achieve the desired output.

    Controller class:-

    u/Controller

    u/RequestMapping("/showapplication")

    public class ShowImageController {

    u/Autowired

    private ImageRepository imageRepository;

    u/Autowired

    private ImageService imageService;

    u/GetMapping("/v2")

    public String ShowAllImages(Model model){

    List<ImageEntity> allImages=imageService.RetriveAllImages();

    model.addAttribute("listofimages",allImages);

    return "showimage";

    }

    }

    Service Class:-

    u/Service

    public class ImageService {

    u/Autowired

    private ImageRepository imageRepository;

    public void uploadtodb(MultipartFile file){

    ImageEntity imageEntity=new ImageEntity();

    try {

    imageEntity.setImage(file.getBytes());

    imageEntity.setFiletype(file.getContentType());

    imageEntity.setImagename(file.getOriginalFilename());

    imageRepository.save(imageEntity);

    } catch (IOException e) {

    e.printStackTrace();

    }

    }

    public List<ImageEntity> RetriveAllImages()

    {

    List<ImageEntity> imagesEntities;

    return imagesEntities=imageRepository.findAll();

    }

    }

    HTML code:-

    <!DOCTYPE html>

    <html lang="en" xmlns:th="html://thymeleaf.org">

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"

    integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"

    crossorigin="anonymous">

    <link href='https://fonts.googleapis.com/css?family=Aguafina Script' rel='stylesheet' >

    <link href='https://fonts.googleapis.com/css?family=Alegreya SC' rel='stylesheet'>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>allimages</title>

    </head>

    <body>

    <br>

    <br>

    <div class="container" >

    <div class="row">

    <div class="col-xl-3" th:each="allimages, istat : ${listofimages}">

    <div class="card" style="width: 15rem;">

    <img class="card-img-top" th:src="${allimages.image}" alt="Card image cap">

    <div class="card-body">

    <p class="card-title" th:text = "${allimages.imagename}"></p>

    <hr>

    <p class="card-text" th:text = "${allimages.filetype}"></p>

    </div>

    </div>

    <span th:if="${istat.count % 4 == 0}"><br></span>

    </div>

    </div>

    </div>

    </body>

    </html>

    Thanks in advance..

    Any help will be highly appreciated..

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

    Should I start Freelancing?

    Posted: 10 Sep 2020 09:09 AM PDT

    Hey all! I've been wondering for quite some time that wheather should I start freelancing now? Or should i wait until i get some specific expertise in Python?

    I've already completed two specializations(Python for Everybody by Dr. Chuck & Python 3) on Coursera related to Python, each comprising of 4 courses with one Project at the end. Besides, I am also reading Python Crash Course by Eric Methews.

    But the problem is I've no idea which type of skillset is necessary to survive in the freelance market? As i am quite a beginner, are there any oppurtunities out there for a noob (like me)? Or should I develop some specific skills (like web development in Python, Machine Learning, etc.) before joining the freelance market?

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

    Unix Socket: Identifying client program

    Posted: 10 Sep 2020 01:06 PM PDT

    First of all, I would to apologise in case I missed any rules about formatting and the likes as this is my first time posting on this subreddit.

    I'm currently working on two Perl scripts, which interact in a server/client relationship. The server is capable of handling the requests of multiple different clients (different instances of the same script making different requests).

    So far I have been successful at achieving the desired results. However, in order to progress I would like the server to block certain functions for all other clients until the first client has received an answer to his request. At that point the other clients should receive a signal that they can once again request the execution of the previously blocked functions.

    Therefore, I need to be able to identify which client is who. As I am working with Unix sockets I cannot grap an IP-Address as there simply are none.

    The function getpeername appears to my best shot, but I have a couple of questions:

    Can the function differentiate between different instances of the same script? Would an instance that disconnects and reconnects to the socket retain retain the same peername? Is this the correct/best approach to my problem?

    Edit: I'm fairly sure that knowledge in Perl isn't necessary to answers my questions as sockets in C work fairly similar to the way they work in Perl.

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

    Resource for side by side view of different languages doing the same thing

    Posted: 10 Sep 2020 12:44 PM PDT

    I am not new to basic programming, but am looking to expand my learning of different languages. Are there any resources out there that will show the same program in different languages side by side? Preferably something with a few examples, or more complex than 'Hello World'
    I figure it would be a good visual way to see if the syntax is readable, or makes sense.

    If not, would this be a good resource to build for other programmers to reference?

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

    yapf, black or autopep8?

    Posted: 10 Sep 2020 11:45 PM PDT

    Which formatter is the best for your python programming?

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

    Feeling nostalgic about how I fell in love with programming 7 years ago

    Posted: 10 Sep 2020 11:39 PM PDT

    The language was Matlab. I was playing around with audio files in engineering school. I got into this cool audiophisiology research lab. I was recording balloon pops in classrooms, and try to use these pops to remove the echo from other audio files. It was cool stuff.

    At my day job, I don't do any audio programming.

    But in my pursuit of hobbyness, I wanted a little music for a video game. Little did I know that it would bring back the memories.

    How did you fall in love with programming?

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

    What’s the path to take to be able write code for robots and make software for its users

    Posted: 10 Sep 2020 11:28 PM PDT

    Hi I am a beginner in programming, my aim is write programs for robots and it's initial environment. What all topics should I consider learning to get to write code that run robots and HMI side. And right now I am learning c, I try to understand the basics of programming, is that a right direction to take ?

    Btw I am a university drop out so no chance to get back there!!

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

    What code

    Posted: 10 Sep 2020 11:24 PM PDT

    Using Java, how can I breakdown a user's input of integer into digits (nth numbers) without using while loop or arrays?

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

    java web development

    Posted: 10 Sep 2020 10:40 AM PDT

    Can anyone tell be the best way to learn java web development? I have completed java beginner courses on OOP and now trying to study web development. My brother has told me to focus on HTTP and core java and not javascript. Please recommend some java web development tutorial including paid one.

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

    Need to learn basic JavaScript/HTML/CSS for A Level Practical

    Posted: 10 Sep 2020 11:03 PM PDT

    Hello. Basically I need to learn enough to complete the Practical with relative comfort. Looking for resources to help speed up this process. I have around 5 weeks to learn it. Here is the link for the syllabus outline; on page 30 of the PDF is the syllabus content for the chapter. Thanks for your help in advance!

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

    One-liner to create a directory and to move to it

    Posted: 10 Sep 2020 02:05 PM PDT

    Today I learned one useful command, and I want to share it with you.

    I'm sure you've created directories using terminal million times, and you've probably used something like this

    mkdir my-dir

    cd my-dir

    Here is one-liner that does the same

    mkdir my-dir && cd $_

    $_ is the last argument given to the previous command, so in this case it is name of the directory.

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

    Small program to find the norm of a 3D vector. The code is supposed to output the wrong answer but I can’t explain why.

    Posted: 10 Sep 2020 12:56 PM PDT

    For my CS lab, I'm supposed to make a struct with 3 floats (x, y, z) and then a function fo find the norm.

    The way the instructions are written, the answer given by the code will be wrong. Questions like, "what is the output? Why would this be the case?" etc. The vector is (1, -4/3, 0). The correct answer is 5/3 but the output is 1.414.

    The code is just sqrt(xx + yy + z*z). It's nothing complicated. There's a header file to make the struct and prototype the norm function. A .c file to implement the norm function. And a main.c function that just creates a vector struct, carries out the function, and prints results.

    I can't think of why this would be incorrect. My printf() statement uses %f for the float. All the types are float except the return type for sqrt() which is a double. However, I don't think differing types would cause this because floats and doubles work fine together. I've also tested this by changing everything to a double and I still get the same result.

    It's a really simple program but I can't figure out what would cause this to be wrong. Any ideas?

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

    Ideas for entry level Software Engineering project?

    Posted: 10 Sep 2020 11:20 AM PDT

    So for my SE 2730 class (Intro to Software Engineering) we have a final project that we spend all semester finishing in parts (the parts being the individual steps in the software engineering process) and we need to choose our idea for the project by next week. Since this is our first time doing a large project and one using the SE process, my teammates and I are having a hard time getting the ball rolling on realistic ideas: they need to be doable by college sophomores in an intro SE class, be done in Java or C++, and be original/have a real world use (i.e. we can't just code the card game Hearts unless we out a major twist on it). Just asking around if anybody has some general topics to get the ball rolling on ideas for us, not looking for fully formed projects just something to help us brainstorm.

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

    Is 10-15 minutes to read a page of computer science book slow?

    Posted: 10 Sep 2020 10:27 PM PDT

    I take 10-15 minutes(exactly around, I put a timer and found out) too much time to learn 1 page of a book? If yes, how can I make myself faster mind?

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

    How to parse JSONs when the keys will not be known in advance (python3)

    Posted: 10 Sep 2020 06:39 PM PDT

    I am trying to collect data on movies using Wikipedia's API. I will provide a full explanation of the problem, and afterwards exactly what I'm having problem with. If you don't care about the context, just skip to current problem.

    Full Explanation

    This won't be long. I am scraping this (https://en.wikipedia.org/wiki/List_of_Academy_Award-winning_films) page for each wiki link to a particular movie page. Using BeautifulSoup to grab the table on the page and split each row into an entry.

    from urllib.request import urlopen import requests from bs4 import BeautifulSoup as soup import json #1315 movies are in a single table at this link. #Scrape the list and use the API to visit each movie's page url = 'https://en.wikipedia.org/wiki/List_of_Academy_Award-winning_films' client = urlopen(url) page_html = client.read() client.close() page_soup = soup(page_html, "html.parser") movie_table = page_soup.tbody entries = movie_table.find_all("tr") #Each <tr> tag contains a movie entry 

    So now that we each row, let's harvest the info we need

    titles = [] #Serves to be our unique identifier urls = [] for row in entries[1:]: #Ignore the first row, meta info entry = row.td.i.a #beautifulSoup stuff try: titles.append(entry['title']) except TypeError: continue #Ignore entries with no name try: urls.append(entry['href']) except TypeError: continue #Ignore entries with no url sorted_urls = sorted(urls) sorted_titles = sorted(titles) 

    Awesome! We've got the titles and urls for all of our movies off of the page! Now let's plug those titles into a wikipedia API call and get their page info. Let's create a call to the API using the first entry in our array (This is going to make a query for 12_Years_A_Slave_(Film)).

    endpoint = 'https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exintro&explaintext&format=json&titles=' call = endpoint + sorted_urls[0][6:] #only using FIRST title as proof-of-concept response = urlopen(call).read() api_soup = soup(response, "html.parser") data = json.loads(api_soup.text) 

    We now have a JSON object in data. This is where I become stuck.

    Current problem

    Here's the JSON im dealing with:

    { 'batchcomplete': '', 'query': { 'normalized': [{ 'from': '12_Years_a_Slave_(film)', 'to': '12 Years a Slave (film)' }], 'pages': { '37125755': { 'pageid': 37125755, 'ns': 0, 'title': '12 Years a Slave (film)', 'extract': "12 Years a Slave is a 2013 biographical period-drama film and an adaptation of the 1853 slave memoir Twelve Years..." } } } } 

    All I need is the value that's in the extract key. However, one of the nested keys is the page id (in this case, 37125755). There's no way to get the pageid anyways, because the key/value pair I need to find out is nested inside the key that is the pageid. I tried to use BeautifulSoup to traverse the JSON object but that didn't work for me.

    So, is there a way for me to see the value of a key inside a JSON object even if I don't know the key?

    Solution (Thanks to u/Updatebjarni)
    https://stackoverflow.com/questions/42550749/how-to-parse-json-for-unknown-keys-in-python

    body = request.get_json() # returns a dictionary for key, value in body.items(): print(key, ' ', value) 
    submitted by /u/DiamondBrook
    [link] [comments]

    How well do you need to know CSS before you move on?

    Posted: 10 Sep 2020 10:23 AM PDT

    I've been studying CSS for weeks and I have it pretty down pat but of course I'm not great and there are still certain topics that are tricky for me such as some positioning, animations, transformations, media queries. I understand these topics pretty well after I review them but they are sticky topics and I always need to look them up and review. I've completed FreeCodeCamp's responsive design certificate and close to finishing Odin Project's Web Dev 101 section. I'm not close to being as skilled in CSS as CSS Zen Garden entries.

    When do I know when I'm competent ENOUGH to move on and keep learning? JavaScript is the next big subject after these CSS sections (FCC and Odin Project) but not sure when it's time to move on to it?

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

    Is there a tool that I can use to speed up libraries documentation in the form of HTML?

    Posted: 10 Sep 2020 10:16 PM PDT

    Is there any tool (preferably online) that I can use to speed up libraries documentation process in HTML format? I don't want to write HTML code just to make a documentation

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

    No comments:

    Post a Comment