[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/wdg/ - Web Dev. General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 31
File: wdg.png (747 KB, 824x553) Image search: [Google]
wdg.png
747 KB, 824x553
Last thread: >>54919777

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

> Discord
https://discord.gg/0qLTzz5potDFXfdT

>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 - "Crockford on JavaScript" 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/ (embed) (embed)
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/
>How to get started
https://www.youtube.com/watch?v=pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://www.youtube.com/watch?v=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
>>
I know python and PHP
>inb4 pajeet

what language should I learn next?
>>
>>54940645
you should unlearn PHP
>>
>>54940645
Go.
>>
>>54940645
javascript
>>
does a general for programmer art exist? vvvv processing oF and so on
>>
>>54940895
maybe I'll have more luck at /sci/?
>>
>>54940938
Try reddit
Unironically
>>
>>54940953
I've never even been to reddit, where the fuck would I even start? that website is from the 90s

I've been hoping to just drop a link for people to r8 don't h8
>>
>>54940645
haskell
>>
>>54940645
start by admitting to yourself you don't really know anything

next step is whatever you think is fun
>>
>>54940645
Perl
>>
>>54940953
>Try
>reddit
>Unironically
pick two
>>
Is there a way I can make a website set up another website if someone buys something from me
>>
>>54942116
wordpress?
>>
>>54942169
I suppose even if I've never used it before
>>
Is there a way to develop a site with an indicator of current people who are looking at the same indicator with an automatic interpretation of abstract art every 4 minutes?
>>
>>54942116
Yes with Javascript
>>
>>54942116
what are you talking about?|
>>
If I have a database on my workspace and a database on heroku, both with different entries since the one on heroku is live and I create a table on my workspace db, can I migrate the new table without fucking over the live data? It's pretty important because I've got all the users on the heroku db
>>
Anyone got any experience of embedding a twitch stream responsively with bootstrap?

Trying to make a site in time for evo where you can click the live streams on one side (or beneath if it's too small) and it'd have a universal chat under the list of streams.

The HTML5 player seems perfect... for ants. And the flash player requires dimensions before it will render.

Any ideas of where I should look?
>>
>>54943559
Can't help you out as I'm a new webdev but I just wanted a to say I'm looking forward to your site, friend
>>
>>54943341
This guys on my case about wanting this. Basically he has an online knick knack shop, and he wants it so that when you buy an item from his store online it sets up a seperate web page store for them for them to sell the item they bought on. Basically if every time you bought an item online it would be listed on an identical site for you to sell it on I suppose. I don't even know why he wants to go through all the trouble of doing that.

>>54942509
That was my first guess but I can't think of a way to apply it to the thing he wants
>>
I'm wanting to learn web development, preferably focusing on ruby on rails. Is it ok just to go in through HTML, CSS, Javascript, Ruby and then Ruby on Rails or is there anything else I'd need to learn before Ruby on Rails? What would you guys suggest as a pathway into it?
>>
Are you guys part of any communities besides /wdg/?
>>
File: 1310255089811.png (3 KB, 203x210) Image search: [Google]
1310255089811.png
3 KB, 203x210
is it possible to change the dropdown border for a button depending on id? like you have 3 buttons and all of them have different coloured borders in their dropwdown menus
>>
>>54943944
use the same css class for the three of them
>>
>I make a website! I know HTML and javashit!
>I am a software engineer too!
>>
>>54943961
well it is bootstrap so it involves js faggotry. Im not smart enough for that kind of dick chopping gayness
>>
File: 1453717042114.png (610 KB, 900x900) Image search: [Google]
1453717042114.png
610 KB, 900x900
>>54940626
>mfw reading TDD with Django book
Who knew testing could be fun?
>>
>>54940895
>general for programmer art exist?
Make one! I'd at least lurk it.

There used to be a general for algorithmically generated images for a while. While it won't be quite on topic there, >>>/vg/agdg and >>>/gd/ might help you judge the aesthetics. There is also >>>/vr/, which sometimes discusses glitch art.
>>
>>54940895
>>54934593
>>
>>54943819
Learn how TCP/IP and HTTP work between Ruby and RoR. Do a small application with Sinatra and Sequel.
>>
File: co.png (2 MB, 1150x1106) Image search: [Google]
co.png
2 MB, 1150x1106
Go and TypeScript are comfy as fuck.

Argue with me
>>
>>54944096
theres no argument. typescript really needs to have type files on npm though
>>
>>54944096
TypeScript is so much more expressive than Go.
>>
I used the "deploy a website" codecademy course to set up a sinple website for myself in Jekyll with Github Pages, and used AWS to buy a custom domain. I'd like to take advantage of my domain name to have a custom email address, and was wonderinf if I should use AWS's SES, google apps, or something else entirely. SES and google apps seem to be oriented (and priced) towards businesses and this email address will be purely personal (I'll be the only one using it), so a cheaper (or free) service would be nice.
>>
>>54944096
Go is a clusterfuck.

fite me
>>
File: test(2).png (74 KB, 1920x945) Image search: [Google]
test(2).png
74 KB, 1920x945
How does this look?
>>
>>54944635
Too much wasted space on one side. I'd add padding to both sides so the content doesn't stretch full width, kinda like Bootstrap's container class.
>>
>>54944765
The problem with that is that you eventually do get full width.

See this screenshot.
>>
>>54944796
Not that anon
Collapse everything into multiple rows, then. A fixed sized container would look better, in my opinion. Right now, it looks way too stretched.
>>
>>54944847
Okay, that actually looks a lot better.

Thanks!
>>
>>54945135
No problem anon.
Also, I recommend the book "Don’t Make Me Think, Revisited, 3rd Edition". It's 200-ish pages but really easy to read. You can 'buy' a copy at allitebooks
>>
>>54945303
I'll check it out.

Thanks!
>>
>>54942474
Websockets.
>>54943875
Yes.
>>54943988
Chop off bootstrap.
>>54944096
I agree.
>>
Can someone recommend me a book to learn some of the more intermediate/advanced concepts of CSS, like how to use floats correctly, how to go about design specific responsiveness, and how to code dank dropdowns. I know the basics of CSS but I have trouble with those concepts sometimes

I know I could just get bootstrap to do that stuff for me, but I want to learn to do it myself, besides It doesn't feel right right uploading a whole mess of thousands of lines of code just to use one dropdown
>>
>>54946556
>float
It's 2016, use flexbox
>responsiveness
media queries, percentage proportion and clever design
>>
>>54940976
https://www.reddit.com/r/ProgrammerArt/
https://www.reddit.com/r/proceduralgeneration/

How can people understand git and other terminal based tools... and then get bamboozled by Reddit's UX?
>>
>>54946556
A good tutorial for the main concepts of layouts is:
http://learnlayout.com/

>>54946586
Some of us still support older browsers. All my sites still work on IE8+
>>
>>54946586
sometimes I don't get why modern css uses all these abstractions like sass, hot reloading, and flexbox instead of the underlying html tables
>>
>>54946556
Learning how to use floats and media queries is pretty entry-level CSS.

If you want intermediate and advanced you can go to youtube and search for "css conf", then watch a bunch of hipsters, SJWs, and Pajeets give TED talks about the minutiae of CSS and how to draw SVGs.

I don't know of any books, because watching lectures and seminars better suits my learning style.
>>
File: b8.gif (1 MB, 400x254) Image search: [Google]
b8.gif
1 MB, 400x254
>>54946680
>instead of the underlying html tables
>>
>>54946680
Is this bait?
sass and hot reloading are just so development tools, why wouldn't you use them if they allow you to be more efficient
>comparing flexbox to html tables
Dude
>>
Are there any cheap laptops you would recommend for learning web dev on the go? Started a new job which I'd like to take a laptop with me to practice while I'm there and on my hour lunch.

Any thoughts?
>>
>>54947106
>>>/g/tpg/
>>
File: Selection_086.png (2 MB, 901x602) Image search: [Google]
Selection_086.png
2 MB, 901x602
Please tell me if I'm annoying you guys and I'll move over to the stupid questions thread. I haven't used Filezilla in years and I was using it with a different webhosting company. Just bought Leaseweb's package and I'm relearning this stuff.


Questions
To confirm, 'Host' is the public IP address of the server?

What username do they want me to put in? Can't find any reference to this.

What port number do I put in? Seem to remember port number being non-specific to different servers but actually being a general thing.


That's it really. Password is the only think I could find in the info provided using the terms 'host', 'username', 'password' and 'port'.
>>
>>54947187
Host is your VPS's IP address or a domain that points to it. Port can be left empty to use the default. Username and password are whatever leaseweb says they are, they should be provided on whatever page you use to manage the VPS on their website.

Also use google next time, we aren't your personal tech support.
>>
>>54947587
Ok that narrows it down to just username. SQT will take it from here because I can't find anything on username desu.

Thanks for clearing things up for me.
>>
>>54940671
underrated
>>
File: pajeetsupport.png (42 KB, 1067x68) Image search: [Google]
pajeetsupport.png
42 KB, 1067x68
>>54940626
Daily reminder that there are still devs doing this type of shit in 2016
>>
>>54947187
For username try anonymous and put something that look like a regex in password
>>
i took over a nopCommerce project that needs some fixing up. New to this MVC shit. It's an older version....will pay to whoever can help me out. Serious inquiries only.
>>
>>54947773
There is no fucking way that wasn't generated by some piece of code/software.
>>
`
>>
>>54948350
good luck m8
>>
Alright boys and girls, I have a question for the learned folks among you.

Should I go with meteor or a MEAN stack if I'm wanting to write a web based application?

I started on it for funsies, but a few small business owners around me have expressed interest in it. Just me and one other dude working on it right now, if that helps any with the decision. We're both in between jobs (see unemployed graduates) right now, so we've got nothing but time.
>>
I'm trying to remove the 'active' class from li. It works, but i can't seem to add the class to the list item I click. Why is that?

http://pastebin.com/w5ikfA1i
>>
>>54948974
>http://pastebin.com/w5ikfA1i
Use JSFiddle or something to show an actual test case.

Probably because you're adding the class to ".nav li a" which selects and adds the class to your <a>, not the <li> you probably want to re-add the class to.
>>
File: 1.png (17 KB, 719x181) Image search: [Google]
1.png
17 KB, 719x181
ok man
>>
>>54949040
It's probably not completely out of line for them to ask you too have SOME experience with CGI and have knowledge of database concepts.

Really all depends on how much experience they're asking for. If they're expecting full stack work, they better fucking pay full stack salary.
>>
>>54949010
>>54948974

https://jsfiddle.net/eb59hkLv/12/
>>
>>54949245
Not hard...
https://jsfiddle.net/eb59hkLv/13/
>>
I am creating an app that needs per-user storage. There is no inter-user communication, I just want to store some blobs for each user, but don't want to host them myself. I was thinking about using something like google drive or dropbox, but don't want my users locked into just one of those options, and am too lazy to write adapters for all.

Do you know if there is there some kind of JS or REST wrapper for multiple cloud storage services? Sort of a unified storage API?
>>
>>54948840
>MEAN
Just use a RDBMS. You'll regret mongo sooner than later, I guarantee it.
>>
What is the best way to learn TypeScript?
Can I learn it if I only know JavaScript (ES5)? Because I have trouble understanding things like interface. Should I learn a truly object-oriented language first? Is so which one?
>>
>>54948655
No man it was all done by hand. No some kind of code here.
>>
>>54949512
Does the same data have to be accessible from all logged in devices, or local storage is fine?

>>54948840
>meteor or a MEAN
Both are shit and cancer.

>>54949653
Learn ES6/7 and read the TS handbook up to Modules. Everything beyond is Javashit, that you should not be using.
>>
>>54949543
>RDBMS
So basically just don't fucking fall for the startup meme?

>>54950452
>Both are shit and cancer.
Care to elaborate?
>>
>>54950452
Do you have good resources for Es6? Where can I find the TS handbook?
>>
>>54950605
Both MEAN and Meteor rely on MongoDB, which has had unfixed write/read consistency problems for years, spitting out stale data back and forth. If you store anything of importance, don't use it. For actual reliable NoSQL (if you really need NoSQL) try RethinkDB, Riak or CouchDB.

>>54950620
http://lmgtfy.com/?q=es6
http://lmgtfy.com/?q=typescript
>>
>>54950792
I was asking for resources that you recommend and find useful, not what comes on top of Google, but t-thanks
>>
File: 1465010295211.gif (2 MB, 433x433) Image search: [Google]
1465010295211.gif
2 MB, 433x433
Who the fuck wrote Eloquent JS? This shit is so hard to read.
>>
I hate this field. I hate it so much.
>>
>>54941771
Been thinking of trying Perl out. Any good books I could learn from?
>>
Why is ASP.NET never discussed in these threads?
>>
>>54951265
Might as well COBOL while you're at it.
>>
Will be starting this in the spring. Is it worth it?

https://www.wctc.edu/programs-and-courses/applied-technologies/web-digital-media-design/index.php
>>
How do you guys use recursion on your day to day scripts?
>>
>>54951528
Sorry, this is going to sound really stupid but what the fuck is ASP.net?

Is it a web framework for C#? How does that even work?
>>
>>54951528
Non-free and Windows only
>>
>>54951827
>non free
TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS TRIGGERS
>>
>>54940645

JavaScript
>>
File: 1462326647669.jpg (106 KB, 693x767) Image search: [Google]
1462326647669.jpg
106 KB, 693x767
>>54951528
>.aspx
>>
what benefit do you get from using firebug over just the regular firefox console?
>>
Explain in a short paragraph why /wdg/ thread is infinitely better than /dpt/
>>
>>54940895
Make one, make sure to link to resources, guide and beginner tutorials
>>
>>54952341
No traps.
>>
>>54952341
Most of us are actually employed
Less cancer
Less autism
>>
I defined the image to have dashed border and 200px in size and the text 20px.

Firefox's 20px seems to be smaller than Chrome's 20px and Firefox doesnt even put the dashed border.

Help
>>
>>54952512
Try both ways of setting it to dashed and see either of them works in both:
border-style: dashed;

border: 1px dashed blue;
>>
>>54952672

Still doesn't work. Seems like it is a bug with Firefox.
https://bugzilla.mozilla.org/show_bug.cgi?id=382721
>>
how can i append to the kth delimiter space in a table's row?

i.e. say i want to put in some value into the 5th cell of a row -- how would i do that in jquery?
>>
>>54952718
Weird how there's no cross-browser fix for that. For example, with border radius

    -webkit-box-shadow: 0px 0px 15px 0px rgba(179,179,179,1);
-moz-box-shadow: 0px 0px 15px 0px rgba(179,179,179,1);
box-shadow: 0px 0px 15px 0px rgba(179,179,179,1);


would work in all browsers by defining them separately. Oh well.
>>
>>54952785
*box-shadow, not border radius. Although that has a fix too.
>>
I'm starting to make a website for fun. How can I make an html form with the content of the page inside a textarea and with a button for saving edits? This seems fairly trivial for somebody who knows the basics of PHP and will be very handy for me.
>>
File: 1464153569243.jpg (10 KB, 229x216) Image search: [Google]
1464153569243.jpg
10 KB, 229x216
>>54940626
Django app works well with dev, fails silently in production on elastic bean stack. No 500 errors but user login doesn't work and parts that require authentication seem to just send user back to home page.

Any ideas on debugging to figure out whats going wrong?
>>
>>54952825
http://codepen.io/Shokeen/pen/XXggZr
>>
>>54952878
without PHP how the site can know that I need to save the change? I don't understand.
>>
How big should a web page be?
>>
>>54940645

It should be 6"x8"x24" give or take a few pajeets
>>
>>54952999
I mean putting the source code of the current page inside a textarea with a button for saving.
>>
>>54952927
You'll need to learn AJAX (you can learn it the hard way by doing it in plan JS, or you can use jQuery's ajax function which I recommend you do).
With AJAX all you're doing is passing some data to and from the back end, in your case, a php script.

var username = $("#regUsername").val();
var pass = $("#pass").val();

data = new FormData();
data.append('username', username);
data.append('pass', pass);

$.ajax({
url: "includes/processors/login.php",
data: data,
processData: false,
contentType: false,
type: "POST",
success: function(result){
if(result == "Success"){
var msg = '<i class="fa fa-check"></i> Your account has been created.';
UIkit.notify({
message : msg,
status : 'success',
timeout : 5000,
pos : 'top-center'
});
$('#loginForm')[0].reset();
window.location('index.php');
}
}
});


There are other ways of doing it tho
http://www.w3schools.com/jquery/jquery_ref_ajax.asp

That's just a basic example. Get the values from the form, append them, send them to the backend .php file for processing, then handle the result.
>>
>>54953036
I meant how many kilobytes
>>
>>54953095
Or you could just use the Fetch API
const data = new FormData()
data.append('username', username)
data.append('pass', pass)

const res = await fetch("includes/processors/login.php", {
data,
method: "POST"
})
console.log(await res.text())
>>
Is there any language with a framework that doesn't require a fuckton of scaffolding to work?

Even django seems like a bitch to set up. I know most stuff out there but I am not a web dev.
>>
File: 1408.gif (2 MB, 288x288) Image search: [Google]
1408.gif
2 MB, 288x288
>>54953287
So the result gets returned to the constant res?

Also, where are your semicolons you absolute madman.
>>
>>54953421
res stores the Response object from submitting the request. res.text() then parses the Response as text asynchronously and is logged to console.

Semicolons are optional in 99.9% of cases. When you really need one, put it at the start of the offending line.
>>
>>54953534
>Semicolons are optional in 99.9% of cases
Are we still talking about Javascript here?
>>
>>54953569
Yes. The ASI has only 3 rules. Not hard to see, when you will need an explicit semicolon.
>>
>tfw your news portal design is starting to look more and more like the others

I've been designing 2 unique pages on and off for 3 months now ffs. I redid designs, like, 7 times already.

I thought I was good at design, but now I feel like a piece of shit. I tried to be a contrarian but things just don't work and look right.

The best part is that I autistically keep coding up every version instead of just doing it in photoshop, but at least I can test usability immediately.

Why THE FUCK am I so slow with this? I'm making a custom wordpress template so basically, 5% of the time went to coding and adding small custom php scripts here and there and 95% of the time spent on a design. Well i guess it's normal for this kind of website, idk.

I surely hope I learned something from this process.
>>
in JS how can i sort the string keys of an array in some arbitrary order that i want?

e.g. {A["bike"], A["zoo"], A["yellow"]} into {A["yellow"], A["zoo"], A["bike"]}
>>
>>54954063
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
>>
>>54954563

so I have find find this code:

<?php
$file = "pages/file.txt";
if(isset($_POST))
{
$postedHTML = $_POST['html']; // You want to make this more secure!
file_put_contents($file, $postedHTML);
}
?>
<form action="" method="post">
<?php
$content = file_get_contents($file);
echo "<textarea name='html'>" . htmlspecialchars($content) . "</textarea>";
?>
<input type="submit" value="Edit page" />
</form>


But when I click to "submit" it isn't writing the file. I don't understand PHP can somebody help me?
>>
>>54954586
whats the pvrpose of this code? He concats post results into a file??
>>
>>54954633
It's just for editing file.txt
>>
>>54954639
whats the //make it more secure" remark all about? the only thing I can think of is sanitize the html field, what else?
>>
>>54954656
I don't know anything about PHP. Do you know how to edit a file with an html form with PHP? That's the only thing I have find... And that open the file but don't save it.
>>
>>54954676
help?
>>
>>54954858
>>54954676
we dont help phpshitters here
>>
>>54954875
please stop throw up memes like you have no substance it's embarrassing
>>
>>54955056
Spoken like a true pajeet
>>
>>54955056
kys faggot
>>
>>54955087
I'm Russian but if you don't want to help that is ok I will ask another time
>>
How can I make a VPN IRC bot with PHP?

Maybe node?

I know both, but I know very little about IRC or using a VPN through them.
>>
Is it possible to use Flask for a big web project like Facebook? Will it be able to handle?
>>
File: GUvW23N.png (77 KB, 694x801) Image search: [Google]
GUvW23N.png
77 KB, 694x801
Guys I live in a third world shithole and I need to make at least $5 a day in order to get out of said shithole in about a year. I'm an OK programmer/developer but my experience in freelancing is limited to some guy who needed help learning OOP once and paid me $30.

So, I guess my question is wat do? Fiverr and Upwork are competitive as fuck and I don't know where to look for companies willing to outsource their codemonkey jobs and pay me with peanuts.
>>
>>54954676
seems good to me, might want to run strip tags on it to remove possible javascript code

http://php.net/manual/en/function.strip-tags.php

>>54955368
maybe you should use django for such things, since it already includes many of the features you'll need
>>
>>54955380
lol, wdg despises people like you. you drive the wages for webdevs to ridicuosly low levels.

also, where you going to once you have the money?? Sweden? Germany?
>>
>>54955368
no problem
>>54955383
why django? it just cucks you into using specific things whereas flask gives you freedom
>>
>>54955380
we dont want any of your kind here, kys faggot
>>
>>54955416
whichever country has the most handouts
>>
>>54955416
I hate me too, but if your minimum wage was $15 a month, you'd be doing shit like that too.
>Sweden? Germany?
I would never be able to afford living in those places, nor do I speak their languages, so don't worry about me fucking up the white genepool or taking yer jobs.

>>54955468
>>54955502
no
>>
>>54955383
No I'm just asking theoretically. If you had a project you started with Flask then it grew in popularity will it be able to handle it if you had say, billions of users?
>>
>>54950452
Data needs to be accessible by all logged in devices (same user).
>>
>>54950605
>So basically just don't fucking fall for the startup meme?
It's not about startups or about dev methodologies. Yes, using mongo or another k-v store might make initial development marginally faster, but you'll feel the impact (on maintainance effort and performance) of having to reinvent joins in a matter of months.

People are way too afraid of schemas and of having to alter them. With decent deployment procedures (or even better, CI), it is not an issue.
>>
>>54955380
Are you studying (anything, not necessarly CS or even university level)? I was more or less in your situation and participated in GSoC a few times. Nice income, lots of experience, OSS portfolio and some contacts.

That made it far easier to freelance for a few years.

I still live in the same shithole, but now I own a company and employ other third world people for minimum wage. I am even considering moving to an even poorer country and never having to work again.
>>
Anyone know Python? I want to make Twitch bots.

I can do an account creation system with VB.NET to mass produce accounts. I can do all the PHP/JS. The one thing I can't do at the moment is use a VPN to log IRC users in through Python. If you can do that then I can get some money flowing in. Let me know.
>>
>>54955516
I was hoping you'd go there, I hate those fucking countries.

>>54955551
you would probably have to use mongodb or some other noSql databse for horizontal scaling. I'd probably guess it could, but what do I know. I just played around with django for some time, never even used flask.
>>
If I want a domain which is something like supermail.com, but it's only available .eu and .me

Then it's better to go with supermail.me right?
>>
File: 2016-06-07.png (568 KB, 1366x768) Image search: [Google]
2016-06-07.png
568 KB, 1366x768
Hey all,

Bit of a webdev newbie here. How do I go about extending the height of my divs in the picture to be the height of the [document](Not sure if that's the right word, would it be the inside of my window? As isn't the twitch stream technically the end of my document?) minus the height of the bottom navbar? Would like to use all of that space with the right columns, which are currently set to being the height of the adjacent stream div divided by 2.

Sorry for any misuse of the lingo. Still fairly new to webdeving.
>>
>>54940626
w3schools is good now?
>>
File: js.jpg (38 KB, 430x285) Image search: [Google]
js.jpg
38 KB, 430x285
tell me /wdg/ is js today still sexy on websites? I mean there are so much fgts with noscript etc.
I have awebsite with some js apllication, but what is the sense when more than 25% of the viewer have some anti-js applications running?
>>
If a wordpress theme is being sold but uses the GNU General Public License, does that mean i can just download it and not pay? Im confused about them having a price tag on it but also releasing it with that license, seems contradictory...
>>
>>54957395
I'm not familiar with specific licenses, but without a license it would be protected by copyright. And you wouldn't be able to use it at all.
>>
>>54957319
I'm pretty sure almost everyone uses javascript and disabling it isn't popular outside of linux circles, but it's good practise to make sure your site can run without it. But most popular sites don't run properly without javascript.
>>
Are there any industry standard ways to deploy stuff (nodejs server code or random utility tools/daemons) to multiple servers? In the past I've just used a custom python script + rsync, but maybe there are better ways?

also are there any best practices for updating server processes without disconnecting users? (for instance, I have some process that handles user uploads which could take many minutes)

or maybe the better option is to make the client side JS handle this reliably, chunk uploads and allow disconnects and resuming.

>>54957395
it might mean it infects any stuff of yours with the same license. So you couldn't legally use it unless you GPL your entire website??. (not certain tho)
>>
>>54955368
You can use any language. It all depends on how much you hate yourself and how many servers are you willing to throw at any scaling problems.

>>54955959
In that case, best use some simple cloud database solution. I can't recommend you any, I just know they exist. Personally, I would just setup up a cheap $5/month VPS and write a quick JSON backend.
>>
>>54957319
>25%
Not even 25% of /g/ do that. Fuck the tin foils senpai. Who cares?
>>
>>54957430
>Are there any industry standard ways to deploy stuff (nodejs server code or random utility tools/daemons) to multiple servers?
There are, but all are over-engineered and a bitch to learn. Best stick to scripts or use a private git repo for deployment.

>also are there any best practices for updating server processes without disconnecting users?
Put a load balancer in front. When you need to restart, spin up your new backend instance and tell the load balancer to stop sending new request to the old one. When the old instance wraps up, shut it down.
>>
Is it worth it to learn RoR?
>>
>>54957874
For money - yes. For personal projects there are better solutions.
>>
File: 1464065398895.jpg (1 MB, 1400x2100) Image search: [Google]
1464065398895.jpg
1 MB, 1400x2100
>>54957934
like what?
>>
>>54957944
Go, C#, Node, Elixir.
>>
Can I use a closed source library on my open source Adobe AIR native app without paying for a cloud based IDE JetBrains workstation?
>>
I just finished Track #2 on Bento.io, should I continue?
>>
>>54958193
waste of time, actually make something
>>
>>54958236
Like what?
>>
>>54958263
use ur imagination
>>
>>54957395
just copy the css/js and minify it. no fucking court in the word would convince you because of copying a stylesheet
>>
File: 1463503928623.jpg (49 KB, 500x667) Image search: [Google]
1463503928623.jpg
49 KB, 500x667
Don't know where to ask this, but would anyone happen to know where I could potentially sell stolen source codes etc? I've recently gotten access to a few relatively large companies private githubs and have a few source codes including private game engines, security systems and what I believe is a CMS of some kind, that I can't find anything about online.

Since this is wdg, I assume at least some of you should know sites where I could do this.
>>
Have been out of the web dev loop for a long time, what's better these days for an SQL database? MySQL or PostgreSQL?
>>
>>54958551
the police station jamal
>>
>>54958551
how about don't sell stolen information?
>>
File: ohyeah.jpg (14 KB, 268x188) Image search: [Google]
ohyeah.jpg
14 KB, 268x188
>>54958551
>>
>>54958551
use a script to rename the variables and claim its your own code, just like google does
>>
>>54958551
Most likely on the Tor Network, you can probably find some sites on the clear web, but most likely very few serious things.
>>
File: hang.jpg (817 KB, 608x1070) Image search: [Google]
hang.jpg
817 KB, 608x1070
>>54958551
>>
>>54955239
>>54956137
Nigga stop trying to spam some streamers chat. And why are you using a VPN for tons of bots. Wouldn't they all have the same ip?
>>
How do you pronounce PostgreSQL?


Serious question.
>>
>>54958572
Postgres.
>>54958786
Post-gres-Q-L
>>
How do I learn Javascript?
>>
What kind of projects should I put on my portfolio?

I would appreciate very specific examples.
>>
>>54959178
Check the OP
>>
>>54959405
I did the HTML and CSS code on codecademy.. I learned a lot but never again that site.
>>
>>54957395
Read the license.

As long as you attribute it properly, you're good to go. It's like how redhat lets people pay for their products, but any chucklefuck can download their product if they're so inclined.

It's just easier to pay, and for some people, that's worth it.
>>
Feeling like a Pajeet after not being able to do a coordinate click on a canvas with Javascript for 2 days, switching to YUI and getting it done instantly.
>>
>>54958551
Post a sample anon
>>
>>54953391
You could try sails.js It's built on node+express and it's insanely fast to set up projects
>>
File: Screenshot_15.png (69 KB, 722x845) Image search: [Google]
Screenshot_15.png
69 KB, 722x845
>>54959690
The only one I'm really willing to publicly share right now is a WoW bot called TheNoobBot which has around 61k users according to their site. Doubt game cheats are really worth more than a few hundred dollars at most, so might post it on some cheating forum in a couple weeks from now after removing the authentication.

Pic is one of many sources in their repository.
>>
>>54959901
zip it and post it here
>>
First time trying to do AJAX.

All I want to do, is to reload a specific div every time the page is resized. I can do this with one line of code if I just refreshed the whole page, but that sounds like it can cause a lot of issues down the line.

$(window).resize(function(){
$("#twitchStream").empty();
options.width = $("#twitchStream").width();
options.height = options.width * (9 / 16);
$("#twitchStream").load("index.html #twitchStream");
})


Where am I going wrong with this?
>>
>>54959901
no one gives a shit
>>
>>54959487
JS the Good Parts and Eloquent JS. Then read up on ES6/7.
>>
>>54960069
You should never do this. What you're trying to do should be done with CSS.
First of all, the "resize" event is fired every time the window size changes slightly, so if someone were to click and drag the edges of their browser window for a few seconds it would load the page hundreds of times.
You also seem to think that adding #hashtag at the end of a URL only loads that part of the page which is not true, so you'll be loading the entire page into the #twitchStream element every time.
>>
>>54960468
Eloquent JS is friendly for beginners? Already have some programming experience though
>>
>>54960473

That'd explain the Fibonacci esque slowdowns I was getting when it was essentially recursing the whole page. Any idea if iframes would be a better idea? As I've just found their html5 player
>>
>>54961146
Can you post the entire source? I don't see what you're trying to do.
>>
>>54961203

Away from the PC at the moment, but you should be able to see everything on evostreamhosting.github.io

No bully! I know it has beginner mistakes everywhere
>>
>>54961277
>evostreamhosting.github.io
404. There are no files in that repo.
I checked the commits though and I'm confused. Why are you trying to resize the stream whenever the page is resized if it always stays the same size anyway?
It doesn't matter if you want it to have a fixed size or change depending on the page size, both can be done with pure CSS.
Also, remove bootstrap if you don't need it at all.
>>
If i want to see the changes i made instantly what should? what about different browsers? is there anything that shows me how it would look like in different browsers?
>>
What do you guys like in news portals? I'm building one for movies and you might tell me something I didn't think about.

Do you have your favorites? I'm spending so much time on a UI it's not even funny. But what functionality, that is maybe not so popular, would you like to see?
>>
What does /g/ think of React + Redux?
Anybody tried Cycle.js or RxJS?

>inb4 hipster shit
>>
File: pleasehelp.jpg (126 KB, 1133x979) Image search: [Google]
pleasehelp.jpg
126 KB, 1133x979
>>54940626
been a good minute since i've posted here, and yall are twice as fast as stack overflow

can someone tell me what in the fuck i'm doing wrong?

I've pretty much used the same code in a couple other functions, yet this cunt wont save for some magical reason.
>>
>>54962022
Use it. React + redux is the sanest stack currently available.
Cycle.js seems nice, but it looks like any recent js framework based on virtual dom. You don't know if it will still be active 10 month from now, and lacks all the community around it
Rx{lang} are just helpers for state management, I fail to see where they would be helpful when redux already does everything you need
>>
Anyone know why Appchan fucks up sidebar mascot images?
>>
>>54962148
you should fix the syntax error bro
>>
>>54962148
backticks? shouldn't it be
'eid'
instead of `eid`?
>>
I am creating a website for my small business. Lets say its about 10 pages, on the home page, would you put shit like a small contact box and map, as well as contact info if you have a dedicated contact page.

I guess the argument is making the info readily available on page 1 vs having a nicer less cluttered cover page.
>>
>>54961372

I was trying to do some mobile first shit with scaling. Weird that it's broke, must have fucked up my git somehow. Still got it locally though
>>
>>54962540

What's a good book for CSS without resorting to bootstrap.
>>
>>54962507
thats how variables get called into the function

even if i declare a hard string like "durrr" it still gives me the same error

its boggling my fucking mind
fuck sql

i have a script that doesnt nearly the same fucking thing and it works just fine
>>
>>54962617
>i have a script that doesnt nearly the same fucking thing and it works just fine
post it then?
>>
>>54962512
>10 pages
>having all the info you need on one page

Are you being paid by the page?
>>
File: fuckmyshitupfam.jpg (206 KB, 1689x994) Image search: [Google]
fuckmyshitupfam.jpg
206 KB, 1689x994
>>54962623
durr

left wont work

right works fine
>>
>>54962637

Its for my company, I just want to know what is considered best for the customer.
>>
>>54962659
ah ha this works

i must have fucked up a join not paying attention

BEGIN
SELECT


#BUSINESS RELATED
t1.employeeID,
t1.businessID


FROM
t_businesspermissions AS t1

WHERE
t1.employeeID = `eid` ;

END



i really hate working with SQL
>>
>>54962659
I'm no SQL expert but it might be because the left one has a LEFT JOIN without ON
>>
>>54948655
its literally modernizr
>>
>>54962704
as i read this i found it

jesus fucking hell fresh eyes are never a bad thing
>>
>>54962211
Besides, Cycle.js author is an asshole, just check his twitter and articles.

At least contra (the author of gulp) was an asshole but a cool asshole.
>>
>>54962675
If you're basically making an online business card then yeah it'd be good to have a contact form and map on the landing page. It also won't be cluttered if you're doing it right, by which I mean responsive.

But it doesn't matter, the cost of iteration and changing it later is effectively nothing. Just make something and see how it goes.
>>
>>54957319
Noscript usage is in the low single digits, where the fuck did you get 25% from?

You should design sites to function without Javascript though, because everyone has Javascript off while the page is loading. People who infest the web with fucking stupid bloated javascript-rendered SPAs using a meme framework should all drink bleach.
>>
Which one will get me a job faster, RoR or Django?
>>
>>54963140
PHP probably.

Why don't you look at your local job listings and see?

Or, rather than being a Pajeet, you could learn something that you're actually interested in, and which you like and have some passion for, and then get a job with that.

I learned Node.js because I started "programming" in 2003 making shitty flash games in Actionscript. Javascript is comfy for me because its very similar. Literally all the jobs in my area were PHP and ASP.NET... And yet I ended up with a Node.js job that I like anyway.
>>
>>54963246
I can't eat passion anon. I got kicked out for being gay and now I'm living in my bfs place, but it wont be long before we both get kicked out too. I need to get a job asap.
>>
>>54951196
the first chapters are ok. then the guy turns up the oven temp from casually cooking scones to jew-burning temperatures. I would recommend avoiding it.
>>
>>54957319
I do block JS on all sites, but I remember reading an article that analyzed some data, and concluded that barely 1% of their users blocked JS, and another 1% that didn't run JS was either bots or client-side issues
>>
>>54960468
I would replace EloquentJS with You Don't Know JS.
>>
>>54963313
Its not my fault you chose to be gay.

Go work retail, flip burgers or wait tables like everyone else who needs a job quickly. If you think you're going to learn RoR or Django over the weekend and walk into $50,000 starting salary you've got your head up your ass.
>>
I'm meeting the head developer for a small company that I want to work at for lunch. Wat do? We're not meeting as friends since we exchanged like 3 messages prior to this and they're all about work/their openings but it's still informal..

I don't want to sperg and fuck it up
>>
>>54963513
>you chose to be gay
out b4 nature vs nurture debate
>>
>>54963544
Business casual and be somewhat up to date on what has been happening in the world for conversation starters. Come up with an interesting hobby as well and you know, go over what you've done in past projects.
>>
>>54963544
Stop caring. The worst that can happen is you stay unemployed, which is what you're doing now.

Also jus b urself :^)
>>
>>54963544
The fact that they're meeting you for lunch instead of in an office probably means they like what they see (in terms of your qualifications for the job), but they want to know more about you as a person. Try not to be awkward as fuck.
>>
File: 1400983901493.png (33 KB, 969x308) Image search: [Google]
1400983901493.png
33 KB, 969x308
>>54963570
>>54963589
>>54963625
Ok. That's what I keep telling myself. I'm honestly scared that he'll bust out some algorithm question or something in the middle of a meal, I'll blow it, then we'll have an awkward rest of the meal together. I'm definitely a programmer/problem solver rather than a computer scientist.
>>
Where's a good place for free webhosting? Something similar to github pages, but not them.
>>
>>54963695
if it's a webdev thing, they'll probably ask for things about webdev, backend/frontend/etc, and (very) basic programming/language knowledge.
>>
Is there something like Electron but for Python?
>>
I tried to read Eloquent Javascript last year and it got too hard after a few chapters.
But now I went through FreeCodeCamp Javascript challenges and I feel more confident to give it a shot again. Will I be able to read it this time?
>>
>>54940626
Knowing C++ (and working in the industry for almost 6 months) as well as Java and OOP stuff, is it easy to get into /wdg/ as front end or full stack dev with MEAN ?

As programming paradigms, algorithms etc goes, I'm okish but I never bothered with learning js and all the sub js stuff.

How much time will it take to learn enough so I can be employable (the reason is, in the area where I live a C++ programmer is paid less than a front end or full stack web developer).

Any good books to read ( for not complete newbie) ?
>>
>>54963741
openshift, free. read the docs or some tutorial before doing anything, though
>>
>>54963786
PyQT
>>
>>54963869
That's just a GUI framework, or am I missing something?
>>
>>54963902
No, there's no tool that allows you to program in a webkit + node.js environment in Python

??
>>
>>54963923
I just want to write a Python desktop app and have the UI in HTML.
>>
>>54963854

Cheers!
>>
>>54960473
>What you're trying to do should be done with CSS.

Right, so I just got back home... HOW FUCKING POWERFUL IS CSS?

Fucks sake, codecademy just plays it off as this way to make shit look pretty. It, along with iframe are now doing exactly what I wanted them to do.

Thank you so much anon for prodding me on the right path. Now to strip out all of that pointless js code I was trying to use to get this to work.
>>
>>54963987
I knew this shit would be useful someday
>https://github.com/dddomodossola/remi
>>
>>54963987
>>54964111
Better yet, check this section from the same github
>https://github.com/dddomodossola/remi#standalone-execution
>>
>>54963987
There might be some way to interact with webkit.
>>
>>54964149
>>54964153
I'll look into it, thanks!
>>
Anyone know of any FOSS html5 chat integration? I want something that doesn't require registration and *just werks* without any fucking ads.
>>
>>54964232
Found you some more links
>http://amol-mandhane.github.io/htmlPy/
>https://www.reddit.com/r/Python/comments/3u789b/htmlcssjs_gui_for_desktop_app/
>>
as a programmer, I can't even become a webdev, because I'm a lazy fag and I'm waiting for some guidance/to be taught what is needed (the most basic stuff outside the langs themselves) instead of learning by myself.
meanwhile, other bullshitters get jobs easily.

should I kill myself?
>>
>>54963544
Just remember he's judging everything about you, all the time. The way you talk, if you stutter, how you eat,what you wear, and what you're talking about.
Thread replies: 255
Thread images: 31

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.