[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: 16
File: 2016-02-17 15.51.08.png (523 KB, 822x552) Image search: [Google]
2016-02-17 15.51.08.png
523 KB, 822x552
OLD THREAD >>53903856
> Discord
https://discord.gg/0qLTzz5potDFXfdT

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

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
http://www.freecodecamp.com/
http://www.codewars.com/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

>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.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

> How to get started
http://www.youtube.com/watch?v=pB0WvcxTbCA
Good videos on the channel too
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

>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

>Challenge
http://pastebin.com/xshVcWjb
>>
It's tough to make threads on a cellphone.
>>
>>53939563
What do you use at work /wdg/?

Python+Django here. It's actually fun as fuck now doing webdev
>>
>>53939602
Wordpress

Its not as bad as /wdg/ would make you believe
>>
>>53939602
I'll let you know if I ever get hired.
>>
>hear about docker
>wow this is super awesome
>looks super easy to set up
>start doing it
>realize it is now on version 2
>annoyingly complicated to replace "links"
WELP

Any suggestions for hosting multiple environments on 1 server?
>>
Anyone have sites that are generating money? If so what are they about?
>>
>>53939576
It's tough to do anything serious on a phone.

I don't understand the whole "mobile revolution" thing, since everything about a phone is a toy version of a real thing.
>>
>>53939980
Phones are more for accessing shit rather than creating it though.
>>
>>53939941
Yes, let me just increase the competition from 0 to 1 by telling you.

The last time I gave away an idea some guy kickstarted it for 70 grand and got 100 grand. Yes, I'm mad.
>>
>>53939941
https://news.ycombinator.com/item?id=8844083
>>
>>53940545
Ideas are a diamond dozen. Its all in the execution.
>>
>>53939980
Literally on-demand convenience.
>>
>>53940566
Yes, I execute. If I didn't then I wouldn't have responded.
>>
>>53939665
>Wordpress
Pajeet please go
>>
>>53939602
php
wanna kill myself
>>
who /es6/ here?
>>
Can anyone explain to me what migrations are? I guess they modify the database, but I don't understand when you would call 'rake db:migrate' to make it go into effect. Would you do it every time you want to add a row or file to the database? Or is it only when you create new tables?
>>
tfw don't want to use python because of all these meme names

>celery
>crispyforms
>tastypie

Literally wtf. How am I supposed to consider this shit professional quality?
>>
>>53941762
Fucking everything has names like that now.
>>
>>53941676
Migrations basically allow you to create a database, some tables, and fill the tables with default data if you wish. Migrations are good if you need to move or create a new site, it'll take care of the DB side so you don't have to do it manually every time you deploy a site.
>>
>>53941310
Some of it.

I'm trying to be strict about "let" and "const" where possible. ts-lint is pretty good at enforcing that.

I think the whole class system is just overdone though.
>>
>>53939871
Define "environments".

Just have nginx proxy to a number of different backends. I'm running Rails, Erlang and two static sites on one server without any magic.
>>
>>53939665
It's not bad for the right problem. It's just that most Wordpress users don't ever get involved in the 'd' part of /wdg/.
>>
>>53941310
me

>>53942673
>I think the whole class system is just overdone though.
i thought it was useful
>>
Who else pumping out websites and apps like mad hoping to make enough to quit their job?

All I want is to sit home and work on ideas all day, every day.

Getting there.

For anyone wanting to, make your idea as an idealess template, then branch in your idea and come up with more uses for the template.

This app is 4 different ones on the same template. My website is 2.
>>
>>53943533
My own site will go online soon. I chose a format that's easy to keep expanding. But I will focus on content creation and marketing until it becomes a success. Dont have time to focus on many small sites. I just want one big one. We'll see how it goes.
>>
What do I do if I'm good at webdev, but shit at design
>>
>>53944067
Look at the sites of other people. And see what you like.
My best designs are inspired by other sites.
>>
>>53943533
My friend literally spent his entire summer holidays making like 20 different (as in completely different), HTML 5 website designs.
Then he made websites for atleast 70 different clients over the next year, just by using those designs, and making minor tweaks that only took him a few hours work, and charged $700 per website.
The madman make 50k like that
>>
>>53944067
tbqh i am really bad at coming up with designs from scratch as well
I just look at other websites and copy them (not exactly, but i get inspiration from that)
>>
>>53944067
Focus on the back-end, that's where the real money is anyway.
>>
>>53944313
not really, if you know js and meme frameworks u can mek good moni wit frunt end bru
>>
>>53939563
That feel when people don't handle the whitespace properly in the markup.
>>
>>53940566
I do not believe this. Honestly at this point it's just some played out advice from the type of personality that always thinks he's "telling it how it is. " the most important thing, I belive, is the idea.

A good idea will actually motivate one to execute. A bad idea will leave the person doubtful and will sooner forget it than pursue.
>>
To you guys who chose web dev over regular programming: why?
>>
>>53946078
Backend programming is not irregular.
>>
>>53946078
What's irregular about web dev?
>>
>>53946151
Do java and c# and other programming languages get used for backend a lot or what? Sorry I'm still unfamiliar for what each programming language is for.
>>
>>53946186
Java not so much, I think C# is used commonly by people going the ASP route.

Almost any language could be used, helps if there's support and standards of it for use in the web development environment, e.g. compare the before and after of WSGI for people using Python
>>
>>53946186
Not him, but Java and C# are indeed used for backend programming. I'm not sure if they're used a lot though, C# is definitely used with ASP.NET, but I've not heard of anyone using Java anymore, just Python/Ruby.

Backend programming is not that different from desktop/application programming. With desktop/application programming, users submit a request or fill in form details, and the program spits out a response, which is pretty much backend being put as simple as possible.

In between getting a request and giving the user a response, the same things can happen in the background. A Unity WebGL project, for example, gets compiled to JavaScript before being displayed online, from what I've heard.
>>
>>53946078
You can get paid for it.
>>
>>53947119
Yeah, the whole getting paid thing is mostly what does it for me.
>>
File: 911.png (320 KB, 469x560) Image search: [Google]
911.png
320 KB, 469x560
https://www.wordfence.com/blog/2016/04/panama-papers-wordpress-email-connection/

Panama papers were leaked due to vulnerabilities in a Wordpress slider

I just can't even make jokes about Wordpress anymore.
>>
>>53941310
ES6 + async/await reporting in.
>>
>>53947159
I truly hate that Wordpress needs plugins for so many missing core features, like sorting posts.
>>
>>53947513
Now I think about it. I think I'm going to write one.
>>
>>53947530
VULNERABILITIES
>>
>>53946186
Massively. Like i wouldn't be surprised if java, c# and php represented over 90% of webdev market. It's hard to realize in hipster dominated news how minor the latest shiny toys like nodejs really are. It's much cooler to report that latest famous startup built it's platform on nodejs and forget how probably most of the bank sites are built on java or that wordpress absolutely dominates basic websites market.
>>
>>53947159
>Revolution Slider at fault again
goddamn, that was a year ago, update your fucking plugins. They had it coming
>>
I am working on a database management system for a project.I am using SQL SERVER.Please recommend a cutting edge server side language fellow autists.
>>
>>53949021
Go/Erlang.
>>
>>53949021
C#
>>
>>53949039
Are they compatible with sql server?
>>
>>53949055
You need to go out of your way to find a language that does not have an SQL driver.
>>
>>53949084
thnx pham
>>
>>53949021
Don't listen to this ( >>53949039 ) autist, listen to this -> >>53949043 guy with a job instead.
>>
I've been trying to install ROR in windows but without success.What do?
>>
>>53949021
Haskell
>>
>>53949150
get insiders preview build and install it onto the new ubuntu-on-windows system
>>
>>53949150
Install virtualbox, install vagrant, run a virtual linux machine on windows and use it as a development sandbox.

Alternatively wait until Ubuntu/Bash is available natively on Windows.
>>
>>53949146
>listening to corporate shills
>>
>>53949267
>C#
>muh corporate
that maymay is already dying
>>
I don't know if I should learn Node.js or RoR for my final project. I have started with Rails tutorial by Hartl and it is amazing + with it I build just what I need (a basic social network on which I can continue working), but on the other hand, I think I'll have troubles installing and hosting it, also, I already know JS so I was thinking about actually learning Node and Angular for this.

The problem is, I can't find a similar tutorial to Hartl's for Node. It seems much more complicated if I want to build a social network, Rails has a lot of premade stuff for the fast prototyping. What do you think?
>>
>>53950014
Not sure exactly what hosting you need, but if you just need basic features you can just push it to heroku. Both Node.js and Rails apps work perfectly fine there.

Also, this is probably the best MEAN stack tutorial I've seen.

https://thinkster.io/mean-stack-tutorial

I would just switch Mongo with Postgres. You can check out that package here:

https://github.com/brianc/node-postgres

You'll be making something closer to reddit than twitter though.

That way, if you use heroku, your postgres settings will work by default.
>>
IRC is dead
>>
>>53950068
Thx, looks good. I want to create a network similar to letterboxd, basically I'll need users that could follow other users, you could write reviews on your page and create watchlists etc. The thing this tut seems to be lacking is pictures, I still don't have an idea what was created in the end, and you have to pay if you want to watch the videos.
>>
Hey /wdg/,

Trying to start up a node app and I get this error.
node app.js

module.js:340
throw err;
^
Error: Cannot find module 'mongodb-core'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/cognitios/palette-master/node_modules/connect-mongo/node_modules/mongodb/index.js:2:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/cognitios/palette-master/node_modules/connect-mongo/src-es5/index.js:12:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)


