webdev: reddit for web developers

Subscribe to webdev: reddit for web developers feed
Updated: 3 min 2 sec ago

Website video live streaming—what tech?

Fri, 11/16/2018 - 23:31

I’m relatively new to web dev, but I was wondering how someone would build something similar to Twitch? Even just a very simple stream of your desktop or camera.

Could this be done with just Flask? Or maybe MEAN stack instead?

submitted by /u/johntc121
[link] [comments]
Categories: Web Development

Need some help about responsive window event listeners [React]

Fri, 11/16/2018 - 23:00

Thanks for helping.

I am using React to build a responsive page. I have attached scroll event listener on componentDidMount and does execute certain functions depending on window.scrollY.

My question is: how can i make sure that the responsiveness is the same for all users?

What is the best formula to determine that the responsiveness will be the same for all users with different screen sizes?

I have tried something like...

if (window.scrollY * window.innerHeight > 2000) { enterAnimation(); } else if (window.scrollY * window.innerHeight < 2000) { exitAnimation(); }

my goal is to have a single page layout and as the user scrolls down, new components and interactions come into play. But i want it to be the same for all users.

If there is any better way, please feel free to criticize! thank you. much appreciated!

submitted by /u/knyg
[link] [comments]
Categories: Web Development

Interview in 2 days time for a Mid PHP Full Stack Developer

Fri, 11/16/2018 - 22:02

Hey guys, I've got an interview in 2 days time for a Mid PHP Full Stack Developer position that notes essential skills being Laravel and Javascript frameworks. I am confident with my practical knowledge but being my first tech interview I'm unsure what I should be preparing for. Has anyone been in a similar position and have any tips? Cheers!

submitted by /u/taylor-the-creator
[link] [comments]
Categories: Web Development

Have you ever sold

Fri, 11/16/2018 - 21:36

Hello webdev, I was thinking a few days ago to write some one page themes, to sell them for around 20 - 30 bucks for beginer developers or for people that can adapt them on diffrent projects, being able to also modify the code. Now my questions are: Is it a bad ideea? Would anybody buy? Have you done anything similar to this?

submitted by /u/unudoitreiunu
[link] [comments]
Categories: Web Development

XSS Attacks within iFrame Sandbox

Fri, 11/16/2018 - 20:57

When creating a pastebin environment similar to Codepen and JSFiddle is putting user scripts inside an iFrame sandbox enough to protect yourself from xss attacks?

Currently my iFrame looks like this:

<iframe name="pp_project_result" allow="midi; microphone; camera; encrypted-media;"

sandbox="allow-forms allow-scripts allow-modals allow-popups"

allowfullscreen="" allowpaymentrequest="" frameborder="0" allow-same-origin

srcdoc="<?php render_user_code() ?>" style="width:100%; height:100%;">


I thought it may be best to remove "allow-same-origin" but YouTube requires it when you want to embed videos.

The question is if the iFrame is served by the same domain as where the user data is stored, will this open myself up to xss attacks? From reading the documentation if the "sandbox" attribute is used then I should be OK, however I want to be extra certain if this is the case...!


submitted by /u/pixelpad_dev0
[link] [comments]
Categories: Web Development

Cloudflare help?

Fri, 11/16/2018 - 19:54

I've got a domain. I bought a second domain. I want that second domain to be exactly the same as the first. Same rules, same config, etc. But I don't want a redirect. How can I do this? Thanks!

submitted by /u/UnexpectedLemon
[link] [comments]
Categories: Web Development

[Showoff saturday] Web based unused css project

Fri, 11/16/2018 - 19:33


As the title states this is ment for the Showoff saturday event, It is technically saturday for me so hit me with a stick.

I was bored at work and needed a way to kinda clean my CSS code from unused HTML code, I found some libraries and NPM systems for it but I dont really like installing them for such small things as this so I sat down and started working on a web based system for fun! It's open source and I would love for others to come test it out and help contribute further if they feel like it.

The system can be tested / used:


and the github repo:


Current features:

  • "keep" feature, select selectors that the system deemed unused and keep them in the generated CSS file
  • Multiple HTML and CSS files are accepted
  • Multiple Class support

There is currently some issues:

  • Does not include dynamic selectors from JS
  • Some bugs might appear, if so please report it or pull the repo and push a fix
  • Generated CSS code NEEDS to be ran thru a CSS beautifier, I have not had the time to implement this but I want to and will sometime later
  • Works best with pure CSS code, SCSS works decent if no advanced features are used
  • Operators such as (>, ~) will be ignored
  • Animations are ignored and will be auto kept

TL:DR; Very simple system that works best with pure HTML + CSS to check unused CSS code in files.

submitted by /u/axesve
[link] [comments]
Categories: Web Development

ProcessWire CMS

Fri, 11/16/2018 - 18:52

Hi everyone

I just wanted to share what absolute treasure I found today: ProcessWire

