[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 Development 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: 23
File: wdg.png (868 KB, 822x552) Image search: [Google]
wdg.png
868 KB, 822x552
Cold Fusion Edition.

Old Thread >>52868693

>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/

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks

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

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/
>>
I'm working on something for this company and they want me to touch up the side bar nav on this little rails app, even though I've told them I don't know anything about rails. In the app users can create pages and they get their own url ( ex /pages/wow.html), obviously.

How can I link to those user created pages on the nav? I don't see and kind of database in the db folder and have no clue how to go about finding the filepath for user generated pages. Ughh
>>
>>52894759
I don't know RoR, but what does the code say? There should be some obvious link somewhere in a controller.
>>
Any niggers want to work on a site that helps people find projects to collaborate on? Whether that be paid, open source, create a startup?
>>
>>52893964
>how do you make a bootstrap theme? DO you use bootstrap as a basis and then modify it
Yeah, that's pretty much what I'm doing.

>and is it for wordpress?
Nope. I don't know how to make WP themes as yet.
>>
Dont know RoR but its pretty simple; look up url building and for/loop statements for whatever templating agent RoR uses.

>user submits nav name
>sends post request
>have function in the url route that writes it to a list
>in template have the for loop iterate through the list
>use url_for or whatever the equivalent is for the href="" bit that just calls that same list item
>>
>>52894822
I'm on a big project, but I'm interested. Language?
>>
>>52894822
>>52894861
Also interested.
>>
>some dick in UK has your domain for the 8th year in a row with nothing on it.

>won't sell it to you

I fucking hate people like this. Literally perfect domain name and he's sitting on it for no fucking reason.
>>
File: fucker.png (9 KB, 590x316) Image search: [Google]
fucker.png
9 KB, 590x316
Fucking dick.
>>
>>52894861
>>52894870
I was thinking Meteor to get something working quickly
>>
>>52894946
>quick
It's not quick sitting there and writing scrubbers for every possible JS inject.
>>
The lack of domain names is ruining my website. I can't brand.

If it doesn't sound good when Cara Delevingne says it then I can't use it.

Fuck.
>>
/wdg/ chat

https://telegram.me/gwebdev

this way you can use it on your macbook pro TM and iphone 6s TM

no bootstrap or php faggots allowed
>>
>>52895054

everything sounds good when cara says it

and stop making excuses I own a shit tonne of amazing domains, coming up with them is incredibly easy especially with all of the new tld's being released daily
>>
>>52895072
>especially with all of the new tld's being released daily
Yeah, no. I want normies. If it's not a dotcom then it's useless.
>>
>>52894798
http://i.imgur.com/Dq9xHmW.png?1

This is the relevant code in the controller. Any clue?
>>
>>52895082

>2016
>not own a .io domain
>not listing your title as CEO of your 1 person startup
>not coding on a brand new mbp 15" i7 retina display TM (C)

its just works you stupid faggot
>>
>>52895100
No idea. I never knew RoR was this odd looking.
>>
>>52894973
What language do you suggest?
>>
>>52895225
Welcome to the wonderful world of working on other people's codebase
>>
File: how.jpg (44 KB, 1024x1024) Image search: [Google]
how.jpg
44 KB, 1024x1024
I just need to link_to that path in this li tag

How? Can anyone point me in the right direction?
>>
>>52894928
Yeah, what a jerk. Make him a flat offer and walk away, he probably is just pumping your for money.
>>
>>52895056
is it an IRC channel? If so just give us the server/channel. If not fuck off.
>>
>>52895313
I believe it should resemble:
<%= link_to "delete", image, method: :delete, data: { confirm: "nuke image?" } %>
>>
>>52895248
Meteor isn't a language. Honestly it's hard to think of a setup with more insane defaults. If you're using JS already node/express are a pretty common sense combo
>>
>>52895426
I need something closer to

<%= link_to "images", '/pages/:page_key/images/' } %>