How can I fix this?
>>
>>53950381
>cannot find module mongodb-core

you don't have mongodb-core you dumbass
>>
>>53950414
Thanks
>>
>>53950381
You probably haven't run the
npm install
to install all the dependencies from the
package.json

If you don't have a
package.json
, then run (on your project's folder)
npm init && npm install --save mongodb

This would probably install mongodb-core with it
>>
Anybody knows how these flowers were made? Some 3d library or...?

http://thelawofthejungle.com/in-the-face-of-danger

The whole site is nice but the loading is unreal lol.
>>
>>53950761
Also, is this shit SVG? Why do I still don't know SVG?

http://www.200miles.com/revenant

Inspiring. But kinda pointless.
>>
>>53950800
Looks like canvas shenanigans with a video background in it.
>>
>>53946063
Butthurt "ideas guy" detected.
>>
Shit, do you guys know some good source for learning web design? I mean, I'm not a noob, but I am never satisfied with the work. I need some good graphic design course, but with focus on web. Could be a torrent too. YT video lessons are the crappiest thing I have ever seen in my life.
>>
>>53951131
Not him, but I would rather be the idea guy that can develop websites than someone who can just develop websites.

What are you trying to poke fun at again?
>>
Hey guys I've been watching Crockford on JavaScript and I'm on the third lecture and i didn't understand half of it. Am i fucked?
>>
>>53951490
No, its 'advanced' level shit
>>
>>53951590
An anon told me to start there if i want to learn Javascript. Where do i start then?
>>
File: mrmeeseeks.jpg (94 KB, 809x1000) Image search: [Google]
mrmeeseeks.jpg
94 KB, 809x1000
>>53940944
I know the feeling
>>
>>53951727
Why? PHP is not that confusing.
>>
>>53951627
More of en entry level tutorial series

https://www.youtube.com/watch?v=fGdd9qNwQdQ&list=PLoYCgNOIyGACnrXwo5HMCfOH9VT05znGv
>>
>>53951788
Define "not that".
>>
>>53939602
Two main stacks are:

Node.js/ES2015+Python+bash+Postgres+Ubuntu

PHP+Python+bash+Postgres+RHEL
>>
>>53951788
Hating PHP is a meme here. These cunts have fallen for it.
>>
>>53952477
Nobody here hates PHP, it's just utterly useless for the modern world
>>
Hey /wdg/

I'm more or less a NEET who wants to learn. I tried codeacademy but it was way too "hand holdy" and I didn't feel like I was getting anything out of it.

I watched the "how to get started" video in the OP and watched the beginner HTML video from the same dude. I feel like I got more out of that than I did from CA.

Anyway, any tips for someone just getting started? Any other good learning resources that aren't like CA (i.e. "put this tag here congrats you're done the lesson) type of stuff?
>>
>>53952679
As with anything, the best practice is making something you're interested in. Find something you want done, and do it
>>
>>53939602
We currently use Java on the server and mixed PHP and Javascript on the clients.
PHP is not that bad - it's simple and "development" is fast with it.
Javascript is worse I think - the problem with JS is that majority of JS work is "write-only" and there is no chance to maintain the code in long-term (like proper Java code). It has to be rewritten once a while instead.

