• Breaking News

    Tuesday, September 15, 2020

    Stripe Workers Who Relocate Get $20,000 Bonus and a Pay Cut - Stripe Inc. plans to make a one-time payment of $20,000 to employees who opt to move out of San Francisco, New York or Seattle, but also cut their base salary by as much as 10% web developers

    Stripe Workers Who Relocate Get $20,000 Bonus and a Pay Cut - Stripe Inc. plans to make a one-time payment of $20,000 to employees who opt to move out of San Francisco, New York or Seattle, but also cut their base salary by as much as 10% web developers


    Stripe Workers Who Relocate Get $20,000 Bonus and a Pay Cut - Stripe Inc. plans to make a one-time payment of $20,000 to employees who opt to move out of San Francisco, New York or Seattle, but also cut their base salary by as much as 10%

    Posted: 15 Sep 2020 02:58 PM PDT

    Moment.js Throws in the Towel: "It is not dead, but it is indeed done."

    Posted: 14 Sep 2020 09:54 PM PDT

    PostCSS 8.0 release: new plugin API and CSS parser changes

    Posted: 15 Sep 2020 09:01 AM PDT

    Dos and Don'ts of code reviews

    Posted: 15 Sep 2020 02:31 PM PDT

    As a long-time developer who has reviewed a lot of code, and had a lot of code reviewed, I would like to share some of my Dos and Don'ts of code reviews:

    • DO point out logical errors.
    • DO point out possible memory leaks or performance shortfalls.
    • DO give examples for resolving potential issues.
    • DO ask questions related to functionality.

    • DON'T withhold approval for stylistic deviations.
    • DON'T withhold approval for stylistic deviations.
    • DON'T withhold approval for stylistic deviations.
    • DON'T withhold approval for stylistic deviations.

    Thank you!

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

    Chrome Dev Tools now detects large JS libs and recommends alternatives

    Posted: 15 Sep 2020 04:39 AM PDT

    Trying to send email from an AWS EC2 Instance

    Posted: 15 Sep 2020 12:38 PM PDT

    Hi,

    I've been banging my head against a wall for the past day trying to get a PHP app that works great on my localhost (XAMPP), to work the same way in AWS Lightsail.

    What I need help with is getting sendmail on the ec2 instance (preconfigured by Lightsail) to work with SES. Everything in the app is functional EXCEPT the part that I need the most (sending an email to me with a product design)

    Here's what I've done so far:

    • Set up a Lightsail Instance
    • Connected to it via the in browser SSH
    • Connected to it via Filezilla with my .pem key that I converted to .ppk using putty gen.
    • Uploaded my htdocs folder
    • Followed EVERY Direction to the letter on this AWS Doc
      • The only issue that I had was when I installed all the packages, I wasn't able to locate cyrus-sasl-plain, otherwise I went down the checklist and did everything on the doc.
    • Sent test email from my SES account, and had no issues, but was not successful when I tried to send a test email using sendmail in the terminal using this command:

    /usr/sbin/sendmail -vf [sender@example.com](mailto:sender@example.com) [recipient@example.com](mailto:recipient@example.com)

    Also, needless to say, the app could not send an email either.

    • Not very familiar with linux, but I googled some troubleshooting, and saw that there are a lot of limitations for ec2 using port 25 because of the potential for abuse, but my SES Email is verified, and it's the same address that I'm trying to send to, so wtf?
    • Using this guide, I installed telnet and to see if i could connect to the aws smtp servers using ports 587, 25, 465. The only thing that gave me a timeout error was 25.

    So, I think that I've isolated the issue down to being blocked on port 25. Is this because of something I could have done in error, or is this AWS stopping me, and how do I fix this?

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

    Is web dev/web design dying in the next 10 years because of AI ? Or web dev/web design is the future ?

    Posted: 15 Sep 2020 01:20 PM PDT

    There's a lot of rumours like: " Artificial Intelligence will transform web app design/development by automating the tasks that are related to the developers/designers." I think I should change my career path if AI will automate the developers/designers tasks. What do you guys think ?

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

    Hidden Features of Chrome DevTools

    Posted: 15 Sep 2020 10:29 AM PDT

    Learn React the Easy Way

    Posted: 15 Sep 2020 03:55 PM PDT

    My team really liked this React guide I put together so I decided to open source it on GitHub. When I wrote this, my goal was to allow devs I onboard to beat the React learning curve in under an hour. Hopefully you find this useful :)

    https://github.com/stuckinaboot/crash_courses/blob/master/react_crash_course.md

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

    OAuth 2.0 Resources you can actually understand

    Posted: 14 Sep 2020 04:52 PM PDT

    OAuth 2.0

    Have you ever tried to use an API that belongs to a large corporation like Spotify, Twitter, or Facebook? If you have you've most certainly run into OAuth 2.0. The first time I saw it like most I was pretty confused, and I didn't really understand it. Eventually I came to grips with it a bit, but never really intuitively understood it. I would just google "why isn't x working" and "this thing failed what does that mean?" until I got things working. It wasn't until I found the resources below that I really understood how things worked.

    a quick note: I'll use OAuth and OAuth 2.0 interchangeably. They are different, but here I'm always referring to OAuth 2.0

    Free

    1. OAuth 2.0 and OpenID Connect in plain english - This is a video from Okta (an identity and access management company), and they do the best job I've ever seen of explaining OAuth 2.0. Personally this video took me from kinda understanding OAuth to intimately understanding it. Nate (the guy in the video) explains what things where like before OAuth 2.0, what problems it solves, how it works at a high level and detailed level, and finally does some demos to really solidify everything. One thing I really enjoyed about this video is that it talks about OAuths historical context, which isn't usually mentioned. That context provides the information for what OAuth is trying to do and why. I can't recommend this video enough. If you've struggled with OAuth in any way I think this video will help tremendously. It's one of the few resources I've found that actually makes OAuth simple to understand (finally!).

    2. OAuth 2.0 Simplified - Describes its self as "... a guide to building an OAuth 2.0 server. Through high-level overviews ..." I think most people won't need to know how to build an OAuth 2.0 server. That being said, it's still a great resource filled with valuable knowledge. Additionally, sometimes in order to learn things we need to look at them from different angles, and implementation is an angle worthwhile viewing. This resource is separated into 25ish articles. It covers everything from client registration to authorization grant types. If you're not understanding how a particular part of OAuth works then this is a great place to look.

    3. OAuth 2.0 RFC - The RFC (Request for comments) is where OAuth 2.0 is specified. Every detail you could possibly want to know about OAuth 2.0 is in here somewhere. It's a lengthy document so prepare a cup of coffee before you sit down and read the thing.

    Final Thoughts

    If you want to understand OAuth 2.0 at an intuitive level then I'd recommend these resources.

    • OAuth 2.0 and OpenID Connect in plain english
    • Okta oauth website

    On top of these resources I'd also suggest getting your hands dirty. Spotify is a great example of an OAuth API you can play with. Additionally, Spotify has published an authorization guide that shows you how OAuth functions with their API.

    Finally if you truly want to be an OAuth master then use the above resources and read the RFC in it's entirety

    • OAuth 2.0 RFC

    That's that! If you enjoyed this article then you can stay up to date with my writings at Learning Computations. Every week you'll get an email covering a CS/programming topic that includes resources, info, and a path for learning that particular topic!

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

    writing an HTML & CSS book (adding to portfolio) - any tips, advice, comments, pro/cons

    Posted: 15 Sep 2020 03:46 PM PDT

    Hello webdev redditors,

    I recently graduated with a Bachelor of Science - Information Technology - Software Development focus. I am looking to get a job in webdev. I've worked various jobs that had webdev work but never officially gotten a web developer position.

    As a side fun project to add to my portfolio. I want to write a book on learning HTML & CSS.

    The book will be a guide on making a website that is all about learning HTML & CSS. i.e creating an HTML & CSS learning site with a book. There are other special twists to how I am writing it but that's the basic idea.

    Does anyone have any experience writing a book on that subject? any tips from fellow webdev learners? Any books you think are very good in this subject? similar books?

    • no JavaScript will be on the book. It is meant to explore HTML & CSS thoroughly.

    I will try to promote the book quite a bit and see if I could make a little money from it, but mainly it is a portfolio idea to increase my chances of getting hired. I enjoy teaching, and always had the goal of writing a book.

    The project is meant to showcase the competence of HTML/CSS, teaching, creativity, and communication/writing skills.

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

    What is this process / tech stack call?

    Posted: 15 Sep 2020 03:46 PM PDT

    I'm an intern working on a small startup, i'm curious what this tech stack call.

    The process is primary. HTML in PHP -> Process on Javascript -> PHP Server -> add to local JSON.

    Sorry if this question seems really weird. but i'm newbie here.

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

    can I layer an embedded video over an image?

    Posted: 15 Sep 2020 03:35 PM PDT

    I've been trying to layer a youtube embedded playlist over an image of an iPod nano so it looks like the iPod is playing music but I just can't get it. Here is the link to it:

    https://cityjuice.neocities.org/Breanna.html

    warning I am self-taught; sorry if it is gross...

    submitted by /u/6kitten6
    [link] [comments]

    From desktop version to mobile version

    Posted: 15 Sep 2020 03:12 PM PDT

    Hi, I'm currently working on a project, my main site is default.aspx ... but i want that whenever a user is trying to access to my website on their phone to redirect them to de site mobile.aspx

    .....

    what is the best way to do this?

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

    Humans.txt and ads.txt among the outer links?

    Posted: 15 Sep 2020 02:51 PM PDT

    When I looked through the website statistics, I saw unter the label of "visits from outer links" the following links: mysite.com/humans.txt and mysite.com/ads.txt. I didn't put those files to my site, what are those and how did they got here? Thanks for your help.

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

    Question for People who use TailwindCSS

    Posted: 15 Sep 2020 02:42 PM PDT

    Specially with React, How do you handle common components like Dropdown, Modal, Drawers, Toast,... etc. Basically basic components so that you don't use UI Framework just for them.

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

    Why designing for open source can be so difficult

    Posted: 15 Sep 2020 02:02 PM PDT

    Is it necessary to test your website on different operating systems?

    Posted: 15 Sep 2020 02:00 PM PDT

    How to show PostgreSQL data on Google Maps?

    Posted: 15 Sep 2020 01:55 PM PDT

    Hey there,

    I have a PostgreSQL db and table with PostGIS installed. The table has ~250 rows of data (shop names, addresses and lats and longs). I am making a webapp using Django framework to visualise these shops (and more) on a map I've implemented through JavaScript.

    Google provides a tutorial using MySQL I'm wondering if anyone knows how/has done the same thing with Postgres?

    I managed to do it on leaflet but that was by using a django for loop in an html template, and I believe I should really be working with the Postgres data in the javascript file, just not really sure how to get there.

    I've done a stack of googling about this specific use case and can't find much beyond one short tutorial that seems to be incomplete. Otherwise most of the info on stack/elsewhere is about saving google maps data INTO postgreSQL not showing PgSQL on a google map.

    Hope that makes sense and I'd be grateful for any help!

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

    Is this HTML-CSS playlist from Traversy Media good for complete beginners?

    Posted: 15 Sep 2020 01:41 PM PDT

    https://www.youtube.com/playlist?list=PLillGF-RfqbZTASqIqdvm1R5mLrQq79CU

    I'm currently learning HTML - CSS and I love Traversy's teaching so I decided to follow one of his playlist but it looks so complicated for a newcomer. Is it good to follow this playlist? Or should I move to another one?

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

    Humans.txt and ads.txt among links from outer sites

    Posted: 15 Sep 2020 01:01 PM PDT

    When I looked through my website's statistics, I noticed that under the label "links from outer sites" ( lame translation, sorry) there is a mysite.com/humans.txt and a mysite.com/ads.txt What are those, and how did they get there?

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

    Async web scraping from a hosted app

    Posted: 15 Sep 2020 12:59 PM PDT

    I'm trying to make a web scrapper that scrapes data from Yahoo Finance every minute. I need to make 500 requests (for 500 different stocks), which it will then pass to a web server of mine. Ive made asynchronous requests in python using grequests and asyncio/aiohttp that work locally, but can't get anything to work on the hosted app (currently using Azure). Is there a simpler way to go about this? I'm not asking for any specific debugging answers, but more of an architecture standpoint. Am I coming at this correctly, or is there something that I'm missing?

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

    MongoDB setup on my Linux mint is filled with errors. Please help me!

    Posted: 15 Sep 2020 12:42 PM PDT

    I'm using this documentation to install MongoDB in my system. After installing I run:

    mongo 

    After running it, I have the following error:

    MongoDB shell version v3.6.8 connecting to: mongodb://127.0.0.1:27017 2020-09-16T00:47:54.384+0600 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused 2020-09-16T00:47:54.384+0600 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:257:13 @(connect):1:6 exception: connect failed 

    So I run mongod using the "mongod" command and then I run the "mongo" command and it's same. Some people recommended that I enable mongod service, I tried this command:

    sudo systemctl enable mongod 

    And it says:

    Failed to enable unit: Unit file mongod.service does not exist. 

    So I went on looking for solutions, some people recommended to delete the mongod.lock file, so I put the following command:

    sudo rm /data/db/mongod.lock 

    And the terminal says:

    rm: cannot remove '/data/db/mongod.lock': No such file or directory 

    I'm trying to fix this for hours at this point, no way I can run the MongoDB shell in my system. Can anyone please help me with this, I would be really grateful. Thank you so much!

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

    No comments:

    Post a Comment