[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: 319
Thread images: 32

File: 1462453773600.png (747KB, 824x553px) Image search: [Google]
1462453773600.png
747KB, 824x553px
/wdg/ - Web Development General

Previous Thread: >>56959228

> 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/
https://youtu.be/JxAXlJEmNMg?list=PL7664379246A246CB - "Crockford on JavaScript" lecture series.

>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
https://gist.github.com/dypsilon/5819528/

>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://youtu.be/sBzRwzY7G-k - "2016/2017 MUST-KNOW WEB DEVELOPMENT TECH - Watch this if you want to be a web developer "
https://youtu.be/zf_cb_Nw5zY - "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
>>
Has anyone here been to a coding bootcamp?
Do you recommend it?
>>
Self taught people or anyone else can relay this info.

How much did you know (self taught again dont care about school) when you got your first junior job, what was the interview like, what was your portfolio, and what did you actually do at first.
>>
>>56997470
>>56997485
You're asking in the wrong place. Nothing but NEETs in here, boys.
>>
anyone know how can I get a chart to update when I change a value with a slider? I tried this but it isn't working

 slide: function( event, ui ) {
TheChart.update();
}


here's fiddle https://jsfiddle.net/yty1s76u/
>>
Anyone else feel overwhelmed trying to learn React at first? Wanted to move on from just making sites with html / css / plain js so I've been trying it out this weekend, but the amount of shit that comes with it is incredible. With all this node and webpack stuff plus a thousand other js files I've never heard of that every tutorial seems to want me to include, it feels impenetrable.
>>
>>56997485
Basic JS, alright HTML5 & CSS3. Some PHP.
Interview was just a general talk with the lead dev, he asked me general questions to see if I knew my shit. No whiteboard questions.

That was 4 years ago, now I am a fullstack python + react guy, working remotely and making 90k
>>
>>56998135
Look at https://github.com/facebookincubator/create-react-app. It's the React team's answer to your problem. Hides all the node and webpack stuff so you can focus on React.
>>
>>56998135
learn one thing at a time.

It took me 1 week to be confortable with react + flux (redux), but that was because I already knew Node, Webpack, Babel and so on.

At least you aren't learning one of the more complete frameworks, like Anguar. That takes even more time.
>>
>>56998118
RTFM http://www.chartjs.org/docs/
>>
>>56998135

Just wait util you see Angular, hehehe..

But honestly, Frameworks/Libraries for SinglePageApps solve very specific problems (just like Backend-Frameworks do). If you are new to webdesign, a lot of this doesn't really make sense, because you need experience to grasp why certain things work in a certain way (and which problems you are trying to solve with it).

Just start somewhere and learn as much as you can. Leran some SPA stuff, learn some backend stuff, try to understand the different pros and cons. Sometimes a simple JQuery functions or even vanilla JS does the Job and every additional library would be bloatware.

Diferent tools, different goals..
>>
>>56998135
Go for Ember. It's a complete solution with awesome plugins.
React is nice but it's only a small part of the whole picture. Also, it's not faster anymore than the alternatives.
Otherwise for simple sites backbone or marionette are also great.
>>
>>56998352
I read the documentation and it says that .update() would work
>>
>>56998473
You didn't change the data so there's nothing to update.
>>
>>56998501
I set one of the data (red) as the value of the slider, I want it to update the slider value while you slide woudn't that work? it only gets the initial slider value now
>>
>>56998532
You did that only once. For your Slide event, you don't change anything you just call the chart update method without setting or passing any values for it to update
>>
I got put on the "standards team" for a pretty small company to draft standards for the upcoming project we're going to be working on and I don't want to go to this meeting empty handed

I have no clue what I'm supposed to do

Is it just like "yeah guys follow the universally agreed on standards and comment your code" or what? is the point of a team like this literally to decide where the squiggly brackets go and how many spaces to indent

I don't want to ask around too much for fear of coming off as the dumb new guy
>>
>>56998437
Ember used to be a respectable choice a while ago, but now it feels a bit old.

You are forced to use it a a full fledged solution with ember-cli. Besides, components are not first-class citizens, you are still forced to use top-level controllers, why don't they get rid of that already? We have been waiting for that for years.
>>
>>56998584
so should I put the NewValue= slider value in the slide function or call a data change for the chart data?
>>
>>56998615
Read 'code complete', take notes about best practices you can apply about code quality, peer programing, etc.
Suggest them on the meeting.
Also, get a list of recommended bibliography on the subject if you can.
>>
>>56998641
well if you set NewValue = slider.value that won't do anything either because NewValue is just a random variable. But it seems like you would want to change the data for the chart. I don't know chart.js but you should try to do something like
YourChart.data = {newdata};
YourChart.update();
>>
>>56998675
ok thanks now I am just trying to find the correct syntax to change the data but each example I see has different data format
>>
>>56998269
and how was it starting out? Did you feel you hit the ground running or were you fucking clueless on your first weeks?
>>
you didn't consense the OP

moron
>>
>>57000454
give him a break, he was trying not to hit the pedestrians
>>
File: compact frog.jpg (37KB, 400x400px) Image search: [Google]
compact frog.jpg
37KB, 400x400px
>DigitalOcean - Whoops! There's an outstanding balance on your account
>>
hey guys i'm trying to use this tutorial
https://www.tutorialspoint.com/mysql/mysql-administration.htm
to get mysql up and running. however, whenever i try to add a new user, it gives me the error "ERROR 1819 (HY000): Your password does not satisfy the current policy requirements".

my google-fu just got me this
http://dev.mysql.com/doc/refman/5.7/en/create-user.html
which hasn't given me any solid answers.

wat do?
>>
File: Mmmm.jpg (100KB, 638x220px) Image search: [Google]
Mmmm.jpg
100KB, 638x220px
I've got a weird question. If I create a website, is it possible to hash people's IP addresses? Meaning, I nor anyone else will see the actual address, but can still affect it such as banning spam and things of that nature.

I'm not looking for how to do it. I'm looking for input on whether it's a viable option and whether I should. It really has to do with respecting privacy because there's no need for me to have that information, but I still NEED it for things like banning for example.
>>
>>57002481
Of course it's possible.
>>
>>56997377
I bet you guys have seen this already, but I'll post it again anyway
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f
>>
>>57000924
the fuckers took $100+ github credit + other promos from my account
>>
>>57002481
You can hash any arbitrary data, so yes it's possible.

And IP addresses aren't generally considered to be private information, though. Your ISP, their ISP, your server, the DNS server, and any intermediate parties are all most likely logging IPs anyway. Obviously it's still not something you want to release publicly.
>>
Anyone here ever used the sanitize-html npm module before?

I'm trying to sanitize user input in my Express app but not escape quotes and apostrophes.
>>
I didn't crash.

Turns out I'm not uncordinated. Who'd have thunk?
>>
>>57002481
Yes. Possible and very easy.

I just store IPs though.
>>
>>57003803
So should I definitely not use porn sites in my portfolio?
>>
what do you need to learn to design/make a html page FAST? like, a basic functional mockup or something, in a couple hours.
can wireframing tools do this? which ones?

also, what's a good tutorial on bootstrap? I need a fast tutorial that teaches the CONCEPTS behing bootstrap. I don't care much about something that teaches the API(?) itself, since I can lookup shit in the docs, I want to learn what's the point of it, and how you mix features, some cool stuff you can do with it, etc
>>
so i have the opportunity to bootcamp, do I go for a c#/.net or java back end programming course or do I go with the cool startup guy full stack web dev course? I'm assuming full stack web dev is more in demand these days but I feel like Java, etc will have more job stability.
>>
>>57003891
what do you like the most? if you like programming and don't want to deal with the frontend mess, I guess C# and/or java would be much better options

reading >>57002691 should convince you...
>>
>>57003880
The point of bootstrap is the grid system. It provides consistent support for many devices and teaches you best practices on how to write code (mobile-first). The rest is pretty fahh. It will lighten your dev process ONLY if you use this kind of UI patterns in your website:

- Tooltips
- Your forms need to change colors (for example turn red when invalid)
- You need a basic standard navigation (nevermind it looks exactly as every other site out there, or that it breaks on mobile if your javascript breaks, apart from that, at least is pretty decent out of the box, it has support for screen readers and so on..)
- You might need to do a lot layout in a lot of columns, use "cards" to display information, etc.

Basically bootstrap is a general-porpoise framework for standard UI patterns. You simply use it because its easy way to start a big website, and you keep using it in small websites/projects because you're too lazy to learn tachyons or base.css
>>
>>57003955

I actually saw that! Why the fuck would anyone find that a sustainable environment to develop in? Guess that's what happens when web libraries are maintained by pill popping ADD silicon valley guys who think they're always onto the next big thing and back end libraries are maintained by fat 40 year old neckbeards. Java makes me want to kill myself and [email protected]. Hard choice but we'll see.
>>
>>57003880
W3schools for bootstrap.

You can learn the whole thing in an hour.

As for preparing site design, idk I just make it or draw it if I can't think of anything.
>>
>>57000924
>>57002704
what
>>
>>57003980
aha. but I mean, stuff like responsivity and other shit, how it's done, how it's used, etc

>>57003999
will try that

thanks m8s
>>
I just rebooted my server an hour ago and it didn't come back up. Then I found that my hosting provider provides remote power cycling as a paid service.

Fuck this gay earth.
>>
>>57002691
Is functional programming the same as procedural programming?

Just putting the shit you need in functions?
>>
>>57005347
don't ask me, I haven't learned FP, but AFAIU (almost nothing).... yes
>>
Any drupal ffans here?
>>
Where do you guys find work? I used Freelancer for a while years back but it was far more trouble than it was worth
>>
>>56995202
Can you share the code?
>>
>>57005347
Functional programming is more than "putting shit in functions", it involves closures and higher order functions, and libraries and idioms and other language features to support structuring programs around functions as control structures.

Javascript isn't really the shining example of this some people try to sell it as but you can write passable functional code in it sometimes.
>>
Completely new to front end design and I recently was given the task of maintaining the web app at work. What's the best way to go about responsive design? The site currently only looks decently in a desktop browser
>>
I'm writing a script that listens to a websocket (that I don't control) for a specific event (that happens very sporadically).