I need to click the link and be taken to /pages/(user generated page/images.

How? Do I need to create an entire new layout for this?
>>
>>52895427
Fuck it I'll make it in Go
>>
>>52895056
I think I'm literally retarded. I joined the group and It won't let me chat. How the fuck do you use it?
>>
>>52895256
so they want a link to every user generated page in the database?

you would go to view file for the nav "end in .html.erb" and add this code where you want to run the loop

<% @pages.each do |page| %>
<%= link_to "Pages", page %>
<% end %>


Or something along those lines.

That's all assuming the rest of the site is set up correctly already.
>>
>>52895706
that should be

link_to "Page"


instead of "Pages"
>>
>>52895406

no grampa its an chat app like whatsapp
>>
>>52895587

you have to download the app and connect on your phone or download the app
>>
>>52895835
I did. That's why I'm confused. It only gave me the option to mute and unmute. Literally, just that.
>>
>>52895867

take a screen shot
>>
>>52895867
Same here
>>
File: ????.jpg (53 KB, 900x500) Image search: [Google]
????.jpg
53 KB, 900x500
When you click the pages link, it takes you to a page with all the recent pages listed (1). The url for this is /pages/. When you click on one of the recently created pages it takes you to the url /pages/(id)/. When you're on that specific url, I need the nested images link in the side bar direct you to /pages/id/images (2).

How tho?
>>
File: Screenshot_2016-02-09-22-21-47.jpg (1 MB, 1440x2560) Image search: [Google]
Screenshot_2016-02-09-22-21-47.jpg
1 MB, 1440x2560
Shit is broken
>>
>>52895056
>https://telegram.me/gwebdev

Why don't we just create a /wdg/ discord server, just like all the normal cool kids?

I would do it but I don't want to manage it, I already have one server to keep an eye on.
>>
I've been playing with Drupal 7 menu_tree_page_data function but how do I know if the menu is disabled

Anyone whos working with drupal here?
>>
>>52895816
yeah, uhh, I'll pass in that case.

I would actually idle in a #wdg and answer questions or fling shit about why bootstrap isn't nearly as bad as people make it out to be. It's just that when I idle it's got to be via IRC, I've got my setup fine tuned for that and adding other IM things on top of it drives me batty. I even wrote a bot that pipes hipchat into IRC so it will work with my usual scripts and such.

Fun fact, I lost my virginity to a girl I met on IRC.
>>
>>52896424
A chick with a dick doesn't count
>>
>>52896243
I support this idea

Someone make it so
>>
>>52896448
She wasn't, but she was kinda pimply and unattractive. I've since started making enough money that getting laid isn't really hard but first experiences stick, I still have a think for awkward gangly girls.
>>
I added song voting to chiru.no, took a few hours yesterday
>>
>>52896616
What sort of stack is that running on?
>>
>>52894928
Does he have any WHOIS info up, or is he easily found online? Me and my boys operate in the UK and around and could make him 'a deal he can't refuse', if you get what I'm saying. Of course it would cost you, depending on how valuable the domain is.
>>
>>52896699
nginx and php fpm
>>
Any PHP man in?
Running into a problem with an AJAX image upload. The xhr object gets stuck on readystate 1. What request header do i need to do images?

Sorry if im a fucking idiot im self taught.
>>
>>52896424
Masturbating to feminine bots doesn't count as losing your virginity.
>>
>>52894853
so who is the theme for then? Your own use as a template or something?
>>
Why is PHP so shit? More specifically Wordpress? It is so fucking bloated and you are almost forced to install plugins you can't validate for security easily. Is there a good CMS with a focus on security first?
>>
>>52898084
>it's so fucking bloated
>you're almost forced to install plugins

Make up your mind. I'd also argue that WP by itself is pretty secure. Many, if not most security issues in the recent past have stemmed from some popular 3rd-party plugin, rather than WP core. It also auto-updates security fixes whenever they pop up, even retards that never update their software get some level of security maintenance forced onto them

Of course, such a system is only ever as strong as its weakest link, which in WordPress' case usually is the insane amount of _SHIT_ 3rd party plugins.

This would arguably be the case with any CMS that is as popular as WordPress, though.


On a more general note, WordPress' biggest problem is legacy support, which applies to its own ecosystem as well as its stubbornness to support EOL versions of PHP.

They cannot give their codebase the much needed overhaul unless they want to risk breaking a quarter of the internet in the process.
>>
>>52898258

From experience, here's why the Wordpress plugin ecosystem is a cluster fuck.

> Inherit website
>Update Wordpress
>Update all plugins
>Page says "everything up to date"
>Assume everything is ok
>Very old version of a plugin installed
>Website gets compromised
>ISIS flags everwhere
>Restore the whole thing
>Gets compromised continually

What happened is, the plugin in question is a commercial plugin. You buy the plugin, and then buy an ongoing support agreement. If you have support, you can proactively login to this fucking website and manually download updates. In the absence of doing that, you click "update" and it just says "Updated k thnx".

I have no fucking way of knowing this and this horseshit cost me a solid month of my life constantly repairing this fucking website.
>>
>>52898345
That sucks, but it's completely the plugin vendor's fault.

The only thing WP could really do here is add a distribution system for commercial plugins and *enforce* it, which is something they will not do, because they want to keep everything free and open source.

Only free and GPL'd plugins get onto the official plugin repo. All commercial stuff is up to each individual plugin vendor. If those vendors fail to build their shit properly, it's a propblem between them and their customers.
>>
How do the navigation arrows on the carousel here http://www.eriktrautman.com/ created?
>>
>>52898634
https://css-tricks.com/snippets/css/css-triangle/
>>
What's a good web development skill to learn if you want to work from home? I'd love to freedom to be able to move around, I live in a really expensive city and it sucks.
>>
Thoughts on teamtreehouse's front end track?
>>
>>52895056

how do you join this from the app?
>>
File: textbox.jpg (60 KB, 656x326) Image search: [Google]
textbox.jpg
60 KB, 656x326
This seems like a stupid question, how do I force these text-boxes to be the same size. My crude pic shows exactly what is currently happening, because some boxes have more text in, some are larger, how do I have it so if a box does not have that much text in, it still adds white space below, while keeping "read more" at the bottom.

My site is responsive if that makes a difference.
>>
>>52899253
Couldn't you just set a height and width on the class in the css?
>>
So I want to make some sort of lobby system for my website. As in, users can create and join lobbies and maybe later some sort of function to search the best lobby for them. Its literally just a lobby, nothing more.
(The two best methods I found) So I can either make them completly with MySql and an ajax heartbeat for disconnects etc, which should work but is pretty clunky.
Or I can use a websockets server which is smoother but probably really overkill, on top of that a lot more work.
Which one should I use?
>>
>tfw a guy asks me on LinkedIn if I'm interested in a new long term project as a Node dev.
>tfw it's not a recruiter
>infos to follow if I sent him an email

What do?

I earned some xp at an internship a year ago (I built a Node/PHP/mySQL monster). And nowadays I learn bit by bit but I'm really far from being a nodeJS dev (I think).
>>
best backend lang + fraemwork???
>>
could someone explain this code to me?
$('html, body').animate({scrollTop: $('#portfolio-wrap').position().top}, 800);


I understand that the body is being targeted with the animate method from jquery but what is the object and it's contents role within the method?

I thought scrollTop was a jquery method and not an object attribute?
>>
>>52895100
I would say just search in all the files for the definition for @page and go on from there.
>>
>>52895056
Thats not a group chat, thats a channel faggot
>>
>>52900637

Yeah just realized that someone make a group chat or use that other app someone posted above
>>
Sanitizing user input? Should it be done before data is stored in the database? Before sending to the client? On the client before displayed?
>>
>tfw I forward my (professional) email domain to

https://www.youtube.com/watch?v=7B6FkBqkZ1g
>>
>>52900651

Okay here's the new discord server link

https://discord.gg/0ouCLlHiSGCH6QrC
>>
>>52899253
>Responsive

With the current culture, this could mean "resize your browser any way, it'll still work" or "i use a screen res/user agent detection trick to switch to the speshul MOBILE MODE"
>>
>>52900677
nice
>>
>>52900402
PHP.
You don't need a framework for PHP, it's already a framework
>>
>>52900402

Php + Laravel (or lumen)
Golang
Java + Spring
>>
>>52900698

The first one
>>
>>52900402
Whatever you're most comfortable with. Focus on writing clean, commented code.
>>
I'm stuck.

Started studying webdev three weeks ago. I know some html/css and basic javascript. I also know a bit of php and I'm trying to get my head around Ruby.

I can't bring myself to practice anything because I don't feel confident enough to test my poor skills.

I love learning webdev, and would love to work in the field before the year ends. What the fuck do I do to stop being a pussy about it?
>>
>>52900672
Both

Client side is for user experience.
Server side is for your security.
>>
>>52900885

start your own project. Set goals (or user stories) and work those off step by step like you would do for a client.
>>
>>52900885
I don't know what to do either. I've learned primarily through codecademy and have completed the html, css and jquery courses and still feel clueless. Just don't know what to do with myself.
>>
What front end framework do people use. Should I just learn Bootstrap and stick with it or are there more efficient alternatives.

I don't really plan on using much of the styling stuff so it seems excessive.
>>
>>52900998
There are loads of front end frameworks. Most popular is bootstrap. There's no real 'king' in terms of performance, efficiency, ease of use, etc. They all excel at their own categories tbqh.

>don't really plan on using much of the styling stuff
Might want to look at more clean alternatives then. Ones that are smaller, don't require as much styling to make unique, and aren't as uber popular as Bootstrap so your shit won't look like it's been used in 200 different sites created on the same day. Using bootstrap without much styling results in really stale looking websites. Here's a website for laughs, you've probably seen it a million times before. http://everyfuckingwebsite.com/
>>
File: 1331386075975.jpg (7 KB, 250x251) Image search: [Google]
1331386075975.jpg
7 KB, 250x251
What do you think the future of web development will be? Adblockers are our enemies right?

Also Im learning CSS and Javascript now. What next?

What are you doing to stay educated? Reading through all these comments and I'm seeing 20+ languages, do you all know them? Or just some of them?
>>
>>52901177
>Adblockers are our enemies right?
lol no

> What next?
Get good at JS.

>What are you doing to stay educated? Reading through all these comments and I'm seeing 20+ languages, do you all know them?
No. Just some. Only the ones I use. A lot of languages are alternatives to one another.
>>
>>52900698
The latter isn't responsive. And it's a shame even large sites fall to using it and then claiming their shit is responsive. And the funny part is that it would be easier to just do a truly responsive site than some UA sniffing bs.

One of the prime examples that shows why it doesn't work is fucking google.

>>52901177
Adblock is only the enemy to those tht can't produce content that people are willi g to pay for. If you provide an actual service that people need adblockers aren't a problem.

You won't need to know all the languages. Knowing few really well is better than knowing all of them poorly.
>>
>>52901906
>Adblock is only the enemy to those tht can't produce content that people are willi g to pay for. If you provide an actual service that people need adblockers aren't a problem.

I don't have a blog, but if i did, I'd block adblock users just to fuck with them even though I wouldn't ever put ads on my website. maybe text ads..
>>
Anyone know why requests.get() finishes so slow on google?

In [2]: %timeit requests.get("https://google.com")
1 loops, best of 3: 4min 15s per loop

In [3]: %timeit requests.get("https://google.com", timeout=2)
1 loops, best of 3: 4.85 s per loop
>>
>>52901994
>I don't have a blog, but if i did, I'd block adblock users just to fuck with them even though I wouldn't ever put ads on my website. maybe text ads..
Literally what
>>
>>52900698
Responsive exclusively means utilizing media queries to handle layout in relation to different screens.

Any other application (excluding any in the future that completely change the game) of the term responsive is false in relation to web dev.
>>
when is chrome 49 going to be released to the stable channel
>>
Other than animations and events, what else is js used for in front end dev? And do front end devs usually need to know php?
>>
>>52902213
Is it possible to break an html table row into multiple rows with css? It's impossible to fit a 5 column table in phone screen
>>
>>52902262
>js animations
Absolutely disgusting
>>
>>52902036
Vaguely, could be security. If data isn't sensitive, would verify=False make a difference?

>>52902325
Yep, definitely possible. Google "responsive data table" for a bunch of different links to a variety of solutions. CSS-tricks is usually my first stop whenever trying something new just to understand it a bit better.
>>
>>52902262

JS is used for modals, ajax, form validation, canvas, etc...

It's always a plus to know PHP, it'll help you sooner or later if you need to send requests to the backend and shit.

And yeah, don't use JS for animations unless there's no other choice. Use CSS transitions and animations instead.
>>
>>52897933
Late reply but; Yes, that's why I'm doing it. My portfolio is dry af senpai. Plus I plan on putting it on Themeforrest, hopefully I can make a few bucks off it.
>>
>>52902510
How long would you say that takes to learn?
>>
>>52902418
Just tried on a VM running ubuntu. I am running fedora. It was much more faster it uses another version of requests tried the same version on fedora still same problem. In the VM I got 770ms.
>>
>>52902672
Which? JS? PHP? CSS?
>>
Anyone from long island NY ? im a 2 year cs student and im having difficulty finding a job in web dev.
I want to get into the industry but dont know how to start
>>
>>52902730
JS and PHP
>>
Does it matter to make websites compatible with ie9 nowadays?
I assume windows 8 comes with atleast 10 right?
>>
>>52900344
Trying wont hurt, if you actually manage to land the job you might get the experience your looking for.
>>
>>52902750
There isn't a single valid reason to support anything below IE11.
>>
>>52900995
Actually read a book, codeacademy is merely introductory material
>>
>>52902750
Use some analytics, determine what person of people who go to your site are using IE9 or lesser, then determine if it is worth it to support those people. If you are a large company who frequently deal with old people or 3rd world countries, then you may have to. If you are just programming for fun, then screw em
>>
>>52902749

It took me months for JS because that was the first "legit" programming language I seriously learned, Jquery and Angular included.
If it's not the case for you it should take you a few weeks.

For PHP you don't need to learn much, but you'll need to get familiar with it, so maybe a week or less if you are motivated.
>>
Is it not possible to style select and optgroups in all browsers? Shit looks ugly yo.
>>
>>52903008
try css
>>
>>52903135
Thanks for the suggestion.
>>
>>52903181
youre welcome
>>
File: 1431613965973.jpg (8 KB, 150x144) Image search: [Google]
1431613965973.jpg
8 KB, 150x144
>>52903191
>>
>>52903236
dumb frogposter
>>
>jsonapi.org

It seems pretty shit, what's the deal?
>>
Is freecodecamp supposed to be slow as shit at all times? I started using it yesterday but it always takes a minute or two to go to the next exercise.
>>
>>52902953
>It took me months for JS because that was the first "legit" programming language I seriously learned
The fuck. Unless you needed to learn absolutely everything about it, or you needed to learn Node, Angular, etc. there's no reason it should have taken you more than a few days to learn JS.
>>
w2c a frontend job in Italy?
>>
>>52904203
try
>>>>>>>>>/prostitution/
>>
>>52903253
How so?
>>
>>52899253

Your site being responsive doesn't make a difference. There are a bunch of libraries that handle this and it's usually referred to as an 'equalizer' (funnily enough).

equalize.js will do what you're after, and is nice and light. You could always write your own if you're at all handy with JS.
>>
File: 0001.gif (37 KB, 600x216) Image search: [Google]
0001.gif
37 KB, 600x216
I want to go back to a time when internet traffic wasn't shared by just a handful of websites.
>>
>>52900491

$('#portfolio-wrap') // select element
.position() // get the coordinates of the top left of that element
.top // get the 'top' value from those coordinates

Zooming out a bit, the first parameter passed to animate() - i.e. everything between the { } tokens - is an object in which you define options for animate() to run. 'scrollTop' is the name they have given to the option that dictates the location to which animate() should scroll. They could call it whatever they wanted, but that variable is concise and explicit.

The scrollTop() method in jQuery is just a wrapper for a JS function of the same name.
>>
Does anyone know what a chart like this is called? I'm trying to search for a prebuilt version of this.

source:
https://www.washingtonpost.com/2016-election-results/new-hampshire/
>>
>>52904347

It's a brave new world, motherfucker. Reliability and familiarity matter to people.

Not saying it's right, but things will never go back to how they were. If you want to rekindle that feeling you gotta be at the forefront, try new things. Do shit before other people do shit. Complaining about the inevitable helps nobody, least of all yourself.
>>
>>52899253
I'm not pro, but what I'd try is using JS to get the height of all the boxes, getting the max one, and making the others equal to the max one.
>>
>>52904347
That was never the case though. It was always like that.

Fight me on this, you're wrong.
>>
>>52904516
Those are some nice visualizations. I don't think there's a name for that plot. It's custom made. Look into d3.js.
>>
>>52904545

This is exactly how it's done.
>>
>>52904577
Just look up internet traffic share in the early to mid 2000's.
>>
>>52904537
been thinking about it for a while
where's this frontier now? Tor? i2p?
>>
>>52904647
it was still dominated by a very select few ISPs, all using the same cables tbqh

and google has dominated search for a very long time, effectively navigating where people go

so really, there's no way you can make an argument against the likes of facebook without being hypocritical in the sense that somewhere along the lines there has always been a select few who dominated.
>>
>>52904679
We're talking about completely different things here. First post didn't even mention ISP so stop moving goalposts to prove yourself right.
>>
File: 1317261511681.jpg (60 KB, 559x447) Image search: [Google]
1317261511681.jpg
60 KB, 559x447
I'm performing my first attempt at editing my root directory using FTP client Filezilla. I can connect to the server, make some moves/copy/edits, but when I try to either delete or replace from backup my entire home directory, it disconnects after about 25% done.

Also, after this happens, I cannot access my browser cpanel. So this leads me to think that my cheap ass hosting provider is disconnecting me because i'm using up excess bandwidth. Or something. I dunno, i'm not an expert.

What do?
>>
>>52904609
thanks, yeah looks like d3 is what i'll need
>>
>>52904654

Tor/dark web seems like the obvious answer, but it's just a subset and doesn't really get me excited. Brain/computer interfaces will probably be the next BIG thing.

The main problem I think is that the internet was kinda handed out to us on a plate. It didn't take a lot of effort to be excited about something. It was revolutionary and brimming with potential, but it was only a matter of time before it became homogenised.
>>
>>52904716
No we're not talking about different things. We're talking about gateway dominance. I'm proving my point by demonstrating the entire timeline for you. Things have NEVER been "free" or this sort of wild laissez faire fiesta of sorts. A select few has always dominated, end of. No difference with it happening in social media as well.
>>
>>52900672

Basically you should never trust ANY data that comes from the front end. It's one giant compromised shitstorm.

You want to sanitize everything that you collect from the frontend. You want to use prepared queries before that shit goes anywhere near a database. You want to do these things so bad you're groaning and rubbing yourself right now.

Also check out https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project
>>
>>52904718

I also just tried to upload my home dir bit by bit, to see it it wouldn't d/c, but it did. Also I tried using File Manager in cpanel but every upload bigger than file related cancelled.

pls halp
>>
>>52904944
tar it into many parts and then upload
>>
>>52904965

i'd rather not do that but find a simpler solution like 'use software X'
>>
>>52905199
they probably provided you a control panel that has upload feature? use that
>>
I'm doing remote freelance full-stack work (which in practice means "single-page frontend speaking to a Node business logic implementation"). I'm self-taught and have knowledge of plenty of languages and tools (native code too, not just webdev), but only have 6 months professional freelance experience.

With that in mind, what would you expect my hourly rate to be?

(Yes, I know it depends on every factor ever.)
>>
>>52905239

that's what

>>52904944 is.

i'm just messing around with Filezilla settings, shall i use active instead of passive transfer?

eh well, here's to nothing.
>>
Someone please explain to me what the difference between Flask, nginx and gunicorn is.
>>
>>52905266
$20-30/hr on Upwork
maybe more, just try and bid

also can be more if you find contracts locally in the West, esp. US
>>
>>52905286
Look it up
>>
>>52905307
>if you find contracts locally
I mean, outside Upwork - like Craigslist, meetups, network events etc
>>
>>52905286
* Flask is a web microframework. You would use it to write small webapps in Python.

* Python webapps use a de facto server standard called WSGI.

* Flask offers a built-in WSGI server, but Gunicorn is a faster one.

* Nginx is a web server/reverse proxy/load balancer. You would typically have it "in front" of your Python app, accepting the requests from the web and forwarding it to your Python server.

But you don't need this setup to get started. Flask with its built-in server will be fine for now.
>>
>>52905307
>>52905330
Thanks! I'm in a rural part of the UK so local work is nonexistent. I'm currently eschewing Freelancer/Upwork/Guru and instead getting work from a combination of repeat clients, referrals, cold emails, and some from places like /r/forhire.

I'm currently quoting $25/hr so it's good to hear that it's in the right ballpark.
>>
>>52905266
What did you use to learn?
>>
>>52903008

No, but its essentially a drop down radio button so just create a new object that looks like an optgroup , hide the radio button and get around it that way
>>
>>52904057
That's what you get with mean.
>>
File: 1417638584831.jpg (34 KB, 410x336) Image search: [Google]
1417638584831.jpg
34 KB, 410x336
>>52905404

Where abouts?

>tfw i'm from a "diverse" area (London)

literally gypsies and muslims everywhere
>>
>>52905494
I don't have the skills to pull that off. Just gonna use bootstrap's dropdown for this.
>>
>>52904751
It still has a lot of potential. It only goes downhill from here.
>>
>>52905439
See that's not a trivial question actually. I didn't sit down one day and think "today I will learn programming using XYZ".

My first exposure to programming in general was from magazine cover disks, the kind that bundle hundreds of mostly-useless applications in an attempt to provide value. One of these was a BASIC variant with extensive documentation, and I probably made hundreds of tiny useless programs with that thing.

Then with Internet access I decided to learn something more proper, and decided on C++. This was probably a bad starter (and I eventually had to basically re-learn it anyway after C++11), but learning it did mean I could learn basically anything else without hitting fundamental stumbling blocks. I just used various online tutorials (not going to name any because none of the ones I used actually follow modern best practices), googled things and practiced.

So from there I just did the same to learn whatever a) interested me or b) was required for something I wanted to do.