Maybe we're just JS dummies and we should stick with GWT instead.
>>
>>53952653
More memes, yay.
>>
Rate my first semi-successful site(s). Since I've launched less than one week ago I've had exactly 1546 unique visitors and over 300 images (135MB w/ lossless compression). Not a lot to some of you but pretty big for me, espesially since Ive almost done 0 promotion personally.

What can I do to make it less shit?

skid.host, pls.press and idontfuckingcare.online
>>
>>53950014
Btw, any more help on this? I might have to do it with Ruby because Node still looks confusing as fuck, probably just bad tutorials (compared to Hartl's).
>>
>>53952823
And I thought it's amazing that I got 30 visitors in a week on my WP news portal. Then again, I have like 5 posts, but it's up on the server and I'm not even finished developing it yet. No new content until I finish.
>>
nginx or apache for high-volume connections through PHP?
>>
>>53952930
Bit of a different market though. Easier to get clicks on images than a blog post.
>>
>>53952997
People say memeix uses a lot less resources, although personally Ive never had any issues streaming video or large files to a notable number of people on apache. Apache also has a decent amount of features compared to niggix
>>
>>53952776
>Javascript is worse I think
You're just asking to get shit on around here.
>>
>>53953043
Java babies saying anything bad about JS deserve to be shat on.
>>
>>53952823
I'm guessing this is an image host? I'm not going to upload an image to find out, so tell me about it first.

Add social media login, sharing and in-line commenting with a voting system and you will have a better version of imgur.

Those aren't bad numbers for the first week. I will be interested to see future numbers. I launched a month and a week ago and am only at 1.5 to 3.5k a week myself.
>>
Any designer here? I need some inspiration for my website. I was going through awwwards and dribble, and while there is cool stuff, a lot of it is too much. I'm kinda thinking about going with swiss style look, or fashion magazine look for my portal, but I can't find much examples of that. Everything is the same and I want to be a contrarian. Heh.
>>
>>53952823
doesn't work with giffies but it tries to upload anyways?
https://i.pls.press/L5vr04z.gif
>>
>>53953144
I mean, I could do this as Ive already made a semifunctional forumware, but I wouldnt really know if id be able to properly manage a social site and dont even know where I would start to promote that..

>>53953293
Yeah I'm just trying different methods for different image types (hence why I only support jpg, png, bmp and gifs).

Ill try and get it working in the morning thanks
>>
>>53939563
I'm just getting started with web dev and I'm wondering what sort of development environment you guys have?

Should I invest in a cheap host? I want to fuck around with back and front end for now.

(Sorry, I know this gets asked 10000 times)
>>
>>53953528
Yes. Digitalocean is good for that.
>>
>>53953570
Thanks. I appreciate you didn't lash out on me, and actually helped.
>>
>>53953570
Not him, but thanks

>>53953593
It's not something I've seen asked multiple times, don't worry
>>
>>53953528
vouch for
>>53953570


Used them for my personal site for over a year as its extremely cheap and they don't really have any downtime that Ive ever noticed
>>
>>53953593
There's a few of us here that don't mind helping. Ignore the others.

When you signup go look for promo codes to add for 10 dollars. Basically 2 months for free.
>>
>>53951788
It's not confusing, it's just poorly designed and is a huge headache compared to other languages. It's also the default choice for people who don't know what the fuck they're doing.
>>
any torrents for node courses? i'd like to find some from treehouse.
>>
>>53939871
ask liquidweb
>>
>>53953655
Do you really think that? For me PHP was the first language I became fluent in and compared to 'real' languages its extremely easy to use without having to see the docs.
>>
Can anybody explain to me free Heroku hosting? I don't know anything about hosting. So, it sleeps for 6 hours per day, but I can put anything on it, be it small blog or a bigger web application? How good is that? Is it at least good for some college projects?
>>
>>53953635
And if you don't know how to setup stacks they have full step-by-step documentation on how to do it.

I learned how to set up LAMP and LEMP stacks and use firewalls as well as SSH through their guides.
>>
wdg

Whats a good resource to gain a general understanding of AJAX JS and JQuery
>>
>>53939602
Hi, could you make some pointers for my project? First time doing web dev of any kind, trying to learn Django but I've worked with python for some time now.

So I'd like to build a site where users can create galleries with any content and then choose among other users allowing them to view the content. Users that are not invited can only view previews of that gallery.
I did some of the shit but I think I may have lost it on models.
Also, should I use the basic login/logout?
>>
>>53955363
Any other specific kind of pointers? Frameworks are huge things

In regards to your current ones, when you were going through the tutorials, were you using your creativity to extend the concepts to get a better understanding? If not, it's easy to think of the whole request->response thing using 4 layers or stacks:
1. models - these are like the python-coded database tables you use for your site. You might have a gallery model which has a 1-to-many relationship with image models. There could be a table that assists a many-to-many relationship between users who are invited and galleries, etc
2. forms - you might not use this as much in your context excepting setting up accounts, but this is where you deal with requests: users submitting information about themselves, uploading images, accessing an image, accessing a gallery, setting up a gallery, etc
3. views - this is how you transform a request into contexts a template will understand. If a user requested to see gallery #9834, a view should set up variables that link to gallery #9834's info, like the name, the images in it
4. templates - think HTML with variables, and some control flow like ifs and fors. Your view will transform this into a valid HTML page, which gets sent to the user so he can see what he requested

For login/logout, do you mean for admin? You should use it
>>
>>53955363
>>53955592
Also keep in mind that it's not going to be absolutely trivial. Design aside, which you can either easily learn or pay someone for, hosting images, being secure, internationalization (if you care about it), along with other things will need addressing. For a first project, you may need to forgo some of these things, but if you want it to grow and rake in cash, for example through ads only if you want, then you need to know it's going to be somewhat a long road, but it'll be fun and rewarding
>>
>>53955592

I managed to set up a gallery, you can add images in it and you can update it and delete it as you wish, also did slugs so you can access it by name rather then by id.
Found some bootstrap generics and made it a bit cleaner.
The part I can't figure out is how to set up an account that is how to allow people to sign up.
I can do CRUD because I'm logged in as admin but how to actually have accounts?
Also, I would like to maybe differ the types of users making them into 2 separate categories, the ones that can make/view galleries and the ones that can only view them .

>>53955747

I only want to do this locally, get the skeleton up and running nothing fancy, just to get the basics right.
>>
>>53953528
Digital Ocean sells Virtual Private Servers, meaning its a box somewhere that has linux installed on it, and its then your job to configure it. If you don't know shit about linux then you're going to have a hard time with this.

If you actually want a development environment then just download whatever you're planning to use and install it locally on your machine. If its php then just install XAMPP.
>>
>>53955804
It sounds like your issue is more on database design, users, user permissions, user types, etc. You should also look into being RESTful
>>
>>53955960
Thanks, will give it a look.
>>
Hello /g/,

I'm struggling with this fucking slideDown(200) on my navbar, it looks jerky as fuck, and the background of my dropdown doesn't always appear the whole way. Does anybody here have experience with jquery and slidedown or just dropdown effects with navbars like that?
>>
>>53956186
I have no experience with trying to debug code via telepathy because someone asked for help without providing an example of their code on codepen or jsfiddle.
>>
>>53956186
Generally, the people who write jQuery plugins (or any library that depends on jQuery) don't give a single FUCK about performance. None. They don't understand performance, they don't know what it's about.

Do not use jQuery and anything that depends on it.
>>
>>53956248
>Do not use jQuery
Not him, but itsn't it regarded as being a must for webdev? I don't deal with it that much, just the py/django side of things, but curious
>>
>>53956300
It's kind of mandatory for entry level stuff, yes.
But when you want to make something great, it's not the right tool.
>>
>>53956248
Thanks, do you know of any alternative for it though? I need a simple drop down for this navbar but I don't think pure CSS would cut it.

>>53956229
Sorry, I didn't think of it.
https://jsfiddle.net/keuoo9a5/1/ here, this is basically the working version of it. My actual navbar has a bigger dropdown with more links, an actual background, several containers, and it just doesn't slide down smoothly, + has this background issue where the background-color only appears for like 200px of height.
>>
>>53956410
Generally, the golden rule of animation performance on the web is to only animate certain properties that trigger ONLY the compositor - things like changes to opacity, transforms, filters and so on.
Also, one should NEVER do animation with setTimeout(which jQuery uses to protect idiots from themselves), but requestAnimationFrame or CSS transitions.

The jQuery slidedown function transitions height (which is bad - changing the height triggers a full layout recalculation on every frame, which almost always induces jank) and it uses setTimeout, which makes it one of the worst functions ever. jQuery.animate is useless in general.

Replacing height animations with transform: scale does increase performance, but it also scales the content, which might look terrible in your application. You'll have to check. You might also try setting a CSS transition property and then animate the height by setting the height to the element's scrollheight or something - you'll still be animating height with all of its flaws,but maybe with it being a CSS animation, it won't stutter as much.
Animating opacity will surely be the easiest thing to do. It performs well and looks good.
>>
>>53955949
Or google "how to install lamp digitalocean" and actually learn how to do it correctly in 5 minutes tops.
>>
>>53956722
If it takes someone 5 minutes to setup LAMP using a guide, they probably didn't need one anyway.
>>
>>53950454
I keked at that reaction
>>
PHP is cancer
I want to make a forum, so what would be the best language for server side scripting
>>
>>53957137
PHP
>>
>>53957137
python
>>
>>53957137
Go.
>>
>>53953848
>extremely easy to use without having to see the docs.

Except you have to consult the PHP docs all day long because of the inconsistencies in the standard library.
>>
>>53957364
Not really, once you learn the most used function you're fine.
>>
Jesus Christ.

I'm a total novice to webdev and I just set up a AWS virtual Ubuntu 14.04 machine.

Christ that shit was annoying as fuck to setup. Is this shit always this hard? I managed to get it to work after 3 hours.

I thought webdev was easy money lads.
>>
>>53957528
You learn it real quick. Chinese and Indian botd try really hard to break into VPS so make sure you disable root password and SSH with a ridiculous passphrase. Also iptables is a good idea.
>>
>>53957075
Not everyone can remember php5-libapache2 or whatever. I've set up 4 LAMP environments over the past 2 weeks and don't even remember.
>>
How do I install RoR on Windows 10? Is Railsinstaller any good?
>>
>>53957916
I disabled root and using private/personal SSH keys. Amazon generated the key.
>>
>>53957965
See
>>53949165
>>
>>53958112
He doesn't have to go through all of that shit. RoR runs fine on Windows.
>>
First for dead thread. Go learn a REAL language like Machine Code.
>>
>>53958112
But I don't want to do that. Isn't it some other, normal, way of doing it?

>>53958410
>>
>>53958446
Go and C are real languages, senpai.
>>
Finally figured out resizing in plupload.

I can now take mobile upload images and resize them to the width of an iphone in 16:9. Saves me 90% bandwidth and storage.

Might do 1.5x screen size for a little zoomage.
>>
At the price of sounding retarded, how can I make it so only I can AJAX request PHP pages?
>>
>>53959127
Context?
>>
>>53959168
AJAX call to PHP page getting image data rows from mysql and returning.

AJAX calls are from an app made with Cordova on cellphones.

I don't want people doing a quick decompile and ripping my code because it would work.
>>
>>53959244
I... I should go to bed. None of this made sense to me.
>>
>>53959244
Can I just leave the included js on the server and keep cross-origin resource sharing off?

The js would be on the server, but the html would be local to their device. Not sure if that would work or not.
>>
>>53959686
Still makes no sense.
>>
How should I go about making my navbar do a dropdown instead of leading to a link when the user is on mobile? Shit's weird
>>
>>53959865
That's where JavaScript comes in handy.
>>
>>53959862
How not?

HTML and JS in an app on mobile. Cross-origin sharing has to be on for AJAX to work. You could get all of the javascript from the app and put it on your own website and it would work because of cross-origin.

People could copy the app and put it back on the app store under a different name and it would work.

I need this to not happen.
>>
>>53960021
You can't.
>>
>>53959961
Thanks, I just looked up some way to do it in jQuery and it will come in handy. Another question though, how come on some websites the navbar have actual links in the href but still allow you to click the a tag and get a dropdown instead of opening a page?
>>
>>53960085

Clicking those links usually results in some JS code being triggered rather than the usual href stuff. In JS you can target certain elements (buttons, links, even entire divs) and define what happens when they are clicked.
>>
>>53960048
Really? App logic can't be that fucked, can it?

I can't get the app stores to send me verification token or something to tie to the user as a key pair? There's absolutely nothing?

Donkey dick.
>>
>>53960195
If they are capable of extracting the JS, they can also modify it to bypass almost anything short of accounts in your database.
>>
>>53960159
Thank you very much, I understand it better now. I have been googling and can change the URL on click, but I'm having trouble making it so that this happens only at a certain resolution.
>>
How can I put ads in a small web app like a game or a chat app? I tried to register for Google Adsense but they rejected my application and told me I had "insufficient content" because it lacked a lot of text.
>>
>>53960276
Admob. Never use adsense.
>>
>>53960480
thank you so much, I remembered something like that but couldn't quite remember it
>>
http://jennmoney.biz/

I have absolutely no idea what to make of this. She's a web dev, apparently
>>
>>53961280
>http://jennmoney.biz/
>https://medium.com/@brianlellis/legitimacy-went-out-the-door-for-me-with-california-style-sheets-and-trying-to-explain-the-w3c-afd3e8441139#.xjgfplg04

Wow, this is exceptionally well crafted trolling
>>
hey /g/, I posted earlier about dropdown issues etc, thank you so much for helping me out, it's 6am but almost everything works just fine now.

I have one thing I have not been able to solve alone or google for, and it's that I am using a css transition on my nav's li, which themselves contain a div that has the css class with the transition.

Now, this works just fine on my mobile navbar, but for some reason, the normal navbar just has no animation whatsoever, it just shows the container straight-up. If that makes no sense I can try to post a codepen and adapt the code or whatnot!
>>
I swear to god every time I go into a programming thread I'm bombarded with the most idiotic opinions. This is why I hate /g/. Nobody has programmed professionally, they just sit around in their underoos writing jacking it while writing FizzBuzz for the 30th time in C.

Except you guys, you're cool.
>>
>>53961695
fixed it, just couldn't use css transitions with display:none, had to use visibility:hidden instead
>>
>>53961280
>http://jennmoney.biz/
at least it's better than generic bootstrap
>>
What Front End framework would you guys recommend?
>>
>>53962784
I'm using ember.js at work.
Seems okay.
>>
>work on angular 2 tutorial while on "vacation"
>it all breaks
>try to fix it
>install nvm
>do lots of things to troubleshoot
>no dice
>week later { today }
>decide to git clone new ang2 repo
>npm install works
>npm start works
>app works
what the hell, it works now?
well, hurray, i guess?
i can actually continue with my project and not spend any more time troubleshooting so that's cool
>>
>>53962784
react
>>
>>53963329
welcome to nodejs.
one day it works.
the other day it doesn't.
>>
What's a good freelance website that isnt infested with prajeets?
>>
>>53964049
everywhere is pajeet. pajeet is everywhere. get used to it. CS, software development, computer engineering, electrical engineering...pajeet is dominant
>>
File: 1441052677077.jpg (25 KB, 622x464) Image search: [Google]
1441052677077.jpg
25 KB, 622x464
>>53939665

I remember when I started out and knew next to nothing, outside of what I learned in Software Engineering. Then it seemed that Wordpress is the shit.
>>
>>53964232
VULNERABILITIES
>>
when i create a new c# web forms application in visual studio is already comes with a login, register page, etc and it works. How is the data being stored and all that? i never set up a database or anything. A lot of shit is already done for you.
>>
>>53964066
what the fuck is pajeet?
I keep hearing this word. It does not exist in urban dictionary. Please define it for me.
>>
>>53964622
pajeet pls
>>
>>53964649
Cmon man. I really want to know.

Does it mean like "newb" or something?
>>
>>53964614
I recommend not using the templates.
Use the "empty" one instead. It comes with much less bloat.
And webforms should be avoided today anyway, don't go there.


The template uses sql server compact, you can see the database file in your connection string.
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-WebApplication2-20160410114845.mdf;Initial Catalog=aspnet-WebApplication2-20160410114845;Integrated Security=True"
providerName="System.Data.SqlClient" />
>>
>>53964657
it's an indian name suggesting that he takes your job for much less pay then someone from the west would.
>>
>>53964657
Either use some deduction or browse longer, I didn't think anyone would find it hard to pickup, most people get it instantly
>>
File: a57MwDy_700b.jpg (100 KB, 485x723) Image search: [Google]
a57MwDy_700b.jpg
100 KB, 485x723
>>53964622
>>53964657
> This is the first thing that comes up when you google Pajeet
> Current year
> Not knowing how to find information
>>
>>53964688

Wait, so the "pajeet" is the low wage worker?

or is it that when calling someone a "pajeet", you're saying you're the low wage worker?

>>53964689
I've been browsing for... my god, 6 years now. I think its 6 years.
I found this place when a friend in highschool showed it to me either freshman or sophmore year, I think. We were at some kind of event. They had projectors going, some dudes were playing super-smash bros on the projector, and lots of us had laptops... and my friend showed me some "creepypasta"'s, then showed me this place called "4chan". Back when you had to use "neko". Because I didn't know this at first, and I kept creating threads and not being able to find them, because I didn't use "neko". Or was it "noko"?

Sorry, nostalgia, point is I think I found this place in like 2010. Because I'm 22 now. So that means I've been browsing for 6 years I guess. So i'm not a newfag and I don't need to browse longer. I kinda tried to figure out "pajeet" for a while with context-clues, but honestly, not every word can be figured out that way.

Especially since I only lurk these threads once in a while. I don't browse everyday anymore. I have a job now. (kinda. Not really a job. More of a payed-project. But same difference.)

God I'm blogging today. Sorry.
>>
>>53964773
Either new as hell or aspergers. Either way 2010 was the beginning of newfaggotry
>>
>>53964764
I googled it the other day, when someone called me a pajeet. >>53902613
I swear that pic was not in the results the other day.

Or my eyes didn't work, and I just didn't see them in the results the other day.

>>53964826
Whatever, bro. What have you done? (your web-dev projects, I mean) If you're so great (without newfaggotry) then surely you've got some awesome projects you can show off. Because you've been doing this for a while.

Why don't you post your last project for us all to see?
>>
File: 1453653438419.gif (147 KB, 850x613) Image search: [Google]
1453653438419.gif
147 KB, 850x613
>>53964858
>Why don't you post your last project for us all to see?
CHIP-8 emulator written in C and SDL1, CHIP-8 games using my own spec for CHIP-8 assembly/high-level, compiled and assembled using Python.

My current job is Python/Django backend web development. My personal webdev projects are not for prying eyes

and you???
>>
>>53964677

For my job they still have web forms for a lot of stuff. If i can store data in databases, etc using it why is it do bad?
>>
>>53964911
webforms is severely outdated. if you make a new project, don't use it.

nothing wrong with the database.
>>
>>53964895
Alright, Alright.
I'm a big enough man to admit when someone has me beat. You're obviously more experienced than I am in programming.

>My personal webdev projects are not for prying eyes
Why not? I was honestly just trying to bait you into posting because I'd want to learn off of you, by seeing how you chose to do things. (if your websites look/function better than mine, which I assume they do)

My current paid-project is https://mintjammusic.com/ .
I don't have a real job yet. Just this project.
>>
>>53964895
Also, do you know how to get http/2 working in apache 2.4?

I've been at it for a while, but can't seem to get it to work.
The server is sending the "Upgrade: h2" http header, but it appears as if the web-browser just isn't doing it. Because all requests are still http/1.1 even despite the upgrade header.

I'm not really sure what I'm doing wrong.
>>
>>53964773
if pajeet takes your job then you've been outsourced/replaced by an indian guy who copy pastes code from stackexchange without knowing what he's doing for a much lower price than you would work for.

like pressing install in wordpress and changing a theme is pajeets job.
>>
>>53964944

I hope you know the mobile version is fucked on that
>>
>>53964944
>Why not?
My work only knows about my webdev projects since it's what I used to apply.

In all fairness, you have me beat when it comes to webdev. I only do it as a job because money, and my hobby is in application programming, and they say not to make your hobby your job. I haven't had experience building and maintaining the entirety of my own site. I'll check it out

>>53964973
I have no experience in apache, sorry mate.
>>
>>53964999
I know, I know.
One thing at a time. I'll fix the mobile version once its 100% perfect on desktop. (it isn't there yet)
I also still need to do cross-browser support stuff. (kill me, just kill me, we have to support IE)

