/wdg/ - Web Development General

Previous thread: >Beginner Roadmap and Overview
github.com/kamranahmedse/developer-roadmap
youtube.com/watch?v=UnTQVlqmDQ0

>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 resources
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

Attached: developingatincrediblyhighspeeds.png (824x553, 130K)

Other urls found in this thread:

pexels.com/
pixabay.com/
unsplash.com/
coverr.co/
marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug
jsfiddle.net/od9w4p28/1/
stackoverflow.com/questions/18379238/send-email-with-php-from-html-form-on-submit-with-the-same-script
php.net/manual/en/function.mail.php
discordapp.com/invite/23efs
discordapp.com/invite/8ht33s
discordapp.com/invite/48fns3nfd
jsfiddle.net
github.com/rebassjs/rebass/blob/master/src/index.js
twitter.com/SFWRedditImages

for the user asking about free images in the last thread:

pexels.com/
pixabay.com/
unsplash.com/
Videos:
coverr.co/

What's the general opinion on FCC?

I like it and I'm using it as my main roadmap but it seems good solely as an introduction. I think their lessons are lacking in terms of finishing later their challenges.
So, my usual workflow is FCC -> MDN / javascript.info for now. I got to the part of working with React and I'm looking for a book right now.

Stills pretty nice, I just need all this shit to click on me and actually start building shit.

For the user looking for a beginner buddy to team up.

Drop my your Discord id:
[email protected]

I have come to problem with outputting data from database. Here are 2 pics, that describe it. On the second pic is showed how are data stored in database.

Attached: its_choade_my_dear.png (904x562, 38K)

you messed up the quotes and source src

Best PHP book for getting a job?

I sent you an email.

could you repair it?? I am not sure what might be the prob here

spoonfeed af, pajeet.
post the line with the , i cba to write the whole line

echo '';
echo '';
echo '';
t. not a pajeet, just a brainlet student
Anyway it did not figure the things out. I am wondering if that foreach construct is written well

echo '';
if that doesn't fix it, then either $result or $num_rows are fucked. or both

Your markup is fucked, you aren't escaping or closing your quotes in a few places, and your insert query seem vulnerable to injection. On top of that you've managed to avoid using the single "killer app" that made PHP so popular, and would save you the trouble of escaping so many quotes in the first place.

I've taken over a AWS server at work. All the web building I've done is client-side but I work in a low-tech industry so I've become the go-to "expert" in my company for any in-house web services.
The AWS server was purchased through the marketplace as an Intuz Ubuntu phpBB forum server, and in trying to update it I fucked it all up. I want to go into the server to fix the files, but the file manager it used was browser based and it won't launch anymore.

>tldr
Is there a way to get remote access/file manager access to an AWS server that I'm subscribed to?

Attached: 1548019044636.jpg (645x1000, 46K)

You can't SSH in?

im anot closing the quotes coz footer is required at the end of the script. Most of the markup is written through heredocs, that's why this one looks like shit.

the route to files is stored as C:xampphtdocsademo/uploadsexample.mp4

I need a private key file, is this correct? If so, only the IT guy that got laid off would know where it is.

check if your database actually contains what you think it contains

use phpmyadmin if you're a babby.

it does user. It also stores the files in the folder where it should..

There's probably a serial console you can use to login as root with to add a public key for a new private key you generate.

>im anot closing the quotes coz footer is required at the end of the script.
I don't see how the two are related.

There's an idea. Thank you

>Most of the markup is written through heredocs, that's why this one looks like shit.
I don't see any heredocs in your image.

when and why did "image-rendering: -webkit-optimize-contrast" stop working in chrome? i remember using it to make downscaled images less blurry
the only value for the css property that does anything is "pixelated"

desu been wondering this myself. i think it's been ages.

How can I configure PHP XDebug in VSCode?
It's a mess.

the generated route to file is fucked, web can not translate it.

that's how it looks like, upload of data to database. The target_file has to be rewriten probably
$uploads_dir = '/uploads';

$tmp_name = ($_FILES['file']['tmp_name']);

$destination_path = getcwd(). $uploads_dir. DIRECTORY_SEPARATOR;
$target_path = $destination_path . basename( $_FILES["file"]["name"]);
move_uploaded_file($_FILES['file']['tmp_name'], $target_path);