I got into webdev fairly recently. It's relatively simple to learn the basics when you already know native languages, but there are a lot of gotchas and hacks you need to remember when doing frontend work. I try to stay out of the trap of learning a dozen rapidly-changing frameworks, and instead write "from scratch" but using a personal library of utility code.

This is probably not the path I'd suggest for a newcomer now but hey, it worked for me.

>>52905525
Dumfriesshire. Not many immigrants here, but also no tech workers. Going to move when I can.
>>
>>52905660
You seem like a person I'd like to drink a beer with.
Cheers, mate.
>>
File: 3.jpg (64 KB, 880x131) Image search: [Google]
3.jpg
64 KB, 880x131
Does anyone have a fast tip on how to add the learn more button? I've made the 3 divs and floated it to right. Should i make a button and float it left on the same line?
>>
>>52905788
Onmouseover the div to change color.
Onclick to go to other page
>>
>>52905813
epic
>>
>>52905813
It looks like this, how should I make the image align on the same line?
>>
>>52905358
I'm ready to deploy so that's why I'm asking. Thanks for the info, gonna google some of those words now.
>>
How do you guys decide which frameworks to use on your projects? I used to built websites back like 10 years ago and just used basic hand-written HTML, CSS, JS, and PHP if it needed some backend. I'm trying to get back into web dev but now there are a million frameworks for every backend-end language, for JS, and even for CSS. A lot of them seem to all do the same things. What's the point of them all compared to just writing your own code?