>>53965001
>In all fairness, you have me beat when it comes to webdev
I appreciate the complement. Not sure if its really true or not. The website might look kind-of alright because I've had a lot of help on the design. But the backend code...
... As I've said, I'm still learning. It still makes me nervous to even post a link on 4chan, because I'm not really even sure if the website is hacker-proof yet.

But hey. It's basically supposed to be "production-ready" by now. So I guess if someone from 4chan hates me and decides to hack me for revenge, then... well... they helped me find a bug I needed to find anyway.

>no experience in apache
Darn. Was really hoping to get some help. I actually attended a conference where the dude got us all hyped for http/2. I came home and tried to implement it, but...
No good.

I hope this isn't a mistake to post this link. I really, really hope it is not. But if anyone wants to tell me how to implement http/2, or what I'm doing wrong in my current config, then : http://www.lita.engineering/http2/configViewer#/etc/httpd/conf/httpd.conf
>>
What should be the max-width of a website today? I basically put a random number there. I currently have one with 1400px. What is your opinion on 100% width of the monitor? I usually use that just for the navigation and header images, but then they can get ultra thin if the width is big enough. I guess I should do some media queries.
>>
>>53965184
*shrugs*
1170px ?
It's a number that shows up in a lot of bootstrap templates. Not sure if this is really the best answer, but its probably an OK starting point.
>>
I'm constantly changing design of my blog for like 3 weeks now. Kill me.
>>
>>53965270
I might use that one. I need to read up on this stuff. I remember mentions of 960px grid from my web design course but I never liked it.
>>
>>53965184
>>53965270
>>53965405
I'm no expert on design, but why is it so common these days in CSS frameworks and websites to see people using 900-1200px max width containers for all content except the navbar?

