[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: 323
Thread images: 40

File: 1467832532860[1].jpg (94KB, 600x800px) Image search: [Google]
1467832532860[1].jpg
94KB, 600x800px
last thread: >>55399211
Mexican Intellectuals edition
> Discord
https://discord.gg/0qLTzz5potDFXfdT

>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/
https://www.youtube.com/watch?v=JxAXlJEmNMg&feature=youtu.be&list=PL7664379246A246CB [Embed] [Embed] lecture series.

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
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
https://www.youtube.com/watch?v=pB0WvcxTbCA [Embed] [Embed] - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://www.youtube.com/watch?v=zf_cb_Nw5zY) [Embed] [Embed] - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.


>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
https://www.openshift.com/
>NEW!
https://scaleway.com/
>>
Does the SEO tutorials and other shit really help attract traffic to my website? I want to spend $0.
>>
>>55445416
Django == best framework
>>
File: wowlad.png (26KB, 674x664px) Image search: [Google]
wowlad.png
26KB, 674x664px
Any ways I can improve this design?
>>
>>55445463
>is asking an imageboard how to make an imageboard
>>
>>55445490
Naw, it's a textboard.
>>
>>55445449
That's a weird way to spell Laravel, family
>>
>>55445543
I have no gripes against Laravel tbf famalamilio
>>
>>55445463
Padding on the left side. Make it the same size as the padding on the bottom
>>
>The Next Steve Jobs

So she's going to be a vapid marketing asshole whose BFF does all the technical shit, then she'll take the money and run?
>>
SERVICEWORKER AND PUSH API IS BULLSHIT AND SO IS GOOGLE FOR THE CLOUD MESSAGING API

FUCK
>>
>>55445555
ah good then famalamadingdong
>>
File: patrick-bateman.jpg (26KB, 480x360px) Image search: [Google]
patrick-bateman.jpg
26KB, 480x360px
>>55445555

Quads checked.

>>55445599

I got nothing but dubs.
>>
File: 1453681228232.jpg (18KB, 251x242px) Image search: [Google]
1453681228232.jpg
18KB, 251x242px
>he cares about repeating digits
>>
opinions on heroku? I want to deply my flask/sqlite app there
>>
>he posts frogs
>>
>>55445416
>the next hippie stoner neurotic geek CEO with family problems
>>
File: 1455227046740.jpg (7KB, 250x217px) Image search: [Google]
1455227046740.jpg
7KB, 250x217px
>he can't quote me
>>
>people can't even be arsed to quote
>>
dumb frogposter
>>
File: john_cena.jpg (8KB, 188x268px) Image search: [Google]
john_cena.jpg
8KB, 188x268px
>he can't see me
>>
File: 1453695267087.gif (1MB, 320x200px) Image search: [Google]
1453695267087.gif
1MB, 320x200px
<greentexting
>>
>>55445543
Laravel is a clusterfuck.
>>
@55445775
[greentext]greentexting is fun[/greentext]
>>
File: 56491.jpg (31KB, 368x322px) Image search: [Google]
56491.jpg
31KB, 368x322px
>>55445797
elaborate
>>
>>55445775
lol don't be a new-fag =)
>>
/triforce
>>
>>55445849
/\
>>
>> 55445819
how do you quote?
>>
File: shocked001.gif (1MB, 450x253px) Image search: [Google]
shocked001.gif
1MB, 450x253px
>>55445416
>Be me
>Last week started my internship at this big-ass design/development/marketing company
>I'm now an front-end developer intern fresh out of college
>I'm surrounded by professionals and feel like a total idiot despite being above average of my class

Any advice how to get the best of the next 3 months while I'm there?
>>
>>55445819
Don't mind me, I think all frameworks are clusterfucks.
>>
>>55445599
Bravo and too right.

This actually reminded me of something I've been wanting to ask this group for a long time. I'm curious about this side of the industry, I'm about to finish my portfolio and start applying.

What kind of shit bags is this industry filled to the brim with? Is it really full of hipster fucks with their horrid gauges and full sleeve tats? 90% macfag? Will I run into people that actually like technology or a bunch of hipsters looking for a meme tech job?

Obviously this is dependent on which company I work for but I get the feeling it's not a bunch of normal white guys that keep their social and political opinions to themselves.

Why do I picture tumblr in this industry? Please tell me it's all in my head.
>>
>>55445880
Frameworks are for pajeets and hipsters.
>>
>>55445869
You're an intern, they won't expect too much from you. Learn as much as you can from the people around you, make friends and connections, and if you like it there you could possibly angle for a full time position after your internship ends.

Speaking of internships, I got shortlisted for a 2 year internship at a major bank. Is it normal for internships to be that long? They probably expect me to do the work of a full-time employee while making less than minimum wage for 2 years, fuck that imo.
>>
Usabilty aside, how hard would it be to code this? How many hours and also how many times would a frontend dev say he wants to kill himself?

https://dribbble.com/shots/2821439-Landing-Page-and-Motion-Design
>>
File: 1464316418975.gif (2MB, 196x187px) Image search: [Google]
1464316418975.gif
2MB, 196x187px
>>55445416
>the next douchebag
she does have that face
>>
>>55445947

you might as well take it mate, its better than working in amazon warehouse or some shit for two years and then hanging yourself
>>
>>55446004
Btw it's funny how those designers never give a fuck about how it would look like on screens of different sizes.
>>
>>55446004
pretty sure only a handful of people would be able to run a website like that
>>
>>55446004
Fucking hell that looks like a lot of CSS. Get fucked senpai, especially if you need it to be responsive.
>>
>>55446024
I need the money though because I just graduated this year and I already have student loans trying to bend me over.
A two year internship would probably cause me to kill myself anyway.
>>
File: sad001.jpg (60KB, 700x466px) Image search: [Google]
sad001.jpg
60KB, 700x466px
>>55445947
Thanks for the reply m8.
Right now my brains are literally boiling from the amount of information I'm trying to absorb.
Among the thing they use are:
>Git (Bitbucket with Source Tree)
>Sass (Compass all over the fuckin place), >Bootstrap
>jQuery
>vanila JS (fuckin hell the shit they write in it is unbelievable and completely beyond me right now)
>PHP with Laravel (no way in hell they'll let me near that right now)

And allot more.

It's just frustrating for someone who used to be senior sysadmin who switched career to become a developer to feel this clueless.
>>
>>55446033
Yeah, it would take so much resources, eh?
It kinda sucks that shit like this still can't be easily played by any device of today, though.

>>55446060
I ain't coding it, just stumbled upon it and wondered. It would probably give me nightmares though, considering I already got angry while trying to make a simple button border animation with SVG once.
>>
>>55446091
I started my internship with JSF. Now that's was hell on earth
>>
File: withness_pepe.jpg (169KB, 900x900px) Image search: [Google]
withness_pepe.jpg
169KB, 900x900px
>>55445947
2 year internship with lowest pay imaginable.
Bank are truly the vilest serpents of this planet.

Fuck this, keep looking.
>>
>>55446086

I reckon if you performed well they would likely cut that short, If you want to work for a bank you pretty have to go through shit like that now, over here they call it a "graduate program"
>>
>>55446091
You'll get it eventually. You'll be working with that stack every day so you will become better at it. Don't push yourself too much or you won't learn much.

I'd love to be working in that environment. I know all of those you mentioned bar Git, I only know how to commit, push, and pull from a main branch.
>>
>>55446091
>fresh out of college
>that stack

college for web development is a huge ruse, i wish companies would realize you dont need to be a computer scientist to work on your shitty php 5.3 CRUD system

(might not be your particular case but I wanted to blog my feelings)
>>
File: mycomrade.png (88KB, 190x204px) Image search: [Google]
mycomrade.png
88KB, 190x204px
>>55446192
Thanks for kind word mate, really appreciate it.
Git is one of the things that keeps me awake, especially those merge conflicts :(
>>
>>55445903
This. Real programmers use only light libraries and stdlib.
>>
>>55446179
That's basically it. They contacted the CS department at my college and asked for the "top students" in their final year. I don't know why they would offer it as a 2 year program - surely it won't take more than a year to figure out if someone will be good enough in the long run.

>>55446133
Even one of my lecturers said fuck internships. Some employers exploit students as a means of getting cheap labor because they now we're desperate for experience related to our field of work.
>>
>>55446091
>hates vanilla
the fuck is wrong with you?

and that list of things is nothing...junior dev new hires are often asked to know more than that.

which reminds me...there is so much shit in web dev that it makes you feel like you are two steps behind
>>
>>55445903
Real programmer use dragon dildos, fuck off.
>>
>>55445869
Watch how everybody does shit. Try to do some shit they do yourself just to learn it, even if their version is what gets put to use,
>>
>>55446253
>tfw I'm in one of them
>well, not really, but it is like a third/fourth of the undergraduate degree
>I hate my life

I learned HTML, CSS, JS, jQ and PHP in 4 courses (bad organization, could be put in 1 or 2 oh well), C++ in introductory programming and I even needed to make a responsive frontend with a CSS framework for the assignment in one of my courses.

>tfw there were two courses about user research and all that shit (basically UX) and internet marketing. And of course, a web design course. Hold me.

>at least the first year was the standard CS/SE or whatever, but relatively easy.
>>
File: darth-plagueis-162723.jpg (34KB, 655x360px) Image search: [Google]
darth-plagueis-162723.jpg
34KB, 655x360px
>>55446321
I don't hate JS, in fact I love it.
I was just saying the the level they write it is simply too advanced for me.

I will learn it, just a matter of time.

For any mystery can be solved through the application of knowledge and unrelenting effort.
>>
File: Evgenia-Arbugaeva-Weather-Man-2.jpg (27KB, 760x507px) Image search: [Google]
Evgenia-Arbugaeva-Weather-Man-2.jpg
27KB, 760x507px
>>55446399
I feel your pain breh
>>
File: Beautiful.jpg (99KB, 600x901px) Image search: [Google]
Beautiful.jpg
99KB, 600x901px
>>55446399
I got you beat.

>tfw there were 3 html classes
>html 1
>html 2 (a refresher of html 1)
>html 3 (I don't even remember this shit because it was so repetitive)

I had a fucking class that was purely for inserting home media tags into your page. The final was insert a video file, insert audio, and add subtitles to the video file.
>>
>>55445463
Don't push the text so far to the left. TEST segment should be offset about 15% to the left.

Replies also should be slightly more centered.

Reconsider having a lighter title background on dark text background. The focus should have a light backdrop to draw attention.
>>
>>55446476
Oh I misinterpreted what you wrote then.
>>
Is it possible to be successful as a generalist in this industry? Meaning doing either design, frontend, backend or all of them at once in different jobs but never focusing on any one particular thing. I ask because that's basically what I've been doing for the last 5 years, but I'm finding it increasingly difficult to find work these days.
>>
>>55447215
a "rockstar"?
>>
File: 1463007116894.gif (1MB, 320x213px)
1463007116894.gif
1MB, 320x213px
>be mainly interested in C programming and low level stuff
>decide to try my hand at web development because that's where all the jobs are
>trying to learn javascript

How do you people deal with this rat's nest?
Why is the standard library not worth a damn?
>>
>>55447341
im sure web devs feel the same about regular programming
>>
>>55447310
What?
>>
>>55447397
But other languages include good standard libraries and include a lot of features that make it easier to reason about types and catch errors before they happen.

Javascript has nothing, really.

It's OK as a web scripting language, because i guess you don't need to do much more than two-way binding and async updates, but I wouldn't use javascript for anything more than that.
>>
>>55447397
I worked with some Python and it is infinitely comfier than webdev.

Then again, it's Python, and I only made 100 loc scripts, while Java and C++ were, in my exp, shitty to work with, so yeah.
>>
>>55445660
it's pretty cool actually
>>
>>55447341
Are you learning ES3/5 by any chance?
>>
Check out webassembly

>WebAssembly or wasm is an experimental efficient low-level programming language for in-browser client-side scripting, which is currently in development. Its initial aim is to support compilation from C and C++, though other source languages are also intended to be supported. WebAssembly is a portable abstract syntax tree which is designed to be faster to parse than JavaScript, as well as faster to execute.

>WebAssembly was first announced on 17 June 2015[6] and on 15 March 2016 was demonstrated executing Unity's Angry Bots in Firefox,[7] Chromium, Google Chrome,[8] and Microsoft Edge.[9]

https://en.wikipedia.org/wiki/WebAssembly
>>
>>55447494
Not quite sure, pretty sure I'm learning about an older version.

Does ecmascript 5.1 or 6 have features that make development easier?
>>
What achievements do you guys have?

>CSS Ninja
>HTML Pirate
>jQuery Cowboy
>Laravel Vishnu
>SASS Assassin
>MEAN Kid
>Django Unchained
>Bootstrap Commando
>Femgineer
>Flask Magician
>Javascript Warrior
>Ruby Doctor
>Rails Expert
>Rockstar
>>
>>55447544
ES5 and below are garbage. ES6 makes the language actually decent. Then async/await finally gets rid of callback hell.

https://github.com/lukehoban/es6features
https://ponyfoo.com/articles/understanding-javascript-async-await
http://kangax.github.io/compat-table/es6/

And for transpilation to ES5, if you need to support retards:
http://www.typescriptlang.org/
https://babeljs.io/
>>
>>55447638
>retards

You mean most major browsers?
>https://kangax.github.io/compat-table/es6/
>>
>>55447662
Chrome and Firefox are almost fully compliant. Even the next Edge and Safari/iOS versions will be almost fully compliant. But yes, anyone not using Chrome or Firefox is a retard. (Tail call optimization has been moved to a different milestone)
>>
>>55447607
a cs degree
>>
>>55447607
>>Laravel Vishnu

How racist.
>>
>>55447215
Kinda standard in web development but still you should have something to really specialise in.
>>
>>55445889
tumblr is all in your head its like 2000 people on a planet of billions cuckolding your genitals 24/7/365 with Dark nigger magic because you CRAVE it
>>
>>55445416
More like The next illegal immigrant
http://www.bet.com/news/national/2016/06/08/honor-student-in-trouble-for-immigration.html
>>
File: 1467830507395.png (2MB, 1920x2160px) Image search: [Google]
1467830507395.png
2MB, 1920x2160px
Can I get some feedback on the design? First page is landing page, second page is logged in
>>
>>55448606
I like the simple layout.

Two things stand out to me immediately:
- The background is too bright, and the solid white looks a little tacky. Maybe consider using a light gray/silver color?
- The bar that shows channels doesn't seem to have much information displayed. Do you plan on displaying things other than name? If not, I'd suggest making it a little thinner horizontally, and make the images a little smaller. As a user, I'd rather see more channels at once than have large buttons.
>>
>>55447858
I've never had the chance to specialize in anything, because all the jobs I've had involved doing pretty much everything, usually as the sole developer. But it's as if those kinds of jobs have been disappearing and everyone wants to hire teams of specialists now instead of a single generalist like me.
>>
>>55448710
Alright I'll try to make it smaller. I have been thinking about putting additionial info on but I dont know what as its a really simple app
>>
I have an odd question. Hopefully you guys can help, even though it could be a /gd/ question, too.

Anytime I download an icon from flaticon or a similar site for testing purposes, it has a clipping path around the main object? Why do they do this? I'm making some bespoke icons for a site and I'm wondering why this *seems* to be the best practice.
>>
>>55446321
Vanilla JavaScript is miraculously awful. It only begins to become tolerable using a framework like jQuery that takes away a lot of the bloat and redundancy.
>>
How is code generated for really complex pages?

Like, there's no way moot originally coded the whole front pages of boards.
>>
>>55449320
Thats not really complex. Its literally displaying database stuff with some basic css/html
>>
>>55449331
Well not complex, just repetitive I guess.
>>
>>55449342
What do you mean with that? Its normal coding
>>
>>55449320
imageboards are not complex at all m9
>>
>>55449418
Depends on the imageboard m8.
>>
I need a generic system for taking and displaying orders. the idea is that this will be used in different contexts, so the users will be asked to enter different types of data (name, type of order, specifications, comments, ...).
I'm not sure if I should build it myself, or if I should just use someone else's tool.
does something like this exists? would any random CMS be enough? what would you suggest?
>>
>>55447427
Why do you think all of those big-ass heavy JS frameworks are so popular?
>>
>>55449565
Because web devs are typically lazy faggots.
>>55447427
TypeScript makes it a lot more manageable.
>>
>>55445416
>top math score in the country
>56% is still the top
>>
>>55447427
C isn't exactly known for its standard library...
>>
File: 000154.png (12KB, 741x26px) Image search: [Google]
000154.png
12KB, 741x26px
the bloat is real
>>
>>55445437
Also want to know this. Getting contracted for SEO shit because I'm "good with computers" but everything I've read online sounds like snake oil.

Any good and comprehensive guides?
>>
File: 1467765262857.jpg (8KB, 250x230px) Image search: [Google]
1467765262857.jpg
8KB, 250x230px
Anon, why aren't you using Sailor/Lua for your websites?
>>
>>55450344
use [ code ] (without the spaces)
regarding your problem... no idea what a handlebar is, sorry

>>55450329
AFAIU (i.e., not much), SEO is basically putting good keywords so that google can index your website where it should be indexed.
>>
Is there any way to dynamically filter Handlebars based on array values in an image gallery?

For example, I have:

var data = {

cars: [
{
number: 2,
carTitle: "Lamborghini Aventador 2014",
price: "$490000",
brand: "lambo"
}, {
number: 1,
carTitle: "Ferrari 458 Italia 2010",
price: "$109000",
brand: "ferrari"
}
]};



and in my view:

{{cars}}

<div class=" row">
<img src="images/{{number}}/1.jpg">
<img src="images/{{number}}/2.jpg">
<img src="images/{{number}}/3.jpg">

</div>

{{/cars}}


And I want a dropdown where I can select brand to filter the items.

Right now I'm creating several arrays (1 for all, 1 for lambo, 1 for ferrari) and .hide() or .show() ing them based on .click() in my dropdown. Isn't this a really ghetto way of doing things? It also doesn't allow me to filter by 2 variables like brand AND price.
>>
>>55450329
the exact algorithm changes all the time. Many of it is speculation although google sometimes gives hints.

basically a well written text with links that contain the keyword is the way to go. better write more "shadow pages" because it's hard to predict what google will like the most.
>>
>>55450393
Because I'm not inflicted with terminal autism.
>>
>>55450418
http://codepen.io/anon/pen/qNXAob

Like this?
>>
>>55451735
That looks like a step in the right direction, thanks!

I'm a newbie though, where do I insert the actual content?
>>
File: linux.jpg (132KB, 1000x647px) Image search: [Google]
linux.jpg
132KB, 1000x647px
>>55450393
lapis and luvit look cool but I hardly have any time left to learn new things
>>
state = [...state,
{votingPolls: [...state[state.length-1].votingPolls, {name : action.payloadcd de}]}];
return [state[state.length-1]];

>redux
>muh non mutating objects
>>
>>55453464
>non mutating objects
>on von Neumann architecture
Why is this meme even a thing?
>>
>>55453695
>muh predictable outcome
>muh purity
>>
>>55451916
http://codepen.io/anon/pen/GqvERa

Sorry its so crude. You have to change the value of the select box although fixing that should be straight forward.

Essentially you'll want a second script are to base the filtered data on, then compile it, and then finally place the compiled data into the new div using jQuery
>>
>>55453766
Thanks, I really appreciate it.
>>
>>55447607
>HTML Pirate
>CSS Ninja
>Javascript Warrior
>jQuery Cowboy
>ExtJS Wizard
>Angular SuperHero
>Bootstrap Commando

That's all for me. Relatively new to the game. Still grinding.
>>
>>55447607
Where do I get them?
>>
>>55447607
gnu/linux
>>
Does anyone here know ExtJS?

Apparently I'm fucking retarded, and can't remember how to get the tabs to show up on this fucking simple layout

Anyone see what the error in my code is? Because I literally cannot see the error.
>>
>>55445463
Make it centered on the right, people have their right eye as the most dominant usually, so a center right column with replies more left would be more ergonomic.
>>
>>55454527

good question . i also want to know
>>
>>55447607
Im a PHP Probably Too Lazy to Learn Anything New Since 1995 and a #CruzMissle
>>
>>55447215
"Full stack" is what that's called

If it's small company, full stack positions are probably justified.

If it's a large company, full stack positions are a warning sign of bad management. It allows them to throw anyone at any problem, so roles/responsibilities are poorly defined and you could be on the hook for stuff you've never seen or worked with, at any time
>>
>>55455500
>It allows them to throw anyone at any problem, so roles/responsibilities are poorly defined and you could be on the hook for stuff you've never seen or worked with, at any time
>Being this fordist
>Not embracing toyotism
>>
>>55445416
U BE SAYIN WE GON BE DA NEKS STEVE JOBS N SHIET?
>>
Is it possible to upload an angularjs web app to replace a flask app running on a server with nginx and supervisor installed? If so, what configs would I have to change to let the web app run?
>>
>>55457377
Angular is the front.
Flask is the back.
You can use both at the same time. What are you trying to do?
>>
>>55457409
Right now there's a web app running on a rackspace server deployed by nginx/supervisor/gunicorn that i assumed was written in flask, I wrote a web app in angular to replace the existing one, but I'm not sure how to deploy it
>>
>>55457409
>>55457497
Okay, upon googling and further investigation I had it wrong, the current frontend is written in python 3, and I'm trying to replace it with an angular app
>>
>>55457539
That's... weird, anon. Python is a backend language. The only thing it can do (concerning frontend stuff) is parse templates on the server, create the HTML for the current page you requested and pass it to the browser.
An Angular app lives in your browser, and requests info to the Python backend through AJAX or something else, and then updates its models with the new info.
>>
Ayy. I'm pretty new to web development so pls no bully. I've been tasked with limiting the file size of uploads for a form and I'm having a lot of trouble. I want the size validation to be done on the user end for sure and I want to check the size of each file in the case that there are multiple files uploaded. I think jQuery is what I'd want to use and I've been googling like mad with no luck. I did however run a few test lines just to make sure jQuery is implemented and working and it seems to be. Could anyone help me out?
>>
>>55457703
Why not do it on the server side?
>>
>>55457703
>validation
>only on the user end
Don't do that, familia. Validations must happen at least twice: Once on the front, once on the back. If you only validate on the front, a savvy user can easily change your validations and do whatever the fuck they want.
About the uploads: Look for a JS library to manage the upload (I can't recommend one right one). Probably most let you specify the file size limit.
>>
>>55449531
anyone?
>>
>>55458629
What languages are you comfortable with?
>>
>>55458685
python, go. honestly, the lang doesn't matter much, I can learn other langs if I need it
>>
>>55459117
Try Django since you know Python. You could also look into Wordpress if that better suits your needs.
>>
>>55459117
>in which language should i develop a POS system in?
use one thats already created there are many open source options.
>>
>>55457703
you can do it ezpz in jquery

<input type="file" id="myFile" />

//binds to onchange event of your input field
$('#myFile').bind('change', function() {
//this.files[0].size gets the size of your file.
alert(this.files[0].size);
});
>>
File: web dev.jpg (57KB, 431x300px)
web dev.jpg
57KB, 431x300px
Which silk should I use?
>>
>>55454569
you need to do container.add for your sub-level items

not just nesting ex.create that wont work
>>
>>55459404
Anything that isnt called Personal Home Pages and was designed by a lone nut way back in 1994 should suffice.
>>
>>55447638
>ES6 makes the language actually decent
I don't get it tho, am I supposed to write plain ES6 ? then why is everything labeled "JS" if it's retarded shit (ES3 atm, ES4 in the near future...??)
Do browsers understand ES6 ? can I use React/Backbone/tuttiquanti while writing ES6 ? can I call dem patterns and templates and functions and shit ?

t. JSnoob
>>
>>55445416
>Next steve jobs
So what a con man with a nack for typography and visual design?
>>
>>55450329
A lot of people will tell you that 'content is king', but while content definitely is important there are a lot of other aspects that will determine your ranking as well.

If you are starting with SEO, I'd say it is important to focus on great and LONG content. The longer the article, the more Google will like it. After you have written a bunch of great articles, start trying to get backlinks. There are a lot of backlinks, both black and whitehat.

Other important aspects are your images, don't forget to alt tag them. Use your h1, h2 etc wisely. Make sure your webpage doesn't load too slow.

Websites such as Backlinko have some great tips for the basics of SEO. My tip: just don't buy a course from some guru and if you are planning on buying backlinks, don't go cheap.
>>
>>55459431
>what browsers understand ES6
>what servers understand ES6
same link for both:
https://kangax.github.io/compat-table/es6/

save yourself a huge amount of nonsense and just learn popular relevant frameworks. Ignore everything /g/ tells you about "wasted" kilobits and dozens of CPU cycles wasted annually on the mobile user's phone.
>>
>>55450329
theres a lot of documentation out there but it took me a while to get my clients to the front page of google

the number one thing is that your page should be responsive and you need to keep checking how it appears to google. they can tell you if clickable elements are too small or close together and things like that.

number two is alt text. if you have a perfect website with no alt text on your images you wont rank.

third is actually the reputation of your domain. how old is it and how much does google trust it?

it goes on from there. theres an image called the periodic table of SEO you can google and it will show you there's a couple dozen things you gotta know.

Formatted data is huge also but if you dont have offline sources for wikipedia to profit off of youre basically fucked. wikipedia is a gangster syndicate now.

in summary: its not hard but theres a lot of details. If you know web dev you can learn SEO in a day or two otherwise maybe a couple weeks. The sad part is that it is ...

1) a racket (dishonest business)
2) impermanent (SEO is moving target and frequently everything gets nullified by google)
3) a grind (the easy parts are easy but the valuable parts require a lot of man hours which makes this the realm of pajeets and hackers who set up virtual blogs to manufacture backlinks)
>>
>>55459208
>>55459334
thanks people
>>
>>55459520
>what servers understand ES6
not gonna use it for server side applications though, just wondering ad I'm diving in front-end dev and webdesign, what should I learn ?
React, Angular2 (Typescript), Backbone, vanilla JS/ES5-6 ?
>>
I have this strange itch to do something in php7.

has someone here done something in php7? Is it worth using it?

I used php 4 for years and stopped using it for the good.
>>
>>55459754
do you know html and css yet?

do you know basic JS (not to be conflated with the ultrachic VanillaJS which is HTML5.1+JS-ES6 I guess. Its just sort of a meaningless buzzphrase to say youre too cool for frameworks)
>>
>>55459868
I make my Personal Home Pages in HTML with CSS but thats just me.
>>
>>55459869
>do you know html and css yet?
yeah
>do you know basic JS
I can use jQuery, that's about it
>>
>>55459868
It's faster than PHP5, that's for sure the most important part. There are some new functions and some have been deprecated and shit but otherwise there's nothing much different from the usual simplistic PHP syntax.
I moved a semi-large project from PHP5 to 7 and never really hit a snag, so upgrading won't be much of an issue unless you're coming from version 4 or so.
>>
>>55447607
What kind of faggot shit is this? Is this what you autists actually put on resumes?
>>
File: 1467726481321.png (2MB, 2556x1580px)
1467726481321.png
2MB, 2556x1580px
>>55445416
>i-if we keep pushing the narrative that all races and genders are equal then it'll be true, right?
>r-right?
>>
HELP

I have a recruiter telling me I need to add my experience with RESTful web services to my resume. What the fuck does that even mean? How do I even say that without it being patronizing? How do I say it without saying, "By the way 100% of my experience was with RESTful servers because it's not 1997 and these aren't fucking geocities pages?"
>>
>>55460310
https://www.udacity.com/course/designing-restful-apis--ud388
>>
>>55460361
I know what a rest api is you dip. That's not what I'm asking. I encourage you to read the entire post.
>>
>>55454527
>>55455157
At your closest kode academy, my friends.
If you collect them all, you get a dinner with Karlie Kloss and a small ruby badge with your name.

Better start hacking!
>>
>>55460415
7,5/10
>>
>>55445416
>Genius is everywhere – but we're wasting it. How to unleash the great minds of tomorrow.

FUCK. THAT. SHIT. HUMANS ARE NOT A FUCKING RESSOURCE WE CAN "WASTE" YOU FUCKING DEGENERATED PEDANT TECHNOPHILE DIGUISED AS A JOURNALIST REEEEEE

t. 145 IQ
>>
>>55460145
have you ever admitted in public you are unashamedly racist? and hate women?

how about in a job interview?

why or why not?


extra credit:
please describe in 50 words or less why you are smarter than barack obama
>>
>>55460361
Why the fuck do employers need that specified on a resume? It feels like being asked, "Yes all this web dev experience is great except I'm not seeing the internet on here. Have you used the internet before?" Do I just add a line at the end of all my experience that says, "This one is also a REST API because fucking of course it is. Everything is."
>>
>>55459362
Am I doing something wrong?
<input type="file" id="UploadFileField">

<script type="text/javascript">
$('#UploadFileField').bind('change', function() {
//this.files[0].size gets the size of your file.
alert(this.files[0].size);
});
</script>
>>
>>55446091
If you can get your hands on some Pluralsight courses, then git, Sass, jQuery and Bootstrap can be learned very easily.

Basically watch the masters do it. That way you learn the fastest when you have no experience. Also print out some cheat sheets for git, sass and jquery.
>>
>>55445903
>I like to waste my time reinventing the wheel while hipsters make money with an optimized workflow
Alrighty
>>
>>55460598
>Hmm, I see a lot of experience with Angular on here and that's great but I don't see any typing experience specified. I know you write code but do you type it or do you write it on a scroll and hand it to a carrier pigeon to deliver to the king of the internet?
>Your resume's great but we're an oxygen breathing office. Would you be comfortable inhaling an oxygen and nitrogen atmosphere? I don't see that on your resume.
>Sorry, we've decided to move forward with other candidates. There just isn't enough experience with the corporeal plane on your resume. We do a lot of work with matter that exists.
>>
>>55460695
This works on my end...
>>
>>55460821
You win. Everything.
>>
>>55460695
you are probably putting the script before the html

Using jquery the script tags gotta come AFTER the input tags or any tags you reference with $(#id)
>>
>>55460821
my sides
>>
>>55460821
this might be funny except the premise is retarded

of course you need experience with RESTful service design and delivery

the original complainer didnt even know what it means!
>>
>>55461070
Yeah that was me and I don't know how to make it more clear that not only do I know what a REST API is but literally 100% of my experience has been either writing or using existing ones. That's just how the internet has worked since, i don't know, the late 90s? I don't even know what an alternative to REST would even look like. I said as much 2 sentences after you stopped reading.
>>
>>55461189
you are merely reenforcing that you are clueless
>>
>>55461210
I definitely am. You can tell by the number of question marks I use and the lack of answers I'm finding here.
>>
>>55461247
your problem is not one of technology. you cannot learn anything with your current mindset.

Nan-in, a Japanese master during the Meiji era (1868-1912), received a university professor who came to inquire about Zen.

Nan-in served tea. He poured his visitor's cup full, and then kept on pouring.

The professor watched the overflow until he no longer could restrain himself. "It is overfull. No more will go in!"

"Like this cup," Nan-in said, "you are full of your own opinions and speculations. How can I show you Zen unless you first empty your cup?"
>>
>>55461280
>>
>>55445869
I've heard that people who intern at google always get the Imposter Syndrome when they initially get there, then after a month or 2 they realize there's no brilliant minds there, just people who know how to work.

It's not about being a genius, just make sure when you open your mouth you know what you're talking about. Or at the very least, make sure people believe that even if you don't. It's all about presentation
>>
>>55461402
It's a second week and I feel exactly like that.
But I will remember you advice, thank you!!
>>
>>55461442
I'm sure the people there are smart to some degree. Hell some may even be brilliant, but they can't do it all and don't know it all. And more than likely all you need to do is keep up, which is easy to do if you already got that far. Just pay attention.

Any good employee will be more than willing to explain something if you ask and you are a good listener. Repeating themselves is one thing, but if they don't believe you should need any guidance at all, they were coddled to begin with.
>>
>>55460310
If you want a non-bullshit answer:

1. You're putting it on there for the HR people that don't have a clue what REST is, they've just been told that potential candidates need to have experience with it. The hardest part of getting a job is usually getting your resume through them to someone that's tech-literate. In fact, it's not uncommon for your resume to go through a script that dumps it if it doesn't find certain key words. That's why it's usually a good idea to tailor your resume to each job opening by matching the exact phrasing they use.

2. You don't *have* to put it on there. If you have a portfolio, it should be obvious to any programmer that you have exp with REST, it's just getting your foot in the door that's going to be harder.

3. The way you put it on there without seeming like a autistic prick is to have a section listing various techs you're familiar with, one of which is REST. Look at some example developer resumes.
>>
>>55461560
Except int he interview they will ask you to name one alternate architecture and i guarantee none of you can tell them if PUT and DELETE are idempotent or what that even means

youre underqualified lets face it, that should be in bold at the top of your resume UNQUALIFIED
>>
>>55459362
Yeah and then somebody uses inspect element to remove the script tag and they can upload any size file.
>>
>>55459428
So PHP Hypertext Processor would be fine then?
>>
>>55461682
I usually default to the Punjabi translation but if you prefer modern Hindi dialect be my guest
>>
File: fuuuuuuuuu.png (418KB, 640x430px) Image search: [Google]
fuuuuuuuuu.png
418KB, 640x430px
>>55461515
Apologies for blogpost but here goes.

The very first interview I had was quite positive. They even hinted that they're willing to offer me a position at the end of my internship simply because I've had years of experience in system administration and had balls to switch career paths with zero fucks given (which is true).

Last week I had a talk with CTO and lead developer where they've asked me what I was interested in to which I answered that I'd like to first try myself as front-end and see from there.

As a result of this conversation I've been given a project where I need to make existing (relatively large) website responsive. Not really complicated since there is already a bootstrap linked to it and all I need is to do usual "bootstrapping", which I'm learning as I go right now.

It took me a week to get started since they provided me with a bare minimum of assistance with my task but I'm getting better now. Entire project is on the git repo and uses PHP/Laravel/Compass/Sass/JS/Bootstrap and lord knows what else.

Yesterday they've assigned 2 guys to help me out (which was good since I've confirmed many of my own findings talking to them and learned me some new tricks).

I'm just wondering these things:
>Was this all a test?
>Have I failed it (by taking so much time)?
>Should I just relax and concentrate on learning shit instead of trying to prove myself to them?

The idea of imposter syndrome sound very similar to the way I feel now, but I just can't help to ask myself these questions.

These are the things that were keeping me up at nights these past two week.
>>
>>55461902
it must be a really huge "big ass" firm if the CTO spends this much facetime with interns who dont know bootstrap
>>
>>55461846
>LE PAJEET MEME XD
>>
>>55460821
That's brilliant
>>
File: the ride.jpg (187KB, 1920x1080px)
the ride.jpg
187KB, 1920x1080px
>>55445416

R.I.P. Apple

They still haven't destroyed open source BSD OS's yet. Retreat, fall back, run for it lads.
>>
>>55462328
test
>>
>>55445599
It's a foreigner with top math scores. She'll be reduced to a supply line worker in no time. No American CEO would risk anything higher than "senior programmer"
>>
Trying to make sql injection not a problem.

Rip code tags if I fuck it up.

function getuserlevel()
{
$user = $this->user;
$db = $this->getdb();
$stmt=$db->prepare('Select user_level from `users` where user_name = ? ');
$stmt->bind_param('s',$name);
$stmt->execute();


After the stmt->execute(); command. How do I go about getting the user_level out of it?

I was doing it before with just $result = db->query(sql) then $result->fetch_object()->user_level

But it seems i need a new method now that I'm using the above way.

How do I do this?
>>
>>55460573
Yes. You resorting to a personal attack means you're clearly dumber than Barack Obama.

>please describe in 50 words or less why you are smarter than barack obama

I have 140 iq
>>
>>55463102
$result = $stmt->execute();
print_r($result);


?
>>
>>55463162

No, $stmt->execute(); is returning a boolean value. So either 0 or 1. In this case 1 because it executes properly.
>>
>>55463263
Have you tried the documentation?
>>
>>55463279

I did. I spent around 5-10 minutes trying to figure it out before I asked here.

but I figured it out just now,

$db = $this->getdb();
$stmt=$db->prepare('Select user_level from `users` where user_name = ? ');
$stmt->bind_param('s',$user);
$stmt->execute();
$result = $stmt->get_result();
return $result->fetch_object()->user_level;


get_result() was hiding from me.
>>
>>55461402
>just people who know how to avoid work
ftfy
>>
File: 1449616851910.jpg (494KB, 4232x3174px)
1449616851910.jpg
494KB, 4232x3174px
>>55445416
>wonder who the next steve jobs will be
>publish picture of girl with highest math score in mexico
did steve jobs have a particularly high math score?

PS build the wall!
>>
>>55445869
No one except maybe senior backend faggots really know what is going on in a lot of companies.
>>
do I need to use a transpiler (gulp) if I want to use es6 syntax (let)? Just encountered this in a video, new concept to me
>>
>>55463887
let is supported by node and all modern browsers. If you need to support older ones, you'll need a polyfill.
>>
>>55464011
aka don't use es6
>>
how do people make these shitty banners?
I want to make one to post in social networks and get clients... but I have no fucking clue how to start. I mean, I guess I already have the tools, but I'm not sure how to think about the graphic part. I have no experience doing this.
>>
I want to build something database driven so the corporate masters will give me a job.
A blog seems too basic, but I can't think of anything else that won't depend on user input and so end up as a ghost town, or full of robot spam.
Ideas?
>>
>>55464238
years of art education and honing your art skills
>>
>>55464259
newsletter
>>
>>55464295
Isn't that functionally the same as a blog?
>>
>>55464280
really? people need "education" to make a banner? ffs
>>
>>55464238
1. Get blender
2. Make low-poly houses
3. Use the decimator modifier
4. Get clients
>>
>>55464259
scrape pol for every shitpost where someone says "my gun" and make it public
>>
>>55464372
Retardo, it's still a graphic design. You need to know it and be gud at it.
>>
>>55464071
i never understood this meme who are these people using old versions of browsers?
>>
>>55464396
Some houses and the sky?

A sign?

My 3 year old could draw that.
>>
>>55464419

you dont use netscape?
>>
File: 10-years-in-art-school.jpg (32KB, 960x540px) Image search: [Google]
10-years-in-art-school.jpg
32KB, 960x540px
>>
>>55464491
now do it in webgl
>>
>>55464011
Thank you, same with =>?
>>
>>55464505
THREE.ImportModel('10-years-in-art-school.dae');


Pretty much
>>
>>55464419
I can't update my shit for some reason so I've been using older browsers for awhile.
>>
I am considering doing a vertical navigation like this

http://prototype-imdb.webflow.io/

for my news website. Is that okay? I want to experiment with this one.
>>
Been studying for 6 months guys, gearing up for the September hiring season. How are my keywords?

JavaScript
Node
Angular 1,2
Jquery
Express
Sass
Linux admin
Mongo
SQLite
HTML
Css

Master of none but I can deploy a database driven node app with only a few references to google
>>
>>55464431
I am talking about banners in general, not this shit.
Still, go ahead and do it, if it is that easy.
>>
>>55464658
I guess s/he already did: >>55464491
>>
>>55464685
Kek, yeah, noticed that after posting. Okay, I admit that probably IS easy, but like I said, it's shit anyway.
>>
>>55464639
You won't get hired anywhere but the most hipster of startups who will fire you right before they get to the next round of funding. Where is your Java? .NET? MySQL? Postgres?
>>
>>55464709
Also, Python+PHP
>>
>>55464709
6 months of study dude, Felt it was more beneficial to focus on the MEAN stack given how much of a buzzword it is presently
>>
>>55464709
What 3rd world ISIS recruiting outposts are you applying for jobs at, anon?
>>
>>55464709
>>55464730

You guys are dicks he's fine if he can ship an app
>>
>>55464761
Any junior dev position in America outside of startup hotspots.
>>
>>55445775
>not properly not greentexting
>>
>>55463887
gulp is not a transpiler, babel is
you can use babel through gulp, grunt, webpack or browserify
>>
what are your guys main development environments and tools you use, specifically if you use a lot of javascript
>>
>>55445416
Bueno.
>>
>>55465690
Atom, webpack, npm, chai, and mocha
>>
Here's something I made in my free time. Create a code screenshot image from text.
https://altbdoor.github.io/code-screen/
>>
>>55465873
Doesn't work, just reloads the page
>>
>>55465900
Huh odd, what browser are you using? I've tested it with Chrome and Firefox ESR.
>>
File: NoScript-logo-icon.jpg (10KB, 500x260px) Image search: [Google]
NoScript-logo-icon.jpg
10KB, 500x260px
>>55465934
>>
>>55465970
Ah I'm sorry, the processing is done in JS, and I did not include a message on browsers with JS disabled.
>>
File: login.png (39KB, 923x896px) Image search: [Google]
login.png
39KB, 923x896px
How does my log in page look?
Any suggestions?
>>
>>55466167
Lighten the shadow up a bit. What is this anyway anon?
>>
>>55466187
I do a lot of shiny hunting in Pokemon so I'm making a website with tools to help.
>>
>>55466167
Make use of different shades of grey instead of black and white.
>>
>>55466167
1. Why don't you have a second box to confirm the password?
2. Why not make the two forms parallel?
3. Style your buttons and the input fields

Ignore all of that if you were actually going for that 1999 era look.
>>
>>55466167

An option to stay logged in/remember credentials?
>>
>>55466415
Great idea, will start on it now.

>>55466394
I'll add in a second password confirmation box now. I'll also make the buttons mini pokeballs!
>>
>>55466454
Make the pokeballs open when you click them and transition to the site.
>>
>>55466497
>>55466454
I can animate it for you, for only 3 payments of $29.95
>>
>>55463372
>
get_result();


Get out.
>>
i'm an engineer inheriting a huge ass bloated javascript greedy web app
js being browserified and bundled but then every single bundle is being required on every page so load times are abysmal
any suggestions for organizing the bundles/dependencies to speed things up?
>>
>>55467696
assuming you're using webpack, you can do code splitting https://webpack.github.io/docs/code-splitting.html but it's better to go full SPA if you're doing heavy js. So that's just one page load upfront. Also, remove all the dependencies you can get away with.
>>
File: rec.webm (237KB, 912x532px) Image search: [Google]
rec.webm
237KB, 912x532px
Does anyone have any ideas on how to implement something like this?
>>
I'm just starting to use Gulp, what plugins do you guys use or recommend?
>>
>>55466167
I'd make it look like the screen where you name your character in the Pokemon games. Same font, underscores instead of rectangles for input boxes, "Your username?" instead of "Username", etc.

Also write Pokemans! in the Pokemon font, and lose the lines between the Login and Registration forms. The white space is enough to delimit them.
>>
>>55464238
>>55464280
http://www.bannersnack.com/
>muh art
kek, who the fuck cares
>>
>>55445416
>the next steve jobs
>the next guys who develops nothing but shit and made the tech world take a turn for the worst
How the fuck do people not know of Wozniak?
How the fuck do people not understand that all Jobs was responsible for is form > function in the tech world, which is basically the exact oposite of what tech should be about.
>>
does anyone have a dictionary for randomly seeding user-agents?

like if you had a table for randomizing these:

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36


I'll just write one if nobody has heard of that before
>>
>>55449002
Viewer count, stream up-time, game being played, subs...
>>
>>55468426
Kys
>>
>>55445647
>47
>HITMAN CODENAME 47

NICE REPEATING DIGITS
>>
>>55468230
Leaflet, read docs.
>>
>>55469198
http://www.useragentstring.com/pages/All/
Did you try googling?
>>
>>55468822
Hey everybody, this guy isn't part of the cult, burn him at the stake!
>>
File: 1467460686340.jpg (146KB, 999x1334px) Image search: [Google]
1467460686340.jpg
146KB, 999x1334px
I dont understand the appeal of React/Redux, literally everything takes way longer to make compared to VanillaJS and all that fucking boilerplate and messing around with webpack....ugh why?
>>
>>55472648
If you're just making tiny projects then you won't gain much, it's when you go large and need the structure that these things are really useful.
>>
>>55471323
Thanks senpai, I'll check it out.
>>
>>55472686
Then why do people generally believe that it's best for single page applications?
>>
>>55472880
Not all projects can be solved with as a single page app.
>>
>>55472648
>>55472880

There are a couple facebook dev conference talks that explain what the use case for flux is and generally what it's all about that might be helpful.
>>
>>55464238
That's what graphics designers are for
>>
My experiences with trying to recreate mumuplayer (a site where you could upload music to a small room, and have it play to that room synchronized):

First implementation: WEBSOCKETS
The idea here was to have the upload client broadcast chunks of the file to the listeners. In this way, a listener who connected late would only hear the part of the song currently being chunked.
This didn't work properly though, because this is essentially just live streaming your music, and people are going to have shitty upload speeds leading to stuttering playback and other issues.

Second thought: ICECAST
Icecast is a web radio server you can host and anyone can tune into at any point. This is exactly what I needed. However, Icecast and its competitors are all standalone programs that can't be hosted on the same server as the web application. In order for the users to upload to it, there needs to be some sharing of the file system between the site and the radio server of course, but I could never find a method to have them communicate. I could find no plugins or modules that emulated this functionality, either.

Backup plan: WEBRTC
Then I had a thought: if you can stream your voice or video through a webcam like on omegle, why not stream a file from your computer? Ah, but I was ahead of my time. WebRTC protocol 'currently' only supports getting the input from a user device, meaning a microphone or webcam. As far as I can tell, there is no way to use webRTC with a static file. And even if there were, I suspect there would be latency problems the same as with sockets.
>>
File: 1436049288636.png (75KB, 506x608px) Image search: [Google]
1436049288636.png
75KB, 506x608px
>>55475602

Final despair: HTML5
Distraught that I could find no solution to this seemingly simple problem, I turned to the most basic thing I could think of. I thought, why not have an HTML5 audio player embedded on the page, and then have its source and on/off state triggered with some javascript? I could hide the player's visibility and then nobody could seek on it, and I could perhaps also set the start time to emulate synchronization. Then the clients could simply upload files, and the backend would serve them when they were ready. I woke up this morning with this idea and I have no idea if it will work yet. If it doesn't, I will be truly in despair and probably have to abandon this whole thing, which would feel bad man.
>>
>>55475602
why can't you let run icecast on the web server aswell? what is preventing it from working?
>>
File: 1462612275876.jpg (62KB, 600x600px) Image search: [Google]
1462612275876.jpg
62KB, 600x600px
>>55472648
The react/redux toolset/docs are pretty fucking amazing though. Like once you actually get into the groove and get over the "it's so much", you start feeling like this shit is the future desu neko chan
>>
>>55475636
There is no way for the backend to provide logic to the icecast server. It can't tell it what to play next or when to create a new mountpoint or anything like that.
>>
function abc(x)
{
var a = x;
}
button.onmousedown = abc(1);
button.onmouseup = abc(2);

this is javascript
why can't I do this?
>>
>>55475956
because when you do something = abc();
it'll execute abc(1) and assigns the return value.

Imagine
myTextBox.value = someCalculations(1, 2, 3);

What a disaster if that wouldn't work but would set the value to a reference of the function.
>>
>>55476023
then how do I do it?
>>
>>55476047
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
>>
>>55475956
I can't even tell what you're trying to do in this code. Please explain properly your goals and what happens instead
>>
>>55476068
when I make a click I want to call that function with that argument
>>
>>55476188
http://www.w3schools.com/jsref/event_onmousedown.asp

You can either write the function explicitly both times, or use an event listener.
>>
Hello, got 2 questions
Working on a website with the basic HTML/PHP/JS, a lot of my request use POST method, how to secure that ? ( hash ? )
Next one is : what can I use to refresh a table on every client without using a refresh function in AJAX/JS ? I can't use sockets
>>
>>55476713
1. Secure how? From snooping people? HTTPS
2. Websockets or AJAX, otherwise you have to iframe it and auto-reload it every X seconds which is like AJAX only worse.
>>
Why do so many workplaces not care about design? I had to help with design while I was in one place, and they didn't even have any ideas, they just wanted me to make it pretty. I felt like a cuck doing css t b h famalam, while the others were doing the actual machinery, but then again, nobody knows this shit for some reason. It definitely wasn't easy to hack through their code.

I just wonder how can businesses sell their applications with default framework stylings and tons of little design errors. I don't know if I am autistic, but it seems that people don't even notice it. I get pissed off so hard with those things. UX that bad should be forbidden by law.
>>
>>55476763
Yes I dont want people to see my requests, mainly for the login/password
>>
>>55463140
*I have an IQ of 140
>>
>>55476826
People don't care about things they SHOULD NOT notice. Great design is just that, you may think it's beautiful, but once you get past that you simply don't notice it. It doesn't fight you while using it. Therefore, a lot of people underestimate design because they don't actively study/work with it and realize just how much is going on under the hood.

So people turn to things like bootstrap themes and call it a day.
>>
>>55476849
that's why https exists.
>>
>>55467046

why you mad though?
>>
>>55454845
then why are 4chin posts on the left?
>>
wtf is that new d3 update
>>
>>55477990
4chans design is old.
it dates to a time when monitors had a much lower resolution, so text looked more centered.
>>
File: 1445379709332.png (20KB, 1088x333px) Image search: [Google]
1445379709332.png
20KB, 1088x333px
Okay, I have a problem and I can't seem to work out the best way of implementing it.

On my [new] startpage, I'm going to have a large clock, front and centre. I want to make the clock in an ASCII-art style, but I'm struggling to get an idea of how I might achieve this. I'm good with HTML, CSS and Java (and maybe some irrelevant stuff), but I'm still learning with JS.

Current idea is as follows:

Write each line of each ASCII numeral to a string
Get time from function
Split time into constituent numerals
Concatenate each line of each numeral
Print resulting strings, each on a new line

I can only currently see an easy way of doing this in Java, and even then it's quite time consuming.

How might this be done in javascript? Is there an easier way of doing this another way? Has it been done before?

Thanks
>>
>>55478097
put each number as a string into an array.
then concat the different numbers from the array with the index based on your date/time segment.
>>
>>55478143
Is there any way to add line breaks to the string, or would I use an extra dimension or something?
>>
>>55478201
yeah, just add them?
>>
>>55478215
Oh. I'm being a retard - gotcha

cheers man
>>
>>55478223
you can even escape them to make them easier to read
let myString = 'this\nis\na\nmultiline\nstring';

could be done with
let myString = 'this\
is\
a\
multiline\
string';


mind you, html doesn't display newlines, so use the white-space: pre style or the pre element.
>>
I'm looking to write a very simple chat server in PHP. I want users to submit a message in a textarea and have it shown to everyone. What would be the best way to do this?
>>
>>55478280
websockets, broadcast the message to everyone.
>>
how can I have the max or min value of a slider set as a variable? I tried putting the sliders into a function and set the current value of one slider as the max value of another but it only gets the value on load and doesn't refresh, I thought of disabling and enabling the slider but wouldn't that make it slow?
>>
>>55478097
Just put each digit into a string, and then call those strings. They should line up if you have newlines explicitly in the strings
>>
I've been learning front end development and now that I want to make a website I'm completely oblivious on how to set up a server and database. I remember hearing about XAMP or WAMP a few years ago, do people still use that for local testing and practicing how shit works?
>>
File: 3 point fucking 3.jpg (233KB, 1262x1067px)
3 point fucking 3.jpg
233KB, 1262x1067px
What is the difference between HTML and HTML5
>>
>>55481292
What language do you want to use for the backend?
>>
>>55481466
What everyone uses so I guess PHP and MySQL
>>
>>55481292
X/WAMP is good for testing unless you have other dependencies, then you should be using a Vagrant box or something that resembles the production environment as closely as possible.
>>
>>55481329
5
>>
>>55481329
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5
>>
>>55481484
Find a tutorial on Youtube and go apeshit then. THey'll most likely tell you what you need and how to install them.
Have fun.
>>
>>55464709
stop being ridiculous, he'll be fine.
>>
Any actual good free code editor on Winblows that isn't sublime? Fucking Brackets is buggy as hell.
>>
>>55482648
Sublime
>>
Node basically does what PHP, right?
>>
>>55482648
Atom.
>>
>>55482648
>Fucking Brackets is buggy as hell

This is well known. If you were only using it for its live reload feature (the only reason I even tried it), check out Browsersync instead.
>>
>>55482984
Replaces old fashion lamp stack especially the python(alternative to basic with a SWEET name) and personal home pages (kludge from 1994) part.
>>
>>55483127
Isn't Brackets made on JS?
>>
File: tumblr_m0kapozBUw1qfu47lo2_250.gif (999KB, 250x251px) Image search: [Google]
tumblr_m0kapozBUw1qfu47lo2_250.gif
999KB, 250x251px
>>55445416
> https://www.railstutorial.org/book/user_microposts

For anyone who's familiar with Michael Hartl's rails tutorial, how would you allow microposts to be submitted with blank content, so long as they had a picture attached?

Alternatively, without that context, do you know of a way to rewrite
params.require(:micropost).permit(:content, :picture)
so that it allows microposts to be submitted with a lack of text content, as long as you include a picture?
>>
Make new thread fags
>>
>>55483242
I don't know shit about rails, but from basic logic can't you use an if statement to check if it's empty then make adjustments accordingly?
Thread posts: 323
Thread images: 40


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