• Breaking News

    Thursday, October 29, 2020

    EVERYTHING JUST CLICKED learn programming

    EVERYTHING JUST CLICKED learn programming


    EVERYTHING JUST CLICKED

    Posted: 28 Oct 2020 06:32 PM PDT

    dude everything is just an object. LITERALLY ITS ALL OBJECTS.

    THATS WHY ITS OOP. I AM SCREAMING.

    So if you want to build something you literally start with the idea of what you want, work backwards through objects and calls and checks and then TADAAAAH.

    I love you all. Be safe. Take care. ITS OBJECTS EVERYTHINGS AN OBJECT.

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

    I finally opened my years-old Pandora's Box of cybersecurity & programming resource bookmarks while in quarantine

    Posted: 28 Oct 2020 04:16 AM PDT

    One of my nasty habits is bookmarking useful online resources and then forgetting about them.

    Last week, while I was in quarantine, I used my free time to open this Pandora's Box.

    Some of the resources were super useful, and some are now irrelevant. I don't actually remember why I bookmarked some of them, but I thought that they might be useful for some people, so I'm deciding to share a few of these links with the community.

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

    Stupid question, but how am I supposed to use GitHub?

    Posted: 28 Oct 2020 07:51 PM PDT

    I created a GitHub account because I thought it would be practical since I write code in two different computers and it's pretty annoying when I forget to send myself the updated code to write on the other computer. I had no clue of how GitHub works, and I thought you uploaded files there, not that you programmed there. Am I supposed to copy and paste my entire code into GitHub, and when switching computers I just copy and paste the updated code into the other computer, or what should I do?

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

    I offer free mentoring!

    Posted: 28 Oct 2020 01:45 PM PDT

    Hello mates I'm BuÄŸra! I'm from Turkey and I offer to y'all free mentoring directly by me.

    You can hmu for whatever you like. Altough my profession is in webdev, asking for mentoring in desktop, low level and especially compiler development is also fine!

    Whatever you'd like to learn, even if I don't know much about it I can help! The only thing I ask for is recording the learning session (which is about 30mins) for sharing on YouTube, so other people can learn with us. Maybe indirectly, but I believe that's helpful for the community.

    Bear in mind that your name and face is not required, tho if you don't mind I'd be glad! I value your privacy :)

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

    Students-Free O'Reilly textbooks for a year

    Posted: 28 Oct 2020 04:36 PM PDT

    Hey, guys! The ACM is running a free student membership for a year. Among other resources, this gives you access to

    1. O'Reilly online access, which gives you access to 44,000 books. Several of the populae paid options are here, like K&R's book and Stroustrup's Principles and Practices.

    2. Several computer science magazines

    Here's the link if you're interested! I am liking it a lot so far.

    After the year, it's a yearly subscription of $29 for students and $99 for professionals.

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

    Learning Resources for All Levels

    Posted: 28 Oct 2020 03:27 PM PDT

    Let's put together some online resources for everyone interested in tech and learning to program at all levels! Feel free to add to the list and share :)

    ● SoloLearn

    ● Eduonix

    ● TutorialsPoint

    ● W3Schools - introduction to web dev and SQL

    ● FreeCodeCamp - Introduces HTML, CSS and JS for web development and goes into

    some useful Frameworks like Bootstrap etc.

    ● Codecademy - Free courses available for HTML, CSS, JavaScript, Python etc. Pro

    membership includes more courses as well as activities. Download the

    CodecademyGo app which lets you review topics and practice via questions.

    ● Stack Overflow - great for when you come across any programming problems

    ● Learn Code the Hard Way - courses on C, Python, Ruby, SQL, JavaScript and more

    ● General Assembly

    ● Udacity - some free programming courses available

    ● Udemy - free Python courses

    ○ Find more free Udemy courses here

    ● CodeFirstGirls - usually 8 week programs with 2 hour commitment a week

    ○ Data science, intro to python, intro to web dev

    ● LinkedIn Learning - can be free for some universities

    ○ Good for learning the basics

    ● Roadmap.sh

    ● Datacamp - data science resources in Python, R, SQL

    ● Dataquest - learn data science

    ● Coursera - introductory programming courses

    ● Codewars - daily coding challenges in languages of your choice

    ● Edabit - interactive coding challenges

    ● Edx - courses from top unis including Harvard, MIT etc

    ● Exorcism.io

    ● Educative.io

    ● Future Learn - has various courses on topics such as web development

    ● TwilioQuest - learn code through playing a video game

    ● JetBrains: Developer Tools for Professionals and Teams

    ● Atom.io - free downloadable software for Windows and Mac which lets you write and

    save code

    ● Khan Academy - learn HTML, CSS, JavaScript and SQL. Also has topics on

    theoretical computer science here

    ● Hacker Rank

    ● Spoj - solving problems

    ● Algoexpert - for interviews

    ● Programiz

    ● Codebar tutorials

    ● shorturl.at/oFGJP Summer Coding Crash Course by the Warwick Data Science Society (Python and R) - link takes you to the Linkedin post

    Resources you can access as a student

    ● AWSEducate

    ● Github Student Developer Pack

    https://google.dev

    Machine Learning

    ● Google Crash Course

    ● Coursera Course

    Virtual internship experience

    - https://www.insidesherpa.com/dashboard

    Hackathons

    ● MLH - official student hackathon league, also running online workshops regularly on

    their localhost website

    ● Hackathon UK - list of hackathons taking place across the UK

    Other

    Tech Resources

    ● Build your future with Google: https://buildyourfuture.withgoogle.com

    ● Guide to tech development at Google: https://techdevguide.withgoogle.com

    ● Practice questions: TopCoder

    https://leetcode.com/

    https://www.pramp.com/

    ● Cracking The Cod ing interview 6th edition

    ● Programming Interviews Exposed (Book)

    ● GitHub Free Programming Books - an extensive resource of free online resources for tech

    ● Google Digital Garage - simple courses on coding, machine learning, Google Cloud

    Platform

    ● Music to Code with (Piano Instrumental): Unravel by David Oriakhi on Spotify

    ● Hack The Box - Cyber Security, Penetration testing experience for slightly more

    intermediate learning.

    ● PicoCTF - Cyber Security, great place for beginners to learn about CTFs,

    pen-testing, etc.

    ● TryHackMe - Cyber Security, lots of 'rooms' for all abilities including CTF's,

    walkthroughs and King of the Hill games.

    ● Immersive Labs - Cyber Security and CTF skills training with a scoring system, often

    free with universities.

    ● WomenTechCharge podcast - hosted by Dr Anne-Marie Imafidon , the CEO of

    STEMettes.org , the second series built on the work of the first by highlighting some

    of the incredible women revolutionising our lives across STEM

    ● InterviewCake - programming interview questions sent to your email inbox

    Networking Resources

    https://jkellyhoey.co/jkhlinkedinguide-pages/

    https://brightnetwork.egnyte.com/dl/TX5f3wihYv

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

    Tough Coding Interview Question: Parking Lots

    Posted: 28 Oct 2020 06:11 PM PDT

    Today I got to the final round of three algorithmic coding interview sessions and got stumped pretty hard by the last question that was asked of me. Rather than let it go and move on with my life, I really want to see what a solution might look like. I'll do my best to describe it:

    You have a set of cars and parking lots.

    You know the distances from each car to each parking lot and the parking lot capacities.

    How would you make sure each car gets to a parking lot with a vacancy so that all cars travel the least amount of total distance possible?

    A small example might be:

    distance_car1_to_lot1 = 1

    distance_car1_to_lot2 = 10

    distance_car2_to_lot1 = 2

    distance_car2_to_lot2 = 100

    lot1_capacity = 1

    lot2_capacity = 1

    You can see here that if you were to take car1 and put it into lot1 and car2 into lot2, the distance traveled of all cars would be 101.

    Rather than doing that, taking car1 to lot2 and car2 to lot1 would result in a total travel distance of 12.

    How might you solve this, assuming there could be more cars and more parking lots than listed above.

    My language of choice for the entire interview process was Javascript but I suppose you can do what suits you.

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

    Advanced programming courses - FREE

    Posted: 28 Oct 2020 07:37 AM PDT

    Hi!

    This is Alex, the programming projects guy.

    TypeScript full stack programming

    Advanced Java programming with JavaFx: Write an email client

    Unit Testing for TypeScript/NodeJs Developers

    You can have these courses for free 3 days from now.

    Please note that these are not your typical Udemy "zero to hero" courses, so please first inspect their contents and free lectures, and enroll only if you like my teaching style.

    Please note that these courses are ADVANCED and FAST PACED, so they are NOT aimed at beginners.

    Wish you all the best!

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

    So, uhh... this sounds stupid, but how do I _use_ Tensorflow?

    Posted: 28 Oct 2020 09:01 PM PDT

    So maybe I'm just dumb and I don't understand. I know how to code in Python, but I've never really used machine learning before.

    My goal is to make a bot that can play Pokemon. I'm able to get the current state of the game as a JSON-formatted string, and I want it to output whether it should use a move or switch Pokemon (for a total of 9 possible combinations on any given turn). Because Pokemon is nuts with how much data actually gets used and how many exceptions there are to the rules, I don't want to have to program their entire battle engine.

    In my head, the JSON string representing the "battle state" is just an array of bytes, right? And an image is an array of bytes? So I should be able to take that JSON string, run it through Tensorflow, and have Tensorflow output a label 0-8. I can handle it from there easily enough.

    I guess another snag is that I don't want the bot to necessarily play like I do; I was thinking more of looking at the end battle state and determining if you won (good, do more of the stuff you did) or lost (bad, change some numbers).

    I'm looking at stuff like the classification tutorial or the text recognition tutorial and it all seems to be stuff like "Oh, yeah, just feed it a bunch of magic data from this magic directory we have and then it just works!" but doesn't really cover how to do any data that isn't in that magic directory.

    Am I completely barking up the wrong tree here?

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

    Sometimes you just need to step away.

    Posted: 28 Oct 2020 08:14 PM PDT

    I just wasted an hour trying to get my lowScore function to work properly, it was all that was left and it kept returning some completely insane number that kept endlessly puzzling me. I said fuck this and went to eat a snack and came back and read through it and saw double lowest set to 0 and then it says if its > scores but it is never greater than value at scores because its fucking zero.....

    double findLowScore(double scores[]) { double lowest = 999999999; /* LITERALLY TOOK AN HOUR JUST BECAUSE THIS WAS A ZERO!!!*/ //determine lowest score for (int count = 0; count < 5; count++) { if (lowest > scores[count]) lowest = scores[count]; } return lowest; 
    submitted by /u/Tarzeus
    [link] [comments]

    Please Help me with embedding a YouTube video into my webpage

    Posted: 28 Oct 2020 11:28 PM PDT

    I was looking for information about the new Kerbal space program game and found on their website a link to watch the trailer. When you click the link it doesn't go to YouTube but instead darkens the background and embeds the YouTube player into the middle of the screen.

    Can someone please point me in the right direction on how to do something similar on my own sites?

    This is the website I'm talking about.

    https://www.kerbalspaceprogram.com/game/kerbal-space-program-2/

    Thank you in advance

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

    If you're self taught through videos, etc., how do you know what is good coding practice and code quality?

    Posted: 28 Oct 2020 07:32 PM PDT

    I'm still quite new to programming and I've only been officially taught Java in uni but I've been learning to do javascript, react js, react native myself. I've found that if you're watching tutorial videos or tutorial posts, they tend to tell you how to do something but not often do they explain why they did something (eg. split a component into parent and child - yes I'm still shaky on understanding javascript). I've watched tutorials on introduction to react js, etc. as well as specific ones that are a bit more advanced to show you how to implement specific functionality.

    This is just a really basic dumbed down example in Java: I know it's bad practice to have all your code in a single class and even worse to have it all in a main method. But if I were new and followed a tutorial that coded everything in the main method and it accomplished what I wanted to do, I wouldn't know any better in the future, I'd have methods longer than 50 lines etc. Same with access modifiers, I know to make it private and slowly expand the scope as needed but sometimes people don't do that in tutorials for efficiency's sake and they don't always mention that it's bad practice.

    So how do you evaluate the quality of your code if no one's really explained the reasoning behind the most basic practices in tutorials (both introductory and more specific tutorials)?

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

    Illegal Argument Exception

    Posted: 28 Oct 2020 11:17 PM PDT

    I have a deployment package on jenkins and sfdx as follows

    stage ('Validate Package'){

     dir('my-first-package'){ rm = command "sfdx force:mdapi:deploy --checkonly --deploydir . -u ${sfdc_org_username} --wait 3 --json" sleep time: 3, unit: 'MINUTES' def robj = new groovy.json.JsonSlurper().parseText(java.io.Reader rm) if (robj["result"]["success"]) {echo 'validation successfull' validationStatus = true } else { error 'validation fail '} } } 

    And getting an error that the text cannot be null..how is it null? I have declared it.

    Java.lang.IllegalArgumentException: Text must not be null or empty

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

    Writing a webscraper that can deal with a Google Maps widget inserted into a page

    Posted: 28 Oct 2020 11:03 PM PDT

    I'm scraping data from a bunch of land listings from landsofamerica.com, like this one:

    https://www.landsofamerica.com/property/627-acres-in-Houston-County-Alabama/1956110/

    These pages have a Google Maps inlay that, in some cases, has the exact latitude/longitude of a property revealed by clicking the "Property Location" bubble. I would like to get that info so I can import it into a GIS database.

    I already have a scraper written in Python using BeautifulSoup and the requests module. So far as I can tell, this is dynamically-loaded content that this kind of setup can't fetch -- although I can't seem to locate the page code that does this.

    I'd like to avoid using a web driver, since that would require a browser running on my (headless) server. How would I parse such a thing? Can I?

    It's not an insane loss if I can't get the lat/long data, but it would make integrating the scraped data to my GIS database a lot easier.

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

    For those who have Brilliant Premium, is it worth it?

    Posted: 28 Oct 2020 10:57 PM PDT

    I wanted to get Brilliant so I can understand core concepts of Computer Science and Programming better, before I actually get into anything. I was wondering if Brilliant is worth the $145 dollars a year and if there is a better *Freeium application than Brilliant please let me know. Thanks!

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

    In a singly linked list, when do I know to use a dummy node?

    Posted: 28 Oct 2020 07:04 PM PDT

    I'm having difficulty with leetcode questions like: https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/

    Looking at its solution, it seems the best way to solve it is with a dummy node. It's not clear to me when or why you should use them. Any help would be appreciated

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

    Compare latlong objects?

    Posted: 28 Oct 2020 10:43 PM PDT

    I'm using leaflet with a latlong object that I want to compare with another. What I want to ultimately accomplish is if this location is near the other do x.

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

    Can you basically program with just AWS?

    Posted: 28 Oct 2020 06:35 PM PDT

    I started playing around with AWS today to see if I can deploy a chat app I built into production there. I was blown away by how many tools there were - I was expecting basically "rent a Linux box" and "rent a Linux box with a database on it that we manage for you", but there's tons of tools. In particular I came across this: https://aws.amazon.com/blogs/compute/announcing-websocket-apis-in-amazon-api-gateway/, basically allowing one to build a chat application similar to what I had built but using AWS.

    Why would someone do the usual thing of coding up a program and deploying it on a Linux server as opposed to putting it together using a bunch of AWS tools? What's the limit?

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

    Want to try and back-end but hate front-end

    Posted: 28 Oct 2020 06:25 PM PDT

    Hello all,

    I've been reluctant from learning web development because I absolutely do not like HTML / CSS or any of the UI / ux design aspects of front end.

    What are some good resources / projects I can used to learn backend without ever dealing with front end? I tried looking into it myself but it seems like it's only front end tutorials or involve HTML / CSS.

    Thanks everyone!

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

    will leetcode help me with my pet projects

    Posted: 28 Oct 2020 09:37 PM PDT

    i am a web developer who wants to learn leetcode in order to build better pet projects. So i was struggling to build stuff while learning web development and wasn't able to write most of the functions correctly so i decided that i shall solve some leetcode questions in order to better understand stuff and then i solve 2-3 easy questions in leetcode with a lot of difficulty (ofcourse after seeing the answer) but most of the questions dont seem familiar to web development, i mean in order to get better at web development should i pause my pet projects and start learning some leetcode to build better and stronger applications?, or is leetcode only for interview purposes, by learning leetcode i mean i'm only planning to solve the easy level one's and a few medium level questions, wont be going to the hard one's until and unless i am planning to go for competetive programming,

    Excuse my English

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

    Very Very Intro Level Python Problems

    Posted: 28 Oct 2020 09:30 PM PDT

    I am struggling with these course problems as I am just starting out with coding and my professor is not the best at teaching the concepts he expects us to apply. Nonetheless, here is are the Problems:

    Problem 1:
    Create the function squares()
    which, for an input parameter x, returns a list of squares of first ⌊x⌋ natural numbers, so that the i-th element of the returned list equals i2. Here ⌊x⌋ is the "floor of n", i.e. the largest integer that is not larger than x. If x<1, use the statement: raise ValueError("x must be greater than or equal to 1") to report the error. Do NOT change the error message.

    The components of the list should be integer type. Here are some examples:

    squares(5) [1, 4, 9, 16, 25]

    squares(5.8) [1, 4, 9, 16, 25]

    squares(0.3) ValueError: x must be greater than or equal to 1

    From my understanding, I need to create a function that will return the square values for each integer value up to the number I specify, as long as the number I specify is greater than one.
    What I have so far is:

    def squares(x):

    if x > 1: return x**i

    else:

    raise ValueError("x must be greater than or equal to 1")

    As you can see, I am quite unfamiliar with how to do this, as this code returns a singular value of the square of what I input as x when I need for x to serve as the limit for how many positive integers I am going to square by themselves.

    Problem 2

    Create a function mult() which accepts up to 5 numbers (integers and/or floats) and returns their product. Start from def mult(??) statement (here, ?? should be replaced by appropriate list of input parameters; you may want to set default values, as well). Some examples of function calls and their outputs are as follows.

    mult(3,-7)

    -21

    mult(3.0, -7.)

    -21

    mult(4.3)

    4.3

    mult(2,-5,4.0)

    -40

    mult(3.2, 2.0, 2)

    12.8

    mult(2, 3.5, 0, 1, 93)

    0

    This question seems straightforward enough, but in all honesty, I have not gotten to put much thought into it as all of my time so far has been trying to learn how to do problem one.

    I apologize for the rookie questions (I should have listened to ratemyprofessor and taken another course). Any help or guidance at all would be greatly appreciated!

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

    Mocks, stubs and fakes? Whats the difference?

    Posted: 28 Oct 2020 09:29 PM PDT

    Hello everyone, as the title states Im looking to understand exactly the difference between mocks, stubs, and fakes. Now, I have worked with mocks and mocked functions with Jest for ReactJS, and whenever I look this up in the context of Jest, I have trouble understanding the difference on a technical level. Can anyone put this into laymen's terms and provide some simple examples to illustrate the difference between these? Also, would you be able to explain what the spyOn() function does when mocking in Jest? Thank you.

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

    How can I check if a CPU fan is working on my PC with software (for a home server)?

    Posted: 28 Oct 2020 09:24 PM PDT

    I'm making a home server, and I want to constantly check if my CPU cooler is working, or if it died (I don't want it to die in the middle of the night and cook itself until I figure out the issue).

    I want to constantly check temps and AIO pump/fan RPM off of the motherboard headers, and if it reaches a certain threshold, or the pump/fan turns off, then I want to send an email to my email account and issue a "sudo shutdown now" command to my server (it will run Unraid, I think I can do this, please correct me if I'm wrong).

    I'm open to any language, but I know C++ and Python best, and Docker containers and Bash shellscripts would also work really well here. I'm open to any suggestions regardless of language, though.

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

    Chess board is breaking apart when browser is resized......

    Posted: 28 Oct 2020 05:37 PM PDT

    I have created a simple html/css/javascript application that spits out a random chessboard coordinate and waits for the user to click the correct tile, however my chessboard is breaking apart when resized to a smaller window & looks sloppy. I have tried chaning the css "display" of the chessboard div as well as other divs & im not fully understanding. Any help / criticism would be greatly appreciated as I am self teaching.

    codepen: https://codepen.io/jcodeatl/pen/mdEXXmM

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

    No comments:

    Post a Comment