Text width limiting is a given, it should be wrapped when it reaches a certain length so that a reader can effectively read paragraphs, but that's the thing, it should be the text which is limited, not the entire content container.

Just seems like 'responsive' CSS is screwing over desktop users, I hate seeing all these sites with fuckhuge gaps on both sides and it's probably going to get worse as 27" monitors become common. It's 50x worse when it's a site with user interaction, people still sticking to 1000px and users have to switch between sections of a control panel or scroll down just to see a little bit of content, when they really should be using an effective 100% width dashboard.
>>
>>53962487
If you cant use bootstrap as a foundation and not make it look generic then you're a shit designer desu.
>>
>>53966515
I agree, I was thinking about that too. Well, I'm sure it partly has to do with a field of view, it would be kind of annoying if you had to turn your head a lot. For dashboard maybe it would be better, but e.g. news portals (my case), I don't know how the content would be organized. I think it would look too chaotic. And ofc, there is not that much content to fit all of that screen space in the first place. And then there would be even more media-queries to manage all the different layouts I guess. I think it can look passable when you have a white background because it doesn't seem too obvious that the container is that thin. And the headers and navigation bars are colored so it's better to just give them full width than cut them. On the other hand, some websites just use some background image or ads to make it seem fuller than it actually is.

Who knows what trends will emerge, but I agree that it would look nicer if all that space could be used (in a productive way).
>>
>>53966581
>making bootstrap not look like bootstrap
Yeah good luck with that.
>>
>>53967706
I don't get it how people can have problems making the website not look like bootstrap. Please somebody explain this to me. You can stylize everything, even the navigation. It could have the generic dropdown, but all of the navigations are more or less the same. Size, colors and positions could be modified though.
>>
How do I stop a promise?

