[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: 298
Thread images: 35

File: wdg.png (868KB, 822x552px) Image search: [Google]
wdg.png
868KB, 822x552px
/wdg/ - Web Development General

Previous Thread: >>57567046

> 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.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md

>Useful tools
https://pastebin.com/q5nB1Npt/
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/

>How to get started
http://pastebin.com/pDT82mQS

>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
>>
Reminder that if you don't care about or design your sites around the limitations of shitty mobile devices, you're mediocre at your job and you're the reason that the web sucks.

https://www.youtube.com/watch?v=4bZvq3nodf4
>>
would love to read more opinions on this >>57617554
>>
File: SS_026.png (94KB, 1916x1041px) Image search: [Google]
SS_026.png
94KB, 1916x1041px
Hello anons, im creating Hello World in drupal and im having some problem, when i go to url
/hello/world
i get

Access denied
You are not authorized to access this page.



i did drupal router:rebuild
>code in pic
>>
>>57620489
Why are you trying to learn drupal?
>>
>>57620565
Ill need it for work
>>
>>57620575
Have you considered quitting?
>>
>>57620489
Check the error logs..
If the user in charge of updating the files does not have root permissions, Add (don't change his group) him to the apache/nginx group.
Otherwise, change the Directory Group to apache/nginx.
>>
I have a question about semantic data.

WHAT IS THE LEADING/BEST FORMAT?!

I see schema.org has something like a specification. What else is there? This is a huge blocker to me, and I need this done ASAP.
>>
File: SS_027.png (11KB, 654x403px) Image search: [Google]
SS_027.png
11KB, 654x403px
>>57621112
Why would i do that?
Giving up on first obstacle lol
>>57621148
That problem would be if you were building plane php app. Problem was in .routing.yml, in naming.
It is fixed
>>
>>57619783
I'm a python guy who started doing javascript/jquery and now Node.js

Holy fuck asynchronous programming is annoying. I understand its reason (so the browser painting doesn't hang) but all the callbacks and crap you have to do is like jumping through hoops.

I know there are Promises but that seems like an advanced topic for someone who's new-ish, and I guess the next version has async-await that's supposed to help

tl;dr
asynchronous and callback hell is super annoying.
>>
r8
https://publicdb.host/
>>
Have any of you guys used a raspberry pi to run your web apps 24/7? While testing them I mean

I thought about getting the $5 zero
>>
I made this site alone.

http://www.firstamender.com
>>
>>57621692
promises are pretty easy to learn

>>57621695
needs details next to download links, like what does "twitter" mean in this context

>>57621807
It looks shit but well done
>>
>>57621939
>needs details next to download links, like what does "twitter" mean in this context
Think its pretty obvious. Twitter means twitter.com db dump
>>
>>57621267
>Why would i do that?
Because you have to work with Drupal.
>>
>>57621939
>It looks shit but well done

why does it look like shit?
>>
>>57622061
Why is that a problem?
I like company, it is young and people are ok.
Drupal developer work 4 hour for clients, 1 hour pause and then 3 hours drupal community work, building modules etc.
Windows is forbidden
>>
>>57621692
asyncFunction(function (error, result) {
if (error) {
// do error stuff
return;
}
// do stuff here
anotherAsyncFunction(result2, function(error, result) {
// do stuff here
//etc etc this is pretty gay
});
});


Promises are quite simple
asyncFunctionWhichReturnsAPromise().then(function(result) {
// do stuff here
return anotherAsyncFunctionWhichReturnsAPromise(result);
}).then(function(result) {
// do stuff here
// this is pretty managable and you can chain as much shit as you want
}).catch(function(error) {
// if anything goes wrong at any point in any async operation, it will be handled here
})


You can make any callback-based API into a promise-based API very simply, with stuff like https://www.npmjs.com/package/es6-promisify.

Also a good idea to polyfill promises themselves to account for older browsers.
>>
>>57622052
yeah, a db dump of what? obviously not everything, so what does it include?

>>57622091
drop shadow text on top of primary colour gradients, awful typography throughout, odd shadows, headings don't line up with content, spacings all over the place,
>>
File: Untitled.jpg (326KB, 1920x748px) Image search: [Google]
Untitled.jpg
326KB, 1920x748px
In Bootstrap what is the best way of making it so 3 images on a grid row have no gap between each other so that they are all touching? pic related
>>
if i have a page that connects to a db to read from it, then i have a form on that same page that i want to write to another db once it is submitted, how do i open up the 2nd db connection? do i have connected to it on the .php file that the forms action is set to?
>>
>>57619783
Whats a good website framework that is like bootstrap but doesn't request jquery?
>>
>>57622228
you want me to manually look through the at this point 800+ dbs uploaded to the site and add metadata to them? the nearly 300 daily unique visitors that visit the site usually know what they're looking for, and its all pretty much just raw sql dbs with hashed passwords and other info that you would normally find in a user table

>>57622346
there are none. bootstrap is the cancer of the web development community and so is everything else. just spend 10 minutes learning the basics of css and you'll be able to make something much nice with minimal googling
>>
>>57622264
this is basic css why do you need bootstrap to set the width of something to 33.3333%

>>57622346
to achieve what
>>
guys im running a file host website
a pomf clone tbe, its just for me and my friends really. anyway, literally everything i can think of works, except opus audio files dont really come through correctly. they just display as text, which if you save it all is still smaller than the file itself.

tried loading with multiple browsers to the same effect. and the worst part is that it worked before, and at some point it stopped working. i do keep software pretty up to date (wt-nmp staack), including os updates, so im guessing something external to me broke it and i just have to wait for it to fix itself but, just in case, does anyone have any ideas? im just a hobbyist at best
>>
>>57622462
>POMF CLONE
aahhahaahhahahahahahahhahahahahahahhahahahahahahhaha xddddddddddd
>>
>>57622399
>typing out 33.3333%

just do calc(100% / 3) nigga
>>
>>57622618
fuck off nerd
>>
what is meteor
>>
>>57623345
An opinionated node.js framework, good for some kind of projects.
>>
>>57623387
Did they fixed exploits?
I knew year or two ago when i was testing it, it had some exploits
>>
I can't get a fucking job.
>>
Whats the best backend language in 2016?
>>
>>57623513
php7 ofc
>>
>>57623345
Its a "full stack" framework, which nobody makes anything with because Node offers far more flexibility and choice, and Meteor doesn't have enough advantages to make it worth putting up with the limitations.

The entire thing is architected around the idea of maintaining a websocket connection to the client, so that the server can push changes to clients instead of using the request/response model that all webapps use. So in order to accomplish this they have their own built-in version of MongoDB, and in order to see if any changes have happened which a client needs to know about, they do something called oplog tailing, where thye just read a list of all the changes that have happened in the database and then update the clients if appropriate.

If you want the server to be able to update clients, you can use one of the 5 websocket libraries that are availabel to Node, and you're not stuck with MongoDB as your database.

So basically Meteor is a gimmick, its okay as a learning tool if you want to learn full-stack Javascript, but move on to Node as soon as you get some idea about what you're doing.
>>
Wouldn't it be cool if the general had its own website?

We could just post links to all the shit we have in the OP.
j-just because some of the other generals have cool sites
>>
>>57624401
We should just do one of those wikias where people can suggest edits.
>>
>>57624401
ill do the logo
>>
>>57624401
why bother when the links are always posted idgi
>>
>>57624628
we could add more shit there and organize it better than here
>>
>>57624401
Sure, but who's going to build it? If you want to make a repository then fine, go ahead, I'll contribute when I have time. The hardest part, however, will be deciding on a language/framework to use because we all know how much of a divide there is when it comes to that shit.

>some of the other generals have cool sites
Links? I'd love to see them.
>>
>>57624678
But we could also just add more links to OP and it's very organized right now

see this is the major problem with web devs, they want to solve a problem that just doesn't fucking exist, only complicating everything in the process
>>
>>57624713
HTML, CSS, Javascript.

Let's keep it simple.
No frameworks.
>>
I LOVE REINVENTING THE WHEEL
>>
>>57624831
so no backend then?

Start the repo, wireframes, and the general plan then. I'll contribute where I can.
>>
>>57624401
Well you can join the discord server, there is a special channel there for reading suggestions.
>>
File: 1478127487140.jpg (342KB, 1600x1067px) Image search: [Google]
1478127487140.jpg
342KB, 1600x1067px
I'm impatient as fuck and want responses
>http://104.128.226.151/create
roast my shit bois
>>
>>57626766
I guess I'm halfway done
>>
>>57626766
I clicked back after making a room then submitted again.
>>
>>57626815
fixed it
>>
File: hqdefault.jpg (6KB, 480x360px) Image search: [Google]
hqdefault.jpg
6KB, 480x360px
When you first started learning programming (with no prior experience) about how many hours did it take before you hit that magical plateau of learning?
Like how long did it take for you to achieve that "Ah, I understand now" stage? I've tried getting into web development about 4 different time and end up getting bored within a few days. Oddly enough i'm obsessed with learning but I don't know shit except for the basic understanding of html.
Any thoughts on this, anons?
>>
>>57627324
Took me about 3 months probably before things really started to click.

I focused a lot on end results, like "I want to make a simple terminal RPG in Node" up to "I want to create a geo-projection in d3"
>>
Who is using Java to develop webapp's here?

Dropwizard is comfy as fucc
>>
anyone have good recommendations for resources on making web APIs, in general or with asp.net? I'm using microsoft's pages on the topic atm but I figured I'd drop in to see if any anons have some good shit
>>
>>57626766
>http://104.128.226.151/create
its down
>>
What's the best way to do css?

Do I bootstrap and then have a file that overrides all the colours and styles I want.
Do I download the uncompiled bootstrap, change everything in there and then compile it every time I make a change?
Do I just use my own CSS and make everything messy as all fuck?
>>
I'm a backend dev with no UX experience at all creating my first front end, does anyone have any good resources to look at to get an idea of where to start with good design practices and actually building the CSS to standards rather than throwing shit at the wall until it sticks
>>
>>57630529
>>57630466
Hey my hivemind bro, I'm wondering the same thing.

I've been in frontend projects before and it was like several 10,000 line css files that you just chucked shit into with !important and hope it worked.
There has to be a better way
>>
>>57630548
With the projects I've worked with they've either been provided stylesheets or there has been a front end guy working with sass, which seems like total overkill for my project which is why I asked

They tried to explain it once but it went straight over my head. Hopefully someone here can point us in the right direction
>>
>>57630466
nigger bootstrap is the definition of messy
>>
File: 5a9a663.png (165KB, 1191x722px) Image search: [Google]
5a9a663.png
165KB, 1191x722px
is it bad that my site map is this disorganized?
>>
Would you trust these guys' libraries for future projects?
https://deepstream.io/blog/deepstream-2.0-more-than-1000-times-faster-than-socket.io/
>>
File: lit.jpg (33KB, 460x276px) Image search: [Google]
lit.jpg
33KB, 460x276px
Study Group back at https://gitter.im/srs-study

Gonna be active for the rest of the day.
>>
>>57631253
Why not? If you think it's malicious or flawed then test it and go through the source code.
>>
>>57631744
just remove the array lookup part:
var index = Math.floor(Math.random()*array.length)
>>
>>57631803
Just realised it, thanks anyway
>>
>>57631794
I hope the project stays free, maybe I'm being too paranoid.
>>
Where should i buy a domain? The domain just to set up the dns
>>
if i insert data into a table but dont specify all the columns, just some, will the fields i dont mention in the INSERT INTO query just be filled with blanks? I'm using PDO.
>>
2bh coming back to this general is just migraine inducing
>>
>>57620122
>tfw employer forces me to use 2 different versions of bootstrap with 1-2 different themes on the same page in every single project (I'm not kidding).

Just kill me.
98% unused css selectors per page.
>>
>>57632839
NameCheap is the cheapest no bullshit registrar currently
>>
>>57633093
Either you name all of them, or don't name any of them at all iirc.
Idk why you're asking instead of testing it out yourself, this is they type of shit that will take 5 minutes.
>>
File: christmasdoggo.png (909KB, 1300x956px) Image search: [Google]
christmasdoggo.png
909KB, 1300x956px
Have a site that mostly hosts semi-legal files such as db dumps and hacked github repositories. Gets between 400-1000 uniques on a normal day and close to 30k total requests with these numbers.

Any way to monetize this? Obviously adsense is out of the picture and users are usually pretty privacy conscious.
>>
>>57633093
Every database has rules for setting default (and sequential) values when creating a field.
https://dev.mysql.com/doc/refman/5.7/en/data-type-defaults.html
>>
Bashing my head against this particular kata for a few hours now.
Tried /sci/ but no response yet so maybe someone here might have an answer.

I need to write 2 functions. One, dist($v=speed, $mu=traction between the tires and the road surface), and speed($d = distance in meters and $mu = the same traction).
dist() is supposed to calculate the total stopping distance in meters given $v and $mu and a reaction time of $t = 1. For that I used
function dist($v, $mu){
$v = $v/18*5 //to convert from km/h to m/s
return $v+$v**2/(2*$mu*9.81); //normally it'd start with $v*$t but $t==1
}


Issue is with my speed function. I cannot figure out how to get speed given that to calculate it, I used $v*$t.
Normally I'd just use the code below but adding $v*$t makes this invalid.
function speed($d, $mu){
$v = $sqrt($d * (2*$mu*9.81));
return $v*18/5; //back to km/h
}
>>
Advice projects for portfolio for front end(Angular) developer.
>>
>>57630411
yea I'm going to work on it a bit more and put it back up later
>>
Does anyone have any idea why my font-awesome icons don't work on mysite.dev but works on www.mysite.dev?

Folder Structure:
+ application
+ resources
-----css
-----fonts
-----images
-----js
+ system
- index.php


I'm using CodeIgniter and the base URL is set at www.mysite.dev
>>
Using flask and flask-login to make a simple employee scheduler for my final project. flask-login doesn't support access levels. What's the best way to implement something?
>>
>>57635907

dont be just a front end guy
>>
>>57636080
why do you have a full domain as base url
>>
I'm grabbing data from a form and inserting it into a table. But I also need to grab data from another table and insert it in the same table. The part i'm stuck on is when I grab the php variables that store the form data and insert them into the table, how would i (based on a common customer number) insert data from the other table at the same time? How many queries should i run?
>>
>>57637521
something like
INSERT INTO first_table (name, number, something)
SELECT @name, @number, st.something,
FROM second_table st
WHERE st.number = @number

?
>>
>>57634646
$t is not defined inside any of those functions. If you have a variable $t available outside the function scope, then reference it like this:
function dist($v, $mu) use ($t){

>>57636080
You need to enable CORS, or redirect all requests to the full domain.
>>
>>57637590

im still confused on where i put the php variables. Cant go in the SELECT part because im not really selecting them from a table...
>>
>>57638096
the example only selects one value from a table, the rest is from your parameters.
>>
>>57637981
It wasn't an issue as the $t was always 1 and I simply used $v+(the rest of the equation) instead of $v*$t+(the rest of the equation). Wanted to mention the $t as it is main part of why the speed equation didn't work. Cheers anyway.

>>57634646
Fuck me, solved. Gotta brush up on the quadratic equations...
>>
>>57621807
>http://www.firstamender.com

looks shit . well done for the simplicity and functionality . might want to do this on free time (if I have one!)

>>57624401
yeah it would be great if >>57624713 wasn't right.
>>
File: Screenshot_2016-11-22_20-43-35.png (39KB, 744x305px) Image search: [Google]
Screenshot_2016-11-22_20-43-35.png
39KB, 744x305px
does the order of elements within the <head> tag matter?
>>
>>57638096

>Can't go in the SELECT part because im not really selecting them from a table...

Littel do you know about SQL, my friend..

SELECT (3+5)*2;


Why do you never ask SQL people to help you move your furniture?
>They sometimes drop the table.

Why is NULL is the Chuck Norris of the database?
>Nothing can be compared to it.

What do you call someone who turns into Father Christmas whenever there's a full moon?
>A were-clause.

A SQL query walks into a bar and sees two tables. He walks up to them and says "can I join you?"
>Then a waitress walks up and says "Nice view"!
>>
>>57640693
It's the order in which they are "read" and thus loaded, rarely does it matter.
>>
>>57640693
ideally, you want to do meta charset, then the title tag, then the viewport meta THEN the other metas (like OG, twitter, etc..). Lastly is the stylesheets. You might want to put the script tags at the bottom just before the closing body tag. Just my two cents. m8.
>>
>>57640693
yes it is crucial to html rendering speed
>>
>>57640727
>A SQL query walks into a bar and sees two tables. He walks up to them and says "can I join you?"
>>Then a waitress walks up and says "Nice view"!

hahahaha good one !
>>
File: fuck.png (18KB, 1920x956px) Image search: [Google]
fuck.png
18KB, 1920x956px
Just making a simple startpage atm, but I can't seem to get my main content div perfectly centered (see pic). Here's my CSS: https://github.com/jad340/startpage/blob/gh-pages/styles.css . How can I fix this?
>>
>>57640808

What does a SJW think when she sees an SQL-injection?
>CREATE TRIGGER
>>
File: 27405515.jpg (42KB, 245x271px) Image search: [Google]
27405515.jpg
42KB, 245x271px
Reminder: PHP is the best backend language
>>
Can anyone point me toward a Discord for mobile dev? Or somewhere where mobile dev is relevant/welcome?

IRC is dead and the I'm lonely while coding desu
>>
>>57641388
Another reminder: PHP can be your best friend or your worst enemy. Maybe both depending on your patience.
>>
File: 1478026015347.jpg (171KB, 1867x1103px) Image search: [Google]
1478026015347.jpg
171KB, 1867x1103px
>>57630411

http://104.128.226.151/create/
it's back up
>>
>>57642169
>http://104.128.226.151/create
lil bit more padding on a lot of your elements would be nice. I also went into the chatroom and it has the same issue. I won't list them all, but some places I wanna see more negative space:

Header/Footer
Chat box

Also the strict center alignment on the create page is killing me. A centered section with justified alignment and more "prettified" widgets would be much nicer imo. Think you could make a custom color picker?
>>
>>57642222
to elaborate: header footer of what would be considered the "page", does not include the navigation element.
>>
File: asd.png (478KB, 594x334px) Image search: [Google]
asd.png
478KB, 594x334px
pure math degree faggot here, /dpt/ advised me to come here. i need some advise about getting back into web development. i am looking for job offers online and i made a list of languages/fields/libraries that are often required:
html5
css
javascript
php
asp.net
angular
node.js
react
bootstrap
mysql
wordpress (isn't this just a blog website?)
joomla (isn't this just a blog website?)
typescript
AJAX
jquery

which ones should i learn and which ones are outdated and are not worth it?

<background>
i am disillusioned with my math degree and i am dragging it and probably wont be able to finish it (even though i have good grades).
i used to make websites when i was at highschool, and i developed a forum similar to phpbb by myself (using html, asp, css, javascript) as a project for school. i also learned C# at highschool and some C/C++ and assembly at university
</background>
>>
>>57642714
Learn JS and node and sort the rest out with libraries

also
>CSS
>HTML
>Languages
>>
File: qwe.jpg (409KB, 1680x1050px) Image search: [Google]
qwe.jpg
409KB, 1680x1050px
>>57642714
i also used php quite often and familiar with it.
>>
Tfw genus :^]
>>
>>57642732
well that sucks
>>
File: 4k.jpg (1MB, 4030x4096px) Image search: [Google]
4k.jpg
1MB, 4030x4096px
>>57642725
i said languages/FIELDS/libraries
>>57642758
>tfw le smart but lazy
>>
>>57642714
>html5
>css
>javascript
>php
>asp.net
yes

>angular
>react
depends on you. not us.

>node.js

>bootstrap
you still have Materialize, Framework7, 960gs..

>mysql
you still have PostgreSQL, SQLite, MongoDB, RethinkDB, CouchDB, Cassandra, MariaDB.

>wordpress (isn't this just a blog website?)
>joomla (isn't this just a blog website?)
yes, for profits and shits ONLY.

>typescript
still depends on you.

>AJAX
>jquery
yes you could do AJAX without jQuery, but why not. I only use jQuery FOR AJAX, and simple UI animations. and most CSS frameworks rely on jQuery. so yeah.
>>
>>57642725
>Hyper Text Markup Language
>not a language
give me a break
>>
this may be better suited for /gd/ but I figured I'd shoot here first. When I'm exporting image assets should I fit the extents of the image to the content and rely on markup and style to achieve the desired padding, spacing, etc. or should I leave the envisioned whitespace in the export? Cases for or against either are appreciated. As I typed this up the former case ended up sounding like the more flexible option but I value the experience of others.
>>
>>57640968
Can you link your HTML too?
>>
>>57643601
I'd always crop images as tight as possible and use CSS for whitespace
>>
>>57642714
You already know C# so go into enterprise development with asp.net did you want a salary
>>
>>57621775
>While testing them
If you have the patience for file reloads being slower and shit.

Other than that unless you expect massive use of your apps then it should be enough.
>>
New full-stack webdev course, for free: http://upskillcourses.com/

Creator posted on reddit saying this was formerly something they offered as a paid offering and rerecorded the whole thing. Anyone want to take a look at it?
>>
Noob question:

If I build a basic website for myself, I can make it so that there are only three regular maintenance jobs: Paying for domain registration, paying for hosting, and running an occasional system update on the server. As long as I do that, shit will continue to work. Say that you are hired to build a website for a small business that does not have any employees with the technical skill to run an occasional system update on a server. It's a bad idea to update with a cron job (and for the same reason to train someone to run an update without really understanding what they are doing), and it's a bad idea to not update. What do you do?

What I need is a hosting company that pays some poor bastard to sit around running
apt-get upgrade
a lot. Does that exist? What is the most cost effective way to do that? Is this part of what you get when you use "cloud" servers like digitalocean, rackspace, etc?
>>
>>57642714
>html5
>css
>javascript
>php

Learn these first.
>>
>>57645080
>videos in the courses

Fuck yeah I'm gonna check into this
>>
>>57645140
AWS

LAMP on an EC2 instance

if you can't be bothered to ssh in and run apt-get upgrade once in a while you can use EC2 run command feature
>>
>>57645424
>EC2 run command feature
You are talking about just setting the update and upgrade commands to run at some interval, right? If you do that, how do you prevent problems regarding changes to configuration files and stuff like that?

I just discovered the existence of a program called "unattended-upgrades" for Debian and Ubuntu that can optionally apply security updates only. An LTS version with automatic security updates could pretty much run by itself for years at a time, right? Is that not a better way to do it than just hoping that nginx doesn't change the name of an important variable in its configuration file?

I haven't used APT on my personal computers since I was a beginner with Linux. I've used it on my VPS, but not enough to know whether or not it has some way of resolving problems with configuration files automatically. I have always thought of automatic system updates as a bad idea.
>>
>>57645424
...Or are you just suggesting an alternative to doing it with SSH? I don't know what the EC2 run command feature does. I personally find SSH easier than web interfaces. What I am after is a way to be totally and permanently uninvolved with the site after I get it set up and working.

How would long term support typically work when a freelancer is hired by a small local business to build a simple website? Does the developer typically do that? Does the owner typically hire someone? Do hosting companies provide services for this type of customer?
>>
>>57645682
>>57645582
If you're talking about long term uninvolved I'd highly recommend against upgrading anyways?

Like if you auto upgrade eventually something is going to break. You're better off just not upgrading anything and leaving it surely?
>>
Just found this beauty.

LMFAO
http://urch.com/forums/gre-math/28946-how-many-4-digit-numbers-begin-odd-digit-end-odd-digit.html

Entire main portion of site is broken because of deprecated functions. kek
>not so kek, when I really need to figure out my Maths homework, which is why I went here...
>>
>>57619783

>Build basic app with React and Typescript
>Takes 60 minutes
>Write basic test harness with Jest
>Six hours later, still struggling
>>
is there a /wdg/ discord?
>>
nvm.
it's in the OP.
>>
>>57622264
Always remind yourself Bootstrap is only a framework. It's amazing for setting something up fast, but CSS is still 100% applicable at all times during the Bootstrapping process.
>>
Node question here - I'm trying to use express to res.send a mongo search result back to the page - must I use jQuery or is it possible with Handlebars withou reloading the page? (via Ajax)
>>
>>57623345
It's a pile of shit that does not scale and you will not like using. It's only use is for extremely fast prototyping. Otherwise always stick with libraries if possible.
>>
>>57646817
I'm not sure how mongoDB works, but it should work like most other DBs, and by that, you're going to link up your MongoDB file with a query file, and hook that query file with your routes file, and from there, the query results you return will be able to be placed into that route, which in turn means you will be able to handlebar data by passing that query into your route(which needs to be passed as an object).
>>
>>57645996
>Jest
It really is a pile of shit, don't feel bad for spending your time on it.
>>
File: 4acc136.jpg (268KB, 1920x1079px) Image search: [Google]
4acc136.jpg
268KB, 1920x1079px
>>57642169
The chat itself honestly looks like shit, but I love the concept. Should probably take some tips from IRC and Slack/Discord if you want widepsread appeal. Love the fact that you're not using javascript for the color selection.
>>
File: 53bc06c.png (32KB, 958x459px) Image search: [Google]
53bc06c.png
32KB, 958x459px
When your site starts on a trend of almost half a TB per day
>>
>>57647059
What does cached and uncached bandwidth mean in context?
>>
>>57647079
cached means cloudflare distributed it and uncached means my server distributed it.
>>
>>57621775
Just rent a small VPS dude, seriously.
+ your electricity bill will thank you
>>
>>57634132
Probably the only thing you can do is beg for donations.
>>
>>57622215
What a mess.
Javascripts kids are ruining web dev and beautiful code :'(
>>
>>57640693
to the css file the second one is the one who prevail.
>>
>>57623453
> Just fall for the Javascript maymay, and recruiters will bow to you Anon
>>
>>57623513
>>57623520
I second this.
>>
>>57624831
> No Framework
Not everyone is a NEET with that much free time anon.
>>
>>57626766
>http://104.128.226.151/create
Down
>>
Friendly remainder that the Laracasts 40% sale is now taking place. It's only once a year.
>>
>>57646943

If it's a pile of shit, he SHOULD feel bad for spending time on it, no? Hmm... really makes you think, doesn't it?
>>
new to php/sql

i have a php file that inserts data into a table via button click, but i just realized if you just go to the url the button/form goes to, the query will run. Is there a way to prevent that? I just want the button click to run the query
>>
>>57649262
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Sending_and_retrieving_form_data
>>
hey guys,

my ex-boss's homepage was somehow partially erased/overwritten with other stuff, ofc he doesn't have any backup. I downloaded an 'image' from wayback and now trying to repopulate the /web folder. The problem is, every file is index.html, and the links on the main one are like index.html?id=2. The CMS was Typo3, some old version, but that I can't restore.

Should I quickly rewrite all the file to contact.html and so on, or is there any way to restore the old order of things ? It's a static website, so it just has to be there with contact info and impressum and shit.
thanks
>>
>>57649304

so what im talking about is SQL injection? Thanks i'll look into it more
>>
>>57649444
no, but if you execute your query by just going on the site then you are doing a GET request.
You want to only do something when POSTing.

So before you do your SQL stuff check if it's a POST request and only then do your thing.

An SQL Injection would be when you take a users input and just concat your query string together.
But I'm sure you're using SQL parameters already, right.
>>
What's the easiest way for a small company (around 30 employees, where 10 are developers) to convert all their shitty perl code from 1996 that utilizes zero plugins, no framework and horrible structure? Since all our income comes from customer-projects, we have a hard time allocating time for improving our existing code since the customers mainly want new features. We don't even use templates, just straight up HTML in the perl code with prints. It's disgusting really. I feel the code will collapse on itself if we don't do something.

Is there a mainstream process we could follow to ease our transition? Is it better to try and transform all our code for a framework like Catalyst, piece by piece? Should we just start over? I'm in not even in a position to decide these things but I'd like to lay out some solutions for the management.
>>
>>57649533

all my forms are POST. I knew the difference between GET and POST. I made sure all my forms are POST. The "action" of the form is a .php file (url), it's when i go straight to that is when it runs the query in that .php file.
>>
>>57649632
but do you check if it's POST or GET in your php file?
can you post the code here?
>>
>>57649641

this is the .php file the form action goes to

<?php

$dir = 'sqlite:/XXX/XXX.db';
$dbh = new PDO($dir) or die("cannot open the database");

$refNum = $_POST["refNum"];
$nameText = $_POST["nameText"];
$itemNum = $_POST["itemNum"];
$lbsText = $_POST["lbsText"];
$heightText = $_POST["heightText"];
$widthText = $_POST["widthText"];
$depthText = $_POST["depthText"];


//RUNS QUERY TO INSERT INTO ShipmentDataDefIn TABLE
try {
$dbh->exec("INSERT INTO ShipmentDataDefIn (pkgPackageReference4, stCompanyName, pkgPackageReference3, pkgWeight, pkgHeight, pkgWidth, pkgDepth)
VALUES ('$refNum', '$nameText', '$itemNum', '$lbsText', '$heightText', '$widthText', '$depthText');");
echo "Record successfully added.";
}
catch(Exception $e)
{
echo "An error occured.";
}


?>
>>
>>57649714
this is how you get sql injections, anon.
don't just put your variables into your query.

you are not checking if it's a POST or GET request, you don't even check if the $_POST variables have a value.

add this at the top
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
exit();
}

to stop the script from running when it is not POST.

and then look up sql parameters.
>>
>>57649714
Since you're using PDO I suggest you give this a read.
http://php.net/manual/en/pdo.prepared-statements.php
>>
>>57649781
>>57649952

cool thanks
>>
>>57624713
The homescreen general on /wg/ has a website
>>
Noob question:

Just started using bootstrap and created an off-canvas navbar from here: http://getbootstrap.com/examples/offcanvas/

How do I edit this navbar with css now?
>>
>>57650579
the point of bootstrap is that you don't need to style it anymore.
if you insist then just look at the classes and change whatever you want to change accordingly.
>>
>>57650642
Cool, so do I need to style it in bootstrap.css or is there a better way?
>>
File: Screenshot_20161123-190422.png (509KB, 720x1280px) Image search: [Google]
Screenshot_20161123-190422.png
509KB, 720x1280px
>>57621807
This is nice.
>>
>>57621807
I'll sign up because I like the concept also is an avatar picture required? if so you may want to add that.
>>
Trying to export db table into .csv format via submit button. Anyone know why this isn't working? Doesn't catch an error, but doesn't create the file.

try {
$dbh->exec("SELECT * INTO OUTFILE 'c:/mydata.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' FROM ShipmentDataDefIn;");
echo "Export completed successfully.";
}
catch(Exception $e)
{
echo "An error occured.";
}
>>
>>57621692
>tl;dr
>asynchronous and callback hell is super annoying.
learn backend with Elixir, Clojure or Go that have real multithreading instead of faking concurrency with callbacks
>>
>"height: calc(100% - 3%);" gives different results than "height: 97%;"

wew
ewe
wew
>>
>>57643705
Here ya go
https://github.com/jad340/startpage/blob/gh-pages/index.html
>>
File: e3bcd1a.png (19KB, 817x270px) Image search: [Google]
e3bcd1a.png
19KB, 817x270px
Why the fuck is bandwidth so expensive on all the larger cloud services. How come I can rent a box with matching specs as my google compute box for $10 on smaller providers and get unlimited bandwidth whereas with google compute I have to pay $50 for 400GB and another $25 for the box?

Anyone know any alternatives? Looking at using 10TB this month and double that in January.
>>
Can I download fonts in like otf or something from Google Fonts?
My web server can't access the internet, so any fonts need to be served locally.
>>
>>57652751
A couple things:
Unlimited doesn't exist. Unmetered does.
And I noticed American VPS providers are a lot more expensive than many Dutch ones (where I live). Unfortuntatly many of them don't provider their services in English, but TransIP (high quality) and Leaseweb (worse quality, but unmetered is available) do.
>>
>>57652780
It literally has a download button.
>>
File: no.png (3KB, 511x33px)
no.png
3KB, 511x33px
>>57652866
>>
File: derp.jpg (130KB, 1226x615px) Image search: [Google]
derp.jpg
130KB, 1226x615px
>>57652895
>>
>>57652751
20TB of transfer is going to cost you a ton no matter where you go, but Linode would be far less than that.
Their lowest plan has 2TB of transfer for $10/month all inclusive.

I use Linode for my hosting and they are by far the best hosting company I've dealt with.

https://www.linode.com/pricing
>>
>>57652815
leaseweb and transip seems cool, but their cloud/vps packages seem to be limited to 10TB, although I guess it might be better in the long term to buy a unmetered dedicated box instead. 100mb/s is a little low for me though considering the large amount of throughput I get at peak hours. Could you link the dutch ones as well?

>>57652984
I mean, last month I got close to 5TB on my blazingfast.io box for a pretty reasonable price before I decided to try out google cloud (needed considerably more storage). Heard lots of good about linode before, but $320/month is a little high for a site that doesn't make me any money
>>
>>57653068
How much are you looking to spend anyway?
>>
>>57652895
lmao brah
>>
>>57623345
a meteoroid that has entered the earth's atmosphere.
>>
>>57651037
Perhaps a warning is thrown. Do you have write access to the C drive? Also, shouldn't it rather be C:\\mydata.csv?
>>
daily reminder you're not a real programmer/developer if you don't know what the return value of Date.now() means
>>
>>57652751
>>57653137
Since the site makes me zero dollarinos I'd prefer to spend under $50/m. Don't really care how shitty the box is as long as it has more than 100GB++ and I can use a large amount of bandwidth (15+ preferably unlimited/unmetered). Currently I can get this from Blazingfast, although for various reasons I'd like to switch to a bigger provider.

Might look into getting a few hundred dollar dedi at some point, although transferring and setting up all of my sites on one machine will probably take weeks to do and adds a single point of failure.
>>
>>57653255
That's a dating website that will be released as soon as the .now extension becomes available.
>>
>>57653255
Amount of Dates taking place .now??
>>
>>57653255
>real programmers use javascript
AHHAAHAHAAHAHAHAHAHAHAHAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
JOKE OF THE YEAR
>>
>>57653255

returns the number of how many times i've crashed a program, duh
>>
>>57653321

thats why i put developer there too, shut your pie hole wang chung, i know js is for nu-males
>>
Help me out bois

>>57653338
>>
>>57653355
>real developers use javascript
AAHAHAHAHAAAAAAAAAAAAAAA JOKE OF THE YEAR

also super checked holy shit exactly 100 posts between dubs
>>57653355
>>57653255
>>
>>57649092
Jest is the react test suite, so don't be surprised if you see it pop up more and more in the future. However, that doesn't exemplify from the clunky shit that it is at the moment. It's lower on the list of FB priorities.
>>
>>57653379

lets see if i do it again...ROLLIN'
>>
>>57642169
The styles could be improved, page refreshed for chat are not good, using jQuery with Angular is not good either. Besides all that it functions well
>>
javascript is such a meme language

why do people organize it into big spaghetti chains instead of using named thunks?

only memers use it
>>
Why do people keep posting thread links like /wdg/ but when i go on it shit doesnt work, wtf?
>>
>>57653947
>>/g/wdg
>>
>>57653965
Wow thx m9
>>
>>57653274
ovh are cunts, they fucking wanted my id before i bought server, wtf is that shit? And their support reply to tickets within 2 days.
From all hostings i used, i sticked to blazingfast till this day, they are ok.
>>
Anyone have any experience using Angular JWT and implementing a role based auth system?
>>
>>57622052
>https://publicdb.host
just a heads up, it may be obvious to you, because you stitched the site together and it centralizes your ideas. But to others coming to your site, it is very vanilla looking as well as confusing by comparison to modern sites.
>>
>>57654707
I mean, I agree, and in the next iteration of the site I'm likely going to make it a lot more "comfortable" as I'd like to attempt to make the site at least semi presentable and at some point monetizable so that I don't just loose money every month, but most of the people coming to the site should have at least a basic understanding of what its about simply based on reading things like "000webhosting usertable.sql" or the url itself. Don't think db dumps are a very normie-friendly niche.
>>
anyone know how to use cordova's InAppBrowser's executeScript's to execute multiple lines using the code option?

                ref.executeScript({
code: "document.addEventListener('backbutton', function() { console.log('hello'); })"

});


this doesn't work, however:

                ref.executeScript({
code: "console.log('hello');"

});


note i cant use an external JS file
>>
newb here w simple question.

for a site like http://howlongismyschlong.com/ how would I make some input into one field automatically update/create another field? I've only worked w php a little, so I only know how to do something like this with a submit button.

other similar examples would be nutritional calculators that some sites have, where you check boxes and calories are automatically summed (again, without having to submit).

so yeah how do I keep an eye on one field for any changes and then dynamically (not sure if right word) update another field? is it just some jquery method?
>>
>>57647021
>>57642222
>>57642234
My main focus at the moment is to make sure there are no security holes in my software so far. Once I add the ability for users to upload images and implement socketio I'm definately going to upgrade the design and then post it for round 3 of roasting. Maybe after that I'll give it a real domain name and try to get something from it, or get a cozy dev job

>>57653876
interesting, can you elaborate?
>>
>>57657051
You will need to use JavaScript. Use the onchange event (or .change() if you want to use jQuery).
Whenever the values in the field changes, grabe the data, process it, then update the HTML and other fields accordingly. It should follow that basic syntax everytime the user changes the value.
>>
>>57657229

thanks my mayn
>>
I'm entering into some training for web dev and have the choice to either do .Net or MEAN (Node) stacks.

I know they're both good choices with .Net being possibly "safer," but I also think that in my area (around LA), Node might be more popular than it would otherwise be.

Suggestions?
>>
>>57657321
.NET = jobs
node = memes
>>
>>57657321
I've heard good things about .NET but I've yet to use it. I love node, but I really love NPM. I think thats where node shines the most. .NET probably has better job security tho
>>
>>57620122
has anyone used Backbee, it looks pretty slick and you can edit and create new pages using a mobile device. It's a html5 CMS. It is a pain to get installed though.
>>
>>57627324
You know, it's weird. Really is.

I gave up a lot of times. I found myself getting bored too, but not because of programming, but because of myself. I wasn't getting it so it became a chore.

I did Lua, C#, Python, C++, Java, and JavaScript. None of them clicked. None of it worked. What worked was finding out SPECIFICALLY what I wanted to create and learning the tools to do so. That motivated me enough and kept me excited to learn because I knew where it would all lead.

And after that, plus those previous attempts, it just clicked. I went from not understanding to oh wow this is so easy I can't believe this was difficult for me. It's a really amazing experience to go through.

In terms of time... Mmmmm... Maybe a few months for making something usable and about four years until I was confident enough in what I was doing and didn't have fears that everything would collapse and die. Everyone learns at different rates, but don't get discouraged because it's going to be quite some time before you're content.
>>
File: 1457628978922.jpg (46KB, 308x445px) Image search: [Google]
1457628978922.jpg
46KB, 308x445px
>>57653255

iirc The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
>>
>>57627324

I wrote my first few programms with about 12 or 13.

Then I didn't touch programming for about 10 years. Finally got to use it at university. Had to learn Java. First 2 years I constantly used Java but I was awfully bad. I had no fun at all. Leaned C but it I hated it. Then I learned databases, we were playing arround with PHP. it was more fun than Java but it still didn't "click". Then I was doing an internship for some month, SQL and VBA. This was probably the first time that I thought "hey, this could be something!", but the company was rather bad so I still hadn't any will to really get into programming.

Then I got some work where I had to do databases on the side and it became more fun. And one day I came to use Ruby and suddenly thought "wow". It just felt great to be so productive, to use a langauge without quirks. After a while I became more interested in Programming and played arround with Scheme (SICP). It really was a good time.

Then I came to use Java and C again and suddenly realized all the good parts. I started to see "through the matrix", realized how beautifull the conciseness of C can be. I realized that Java (behind this stupid verbose syntax) is actually pretty well designed when you grasp the reasoning behind interfaces. Java is nice from an "aerial view", but it's really ugly from the coding itself.

Anyway, currenty I'm using Python, Ruby and JS and even though I still got a long way to go until I can call myself a "good programmer", programming is fun again. And that's what matters most.

You need fun to devellop passion, without passion you wont get anywhere. You need to stay hungry, don't say "oh shit, I just want some money, now I have so many technologies and frameworks!". Rather say: "Wow, there is so much to see, so much to learn. There's more than I'll ever known and that's fine, because that way it will never get boring."

It's not about winning, it's about putting up a good fight.
>>
>>57661047

Ah, forgot to answer your question:

So finally it took almost two decades and I've tried getting into it about 10 times until I reached the "Ah, I understand now" stage.

What did I learn? That I know nothing. How much of the stuff of "Clean Code" do I really apply? Do I always use all 12 steps of the "Joel-Test"? No I don't. But I've reached a higher level of not knowing, so to speak.
>>
>>57657051
>>57657051
function Click() {
this.handlers = []; // observers
}

Click.prototype = {

subscribe: function (fn) {
this.handlers.push(fn);
},

unsubscribe: function (fn) {
this.handlers = this.handlers.filter(
function (item) {
if (item !== fn) {
return item;
}
}
);
},

fire: function (o, thisObj) {
var scope = thisObj || window;
this.handlers.forEach(function (item) {
item.call(scope, o);
});
}
}

// log helper

var log = (function () {
var log = "";

return {
add: function (msg) {
log += msg + "\n";
},
show: function () {
alert(log);
log = "";
}
}
})();

function run() {

var clickHandler = function (item) {
log.add("fired: " + item);
};

var click = new Click();

click.subscribe(clickHandler);
click.fire('event #1');
click.unsubscribe(clickHandler);
click.fire('event #2');
click.subscribe(clickHandler);
click.fire('event #3');

log.show();
}
>>
>>57661160
ew
>>
>>57661182
>not knowing the observer technique
>>
>>57661253
>not using es6+
>vars everywhere
>prototype
>shitty code copied from some shitty jquery site

k senpai
>>
File: linux.jpg (128KB, 752x500px) Image search: [Google]
linux.jpg
128KB, 752x500px
What's actually wrong with with using the "onClick" or "onChange" event?

What are the advantages of observers?
>>
>>57661418
no advantage, observer technique is really shitty and slow. There used to be Object.observe() function in javascript but it was removed
>>
I need to set up an SFTP server on a VPS running latest ubuntu. Im quite new to this. How difficult is this? Good/Bad practices? Whats the best resource/tutorial to follow? It needs to safe and secure.
I want users who connect to it to only access their own specific folder and its subfolders, nothing else. I will have multiple users who should not be able to view or access the files and folders of other users. Except for the admin account which can access all of them. Is there a way to direct them to their own folder when they log on with an ftp client? Kind of like this:

main sftp folder/
/user1/
user 1 files and folders
/user2
user 2 files and folders
/user3
user 3 files and folders

Or am i being retarded?
>>
>>57662735
Also, is MySecureShell worth looking into or no?
>>
Building an isomorphic Javascript application - React on the front-end, Express on the back.

How do I handle authorization and authentication if React is handling the routing? I'm not gonna have to check back with the server am I?
>>
File: sdfsdf.png (77KB, 2000x1333px)
sdfsdf.png
77KB, 2000x1333px
If I only have very little CSS or JS for a single html, is it a good idea to pack it into the html instead of a css or js file with almost nothing in it - or does that even make a difference?
>>
>>57664349
>handling authorization front-end

What the actual fuck?
>>
>>57657173
well of course you can, but there can be namespace collisions using the $ sign. Angular ships with something called jqlite, which isn't as robust but covers most jquery uses. As for page refreshes, use socketio so that you can utilize websockets and avoid page refresh on different events ( message emitted etc)
>>
Been teaching myself HTML, CSS and JS, and building a site. I'm now looking to teach myself PHP, so I can create a comments section.

I just installed a virtual LAMP stack using one of Bitnami's virtual images.

I want to use FileZilla to transfer files from my host to the virtual box, but apparently bitnami doesn't include ftp.

What's the easiest way to transfer my working directory on my host computer to my virtual LAMP stack? I'm not very familiar with the command line, but I can ssh into the VM from my host computer.

Can I just install or enable FTP on the bitnami VM, allowing me to just use FileZilla's FTP client?
>>
>>57666528
I've found that Digital Ocean tutorials (for example on how to install a ftp on my VPS) work pretty well on any matter.
>>
>>57661289
var is superior in every instance
>>
Is there a way to get the number of lines of a file in PHP without using a lot of RAM? Hosting files that have multiple millions of lines and having to use the following for all of them requires over 40GB according to PHP

$count = count(file($filendir));
>>
How long would learning to make a website take if you have some programmin experience? I just want to get deep enough into it that I can confidently put html experience on my resume
>>
>>57668272
learn HTML and CSS in an hour.

learning to use CSS effectively will take weeks.
>>
>>57664349
When the user logs in store the resulting Token in a cookie and set a isAuthenticated boolean in some State (Redux / MobX Store etc.)
Then write some higher ordered component which wraps your routed components and checks whether the user is logged in (redirects if not or whatever)
Stuff like
http://engineering.blogfoster.com/higher-order-components-theory-and-practice/
>>
>>57668311
That doesn't sound too bad then, time to start
>>
>>57668474
https://rutracker.org/forum/viewtopic.php?t=5074552
started this today
>>
>>57667593
Not true at all
>>
File: 80e68d0.png (188KB, 1920x991px) Image search: [Google]
80e68d0.png
188KB, 1920x991px
Should I go full faggot and publish the new meme "modern" mobile friendly beta version to the main website or should tell people to go fuck themselves whenever they complain about it looking like shit?

also r8
>>
>>57669526
git pull origin master
that shit.
>>
Is Vue.js the best frontend framework? I started using it a while ago and everything just makes sense, it's fast, lightweight and has great documentation.
>>
>>57669653
I keep seeing Vue around, what's so great about it that other front-end frameworks don't provide? I ask because I'm about to pick up React.
>>
>>57664930
No, always keep your JS and CSS seperate on the off chance either you or someone else has to sift through your code. It's only to enforce the standard and good file management practices at all times. And also, it really doesn't make a difference at all, with the exception of you taking 2 a link tag and script tag out, which saves like 2 bytes if even.
>>
>>57669653
I did a short tut on React and now I'm learning Vue cos Laravel, and the fact that I actually want to make my portfolio in it. Loving every bit of it so far.
>>
>>57669653
Yes, but basically because the competition is a fucking historical disaster, and an extremely limited and cancerous reaction.
>>
>>57668224

friend, dont use a reserved keyword as a variable name. we dont do that in harlem
>>
>>57669835
mountain rules my man
>>
>>57669720

false. there are 2 more calls to the server when script and stying are not inline. we dont do that in harlem
>>
>>57657426
You're gonna be safe in both, but .NET is gonna grow since Microsoft isn't being such cunts about it anymore, you'll see a lot more opportunity in .NET and I could definitely foresee more money in there. I would develop for what you love more. I prefer to Node/JS because of NPM also.
>>
>>57669835
Can you run a bash script instead?
>>
>>57669851
If he's running a back-end, sure. Serving up static pages and the call time is so relatively lackluster though, and should not be a problem as a practice to separate those files.
>>
>>57669863
Meant to quote
>>57668224
>>
>>57669863

depends. if you are a arch linux ricer you probably use zsh and have changed your wm 3 times this week so far
>>
>>57669880
I guess that might be easier. Any recommendations or should I just ask my friend jeeves?
>>57669886
Ubuntu is life
>>
>>57621807
If that's true (which I have not much reason to doubt) pretty nice for its simplicity. Currently learning HTML and CSS then going for HTML5 and CSS3
>>
How do I go about making a authentication page like /j/?
>>
What should I focus on learning if my goal is to make my own login and registration? I've never built a website, and design isn't my focus now. I just want to build something where you can register and then login and the content on the website changes from hello --> howdy or something super simple.
After some searching it seems like flask + mysql might be a good solution for a beginner?

Hello this may seem like a strange question, but I try to follow advice of people in this thread I read a week ago or so about finding something specific you want to do and accomplishing that instead of learning in general and getting bored.
>>
>>57670013
Node w/ Passport Auth framework and setting up a local strategy is popular. That's what I use. Probably the easiest to set up too.
>>
>>57670029
thanks, i will read up on it
>>
>>57669990
http://lmgtfy.com/?q=password+protect+a+directory+htpasswd

thats awful security for the janitor page btw i really hope there's more to it than that
>>
>>57670056
You'll also want to have DB too, PostgreSQL is what I recommend.
>>
You guys have any suggestions on optimizing the site for somewhat decent SEO ranking?
>>
>>57670085
don't do anything at all and let it naturally grow to the top based on natural keywords on the page

as soon as you start fucking around you'll do more harm than if you just dont
>>
>>57670013
making register+login is a rite of passage

you can use literally any language and any db

don't roll your own crypto

gl;hf
>>
>>57669926
lol wat
>>
File: 1471094643070.gif (292KB, 540x810px) Image search: [Google]
1471094643070.gif
292KB, 540x810px
>>57670398

18 year old American here.

Will I be able to land a decent webdev job with:

>freecodecamp frontend and/or fullstack cert
>general or compsci specialized ass. degree from a community college
>one or two full stack webapps on my github
>a few webpages i made or something

how important even is a degree
>>
Is most websites now done with frameworks than hand writing everything?
>>
>>57670637
kys
>>
>>57670637
There's almost no reason to not use frameworks unless you're trying to show your skills off. Would much rather waste the time taking someone minified code that helps me grab DOM elements 50x faster, than write all the shit with my own hands.
>>
>>57670737
>I want to make my users wait for multiple seconds longer than it would normally take because I don't know what I'm doing and can't write code myself and also want everything to look bad
>>
>>57670763
>he would rather complicate workflow efficiency by wasting time grabbing the DOM and making shit code because he'll lose half a second on his load time.

You don't make money doing this, do you?
>>
started an MS Paint type of thing with Paper.js today. so far just have four colors you can pick from on the left. can only create circles right now.

besides adding other shapes, paintbrush, etc. can you guys think of any other functionality that would be cool? maybe creating a gallery people can save stuff to? any other ideas?
>>
Just started using codecademy cuz it was the first thing I found before I came here. It's pretty and I like the idea, but it doesn't give any/enough practice exercises. Like, it gives me one exercise for each thing, and not enough quizzes. Which learning material in the sticky provides lots of practice for each topic?
>>
>>57671124
Freecodecamp, and if you have $29.00 to spend a month, also checkout Codeschool.com
>>
test
>>
File: Dart-Logo.png (31KB, 1200x900px) Image search: [Google]
Dart-Logo.png
31KB, 1200x900px
Looks like Dart is making a comeback, at least internally at Google and on mobile. Have you used it?
>>
>tfw started using redis as the application database and did the relations / lookup stuff in the backend language and its blazing fast
suck it mongols and sqlcucks
>>
>>57670085
Schema/JSON-LD & structured data.
>>
>>57670901
>he doesn't get paid enough hourly to justify doing things manually and just right for the client
lmao
>>
>tfw my miniature, half a year old blog with movie reviews where I haven't posted anything in months has been getting dozens, if not hundreds of views in the last few months (which is better then ever) and I don't know how. I only realized this a few days ago.

A lot of them are from Russia and Austria though, but there a lot from my country too. Is it possible those are bots and how and why would anyone send them?

I can't understand when I look at stats of a unique visitors why some IDs come to my site almost every day and spend a few 5+ min sessions on it. I can't believe someone is actually reading all of that, there is not even that much content, like 10 articles lol. This question may sound a bit dumb, but I actually never had anything of my own online, so it's kinda strange.
>>
>>57671653
I hope your post is satirical in nature.
>>
>>57671770
HOLY SHIT I just found out about this:

http://thenextweb.com/contributors/a-russian-trump-fan-is-celebrating-by-hacking-google-analytics/

by following a link from my analytics. Well that is a bummer, nobody actually cares about me heh.
>>
>>57671776
>not having 128gb ram to have the fastest taiwanese sailor discussion board database
>>
can anybody explain to me why the fuck are "cards" in design so special? Am I dumb or are they literally the normal thumbnail with a title and excerpt, just with a white background so it separates the content from the rest of the website?
>>
Any image compression software or online tool you guys recommend?
I have ~25 images I need to add to my site but they're all close to 2mb each and I don't want to add them like that because it will severely hurt load time. So far I've tried a few, TinyJPG.com only manages to get them down to 1.1mb each after compression.
>>
>>57619783

frontend web development is so fucking hard how the fuck do you guys do it?

I've learned html and css, and used for for over a year to make shitty static websites and practice design. Then I went on to backend with flask and python in general. I'm not coming back to frontend and it's impossible.

What the fuck is webpack or grunt or gulp? What the fuck is react or angular or node.js? What the fuck is es2015 or jsx or whatever the fuck?

How the fuck am I suppose to learn ths shit? Where the fuck do I even start?

Seriously, where do I start?
>>
>>57672099
I hate frontend too. Gulp/Grunt are taskrunners, they let you automate builds/testing. Webpack is a bundler for your JS/CSS. Node is a backend language. Angular and React are both frontend frameworks with JSX being for React.

If you want to begin to learn Node. Google "Nodebeginner PDF"
>>
>>57672099
>"Math is hard guys, how the fuck do you do it?"
*proceeds not to inform himself by google or books*
>"Learning foreign language is hard, what the fuck does this word mean?"
*proceeds not to inform himself by google or books*
>"How the fuck am I supposed to know all the works of this great writer? I don't read books!"
*proceeds not to inform himself by google or books*
>"What is this even? I don't understand it, therefore it is impossible!"
*proceeds not to inform himself by google or books*
>"What the fuck is webpack or grunt or gulp? What the fuck is react or angular or node.js? What the fuck is es2015 or jsx or whatever the fuck? How the fuck am I suppose to learn ths shit? Where the fuck do I even start?"
*proceeds not to inform himself by google or books*

There are literally a shitton of sources and you can find out what all of those technologies do in 5 minute. It's not really a rocket science. Webdevs are dumdums.
>>
what are practices to avoid?
>>
>>57671643
No. Fuck google and their constant creating and dropping of frameworks/languages.
>>
File: 1477869490617.jpg (52KB, 498x476px) Image search: [Google]
1477869490617.jpg
52KB, 498x476px
>>57672099

I used to get anxious like that too. Just realize that this is your first time learning these concepts, and in the future everything is just a different iteration of what you already know.

Also, try https://nodeschool.io/
>>
>>57672340
Being a webdev
>>
>>57653255
but why
>>
>tfw stressing about applying to jobs because no professional experience, degree, or god tier portfolio
>>
if php is so bad how come they teach it in my college level course?
>>
>>57623513
>>57623520
>>57648313
I also agree.
>>
>>57673106
People like to hate on it because it has quirks. Honestly, I found it much better and easier to use than Django or Flask. And I come from a python background.
>>
>>57673075
You have direct, immediate control over one of those three...
Thread posts: 298
Thread images: 35


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