Also, I used to just write code in Notepad++, FTP into the web server and upload the files. Now there are all these workflow tools like a million varieties of git/github, gulp (whatever that is), linters, preprocessors for CSS, a million text editiors with a million plug-ins each, etc. How do you guys choose what to use? Is there a good site convenient comparisons or power rankings of all these things?

it's easier to learn the actually code nowadays since there are a million great free tutorials but someone needs to make an in-depth tutorial for the fucking tools/setups/workflows at this point.
>>
>>52905882
Bootstrap + AngularJS + SASS.

Go. Start working.
>>
>>52905660

Nice one lad. How old are ya?
>>
Where can I find javascript exercises?

I've started with it recently and don't know what the shit to do
>>
>>52905882
I'm you, basically.

Learned 17 years ago. Miss the days of coffeeftp and notepad++ with 100% handcoding.

Go take the git class on codeacademy. Look into Sublime or Brackets for text editing.

Also figure out if you want to do rails, node or php for backend.
>>
I will have to work with some wordpress websites, more specifically build some functionality for them in the form of a plugin, but I have never worked with WP before.

What's the best resource for learning Wordpress plugin development?
>>
>>52905404
Yeah, I've been doing remote webdev (from Russia) for a few years, trying to push above $30 now, probably could go higher if I could spend more time.
It's a pretty lively source I'd say - or was, last time I had to go fishing (repeat clients only for quite some time now); lots of garbage of course, but decent clients DO occur, and you start seeing them right away once you filter through a few hundred garbage postings.
Since you're a native speaker, and especially if you have some kind of portfolio, I think you could go above 30.