Let's say I have a promise chain

check if a certain file exists in a certain folder -> if it doesn't check if the folder exists -> if it doesn't create a folder -> store the file in that folder

but let's say the file exists and I don't need to go any further, how do I tap out??

let a = () => {
return new Promise( (resolve, reject) => {
setTimeout( () => {
resolve(1);
})
});
}

a().then( (data) => {
console.log(1)

//somehow stop here based on some condition
}).then( (data) => {
console.log(2)
}).then( (data) => {
console.log(3)
});
>>
>>53968258
http://stackoverflow.com/a/20715224
>>
Are there any problems if I develop Rails web app on a cloud IDE (Cloud9)? Because I'm on Windows 10.
>>
>>53968376
>Rails
>cloud IDE
>Win10
pls b joke
>>
>>53968470
whats the problem? i want to do a school project on it and im more familiar with it than with node.
>>
>>53967768
It's only people who buy into the "all bootstrap websites look the same" meme.
>>
>>53968319
>stepOne().then(stepTwo).then(null, handleErrorOne)
I don't get it, it still console logs 1, 2 and 3.
http://codepen.io/anon/pen/ONQMjo?editors=1010
>>
Is there anyway to make sqlite require credentials to connect to it?
>>
What is /g/ opinion on Ajax Vs Websockets?

