• Breaking News

    Thursday, January 21, 2021

    Holy moly learn programming

    Holy moly learn programming


    Holy moly

    Posted: 20 Jan 2021 01:12 PM PST

    I'm excited. Here's why.
    So I've started learning web design a few months ago, fiddled with some JS too but didn't quite get the hang of it until I had to take a break for a while. I recently started a new project and begun learning JS again, for real this time. I wanted an image slider and thought about how I'd do it and fiddled around. Things didn't go my way, I almost had a headache but suddenly: It works!!
    I'm just continuously pressing the slide buttons atm because I still can't quite believe it. This feels amazing! Who needs sex, if this is what ya'll are doing all day, I want in on it!

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

    Some advice to beginners - from a beginner.

    Posted: 20 Jan 2021 09:54 PM PST

    • Having the confidence to be able to ask for help/feedback from your peers, instructors, and just the community(reddit/discord) in general is the most relieving thing on the planet. It can help you when you're stuck on anything from a simple error to assessing where you are in terms your skills and knowledge.

    • If you're just a beginner to a programming language and you're starting to see that a lot of people say 'create projects', you should probably see if you can make something like a number guessing game, tic tac toe game, hangman game, rock paper scissors game, really long madlib game, etc... first.

    This is because a lot of the times what people mean by 'project' is something like a small app, a twitter bot, a discord bot, a webscraper, or even your own full stack website. Aside from the language you're trying to learn this requires learning things like api's, deployment services(heroku, docker, aws), git, github, frameworks(flask, django, node), databases(sql), other languages (js, php, ruby). If you're something like a Python beginner, it's just too much to learn all at once when you're not even good with list comprehensions yet.

    • I know you've probably been told this is a field where you can basically google all of your problems and as long as you know how to properly search for what you need you're good, but a strong knowledge of the fundamentals is severely understated sometimes.

    Being able to identify on my own, and then solve problems with just a knowledge of the fundamentals, and answering practice questions I wasn't able to before, have now become the little things that keep me going and reminding me that I'm doing well. At the end of the day being a programmer is being a problem-solver, and programming languages themselves are the tools.

    Yeah this is all I've got for now. It's just stuff I've learned myself recently after overestimating my own skills for a long while and being forced to go back to the books and really strengthen both my problem solving skills and knowledge of the fundamentals.

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

    What languages/protocols do I need to learn to send a SMS text message over a 5g cellular module? Project details below:

    Posted: 20 Jan 2021 01:27 AM PST

    I am working on a project that involves both LoRa, Bluetooth 5.0 and Cellular networks. All are connected to a Asus TinkerBoard and my Tinkerboard is connected to a Arduino Uno slave. The language I'm using for my project is C. I have been searching for days on google trying to find out what protocals/languages I need to learn. I want to be able to send an SMS over my 5G cellular module and I can't find a solid answer to my question. I was hoping that I could please find some help here? Thank you so much!

    5G Modem

    Edit for Link to my specific modem that I'm getting and perhaps some more clarity.

    I also have this 4g module that I was planning on using at first. It is a 4g LTE w/3G fallback modem. If I don't have to buy the 5g model to send an SMS, or if there is no profound difference in protocols between 4g and 5g are negligible, than that would be preferable. I did see that 5g feeds off of GSM and GSM is used in both 4g and 5g (I hope I'm making sense). It would save me $700-800 if I didn't have to buy the 5g modem. I'm really only considering 5g because 4g will be phased out sometime after 2030. 5g capability could be added later when I have some real money. I guess this is a very obscure 2nd question.

    The 4g LTE/3G fallback modem is: Sierra Wireless AirPrime Model MC7455

    Edit 2: Thank you for the award! Also the text I'm sending is very basic. Just 25-30 lines of short text at most

    Edit 3: The Arduino slave will not be used to send the SMS message.

    The less intermediaries the better as one of the goals of my project is to not have something that the end-user will have to pay ongoing service fees for.

    I should have stated this earlier so I apologize. I should have mentioned that Python is not the correct language as I need a compiler rather than an interpreter for my project. Thus I am using C

    Edit 4: I have not installed the MC7455 on my Tinkerboard yet as I don't know what I need to get it running other than its drivers or which drivers to get. But that is something I will address in a future post

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

    Is programming a viable career in old age?

    Posted: 20 Jan 2021 10:37 PM PST

    I've been thinking about what career I could do when I turn 50 or 55, which is old enough to still need work but not old enough to retire. To me, it seems that Tech in general isn't a suitable profession for anyone nearing this age because there's always something new that one has to learn. Imagine being 55 and having to learn a new tech to say relevant on the job market.

    So, do you think that programming is a good choice for someone who wants to work until 65+? Or is this a young person's field?

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

    What language should I learn for finance?

    Posted: 20 Jan 2021 06:29 PM PST

    New to programming, I will be going to college for finance next year and want to learn some programming. What would be the best language for Finance?

    submitted by /u/5tornadoes
    [link] [comments]

    Similar websites to ZyBooks for learning c++?

    Posted: 20 Jan 2021 10:28 PM PST

    Hello!

    Last semester I took an intro to python course using code HS (mainly for intro turtle graphics) and ZyBooks and Zylabs for the rest. I really liked Zybooks for the exercises and small challenges, as that really helped me get the knowledge down.

    This semester I'm taking an intro to C++ class, and the professor is having us read out of a book. I cannot learn like this and I am very interested in developing my skills as a programmer, I understand you can do personal enrollments into Zybooks (Excluding ZyLabs, very unfortunately) and CodeHS is teacher-controlled so that won't work either

    Any suggestions? Thanks

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

    Continuously learning new stacks as professional dev is a MUST - true?

    Posted: 20 Jan 2021 12:11 PM PST

    I like problem solving and find coding to be interesting & challenging in a positive way. Once I've learned a stack and know my way around it a bit - I don't mind debugging or solving challenges using said stack. BUT I strongly dislike the feeling of having to learn a stack from scratch. I see it as a necessary evil, but don't enjoy the process, until I reach a point of familiarity where things start to "click".

    I'm in a bootcamp, and I'm noticing that I'm getting more and more fatigued with learning new stacks all the time. I don't even find new concepts interesting, until I have a good enough command of them to be able to apply them. I'm definitely not someone who is keen on learning just for learning's sake - I only start enjoying the process once a level of mastery is reached.

    My fear is that this means software development is not a good fit for me. Is learning things from scratch and enjoying the process an important part of being a developer? Or do you spend most time doing what you already know on the job?

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

    Learn WordPress as a side income?

    Posted: 20 Jan 2021 09:56 PM PST

    I've always wanted to break into the freelance market as a way to build up an alternate income method. I currently work as a full stack developer (still a junior) but I don't want to deal with hassle of building and maintaining dynamic sites. That and my CSS is below average.

    How feasible is it to learn a CMS, use some prebuild template and do some projects here and there?

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

    Making an image scraper

    Posted: 20 Jan 2021 09:15 PM PST

    I want to make a script to automate a very boring task in my browser. It'd be a simple image scraping tool for an old school gallery. I only want it to:

    -click the download picture button (only way to get full resolution) and save the picture in the folder I specified.

    -Click the "next picture" arrow

    -repeat until the end of the gallery

    I think I'll have to use javascript for this, but I'm not sure how to start. The pages are completely static, so it should be simple, but I know software doesn't act like a user.

    I'm fairly competent at coding (c++, java, python, visual basic), but I've never done anything browser based, so I have trouble finding the right terms to search for examples. I'd like some advice on how to start this.

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

    Is it odd that I feel like a fraud if my project works because I tinkered/fiddled with the code too much?

    Posted: 21 Jan 2021 12:22 AM PST

    It makes me feel like a monkey except instead of randomly pulling levers I was googling for them.

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

    What esoteric* language do you plan to learn this year? And why?

    Posted: 21 Jan 2021 12:19 AM PST

    Zig? Nim? Maybe Vimscript?

    Can't be too popular but you think isn't popular enough (Rust). And frameworks don't count either (Numba).

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

    Need help optimizing an algorithm which finds the closest point in one section of an array to another section

    Posted: 20 Jan 2021 08:31 PM PST

    Sorry if the title is confusing but I'm trying to create an algorithm which can find the two points closest to each other given 2 sections in a 2d array.

    Let's say I have an array that looks like this:

    // Section 0 marked with zeroes, section 1 marked with ones ################### ####00000##111##### ###00000####11111## #####0######111#### ####00########11### ################### 

    I want to create an algorithm which finds the point in section 0 which is closest to section 1 (or vice versa) so that the array would like this:

    // Closest points marked with the letter "C" ################### ####0000C##C11##### ###00000####11111## #####0######111#### ####00########11### ################### 

    ... my first thought was to simply loop through all the points on the edge (outermost points) of section 0 and compare the distance to every point on the edge of section 1, then return the closest like so:

    // Pseudo code function FindClosestPoints(Point[] section0_edges, point[] section1_edges) { // Set the closest distance to the maximum distance float closestDistance = 99.9; (Point, Point) closestPoints; foreach(Point p0 in section0_edges) { foreach(Point p1 in section1_edges) { float distance = p0.GetDistance(p1); if(distance < closestDistance) { closestDistance = distance; closestPoints = (p0, p1) } } } return closestPoints } 

    ... but as you might imagine, that approach is horribly inefficient. I think it's O(n2), so with sections like the ones in the example given it works fine but anything much larger and the program will slow to a crawl.

    So my question is: How can I write a more efficient algorithm for accomplishing the same (or similar) goal?

    Thanks in advance :D

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

    Can someone help? C++

    Posted: 21 Jan 2021 12:12 AM PST

    Create an array of 100 elements all equal to 20. Shift starting from index 5 to index 50 - right and change the value of the element at index 5 to 10.

    output the array elements using pointer

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

    Where should I start?

    Posted: 20 Jan 2021 08:24 PM PST

    Hi recently wanted to join a coding bootcamp, but before I join does anyone have a recommendations of where to start?

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

    How to get program to determine if data correlates to another set of data?

    Posted: 20 Jan 2021 11:55 PM PST

    This is a made-up situation, but the method/technique in which to solve the problem is what I am looking for. This is not for homework or a class, but personal curiosity :)

    Say I have a dataset of bacteria population over time for a small culture of bacteria in a Petri dish. The population fluctuates with no visibly discernable pattern.

    The second dataset I have one of "events" at different times labeled E1 through EN where N is the number of different events. The events can repeat themselves many times and overlap with each other.

    I want to know if any events, or a combination of events, correlates to the change in the population of bacteria. For example, it would detect if bacteria increases every time event E32 happens, or the bacteria grows by x amount every time events E13 and E44 happen in a close time frame. I would start small by having it work by considering only one event, then I would run the program to do different combinations of events.

    Is there a method or algorithm I can use to do this? I mostly work in python, but have experience with other languages.

    My guess is that I could try and use ML to make it "learn" these correlations. My long term to use this recognition ability and ML to predict the change of population if given future events, but maybe this in itself is already an ML-solvable problem?

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

    Why they arent a lot of resources on grpc?

    Posted: 20 Jan 2021 11:42 PM PST

    I am learning grpc and microservices architecture, and I noticed there arent a lot of resources, books or tutorial on this topic compared to rest apis or other web technologies, whats the reason behind this?

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

    Is there such a thing as too much studying?

    Posted: 20 Jan 2021 07:00 PM PST

    I know the initial reaction is "NO, of course not!" what I mean is I am a brand new programmer who is going the self taught way, I tried reading books, and doing YouTube videos. while I did get some use out of it, it wasn't structured in a way that worked with my learning style. After 3 months of trying to self teach with not much progress, I found an online course with a style that fits well with how I learn. It's 30 dollars a month and offers unlimited access to multiple courses and books with study courses. I wanted to get through each course as quickly as possible while retaining the information.Tight on money so I'd rather not keep paying the 30 a month, Even though it works well for what I need.

    When I was just reading books I would usually only study for about 2 hours a day and got got through my book in about a month and a half. If I increased my study time from 2 hours to say 4-6 hours a day would that be conducive to learning long term and actually remembering the info? I figured I can get through my courses in about 4-5 months doing it this way. Although I was worried if I tried this way I would take in too much info in a day and not remember it as well, or does being immersed for longer periods of study help with retention in general? Last thing I want to do is rush through my courses for the sake of finishing them and not fully grasp it. I would like some different perspectives or advice. making the time to study for longer periods wouldn't be an issue as I am only working part time since the pandemic started. Thank You.

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

    How do I run a command line tool provided through a GitHub repo?

    Posted: 20 Jan 2021 10:30 PM PST

    For example, this repo says they provide a command line tool for converting a certain file format into JSON: https://github.com/moov-io/metro2#commands

    How do I set up this tool to work on the command line?

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

    How to really delete all files in a folder and the folder on Windows using python?

    Posted: 20 Jan 2021 10:26 PM PST

    this doesn't delete the folder

    shutil.rmtree('C:\\Users\\0\\Downloads\\preoutput') 

    this one causes this error

    Message=[WinError 5] Access is denied: 'C:\\Users\\0\\Downloads\\testdelete'

    import os import glob files = glob.glob('C:\\Users\\0\\Downloads\\preoutput') for f in files: #os.chmod(f, 0o777) os.remove(f) 
    submitted by /u/hwpcspr112
    [link] [comments]

    Selenium + Google login: This browser or app may not be secure. Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in.

    Posted: 20 Jan 2021 10:20 PM PST

    How do I bypass this message when trying to login to google account?

    I have read up online and it is a well documented issue that google prevents automated login but I have tried the suggested solutions I found on stackoverflow etc. and they don't work.

    The two most common suggestions are to allow insecure apps in your google account (when logging in manually to get into the options) and the navigating to stackoverflow trick and signing into your google acocunt there. The latter worked for me a month or so ago when I tried but now it doesn't work.

    Oh yes, I will add that I can still login normally when doing so manually outside of the webdriver so how does google pick up on the automation and how to hide it/or bypass it.

    So any other ideas?

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

    I'm 28, can I begin a career in programming?

    Posted: 20 Jan 2021 10:17 PM PST

    I'm 28, Indian with a bachelor's degree in mechanical engineering. Tried UPSC thrice and failed. Now thinking of entering in programming field. I did C++ in school & learned python in college for about 6 months and I think I was good at it. should I go ahead in programming? Do Indian companies hire people without a degree in IT/CS? Highly confused, welcome any advice.

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

    Does Automate the boring stuff with python form bad habits?

    Posted: 20 Jan 2021 07:29 AM PST

    Hi there,

    I've recently started to learn Python as a route to building my knowledge for a move into a more devops style role - I picked the language as most sources say it's a good general use language for beginners - I recently completed the LinkenIn Learning course - Programming foundations and fundamentals.

    I also picked up a copy of Automate the Boring Stuff with Python and though that might be useful to give me projects I can do for work and at home bur one thing that caught my eye at the start of the book it states along the lines of:

    'These projects are created for anyone to do but if you give them to a developer they will spot a lot of options for improvement and include some less than optimal practices.'

    So I'm concerned that by using the book that I might be teaching myself bad habits before I've developed the experience/knowledge to know why they are bad habits.

    Can anyone confirm is this is the case or is it a case of get in thee and have a go and then as I get experience I'll build better habits?

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

    Python for loop.

    Posted: 20 Jan 2021 10:00 PM PST

    I changed the for loop index variable inside the for loop itself

    Program:

    l = [3,5,2,4]

    l.append(7)

    print(l)

    l.extend([6,8,9,11,13])

    print(l)

    for i in range(0,len(l),1):

    if len(l)<i:

    break

    if l[i]>=7:

    del(l[i])

    i=i-1

    print(l)

    plz tell me that, why isn't it removing all the elements which are greater than or equal to 7.

    submitted by /u/confusion-Metrix
    [link] [comments]

    Looking for good resources to learn Javascript. I have a grasp of HTML and CSS

    Posted: 20 Jan 2021 02:28 PM PST

    I've heard that superhi is a good but idk if I want to do that. Also I got the Angela web development course on udemy but I feel like it's missing some things. Any help will be appreciated

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

    What would you need to know to make a small search engine

    Posted: 20 Jan 2021 06:13 PM PST

    I know basic Java and C++, and a little bit of Javascript and C#. I heard it takes a lot of effort; I just want to know what I need to be aiming for.

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

    No comments:

    Post a Comment