how do I "save" data passed through HTML (using or )? Can I set that to be sent as an email to someone?
sorry I'm completely new to webprogramming pls no bully

Just follow the steps marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug

Could anyone help me with jQuery?
I'm trying to do a simple thing, mainly to switch buttons on a click event but it's not working.
I'd like to do it without the toggle method.
Link to jsfiddle:
jsfiddle.net/od9w4p28/1/

Yes. You'd use a backend language for that. Python, Ruby, PHP, Node, Perl etc. are all capable of it.

>Come back
>"Sessions lasts for 60 min"

Well fuck, I missed it.

I have made it boyz.

through this
$file=basename($_FILES['file']['name']);

$tmppath="uploads/".$file;
move_uploaded_file($_FILES['file']['tmp_name'], $tmppath);

can you give me some pointers on how to do it? Googling only gives me using "mailto:" in action, but I wanted it to be "automatic" (as mailto: just opens an email program).
All I want is the form to be sent straight to my company's email, I don't even need it to be processed or anything

what programming language though?

php

the web is filled to the brim with stuff like this

stackoverflow.com/questions/18379238/send-email-with-php-from-html-form-on-submit-with-the-same-script

php.net/manual/en/function.mail.php

You gotta at least try to google it first. Write some code and come back if/when it doesn't work, then we can give you real advice.

I can't wrap my head around async API calls in react/redux. Should I dispatch and action from a component and let Redux handle the API call or make an API call in React component and pass the result to Redux?

Attached: UyQVhKc.jpg (720x960, 98K)

a bit rood but thanks anyways

>a bit rood
what a thin-skinned dude

Sorry. I thought I was more helpful than rude when I replied to you. Oh well.

My whole security system broke down for no apparent reason. No clue what caused it. I should have used bcrypt instead of crypto like that one guy in the comments suggested it. Now if you type a valid email and a not password, you get a seesion id and are free to go. It worked for 2 month straight with no issues.

Fuck this shit, if you're still here, hit me up.
Stahlone#7858

not valid*

look at what happens when you click the button a second time.
Also you don't have to put $ in front of every of your own variables.
It might also be a good idea to stop using jQuery and simply use API of the browser directly for things like that.

Attached: el.png (369x124, 4K)

user who posted like two days ago about jobs. Today I've been receiving offers nonstop. Just got a message from a recruiter for USPS, looking to fill a software dev position. Have a good chance with another company, have some guy from Craigslist messaging me, and another startup(unpaid).

Out of fucking nowhere. The Gods have spoken.

If I hear one more potential lead telling me they can use shitpress, fagspace, or dix, I'm going to flip the table on them. Stop fucking doing this to us, holy fucking shit

I'm happy for you user!

fuck yeah

Attached: Arnold-Schwarzenegger-Mr-Olympia-1974-1-1200x750-1482850479.jpg (1200x750, 137K)

I want to host a website that will control things on the raspberry pi both over local and WAN. Would I want to also host the website that controls this stuff on the raspberry pi itself or would I be better off hosting the website somewhere else and interacting with the RPi GPIO via another method.

Thank you, user. I appreciate it!

>lead
quick rundown?

I'm not going to get too excited yet. Else I'll be let down. Hopefully everything goes good, though.

Also, to anyone else looking for a job, don't give up. Get the linkedin premium trial (1 month free), and start using it to your advantage. Post your resume to craigslist, go on Indeed, etc. Just keep throwing yourself out there. It's what I've been doing.

lmao, now I don't know why I didn't notice this in the first place, I've been giving out session ID's left and right on every request at the top of the route, without checking whether it's valid or not, I've been logging in and out for 2 months without realizing this

Opportunities multiply as they are seized.

>startup(unpaid)
yikes

Should I have all of my routes in a single file for a node backend?

// routes/index.js
router.get('/', (req, res) => {
res.render(....)
});
router.get('/', (req, res) => {
res.render(....)
});
router.get('/', (req, res) => {
res.render(....)
});

>inb4 someone thinks all routes are '/'.
just a copy/paste real quick

What do they look for in a full-stack dev portfolio?

All routes in one file is fine, but you will have to put those functions in their own controller files.