Which one do you favor & why?
>>
>>53968766
just throw an exception, seems to be easier.
>>
>>53968831
>What's is /g/ opinion on walking or flying? Which one do you favor & why?

It pretty much depends on how often and how quick you need new data, a feed that updates every 30 second isn't going to need websockets, but a chat that polls every second would.
>>
Anyone tried Semantic UI?
It looks pretty slick
>>
>>53969387
The naming always rubbed me the wrong way.

How the fuck is it semantic?
>>
>>53969387
I'm going to learn it. Seems neat.

>>53969872
It reminds me of that stupid antivirus symantec or whatever. I've ignored it because of that.
>>
>>53969387
I love anti-semitic UI
>>
RoR-People: why is Rails so shitty? Why cant i define my models in code like in Django ORM or SQLAlchemy ORM?
>>
>>53939563
i have some experience with angularjs but now that angular2 is out i don't know if i should start learning that or change to react
>>
>>53969387
>>53970040
Aside from the name, some of its features are pretty neat. Though I have seen a few cases of people doing stupid shit with it, like using the entire package in production (500KB+) and using no more than 10% of its features.
>>
Still not sure whether I should do my shit with Rails or Node. I can't find a good hand-holding tutorial for recreating social network like twitter for node. Fuck.
>>
>>53970068
That's why it's fading away. That and Python's language and libraries
>>
>>53969386
What about an advanced checkout system?
Which might require instant stock updates and plenty more,
>>
>ctrl+f meteor
>0 results