Good luck :)
>>
>>52906104

Seems like at this point it's easier just to use JS for everything since it can do both front-end and back-end, and despite that /g/ hates it (maybe rightly so) it's obviously become the most popular thing out there to the point where people are even making desktop apps with it. Has anyone just gone full JS for front-end and back-end, so that way your whole stack is just HTML+CSS+JS+MySQL? Is it as fully capable as having a seperate backend language thrown in the mix?
>>
>>52905882

You use whatever your employer wants you to use.

Most stuff blends into together after a while .

Currenty workplace has me using a mix of svn, git, less, sass, smarty, composer, gulp, bootstap, jquery, on top of the usual Linux stack (although we use two different SQL flavours)

Accept that you're pretty much never going to settle in to a set of frameworks/tools/whatever and that you can expect to always be learning and it becomes a non-issue.
>>
>>52906221
haven't tried node myself, but from what I heard, it's alright for small-to-medium apps, but becomes a huge mess afterwards

that said, pretty much the same can be told about other dynamic web languages (like Python/Ruby), to a smaller degree maybe

not that good performance-wise either
so, yeah, there's a bit of advantage from having same language on both ends, but once you're above certain scale, you're better off with something more proper
>>
>>52905404

I'd rather contract through agencies than go pure freelance.

Going through an agency and being hired for finite jobs/time periods means you get less irritating support bullshit.

