• Breaking News

    Tuesday, January 19, 2021

    Some good advise I heard today: “Future You will never think Current You was too old to learn how to program” learn programming

    Some good advise I heard today: “Future You will never think Current You was too old to learn how to program” learn programming


    Some good advise I heard today: “Future You will never think Current You was too old to learn how to program”

    Posted: 18 Jan 2021 01:26 AM PST

    I had been in my normal click hole today too see if I'm too old to learn to become a software engineer. One person said something that made me feel a lot better: some people in their 30s would say to him "if I only became a software developer in my 20s I'd be set now" and then other people in their 40s would say "well if I only became a software engineer in my 30s then I'd be set right now." (Video link: https://youtube.com/watch?v=vpKh-29u_EQ).

    So the moral is basically that the future version of yourself will never think the today version of yourself was too old to become a software developer. Cheers.

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

    Encryption and Python

    Posted: 18 Jan 2021 10:49 PM PST

    I want to provide some data to my client but I want it to be encrypted in such a manner that I will provide him the key and the key would with only for exactly 1 month, he will have to pay me to get the key for next month. I will provide him the source code and so I can't mess with code to do it. Is there done kind of way to do it. He will have the database and so I won't be able to mess with that too. Is there a way that the database could automatically delete it self or I could make changes to it remotely or something.

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

    Algorithmic Complexity Charts: Big O cheat sheet vs Wikipedia Big O

    Posted: 18 Jan 2021 06:02 PM PST

    BigO cheatsheet shows this diagram: https://www.bigocheatsheet.com/

    While Wikipedia shows this: https://en.wikipedia.org/wiki/Big_O_notation#/media/File:Comparison_computational_complexity.svg

    Just starting to study big O here and so I'm trying to get better at visualizing these graphs. I know that no one will necessarily ask you to draw this chart out... but which one would be more accurate if I wanted to draw this out?

    I'm assuming its the wikipedia one where O(n) actually looks linear (diagonal)

    Maybe I'm overthinking it. Thanks in advance

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

    Haven't had much chance of lately to work with others, when I want to do a pull request on a branch I created locally, does that branch also need to be created already on the remote repository?

    Posted: 18 Jan 2021 06:57 PM PST

    Say I cloned a remote repository to my local system/computer, and then from there locally created a branch and checked out to it, call it new-feature branch, and then made some changes on that new local branch. I git add and git commit my changes on that branch.

    When I do git push origin new-feature, do I need to have had already manually created a branch called new-feature in the the remote repository on Github via the UI there, or will my local command git push origin new-feature create the branch in the remote repository, and from there I can create a pull request?

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

    Beginner dev here Is there a way to transfer a static website to a headless CMS if the website was not built using a static site generator. I only know of forestry and netlify CMS but it seems like they both require git and the site must be built with something like Hugo or another generator.

    Posted: 18 Jan 2021 10:48 PM PST

    Basically I told someone I would make them a website and I did. They want to be able to make minor changes to it like adding news/ blog posts. The site is static html css and a bit of vanilla JavaScript. I don't want to be on the hook for changes. How could they make changes without messing with the code. Client is a non technical client that is very visual sorta drag and drop and magic. I don't think they would understand git.

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

    One of my first "Real" blogposts which I think can help people - Developer Productivity

    Posted: 19 Jan 2021 12:34 AM PST

    Hey, I'm kinda new here and want to share some of the insights I've been having on productivitry and coding. It has become a really important part of my workflow and figuring out how to be better at coding itself. More info can be found on my blogpost - https://blog.almin.dev/posts/2021-01-18/productivity-part-one

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

    Is it normal to hit many roadblocks while learning to code?

    Posted: 19 Jan 2021 12:12 AM PST

    Everyone tells me it is. I'm doing FCC and there some lessons which I intuitively just understand, and then some I can't understand even after Googling and reading many solutions. I just WTF.

    FCC curriculum says 4k hours, but I am attempting to do in it in 2k. Maybe that's too ambitious?

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

    Best way to sync projects between computers?

    Posted: 18 Jan 2021 11:55 PM PST

    Most of my programming is done on my desktop, but sometimes I like to be elsewhere (or lay in bed and work on stuff lol) and use my laptop. I've currently been using my local Nextcloud instance to sync projects (not ideal but I already had it), and it's worked okay, but it really chokes when trying to sync lots of tiny files (understandably), and it occasionally has some version conflicts (even though I'm only ever opening files on one device at once)

    I do use Github for my larger projects, but I'd rather not create and use a new repo for every little project or test that pops into my head lol. So, anyone have any recommendations of ways to automatically sync this type of thing between computers?

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

    Easy Way To Keep Track of API Usage?

    Posted: 18 Jan 2021 07:01 PM PST

    Basically title. I am a fairly new programmer, and I am using an API in a project that has rate limits. I was wondering if there's an easy way to keep track of rate limits while testing projects? I've tried looking around but pretty much everything I found was about people setting rate limits for their own APIs, which is not what I want. Help!

    p.s. I'm using python

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

    ‘Start doing projects’ isn’t clicking with me

    Posted: 18 Jan 2021 05:15 AM PST

    So I have completed a full stack bootcamp in November 2020 and have been looking for jobs. I have also tried to continue to do some programming and create projects. But I keep going back to tutorials and am not progressing anywhere. So I know everyone says to start projects and can understand that is the best way. But personally I just cannot start one. I just don't know how or what to do. E.g I want to build a basic calculator app or generate some info from an API but I have no idea how to start. I also am not great at HTML and CSS so I sometimes use other templates but then I'm not learning HTML and CSS. I've just been stuck in this rut for a few months and it's incredibly frustrating

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

    Game development, software development, web development or ethical hacker? Which one is better in terms of salary, work environment?

    Posted: 19 Jan 2021 12:31 AM PST

    Just wondering. I've been looking to switch careers in the future.

    submitted by /u/cirstine-
    [link] [comments]

    Trying to send file to SFTP server using express

    Posted: 19 Jan 2021 12:26 AM PST

    I am trying to upload a csv file to my local sftp server but I am getting error 'sftpConnect: client-socket error. Address lookup failed for host' The host, username, port and password are correct.

    I am using ' ssh2-sftp-client'

    const config = { host: 'sftp://192.168.10.1', username: 'host', password: 'xxxxxx' } sftp.connect(config).then(() => { return sftp.exists('/xx.csv'); }).then(data => { return sftp.fastPut('/xx.csv', '/xx.csv'); }).then(() => { sftp.end(); }).catch(err => { console.error(err.message); }); 
    submitted by /u/SukuMcDuku
    [link] [comments]

    Grundy's Game: how do you figure out next possible states when the game involves splitting piles?

    Posted: 19 Jan 2021 12:18 AM PST

    Hi all. I'm working on an exercise on CSES called Grundy's Game. The topics involved in figuring out this problem (combinatorial game theory, Sprague-Grundy Theorem, minimum excludants, etc.) are all completely foreign to me, and I've only just started reading about them tonight.

    I'm somewhat getting a handle on what I might need to do, but I'm a little confused about how it works for this particular game, which involves splitting a single pile into two unequal piles, and then splitting one of those into two, etc.

    I think I understand how to find the Grundy number in the case of a single pile where both players simply continue to remove items from that one pile. So if you have a pile of 10 coins and the rule is that each player removes 1, 2, or 3 coins per turn, then I think the Grundy number would be:

    G(10) = mex({G(7), G(8), G(9)}) 

    It's easy to see that the next possible states, from 10, are 7, 8, or 9. But I don't understand how to find the next possible states when the game involves splitting the pile.

    If you have a pile that must be split into unequal piles, what would the next possible states look like? In the case of 10 coins, they would be (1, 9), (2, 8), (3, 7), and (4, 6), but how does this translate into the formula above? What would G(10) look like here?

    Thanks! Hopefully I made some sense out of the stuff I just learned tonight!

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

    Questions about XCode and React Native

    Posted: 18 Jan 2021 08:18 PM PST

    I have a React Native project and I want to deploy it to the app store. I have been reading a lot about xcode and was wondering how xcode plays into deployment and React Native apps. For example, I have seen a lot of tutorials have an ios folder in their React Native app with a Podfile, but mine does not. Does anyone know how to set up React Native with XCode?

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

    Editing VSC Settings.json, and just general frustration with problems that can't be googled.

    Posted: 18 Jan 2021 11:51 PM PST

    edit: Yeah, I just noticed Emmet options in the Edit menu. Can I use these for something? I tried clicking them, and I'm assuming something happened, but I don't know what.

    I just want the Emmet shortcuts to work when I type things in. Is that even the way it's supposed to work? The video made it sound like it was, but maybe I'm misunderstanding the video.

    The Edit menu said to use "tab". How do I use that and what does it do?

    ----------------

    So.

    I'm not even sure if my question belongs to this sub, because I'm trying to learn HTML, CSS, and Javascript right now, not more back-end things, but I didn't know where else to ask.

    Because it's not just about the problem I'm having right now, it's about the reason I quit every time I start trying to learn something IT related.

    So, I started today by trying to watch a "Front end crash course" video on Youtube. Literally the first thing was "open VSC and type an exclamation point, and an Emmet suggestion will pop up and give you the HTML boilerplate that you need."

    The suggestion didn't pop up. I googled.

    I found the "Emmet cheat sheet" and tried a few other shortcuts, like typing "a" to get the link codes and things like that, and none of them gave me any usable suggestion, so I thought that it's probably an issue with the whole Emmet thing and not just that one exclamation point shortcut.

    So I looked on the VSC help section, on their website.

    They say to edit settings.json, they say to add certain lines of code to the settings.json file.

    1. I have no idea what a json file is, and settings.json sounds important, easy to just mess up and break everything if I don't know what I'm doing with it, so I'd like to get some background on what exactly it is that I'm trying to do before I try to do it.
    2. The "oh just paste these lines into the file" in the "help" section doesn't tell you where in the file to paste those lines. I was somewhere in the "settings" panel in the app that you get to by going to code > preferences > settings, and there was a link that said "edit settings.json", and I opened that, but the file that opened was just a few lines of CSS describing the color scheme I'd set. I thought, this can't be all of it, can it? But I pasted the couple of lines of code into that window and saved it, anyway. I thought I might as well try it. It didn't fix the problem (if it had, I wouldn't be here asking). I googled some more and I couldn't find anything to do with what that file was that I opened, presumably a small part of settings.json?
    3. On the VSC official site's help section, it gives a direction to find the settings.json file on your computer, for mac it was home/library/application support/code/ ..... but there was no "Code" folder, or "Visual Studio Code" folder, or anything else that looked like it could be for this app, there. Honestly, I feel like I could come up with a solution by thinking this problem through, but I have such a headache from all of this right now...
    4. I googled a bunch more, and found a bunch more articles but all of them require you to already know some things that I don't... all of these articles are written for people with a lot more experience than me, or at least people who know how to edit settings.json, people with some experience changing settings by editing source code instead of by clicking things in a "settings" window... Basically, this issue is why I keep quitting. I have problem A. I google problem A, and get a few articles. One of the articles seems to be a solution, but it requires knowledge of B. So then I spend some time trying to understand B. And then the articles about B assume knowledge of C, so I spend some time researching that... and then I have to research D and E, and just... I feel like people don't understand what "beginner" means. Maybe I should just... not be afraid to break things? And just barge into settings.json and change whatever, wherever, and just... not worry? Is that it?

    Honestly, I could just copy-paste the HTML boilerplate from somewhere else, and honestly, I should probably just memorize it and know it and type it out myself, right?

    I do have some background in HTML/CSS, I used to do sites for myself all the time, and edit the HTML of everything, etc., but that was a while ago... I dropped off with it around the time when everyone realized the default looks of most sites look better than custom profiles ~10 years ago, so....

    edit 2: I did just use a different HTML boilerplate, from a site called "html boilerplate", a package that another Javascript course told me to download. That's the other thing that makes me nervous, I'm taking these courses, and I'm not sure whether or not I should download all the things they tell me to download.

    I spent a lot of time on a Coursera course from a university, downloading and using their proprietary code editing software, only to then discover how out of date it was. This video maker swears everyone uses VSC, is that true? It can't be 100%, but is it 90%? 50%? 20% but it's good for beginners? Does this teacher look like an idiot for recommending it? Having nothing but that teacher's word, and comments that just say "thanks, this is amazing!" (from people who also know nothing but what this teacher says), how do I really know...?

    I guess... knowing how much you don't know, as Socrates said, is generally a good thing, but it can be a weakness when your questions always get met with "why are you asking that?" or "just trust me", ... or when you don't have anyone to ask because an article or a video isn't going to respond back to you (which is actually why Socrates himself, apparently, had his generation's version of a new-media freakout over writing -- you can't ask questions to the book you're reading, you can just accept it or leave it. Obviously I'm not against books and writing, I think the whole world needs to read more and read wider, but there also does need to be more venues, and more encouragement, for asking questions... but this is philosophy, not directly connected to the issue at hand... except there need to be more venues for that, as well, as these things come up...)

    submitted by /u/Decent-Shallot7591
    [link] [comments]

    What's rest api

    Posted: 18 Jan 2021 11:39 PM PST

    Can someone eli5 what are rest apis how do we achieve it what are the tools etc used for that. Any examples. Ps Im noob to this.

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

    How CSS Works?

    Posted: 18 Jan 2021 01:14 PM PST

    How CSS works?

    I've been using CSS for a while, and there is something that's been bothering me a lot.

    I think that the best way to describe it is that I don't understand what I'm doing.

    What I mean is not that I do not understand which command does what, or how to use it, but rather that I have a shallow understanding of CSS. I feel that the way I'm using the language is almost as if I'm doing things by trial and error.

    Let's take for example swing in java. When developing an application using it, everything is clear to the programmer (e.g. where, how, and why things will appear). As an example, swing offers layout managers that help you divide the screen up, recursively, so that you may know exactly the placement of different components. However, with CSS, it almost seems like I'm hacking things together rather than building upon a central understanding of something, as if I'm trying to guess what would work instead of knowing it. For example, I'm never sure which command goes with which, which command would not work with another, etc.

    Also the way that we are taught CSS does not help. While I'm not sure how you were taught, I can say that most web resources will teach you by saying, oh this does this, and that does that.

    So my question is:

    Do you know of any resources that would be helpful in understanding "deeply" how CSS works.

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

    Best resource for data structures and algorithms

    Posted: 18 Jan 2021 10:41 PM PST

    I want to get into DSA, and have tried a couple of resources but none of them are actually good. Is there a good resource which covers a lot of topics and is thorough about them?

    Also, i want to do DSA in c++ and I only have basic cpp skills. Are those enough or should I first learn cpp in more depth?

    All suggestions are appreciated!

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

    Do data structures have same time and space complexities for various functions/methods they have across every language?

    Posted: 18 Jan 2021 10:34 PM PST

    Do data structures have same time and space complexities for various functions/methods they have across every language, or can there be exceptions? Are there reasons for that. I was thinking data structures are meant to be language agnostic but was not sure.

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

    C syntax is a nightmare for me and just will not click. I've been through a basic dozen courses and have even written my own kernel exploit in python ctypes for fun, before I understand what the hell C was really doing! How do I remedy this?

    Posted: 18 Jan 2021 10:31 PM PST

    An example of bad syntax understanding is the following:

    `

    //just build a struct

    Typedef struct item item; Struct item { //just something here doesn't matter really

    Char foo = "x"; }

    //code in some function to make the struct

    Struct item* item = (item*)malloc(sizeof(item))

    `

    This is just a damned nightmare for my brain to calculate, especially the second line of syntax. I get casting to a type, but I understand types as data types like literal integers, or characters, or even nothing (void). I get the malloc call past the malloc(), and understand item* is casting the pointer to type item*, (that is where it just makes no sense to me).

    Struct item* item = is assigning a pointer of type item to the result of the latter code after =. I can sort of reason about it, but it does not really make sense in any intuitive manner for me. Again, I've done some fairly intense and wonderful things computer science land, but this basic skill totally eludes me. I hate this language, and I don't want to.

    If anyone has had a similar experience, please point me to a resource to solve this - I am not averse to hard work. I've sat down to write this hash table at least 3 times and just cannot make it happen. I just hit up CS50 again and was inspired to give it another go. Not averse to hard work here - this is self taught and more of a struggle than it clearly needs to be. It's just an array of linked lists and I really don't think allocating memory for the structures inside should be this arcane.

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

    Creating HTML pages for web extension using python frameworks.

    Posted: 18 Jan 2021 10:27 PM PST

    Basically the title. I want to create a pop-up page for web extension with forms. I want the values entered in the forms to be added in databases. I learned Flask framework but it seems everyone is exclusively using JavaScript for backends in web-extensions.

    If so, do I need to specify something special in manifest.json file?

    Any response is appreciated.

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

    How to make flappy bird pipe randomizer python

    Posted: 18 Jan 2021 10:06 PM PST

    So I'm having a problem with my flappy bird pipe randomizer. I'm trying to do the same thing that flappy bird did with there pipes where they randomize it so there is space for the player to get through and more pipes come. The tutorials I have watched so far don't fit in with my code or I just don't get them. I have tried writing my own code for it but that also did not work. I have already got my bird jumping working I'm just know trying to work on this, Here is my full code

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

    Adding a simple function to jQuery

    Posted: 18 Jan 2021 10:04 PM PST

    Hey guys, hope you are all doing well.

    This is a code i manage to put together with the help of the internet, since I'm new to this and I don't have much experience. I want to make sure you can not close a section by clicking on the same sections button. So you can switch between them, but one is always open. Thank you for your time!

    <script>

    jQuery(document).ready(function($) {

    //Hide all content to be revealed

    //Create the click event for each reveal button

    $('.reveal_button').click(function (e) {

    //Prevent the default button action (i.e. redirecting to a url)

    e.preventDefault();

    //Get the parent section for the button clicked

    $parent_section = $(this).closest('.reveal_section');

    //Remove the opened class from all other buttons

    $('.reveal_button').not(this).removeClass('opened');

    //Close all content in other sections

    $('.reveal_section').not($parent_section).find('.reveal_content').fadeOut('slow');

    $('.reveal_content1').hide();

    //Hide/Reveal the content in the same section as the button clicked

    $(this).addClass('opened');

    $parent_section.find('.reveal_content').each(function() {

    $(this).slideToggle();

    }

    )

    });

    }

    )

    </script>

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

    When learning java spring framework , should I focus mostly in spring core and not so much in spring boot or both are equally important?

    Posted: 18 Jan 2021 09:55 PM PST

    The reason I'm not sure about learning spring boot is that is mostly for web applications , and from what I understand java web applications are not so widely used. Is there any real life examples of websites that use spring boot web applications? How does it compare to tomcat?

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

    No comments:

    Post a Comment