Yeah, I'm not even replying back, unless I sense I'm not getting the other jobs. I'll take it out of desperation, until something else comes along, just to slap it on my resume, portfolio, and linkedin. I visited their website, it is absolutely slow as fuck, and all it is, is a little landing page which says they're under development, a forum to subscribe to updates, and an image.

you can import routes from files like this:


app.use('/', one, second, third);

full-stack dev projects...?

Without knowing the details, if it's all static content, I'd probably let whatever backend you have on the Pi also serve the site. It should have no real impact on resources.

Yes but what kinda projects? I'm a Crudlet trying to make it into the higher levels.

controller files? I don't have those. I set this project up quickly with the express CLI.
express --view=hbs
which generated the files for me: /routes, /views/, /public, app.js, package.json

what would I need controllers for? sorry brainlet

image board

porn site

Just a thing-controller.js with your thing related functions inside.
Then you can do .get('/things', thingController.getThings).

I have
res.render('VIEW FILE', { title: 'TITLE' });

I thought controllers were only for sending data to a DB?

Probably a dumb question:
I'm trying to call an API and I'm having some issues. First I tried through Ajax and while it does technically get the data, it only gets the URL to it as Chromium seems so stop it via CORB. The error callback function gets called.

I tried with cURL but I'm getting an error to do with SSL certificate problem (60). I don't know how to fix this.
Can someone help?

Thank you! Such a simple thing, can't believe that I didn't notice that before.

> Also you don't have to put $ in front of every of your own variables.

That's like a naming convention for jquery variables, no?

what kind of api is it? are you calling an api from another service, in that case you might need an access token, if you are calling your own made api, there are two problems, probably more, that you need to consider, are you calling the api from the folder of your own server or are you trying to establish a connection between a front-end (port 3000 or w/e) and a back-end server (port 5000 or w/e), in that case you might want to play around with CORS

Rate my backend software stack:
Linux/Nginx/SQLite/C++,Qt,cgicc,ClearSilver

exotic

Controllers are used to consume services (dbs, logic heavy code, other apis). In your case it's not very noticeable, but it's good to keep things clean before they go haywire.

yeah, the jQuery object is assigned to the $ variable, but you shouldn't start your own variables with $ because of that

it's good practice to name jquery objects prefixed with a $ like $this.

How is Qt part of your backend stack?

how do I give links the tag when the user inputs one, do I need to regex the shit out of the user comment?

maybe it's a qtpie, meaning, it's literally him

With SASS is there any way to do wildcard imports? Im annoyed of spelling out every signle CSS file that I want included, I have many of them and I like separating all my CSS out into small files to make it clear what components it belongs too.

All my searching turned up some suggestions that RoR has some wildcard matching for SASS but Im not sure its possible outside of RoR?

How many files do you have, that it's becoming a problem?
And shouldn't the component import the styles? So easy management with 1:1 component.file:sass/scss.file ?

what's the discord link to the /wdg/ server?

discordapp.com/invite/23efs

>Invite Invalid
was that done intentionally to hurt my feelings?
if so, you succeeded.

sorry wrong one

discordapp.com/invite/8ht33s

>Invite Invalid
okay this is not funny

fuck off back to your server instead of spamming your shit every other thread

discordapp.com/invite/48fns3nfd

you still don't get it?

No it's still not working
suck my ass, I wouldn't be asking for an invite 3 times and failing 3 times if I was already on the frickin server. think.

Does anyone know the correct way to make the default nav bars in photon center inside a sidebar instead of hugging the leftmost pixel of the window? Tried adjusting the sidebar and nav css styles to flex justify content center but it does nothing.
I think nav elements are display:block by default but changing this to flex makes everything go batshit.
>thanks in advance

>>Asking questions
>jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS

outside of the ruby gem, i dont think so bro

Will taking the AWS exam improve my chances of getting a dev job?

can jslint detect misspelled variable names?

you can get a vs studio code package to spell your shit if that's what you mean but any good linter should tell you if you are using a variable that isn't defined anywhere

>misspelled variable names
what if i want my variables misspelled?

github.com/rebassjs/rebass/blob/master/src/index.js

Does anyone know why they define propTypes like this?

Box.propTypes = {
...space.propTypes,
...width.propTypes,
...fontSize.propTypes,
...color.propTypes,
...flex.propTypes,
...order.propTypes,
...alignSelf.propTypes,
}