I was earning £150 a day writing fucking HTML emails (and people said learning table based layouts was a waste of time...).
>>
>>52906252

Is all the svn/git/gulp/composer type stuff necessary if you are just working alone and not with other people on projects? I'm not employed in web, I'm just getting back into it for fun (and maybe freelance if I like it and feel like it). What's the advantage of all that stuff vs just uploading with FTP to the server, if you're just working alone?
>>
>>52906221
Possible, but idk.
I still use my y2k javascript because relearning all the new stuff is basically like a new language, then you need the backend stuff. It was easier for me to learn PHP than jquery/node/etc.
>>
What books would you guys recommend to an absolute beginner? I'm looking to change careers and would like to do so soon. Just want to snag a front end position and make enough to pay the rent and live somewhat comfortably. I really want to find my way with this but don't know where to start.
>>
>>52906018
21.

>>52906134
I have a site that acts as a CV/portfolio of sorts, with a skills list and some writeups/screenshots of projects. There's plenty more I should probably add so I'll definitely find time to improve it.

>>52906318
I'm interested in this route too. Any suggestions for good agencies?
>>
>>52906134

Are you Russian? How are the Russian ladies?

I imagine on an average (western) salary you could live like a God King, harem included.
>>
>>52906346

git and svn is a very desirable skill if you ever do go professional. most code studios use one of the two.

The advantages, especially for a solo project, aren't hugely obvious until you're experienced with them.

Here are some of them:

A change fucked something up? You can review how the code changed and either fix it or completely reverse the commit. Even if it's something you noticed months later and have done shit loads of work on the project since.

Want to have a stable version and a development version? create a branch. You can work on the development version but, if you discover a bug, you can (usually) apply a commit to both versions.

Coding a new feature, create a new branch. If the feature doesn't work out, simply never merge the branch back into trunk. You'll always have that branch in case you decide you do want to go back to it and implement it.

If you use bitbucket/github/any remote repository, it's a handy backup system.

Gulp and Composer blend in.

Composer is a way of deploying versions of your code (especially handy if you make lots of libraries shared across projects).

Gulp is a way of automating tasks for deployment, compiling SASS, minifying JS etc. Means you can have a messy dev environment and with one command get everything packaged up, ready to view/test.
>>
100k a year for HTML/CSS/basic javascript.

Seems legit.
>>
File: Capture.png (10 KB, 707x306) Image search: [Google]
Capture.png
10 KB, 707x306
Anyone here ever used FlexSlider? I can't seem to get rid of this white space at the bottom. I've inspected the element but I can't find what's causing it.
Yes, I have also checked google but nobody else seems to have a solution to this.
>>
>>52906509

Sadly not. They're very regional.

Generally speaking, go on the usual job sites, look for a contract job, 4 out of 5 times, if you apply, you'll get a call from an agency and they'll ask your skills and try to get you on their books. Don't expect to get put forward for the actual one you applied for every time.

Always apply via a specific contract position, never apply to vague job descriptions with "positions available across the UK". The difference is applying to an agency that has clients and is looking for contractors (good for you) and one that is building up contractors looking for clients (bad for you). Also more likely to be scammers.

Be honest with your skills, don't get too disheartened if you go to a contract interview and you absolutely tank it due to lack of skills. It happens.

Heck I had one interview where they never asked me any real technical questions and they were convinced I was a moron and ended the interview early (to this day I have no idea what I did wrong as they never tested my knowledge and the job seemed simple)

However as I said, I got 150 a day for a really low skilled job so you can earn lots whilst still building up your skills
>>
tfw you have been learning Javascript + frameworks over a year, but too pussy to apply for a job. Fuck social anxiety.
>>
>>52906781

Not going to be able to solve that kinda thing without access to the page in question
>>
>>52906916

Most web dev places are pretty chill and will be used to socially awkward types. My advice is not to get too hung up on it, so long as you can show your enthusiastic and have the ability to do the job or learn to do the job, that's enough.

Can't help you if you have imposter syndrome issues, most devs have it and it doesn't go away. Just be satisfied knowing that most people have the fear of being 'found out'/
>>
Are WordPress templates written in PHP or HTML?
>>
>>52907099

Both
>>
File: 1417534962821.jpg (70 KB, 800x600) Image search: [Google]
1417534962821.jpg
70 KB, 800x600
why can't I access my cpanel? from my home wifi it just times out. getting desperate here
>>
Im finishing up html/css on codecademy and about to hop into java. are there any books youd recommend so I can get a better hold of html/css and really master this shiz?
>>
Javascript is a pass-by-value language.

Could someone tell me if this code is legit?
function doesStuff (param) {
param = function doesOtherStuff(param) {
return param - 1;
}
return param;
}

