[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 316
Thread images: 37

File: Z6zEcJj.png (731KB, 824x553px) Image search: [Google]
Z6zEcJj.png
731KB, 824x553px
>Discord
https://discord.gg/wdg

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md

>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/ (embed)

>How to get started
http://pastebin.com/pDT82mQS (embed)
http://pastebin.com/AL6j7GEE (embed)

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
First for phpclasses.org [show-on-mouseover]should dissapear[/show-on-mouseover]
>>
I have some check boxes named
name="is_direct_import[]"
and I'm trying to get them stored in an array with either 1 or 0. This isn't working:

$is_direct_import = (!isset($_POST["is_direct_import"]) ? "0" : "1");
>>
>>59769967


Old thread:

>>59723742
>>59723742
>>59723742
>>
>>59770133
$_POST["is_direct_import"] is supposed to be an array, unless somebody edits the original HTML, in order to trigger error messages
>>
>>59770216

if they all have the same name ya it stores it in an array. Works for text inputs but cant get it to work for check boxes
>>
>tfw applying for Y-Combinator
>>
>>59770412
blog posts belong there >>>/trash/
>>
>>59770435
>web dev startups arent web dev related
More related to web dev then your post.
>>
>>59770450
any "job interview" posts shouldn't be here.
This general is the only one I've seen this happening.
It's fucking cancer.
>>
>>59770467
You're cancer. These are all part of web dev.

That's like going into a cooking thread and bitching about people who write posts about eating or working as a cook or trying to launch a restaurant.
>>
>>59770509
No, it's like going to a cooking thread and people keep posting being afraid of holding the knife.
Go to /soc/ if you need approval.
>>
>>59770412

what kind of feel is this...?
>>
>>59770570
You should just go back to codeacademy, nodev.
>>
>>59770678
>nodev
that hurt so much now anon, how dare you.
>>
What's a smart way to implement scripts for only some views using blade?
Do I just copy and paste the master layout, add a few scripts, and use that when they're needed?
>>
>>59770672
Same as applying for dream uni
>>
>>59770467
Because unlike anything else, webdev is nothing but a job. Nobody dreams of being webdev
This is the most down-to-earth thread there is

keep it real yo
>>
File: emma-watson-1489533333267.jpg (1012KB, 996x2676px) Image search: [Google]
emma-watson-1489533333267.jpg
1012KB, 996x2676px
is laravel a meme framework or is it actually good?
>>
File: rl_crop-modified_400x400.jpg (22KB, 400x400px) Image search: [Google]
rl_crop-modified_400x400.jpg
22KB, 400x400px
>>59770786
Here's your answer:
https://twitter.com/rasmus/status/618301957095055360?lang=en
>>
>>59770786
Laravel is great, but prepare to forget everything about your stack unless you do vanilla things on the side (i.e complex sql statements because you do them by chaining non-sql model methods)
>>
wdg has been a non coding, shit posting, html babby general for years

freenode irc is where real devs talk
>>
Are you software developers or would that be a stretch
>>
>>59770983
>using irc in 2017
unemployed sluts only i c
>>
>>59770786
If you need to use PHP, use Laravel.
>>
How do I increase the line height, without increasing the height of <br>eaks?
>>
File: SHIGGY_manga.jpg (20KB, 250x250px) Image search: [Google]
SHIGGY_manga.jpg
20KB, 250x250px
>>59770837
>babby can't abstraction
>>
>>59771289
>increase the line height, without increasing the height of <br>
overwrite the parent styles by defining the line-height for br element
>>
>>59771369
Will do, thanks.
>>
File: 1373118887023.gif (3MB, 400x311px) Image search: [Google]
1373118887023.gif
3MB, 400x311px
>google says you should be getting quality backlink solely by producing quality content and the rest comes naturally
>new sites gets 0 visitors naturally
Ah yes, just upload quality content.
>>
File: mY5Su5LrTZh5.png (73KB, 766x519px) Image search: [Google]
mY5Su5LrTZh5.png
73KB, 766x519px
Hi /wdg/.

I'm more or less completely new to HTML and Javascript and I'm having a problem with something pretty straightforward, I was hoping you could help.

Basically I have a table of images, and I want to create a mouseover event for each image, so the image changes to another one when you mouse over it. I assumed pic related would work but nothing is happening. What do I do?
>>
>>59771229

uh, no.
>>
>>59771369
Is there a way I can define breaks differently for one part of my website?
>>
>>59771447
What's your website? Link it.
>>
>>59771504
it's supposed to be
function newImage() {...


check the error console of your browser, it would have told you.

besides, try to avoid using inline styles and event attributes. use css classes and event listeners instead so you don't mix your markup with code.
>>
>>59771609
Thanks anon, really dumb mistake on my part. Thanks for the advice too, will use the error console from now on
>>
>>59771606
Nah, I want to become an established player before i post it on 4chan (with all the risks that come with it). But it's a travel site so the niche is highly competitive.
>>
>>59771666
Keked and checked, what country?
>>
Why are browser's so annoying? I just checked my current project outside of Firefox and two buttons are too short and one margin looks like shit. Geez can't they simply use one CSS engine for everything.
>>
>>59771695
I'm from the Netherlands, but its an English language website.

I don't have the time yet to focus on other languages. So I figured I might as well focus on the most important one. But in the future I hope to make a German language website as well.
>>
>>59771725
use some normalize css like normalize.css or bootstrap reboot to make default browser stylesheets match each other.
>>
>>59771666
>>59771732
are you roleplaying as pieter
>>
>>59771745
Didn't knew about normalize.css. Thank you anon!
>>
File: comments.png (9KB, 324x345px) Image search: [Google]
comments.png
9KB, 324x345px
Finally made it so now writers can see when someone comments on their articles on my site. Really happy about that.

Also... quick... for a libertarian blogging platform what would you say the slogan should be?

I came up with: "Inscribing Information without Limitation"

firstamender.com
>>
So i have 2 classes
class GenerateNameAndCompress
{
private $OLD_VIDEO_NAME;
private $COMPRESSION_LEVEL;
private $AUDIO;
public static $NEW_VIDEO_NAME;

public function __construct($OLD_VIDEO_NAME, $COMPRESSION_LEVEL, $AUDIO)
{
$this->OLD_VIDEO_NAME=$OLD_VIDEO_NAME;
$this->COMPRESSION_LEVEL=$COMPRESSION_LEVEL;
$this->AUDIO=$AUDIO;
}
public function GimmeName()
{

and
class PlayVideo extends GenerateNameAndCompress
{
private $VIDEO_NAME;

public function StartVideo()
{
$this->VIDEO_NAME = XXXXXXXXXXXXXXXXXXXXXX
}

}


how do i set $VIDEO_NAME to be equal to public static $NEW_VIDEO_NAME from first class?
>>
>>59772476
Why do you need a slogan for a platform?
>>
>>59772588
it's a website with the concept of letting people write what they want to without repercussion.
>>
>>59772601
Why does that need a slogan
>>
>>59772608
I'm trying to make a brand.
>>
Does anyone know of any imageboard software written in Elixir?
>>
>>59772506

not really answering your question but why use classes for web dev? ive never had. I use JSON through my responses and thats all I need really.
>>
>>59772660
I mean i can ez just add $_SESSION =newvideo name in first class and do it, but i want to do it proper way. I want to see how this would work in php, i come from c++ and java and this is the way i like it
>>
>>59772698

oh ok then dont mind me im just an OOP noob, dont see the point in it when JSON does the structuring for you :p
>>
>>59772718
I want to be able to show someone code of my project but if i do it in shitty way that aint gonna do any good
>>
>>59772736

last before i shut up, you could always just show them the JSON response....
>>
File: firstcharmander.png (225KB, 1233x605px) Image search: [Google]
firstcharmander.png
225KB, 1233x605px
>>59772621
i'm no design expert but your site looks like shit
maybe move the "what is firstamender" section into it's own about page
also make pictures in your carousel fit the whole
carousel, make carousel take less screen height
since it seems you take recent article pictures for the caroussel maybe display article categories in the caroussel instead
also i think you want to avoid using blue and red as main colors but i can't into color theory so whatever

about the slogan make it something like "uncensored, unsponsored, unaltered" or just make a poll and get your users to vote for one
>>
>>59772791
it's designed to be as simple as possible.

and I put the what is because I wanted people to understand what it was on the landing page. I could certainly make that a whole page but we elected to be shown first thing.

Carousel is tough because I had it doing 100% of the page but unfortunately if I do that I either have it bleeding through (which looks aweful) or I have it switch height and doing so will cause the other portions of the page to jump in height. I basically tried to get the best of what I could do with people uploading their own content.
>>
>>59772847
maybe it won't clash as much if you chnged the caroussel background color from black to the header's blue (or a lighter shade)?

>and I put the what is because I wanted people to understand what it was on the landing page. I could certainly make that a whole page but we elected to be shown first thing.

ok, i'm just bitching about it because with header + caroussel + about section i have to scroll for a whole screen to get to actual content
>>
>>59772973
thats fine it's an informational site. Tons of informational sites do just that. Though I've spent some time working on what was the best way to show that carousel. I've tried blues and black and ended up choosing on the black. The red white and blue is representative of the American flag.
>>
>>59773022
>The red white and blue is representative of the American flag.

ah fugg yea good point

good luck with your site, looks like you already have plenty of users
also pls make rss / atom feed so i can get news without giving you visits :^)
>>
>>59773060
awe you should write on my site if anything -- no personally indentifiable information is requested when registering.
>>
>>59769967
Do any of you fuckers use Markdown?

How do I implement this shit into my site? Every google search just leads me to fucking syntax tutorials. Do I have to embed something into my HTML?

I'm trying to make it so I can store formatted blog posts into a database and then render it onto the HTML page and apply the formatting appropriately. I already have all my HTML pages written, and I'm using the Django template engine.

So for instance, I write **fuck** into a field, then I store that into the database, and then I render a page which takes the **fuck** out of the database and puts it on the page. I want it to apply the markdown though.
>>
>>59773107
I'm a pleb and use regex replace for markup.
>>
>>59773107
use something like this
https://pythonhosted.org/Markdown/
you should train your google fu further
>>
>>59773107
Yeah, but not with dj. Have you tried searching 'django markdown' for solutions to your problem?
>>
j e k y l l
j u s t
w e r k s
>>
is godaddy bad?
>>
anyone here work with SharePoint and want to enter into a suicide pact with me?
>>
>>59773621
How difficult is to port everything to Power Apps/Microsoft Flow?
>>
I'm writing a competitor to HackerRank for screening.

What kind of questions should I ask since devs hate technical fizzbuzz question puzzles?
>>
>>59773621
>>59773776

anything M$ or .NET related isn't welcomed here (typescript is ok)
>>
File: Screenshot_39.png (50KB, 731x568px) Image search: [Google]
Screenshot_39.png
50KB, 731x568px
webpack is turning my command prompt text invisible. how do I fix this? Have you guys ever seen this before?

webpack successfully compiles my code, but it turns the text invisible. At least, I think that's what's happening, because the cursor lines up perfectly with the last command.
>>
Is Amazon Web Service good for small websites?
>>
>>59773792
devs hate all questions/puzzles because they're yet another retarded unnecessary barrier
majority of us are devs because we wanted to find easier ways to do things, not because we wanted to jump through flaming hoops just for an opportunity.

Google has put in a lot of $ in studying this sort of stuff so you should hit them up.
>>
>>59773886
I mean depends what you want to do with it.
If by 'small website' all you want is a static site with some pages, aws is overkill.
>>
>>59773827
What do you think about Visual Studio Code?
Why the sticky references C# and asp.net in the learning links?
>>
>finally learn webdev
>web assembly releases
>everything I learned is outdated
>>
>>59774000
That's not how it works. But even if it was, just learn it. Keep yourself flexible.
>>
>>59774013
Did you even check my sweet trips, m8?
>>
>>59774039
I suppose I should have since it's the only thing you'll accomplish in life.
>>
>>59774125
That's not true. I got quads once.
>>
>>59770133
you have a value on your checkbox?
>>
File: 1490761843313.jpg (62KB, 539x960px) Image search: [Google]
1490761843313.jpg
62KB, 539x960px
Hey /wdg/ how do I set up a local PHP server for testing my PHP code on debian?
>>
>>59770700
Have a master template where you define the structure. Extend from master template and inject scripts in the header section
>>
>>59773944

its just a text editor who cares, i know people who code in notepad, yes just notepad
>>
>>59774234

just use xampp for dev
>>
>>59770837
Now do the same for magento
>>
>>59774332
Ok, you ignored the second sentence. Now google "best editor for typescript".
>>
File: Screenshot_40.png (30KB, 733x376px) Image search: [Google]
Screenshot_40.png
30KB, 733x376px
>>59773884
to follow up: no problem if I use PowerShell, but I don't want to use that.
>>
File: angry_pepe.jpg (40KB, 900x900px) Image search: [Google]
angry_pepe.jpg
40KB, 900x900px
GOD DAMNIT EVERY DOMAIN HAS BEEN TAKEN REEEEEEEEEEEEEEEEEEEEEEEE
>>
>>59774383
have you considered installing a real os?
>>
File: Screenshot_41.png (87KB, 781x627px) Image search: [Google]
Screenshot_41.png
87KB, 781x627px
>>59773884
another follow up

Looks like webpack isn't restoring my command prompt's colors correctly. It was making the text the same color as the background. I corrected it in the command prompt's properties and the text reappeared.

>>59774491
Like what?
>>
>>59774472

no chance for .com, that's why .io is so popular among start ups
>>
>>59774472
How do I get good domains? Well that's a secret I'll never tell.
You know you love me xoxo anon
>>
>>59772506
GenerateNameAndCompress::$NEW_VIDEO_NAME


read the fucking docs man
>>
>>59774472
youareacuck.com is free
>>
This is my experience after ordering 100+ articles online.
>45% is a summery of wikipedia and other sites
>25% are spun articles that don't read like English
>10% is badly written English
>15% is a generic text that is almost ready for use, you just need to rewrite some parts
>5% is a quality article
I'm trying to make a list of pajeets that send in proper work so I can fill up some websites, but it's a hopeless endeavor.
>>
Anyone here use cheapname for hosting?
>>
>>59775123
only namecheap and 1&1 here
>>
>>59775123
I use a VPS, cause I don't want to get cucked by hosting providers.
>>
>>59775118
order 2000 articles and enjoy your 100 quality articles
>>
>>59775118
Honest to god my only criteria is that their work is original and in proper English. And even that is out of reach for most """writers""".
>>
>>59775137
you are getting cucked by vps hosting providers that over sell their servers
>>
Anyone know if there's a version of create-react-app that is extended to also include an express template for your api back end?
>>
>>59775118
you need to find first world writers that write for spare cash. keep using the same person.
>>
oh god i officially own a website guys im scared
>>
>>59775529
hopefully you didnt pay for it
>>
I need a way to store monthly data and access it from a Wordpress site. What is the best way? Set up a backend using Django Rest Framework?
>>
File: cacEih3.jpg (27KB, 640x609px) Image search: [Google]
cacEih3.jpg
27KB, 640x609px
>>59769967
>Started simon game for FCC
>Nothing is working
>Too apathetic to keep at a project I don't even enjoy making
>Want the front end cert

Maybe I'm just dumb.
>>
>>59775977
imagine if you got the cert, then what? you're gonna hate most work projects too, mate.
>>
here's a photoshop mockup of an etymology highlighter I'm about to start working on. tapping on the 'stats' button will slide out a panel from the left with a pie chart to show what % of the text is from where. Tapping on one of the big highlighted words triggers a popup with the text info. How do I make the popups attach in a way so that it's always touching the word but never goes off screen?
>>
>>59775977
you gotta push through or you're never going to have a portfolio. cert shmert, but you need completed projects or you're not going to get a job
>>
>>59776719
I'm also wondering: should I have the text update live as you type it and POST to the server every time you press space? Or should I have the user type out the full sentence and press 'submit' and the server only gets POSTed once? The traffic is still tiny but I don't know if the huge amount of POSTs to the server might be an issue if people are typing out paragraphs
>>
Does anyone have any additional tips or tricks for helping with employment? The "How to get started" pastebin is a bit bare.
>>
>>59776822
Apply everywhere.

Worked for me. I had pretty basic portfolio, a shit github, no prior professional experience, no degree.
>>
>>59776987
apps/pages in your portfolio?
>>
>>59777012
Just basic db read/write stuff. Nothing complicated. Javascript and PHP. The place that hired me didn't even look at my portfolio, they just hired me after a little whiteboarding.
>>
>>59777274
true, I node.js apps that use mysql and mongo, might be time to start applying
>>
>>59773520
GoDaddy + cpanel are ite but you can't host anything fancy. GoDaddy doesn't allow anything beyond html/css/js and basic images + videos
>>
>>59769967
Has anyone here compared vultr and digitalocean? Thinking about switching to vultr since they have better bsd support and are half the price but not sure if there's a catch.
>>
File: Web_Development route 2016-2017.png (417KB, 2520x2010px) Image search: [Google]
Web_Development route 2016-2017.png
417KB, 2520x2010px
>getting a degree from a shitty uni
>final year
>fail a class
>re-evaluate myself and realize I barely know aything
>have a hard time with free code camp's basic javascript
>Feel like I should be teaching myself

So what the fuck do I do now? The only thing I'm pretty confident about is mySQL a bit of php and html/css.

I know I need javascript but what else? Do I just follow pic related? I sometimes shit myself when I read things I don't understand when I'm supposed to know them.

Trying to fix being a NEET by getting into this uni is starting to feel like a waste of time and money.
>>
>>59778717
Maybe consider devops/systems administration instead? If you struggle with javascript I feel like you'll struggle with most languages used for web development. You'll still need to know some scripting/programming for devops/sys admin but I'm pretty sure you can get by without if you go the windows route.
>>
>>59778717
modern javascript fucking sucks shit dude, don't feel bad. there's a lot going on in that language, and it changes everyday.
>>
File: 1418006853149.gif (406KB, 320x383px) Image search: [Google]
1418006853149.gif
406KB, 320x383px
what type of website should i make /wdg/? it can be/do anything that's not illegal. ill post about it here.
>>
File: fc.png (445KB, 734x876px) Image search: [Google]
fc.png
445KB, 734x876px
>>59778800
One of my professors actually told me to go that route too. I don't even know where to start with that shit. Hell, I don't even know how I finished 3 years worth of uni.

>>59778842
Yeah, I'm not giving up yet.
Someone also suggested that I read this book.
>>
File: cat.gif (16KB, 180x236px) Image search: [Google]
cat.gif
16KB, 180x236px
>>59778922

pic related is also a good js book
"JavaScript: The Good Parts"

also Treehouse has a bunch of good tutorials if you have the money
>>
>>59778922
Look into MCSE & MCSA certifications, you might even be able to get them at your school. Ask that professor. Another good book for javascript is eloquent javascript. I'd start with that and then go to javascript: the good parts.
>>
>>59778922
Fucking footfags invading JavaScript textbooks now?
>>
>>59778950
>>59778996
Will check these out, thanks.

>>59779019
I didn't even realize that there was a foot in there until you mentioned it.
>>
So for usernames fields, how do I detect when an illegal character is used?

I only want users to be able to use all letters, lowercase and capital, numbers, hypens and underscores. Nothing else.
>>
>>59779271
Something like this. Double check how to write regular expressions.

HTML
<input onChange=validate()>
<script src="script.js"></script>


script.js
validate (event) {
var regularExpression = /[A-Za-z0-9]-_+$/;
if (event.target.match(regularExpression)) {
// success
} else {
// fail
}
}
>>
>>59779271
Depends, most frameworks have their own validation system, so look up that if you're using one. If you have to implement it yourself then a simple regex match usually works.
>>
>>59779398
That only validates on the client. In the real world you want to also do that validation on the server.
>>
>>59779429
>In the real world you want to also do that validation on the server

why's that?
>>
>>59779495
any faggot can send whatever he wants to your server, if you don't validte it once it's there it's like not validating anything securitywise
you can never trust user agent
>>
>>59779495
XSS mainly, someone could skip the client side validation and simply post JS in a field to be rendered by user browsers on display.
>>
>>59779512
>>59779526
If I'm using xampp for apache and myphpadmin, how do I validate input on the client side? Just create a PHP validation form in addition to a javascript one?
>>
>>59779584
Use JS on client side, and PHP on server?

http://wiki.hashphp.org/Validation
>>
>>59778717
nobody learns anything from Uni. Uni is only good for meeting fellow students to add to your LinkedIn profile, getting an internship (since most companies only want interns who are currently enrolled in school), and getting a nice degree and GPA.

all your useful learning will take place at your internship or on your own time pursuing your own projects.
>>
>>59777274
What the fuck? I had 8x more experience than you 12 months ago, but I am still unemployed today.

Let me see your resume.
>>
>>59770786
Laravel is amazing, but it feels like a baby framework cause everything is so abstracted away from the user, no complexity.
If you want to improve your PHP skills, try Symfony instead, even if the learning curve is steeper, it's more rewarding.
>>
How do I set things dangerously in vuejs?
{!! x() !!}

ain't it
>>
>>59780291
it's
v-html="x"
>>
File: 1374352360207.png (32KB, 330x357px) Image search: [Google]
1374352360207.png
32KB, 330x357px
>tfw a blogger let her domain expire and I've got a website on that domain
>>
>>59779873
those container and service memes are so stupid
>>
>>59778717
>The only thing I'm pretty confident about is mySQL
Hace you worked with 100s of tables before?
>>
>>59778922
Head first is really good if you have ADD.
>>
>>59779816
It took a year and a half to find my current job. Keep looking and apply for everything.

What is your definition of 8x experience? I operate a few web projects as the sole-proprietor and have been developing freelance and as a hobbyist since I was 12 (16 years). Does that mean you're 80 :^)

My resume looks like shit though. It's possible yours looks 8x better.
>>
>>59780818

This.

It's literally "BOOM! LOOK HERE, A FUNCTION!"
>thinking: "but what are functions..?!?"


John says: "Functions are things that return things. Or not."

===> THAt'S AMzInG!! <===

F U N C T I O N S R O C K ! ! !
U
N
C
T
I
O
N
S

R
O
C
K
!
!
!
>>
>>59780928
I liked it. It explains the history of things sometimes like who invented the function or what functional programming is.
>>
>>59780928
first programming book i red was head first on design patterns
it really feels like retard compatible learning material
>>
Anyone can tell me why every modals on the page are closed when I try to only close one of them ?
I know that multiple open modals is not supported in Bootstrap but I made it work by placing them at the right place. Now I fucked up by trying to optimize my code.

Can the data-dismiss refer to a modal's id ?
>>
File: css.png (30KB, 612x336px) Image search: [Google]
css.png
30KB, 612x336px
Left: Firefox | Right: Chrome

What the hell is chromes and firefoxes problem.
Left is firefox, right is chrome. I already use normalize.css and there are still margins out of nowhere.

Also I can't seem to get an automatic max-height working. In chrome there is a small space under the button. Also what is up with those text field margins in chrome?
>>
>>59781235
There is no way that button is bottom:0
>>
>>59780928
That's pretty funny, consider writing some help books anon.
>>
In your opinion, what is the fastest free wordpress theme?
>>
is it shit practice to put an insert query in a for loop to enter multiple rows in a table?
>>
>>59781999
No.
>>
>>59781978
html5 blank
>>
File: dagothscurred.jpg (129KB, 800x600px) Image search: [Google]
dagothscurred.jpg
129KB, 800x600px
>>59769967
>Gonna start applying for webdev work in roughly 1-2 months.
>On top of building my own web page I want to start my portfolio

What html/css/js projects will be most likely to impress employers?
I'm thinking of building a chat app and teaching myself node with making a web scraper but I can't think of much else that would get them interested.
>>
Has anyone been successful in making a website with JS/web.asm UI, and CSS3-only fallback for users with JS/web.asm disabled?
>>
>work at a small ad agency, first job in the industry, jr front end dev
>just launched a $40k website for a labour union
>used wordpress for the backend, front end looks great
>hand it off to client, they tamper with it and now a couple of the interior pages look shoddy

Anyone ever had this happen to them? Where you finish a site and the client messes with the look? Do you keep it in your portfolio?
>>
What's the best PHP alternative if you're a total scrub like me and are only proficient in python (and maybe javascript)?
>>
>>59782242
PHP is easy, just learn it

-T.php developer
>>
is there anything more cancerous than npm?
>>
File: 1491174107126.png (261KB, 354x506px) Image search: [Google]
1491174107126.png
261KB, 354x506px
hey how do i save a image to the computer using javascript?

like i have a variable with an image url and then i want to save said image to the device.
>>
>>59782208
I mean you really shouldn't even allow the client that sort of capability because 100% of the time they WILL fuck it up. I only ever give them that sort of power if they explicitly ask for it because they've got their own team.

And yes, if someone fucked with my work it would get taken off my portfolio because it's not representative of what I have done/can do.
>>
>>59783025
>that sort of capability
Not giving wordpress admin access to your client?
>>
>>59782876
load it into a blob and then let the client download it
>>
>>59783025
>>59783067
isn't the whole point of using a cms for your client to be able to edit content without asking you ?
>>
File: noise.png (106KB, 247x604px) Image search: [Google]
noise.png
106KB, 247x604px
>>59783084
thanks pal
>>
>>59782711
People who parrot the same lame ass crap about JS, node, mongo, etc?
>>
Working with Webforms is like dry buggery
>>
>>59782208
You need to learn about maintenance plans. No one should be working on your sites. You should offer hosting/maintenance plans of different tiers.
>>
Help.

Can I use Dropbox Business for client work? I want to set up a custom mobile app that uses the Dropbox API to store whatever files belonging to that user, make them an account so they can access those files through the app. Is there a limit for users I can make in Dropbox?
>>
>>59783424
any general tips to get into this in regards to simple projects like wordpress sites ?

services covered ?
do you keep admin access and manage updates ? set a ticket system up ? maintain a testing version on your own servers in order to validate any changes before putting them into production ? manage backups ?

pricing ?
is it just a flat fee taking hosting costs into account + estimated amount of time spent on maintenance ?
>>
Kinda offtopic, but I am a webdev and I am not really learning anything at work.

This is my first job, and I was basically put in charge of a legacy webapp in an industry that is really averse to change. I mean we have other apps out there that are still supposed to support down to fucking IE5.

What the fuck do I do?
Should I jump ship?
The pay is actually pretty incredible for someone with literally zero experience, so I'm really conflicted.
>>
>>59783914
What is your ultimate goal in your career?
>>
>>59782171
employers are impressed by how far you followed through before getting bored, and some really like to see the extent to which your work is used in production
>>
Is there a way I can imbed webms into html? Similar to how I can put pics in?
>>
How would one implement a captcha type system that would also work in w3m/lynx with images disabled?
>>
>>59784635
https://support.google.com/recaptcha/answer/6175971?hl=en
>>
>>59784635
distorted ASCII?
>>
>>59784646
Trying to avoid google.
>>
<script language="JavaScript">
function clean(){
document.forms["searchForm"]["search"].value = document.forms["searchForm"]["search"].value.toLowerCase().replace(/[^a-zA-Z0-9\-\_]+/g, '');
}
</script>


Is this code safe?

If someone inputs into the username field "!$#^hello%@%^world%$&%$^", clean() transforms the input into "helloworld"
>>
>>59784703
Oh and by username field, I meant to say search field.
>>
>>59784703
why would you do that though?
>>
>>59784703
>Is this code safe?
Well, I can disable JS and input whatever I want.
>>
>>59784722
I don't know, I'm trying to ensure my site is safe and secured.

>>59784725
In that case, my PHP cleanup function would do the same thing before the input is sent. The JS function just shows to the user what exactly was sent.
>>
>>59784808
It would be better to show an error. What if your user just wants there name to be Tw@t, if you silently transform it to twt they won't know what there username is.
>>
>>59784808
>my site is safe and secured
From what? An attacker? You're already doing backend validation. I wouldn't go beyond html5 rules.
>>
>>59784839
This is only for the search bar. I accidentally said username field.
>>
IS THERE A WAY I CAN EMBED WEBM INTO HTML?

I JUST WANT TO POST VIDEO
>>
>>59783098
Yes, the content exclusively, not the layout or anything pertaining to the structure of the site. If clients adding a page or blog post = fucking up your layout, you did something awfully wrong and need to fix it ASAP because you gave them back a shitty half-assed body of work.
>>
>>59784854
I'd be very, extremely mad if a search bar doesn't let me type non alphanumeric characters. Just let people type them, and strip then in the backend without them knowing.
>>
>>59784895
okey dokey. I got rid of the js function.
>>
>>59784933
Thanks for making the web a little less shit.
>>
>>59784879
>CAN EMBED WEBM INTO HTM
IE and safari wont support webm

otherwise yes.

<video width="320" height="240" autoplay>
<source src="example.webm" type="video/webm">
Your browser does not support the video tag.
</video>
>>
>>59784957
oh, and you need minimum IE9 for video tags
>>
>>59774543
Xubuntu, perfect for webdev
>>
>>59784635
math questions ?
>>
>>59784957
Okey doke thanks
>>
>>59784957
>IE

ugh do people still use IE for real?
>>
>>59785024
i have bad news for you
>>
>>59784703
safe from what?

SQL injection? Just use prepared statements, then you're safe.

XSS? Just do proper output encoding.

don't try to roll your own security
>>
>>59784957
Ok, I've got the webm in, but it won't loop, and I can't pause or do anything with it. It just plays once when I refresh the page.
>>
>>59785066
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#Attributes
>>
>>59785062
>XSS? Just do proper output encoding.

But I don't know how
>>
>>59785111
Thanks a much!
>>
>>59785122
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet

what language are you using on the server side?
>>
>>59785315
PHP
>>
>>59779019
>disgusted by beautiful natural slightly stinky sweaty probably delicious tasting naked feet
>not by the quote "Launch your programming career in one chapter"
>>
>>59785325
use htmlspecialchars(..) if outputting stuff between html tags.
If your stuff comes in an attribute or inside js, use other functions designed for that
>>
File: You didn't say the magic word!.gif (62KB, 150x124px) Image search: [Google]
You didn't say the magic word!.gif
62KB, 150x124px
What's a good place to buy domains and have them host too? Looking for a .de (German) does that matter?
>>
File: code.png (8KB, 610x148px) Image search: [Google]
code.png
8KB, 610x148px
>>59785425
like this
>>
>>59785549
wtf? definitely not like this.
First, name your variables better, that code looks disgusting!

Second, you're doing an SQL query here, you don't need to do any output encoding.
A prepared statement protects you from SQL injections, so you're good.

Output encoding is used when you render stuff to a page.
>>
>>59775057
Not anymore
>>
>>59785549
To be sure, never encode to html when saving on databases.
Fools think they're so smart "hah, Imma encoding dat shit, gonna be safe and shit :^)"
When they realize they'll need to query those results, they'll be going to be real sorry when the need to search/substr a string arises.
>>
>>59778717
>delpoyment
>>
Hey guys.

I'm accessing the endpoint of an API using Javascript and the docs say I should cache my resources unless I want to be /v/anned.

How do you cache resources from AJAX calls with Javascript?
>>
>>59785944
call once, place it somewhere
>>
Doing the Mozilla "learn Web Development" program, enjoying it.

I am halfway through the HTML/CSS lessons

When I complete their HTML/CSS, Javascript, and other various lessons, will I be good enough to start basic work on someone's projects? Or would I not be useful to anyone.
>>
>>59786389
What, in a persistent storage?
>>
File: maxresdefault.jpg (41KB, 1280x720px) Image search: [Google]
maxresdefault.jpg
41KB, 1280x720px
I'm learning flexbox right now so I can position my layouts and make them responsive. Is there any need to also go in-depth and learn more about other positioning techniques? I know the basics of position: fixed, relative and absolute.

CSS has so much depth to it that it amazes me. I haven't even touched on learning animations or any real styling because I've been stuck learning how to position elements and shit. I didn't realize how much hacking you have to do to it to position your website layout though. No wonder all websites use a fucking frame work like Bootstrap

I'm a beginner and I've been purposely holding myself back from learning javascript because I want a solid understanding of at least learning how to make a layout using CSS before moving onto something more in-depth like javascript.


pic related: I actually own these books But I don't really use the HTML and CSS one because it's kinda outdated but I can't wait to use the JS one
>>
>>59786906
There isn't much hacking when it comes to position layout once you understand flexbox and normalize.
People use bootstrap because it trims down development time substantially and fits you into a certain mindset in web development. It's pretty nice all things considered, it's unfortunate that people only view these frameworks as 'grids' and nothing more.

Those books aren't all that good past the superficial beginner level quite frankly. Beautiful though. Eloquent Javascript is going to be a rude awakening, and is necessary IMO once you're doing getting comfy with CSS.
>>
>>59786951
Thank you for the reply and the warning about JS.

I think once I get used to flexbox everything else involving CSS styling will feel easier (some animations look really complicated though)
>>
>>59787019
Once you understand flexbox, you also understand how the likes of bootstrap work because they do the same thing. So that helps once you get into using them. Which by the way I fully recommend. It's totally worth it to be able to work with bootstrap in projects if you so need to (whether solo or part of a company).
Animations have a pretty wide range. The sort of insane things people are crafting with css is amazing.

You'll get annoyed at JS. Power through it. Once you get past the HTML/CSS side of things, you can become really frustrated at yourself due to not being able to just fuck around with shit until it looks the way you want it to. Some solutions just require a good nights rest.
Anyways, build small projects along the way to show off your skills. It doesn't have to be all-encompassing. For example to show off your HTML/CSS skills, create a single beautiful page reviewing your favorite album/game/movie.
>>
File: i9V4DKH.jpg (30KB, 560x560px) Image search: [Google]
i9V4DKH.jpg
30KB, 560x560px
I'm trying to implement a simple fixed background, scrolling body parallax effect:

https://www.w3schools.com/howto/tryhow_css_parallax_demo.htm
This one, to be exact.

It works fine in the browser on Chrome. I can save the file and open it and it runs great in Chrome. But whenever I try the same exact verbatim code on my own site there's no fucking parallax. It's like it hates the fact that I implemented it myself.
Anyone else seeing this shit? Is there an easy to make mistake I'm running into or an unfixed bug in Chrome?
>>
>>59787214
post the site where it isn't working
>>
>>59786906
>I'm learning flexbox right now so I can position my layouts and make them responsive. Is there any need to also go in-depth and learn more about other positioning techniques?

No. CSS and HTML has all the depth of a garbage dump.
>>
>>59787240
Working in a quick and dirty mock-up file right now, so I'll just dump that. I'm really hoping this is something stupid I'm overlooking.

https://pastebin.com/qgRVscus
>>
>>59787271
>using a pastebin
>not codepen/various alternatives
??=??

>>59787243
Garbage dumps are pretty deep though lmao
>>
>>59787310
I'm trying to show you the entire webpage I'm working with here so we can see how my webpage is effecting the parallax effect I'm going for.

>Obviously the parallax works on its own, I pulled it from w3.
>>
>>59787271
> .bg-1. .bg-2, .bg-3
here's your mistake.
>>
>>59787349
w3 is the one who chose that convention. It's valid.
>>
>>59787379
no it isn't.
>>
>>59787349
>>59787379
Oh fuck, I see it now! God bless you! I knew it was retarded
>>
>>59787397
My apologies, I thought you were referring to the naming convention. Thanks again man
>>
who else been using typescript?
started using it at job along with nodejs + koa doing backed stuff not the most motivating thing but also not boring.
>>
>learned ruby, php and javascript at school.
>learned rails, symfony and express by myself at home.
Now I hate my fucking life because I can't choose between things.
Now my websites are hacked/hackable as fuck because I don't have the courage to update them.
>>
Would getting into a webdev job be a good step for me? I'm very knowledgeable about Linux and lower level programming. But I'm self taught and in my experience not many interested in hiring without a degree. From my browsing web developer job postings I notice not many of them mention a degree requirement. But I dont really know very much about webdev things.
>>
>>59787830
it is comfy.

really weird at first though.

looks ugly.
>>
>>59783725
It's just a plan you offer. X/month for free hosting and bug fixes, discount on new features.
>>
For PDO/PHP are you able to bind an array to a named parameter? I've only used mysqli and a bit of hacks are required.
>>
File: C.jpg (105KB, 603x324px) Image search: [Google]
C.jpg
105KB, 603x324px
>>59787900
Lol pussy
>>
>>59788710
Asa string.
>>
File: 1391292834278.jpg (200KB, 1280x876px) Image search: [Google]
1391292834278.jpg
200KB, 1280x876px
I need to learn CakePHP or whatever the heck this is this weekend. Can anyone recommend a good course on that?
>>
Anyone know of a good PDF library manager for a web app? Really don't want to rewrite one from scratch
>>
>>59789614
How much experience do you have with MVC frameworks? I would say the best way to learn it is to just create a simple clone of a website like imgur or twitter or something
>>
>>59788202
>wants to program for living
>has no degree
>doesn't know shit about web dev
start learning then.
>>
To that guy was saying he didnt learn anything at work, WHAT?!

I learned more in a month than I ever did on my own shit.

I'm writing queries that join dozens of tables and optimizing them. I didn't know OOP really well in the language we use, but now I do. I also learned MVC because I'm a vanilla fag. Not only that, I learned a fucking metric ton about business and how clients should be handled. How to keep clients giving you money for extra services. How to appeal to clients and show them your software. Most importantly I learned making shit for business is more viable then making shit for consumers. For what they pay they could hire teams of devs to code their own proprietary shit and sell it too. It's crazy. For what one of them pays you would need a million normies with a pretty high conversion rate.

If you aren't learning anything then you're at a bad place.
>>
What's the best webservice host? Just looking for something simple
>>
File: 1426858342702.jpg (31KB, 456x320px) Image search: [Google]
1426858342702.jpg
31KB, 456x320px
>>59769967
>Assignment due in two days
>Not really even half finished, nothing's doing what I want it to

JUST
>>
>>59790594

Just about any of the VPS providers in OP are decent. Heroku offers a free small VPS, but it has a timed shutdown based off of inactivity. I use DigitalOcean and they're pretty cheap and decent.

>>59788202
>not many interested in hiring without a degree

That's because Low Level Dev and Web Dev are two different ballparks in terms of requirements, difficulty, and effort. Anyone with enough training can be a webdev and mistakes are a lot less costly at least on the front-end side of things. You also can get something magically despite not knowing some brain dead simple things. Low level programming wants people who know all the serious CompSci algorithms and optimizations and they want somebody either with a paper telling them that they know it, or a serious portfolio proving that they do.
>>
>>59790936
https://pastebin.com/kK33RZkj for anyone interested.
It's supposed Javascript game with random amount of meteors generating and scrolling down, with an alien going side to side.

Should I just an hero right now?
>>
>>59790951
What do you need done?
>>
>>59791051
I need to make sure that
1: The "meteor" images are randomised with the "space" images for each new row as it is generated
2: Add in the player character's 100x100 px image
3: Make the player character move (you know, to keyDown and stuff)
4: Add the missile that shoots vertically (subtracting y value)
5: Add the alien in, which moves side to side (x++ until it reaches SIZE * 6 which is 600, then x-- until it reaches 0)
6: Add collision detection for the missile & player, and the meteors
7: Replace either the alien or the player & collided meteor with the explosion image

In two days.
Fuuuuck my life.
>>
>>59791113
Everything is pretty much done with 100 x 100 png images, and the canvas it's on is 600 x 700.
>>
>>59791113
Want to work on this together tomorrow?
>>
>>59791424
Sure, I'll just reply to my original post tomorrow and we can start up.
>>
>>59791467
By tomorrow technically today because it's 2:27 in the morning.
>>
>>59791467
I'll be up in 10 hours. Start a git.
>>
>>59791475
>>59791489
Ya'll gone fail miserably

Have fun
>>
File: 1430587680753.jpg (30KB, 500x359px) Image search: [Google]
1430587680753.jpg
30KB, 500x359px
>>59791580
thanks.
>>
>>59791489
Github is confusing af.
>>
>>59791751
...just upload your shit and post the repository.

Is this just vanilla JS or does it use phaser or some shit?
>>
>>59791580
I'm going to do this nerds homework in 4 hours while drinking and watching cam models.
>>
>>59791803
Just vanilla JS.

>>59791803
https://github.com/anon2112/SchoolProject/
?
>>
>>59791916
That works. You have to upload your whole project there.

Bed time. See you in 8 hours.
>>
>>59791822
>I'm going to do this nerds homework
>nerd

>>59791676
Rekt
>>
>>59769967
Why do people like Vue.js?
>>
>>59792112
easy to learn and start doing things
>>
File: realistic-update.png (106KB, 1664x944px) Image search: [Google]
realistic-update.png
106KB, 1664x944px
Why is the Ember team so awesome?

http://yehudakatz.com/2017/04/05/the-glimmer-vm-boots-fast-and-stays-fast/
>>
>>59777384
You can do PHP / Wordpress / Insert PHP CMS product here on Godaddy
>>
{{route('courses.enroll', ['id'=>$course->id])}}

how in the fuck do I do this? do I really have to name all my custom routes with the "as" shit?
holy fuck
>>
None of the “sha384” hashes in the integrity attribute match the content of the subresource.

didn't get this one yesterday.
what changed?
>>
What's a cool way to visualize diffs?

Of very short data, a sentence max. I have ~20 variants for many items. I don't know how to display it in a way that's easy for the user.
>>
Has anybody used Webpack as a static HTML site generator? I think that would be pretty neat, cache busted CSS and assets, use NPM modules in JS if you have any. Does it work in practice?
>>
Anyone here worked with cordova plugins before?
Mostly asking for plugman help for plugin generation and how to dev them.
>>
>>59792781
I use
->name('courses.enroll');
for my routes.
>>
>>59791916
I'm awake and there is still nothing there. Why is there nothing there?
>>
>>59795325
it was a ruse, anon.

one day left for you.
>>
>>59795344
No, I'm the one that's going to work on it but they didn't upload their project.
>>
>>59795383
it would have been more fun the other way round.
>>
>>59794761
Yes and no.

I do have a question for you though. Did you find a way to gen apps for ios on any OS other than ios?
>>
>>59795402
last time I checked, there is none, the required files are bundled inside of xcode which is only working on OSX.

So no, to dev iOS/OSX apps you need OSX.

Even if swift is open source and you could get it working on lets say arch, you'd still need the iphone SDKs from Xcode.

Also appstores requires you to develop in a mac.


Before anyone gets sassy I assume writing the code does not answer the question.


I guess I'll just do a script to automatically move all of the new files into their respective plugin folders desu.
>>
What's the best place to start with React? Any generally agreed upon good resources?
>>
>>59795814
http://www.reactsask.ca/
>>
>>59791822
>>59791803
>>
Looks like I'm compiling apps while getting drunk and watching webcam models because fuckboy doesn't want his game finished.

This isn't how I wanted my saturday to go.
>>
>>59795325
There's nothing there because I haven't used github before. lmao

How do I share the files over Github? I have my .git folder and the project folder together.
>>
>>59797668
https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
>>
File: this.png (5KB, 481x62px) Image search: [Google]
this.png
5KB, 481x62px
>>59797668
Did you look at the buttons?
>>
>>59797721
Where is that menu located lmao
This is a mess
>>
>>59784883
You don't need to give them admin privileges. You can give them Editor where they can only create pages/edit content.
>>
So I'm launching today.

2 things.

1 doesn't have monetization, but I'm tired of it sitting there. The other is a mobile app that's releasing for everything but ios unfortunately.

I'm making a web version soon, probably tomorrow, but today just throwing in a recaptcha and ads then launching.
>>
>>59797683
That didn't help at all because I don't know whether to use Git Shell, CMD, and I don't even know how to open Git Bash.
>>
>>59797872
any terminal/command prompt where you can run git from.
>>
>>59797780
It's not a mess.

Go to the link you posted to the repository and it's in there on the right. I'm bad at Where's Waldo and even I could find it, so you'll be alright.
>>
File: We ain't found shit.png (89KB, 1711x1003px) Image search: [Google]
We ain't found shit.png
89KB, 1711x1003px
>>59797898
It's in there on the right? What?
>>
>>59797979
Create a new repository and initialize with a readme.

Then you will see the upload button.
>>
>>59798023
Thanks, uploading.
>>
>>59798059
>>59798023
https://github.com/anon2112/CollegeWork.git
>>
>>59798076
>https://github.com/anon2112/CollegeWork.git
Ok, cool. I decided to launch today so I'll help on it in maybe 6 hours or so.

Go to the projects tab and start writing tasks for each thing you need done.

Also it might help to watch a video about how github works so you know what to do and what to expect.
>>
>>59798141
Thanks I'll get right on this you really are a life saver for my dumb ass.
>>
Honestly moving a site to using B isn't even that bad. I thought this would cost me my sanity but it's pretty enjoyable. Now I see why bootstrap is so popular.
>>
Anyone seeing these new fucking ads in the middle of the page? Wtf is hiroshimoot doing?
>>
>>59800237
>2017
>Not using an adblock
>>
>>59800269
I left my ublock off until today when the ads started populating the middle of the fucking page.

Even when I turned ublock on it didn't stop the ad from displaying. I had to specifically block the element in ublock.
>>
>>59800328
congratulations, you have a malware addon installed.
>>
>>59800328
That's ufucked.
>>
>>59800479
ublock is malware?
>>
>>59800494
no, the shit that adds the ads is.
>>
What is the severless stack? I have React. What else? Storage?
>>
What's the best place to host my website?
>>
>>59801709
>>59801709
Thread posts: 316
Thread images: 37


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.