>Free beginner resources to get started Get a good understanding of HTML, CSS and JavaScript. developer.mozilla.org/en-US/docs/Learn - a good introduction to HTML/CSS/JS and Node.js or Django freecodecamp.org - curriculum including HTML/CSS/JS, React, Node.js, Express, and MongoDB javascript.info - curriculum providing a strong basis in JavaScript
>Further learning resources and documentation developer.mozilla.org/en-US/docs/Web - excellent documentation for HTML, CSS & JS hackr.io - crowdsourced collection of tutorials from across the web for learning languages and libraries (ignore sponsored stuff, look at upvotes) learnxinyminutes.com - quick reference sheets for the syntax of many different languages (generally not sufficient on their own for learning something, but very helpful) pastebin.com/gfBPg24A - Everything PHP
>Asking questions jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS 3v4l.org/ - Use this and post a link, if you need help with PHP/HackLang
website.com/username would go to the profile of `username`.
Currently it's like website.com?user=username which is dumb.
I could do this with express obviously but this site needs to have a php rear.
Nathan Cruz
I'm trying to make a jwt authentication optional by doing the following .all('/*', ((req, res, next) => req.headers.authorization ? passport.authenticate('jwt', { session: false }) : noStrategy)(), (req, res, next) => { next(); });
function noStrategy(req, res, next) { if (req.login.username && req.login.password) { let req.user = {} // a get function to authenticate credentials and return user body } }
I have a feeling this is absolutely retarded but I'm not sure
you can replace /user/ with just / if you want it to be root level but i added /user/.
Luke Green
forgot to write this
myweb.com/user/banana would call the content from myweb.com/user.php?q=banana
Caleb Miller
Does Firefox on Linux have a "Turn off GTK theming I want to see how this looks to a normal windows or mac user" button or plugin?
Jack Miller
Yeah it does
You can specify a light GTK theme to use for rendering webpages in about:config. This is great because your system theme will still apply for menus etc. but the webpages will be rendered as they are with light themes.
Navigate to about:config in your Firefox browser Right click and select new->string Enter widget.content.gtk-theme-override as the name Enter a light GTK theme that you have installed on your system for the value. e.g. Arc Restart firefox.
000webhost dude from the other thread who thought was being a smartass. >test site using a seo tool >502 Bad Gateway someone recommend me a (dirt?) cheap managed host please.
I'm developing a website where part of its function is to listen for audio and flag a particular decibel level, or throw up a flag when a relatively loud noise is heard. I'm struggling to find resources that cover listening and interpreting audio in JS. Anyone have any resources I can look at, or know where to start looking?
Is the MDN page for the Web audio API not helping?
Logan Parker
Postgres question lads. How do i create a function to be called from a trigger to update a given timestampz column to now? Currently have separate functions for each column (e.g. created_at, updated_at). Wondering if I could just have one with a param of column name? Not that big an issue, just wondering if this could be done tidier.
Brayden Watson
This is a great start, thanks
I thought I had looked there before but the article I read discussed playing audio. I found the correct article this time, thanks
Carson Young
why the fuck does onLoad trigger before an image is fully rendered? Is there an event for when the image actually is rendered? Using react btw
>why the fuck does onLoad trigger before an image is fully rendered? Because it triggers when the image data is loaded via the web request, that's what 'load' means in this context.
>Is there an event for when the image actually is rendered? I'm not sure, not that I know of.
Have you tried calling a settimeout(0) for your handler from onload? That pushes a callback to the end of the event loop, so the browser might have time to render before that gets called.
e.g. img.addEventListener('load', (e) => { setTimeout(() => { // try doing the thing here, the image might be rendered at this point, idk }, 0); });
Ethan Nguyen
This seems very difficult. A lot is dependent on the gain the microphone has, if it has a preamp, if it's a good microphone, etc. I can crank my omnidirectional so it peaks when there is no sound and I can hear my cat piss down the hall. Not sure how you're planning on accounting for all of that.
Julian Ross
does anyone else just use React + a bootstrap css file and just add/remove bootstrap classes to divs on click events? this seems like the fastest way to create something, but I feel like a fag for doing it
Carter Garcia
I have read pretty much through the book Eloquent JavaScript and I think I have learnt a lot about JavaScript. Now I am starting to get into Web Development and I can't answer one important question on my own. I have taken short looks at frameworks like React, Vue and Hyperapp but I can't figure out why I can't solve the state issues, which they promise to solve, on my own with state capturing things like closures. I get that they make many things more simple, especially they seem to modulize my potential app, what is great. But if I want to write a small website, what advantage do they offer regarding state, what I could not solve with closures? I was thinking that I could state capturing functions, like closures, bind to event listeners and go from there. But I am probably wrong and missing some big things. So please, tell me...
Christian Brooks
Confession time. I've been a web developer for 9 years now. It's gotten to the point that I barely ever write my own code anymore. If I need to accomplish something, I just look up what I think will bring me up a solution. 99.9% of the time, I find something. Then I just edit whatever it is for my needs.
This is especially true for front end shit. I fucking hate the front end with a burning passion. Used to love it, and it's what I started with. If I get assigned a whole front end, you best believe I'm looking through github repos/codepens for a front end to use before I start doing anything. Thus is web development for me right now. I fucking hate it, and am working towards a mathematics degree to get the fuck out.
Nathaniel Brown
I was thinking about sampling the amplitude at the smallest instance I can and comparing the next instance to the one before it to see if there's a significant positive difference, and calling the flag.
How much memory is too much to hog on the user's PC? I wanted to preload a bunch of shit on the website for speed, would end up being like 100-200mb. Is that too much?
Juan Peterson
bump
Michael Long
context api vs callbacks vs redux, which would you use for a small webapp?
Thomas Thomas
Honestly yes, especially if on mobile. Why would you load so many data at once?
because I don't want my website waiting "on runtime" for this shit to load
Justin Barnes
React hooks kind of eliminate the need for redux for small apps.
Liam Young
Would you agree that both Flask and Django are basically fags of brothers?
Jonathan Russell
Somebody told me that learning React is like fucking snakes. Is it true?
Ryder Kelly
I've been enjoying it so far (I'm not the lad you're replying to but hey, I might as well chime in) It's a "different" way of thinking your webdev stuff but it's quite fun once you get the gist of it
Is it possible to modify this package to take in audio input in realtime from the browser microphone? I didn't see any mention of that capability in the documentation but I'm piss new at JS so I could be missing something obvious
Cooper Murphy
I would rather fuck a bag of meth than program in Kotlin. Everyone knows PHP is king.
However, just: .embed-IeVjo6 { z-index: 101; position:fixed; }
Works fine as an overlay. What gives?
Levi Barnes
why can't I have something like this in react: let style="right: 0px"; return ()
is there even a solution if I wanna use very different styles and pass them as props? Can I really only use control variables and if/else it?
Sebastian Cook
works in vue :')
Jonathan Martinez
are people actually using hooks in production?
Jason James
faggot let style = {right: "0px"}; return ()
Adrian Green
a bit rude but thanks anyways sorry I'm quite new to react
Carson Rodriguez
in the long run, is it better to get in some kind of company or just hunt for remote jobs my understanding is that remobe jobs are not as stable in the long run and future its more "serious" when you actually go to workplace
Andrew Hall
Recently my company got a "UI/UX" department. It's basically one stereotypical hipster faggot in skinny jeans, plaid shirt and glasses who looks more like a gay barista. He doesn't even touch HTML/CSS. We cool guys (devs) including the boss use every opportunity to bully him. We pretend to be impressed by his shitty designs and make him do hundreds of mockups a day, only to go with something completely different in the end. You can hear him crying from the bathroom at least twice a day. I don't need no barista looking fag to tell me how to do my job.
In this example mouseover bound to div with an ID. What if I only have a class name and no id?
Colton Garcia
Fuck float.
Isaiah Fisher
alright /wdg/ I really need money, like really bad what's a good freelancing platform I could use?
Lincoln Collins
Every one of them if you need money like in next months and not in next 5 years?
Joshua Anderson
next months at best yeah
Carter Martinez
what do you know to do
Mason Nelson
anything related to dev or webdev if I don't know it I can learn it
Asher White
Is there any chat app like rocket chat that can be displayed as a modal? no registration and rooms are on url parameters
im too lazy to make one
Jaxon Powell
where can i find a programmer gf? is there some online community/chat where these people hang out?
Lucas Fisher
>where can i find a programmer gf? with dick or no dick? Also, why the fuck you'd like to do that? Women are supposed to be different from you..
Michael Allen
recommend u get a gf with different interests than u but dont get a gf with no interests either, thats the worst
Jaxson Lopez
because i cant remember when was the last time i met a girl that was into anything than art,philology or law stupid whores with zero interest where are all the chemistry,biology or medicine girls? i figured since all women are empty shells that only seek attention i might as well find one that is at least into things that i like as well
Isaiah Gonzalez
I mean yeah girls are literally never going to be as interested in important shit as guys user that's just biology - for at least 9 months of their life they literally just stumble around dizzy and have diarrhea and for 1/4 every month they bleed and get nausea. How could they possible be evolved to be as passionate as males?
You can still find a girl that's relatively passionate about art and shit that isn't a husk of a human being. Talk about tech and programming and medicine with male friends and date a girl who doesn't know or care jack shit about it IMO. Women that are interested in male dominated hobbies are always going to have issues, whether its autism, narcissism, etc. Be pragmatic - you know 90% of successful female programmers are probably going to breakup with you for being a sexist whitey or constantly try to call you out and argue over programming with you because of their insecurities.
Adrian Foster
You had your chance to step up the game and you failed, for 9 years.
Ayden Ross
I made a small chrome extension that re-formats reddit comment pages when the window get below a certain width, because the right side bar has a consistent width it takes up half of the screen space on my vertical monitor and generally just causes issues.
Its really small and I'm not really good at JS, but I'm happy with the results, at least I can browse reddit on my vertical monitor now.
Pretty sure that could be done with pure CSS and then hot toggled when needed via extension shortcut
William Powell
>hot toggled when needed via extension shortcut
That sounds super inconvenient when you can just do it automatically with JS.
Carson Myers
What exactly is inconvenient? You can enable when you need it and leave it or disable at any time when not needed. and CSS will be faster than JS
Joseph Butler
>extension shortcut
Having to hit a hotkey is inconvenient.
Juan Fisher
You only need to hit it if you want to disable it. What if you rotate display back to horizontal?
Gavin Bailey
>What if you rotate display back to horizontal?
I'm not going to, but, my main monitor is portrait and my second monitor is landscape, with the script I can move the browser between either windows and it will format itself correctly without ever having to hit any buttons.
I had that backwards with the monitors, main monitor is landscape obviously, portrait is secondary.
Nolan Collins
>with the script I can move the browser between either windows and it will format itself correctly without ever having to hit any buttons. oh I see, smart
Thomas Butler
Finished a course with es5 javascript but I feel a little bit confused about some of the esnext javascript (arrow functions for example). Does anyone have good resources in order to learn them easily ?
Chase Cox
Don't use any of them. Reach out to local business.
Brayden Anderson
Any ideas how can I make an element appear when I hover mouse over specific area? Right now I shrink required element to 1px; and when mouse is over it I restore the size but it is ugly. I want to make the area wider, at least up to 5px but the element itself should not be visible until I hover over.
Jose Taylor
selector:hover
Landon Clark
... I know how to make on:hover. Okay, my current issue is that when I move cursor out it disappears too fast and I'm not sure why:
If I remove the opacity directives It will be fine but then I cant use shrinked size 4px because it will be visible, I would need to use 1px; I tried opacity transition but it still disappears TOO fast