[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: 312
Thread images: 27

File: abstract feel.jpg (24KB, 680x357px) Image search: [Google]
abstract feel.jpg
24KB, 680x357px
>Old thread
>>58178871

>2017
https://www.youtube.com/watch?v=9hDKfBKuXjI&list=LLwRtIj049ZcQzK3mtoh-_yw&index=15

>This season's Advent of Code:
https://adventofcode.com/2016/

>Discord
https://discord.gg/wdg
OR
https://discord.gg/0qLTzz5potDFXfdT
(they're the same)

>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
>>
$(document).ready(function(){       
var scroll_start = 0;
var startchange = $('.navbar');
var offset = startchange.offset();
$(document).scroll(function() {
scroll_start = $(this).scrollTop();
if(scroll_start > offset.top) {
$('.navbar').css('background-color', 'rgba(34,34,34,0.9)');
} else {
$('.navbar').css('background-color', 'transparent');
}
});
});

$( "section.aw-accordion div" ).mouseover(function() {
$(this).css('width','50%');
$(this).siblings('div').css('width','14%');
});


Can anyone tell me what I am doing wrong. I am a total beginner, the accordion part works, but the navbar does not.
>>
This fucking CODECADEMY shit is triggering the FUCK out of me.

Started the HTML course, completed it, it was pretty good at giving me feedback for where I fucked up. Fantastic, I learnt a lot.

Then I started fucking Javascript and whatever cock monkey designed this course is a fucking retard. Lessons will ask you to do things that it either

>hasn't taught you yet
or
>won't teach you until 5 lessons later

And then when you fuck it up because I AM LEARNING it gives ZERO FUCKING FEEDBACK ON WHAT IS WRONG.

Okay, fine, I will learn to troubleshoot on my own. Except when you go to look things up it inevitably just leads me to the answer, which I end up regurgitating, and YAY I LEARNT FUCKING NOTHING.

Then there are sections that are just straight up fucking WRONG. Take for example pic related. This shit wouldn't give you only names of "Eric", it would give you ANY FOUR LETTER FUCKING NAME THAT STARTS WITH E. IT IS TEACHING ME INCORRECT WAYS OF DOING SHIT.

REEEEEEEE.
>>
>>58225060
$(document).ready(function(){       
console.log('step1');
var scroll_start = 0;
console.log('step2');
var startchange = $('.navbar');
console.log('step3');
var offset = startchange.offset();
console.log('step4');
$(document).scroll(function() {
console.log('step5');
scroll_start = $(this).scrollTop();
console.log('step6');
if(scroll_start > offset.top) {
console.log('step7');
$('.navbar').css('background-color', 'rgba(34,34,34,0.9)');
console.log('step8');
} else {
console.log('step9');
$('.navbar').css('background-color', 'transparent');
console.log('final');
}
});
});


cba reading the code, especially jQuery. Try this and see which is the last step.

Also any errors lol?
>>
File: shitneverworks.png (19KB, 489x184px) Image search: [Google]
shitneverworks.png
19KB, 489x184px
So I'm using this script for my html file, trying to GET some data from my api but shit won't work. I'm getting this problem when I open my html file in the browser:
>"XMLHttpRequest cannot load >http://localhost:8080/api/. No 'Access-Control->Allow-Origin' header is present on the >equested resource. Origin 'null' is therefore not >allowed access."

What the fuck am I doing wrong?
>>
>>58225269
>What the fuck am I doing wrong?
AJAX doesn't allow cross-domain requests OOTB because that would be a massive security risk.
>>
>>58225269

host the js on the same web server as the api is running on
>>
>>58225131
of course it would, you're just giving it "E" and 4 letters (length of "Eric")

try matching against myName[0] for the first letter and if hitting that for the length of myName going myName[1], myName[2], myName[3] in the loop

that should onyl match your name
>>
>>58225269
>>58225284
>>58225285

or just allow CORS on localhost
>>
>>58225316

I know that. Except CodeAcademy just stops there and goes "lol you did it!"
>>
>>58225348

what did you expect from such a platform anyway?
>>
>>58225285
What's the easiest way to do that?
>>
>>58225367

Feedback that was on par with the HTML stuff.
>>
>>58225418
deeeewd

are you fetching that from your own server?
if so, you can do >>58225325

header('allow-cross-origin-blah-blah');
header('allow-origin: js loading site');

in php

or just use a cors plugin for virtually any other language

OR
OR
OR

you can print out the ajax result in javascript

like

echo /* or whatever */ "var data={%D};", yourdynamicdata;
>>
>>58225456
>you can print out the ajax result in javascript
oooooh check this out

backend prints out this

var somedata={'somedata':{}};
var i_have_loaded_your_data = true;



and in your js that calls it you can


(function(callback)
{

var tvWFSD = setInterval(function() // temporary variable Wait For Some Data
{
i_have_loaded_your_data
?
(
callback(), clearInterval(tvWFSD)
):null;
}, 300);

})(function()
{

// use somedata

});

>>
what is /wdg/ opinion on spring?
>>
>>58225566
summer is better
>>
>>58225566

becomes a complete mess when people start arguing over xml vs annotation dependency injection
>>
>>58225247
holy shit, set a breakpoint and step through instead of doing this.
>>
>>58225549
don't do this kids.
>>
>>58225549

dear god, the fuck is this
>>
>>58225131
Codecademy is fucking retarded, stop using it. Besides the bullshit you posted in half the other courses it treats you like you're retarded and is one of the slowest ways of learning code.

Literally use anything besides codecademy, there are so many better resources
>>
>>58225060
try to log offset.top and scroll_start value and see the problem, I think both are equal because if navbar is fixed it will follow scroll bar position
>>
File: Screenshot at Dec 29 16-20-40.png (9KB, 585x154px) Image search: [Google]
Screenshot at Dec 29 16-20-40.png
9KB, 585x154px
How would you guys about doing buttons with triangles like this on the side?

I'm thinking maybe make the shape an svg, but I'm not sure if hover would work on it. Or maybe after/before selectors and some mask?
Not sure at all.
>>
>>58226139
https://codepen.io/anon/pen/jVgYWB
>>
>>58226266
>https://codepen.io/anon/pen/jVgYWB
what the hell, that's perfect, thanks a lot!
>>
Is
https://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf
still relevant?
I'm updating a 10 year old business site of mine with pretty bad search results (Page 2-3 for relevant keywords on google).
The PDF doesn't mention any structured data so I'm not sure if it's still relevant or not.
>>
I need to make a simple json server to handle some POST requests using the connect module (I think it's easier this way) for tomorrow. I've not much time so I'm looking for a sample code to start with. Where can I find one?
>>
>>58227121
what server language?
>>
>>58227137
javascript
>>
>>58227121
>>58227147

for a quick endpoint express seems to be pretty handy:
http://expressjs.com/en/starter/hello-world.html
>>
>>58227180

this. Def start with Express if you want to learn back end with JS.
>>
File: selection.jpg (361KB, 1920x966px) Image search: [Google]
selection.jpg
361KB, 1920x966px
First 2 letters can't be selected when I make the first letter bigger with CSS. How can I solve this?

Code:

.article-content p:first-of-type::first-letter {
font-size: 4.9rem;
padding-right: 0.4rem;
float: left;
line-height: 4.6rem;
font-weight: 700;
}


Also, you might as well rate the design if you don't mind. Made a pretty heavy change.
>>
File: first-letter.png (4KB, 208x105px) Image search: [Google]
first-letter.png
4KB, 208x105px
>>58227497
seems to be a bug in chrome, works in firefox and edge but not in chrome.
>>
File: two.jpg (282KB, 1920x849px) Image search: [Google]
two.jpg
282KB, 1920x849px
>>58227566
Wow, you're right. Also, my font is not rendered at bold weight anymore in Chrome, and it was before. In other browsers it looks like it should, but it is thinner in Chrome. I'm pretty sure it shouldn't look that way.

E.g in Firefox:

>pic related
>>
>>58225737
this. other than the html course (it's not that bad imo, but not really good), all the other shit is retarded
>>
>>58227755
I'd add a short course on using APIs too. I finally understood how that works after going through the course.
>>
>>58227755
it should be removed from the op, imo
>>
>front end
>>
>>58227121
>>58227180
Agreed. If you're into web, you really should learn some basic node.js. At least enough so that you can do a simple http server that you can customize as a test tool. Node made it so simple that I realized a few years ago that I was actually hurting myself by NOT knowing how to use such a simple and universal tool.

PHP is the other server-side environment you should at least know basic usage -- it has the advantage of being universally available, so for example PHP will definitely be available on any shared web hosting account whereas Node will probably not be. It doesn't matter if PHP sucks or not -- it's absolutely everywhere, so people will look at you funny if you're not familiar with it.

It really takes very little time to get a basic understanding of both. Just install them and check out a few tutorials. Just one full weekend of exploration can give you a bunch of basic tools.

If you don't do this, then you're like someone who thinks of himself a "carpenter" but who has no experience using a screwdriver. It's not good to be weird in that way.
>>
>>58227803
>being a backend monkey without any other skills
>>
hey anons, im trying to change default apache folder but shit aint working
i changed httpd.conf file
every line that had /srv/http/ i changed to wanted location but server aint working.
This is what i get in logs
[Thu Dec 29 18:35:37.292285 2016] [unique_id:alert] [pid 5520] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "arch"
AH00016: Configuration Failed



using arch
>>
>>58227824

i'm full stack. even if i knew back end only it's still better than being a front end babby
>>
>>58227826
either add your hostname with the IP apache should listen on to your hosts file or disable the unique_id module
>>
>tfw running PHP on IIS

not sure about this feel
>>
>>58227846
>backend is super hard guys!

But both are needed and both have their challenges.
>>
>>58225131
Stop doing meme academy. Its garbage.

If you know:
What a variable is.
What different types of variables are (strings, numbers, arrays etc)
What an if statement is.
What a loop is.
What a function is.

Then you're now equipped with the tools you need to program automatic computing machines. People have programmed (terribly) without even knowing all of those things. Like I saw code for a game that had no loops in it, everything was done by hand. It was shocking.

Use these tools to make something fun and interesting. If you encounter a problem then look up how to solve it. If you can't solve it then break it up into smaller problems and repeat the process.
>>
>>58227986

uhh, much more complex than front end, thats for sure....front end dev is mostly just HTML/CSS...which isn't even close to programming
>>
>>58228065
damn being a pilot is so fucking easy, all you do is enable autopilot and off you go.
>>
>>58228085

here's your (dotted underline)
>>
>>58227846
Backend is easy. Get the data, fuck with it, send it somewhere else. Write code that passes tests, code runs in an environment that you control... Easy peasy.

Frontend is hard. Code executes in a browser, which is enemy territory and anyone can fuck with it, unreliable slow networks, has to work on every device and a plethora of different browsers. Browsers are single-threaded and the one stack handles javascript execution and repaints. You can write all the code you want, pass as many tests as you want, but the thing you built could still be fucking shit from a UX perspective.

Yet despite all these challenges, there's a meme that "frontend" means "entry-level", and so we end up with frontend being done by monkeys who think its just about picking fonts and colors... Meaning that the average page weight in a modern web page is 3.5mb, heavier than War and Peace, and the web is all but unusable on mobile which is why everyone still uses native apps.

So you're objectively correct, frontend monkeys are shit, and they are the reason the modern web sucks.
>>
>>58228236

whats the main reason for heavy slow front end? all these js and css frameworks hog everything down? seems like it to me. I've only ever used bootstrap and jquery. Which seems to be fine, however i've seen some incredibly sluggish websites and when i inspect it i see all this bloated js code and tons of libs included. The reason I think front end is full of monkeys is because it's easier to get into at first and it's becoming flooded. And developers want to make all these front end tools for them, when really you should keep your front end as clean as possible.
>>
How to make it save all information and not just one?
https://jsfiddle.net/y3mtvput/
>>
>>58228357
>whats the main reason for heavy slow front end?

There's a lot of reasons. Large assets, shitty JS, DOM thrashing, shitty animations that don't use CSS transforms so the browser has to repaint the screen every time something moves instead of having the GPU compositor handle everything.

I'd recommend watching a youtube series called Supercharged by Paul Lewis where he dissects different websites and explains how they could perform better. There's also a bunch of videos from the 2016 chrome developer summit which are worth watching.
>>
>>58228498
read all the other fields, concat them and save it like you do now with that one text field.
>>
PDO question. I'm trying to see if my ->execute() function is working properly. This is what I have now for an update record request:

if ($updateStatement->execute())
{
$updateMessage = "Package info successfully updated.";
}
else
{
$updateMessage = "Unable to update package info.";
}


However this also returns true even if you update a record that doesn't exist. The way you can get to a record that doesnt exist is pretty rare, but i did find a way to do it. If I delete the record in the DB through admin, and the form was already opened with this particular row data showing and you try to save it (after i delete the record), it will still return true. Can I somehow check to see if a record exists before trying to update it?
>>
How do I tell apache to cache my static assets?
Most of them don't change often and if they do, I can cache bust them by appending a version query parameter to each asset's URL.

I don't want to server the files over PHP just to set the cache headers I want.
>>
>>58228762
https://secure.php.net/manual/de/pdostatement.rowcount.php

If that is 0, then no row was affected.
>>
>>58228792

thank you based senpai
>>
>>58225060

Is the navbar position: fixed?
>>
>>58228598
Thank you!
>>
>>58229321

No worries I fixed it, I changed it to a "add/remove class" method.
>>
>>58228236
This. Proper frontend is way beyond HTML and CSS. You are talking about web design, because even they have to know at least that (+ some jQuery) - not saying that's easy either (personally my favorite part).

+ you have whole UI and UX fields and have to think about users, simply making something work is not enough. I can make CRUD just fine, that's easier.

Also, I don't remember when did somebody say backend is hard and wanted to move to frontend - but you can regularly hear people talking they can't deal with frontend shenanigans and/or can't design for shit so they want to move to backend.

I thought frontend was not that hard either, but when I went to some internships I was blown away by how much shit you have to worry about. I actually realized I don't know shit yet.

If you use bootstrap and some simple jquery and call that a frontend - you're wrong.
>>
>>58230410
Also, let's not forget - people don't care about your backend code. Frontend is what they interact with and what they care about.
>>
What does {% trans %} even mean ?
>>
Any good resources for learning how to create dashboards?
>>
>>58230443
I interact with ur mum's backend every night
>>
>>58230443

People, meaning users, most certainly care when your backend code has an unforeseen bug and half a continent cant access a crucial part of your service.
>>
File: 1460901951842.jpg (15KB, 235x212px) Image search: [Google]
1460901951842.jpg
15KB, 235x212px
>>58230555
>how to create dashboards
Do you even know what you're asking?
>>
>>58230592
no
>>
>>58227497

welcome to webkit

https://bugs.webkit.org/show_bug.cgi?id=6185
>>
UI and UX elements play a huge role in front end development, but there are still too many front end babbies who know "just front end". The term "front end" scopes in too much on HTML and CSS. Even if you're using a JS framework like Angular or something. Borderline useless if you have no data or you want to create just a static site. If you actually make it by just being a front end guy, then you most likely know UI, UX, and good browser practices at a high level as well. The problem is the "learning how to code" meme doesn't emphasize the vast components of a full usable application. Sites like CodeCademy are great....for 5th graders. Plus the need for just front end people isn't very high. At least in my area. I rarely see just a front end position. Full stack or dotnet postings is what I see 90% of the time. In fact, knowing back end will ultimately help your front end and UX because it helps to know what and how much data you're working with. Code meme sites should dive into MVC a lot more deeply.

>>58230443

I disagree to an extent. If users are reliable on data then the front end needs to operate accordingly. A lot of front end requests from clients actually require back end changes first. Unless you're just talking about a background color a client continuously can't decide on. *rolls eyes*.
>>
Need an idea, theme, something to do so i can start stretching out and learning Anuglar2 for work prior to this project starting - any ideas?
>>
>>58231125
>Need an idea

Make a progressive web app that runs decently on a mid-range android device on a real 3g mobile network.

No that doesn't mean using device mode in chrome dev tools.
>>
Is there any way to make text added by the CSS content property actual text that can be selected, copied, etc?

If not, what other ways are there in CSS to append text to elements of a specific class?
>>
with HTML5 can i read into a "date" input type? so it automatically will choose the correct date if i read from a db and give it a value on DOM load?
>>
>>58230812
In my country there are lots of positions for web designers and frontend guys atm. Would you say one should then focus on that or be a jack of all trades?

Also, is it possible to make it as a web designer (UI / UX) today? I kinda don't like to code/program much.
>>
>>58231248
try explaining again, that made no sense whatsoever.

>>58231185
you can't, they aren't in the DOM.
there's no way to add text to elements other than the before and after pseudo-elements.
>>
>>58231290

of course it's possible to make it. I don't want to tell you what to focus on, either. Whatever your heart desires. Though keep in mind design/art jobs are competitive and people underestimate it as a career choice. You have to be really freaking good...and have your own unique style. I actually started doing graphic design awhile back, and my boss at the time would get about 20 emails/applications a day and would open only a couple of them. About once every 2 months he found something he liked and gave them a call. I don't know how I got hired honestly because I'm not elite at design. Got lucky I guess. I ended up quitting because I didn't enjoy working with clients as a designer and long term, I felt like being a developer instead. Just not for me.
>>
>>58231347

<input type="date" name="date" value="<?php echo $myDate; ?>" />


when this happens it doesn't change to the date i feed it when page first loads. Just says "mm/dd/yyyy".
>>
>>58231474
the value requires a date as string with the yyy-mm-dd format, anything else is not valid.
>>
>>58231496

ah i see. Twas using slashes not dashes
>>
hey guys is there any place to find CSS templates for a cam site. I was contracted to build this girls homepage but i don't have the time to do it from scratch. If you guys help me ill link you to her vids and nudes as a token of my gratitude
>>
whats the status on using ECMA 6 stuff?
and what about CSS3?
>>
>>58230555

Flexbox for layout
AJAX for gathering data
>>
I don't care about how fast or scalable or cutting edge my web app is, I just want to get something prototyped fast. Would nodejs be a good choice? I don't have a lot of web dev experience, my background is mostly in C/C++ and some C#/.NET/WPF. Never really used Javascript but I'm sure I can manage.

I'm not really set on node or anything, I just heard that you can hack a prototype together on it pretty quickly. I'm open to alternatives.
>>
>>58232305
You can get a backend up relatively quickly with NodeJS, on the other hand you can do the same thing with WebAPI. I know both and tend to pick WebAPI over Node because i prefer C#.
>>
>>58232386
nodejs has significantly less boilerplate than webapi, also fuck static typing for prototypes
>>
>>58224919
It seems asp.net core is the way to go for little to massive web backends.
Taylor, the creator of Laravel, a fancy php framework regrets his choice.
He was a respected .net developer...
>>
>>58225566
It's nice if you have to use java. But preferably you would just go full Web dev mode in Ruby on Rails to get the cleaner syntax without the Java related legacy ugly.
>>
>>58224919
Is adobe dreamweaver or adobe muse worth a shit if I already have a license? I'm not paying for those two, I have them already.

I need to design HTML emails and a website that will only have one form. I've previously written websites like 8 years ago, although with a text editor.
>>
>>58232434
Also it's a fucking meme language. I have never seen any company ever use nodejs on any large scale.

And no, pump and dump startups do not count.
>>
>>58232710
If you're making a small prototype which u need to complete fast then why does it matter if someone else uses it or not, it's like it doesn't have any libraries for it but that's not the case. Btw PayPal and Netflix run on Node.JS.

I agree that for large projects node.js isn't the solution and Java or ASP.NET are better suited for that but they have way more boilerplate and setting them up usually takes quite a while longer.
>>
>>58232710

look up who uses node. Lots

it's the c++ of web dev. If you don't plan on doing any async with your app, then i'd say use M$ asp.net or php
>>
This guy appears to be firing immediately, any idea why?

setTimeout(getListings(startUrl), 900000);
>>
>>58232676
I've found things like Dreamweaver just make the job harder.
>>
>>58232710
Netflix

https://stackshare.io/netflix/netflix
>>
>>58233280

teh n00bs don't know about teh n0de yet... lolz!
>>
>>58232865
Php and asp.net support asynchronous shits too.
>>
>>58233280
Netflix is the shittiest VOD service of the world. We know why now. ;)
>>
>>58224919
working on a vaporwave style homepage, it's my first web based thing, feedback would be nice or vaporwave hex codes
>>
>>58233497
vaporwave sucks lol

are you going ot make everything really slow to load as well bcuz (lol we did that in the 90s) and things slower are magically cool

fucking hipstesr
>>
>>58233522
>are you going ot make everything really slow to load as well bcuz (lol we did that in the 90s) and things slower are magically cool
no I just happen to like the style and it doesn't hurt my eyes the musics pretty chill as well and as for the hipster thing no one knows I like vaporwave and no one (excluding people on 4chan) ever will so I don't see how it makes me a hipster
>>
>>58233522
yes
>>
>>58233553
i prefer proto-anti-vaporwave

https://www.youtube.com/watch?v=dV_m1H3hDio

the aesthetic is just "IRONY" and distortions of stuff. It's fundamental core is that of not taking anything seriously and destruction that nihilistic hipsters love so much
>>
>>58233399
>company that serves 36.3 million people
>shitty

Yeah, okay. I forgot every is in a pissing match to act more "in the know" and elitist than everyone else here.
>>
Portfolio page for software development freelancer.

Color theme: red or blue?

>Blue
Masculine (S)
Competence (S)
High quality (F)
Corporate (F)

>Red
Lust (S)
Power (S)
Excitement (S)
Love (S)

Blue: IBM, AT&T, Intel, Samsung, HP
Red: AirBnB, Oracle, Lenovo, Nintendo

Seems like blue is the only sane choice.
>>
>>58235493
Green is the only answer.
>>
idea guy here

its like google but vaporwave
>>
They should rename Javascript to Stupidscript. Because it's stupid.
>>
>>58225737
As someone who just finished the HTML course for codeacademy, what other sites would you recommend? Is CA really that bad?
>>
FAP.net developer here
https://www.nuget.org/packages/FAP.dll/

Do I have any users here? I'm working on it over my break and during a lull at my new job, anyone have any errors more serious than user mismatches? No one posts me issue reports for some reason.

I'm also trying to get react.net working on Linux, which if you can follow the links I've written software between that and FAP. Anyone got some good v8 example code working? It basically requires a rewrite of all the libv8 bindings. I'm not sure how far I'll have to go.

If this does end out working, I have limits like last time. There will be no debugging of server side rendered components, debug from the browser.

>>58233128
The job is easiest when it's seen as programming. An IDE and a browser is all you need, but you've got to have the API documentation hinting. You don't get that with JavaScript.
>>
>>58236750
shill elsewhere tryhard
>>
>>58237137
Just trying to make something good.

I like the idea of returning a webpage complete with backend data in under a millisecond, which to me is before you can perceive it as a human. If that makes me a try hard, I hope never to use anything you make nor to work with you, because you are probably shit.

/wdg/ is the only place I've posted about my web platform. Only they shall taste pure true efficiency standards.

V8 a shit.
>>
4chanX CSS question
Trying to get dead links to appear with a strikethrough rather than with the (Dead) label

>>1234

.deadlink.quotelink .qmark-dead {
width: 1;
display: inline-block;
position: relative;
overflow: visible;
color: rgba(0,0,0,0) !important;
}
.deadlink.quotelink {
color: blue !important; #why is it that this works
text-decoration: line-through; #but this doesn't?
}
>>
How do I get red of this issue where whenever I go to a URL of
localhost/website/test
breaks my CSS due to directory issues and when I go to
localhost/website/test/
it shows the correct assigned css file and shows the right sub directory?

Is there a .htaccess way of fixing this? To directly lead the user to a [uri]/ instead of a [uri] ?
>>
>>58239248
Add !important after it, it overwrites the initial CSS
>>
>>58239326
Tried already. It doesn't work, appearance doesn't change.
Maybe it's different for Chrome.
>>
>>58239339
Yeah try a different browser, if it's chrome only, then you gotta find another way of doing that. Otherwise, the CSS might be done differently. I never modified 4chanX CSS so I'm not sure.
>>
>>58228060
mind linking the game?
>>
font-family: Verdana and font-size: xx-small is objectively the best
>>
>>58239248
>>58239339

width: 1 is invalid, it needs a unit like px.
it's also getting overridden by
>.backlink.deadlink:not(.forwardlink), .quotelink.deadlink:not(.forwardlink)

so force a higher specificy by adding a selector.
html .deadlink.quotelink, html .deadlink.quotelink:not(.forwardlink) {
color: blue!important;
text-decoration: line-through!important;
}


check the dev tools to see why and what overrides css rules
>>
>>58239884
Thanks, that worked.
I've never really done any CSS editing before, I was adapting code I have gotten on here the other day from some anon to hide an element and replace it with another. Not really building it ground up since I have no knowledge.
>>
One UX question - when you finish reading an article, what do you like to see at the end?

>related articles
>articles from home page
>older articles in the same category
>next/previous articles
>next article loaded by ajax as you scroll
>>
>>58233725
Don't trust stats from them, this company lie all the time like 99.999% of US companies.
>>
>>58240006
other peoples comments
>>
>>58240195
ofc, but after that?
>>
>>58240006
Maybe a mix of articles from the categories you mentioned.
Not a fan of the autoloading articles but I guess they can improve the chances of you staying on the page.
One thing that about automatically loaded articles that annoys me immensely is when I'm trying to access information in the page footer but can't because new articles keep loading and pushing the footer down. If you have automatically loading articles use a hamburger menu or some sort of sidebar to keep that info.
>>
>>58240543
Thanks for an idea. Yeah, maybe I could even load an X number of articles, and then stop loading them automatically. But I never really understood why people care so much about footers, I never ever used them. I don't care about info of a website, and everything else can be found elsewhere (at least in my case).
>>
>>58240622
Maybe I want an email, the official twitter, want to see the about section, sometimes there's a list of key staff, that kind of stuff.
As long as it's accessible elsewhere it's not a problem.
>>
how come nobody actually posts any code in here like /dpg/?
>>
>>58242288

nobody here actually knows how to program
>>
>>58242288
Depends on a thread. Also, you're blind if you don't see the code ITT.
>>
>>58242288
/dpt/ is just a bunch of haskell hello worlds, no one there know how to program

>>58242341
also this
>>
File: 1481217527410.gif (1011KB, 500x590px) Image search: [Google]
1481217527410.gif
1011KB, 500x590px
thoughts on codewars.com?

I'm learning JavaScript and codewars is basically just a bunch of practice algorithms like determine if number is prime or reverse a string.

is it a good use of my time or am I better off doing something else
>>
I have a problem with CSS. Can you please go here and scroll a bit and then open a hamburger button on the left?

https://the-kinematograph.rhcloud.com/

For some reason, the top bar which is fixed, stops being fixed when the sidebar is open. It just dissappears, basically. I still don't understand what causes this behavior so I have to ask here. Thanks.
>>
>>58243149
change the width of the sticky menu when the sidebar is open. pretty sure that's doing it
>>
>>58243014

the site doesn't matter. the practices out there still exist. don't get caught into meme "coding" sites. If you're learning javascript then learn how to actually make an application. Look up highly rated JS books on Amazon if you really want guidance
>>
>>58243439
That was my thought at first too, but it changes the width with a container, so it doesn't seem that is the problem. You can check it out in dev tools.

Also, before, I had that hamburger button fixed in the middle left of the screen and when I would press it, it would lose its "position:fixed" too.
>>
>>58243014
You will learn to program with that.

My personal advice on learning a new skill.
Have a project. Build and app with JS that does something you like or care about. You will learn on the way.

Ideas using Greasemonkey(firefox extension):
A 4chan reply counter;
Show (You)s instead of the new dotted line.
>>
>>58240034
Even still, let's say they have some Good Will Hunting savant cooking their books by 50% (impossible), that's still over 16.5mil...
>>
>>58243014
>thoughts on codewars.com
It's pretty decent for coding practice. Those practice exercises are only valuable to a certain extent. I'd work on putting together some real-world web-pages once you get the hang of how scripting works.
>>
File: 1483044507480.jpg (1MB, 2086x1215px) Image search: [Google]
1483044507480.jpg
1MB, 2086x1215px
Can people in this thread please review this webpage.

Tell me what you think about its layout, style, and usability.

https://the-kinematograph.rhcloud.com/

Thanks.
>>
File: Untitled.png (6KB, 210x321px) Image search: [Google]
Untitled.png
6KB, 210x321px
>>58244329
botnet
>>
>>58244329
hamburger button is wonky when closing the menu
>>
var nextAction = function() {
setTimeout(getListings(startUrl), 900000);
};


getListings(startUrl);


next action is called and the program should be sitting in timeout, does the getListings function trigger anyway? The current behavior I'm seeing makes me think that it does.

That getListings at the bottom is how I start my code btw, it's just a circular chain of functions
>>
>>58244586
your getListings (outside of nextAction) triggers.
When you then call nextAction() your getListings will execute immediately.
you want to give settimeout a reference to a function, not execute it.
so either just pass it getListings without the braces or create an anonymous function calling it.
var nextAction = function() {
setTimeout(function() {
getListings(startUrl);
}, 900000);
};
>>
>>58244668
you're the man, thanks
>>
why isn't this working? im trying to strip double quotes. Every other character works, why not this?

$data = str_replace('"', "", $data);
>>
>>58244980

nvm my htmlspecialchars function was preventing it from working
>>
How the fuck am I supposed to remember what type function arguments are supposed to be or what a function returns in an untyped language like javascript? In java all I had to do was to hover over the function and I would get all the information I needed. In javascript I feel like I'm just fumbling in the dark. Is there some IDE or extention that helps me with this?
>>
>>58245047
I'm sure you already know this, but replacing it with space would be much more efficient.
>>
These domain resellers are way way way out of hand.

I guess I just need to trademark my name so I can sue them for it. BUY THIS NOW ONLY 30,000 DOLLARS!
>>
PDO question. Why can't I ->bindValue() with a ->query() statement? Looks like I can only bind vaues with ->prepare().

The reason I'm using ->query() is because I'm using ->rowCount() on a SELECT query.
>>
>>58245526

>The reason I'm using ->query() is because I'm using ->rowCount() on a SELECT query.

You don't need to do this.
$stmt = $pdo->prepare("SELECT COUNT(*) FROM users WHERE firstname=:firstname");
$stmt->execute['firstname'=>$firstname;
$countTotal = $stmt->fetchColumns();
>>
>>58245672
>$stmt->execute(['firstname'=>$firstname]);

I just woke up.
>>
>>58245672
Also apparently columnCount(); is a thing. I'm sure I use fetchColumns for a reason though.
>>
>>58245686

why do i have to pass parameters in execute()? why can't i just bindValues() like i've been doing before?
>>
>>58245718
I'm pretty sure you can still do it your way. Just do columnCount or fetchColumns after you execute and you should be good2go
>>
>>58245799

yea both prepare() and query() work. Wow the official PHP docs need to be updated...
>>
File: i learned to program.gif (674KB, 666x418px) Image search: [Google]
i learned to program.gif
674KB, 666x418px
I finally did it, I learned programming
>>
HOW DARE YOU INSULT THE GREATEST GAME EVER MADE
>>
>>58245799

oh and columnCount() doesn't work. I have to do fetchColumn().

this is confusing as hell but I think i got it. So you don't have to use query() to find the number of rows returned on a SELECT query, because you can just use fetchColumn(). However, the rowCount() method will not work on a prepare() method which has a SELECT query passed through it. If it's not a SELECT query then just use rowCount().
>>
I was watching some YouTube videos on recommendations for learning web dev. Almost all of them recommend PHP. Am I being trolled or is it still worth using?
>>
>>58246058
PDO is unfortunately more jank than mysqli
>>
>>58244557
I know, can't be helped desu.

>>58244558
Yep, changed it to a "Sidebar" button. Btw, I didn't implement the navigation on mobile yet. Need to fix that shit. Thanks.

Any opinions on a layout? I posted here before and everyone has a different opinion - some people like minimalism and they just want to focus on the article, others like to have a buzzfeed 2.0 etc. I don't know what to do anymore.

Spent so much time on this that I can't describe how much I hate web design now. Biggest waste of time ever.
..
>>
File: 1476087736474.jpg (47KB, 327x322px) Image search: [Google]
1476087736474.jpg
47KB, 327x322px
>>58246064
>PHP
>>
>>58246511
>I can't stop spewing old memes because I actually have an incredible lack of humor, please kill me
>>
File: 1399339118262.jpg (19KB, 500x367px) Image search: [Google]
1399339118262.jpg
19KB, 500x367px
>>58246538
Speaking of old memes, have you heard of PHP?
>>
>>58246058

just want to clear this up a bit.... fetchColumn() will work on a prepared statement SELECT statement to find the number of rows, but only if you SELECT COUNT(*) of course.

>>58246112

this was the only the part i've hated about it so far. Seems pretty comfy for the most part
>>
>>58224919
Do you use other requests besides GET and POST of so, when?
>>
>>58246064
It's worth using it, here's why:
- Easy as fuck
- Really fast from 7.0+
- Most of the stuff you could possibly want is already implemented as a built in function/class or loadable extension
- There's literally a bilion hosting companies that support it
- Literally all webservers support it
- It's so popular you can do StackOverflow-copy&paste programming and still get rivers of money
- The hipsters have all moved on to node.js and elixir nowadays

The only disadvantage is that people will bully you for using it.
>>
>>58246709
PUT to update a record, DELETE for deletions.
>>
>>58246709
>Do you use other requests besides GET and POST of so, when?
Yes

GET for reading an item
POST for updating an item
PUT for creating an item
DELETE for deleting an item
>>
>>58246709
REST services tend to use PUT and DELETE a lot.
>>
>>58246734

why not just call queries on POST to DELETE and INSERT stuff?
>>
>>58246768
because you can use the same endpoint but still distinguish what you wanted to do.
PUT /item/5
to update item with id 5
DELETE /item/5
to delete item with id 5

compared to POSTing to /item/update/5 and /item/delete/5
>>
>>58246822

not him, but I don't like POSTing to new pages, so i just leave the action blank in my forms. Then I just use $_POST to do my CRUDing. I don't see the need for DELETE and PUT (and even GET)
>>
>>58246716
>hipsters
>using a functional language

I agree with the node.js part, though.
>>
>>58246709
No. I POST everything unless I'm using GET AJAX.
>>
File: settings3.gif (282KB, 1100x931px) Image search: [Google]
settings3.gif
282KB, 1100x931px
Boredom strikes again.
>>
html 6.0 when
>>
another PDO question. Lets say i have 2 sets of prepare, bindValue, and execute. It's assigned to a variable. If i want to do another set of these methods on the same request, should i give the new set a new variable? or can i just use the first one? wouldnt it just get overwritten with the 2nd set? I don't want to use extra variables that aren't needed
>>
What's a good LAMP setup for a dev rig? Just installed XAMPP and it seems to be working fine, should I just stick with that?
>>
>>58247517

yes but only use xampp for local dev. Use apache for your live app
>>
>>58247576
Apache is part of XAMPP, though...? But yeah, I'm vaguely aware that you're better off installing and configuring each component individually in a production build, although I'm going to have to do a lot of research once I get to that point.
>>
>>58247606

xampp just imitates a simple apache server (and other stuff). The actual entire apache server is separate from xampp
>>
web development is the lowest form of development

everyone in this thread should be ashamed of themselves
>>
>>58249311
Oh, I am ashamed of myself. I mean, I'm not a web developer, but I'm heading in that direction (hopefully I'll escape it).
>>
>>58249311
exquisite meme
>>
Guys, I think I'm really confused about a lot of web development things, I learnt React which was a really big investment in time and then I realised that everything is simpler and way easier just doing it with Jquery or just javascript and I'm now confused about what to use in a project I have right now, let's just get this straight with a simple question:What would you use to make a simple web app (front end plus back end) that looks good, it's simple to make and test and delivers? I know it depends on what you are going to build but what are the essentials to make a good and complete web app?
>>
>>58249311
every time I read about a new PHP exploit I am reminded of that childhood dream where you hoped one day you'll arrive at school only to learn it burned down.
>>
File: Screenshot_2016-12-30_20-00-46.png (142KB, 613x820px) Image search: [Google]
Screenshot_2016-12-30_20-00-46.png
142KB, 613x820px
Help web developer senpaitachi

i have Z E R O experience with webdevelopment. I need a job.

I want to apply here and get hired. What are my chances? Is there anything I can brush up on quickly to do well?

Please i need a job.
>>
>>58249775
>i have Z E R O experience with webdevelopment.

>I want to apply here and get hired. What are my chances?

Z E R O
>>
>>58249915
You missed the part where it says Canada. As long as he claims to be a refugee, he'll get hired.
>>
>>58249915
It's the first developer they're looking to hire.

Maybe they won't know what to look for?
>>
>>58249775
>Our Tech Stack:
>GNU/Linux...
They fell for the GNU/Linux meme. Maybe they browse /g/

>I need a job.

You should probably learn something before trying to get a web developer job. Don't be a Pajeet and bullshit yourself into a job that you can't fucking do. You'll just waste everyone's time.
>>
What kind of project will land me a job?

I have some crazy JS and PHP projects but no one gives me a chance to even show them.
>>
>>58251239
What kind of crazy?
>>
>>58250770
>You should probably learn something before trying to get a web developer job

What should I learn?

Python frameworks look good. Should I do that?
>>
File: 1479237022372.jpg (241KB, 825x1483px) Image search: [Google]
1479237022372.jpg
241KB, 825x1483px
Hello /wdg/. I have a question that's been fairly difficult to solve with Google (likely because web development changes every single year). I appreciate any patience you can give me.

Essentially, I'd like to learn how to deploy a (basic) full stack, but I have no aspirations of becoming a "full stack developer." I'm currently writing JS apps (mostly Angular) and I'm happy with that. I'll be interning at a real firm this summer, but until then, I'd like to bring in some better freelance than what I'm currently slogging through. To do this, I need to know how to actually get the front end up and running on the web (I've relied on WP servers in the past and I'm desperate to move past this asap).

Could anyone recommend to me some methods for deploying a full stack for fairly small websites? Personal portfolio sites, small business landing pages, those sorts of things. Obviously a lot of these sites don't need to be SPA at all but the firm I'm in communication with likes that I know JS technologies and I'd love to round out my knowledge before I actually interview with them down the road. This stack does not have to be complicated or particularly feature rich. Maybe even a good tutorial for something written in node or using Go would suffice. Just a barebones approach that's functional on a small scale, preferably delivering content via JSON or a similar approach.

I've always gotten great advice from /wdg/ and I really appreciate the help guys.
>>
What's the biggest time waster you guys regularly encounter?

I usually struggle with setting up things since a lot of documentations on frameworks/plugins on different environments likes to be as vague and obtuse as possible, or better yet outdated.
>>
>>58251288
Node.js and Elixir are the future. Go with those.
>>
>>58246716
>The only disadvantage
https://www.quora.com/Why-is-PHP-hated-by-so-many-developers?share=1
>>
What is the correct CSS to get the old (You) back?

I'm using this, but the (You) is part of the link rather than plain text. It's not quite the same.

a.ql-tracked:after {
content: " (You)";
}

a.ql-tracked {
border-bottom: none;
}


I asked this in the stupid questions thread, but no one responded. I figured someone in here might know.
>>
>>58251337
Use Heroku's free tier.

https://devcenter.heroku.com/articles/getting-started-with-ruby-o
>>
I want to create a site that allows users to upload content, but I'm afraid some faggot is going to upload illegal content like CP or some shit. I don't have the time to police a site 24/7. What are the laws regarding this in the US? Do I just have to take the content down in a reasonable amount of time after being notified? Do I have to spend tens of thousands of dollars keeping a lawyer on retainer to scare off DAs looking for easy prey?
>>
>>58249311
Blow it your ass you stupid hipster. It's a thriving and bustling discipline with huge implicaions.
>>
>>58249608
Use a framework, specifically like Ruby on Rails.

You **can** build a house from the ground up by fabricating your own concrete and personally treating your own wood, but there's an entire discipline of millions of people out there that have been building homes for ages and they've invented tried and true methods that make sense.

You can of course run into siduations where it makes more sense to step outside of the norm, but there's a very steep bellcurve where it just makes more sense to use the tools and standards given to.

Still, I'm happy I started out learning PHP and creating all the methods to build a functioning web app on my own. It put into context how all of it worked.
>>
>>58249311
>choosing what work you do for status signalling reasons
>>
>>58251960
I don't know.

I moderate uploaded pictures before posting them for the same reason.
>>
>>58251960
If moot could figure how to survive it I imagine you can as well.
>>
>>58252149
Not him, but 4chan is kind of a high profile site. It'd be hard to convince a jury that it was intentionally distributing child porn, you might as well convince them the owners of twitter and facebook are all part of a pedo ring while you're at it.

It's easy for them to bully no-name sites that can't afford to defend themselves, though. Law enforcement doesn't give a shit about if you're actually doing anything illegal as long as they can get another successful conviction on their record. Even if you get off, you're financially in the hole god knows how much.

Personally, I wouldn't host any site that accepts user content on a server in the US or any country that cooperates with the US, and I wouldn't host anything under my real name or connected to my real name in any way. That's why they invented bitcoin.
>>
>>58251960
a. Premoderate.
b. Use a porn/nudity detection API like https://sightengine.com/pricing. Those cost money.
c. Study machine learning and roll your own.
>>
>>58252219
4chan isn't the only chan, tons of small sites exist where you can upload stuff.
>>
Worked through the book "Learning PHP, MySQL & JavaScript". I still have a ton of holes in my knowledge of this stuff... A lot of people have recommended this Laravel framework, should I jump into that at this point?
>>
>Update to php7
>Have tp update my code to cast ints to bools as they no longer work in mysql
wtf ???
>>
>>58252632
>Scalar type declarations come in two flavours: coercive (default) and strict. The following types for parameters can now be enforced (either coercively or strictly): strings (string), integers (int), floating-point numbers (float), and booleans (bool). They augment the other types introduced in PHP 5: class names, interfaces, array and callable.
>>
>>58252654
Cheers anôn
>>
>>58251714

Thanks for the suggestion man! I'll try building a simple app with this and see how I like it.

Has anyone tried Cosmic JS? It looks like a fantastic service for simple freelance gigs but I've never seen any content written on it from anyone besides the product's developer (which is obviously going to be biased / promotional).

https://cosmicjs.com/
>>
>tfw you're at the tip of the ballmer peak

i can program anything
>>
>>58252744
You're welcome, anon.

What do you mean by "simple freelance gigs"? Do you want to make this the back end for your clients' web apps?
>>
>>58252831

Yes. Until I find a CMS alternative to WP I'll never be free of it when designing portfolio sites / small business landing pages, etc. They gotta be able to update on their own and only contact me for updates / if something goes wrong.

I haven't seen a lot of CMS options for JS apps yet, and the WP Restful API is just not worth the immense time commitment right now. CosmicJS offers storage space, so it could (in theory) take care of my CMS and DB needs at the same time. Makes me nervous that I've never seen any chatter about it online.
>>
>>58252888
Okay. It may be worth trying. There are similar but more popular services like https://www.contentful.com/. Google "API CMS" and "headless CMS" for more of them. I'd make sure I was able to set up separate accounts for my clients and wasn't violating the terms of service in doing so before committing to any one of them. Look into https://getcockpit.com/ and https://getdirectus.com/ if you decide to self-host.
>>
>>58253025

Thanks again. I'll try testing Contentful with some angular templates I've been working on and see if it's as user friendly as CosmicJS is. I want something reliable, and there's certainly more clients depending on these guys than the other options I've been researching.
>>
I'm trying to use Flask-Security and failing miserably.

I'm trying to just use the default fucking forms provided.
I've set this config:
app.config['SECURITY_REGISTERABLE'] = True 


However I still cannot access /register
and I have no clue what is happening.
>>
>>58254512
ignore that I'm retarded.

>I had already registered and logged in
>forgot to logout
>>
File: 1388321328796.jpg (153KB, 593x595px) Image search: [Google]
1388321328796.jpg
153KB, 593x595px
So far after a week or two 100% of my website visitors have come from Bing and Yahoo.
>>
>>58255771
Must not be many visitors then.
>>
>>58256132
Not yet. I haven't spend time on marketing yet. That's up next.
>>
>confident in own skills
>start on a project
>everything's fine and tidy in the beginning

>the more it grows the less you care
>it gets less and less organized
>all you care about is functionality
>doesn't work? just patch it

>30% of codebase is commented out
>10% is unused
>takes half a minute to figure out what's in which file
>lose motivation
>lose confidence own skills

am I the only one?
>>
>>58256507
>naming conventions? HA HA there's no error in the logs, who cares
>>
>>58256507
>Commenting out code
Use source control
>Forgetting where things are
Spend more time organizing and naming things properly. There is a lot of value in refactoring to ease mental burden, even if it reduces performance a bit.
>>
>>58256556
>Spend more time
>more time
>time

But that's the core of the issue anon. I want it working and I want it working now.

Spending more time refactoring means spending less time building.
>>
how do you backup/restore docker named volumes?

When I google it, all I can find is the process for volume containers
>>
>>58256556
>I get lazy and don't want to deal with tedious stuff so long as I can get it work
dude just deal with tedious stuff lol

good advice
>>
>>58256507
No.

I lose interest by the time I'm done and just have CSS left.
>>
Anyone use Intel XDK?

How is it?
>>
So, locating people near other people.

With MGRS, I can start by pulling everyome with the same grid identifier, and then subtracting x from x and y from y to determine distance in meters.

With lat/long I have to use a pretty complex formula on every lat long pair I have to determine distance.

Basically how can I get a phone to send me grid instead of lat/long since it's way friendlier for a db than having to Haversine everything server-side with every request?
>>
React router question:

When I refresh my pages within the React client-side app, it typically works fine, except for one path 'cities/:location'. When I refresh on this path, I just get a white screen back. It doesn't hit my 404 wildcard route, it just returns a blank screen.

<Route path='/' component={MainContainer}>            
<Route path='venues/:location' component={VenuesContainer} />
</Route>


When I check the console I get the following message in Chrome (similar in Firefox):
Uncaught SyntaxError: Unexpected token <


So it appears the refresh causes the HTML document to be returned, as the '<' in question is the opening tag for <DOCTYPE !html>.

Any ideas on how to fix this?
>>
need CSS help, can I make sizes and stuff scale to screensize? if so how?
CSS here: http://pastebin.com/qFsmsTqT
>>
>>58258679
https://developer.mozilla.org/en-US/docs/Web/CSS/length#Viewport-percentage_lengths
>>
Dear mr.4Chan,

This client i'm making a new site for wants me to keep his email domain name like ([email protected]) that he got from one of those web bundles offered by a lot of web hosts who take advantage of people with no tech skills.

(Theres a contact me form in one of his pages where people cant ask him for quotes and stuff).

Im moving his site over to OpenShift which is pretty scalable and his site is pretty simple. I pointed his CNAME record to openshift but i dont know what i would have to do for his email?

Anyone can help? Or at least link me where can i learn this stuff??
>>
Need some help with CSS transitions. Please, open/close the sidebar here:

https://the-kinematograph.rhcloud.com/

I realize that CSS transitions in this case are probably not the best solution because the animation is really choppy, even though all the elements animate at the same speeds. What is the best alternative way of doing this?

Container on the right animates its "margin-left" and "width", while the sidebar uses translateX property to slide in.
>>
>>58258911
set up a mail server and point the MX record to the servers IP.
might be easier to just pay for a service though, gmail offers this for 5$ a month.

some registrars give you free email hosting for each domain you buy, so check if yours does too.
>>
>>58258698
I've read it but I'm a retard and have no idea what it means
>>
>>58259161
sucks to be you then.
>>
>>58258978
Im a newbie, which low cost mail service should i go for??
>>
>>58259161
Perhaps you should consider help desk support
>>
>>58259283
look up a few and then compare them and their prices.
no one knows what you want/need from it.
>>
>>58259317
Well his business is pretty local, and he probably doesnt get more than 100 emails a week, and he doesnt do any email marketing.
Obviously he wants to spend as less as he can.
>>
>>58259347
seems like they do it for free for up to 5 accounts.
https://www.zoho.com/mail/zohomail-pricing.html
>>
There's like hundreds of flavors of Apache, how am I supposed to pick one?
>>
>>58260188
you don't, you pick nginx.
>>
>>58260203
but y tho
>>
>>58260213
apache is bloat
>>
>>58260220
If its bloated then why do they have all these other frameworks that sit on top of it? Stacking bloat on bloat?
>>
>>58260227
yes

in all seriousness, what flavors do you speak of? there's only one apache.
>>
File: alldeminjuns.png (110KB, 1107x784px) Image search: [Google]
alldeminjuns.png
110KB, 1107x784px
>>58260250
>>
>>58260277
that's the company apache and their projects.
you want the apache2 webserver.
>>
>>58260293
I see.

Where exactly do these frameworks like Drupal and Laravel fit in? Are they kind of like programming towards SDL instead of directly to OpenGL (or Apache in this case)?
>>
>>58260277
Are they all configured the same way?

If so, my skills section is about to decuple in size.
>>
>>58260360
apache is just a dumb webserver, it doesn't run anything, it returns files.
to make it run a dynamic language you have to add it as a module and have the languages runtime installed/available.

drupal and laravel are just packages/libraries written in php.
to run these you need the php runtime.
to make them available as a website you need a webserver like apache, which then runs the files through the runtime and returns whatever it outputs to the browser.

I think the cleaner approach is running a reverse proxy and run the frameworks own server to serve the files.
I've got several .net core apis running like this through nginx. So I don't need the server to have any addons/modules or know anything besides sending back and forth files.
>>
>>58260463
I'm trying to get like a high level view of how this all works together here.

Apache/nginx sits on top of the OS, managing OS resources like ports and stuff and acts as the HTTP server. Web frameworks like Drupal sit on top of Apache/nginx and provide a cleaner interface and/or out-of-the-box functionality? And then your PHP source is actually executed by the PHP runtime, sort of like the python interpreter? Then you have your database which is, well, a database, self explanatory.

I was thinking that PHP was actually interpreted by the web server, didn't realize it was standalone since I installed everything with XAMPP. Is there a built-in PHP shell?
>>
File: is-mayonnaise-an-instrument.jpg (19KB, 223x223px) Image search: [Google]
is-mayonnaise-an-instrument.jpg
19KB, 223x223px
Is QA a web development?
>>
>>58260635
if writing codes of conduct is programming, then yes
>>
>>58260657
Is QA automation a web development?
>>
Let's say I'm hypothetically a NEET.

And let's say i was tired of living with my parents forever and wanted to move out. What language or framework should I learn to finally start making some money?

I keep hearing about people installing wordpress memes for people and making a living, surely it can't be that easy, right?

What do normies want these days? How can I make some money relatively quickly? PHP7? Become a pajeet?
>>
>>58260610
php -a
opens the shell.

I'm not sure how to explain it.

Drupal is a CMS, not a framework. You put it somewhere on your server and the rest is done through the browser.
Laravel is a framework so you have an easier time writing PHP yourself without having to reimplement mundane things.

Both are just a bunch of php files that can be run through the console with php.

The server doesn't care what you run, it just executes an application (php for example) and returns the output.
>>
>>58260877
Look now, I'm not a fortune teller, but one thing I can tell you: as long ask you questions like this, you'll never move out.
Do your own research. No amount of advise will help you to sort your shit out. The only suggestion for you is go and get a job which requires no qualification. Go sweep streets or unload trucks. It'll discipline you, make you value your time and give you motivation to do more and earn more. Then you'll finally start teaching yourself, and believe me, you'll be achieving more in an afternoon after a day of hard work than in two weeks of neet lifestyle.
>>
>>58261104
>The only suggestion for you is go and get a job which requires no qualification. Go sweep streets or unload trucks. It'll discipline you, make you value your time and give you motivation to do more and earn more

But it doesn't.

I'm a NEET, but i'm not a typical NEET. i have $35k-40k saved up right now. But no consistent income (I've just earned money from various shit over the years and invested it and it worked out well).

So now I'm searching for the next stage. I need to find myself a way to make some decent money with a relatively low barrier of entry as the thing with my parents isn't working out. Naturally being an autist I figured Webdevelopment would be that thing, from all the success stories I've read about it.
>>
>>58225269
>he uses jquery for ajax

maximum pleb
>>
>>58261153
>i have $35k-40k saved up right now
that is not something usually implied by someone who describes himself as a NEET, kek
>a relatively low barrier of entry
I've started as a manual tester. Requires little to no of real tech knowledge and gives you a general idea of the web development process, provides a lot of learning possibilities as you'll get to talk to the devs a lot.
>>
Is it bad to have your database login credentials in a plain text php file on your server? I mean, even if you encrypted them, the key to decrypt them would have to be stored somewhere, so if somebody got access to your server they could still potentially access the information.
>>
>>58261388
There is no other way except to ask maybe the user but that's just retarded.
>>
>>58261337
>I've started as a manual tester. Requires little to no of real tech knowledge and gives you a general idea of the web development process, provides a lot of learning possibilities as you'll get to talk to the devs a lot.

That sounds like something I could do.

What about making retarded sites for normies though? I keep hearing people claim it's a goldmine.
>>
>>58261337

Curious... how easy is it to find one of these testing jobs? More importantly where, and how much would they realistically pay?

I had a simple QA testing job for some shitty video phone 6 or 7 years ago and it was one of the best paying jobs I'd ever had. Couldn't believe it. Probably a fluke.. you get one or two of those in your life time.

I'm meddling around in some different things as well, trying to see if anything is really interesting. Maybe pursuing web development would be interesting?
>>
>>58261415
Eh, the file could be encrypted pretty easily. Of course, decrypting it every time you make access a database would be slow, so you'd probably store the unencrypted credentials in memory which could easily be dumped if someone gained SSH access to your server anyways...

Oh well, probably too soon to be overly worried about security at this point anyways. I'll research it later.
>>
>>58261487
if a hacker got ssh access to your server you're already fucked
>>
>>58261428
Making retarded sites for normies requires you to communicated with retarded normies A LOT and to be your own marketer. I'd much rather be a corporate slave surrounded by more or less competent people.
>>58261433
>how easy is it to find one of these testing jobs?
YMMV.
>More importantly where, and how much would they realistically pay?
A good tester is valued more than an average dev because of how rare good testers are - most of them switch to front end development.
>I'm meddling around in some different things as well, trying to see if anything is really interesting. Maybe pursuing web development would be interesting?
I'm a tester myself (my resume says I'm a QA "Engineer"). Started as a manual tester for a local tech branch of an American company, 3 months later I was competent enough to teach newcomers, 4 months later - to be the man in the middle between managers/product owners and two dozens of devs, 5 months later - to replace the tester's team lead, 6 months in - to get started with test automation and get into coding. It's a very interesting job.
>>
>>58261520
If they don't have root access you can extremely limit the damage, but yeah, it'd definitely be bad. With all the root access exploits in the linux kernel that have come out lately, it might be safer to assume that any intruder had root access and the entire server was compromised.
>>
>>58261593
>Making retarded sites for normies requires you to communicated with retarded normies A LOT and to be your own marketer.

Tbh I think I could do that, I'm just curious if it's a viable option from the guys already in this field.

Like how hard is it to out-compete Pajeets and 15 year-experience webdevs on freelancing sites?
>>
why does /g/ hate pajeet so much

are you racist
>>
>>58261593

Your accomplishments in just six months are very impressive, to say the least :)

You mentioned to get started as a tester may require no real tech knowledge. Ymmv... any advice as to what would most benefit one looking to get into this type of job? Any particular skills or knowledge that would be of benefit?

Thank you again by the way, for your earnest answers. Its very refreshing for someone looking to get out of a dead-end job into something more enjoyable.
>>
>>58261820
It's like releasing a bunch of shit-throwing monkeys into a fine restaurant.
>>
>>58261820

sigh... don't mind the trolls. they love to set things... and people... on fire for their amusement.
>>
>>58261820
>>58262005
It's just a meme.

No one actually hates indian people, what's being talked about are the uneducated ones who get hired to write spaghetti/vulnerable code for pennies and then other people have to deal with the losses from security breaches or trying to unravel a mess.
>>
File: 1478999528328.jpg (43KB, 750x825px) Image search: [Google]
1478999528328.jpg
43KB, 750x825px
>>58262037
>No one actually hates indian people

Speak for yourself
>>
File: 1468711529151.jpg (160KB, 760x430px) Image search: [Google]
1468711529151.jpg
160KB, 760x430px
>web dev general
>its actually full of pajeets
holy shit
>>
>>58262037

Ahh... that makes sense. Totally valid point there.
>>
>>58262055

I'm dying right now... thank you for posting that. If that's your car I'm really sorry. If that's your car and you made this meme, you're just an awesome person :)
>>
>>58262064
Have you ever seen an indian type?

It doesn't look like this.
>>
In a real basic user login system, you'd just save the user's login info to a cookie on their system, then every time they load a page you'd read it and compare the info against the database to reauthorize them?
>>
File: 1392103641764.gif (50KB, 500x129px) Image search: [Google]
1392103641764.gif
50KB, 500x129px
Where can I find some bad ass gifs from the 90s for my geocities-tier websites?
>>
File: 1400557772435.gif (42KB, 100x178px) Image search: [Google]
1400557772435.gif
42KB, 100x178px
>>58263253
Here, you can have this

Don't forget the annoying midi constantly playing in the background
>>
so at most there are 2000 4chan pass users. that means 4chan has an income of 40000$ a year. together with the ads it would be optimistic to say 50000$ since the vast majority of the users have ad blocking extenstions, or use a mobile app.

is 50000$ a year enough to maintain a website this size? i think hiro might be telling the truth. this site is being run on a deficit.
>>
>>58264290
$50,000 is way more than enough to host 4chan, and you're severely underestimating ad revenue
>>
>>58263253
Nice goon emote, you fucking faggot.
>>
>>58264290
>is 50000$ a year enough to maintain a website this size? i think hiro might be telling the truth. this site is being run on a deficit.

lmao no. Say goodbye to this shithole
>>
>>58264388
>>58264579
hmmmm
>>
>>58264388
This.

General rule of thumb is $1000 per million views.
>>
>>58264975
And they have 703 million inpressions per month.
>>
>>58264975
>>58265007
general rule of thumb doesn't apply to a site like this.

The actual value of advertizing space on this site is far less than market average. Turn off adblock and just look at what you get for ads here.
>>
>>58261638
I wouldn't recommend the freelancing sites: the competition is too fierce and populous to start earning sensible amounts of money as a newcomer. Instead, you could try to advertise locally and offer your services to the nearby businesses.
>>58261902
Thank you. I'm still quite far from calling myself an expert tho, there's so much to learn.
>any advice as to what would most benefit one looking to get into this type of job? Any particular skills or knowledge that would be of benefit?
High tolerance to the critique of those above you in terms of knowledge. Perseverance and dedication when the assigned tasks seem to be boring, meaningless or monotonous. Basic knowledge of html/css/js/php and git. Ability to reliably reproduce the scenarios that led you to a conclusion and to be responsible for your judgements. Pedantry and concentration.

Also, be ready to ruin your attention span aground, forever :DDD
>>
>>58264290
bandwidth is cheap. afaik he's been offered millions for the site by several people, so the site must be worth something. just look at the valuations of sites like twitter and facebook.
>>
>>58264388
>>58264579

The fact everyone from moot to hiroshimoot has been so secretive about what actually runs the site should tell you there's something suspicious about the whole thing.

"Load" really shouldn't be much of a thing on application servers. The entire content of a particular thread refresh can be cached for 30 seconds or whatever on any number of front end servers, and you can serve a shittonne of cached .json and .html with a single nginx server.

For image distribution, look at what OVH charge for bandwidth:

https://www.ovh.com/us/dedicated-servers/bandwidth-upgrade.xml

You could setup multiple servers on a round robin basis with 2G transit each and it would still be quite manageable.
>>
>>58246709
now this is pajeet
>>
https://www.dropbox.com/sh/ud9kxidgvlusbz0/AAAhRgsB11isDq-5QBZ9dge4a?dl=0

happy new year anons
>>
Is it normal for Wordpress sites to be under bot attack 24/7?

Usually bots just try to log in. But now some bot is checking for old plugins, mysql injections and file rights. It isn't a lot of traffic or pressure for the server, but it goes on day and night.
>>
>>58268516
yes
>>
>>58268516
>>58268607
Why? How do they differentiate WP websites from the rest, and why would they attack only WP sites? If you don't use shitty plugins, do you really have to worry so much? I'd bet the CMS itself is pretty secure. It has to be.
>>
>>58269488
When 1/4 of the web is made up of wordpress sites, it makes sense to target it. Especially as outdated and insecure plugins are common. Like, hackers gained access to the Panama papers because of a wordpress slider plugin.

Just firewall the IP of the bots as they come up.

>If you don't use shitty plugins, do you really have to worry so much?

I don't understand why you'd even use Wordpress if you're not going to use shitty plugins, like, that's the entire point. Without the shitty plugins you could use anything else.
Thread posts: 312
Thread images: 27


[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.