var argument = 2;
var check = doesStuff(argument);
console.log(check);


what will be logged in console?
>>
File: jstips-header-blog.gif (1 MB, 1600x700) Image search: [Google]
jstips-header-blog.gif
1 MB, 1600x700
I think node.js + react is web development in 2016.
However we still need c/c++ developers for low levels development.
Unfortunately node.js community is wasting its time in framework creation just like php fags.
>>
>>52907171
Uhh Javascript is mostly pass-by-reference
>>
>>52907171

You could literally put that onto a page and test it yourself.

To answer your question, I'm guessing it would work. but you should never do something as hard to read as that.

Functions should only be used like that for binding to events.
>>
>>52907235
No, it's entirely pass-by-value. The somewhat, kinda-but-not-really exception is If you pass an argument that is an object - in that case you will still be passing a value, it's just that the value passed is a reference.
>>
>>52907306
Indeed, my bad.
>>
>>52906916

I am working for 10 an hour because I dont apply because I dont meet all of the requirements.
>>
>>52906470
pls respond
>>
Javascript is a pass-by-value language. I'm trying to understand how parameters and arguments work with one another in a function.

A parameter is a variable. When we pass an argument to the function, we are passing the value referenced by that argument, and assigning its value to the parameter.

So, when argument = 3 is passed to the function, it's like saying
var parameter = 3;
Is that right? Would something like this be permissible within a js function:
function foo(param) {
param = param + param;
return param;
}


What I suppose I'm trying to figure out is if param acts as a variable within a function, holding (initially at least) the argument value, or if it's almost like a blank space that is "filled in" by our argument value. Like, it's not really a variable holding a value, it's just a value. In the case above, we wouldn't be able to assign param + param to param, because it'd be like saying "10 = 10 + 10". 10 isn't a variable there, it's just a value.
>>
>>52907614
A book on HTML5 and CSS4.

A huge one like 800 pages. None of that "in 30 days" shit
>>
>>52896953

Don't worry about being self taught. I'm self taught and I'm the VP of a software firm that I didn't start.

As to the question, multipart/form-data, should be fine for the content type of the posted object.
>>
When are we going to get a pythonic replacement of JavaCuntScript etc?
>>
Is there a guide on how to get into freelance web development? What backends are in demand? What are the different types? What sites do you use?
>>
I usually shit on WordPress, but I recently started making my own theme and I can cut all the bloated bullshit out of it and it's pretty awesome how powerful it is. I might redo my personal website in WP soon.
>>
>>52907670
>CSS4
>>
>>52908146
WP is pretty legit if you use it right. Most people that shit on it are only doing it because it's popular. Just make sure you properly secure it and only install what you'll actually use.
>>
>>52907447
Meet the requirements then
>>
>>52908428
Good joke.
>>
i'm looking to start learning node, but don't want to give up sass or the foundation framework, are there any packages available that can let me use the aforementioned tools?
>>
>>52908550
It's only a joke if I was kidding.
>>
so i can build/manage a website, integrate some javascript, do some server side things, experience with bootstrap too but feel like i still don't know enough to apply to listed jobs beyond freelance stuff.

am i missing anything big to apply to jr dev jobs? should i really be riding git so hard as proof or just build some more....stuff
>>
>>52908642
Are you sure you know what node is?
>>
>>52908642
sorry i meant the express js framework. Had node in my head after reading it so many times in these tutorials.

Now that i read more i guess stylus won't be such a bad change over, but i can;t give up foundation. is there a stylus version of foundation in npm?
>>
>>52908759
side note, i'm not so much afraid that 'i don't know it" as much as "i'm wasting my time with my current skill set"
>>
File: Capture2.png (14 KB, 646x141) Image search: [Google]
Capture2.png
14 KB, 646x141
Why the fuck is this Include statement causing a 502 Bad Gateway error

VirtualMachine vm = _context.VirtualMachines.Include(i => i.Analysis).FirstOrDefault(x => x.Id == vmID);

if I use:


VirtualMachine vm = _context.VirtualMachines.Include(i => i.Analysis).FirstOrDefault(x => x.Id == vmID);

it works but the analysis value is null, (pic related) but in the DB it is correctly assigned to some existing Analysis
>>
>>52908801
>>52908759
Maybe I'm not understanding the question but express is middleware. It runs server-side and doesn't generally give a shit what you use to style the frontend.
>>
>>52908935

if I use: *
VirtualMachine vm = _context.VirtualMachines.FirstOrDefault(x => x.Id == vmID);
>>
>>52908801
>>52908642

So i started a project using
express my-app
the cd into it and installed foundation via
npm install foundation
and then installed all the other packages, but i don't understand how i use it.

I've tried adding foundation classes to the index.jade file but it's not picking it up?
>>
>>52908948

meant to quote

>>52908801
>>52908770
>>52908642
>>
>>52908948
I understand that, i want to take my existing static site that was built using foundation 6 and turn it into a blog as a 'babbys first express js app'.

I'm guessing because sass is a ruby based preprocessor (which foundation is built on) its going to be hard to port my current site onto an express app
>>
Quick: Go or Elixir(Phoenix)?

I need a backend for a Chrome extension that uses websockets.
>>
>>52909039

>I'm guessing because sass is a ruby based preprocessor (which foundation is built on) its going to be hard to port my current site onto an express app

I don't understand, are you not compiling the sass to css before deploying anyway? Express and foundation shouldn't even interact. Express is for doing business logic server-side and Foundation is for styling your front-end. They should literally have no reason to know about each other.
>>
MVC6 can suck my fucking dick
>>
>>52909313

Well when i started my first express app, there was jade templates already set up. It doesn't precompile those files into html, so i assumed it did it on the fly. I thought this was true for css preprocessing too.

Let's take a step back : How would you start your expressjs project if you wanted to use Foundation 6, SASS and JADE?
>>
                                            <ul class="thumbnails">