I was always looking for a good CMS, with a nice backend, easy to use, easy customizable and one with which I can create MY styles/templates easily. Today I found ProcessWire and I'm blown away. It is just amazing and has so much potential!

Has anyone of you worked with it before? What is your story with it? Any modules I need to know or tips for a beginner?

Thanks & Bye, DK

submitted by /u/DamonFun
[link] [comments]
Categories: Web Development

What a difference 6 months make.

Fri, 11/16/2018 - 18:38

Well here is my new and improved portfolio.

Please let me know what you think. It’s not quite finished yet. Form working and copy needs adding etc.

Here is my new portfolio. It’s early stages yet. Want to make testimonials a slider etc. Links are not there yet either. Lol.


Here is the one I did 6 months ago.


The difference is crazy. Didn’t really realise how much you improve just by doing and giving it time.

Let me know what you think. Improvements or things that bug you.

submitted by /u/Jamiemufu
[link] [comments]
Categories: Web Development

Getting started as freelancer

Fri, 11/16/2018 - 17:51

Hi all, I wanna ask to the freelancers, How did you start? 2019 will be my last college year, I have already developed some web systems, currently I'm working in an IT consulting but the money is too low (less than $5/hour) just because I'm student. I'm RoR and Laravel developer. Thanks.

submitted by /u/alexaxms
[link] [comments]
Categories: Web Development

Graph web tabled app/site?

Fri, 11/16/2018 - 17:51

Anyone know of a good app/plugin for for turning html tables into a graph within the browser similar to this one? Does not need to be a chrome extension can be a site where have to copy/paste in data.


submitted by /u/toastertop
[link] [comments]
Categories: Web Development

Intro to Logarithms Big O

Fri, 11/16/2018 - 17:46
Categories: Web Development

Question related to CMS and Shopping lists as a beginner front-end developer.

Fri, 11/16/2018 - 17:25

Hello everyone.

I've been learning front-end web development (html,css,vanilla javascript) and i also like fashion and would like to start my own clothing line.I made a prototype site for my clothing line, but it doesn't have a CMS and a Shopping card list from where the users can buy the stuff they picked or see them listed.

So my question is, how do i make a CMS and a shopping list? Can i do it if i have no back end knowledge and if not can i make a CMS and shopping list with wordpress or similar sites while using my code for the front end or do i have to remake the site?

I hope i explained my issue well,thanks in advance.

submitted by /u/gioruidae
[link] [comments]
Categories: Web Development

I've challenged myself to build a website in 21 days that makes enough money to pay for my dog's food.

Fri, 11/16/2018 - 17:00

I have been slacking. So, to keep me on task I built a website that counts down to my deadline. If it works out I'll start doing regular challenges like this and see if anyone wants to join in.

If you're interested you can follow along here: https://countdown.fail

Day 1 is about to end, so I've got to get started building the back-end. I've never coded under pressure before so any advice is much appreciated. Let me know what you think.

submitted by /u/RespectableCafe
[link] [comments]
Categories: Web Development

MediaWiki on Apache asks for password in every single directory?

Fri, 11/16/2018 - 16:47

I'm trying to set up a Mediawiki instance on a shared hosting service and what I'd like it to do is to ask the user for username and password once and never again until the browser cache is cleared.

What actually happens is that when a new asset is loaded from a subfolder during the loading of the site, it asks the password again, and asks at seemingly random times again, probably for an asset residing in another folder.

I can only use .htaccess, I don't have access to the Apache settings.

The content of the .htaccess file is the following:

RewriteEngine On # Always redirect HTTP to HTTPS RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] <If "%{HTTPS} == 'on'"> AuthType Basic AuthUserFile /var/www/exampleurl.com/wiki/.htpasswd AuthName "Username and password required" Require user exampleuser </If> RewriteRule ^/?wiki(/.*)?$ /index.php [L] RewriteRule ^/*$ /index.php [L]

Any idea how can I make it ask for password only once and never again?

submitted by /u/domenix
[link] [comments]
Categories: Web Development

How do i set up the domain email?

Fri, 11/16/2018 - 16:10

I just uploaded my website on digital ocean and I have no ideea how to set up the email adreses for exaple@domain.com

submitted by /u/unudoitreiunu
[link] [comments]
Categories: Web Development

Been out of the loop for 2 years, what is expected for Intermediate Front End Devs?

Fri, 11/16/2018 - 15:46

I have been working as a PHP/WordPress developer for the past 2 years. My portfolio is mainly front-end and back-end NodeJS FreeCodeCamp projects, which I found to be very "beginner".

I am thinking of leaving my job, but I need to brush up on my React and front-end skills overall.

What kinds of projects should Intermediate Front End Devs be expected to do? I kind of need project ideas since my portfolio is out of date.

submitted by /u/oceanadapter
[link] [comments]
Categories: Web Development