What's a good way to fake the event on my end to trigger the functions that I want to test?
>>
>>57005883
it's literally just a container div set to grid with 4 divs inside it
>>
File: geQBMP.png (981KB, 1280x720px) Image search: [Google]
geQBMP.png
981KB, 1280x720px
gonna post this again tho, what can i add to my new tab screen? currently i have a scratchpad that saves to local storage on the right, and bookmarks on the left. doesn't even need to be functional, just look cool and cyberpunk.
>>
File: what are you doing??.png (646KB, 800x900px) Image search: [Google]
what are you doing??.png
646KB, 800x900px
I have a bunch of input form fields within a div of a fixed width.

How do I make them all have the same length and stretch to the end of the div?
>>
>>57007679
just give all the inputs a class and set them to width: 100%?
>>
File: Selection_001.jpg (54KB, 499x510px) Image search: [Google]
Selection_001.jpg
54KB, 499x510px
Do you guys here support this book for learning front-end?
> JavaScript & jQuery: Interactive Front-End Web Development
>>
>>57008063
learn the ins and outs of vanilla JS before you learn jquery, I've seen too many people fall for the jquery meme from the beginning and have no clue how JS actually works.
>>
>>57008076
I learn't vanilla JS years ago and this book covers core JS up to about halfway through, so I hope it will be a good refresher before getting into jQuery.
>>
>>57008095
learn how to write your own ECMA compliant JS engine before you learn jquery :^)
>>
>>57008110
Learn JSX with React first.

Besides, no one uses jQuery anymore; not even pajeet
>>
>>57008117
Many companies are still using JQuery, people should learn whatever they need to get employed not just learn whatever's the latest hipster tech.
>>
File: 146564353243.jpg (24KB, 318x320px) Image search: [Google]
146564353243.jpg
24KB, 318x320px
>>57008063
>>57008095
Same guy here. I'm gonna go for Eloquent JavaScript instead.

>>57008076
Thanks for your comment.
>>
if i have some php embedded in my html how can i update it with a new value on a given click? at the moment i have it looping through and creating a table for A when the page is loaded but if B is clicked i'd like to do that for B instead
>>
File: 1443198645546.jpg (25KB, 400x400px) Image search: [Google]
1443198645546.jpg
25KB, 400x400px
what are some good "portfolio" level projects? Everything I can think of is way to big to do while I'm in uni
>>
>>57009257

take a look at codepen, you might get some ideas senpaitachi

if nothing else works, create tables with html
>>
>>57009290
pls I'm serious. I had ideas about doing an file uploader. But creating user settings, folders, private settings, account level etc. make that project way to big. And creating an upload service which gives you the file link directly is way to easy to put in into a portfolio.
>>
>>57009315
>way too easy to put in a portfolio
so just make it look REALLY good. that's what portfolios are for anyway, how well you can make things look.
>>
>>57009232
PHP is executed on the server before the page is sent to the user. You can either have a form on your page that requests table B, or do it clientside with javascript (recommended).

>>57009315
You have to eat an elephant one bite at a time, anon. Any nontrivial project is going to seem too big when you lay out everything at once. Start small and make incremental progress towards a finished product. For now, don't think about making a file uploader, just make a dirt-simple CRUD app.
>>
>>56997377
In hopes to ditch jQuery and only use Sizzle.js, I tried to write helper functions for selectors (Sizzle returns an array of items) and simple event binding. How is this?

var $ = function(str) {
var el = Sizzle(str);

if (el.length === 1) {
return el[0];
}

else {
return el;
}
};

var Each = function(el, callback) {
el.map(function(i) {
callback.apply(i);
});
};

var Event = function(el, event, callback, opt) {
opt = (opt === 'undefined') ? 'false' : opt;

if (el === window || el.nodeType === 1) {
el.addEventListener(event, callback, opt);
}

else {
if (el.length === 0) {
return false;
}

else if (el.length === 1) {
el[0].addEventListener(event, callback, opt);
}

else if (el.length > 1) {
el.map(function(i) {
i.addEventListener(event, callback, opt);
});
}
}
};
>>
>>57009938
Just use native browser APIs and for...of loops.
>>
>>57010188
Writing loops for each event becomes tedious though. And that function is terribly repetitive.
>>
hey /wdg/

i don't know anything about web dev, html, css, javascript etc.

how can i add html+css code from codepen to my site?
>>
>>57010462
Open a .txt file.
Paste the code in it.
Save as .html
Upload the file.
>>
>>57009938
>>57010188
Here's the less retarded version