i'm pretty bad at html/css -- how do i add a border attribute with 10px here?
>>
>>52909453
<style>
ul.thumbnails {
border: 10px solid gray;
}
</style>
>>
>>52909510
ta
>>
>>52909453
Add
border: 10px solid red
to the thumbnails class in your css file
>>
File: logo.jpg (44 KB, 600x536) Image search: [Google]
logo.jpg
44 KB, 600x536
Just made the first website where you can download a car. Get em while they're hot lads.

wont be long before the feds put me out of business.

http://www.cardownloader.com/
>>
File: 1432456958386.png (472 KB, 957x535) Image search: [Google]
1432456958386.png
472 KB, 957x535
is there a good non-kike analytics? perhaps FOSS? I just want to monitor traffic, not shill for google.
>>
>>52909421

Try reading these:

http://expressjs.com/en/starter/generator.html

http://expressjs.com/en/guide/using-template-engines.html

I think your problem *might* be that you're dumping foundation into the main app folder instead of into public/stylesheets/ so you might want to look into that. Also, I don't use foundation, but I believe they offer a precompiled css version so you might try getting that and dumping it into the stylesheets folder to see if the styling shows up. It's hard to diagnose the problem without seeing your file structure, package.json, etc though.

Also it's worth noting I probably wouldn't use the mean stack at all for a blog if that's what you're actually trying to make. Just for dicking around with it's fine I guess, but for production work, you're basically using an industrial-grade laser cutter when you really need a screwdriver.
>>
>>52909681
You wouldn't download a car D:
>>
want to make a link that will link directly into a 4chan thread

is there a reason this isn't working?
>>
>>52909681

>there's no reason for the logo to be linked
>dont use divs for structure its not semantic

other than that it looks dope anon can't wait for my f12 to finish downloading
>>
>>52909800

Thanks! The more I read i'm assuming I need a task runner to auto-prefix/minify/compile my SASS files but i have no idea how to set that up and get it to work with foundation 6.

The problem i have with the precomplied css version is that I can't customise it. The only way around it is using
!important 
everywhere to overide the default styles

I'm a front end dev looking into a stack to learn, picked express and decided to learn to make a blog with it so I can eventually land a back end dev job
>>
>>52909868
Learn simple debugging and to read errors. Either you cant get json or its invalid. Print out json contents to see what it really is.
>>
>>52909961
Why not use divs? What should i be doing instead?
>>
>>52904718
Don't replace all files, there is an option to overwrite files based on size or last update
>>
>>52908284
WP is hacked together piece of shit. Its only popular because its easy to use for normal users and theme side gives designers delusion that they can actually program.
>>
>>52907623
Its new variable within function scope thats given value. Btw js is so shit that you can actually skip giving enough arguments or give too many.
>>
>>52909983
> task runner
Yep. Get to reading the grunt/gulp/yeoman docs if you aren't already familiar.

>The problem i have with the precomplied css version is that I can't customise it. The only way around it is using!important everywhere to overide the default styles

Assuming you're loading your custom stylesheet after foundation's, it should be fine.
>>
>>52904718
Anything in log?
>>
>>52910167

>Assuming you're loading your custom stylesheet after foundation's, it should be fine.

That'll work but the thought of having !important everywhere in my custom css file is offputting. I've gotten accustomed to changing the sass variables in foundations settings.scss file and tweaking them to my needs
>>
>>52910210
He meant that you can override styles without !important if your style is defined after original.
>>
>>52910090
> its easy to use for normal users and theme side gives designers delusion that they can actually program.

Literally the point of a cms

>>52910210
>>52910250
Yes. CASCADING style sheets.
>>
>>52894718
>angular

>view
<div ng-repeat="fb in foobars"><p>{{fb.foo}} {{fb.bar}}</p></div> 

>controller gets all stuff via factory
>get correct number of <divs> in DOM
>all <p>s are empty with empty ng-bind attribute

what am i doing wrong?
>>
>>52910250
but it wont.

Suppose i include .button.primary.small classes to style an anchor tag it'll apply the styles found in foundation.css. the only way i can overide them is with !important.

I use foundation for more than just the grid system
>>
>>>52910090 (You)
>> its easy to use for normal users and theme side gives designers delusion that they can actually program.
>Literally the point of a cms
Not an excuse for spaghetti code or horrible hacks for getting "features". Also i have been wp dev in media agency controlled by designers who thought wp is solution for every problem making me create everything in it.
>>
>>52899253
You have to use display: table and co. Before someone has a cry about "tables aren't semantic" I'll point out that yes, table aren't but CSS doesn't affect markup semantics by definition so display:table isn't a violation and it's the only layout model that supports the kind of behavior you want. Using JS for setting heights based on calculated values is a tremendously worse approach.

So with that out of the way, do something like this: https://jsfiddle.net/2tguauha/4/
>>
>>52910299
plz reply, and checkem dubs
>>
>>52910299
Presumably fb doesn't have a foo or bar prop. You get a single space in each p tag right? Double check what props foobars[n] has.
>>
>>52910329
1. Are you putting your custom styling in whatever.css or directly in foundation.css?

2. Are you putting the <link> for whatever.css AFTER the <link> for foundation?

If you did 2, fix it and try again. If you did 1., punch yourself in the balls and learn how css works.
>>
>>52910436
fb definitively has foo and bar, i get 0 space, just bunch of divs with <p ng-bind=""></p> inside of it

i checked the spelling, i checked the response. ill try it outside of <p> tags just for the fuck of it
>>
>>52910329
>the only way i can overide them is with !important.
That's just wrong. You have to match or exceed specificity and if you don't know what that means I guarantee you that's your problem.
>>
>>52910441
foundation.css is minified so any custom styles you need are in another css file.

Anyway i've worked out what i need to do to begin my project:

- Install bower
- Use bower to install my front end dependencies i.e jquery, foundation
- Use gulp to watch and compile my sass to css

After that i can just use jade as it natively compiles the pages on runtime
Thread replies: 255
Thread images: 23

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.