fucking plebs
>>
>>53970117
the setup video showed the installer only using the needed parts so that looked like a good way to cut down on file size.

i want to use it for this ui im designing
>>>/vg/138301942
>>
>>53970243
>meteor
Literally a meme framework built on top of other meme frameworks.
>>
>>53970299
Can you link that thread? I cant get there on mobile.
>>
>>53970299
It has the standard support for using it with grunt/gulp doesn't it? That'd be the best option so you can quickly enable/disable each part and then rebuild.
>>
>>53970384
>>>/vg/138301942
>>
>>53970384
shit when i posted the full link it auto converted into the
>>>
format, sorry
>>
>>53970449
I was able to see it, then I realized you didn't have a question, so...yeah.
>>
I've been using opacity on containers placed on top of gradient backgrounds. Am I literal human shit that needs to stop right now? Can I use another div as a transparent overlay to get my text to come out looking normally? Does that make me some other kind of shit?
>>
>>53971154
Lets have a look shall we.
>>
>>53971305
http://codepen.io/disconnectvd/pen/XdVrgq

please don't hurt me daddy. also - how should I wrap up these fucking forms in some semblance of order. I'm doing daily-ui obviously
>>
>>53971371
my sides have capitulated
>>
>>53968258
I guess the only way to do it is by making promise chains inside promises which is ironic considering that one of the goals of promises was to prevent callback hell.
>>
>>53971154
>>53971371
what the fuck are you doing
>>
>>53971371
Whatever you're doing, stop. stripe.com
>>
>>53971418
>>53972066
>>53972201

I'm not going to try and put this on a website and use it to charge peoples cards. I'm just working off a Daily UI prompt. I understand that it will not and cannot ever function as an actual form.
>>
How do I style iframe in which is youtube video?
>>
How do you guys do your cross browser testing? Right now I've just been running the software on multiple computers but I'm sure there are more ways to do this.
>>
>>53972467
you can't style the contents of an iframe.

>>53972523
fire up multiple browsers.
for mobile I just test on one browser.
>>
Why is asp.net the best framework?
>>
how the fuck do you do access control in node with express?
i'm using passport for the authentication (basic auth + jwt) which is okay, but authorization is an absolute nightmare and i feel like i'm repeating myself for every resource...
is there a standard way of doing this?
>>
I have a BROWSE button and a SUBMIT button.

The BROWSE button is .hide() once a file is selected and the hidden SUBMIT button is .show()

For some reason, the SUBMIT button becomes the BROWSE button in function.

I'm confused.
>>
Is there an IDE or program out there that allows me to simultaneously edit my code and view the output like on codeacademy?

I want to see the results immediately without having to change one thing and hit the run button, have it open the browser, then repeat. That's too time consuming to me and inefficient.

Let me know if there is.
Thread replies: 255
Thread images: 16

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.