var ß = function(str) {
var obj = Sizzle(str);
var out = (obj.length === 1) ? obj[0] : obj;
return out;
};

var Each = function(el, callback) {
el.map(function(i) {
callback.call(i);
});
};

var Event = function(el, event, callback, opt) {
var length;
var opt = (opt) ? 'true' : 'false';

if (el.constructor === Array) {
length = el.length;

if (length !== 0) {
el.map(function(i) {
i.addEventListener(event, callback, opt);
});
}
}

else {
el.addEventListener(event, callback, opt);
}
};
>>
I've been having some trouble understanding how to locally store data for a web page.
So far I just have buttons and every time you click one you get 15 points. How do I locally store the points so that when I open the web page again it's still the same number?
>>
>>57011259
https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
>>
So I'm coding a distributed imageboard and would love to hear your opinion on the design http://149.202.189.83/
Is the font size big enough? Has anyone troubles to read? (The text is randomized, it should be easier with real content)

The idea is to replace boards with tags. Then with proper filters anyone can create his "perfect board"

>>57011259
localStorage.setItem("points", points); // Save
var points = parseInt(localStorage.getItem("points", "0")); // Load, default to 0

You have to use parseInt since localStorage only store strings
>>
>>57011311
>site doesn't work with js disabled
try again.
>>
>>57011321
It will
>>
The process for acquiring domains should be way harder. I would even be down for a 20 domain per company /person limit.

Anything is better than these dictionary surfing autobots buying 10s of thousands of combinations and reselling for 100 times buy price.
>>
>>57011432
>tfw your lastname.com is being hoarded by some random guy and he doesn't even use it for anything
i've even contacted him about it and didn't receive anything back, what's the point of hoarding a domain if you're not going to sell it?
>>
>>57011446
Our primal instinct make us feel better when our territory is bigger than the others
>>
>>57011321
So you mean distributed in a sense that anyone can host a node on their server, not that each client is also a server?
>>
>>57011446
This one guy has had a domain I've wanted since 2012.

He owns a type of website in spain and made up the same word I did for the domain name.

I asked if he would sell it, he said "Now I don't :)"

It's been a year and it's still unused. I would have even paid for it.

Waiting for it to maybe expire in february..


Now I'm trying to make a little note website for my portfolio today and can't find a domain. Everything is taken.

Maybe I can buy thisisawebsitewhereyouwritenotes.com
or I can get with the 2010s and name it blopplr
>>
>>57011629
Yes, anyone can host a server but doesn't necessarily need to be a server
>>
>>57011629
Meant to quote >>57011330
>>
>>57011634
lmao he was going to sell it but then didn't because you asked? wow.
>>
>>57011652
Also, this is why tags are used instead of boards. It's better for MapReduce and p2p
>>
>>57011668
Here is a copypaste of what he said:

Hello, now i dont want sell. Thanks!
>>
>>57011651
I see. I've been musing over a distributed imageboard myself with a serverless approach. But decided to wait until IPFS stabilizes and has native support at least in some browsers.
>>57011701
Yes, tags is also the conclusion I came to.
>>
>>57011717
i mean maybe he just meant at that moment? have you tried contacting him again?
>>
>>57011726
I can try.

I just don't want him to remember to renew the domain.
>>
>>57011741
yeah true, wait until after it's meant to expire, and if he does renew it then contact him.
>>
>>57011746
He has 4 months to forget. Just emailed him.

It's 5:50pm in Spain so he should answer soon.

Going to go grab some coffee so I have something to throw once he says no again.
>>
>>57011724
Do you think I should wait for IPFS too? It's all we need desu
>>
>>57011772
If you still want to make your decentralised imageboard, go for it. That is simply not what I want. I want to make an imageboard without servers that lives on the internet and can not be taken down or tied to any country. Threads will be created with tags. Image thumbnailing can be done on each node with canvas. On the downside that means that each post will also have to be verified in the browser.

Technically you can already use IPFS in the browser through https://github.com/ipfs/js-ipfs, but that would be too slow for my standards.
>>
Hey anons how could i do something like this in javascript:

<?php
class class{
public function echoData(){
...
echo "Something";
..
}
}
?>
<img src="<?php $class = new class(); $class->echoData(); ?>"
>>
>>57011905
No clue what you're doing senpai
>>
>>57011982
>create some function
>function will give link
>put that link inside src="<HERE>"
>>
>>57012003
`<img src="${returnsLink()}">`
>>
>>57012033
So that should be part of .js, k
If i remember right, there should be something in angular like {{ value }}, it works same as .blade.php
>>
>>57012003
So something like
document.getElementById("imageid").src=yourFunction();

?
>>
>>57011857
But I agree though. A true peer to peer imageboard would be better.

Thus I'm not continuing my current project
>>
Maybe someone here can help me?
>>57012010
>>
>>57012048
That looks like the way i wanted it to be done
>>
>>57012075
that question is more for dpt then wdg
>>
>>57012088
Ok thanks.
>>
>>57012075
Use an ORM
>>
>>57012117
Any suggestion?
>>
>>57012117
Also, this
http://stackoverflow.com/questions/452385/what-java-orm-do-you-prefer-and-why
seems to suggest it's a bad idea
>>
>>57011857
What do you think about developing a P2P CLI textboard and adding IPFS when it's ready?

Would you join a project like that? :^)
>>
>>57012257
I would after I finish my realtime imageboard. 30K loc in and still lacking important features like moderation.
>>
>>57006668
Add the one line of HTML you probably need
>>
>>57012257
>>57012296
Why text board though? You can easily have images with IPFS and thumbnailing can easily be done on with canvases. So each node would link and host 2 resources on IPFS - the original image and a thumbnail.

Also, on second thought, it would not be too hard to abstract some of the current client code I have into libraries and perhaps reuse. There are a bunch of features done:
- Model,View,Collection classes
- no frameworks, so high performance
- live update options system
- IndexedDB post number persistance for things like seen posts, hidden posts, (You), etc.
- custom blurred background generation
- HTML5 history router
- Image expansion, hover previews, music playback, etc.
- Post hover previews
- Asynchronous write batching

There is probably other stuff that can be decoupled.
>>
>>57012296
Errr

>>57012522
b--but... HTTP and HTML must die!
>>
>>57012609
HTML will not be dying any time soon. So you meant making an external application then?
>>
>>57012629
Yes

>>57012522
Do you have a link to your project?
>>
Anyone know what I am doing wrong here? I am trying to change data from chart.js with a slider, I put the json change and chart update in the slide function of the slider but it still won't work, here's fiddle https://jsfiddle.net/hgLhbrmL/
>>
>>57012855
Haven't you asked this exact question for like a week now?
>>
>>57012868
I asked yesterday only and someone helped me, I did like he told me and still won't work though
>>
>used Python + JS for most of my web dev career when it comes to backend
>pick up PHP because of our company's site made in Wordpress by a 3rd party who started charging too much
Holy shit, why is PHP so comfy? It's like a game how PHP files interact with each other, and the constructs Wordpress uses
>>
File: Избор_087.png (39KB, 1462x200px) Image search: [Google]
Избор_087.png
39KB, 1462x200px
>>57012906
PHP the best language for creating websites,
Simple and EZ
>>
>>57012962
because php was for making web SITES, not web APPS. and web apps are a cancer of web development. that's why we need more things like PHP.
>>
>>57012723
Then I'm not interested. Rather than create a separate application for Windows, Linux, Android, OS X, iOS on all possible architectures I'd just make it work in the browser.

https://github.com/bakape/meguca
>>
>>57012855
Basically, what you're doing wrong is that you're not updating the datasource.

You're updating the original datasource, but that datasource is not binded to the chart after initial load.

So what you have to do is figure out how to access the datasource of the chart and update that before running update.

Here's my hacky way:
https://jsfiddle.net/mhxmyx7h/

Maybe you can find the actual way to access the datasource to update correctly.
>>
>>57013119
thanks a lot that would work for now. But what is binded on the segments tag?
>>
File: niggers.png (61KB, 633x362px) Image search: [Google]
niggers.png
61KB, 633x362px
>>57013221
Your datasource, but with a bunch of other bullshit associated with how the chart would look, too. If you have 3 objects in your array, then there would be 3 segments. The one you only care about is value.
>>
>>57013103
>character by character updates
Now that's interesting. The design is nice but why is the top bar so small?

By the way it's really laggy for me but maybe it's just the fact I don't live in the US
>>
>>57013303
is that from the chart.js library file?
>>
>>57013328
To save screen realestate. Gigantic top bars can go eat a dick. Of course it becomes bigger on touchscreen devices, but having it huge by default is retarded and ugly.

What exactly is slow - the UI, loading or updates? What browser and version?
>>
>>57013391
In a way. That's how chart.js handles data for pie charts. You can access it from your chart object ("TheChart").
>>
How can i execute more then once query in one function?

$sql = " very long query"; 
$sql2 = "long query'";

//can i do something like
$result = $mysqli->query($sql, $sql2);


?
>>
>>57013402
I don't like giantic top bar too.

I can't even scroll this page https://meguca.org/a/1799337. I'm using chromium on a laptop, so don't mind me though.
>>
>>57013602
Which version of Chromium? Unless you are up to date many things will not work. But if it is a performance issue in general, I need to fix it. Also, what's your GPU?
>>
>>57013648
Chromium (53.0). CPU 2 * 2.1GHz with Intel integrated graphics card, really an affordable laptop but I don't have any troubles usually.

It would be nice if the content and the thumbnails were loaded dynamically while scrolling
>>
>>57013520
Why?
>>
File: 1344613533609.jpg (15KB, 300x300px) Image search: [Google]
1344613533609.jpg
15KB, 300x300px
>mfw i'm about to get shitted on

hey, i want to start coding on android.

What language should I dive into first?
>>
>>57014010
Java and Go.
>>
>>57013520
$_results = [];
$_querries = [
//put your querries here
];
for ($i = 0; $i < count($_querries); $i++){
$_results[$i] = $_mysqli->query($_querries[$i]);
//do shit
}

Something like this?
>>
>>57014010
3 years ago i used java and it was fine, now im testing ionic, desu it is much more ez. But im working with apis, depend of what are you going to do
>>
>>57014090

i was about to learn Java, i'll still do it
thank you kind sir, i want to create a app to create video collage. i know there are a lot of them but i want to try to create my own

it seems hard as fuck tho

>>57014048

Thanks anon
>>
>>57013520
BTW why mysqli? Are you building something or just modifying old code? In case of the former, why no PDO?

>>57014060
*queries
>>
>>57014151
It is old code, but nevermind, i fixed it.

I wanted to modify it so i can use it for api, that is why i wanted everything in one output.
Dont know how to explain it :D
i just wanted everything in one place so i can simply create array for json of all that values
>>
Aside from all the JS memeing, this seems to be the minimum, sensible "stack" for creating a scalable web app at the moment:

* React
* Babel
* Browserify
* Grunt
* TypeScript
* JSX
* Node.js

I barely know any of these except node and regular JS of course. I just want a list I can plow through and learn all the "cool" things. Have I missed anything?
>>
>>57014440
nigga just use ASP.NET
>>
>>57014525
.NET is only cool if your friends are indian.
>>
So if i want to get json output of one video name, is this how it should look
{"name":"1457895717967.webm"}


im getting error that ; is missing
>>
>>57014823
How are you fetching it? What language? How are you converting it to an object?

Post code
>>
>>57014823
Yes that data structure looks fine but either your API or client (you didn't specify) has a syntax error
>>
>>57014943
>>57014996

First time doing something with json, i dont think api should look like this desu :D

i have api.php, when you visit it it gives you >>57014823
How i get that is:
...
$video = array("name"=>"123.webm"); //i get name from db
echo json_encode($video);
...


Client side need to be in js
I dont get that error anymore, but i tried something i found on stack, in angular
function api($http) {
var url = "http://localhost/API.php";
$http.jsonp(url).success(function(data) {
console.log(data);
});
}

I dont get error, but i doesnt work
>>
>>57014659
lel I don't have any friends
>>
>>57015110
Why do you need jsonp? And what's the full data you get back from your script?
>>
>>57015212
ok, i have website, which works with videos, it gives you random videos.

Now i want to create android app that serve those videos and im doing it in ionic.
How would you suggest me to get video url from server to app?
I have never done anything like that and im a bit lost.
>>
>>57015265
$http.get('/API.php').then(function(data) {
console.log(data);
});


Should do it if you're using angular or their $http
>>
>>57015396
so if i type console.log(data) in browser console, should i get output?
because im just getting error
>>
>>57015458
After refreshing the page you should see the data in the console...
Also, when you say you get an error that does not help, you have to tell me the error...
>>
>>57015489
reference data is not defined.
>>
File: spurdo.jpg (23KB, 320x320px) Image search: [Google]
spurdo.jpg
23KB, 320x320px
Alright I'm looking to get into all of this stuff. I know the basics of HTML, CSS, C++ and Java but don't know all that much.

I'm looking to eventually start doing freelance Web Development. I'm starting with going back over HTML and CSS and learning JavaScript.

1. Should I eventually go more for frontend or backend stuff if I'm trying to freelance.
2. Are there any good resources to learn this shit quickly? I'm not a moron or anything, so I'll pick it up really fast. Any recommendations for specific books or resources?
3. I'm a freshman in college, are there any types of courses I should take?

Any help will be much appreciated, thanks guys.
>>
>>57014440

>no sass
>no webpack
>no normalize.js
>no jQuery
>TypeScript instead of CoffeeScript
>unironically using the Node.js meme
>""""""""""JSX""""""""""

Into the paper bin it goes.
>>
>>57015567
>stuck in 2014
>>
>>57015583

>hurr, muh bleeding edge
>>
What's the best domain registrar for someone in Europe?
I don't really want to learn web development, I'm more interested in setting up a server and getting OpenSSL working and reachable from the outside, and domains aren't that expensive. I've just got a Pi here, and I'll be the only one using it, so no huge requirements.

Namecheap a good option?
>>
>>57015535
hey new guy, welcome! For resources, read the fucking OP. Choose the one that you like best, they all teach the same shit. I recommend codecademy, personal taste. For books, use the Genesis Library, gen.lib.rus.ec or alternative URL's, check reddit for the current one.

If you want to freelance, you're most likely going to have to do both front and back, called full stack.

Check the intro to CS courses, intro to programming, I don't know, wtf, just go to the CS department and ask them.

Since you're gonna be doing freelance, I recommend you don't study either Java nor C# but instead you go with another backend language. Reason is, those two langs are saturated with pajeets, and it's not so easy to compete with their $5/website deals.

And do come back with more questions, we're actually a friendly bunch over here.
>>
What's the best way to learn HTML & CSS?
>>
>>57016310
By RTFM
>>
File: waitasec.jpg (122KB, 526x572px) Image search: [Google]
waitasec.jpg
122KB, 526x572px
>>57016257
Yeah intro to programming is Java, that's what I'm required to take right now. Entire class is pajeets and asians, what would you recommend instead?

Thanks for the advice, full stack sounds kind of appealing, I don't like to be overspecialized.

What exactly is the Genesis Library, a bunch of pirate downloads? I just looked at it briefly
>>
>>57016310
>What's the best way to learn HTML & CSS?
I've read it. What's the recommended way? Are books better or shit like code academy?
>>
>>57016310
html and css book by jon duckett is pretty good
>>
>>57016391
ayyy, I just looked at that for a second when I was at Barnes and Noble today
>>
>>57010579

i thought combining html and css is more complex than that
>>
>>57016310
I think w3schools is worth spending time on.
With exercises to complete and examples to look at.
And when you're happy with CSS & HTML you can look at other stuff.
>>
>>57014440
If you're going with React, you should probably learn Redux as well.
Otherwise you can try learning Angular instead of React.

Babel isn't something you need to learn, it's just a script that transpiles your ES6+ javascript into ES5.

Instead of Grunt, I would go with Webpack and/or Gulp. Webpack is what all the cool kids are using for their React apps, but gulp is better for some things.

Typescript is really only needed if you're using Angular2 or writing a huge, complicated app. Otherwise I wouldn't spend a lot of time on it for now. Just get the gist and then if you need it, you'll know.

JSX is literally just HTML with a couple of small caveats. The short description on the React official page will give you everything you need for that. (Also the official tutorial is a pretty good starting place for react)

You should also learn SCSS which is a styling language that transpiles to CSS and has some extra features vanilla CSS lacks like nesting and variables.

One last thing I would recommend is to learn some stuff for testing. Mocha + Chai and Jasmine are some good libs to look into. TDD will save you a lot of time in the long run and makes you look good to employers.
>>
I've a got a game that sends some JSON to a php file.
I want that json to be included in a woocommerce checkout. How easy is that? anyone give me some pointers?
>>
File: 1.png (32KB, 500x703px) Image search: [Google]
1.png
32KB, 500x703px
>>57015535
>>57016310
>>57016346
>>
>>57005783

Me too, i got stabbed once.
>>
Anyone here program a webextension? I'm trying to send a message from a browser action popup to a content script, but I'm retarded.
>>
is there something as easy as c#/vb .net and visual studio on the FOSS realm?
>>
What the fuck happened this last month?

I'm getting recruiters coming out of nowhere all over the place when no one has contacted me for months.
>>
>>57017716
What platform are you getting recruited through? Or do you have a personal site.
>>
>>57017716
share your wisdom, senpai. We're all hungry here.


>>57016331
>What exactly is the Genesis Library, a bunch of pirate downloads?

exactly that, yeah, so you can find a book that suits your needs if you just look around for a bit.

If you don't wanna waste your time on that Pajeet class, just do something from the OP. Really, it's not that hard. Just keep yourself motivated and you'll be fine. It's daunting at first because of all the languages/tools you need to know (like this here >>57016697) but just take it step by step:

HTML>->CSS>->backend language of your choice

Then in time you'll figure out the rest.
>>
>>57017759
>Recruiters post to Indeed
>I go to the recruiters website and send my resume
>hear nothing for months
>now getting a flood of emails

I don't know what happened. Maybe they just now got around to me. Some of these emails are completely different recruiting agencies too.
>>
>>57017831
They probably sell data. Take advantage senpai.

Someone related:
>sign up for online component of course using personal e-mail
>suddenly get daily spam
>>
>>57010892
no interest?
>>
>>56997470
I would reccomend it if you have the money. The thing to know is that it's not a surefire way to get a job in development. You'll still have to learn frameworks and build a portfolio on your own. Most dev jobs will want some experience in a popular CMS, as well as vanilla coding.
>>
File: ithinkmydoghasautism.jpg (44KB, 574x382px) Image search: [Google]
ithinkmydoghasautism.jpg
44KB, 574x382px
>>57017788
Thanks man. Should I go for JavaScript before the backend language or is that a meme?

Also, to anybody, what's everyones personal preference when it comes to backend languages? Python, Ruby, PHP or what?
>>
File: 1476125769280.jpg (229KB, 900x948px) Image search: [Google]
1476125769280.jpg
229KB, 900x948px
How do I view and modify the contents of my Mongo database? Is there a simple GUI like phpmyadmin or am I asking too much?
>>
>>57012962
That code is terrible.
>>
>>57018355
Robomongo
>>
>>57018270
Go>c#>java>>python>ruby>>javascript>php
This should be in first post.
>>
I'm trying to start coding React and I have no idea how to set up a react/babel environment on my windows computer. Help?
>>
>>57018747
It's all subjective and dependent on what you're developing, isn't it?

Best man for the job.
>>
>>57012962
>mysqli
senpai..
>>
I am having trouble finding a job.

I like to pretend I'm a girl when I take a bath.

Is there a diversity quota for me?
>>
ReferenceError: $http is not defined

What do i do?
>>
>>57019064
No homo, right?
>>
>>57019013
what is problem there?
>>
Node is cool and I have a book on it. What's a neato project to do with it?
>>
>>57019140
It's not PDO.
>>
>>57019199
For the love of fuck don't make a chat app, everyone does this when learning node. Do something with an API, like pulling data from the stock market or sports statistics and compiling it.
>>
>>57019235
socket.io chat app :D, that was 1st app i made like 2 years ago
>>
>>57019235

This was the response I was looking for. I don't want to make a chat app with it. I'll look into some games I like and hopefully they have some API I can pull information from.
>>
>>57019235
This.

Imagine an HR person going to your chat app and having no one to talk to. Just an empty screen of them typing "Hello?" "This is stupid", or they go to a site that pulls in stock information and graphs it.
>>
File: SS_001.png (7KB, 217x133px) Image search: [Google]
SS_001.png
7KB, 217x133px
I posted few hours ago, and ill do it again.
How can i get this json with javascript and output it in html?
>pic
>>
>>57019235
Hey, that's the first thing I did when learning node. It really helps a lot.
>>
>>57019325
Send and ajax request to that url.
>>
>>57019325

var url = 'http://localhost/API.php';

$.getJSON(url, function(data){
var name = data.name;
});
>>
File: SS_002.png (8KB, 431x290px) Image search: [Google]
SS_002.png
8KB, 431x290px
>>57019392
>>
>>57019000
Considering Go is a language designed for writing servers, it easily belongs at the top. Only valid alternative is C++, if you need hard realtime.
>>
>>57018880
Install Linux, if you want to program in anything besides C#.
>>
>>57012518
This is probably the least helpful thing I've ever had someone tell me on 4chan
Which is saying a lot
>>
>>57018880
create-react-app or follow one of the many tutorials.

>>57006668
Look into using a css framework. Bootstrap is arguably the most popular, but there are tons of them.
>>
>>57020580
Thanks, sounds like a good place to start, really appreciate the insight!
>>
As I settle on a daily schedule - is 5 hours every day for learning web design fine, or too low? I'm a newcomer, want to land some work by next year.
>>
I need to create the most simple of websites. Wordpress seems too convoluted considering my goal. I have a more than basic understanding of programming, and I'm thinking html5 might be what I'm looking for. If I were to use a template from https://html5up.net/ and a beginner's guide for html5, would it be feasible for me to create a halfway decent site?
>>
>>57021070
just make it from scratch with html and css? templates are for suckers.
>>
>>57021096

the css is where I'm a sucker, hence the template
>>
>>57021119
so learn css instead of being a little bitch and using a template.
>>
>>57021131

I don't have time to hone my powerfaggot skills. Thanks for shitposting.
>>
>>57021070
You'd really be better of learning Bootstrap or Foundation. That way you can build whatever you want and make it look the way you please without relying on prebuilt templates.
>>
>>57019448
it's jquery, dude
>>
>>57015567
>coffeescript
man...
>>
>>57015567
>TypeScript instead of CoffeeScript
>unreadable ambiguous Ruby wank instead of a statically typed superset of JS
Into the trash you go.
>>
Am I the only one who prefers using the least amount of JavaScript (i.e. only hooking events and having a custom ajax post/get class) and using css animations instead?
>>
>>57022577
you should ALWAYS strive to use the least amount of JS.
>>
>>57015567
I can tell you make 50% as much as I do just from this post
>>
should I bother with angular 1 if angular 2 is out? I want to use angular 1 since angular 2 looks like overcomplicated garbage, but if it's going to be dead in a month there's not point
>>
>>57021119

can you dedicate an hour a day for a couple of weeks? because then you'll be good enough at CSS to make a good looking website.
>>
>>57017934
Cool, I have money saved up for it. I'm learning some fundamentals at FreeCodeCamp atm, thought I'd get a better ROI if I show up to the bootcamp knowing a little.
I have the option to do university for """free""" (Sweden), but I'd much rather save 3 years of my life if I can get a nice job after a bootcamp.
Any thoughts? Am I being retarded?
>>
>>57022225

You know in all the Ruby vs JavaScript shitfighting, it's highly ironic that the thing I hate most about Ruby is the way the community continue to try to shit up JavaScript by pushing Coffeescript.
>>
>>57024357

>Am i being retarded?

nah, just realize you might have to spend some time after the bootcamp learning more, making your own stuff, etc.

best thing about a bootcamp imo is that you're pretty much immersed in webdev 24/7. you can definitely learn the same stuff on your own, but I don't think people really have the discipline to go all-in like a bootcamp requires. you should have a great foundation in programming and web dev at the very least... not sure you'll make much in terms of projects though. like i said you might have to work on that after.
>>
>>57023604
Yes. I'm currently using Angular1 professionally. Angular2 is "too new", not a lot of libraries/extensions have been built for it. And I agree, looke like shit.
>>
File: S 2016-10-11 at 11.25.52.png (521KB, 698x637px) Image search: [Google]
S 2016-10-11 at 11.25.52.png
521KB, 698x637px
Anyone on mac sierra here? I want to get that SF mono font but I love Yosemite too much to upgrade.
>>
>>57024500
Thanks for the answers! I'm gonna keep pushing design/programming related things into my portfolio while looking at options for bootcamps.
>>
>>57007693
>>57007679
div.class input {width:100%;}
>>
http://pastebin.com/a5EMNWXy
Why it works on Firefox, but not on Chrome and Vivaldi? On jsfiddle it also doesn't work.
>>
>>57025101
>using with
>>
>>56997377
How do you handle server-side manipulation of user-submittted image files securely, /g/? I'm working with some PHP code (yeah, I know, but not my choice) and I need to do some pretty basic stuff with image files like resizing, stamping and creating thumbnails. I was thinking of using Imagemagick (standalone, not the PHP module) as the most efficient, easiest to use, and portable in case we ever drop the fucking PHP. However, IM has some pretty embarrassing record of serious security vulnerabilities as it was apparently never meant to handle arbitrary, potentialy malicious input. What other options do I have?
>>
>>57025123
What is wrong with with?
>>
>>57024666
I'd upload it for you, but I can't find it on /System/Fonts
any idea what it's called? it's definitely installed, I saw it in Terminal/XCode and it looks great.
>>
>>57025157
nevermind, it was a resource inside Terminal.app. here you go.

https://workupload.com/file/mZf79Y2
>>
>>57025101
because you are using with like a madman.
in chrome the element.style object has an x and y property where in firefox it does not, so in chrome the x property will override the x variable.

don't use with
>>
File: SS_005.png (167KB, 1652x985px) Image search: [Google]
SS_005.png
167KB, 1652x985px
>Day 2. still not working
How do i fix this
>>
>>57020960
It's not how much time you have, it's how well you utilize it. Figure out what kind of job you want (and what it's realistic for you to get) and focus on the things you need to get that job.
>>
>>57025469
CORS
>>
>>57025469
Please don't abuse $scope, senpai. That's what your "myCtrl" is for. Also, scripts belong in the head tag.

As for your error: http://stackoverflow.com/questions/23823010/how-to-enable-cors-in-angularjs
>>
>>57025612
>>57025649
Hm, so problem is in API.php
>>
File: SS_006.png (49KB, 1925x1019px) Image search: [Google]
SS_006.png
49KB, 1925x1019px
>>57025612
>>57025649
So i added
header('Content-Type: application/json');

So now script is executed but {{message}} is not showing
>pic

>btw i have same script in test.html on localhost, and it is working
>>
>>57025767
m8 you're setting myWelcome to response.data.name.
Your screenshot shows your response.data is an empty string.
"".name === undefined.

myCtrl.myWelcome = response.data;
Which would still be empty, mind you, because data is an empty string.
>>
>>57025791
Look this anon
http://s1.webmshare.com/rvBen.webm

that is same script, one is in ionic, other is on apache
>>
>>57025880
Mate, I don't know what to tell you. This is some basic shit.

One of your back-ends is populating the "data" field with an object containing a name property. The other is returning a blank string.
Figure it out.
>>
What's the best book for learning Ruby?

I know other scripting languages if it matters
>>
>>57025932

The official site has a list of resources that are all pretty good: https://www.ruby-lang.org/en/documentation/

Also,
>wanting to learn ruby
>>
>>57026043
Thanks

But why not?
Seems like you could land some nice jobs if you know RoR

I got my eyes on Programming Ruby
>>
>>57025932

I read "the well grounded Rubyist" it was pretty decent.

"Everyday Scripting with Ruby" if you want some deeper knowledge about scripting tasks.

"why's (poignant) guide to ruby" is also.. well some consider it a must-read, some find it wierd.

In the web, "PerlMonks" is a greate source of learning. Also the "Ruby Koans" teach you a lot about Ruby, but you have to search a little bit, beacuse some repositories of it are broken. It's still out there, somewhere..

>>57026105

IMHO Rails and Sinatra are still great. Nowadays some SPA libraries are mandatory (i.e. React, Angaular), but for backend stuff Ruby is still very funky.

But beware, there's a lot to learn. The typical MEAN-stack or even LAMP-stack would probably be faster to get into. IMHO it's still worth to invest the time, beacuse Ruby is damn beautiful.

Just make sure you got a good understanding of Ruby (do the /g/ challenges, and take some time to understand meta-programming) before you dig into Rails or Sinatra..
>>
>>57025466
Thanks
>>
>>57026105

A problem is that there's a lot of jobs for _experienced_ RailsDevs. If you have no experience at all it's a little bit tougher to find a job. Not impossible, but most companies are looking for someone who manage their existing code, knows the (very rich) ecosystem of rails..

Just sayin..
>>
File: 5.jpg (225KB, 1200x903px) Image search: [Google]
5.jpg
225KB, 1200x903px
I have basic knowledge in HTML/CSS.
Is it possible to have an updating html page?
Like a page with text area, if I write something in it, it will change the actual html file?

I'm asking because I'd like to create a webpage and host it locally to share URLs between phone/tablet and laptop across network.
>>
>>57025132
>Imagemagick
That's what I was going to suggest but the PHP module.

Assuming that the module has the same security issues as the standalone, run it through some other image util first to convert it to a lossless format. Then open the lossless file in imagemagick inside php. It's pretty easy to work with and is quite powerful.
>>
>>57026105

Personally I find Ruby annoying to use because of how it plays fast and loose with syntax and evaluates everything as an expression, which fucks with my autismo brain.

Also, the thing about Rails is that because it's very easy to shit out a basic CRUD app, many of the jobs are for hipster startups that are usually terrible places to work. (They want you to work insane hours for little or no pay, the "we're not like other companies" bullshit, the company will most likely go under and you won't get paid, etc.)

It's also the language of choice for SJWs. If I see someone in a coffee shop on a macbook with Ruby/Rails stickers on it, I automatically assume they're blogging about something or other being """""problematic""""". Take that as you will.
>>
>>57002481
use salts
>>
>>57026304

>"PerlMonks" is a greate source of learning

Hah, I meant "Ruby monks", sorry..
>>
>>57026622

>it plays fast and loose with syntax and evaluates everything as an expression

Not trying to meme here, but if you have 1-2 weeks, take your time and read SICP (structure and interpretation of computer programms).

It teaches the Scheme language, but also programming general. Ruby is much closer to Scheme/LISP than for example Python, so this will definately make you a better Ruby programmer as well.

>because it's very easy to shit out a basic CRUD app, many of the jobs are for hipster startups

That's why many companies are explicitely looking for experienced RailsDevs, like I wrote here: >>57026508

I mean you can also make it as Beginner, but I think you have to show that you REALLY understand Rails and not only push some generator buttons..

>It's also the language of choice for SJWs.

So what?
Just because some people in the scene are ""problematic"" (i.e. SJWs, hipsters) doesnT' mean your Node buddys will be total bros or your React colleagues are super nice guys.

There are hipsters and idiots everywhere, but there are also good people out there.
>>
>>57025245
Thanks a lot senpai
>>
>>57026945
>read SICP
I actually own it but haven't had a chance to read it yet. I'll be sure to read it when I get a chance, though, thanks.

>So what?
The toxic victim-complex mentality seems to be a lot more prevalent in the Ruby community than others in my experience. I'd rather be judged on my coding ability than identity politics and how many -isms I have.
>>
File: 1448288925311.png (693KB, 1047x599px) Image search: [Google]
1448288925311.png
693KB, 1047x599px
>>57026546
Let me rephrase
I want to know if it is possible to use a basic html / javascript form to input data and then when the submit button is clicked the result is the creation of a new html document on the web server.
>>
>>57027319

You should definate read it.

I always thought it was a meme, but it is very well written and it's great fun to do the tasks.

I will probably never use Scheme, LISP or Clojure for work, but it was definately worth working with it. Also you can put it on your resumee as "basic knowledge in (...)".

:)

>>57027319

To me a cool language matters more than some stereotypes. There were a lot of trouble-starters in the ruby scene in the past but that was long ago.

Also if you are afraid of SJWs that much, just check out some companies that use Ruby among Java (or some other enterprise-level language), that should do the trick..
>>
>>57026546
>>57027387

It's possible but not without some additional logic on the server to write changes to the document.

In practice though, if you plan on being able to access it from the internet and not just on your local network, there is a lot more you need to do to secure everything. In that case it would probably be easier to use something like dropbox, google drive, ownCloud, etc (to share arbitrary files) or just your browser's builtin bookmark sync service (pretty sure most all major browsers have something like that).
>>
File: B73A8DF.jpg (337KB, 500x667px) Image search: [Google]
B73A8DF.jpg
337KB, 500x667px
Retard here, python is the only useful language I know, and I want to make a dynamic site. What's the best framework?
>>
>>57027387
If you write code to do it, you can do literally anything with user's submitted data, including creating new HTML pages or altering existing ones.

Waha's Kareha is an imageboard that does exactly this - no database, html pages contain actual data.

http://wakaba.c3.cx/s/web/wakaba_kareha

It's written in Perl. You can use any other language with CGI, you can also use PHP.

Now that your question is out of the way, please source.
>>
>>57027942
For python the most popular ones are Flask and Django.
Flask is a microframework that's good for REST APIs and other simple things like that (though you can make massive, complicated stuff with it too). Django is a full-featured MVC framework that's good if you want to make a large web app that does a lot of things.

There are also tons of other options for python and other languages, as well as SaaS options like Firebase, Serverless, etc. What's best for you will depend on what your requirements are.
>>
>>57028054
Sadly this doesn't answer my question.
And I couldn't find it in my favorites either.
Have this instead
https://exhentai.org/g/745934/bc5f9565fd/
>>
>>57028266
If your question is if it's possible to do this without using a server-side component, by only writing HTML+javascript for client's browser, then the answer is no.
>>
>>57028410
>without using a server-side component
Not exactly.
I wanted to host a site locally through python HTTP server module, the site would allow me to post text, then converted to hypertext links then save that as webpage that's also being hosted locally so sharing links would be possible.
I though since python can be used to host sites that support uploading files over http it would be possible.
>>
>>57028453
Of course that would be possible then, and quite simple too.

http://stackoverflow.com/questions/13146064/simple-python-webserver-to-save-file
>>
>>57027387
The answer is no.

Use AJAX to PHP to do it.
It takes <10 lines of PHP and that's all the PHP you would need to right.
>>
>>57028547
This would mean I have to install PHP.
I'd like to do this with python only if possible.
>>57028478
I've tried those nothing worked.

I've found a work around though,
https://github.com/wonjohnchoi/Simple-Python-File-Server-With-Browse-Upload-and-Authentication

I use this to upload a text with the wanted links, then use JS to phrase the links as URLs.
>>
I need to get the users location.

In the USA we can do City and State.
What do I do for other countries?
>>
>>57028704
You can AJAX to Python too.

You just use the .py as your URL instead of .php
>>
>>57028751
City and postcode works in most of europe, I'd say. Fuck the rest.
>>
File: 1450648137230.jpg (161KB, 800x600px) Image search: [Google]
1450648137230.jpg
161KB, 800x600px
>know Java and Python
>laid off from J2EE job
>want to try webdev
>so many fucking .js and other technologies
>don't even know where to start
H E L P
>>
>>57028962
I'm trying to create database entries based on their location to identify people.

I don't know what to do for every country besides the US, but for the US it's easier to enter city and state.

Using a zipcode is easier for the person making the account, but it would make others have to google the city to get the zipcode.

I'm lost and there are no solutions besides a decade old outdate JS app.
>>
File: idk.png (2KB, 290x176px) Image search: [Google]
idk.png
2KB, 290x176px
>>57029097
Forgot this.

Picture would be ideal with autofill
>>
>>57028988
https://www.youtube.com/watch?v=sBzRwzY7G-k
>>
File: 1432771606664.png (100KB, 342x245px) Image search: [Google]
1432771606664.png
100KB, 342x245px
Okay /g/, I know full stack web dev, but I am shit when it comes to graphic design. How do I make websites that don't look like shit?
>>
Best way to get JSON in 2016?

jQuery AJAX still or what?
>>
>>57029097
Location classification is hard because every country does things a little bit differently, boundaries between distinct places sometimes doesn't make sense, and often there are many places with the same name. One option might be to use something like the google places API to consume whatever the user supplies (manual entry, IP, or browser location API) and store it internally as latitude & longitude. Most SQL databases have really good geolocation support. Postgres in particular allows you to do complex queries on location data.
>>
>>57029438
Lat/Long changes when they update their data.

I can't do select from whatever where jsoncords = storedcords because they might not be the same the next year.

I would have to Haversine bounding boxes for error margin blah blah.

I'll just use zipcode/postalcode.
>>
File: m.jpg (23KB, 480x360px) Image search: [Google]
m.jpg
23KB, 480x360px
>that process of creating your database, altering the table, modifying datatypes, moving columns you fucked up, etc etc
>>
>>57029605
Fair enough, in most of the countries without a good postal system they're too busy beheading people and mining diamonds to use your dating app or whatever anyway so post code is probably fine.

You should still be able to use the places API to parse whatever the user enters and normalize it in the database with the city, state, country, etc. You could actually just store the google place-id directly, although you'd have to hit the API every time you want to look it up which would probably push you out of the free tier.
>>
>>57029920
What, are you using SQL from 2000? MySQL and SQL Server both allow you to move columns and alter datatypes from a designer.
>>
I need to build a portfolio, any suggestions on what websites to make?
>>
>>57029360
fetch
>>
I can't figure out how to fucking install LAravel on ubuntu

Everything is for MAC.

Have to type php composer.phar $HOME/.bash/laravel/installer new-project
when everyone else has to type laravel new-project

What is this fucking shitttinasdifpsf;[j1qomnfuck everything retarded bootleg framework
>>
Are there any open source p2p cdn solutions available?

Think of hath/hentai@home from exhentai/g.e-hentai.
>>
>>57030285
chat app
>>
>>57002481
You can hash them, but it's useless since brute forcing an IPv4 hash - even with a salt - needs only 2^32 tries to crack.
>>
>>57030420
I figured it out. Had to use a curl command from a DO tutorial because the composer website uses some retarded bullshit that doesn't set a global command.
>>
>>57030433
Great idea! Thanks anon
>>
>>57030518
lol


spicy spicy memeballs
>>
File: projgen.png (2MB, 3840x2160px) Image search: [Google]
projgen.png
2MB, 3840x2160px
>>57030518
some people need to be spoonfed...
>>
>>56997377
Im an idiot grunt in the military but im able to do boring repetive shit for 48 hours at a time and i can learn anything as long as i can translate it to plain english.

Is web dev for me? I ask because i have almost 4 months of wake up exercise do what i want for the rest of the day.
>>
>>57030963
>as long as i can translate it to plain english.

not sure web dev fits this criteria, to be honest...
>>
>>57030963
Maybe, maybe not.

They are completely unrelated.

I'm a web dev that got out in 2012.
>>
File: 1474091609468.jpg (19KB, 351x278px) Image search: [Google]
1474091609468.jpg
19KB, 351x278px
>>57030904

Holy shit man, not the one you quoted but thank-you very much.

Stupid question, tho. I'm new to the whole development stuff, just now I figured out what I want to do for a career, I want to focus on web. I've learned the fundamentals of programming in C. I'm already decent with HTML and CSS, now I'm learning javascript. Can I do all these challenges with javascript or should I pick another programming language for the web? Such as Python or GO, i dunno.

I want to build a fullstack web portfolio.
>>
>>57031174
Most of that is for system level programming, not web.
>>
>>57031174
you can do a bunch of these on javascript, specially the ones for beginners.

C is not for web, though if you've learned the language and the concepts it deploys, congrats, most of that can translate over to another language.

I'm using C# for web and other stuff, can't tell you about other langs but I'm happy with it. Snoop around, try a few different things, see what type of jobs are available in your area and what type of jobs you'd like to do.

General rule of thumbs: Java (not to be confused with javascript) and C# are used in big companies, corporate environment. The others are more indie/startup, more hipster environment.
>>
File: Web_Development.png (404KB, 2570x1898px) Image search: [Google]
Web_Development.png
404KB, 2570x1898px
>>57029288

Why not posting the image?

Also it should be clear that nobody learn ALL that stuff. It's more like the overview of the specific fields and people specialize in one or two branches.
>>
How come one needs to test a site on different browsers? Does it really change much between them? I'd love to see an example of a web that has elements that get crippled in certain ones, but not in others (talking about latest version of them).

>>57025563
Yeah, I've been reading on this now. Sort of settled on the X hours to master a skill mindset, but I guess it's just arbitrary anyway.
>>
>>57031437
what's the difference between Data>Relational: MySQL etc and Things to Learn>ORM/Data Structure?
>>
>>57031580

Object Relational Mapping (ORM) is an abstraction of databases, i.e. each object represents one record. Exaples are Hibernate (Java) or ActiveRecord (Ruby/Rails)..

>https://en.wikipedia.org/wiki/List_of_object-relational_mapping_software

Relational Databases are more about stuff like referential integrity, normalization and so on. And of course the syntax.

The MongoDB approach is a tad closer to ORM than plain SQL is, but it's still differnt.
>>
>>57031174
A few don't make sense to do in JS (the bootloader for example) but you could do most of them if we're including Node and not just browser JS. Some of the more computationally-intensive and systems-level ones would be better to do in a compiled language, though of course.

>should I pick another programming language for the web?
As a web developer in #CurrentYear, JS is actually the only programming language you definitely need to learn.

>>57031302
>General rule of thumbs: Java (not to be confused with javascript) and C# are used in big companies, corporate environment. The others are more indie/startup, more hipster environment.

That is ridiculous and completely false.

Java is hugely popular because of Android and because almost every CS student has to learn it.
Tons of indie games use C# because Unity.
Plenty of big companies use and even sponsor tons of newer languages.

>>57031448
>How come one needs to test a site on different browsers? Does it really change much between them?
It's less of an issue now, but IE fucked everything up for a long time. Edge is still behind Chrome and FF in a lot of areas.

>I'd love to see an example of a web that has elements that get crippled in certain ones, but not in others (talking about latest version of them).
http://caniuse.com/
>>
>>57031900
Sucks that there's still not that much of standard. Thanks for hte site.
>>
>>57031879

Or to put it like this:

ORM maps records/tables to objects. So you can say to the record "give me your first field".

(interface) ---"a.find_first()"---> (ORM-object) ---"use method find_first, return value"---> (interface)

A "normal" database sees records/tables as data and uses methods which operate ON this data.

(interface) ---"SELECT * (...)"---> (Table) ---"lookup entry in B-Tree"---> (interface)
>>
new thread when?
>>
>>57032980
When you fucking make one
>>
>>57033032
don't rush him, he's driving again
>>
>>57033460
>>57033460
>>57033460

Here it is, you lazy fucks
Thread posts: 319
Thread images: 32


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