[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: 31
File: wdg.png (1 MB, 822x552) Image search: [Google]
wdg.png
1 MB, 822x552
>Last thread
>>54338529

> 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.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
>>
>>54367422
First for Rails
>>
php is shit
>>
File: 1445150437936.gif (627 KB, 500x363) Image search: [Google]
1445150437936.gif
627 KB, 500x363
I want to kill myself
>>
Django is awesome
>>
Just saw an ad asking for a Flash developer. Shit, I thought that was dead.
>>
I need a real job.
>>
>>54367750
Lol there are still paid FORTRAN devs
>>
NEET here, I've dabbled in programming since I was a little 13 year old shitposter and IRC idler now I am curious about web dev. I have no artistic design skills at all and front end web stuff bores the shit out of me. I used to love coding in C, solving problems, dabbling in exploiting stack overflows and the like. But I don't think I have the time to be fucking around with the fantasy of a l33t hax0r netsec job anymore. So what jobs are there in web dev that let me get right down to the metal and what languages might I need to pick up?
>>
>>54368077

Go learn some php then. You'll be right at home. Go do cs50 on edx.org and skip to the php part!
>>
File: futurePOS.jpg (82 KB, 1280x720) Image search: [Google]
futurePOS.jpg
82 KB, 1280x720
I'm trying to build a web app similar to the desktop application futurePOS, which restaurants use to make it easy for waiters to input food orders.

Currently I'm using nodejs and express for routing and buidling the views in ejs. The ejs gets the values for the food items from a module I am exporting to my main.js. Eventually I want to expand this to have to ability to save orders to a database and display graphs showing order statistics. I'l probably go with mongo for that.

Is there a simpler way to do this? I thought about going jquery only but it seemed pretty easy to just implement the data in a module and export it to an ejs page.
>>
>trying to get search engines to see core pages of my website
>bing, yahoo, and google can't see them
>mfw I have no idea why

I took out index.php and from what I can tell in the console debugger and networking URL calls my website isn't crashing.

and robots.txt isn't blocking any of the website.

what the hell else causes web crawlers to think pages 404?
>>
Why does all the content of my website aside from my the title and background images disappear after my HTML form is submitted with PHP?
>>
>>54369591

Have you heard of Meteor.com? It sets up all of the boilerplate for your JS/Mongo stack and can choose the officially supported Blaze, Angular, or React for the front end framework. If you end up using Angular or React you won't really need to use Jquery as its becoming out dated.
>>
>>54369658
I'll try this out, thanks!
>>
What are some good intros to web design? Not the programming as I have that down. I just can't into visually appealing.
>>
>>54369818
Just find sites you like and imitate that.
>>
Is it just me or rails makes me feel like a pajeet? Like my codebase gets so hacked together I am surprised it works. Is express like this too?
>>
>>54367422
is there anywhere you can get a basic ubuntu server for free?
>>
>>54370217
Is using your own computer not enough?
>>
>>54368077
web dev jobs aren't down to the metal. we're mostly gluing together other tools and using high level languages. but you could work for someone making those tools, e.g. databases, servers etc
>>
how can you make a div stay at the bottom of your page like a footer?
>>
>>54370923
in css:
#id_of_div{
position: absolute;
bottom: 0%;
}
>>
>>54370362
Not him, but how would you use your own computer as a server? I never really encountered the need to do so, but it's not difficult or troublesome isn't it? In my defense I always thought that a computer was either a client computer or a server, not something in between or both.
>>
>>54370362
i need something that can be accessed remotely. I do have a crappy desktop at home though, would I be able to use that as a server? Would I need to get a domain name?
>>
>>54371169
get used to using any backend tool... e.g. nodejs, lamp for php, whatever the fuck windows/apple use...

install them, read the instructions, and you'll figure it out eventually

>>54371207
yes you can use another computer. no you dont need a domain name. just boot up the server, make sure it's accessible on your network, and hit up the network ip / page, for instance 192.168.0.17:8080/my_page.html
>>
>>54371116
fixed, not absolute
>>
>>54371238
oh yeah you are right. i tend to not think in terms of traditional websites since i mostly work on SPA's.
>>
>>54371263
Same
>>
File: wordpress-logo-stacked-rgb.png (14 KB, 499x310) Image search: [Google]
wordpress-logo-stacked-rgb.png
14 KB, 499x310
>>
>get asked by boss to add some features to our survey system
>open the page js file
>its 3,500 lines of undocumented code
i wish i was at home playing video games
>>
real name or handle for github?
>>
>>54371313
is shit
>>
>>54371536

lastname-favoriteanimecharacter
>>
>TFW NO JOB
>TFW NO JOB
>TFW NO JOB
>>
>>54371844
Nice meme kid
>>
>>54372468
I have a job, but it's not as a web dev.
>>
File: 1444844798228.jpg (689 KB, 2304x1728) Image search: [Google]
1444844798228.jpg
689 KB, 2304x1728
>>54369591
Im working on the same kind of project. Rebuilding a POS system from the gound up with a web stack. Have you run into any really had issues so far? Im mostly doing the system and back end management and devlopment and have a friend I work with doing the database and front end.
I would really like to hear about any issues you have run into, I might be able to help you out.
>>
>>54372670
is it better than webdev?
>>
>setting up lamp
>setting up node/npm, installing 10000 modules
>setting up phusion passenger & ruby
>setting up uwsgi and & python
>setting up java & tomcat
kek


I'm enjoying the batteries included library and static compilation in Go while you're waiting for you modules to finish installing
>>
>>54373945
The only upside is that I'm not in front of a computer all day.
>>
>>54369591
Universal react, use it
>>
>>54369651
Because you're using php
>>
>>54371207
> what is Amazon Web Services free tier
>>
>>54373976
>Golang
Hell yeah boi
>>
>>54374423
Well what do you think you should do? Read some books on general design principles, learn about color theory, typography, grids, composition, some photography... You can find some decent books on /gd/ too.
Also, notice things, analyse design that you like and design from great designers, understand why it is good. Then copy things you like and try to improve them. Experiment, experiment, experiment. Make multiple designs and choose the best one. Browse through some design showcases and blogs. Check out some dribble and awwwards but don't blindly follow them because there can be designs that don't bring good ux. Figure out what is in fashion now, don't be one of the ignorant ones whose design looks like it came from 2000s. But don't go full hipster either so you don't look generic as fuck.

Check out design channels on yt, e.g. DevTips and Mackenzie Child. Check out some design processes of graphic designers, watch them prototype wireframes and how they work in adobe suite.

Many people (especially here) would say that you should just copy shit, but I think you should also know why you are doing what you are doing.
>>
I hope I'm going to sum up this well.
I have a text box, I want to write something in that box and search for that string literally in my database. Basically do a simple search bar. What would be the most simple way to transfer that string literally ?
Working with ASP.
>>
>literally

ajax my wigga
>>
Just realized my site looks like ass in IE8.
I've already tried normalize.css but that doesn't solve the problem.
I've tried adding this to the head, but that doesn't help either
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7" />


I don't know what else to do senpai. There must be some other CSS shit I can use to make it cross version compatible. It looks good in IE9 straight up to Edge.
>>
>>54375130
fuck ie8
>>
>>54372630
Nice denial kid.
>>
File: Capture.png (18 KB, 919x249) Image search: [Google]
Capture.png
18 KB, 919x249
>>54375166
Yeah fuck that. Gonna display a message instead if they're using IE8 and below.
>>
Is it possible to make webpage that would send login information to a PHP user authentication script, without using any PHP on the page itself?

If it is, how would restricted pages be handled without PHP?
>>
>>54375330
In the header of the form set the action attribute to the PHP script.
>>
>>54375130
Unless you're dealing with clients in a corporate setting, just design for ie9+
>>
>>54375342

I understand that, but how do I handle restricted pages you'd have to log in for?

I want all my pages to be HTML/JS only, with only calls to PHP scripts.
>>
>>54375365
>I want all my pages to be HTML/JS only, with only calls to PHP scripts.

That's what server side logic does already. PHP never resides on the client side. Just read about sessions on PHP and you'll understand about security checks. Basically just create an administration class that checks the session for proper login and than extend that class for your administration pages.
>>
>>54375397

I also understand that. So you're saying that either way the pages would have to be .php and check if the logged in user ID session variable is set?
>>
File: fme.png (28 KB, 765x393) Image search: [Google]
fme.png
28 KB, 765x393
Hey ni/g/gers...
So I'm trying to make a table with rows that scroll, but a header row that doesn't.
That's pretty easy to do with thead and tbody tags to separate the header row from the body rows.
Then I set the css display of both tags to "block", and "overflow-y: scroll" for tbody.
The problem is that then the columns don't line up. (pic related)
I can fix this by specifying the width of each column to force them to line up, but then I lose html's automatic column width allocation.
I'd like the columns to adapt to the data, especially since I'm trying to make a solution that works for any data you throw at it.
Any ideas?
>>
>>54375290
Nice arguments kid.
>>
>>54368062
Yeah, because old Fortran code is used in research facilities.
>>
>>54375415
Basically yeah. If you're that concerned about the extension being .php then you can hide it from the user. So instead of contact.php you could display it as /contact/
>>
>>54375422
The only way is with Javascript. Call a function to adjust the size after load.
>>
>>54375679
>The only way is with Javascript. Call a function to adjust the size after load.
Yeah, I was also thinking of putting the entire table in the thead part, but making the data rows invisible somehow, then repeat the data rows in the tbody part.
>>
>"Part of the reason why some people dislike JavaScript so much is that they didn’t choose JavaScript. JavaScript chose them. Nothing they could do about it."
lmfao
>>
If I use MeekroDB, or any other licensed library open for download, for my commercial PHP projects without paying the license, how would they find out if I'm doing that?
>>
>>54373976
>setting up uwsgi and & python
>not running wsgi apps with gunicorn

>setting up java & tomcat
>not scala & maven

WEW
LAD
>>
Is it legal to copy someones web design?
>>
>>54373976
LAMP is literally the easiest thing to setup, one click installation.
>>
I need a list of beginner apps, the types of projects I'd be assigned as an intro webdev. Anyone care to toss out some specific project names I could google? I'm learning js and node
>>
>>54376733
totally
copy everything, it's OpenSource™
>>
>>54376753
>LAMP is literally the easiest thing to setup
LEMP with php-fpm is a bit harder the first time though
>>
How much do you get paid as a freelance web dev?
>>
This guy I knew had a website.

The website was ran at his home

When I pinged his website the IP was 192.168.1.1

How?
>>
>>54376877
whatever i can negotiate

about 1% of what i make at my day job
>>
File: 1451667807824.png (48 KB, 500x500) Image search: [Google]
1451667807824.png
48 KB, 500x500
>>54376902
lel
>>
>>54376885
you are on the same LAN
>>
File: da real fat shady.jpg (409 KB, 768x432) Image search: [Google]
da real fat shady.jpg
409 KB, 768x432
>>54376885
because it was-- it was you !
damn
>>
>>54376877
I'm just a hobbyist, but when I get an order I ask 60 euros an hour.
I dont feel like working on someone elses stuff for less.

If it's unrealistic it's okay if the other blows it off. Because it's not my job. But so far everyone said yes and I had lots of fun doing it thinking about the cash.
>>
>>54376733
No, it's not.
>>
>>54376877
The real question is what happens after you get them up to page 1 in google search rank and you get paid and their phone doesnt ring and they realize the organic search meme is a ruse. Do they rape you with a broomstick or just come after your family or what?
>>
>>54376177
I don't know, but I don't think they'll be able to tell.
>>
>>54376980
Same goes with photoshop and shit lel
How can they know you use cracked versions ? as an indie obv
>>
Just found out about Webmatrix, why hasn't anyone mentioned it before? Seems decent to me.
>>
>>54376964
What if i will make whole css and bullshit myself, byt it will look very similar?
>>
>>54376919
No. It was hosted at his house like 10 minutes away. I thought he was lying but then I pinged it the domain and got that ip. How?

He was a network intrusion person.
>>
>>54377009
free cloud what could go wrong?
>>
File: 1451499058313.png (3 KB, 280x272) Image search: [Google]
1451499058313.png
3 KB, 280x272
>>54377036
>He was a network intrusion person.
then who was DHCP
>>
>>54377011
Then it's still illegal theoretically, but your chance of getting into trouble is getting close to zero because so many websites look alike. As long as the two sites arent going head to head in direct competition.
>>
>>54377036
DNS poisoning

This guy probably has your whole life. Ever seen the show Mr. Robot? Depending on what kind of porn you like Id consider killing yourself immediately.

No but seriously do a 'WHOIS <domain>' in terminal
>>
File: adsız.jpg (42 KB, 987x512) Image search: [Google]
adsız.jpg
42 KB, 987x512
hi anons
i need to find a algorithm which switches integer part and the other (dont know its english) part in a real number

for example, if input is "25.7", then output of algoritm must be "7.25"

any suggestions?
>>
i'm trying to catch data from an Arduino and send it to my Twitter API app. for now i've tried to fetch local files via AJAX into the browser and then send them via a timed loop, but local files seem to be stored in the cache and don't get reloaded after their contents are modified.

is there a less bullshit way to go around this?
>>
>>54376760
>>54376760
>>
>>54377096
.toString() and parseInt()
>>
>>54377115
read the fucking OP you spoonfed fagtron
>>
Hey webcucks I need to learn Angular2, the quickstart guide insists on TypeScript, can I use just JS?
>>
>>54377158
>I use just JS?
compile ClojureScript to CoffeeScript, it's the best way to minify it to TypeScript respectfully of ECMA specs
>>
>>54377158
Even though Angular 2 is written in TypeScript, you don’t have to use it to write Angular 2 applications. The framework also works great with ES5, ES6, and Dart.
>>
>>54377158
Any JS is valid TS.
>>
>>54377078
This was 5 years ago, I don't remember the domain.

Now that you mention that, I was talking dirty about a girl I was seeing in some 4chan thread and within 12 hours she had deleted all of her social media and everything. I had used a few picture fragments that couldn't be traced to anything.

How spooky.

Maybe he did install some shit when I wasn't looking.
>>
>>54377207
i think i can figure it out but i need you to upload dem pics first
>>
File: le javascript hacker.png (338 KB, 583x333) Image search: [Google]
le javascript hacker.png
338 KB, 583x333
Is he right, /wdg/?
>>
>>54377207
probably hacked to death
certainly not spooked by your psycho ass
>>
>>54377247
À͏̗̰̲̝͟b҉̴̩̪̣̰̮͖͝ş̲̮̹̱̼̼͙̠̟o̴͔͎̦l̖̰̲͚̤̳̝̝͠ͅu̷̢̟̘̖̮͈͉̺͍̩͘t̶̛̳͙̙̼ͅe̜͖͠l̙̱͚̲̕ý̸̶̗͔͓͔̱
>>
>>54377247
Until you look at apu's code
>>
>>54377193
>>54377196
thanks baes
>>
>>54377247
Once you understand JS and jQ, you will start hating almost all webdevs in existance.
>>
I want to handle accounts but locally,
a web app but by now i just want to do it locally

What should i use?
>>
Hey /wdg/ I'm a CE and I mostly work with embedded systems, I'm a complete idiot as far as web dev and JavaScript goes

I'm building a very simple node app and I'm trying to build a module which will have its own set of variables and methods ( a little matchmaking bot for a dota web chat)

I don't really understand what's the best way to export it and impory it since I need only one instance of it running alongside the rest of the app (which is pretty much just a webchat)

Should I build it as a class with functions as prototypes and constructor or is there a better way?
>>
>>54377375
just put it on your server but locally,
a hosting app but by now you just do it locally

lampp / xampp
>>
>>54377366
Why is that?
>>
>>54367597
This so much
>>
>>54377547
Webdevs are some of laziest and all around worst programmers in existance by average. Once you raise your bar, you see how poo in loo most of the rest is.
>>
Interested in this
Not just front or end, if i'm interested in both, full stack, what should i learn?
>>
>>54377247
tbf I agree. I've spent 15 years programming emulators, games, and other desktop applications using C, a variant of assembly, my own high-level language, C++, and Python, and going through the likes of eloquentjavascript.net feels like having 2 large dicks in my anus, even as early as chapters 4-7.

From Python, I could tell that dynamic languages would have their own set of unique challenges due to how flexible and expressive you could be, the new constructs you could make easily, and the functionality you'd have to jump hoops for in static languages, but I never imagined that JS, being as flexible as it is, would be used for such complicated things.

Even unminified, some people's code makes no sense. I'm glad I deal with mostly Python in my job. Everytime a bug occurs relating to JS/Jquery, I know it's going to cause me analravaging
>>
>>54377604
everything, obviously, as that's full stack

wow look what I found by googling
https://www.youtube.com/watch?v=pB0WvcxTbCA
wow
>>
>>54377665
... Is this copypasta?
>>
File: 1462379720822fixed.png (122 KB, 583x333) Image search: [Google]
1462379720822fixed.png
122 KB, 583x333
>>54377247
>Is he right, /wdg/?
I think this would be closer to the truth
>>
>>54377730
IT IS NOW
>>
>>54377730
>>54377757
It's not you cunts

>>54377604
like the other guy said, everything. More money, more potential for developing nicer, huger things as a hobby, more money
>>
>>54377729
>>54377785
>>54377604
Of course, full stack i'm interested in learning full stack however what stack should i learn? What has a future, what is relevant ?

I'm on windows if it matters
>>
>>54377859
HTML/CSS/Javascript, a database technology like SQL or Mongo, maybe also Rails or Angular.
>>
>>54377859
First of all, you should use OS X or a linux distro if you're serious about ANY kind of development that isn't .NET. Acquiring packages, having a Bash that works, *nix tools, building, deployment, etc is not as fast or as easy if you use Windows.

Second, it depends on your personal preference. If you don't know what you like because you're somewhat new to this, it would go mostly:
- Creative - Front-end
- General software tasks - Back-end
- Data or Security-related tasks - The other stacks

There was a link that used to be in OPs I believe that showed the different technology you need to know alongside the usual. To make it short:
- Front-end - HTML/CSS/Javascript/JQuery, and a front-end JS framework, like Angular or Backbone
- Back-end - Pretty much any language you like will do. I personally prefer Python for Django, but you can also pick up Ruby for Ruby on Rails, node.js using JS (which some people prefer as it's not an additional language), Java for Sprint, C# for ASP.NET, etc. You can even use C, as long as you can make requests and respond back
You will also need to know a bit about NoSQL or RDBM databases
>>
http://159.203.142.122:8080

All I have so far is a banner but for some reason I'm very pleased with it
>>
>npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v6.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.

λ npm --version
2.15.1

λ node --version
v4.4.3
>>
Haven't done anything for almost a year.

No motivation, no plans, no future.
>>
File: justdoit.jpg (9 KB, 456x320) Image search: [Google]
justdoit.jpg
9 KB, 456x320
>>54378250
>>
>>54378250
What did you used to work on?
>>
>>54377977
I'd use C for small parts of my applications that get called more than others, but I'm scared to death that even with bounds checking I'd open myself up to a million vulnerabilities. Why is C so fucking dangerous?
>>
>>54378397
I feel you lad. I love the speed of C. The good news is that with most web tasks, you don't need speed, except for database-related manipulation, which frameworks can deal with, and with the intensive stuff, it's the rare area where you need to be safe
>>
File: regret-nothing-hedonismbot-1.jpg (81 KB, 550x440) Image search: [Google]
regret-nothing-hedonismbot-1.jpg
81 KB, 550x440
DAILY REMINDER TO CHANGE PASSWORDS AND OTHER RELATED SECURITY INFORMATION WHEN YOU FUCK OVER AN EMPLOYEE

(PS: you're welcome for the blog)

Holy shit as much as i love digital ocean, this service is flawed.

>cannot change droplet password without alerting owner
>cannot delete droplet without paying bill
>zero shits given for transferring droplet snapshots
>it gives zero shits if you "refresh" a droplet
>can fucking change the account password with zero shits given


tl;dr some Palestinian came to the states to open a business on a work visa, and fucked over some hard working americans in the process, so i fucked him back.


2 years later after trying to settle something for lost wages and lots of other things, i accidentaly looged into his DO account.

So i then tried the main admin account on the actual service, still good, literally nothings been changed, still using my code i never signed over.

so i figured it's time for the happening

>notice auto backups are going to trigger tomorrow (DO backups not offsite)
>DO security logs only the last like 5 actions
>power everything down, send snapshots to my account
>wait for tomorrow to clear these notices
>delete all snapshots in the account hinting someone has the data
>nuke all servers
>start going through the backups
>SQL BACKUP CRONJOB OH NO THIS WAS POINTLESS HES GOING TO BE BACKUP IN AN HOUR
>vi /sql_backup.sql
>it just fucking copies the dumps to /backup/sql/{date}.sql
>git isn't even fucking installed anywhere
>website.com now reads
>"Due to a technical issue we cannot retrieve any of our data, please fill out this google form letting us know if you had any pickups or dropoffs scheduled"
>this was a personal storage system using small totes instead of massive "sheds"
>thousands of boxes are now un-tracked in 3 states in 4 warehouses

git rekt nerd


Some men just want to watch the world burn.
Some want to cheat you out of something you slaved over.
Others want to start the fire.
>>
File: 1363241004172.png (1003 KB, 1588x904) Image search: [Google]
1363241004172.png
1003 KB, 1588x904
>>54378643
ok
>>
>>54378335
All kinds of stuff.

Last thing I did was a php router. I still make node cli stuff every now and then.
>>
File: luna.jpg (9 KB, 149x105) Image search: [Google]
luna.jpg
9 KB, 149x105
lunarmessaging.net guy here

not many updates but a warning to a few concerning gmail

>tl;dr lunar messaging is a JS based E2E messaging service

my non-password protected drops refused to work after being emailed

google gmail bots appear to crawl fucking links emailed

technically it shouldn't have even worked as a dumb robot would simply load the page, but you need the JS to load, so that you can call the message from the server.

this would indicate either a human or an advanced JS enabled bot crawls gmail links

if anyone used the auto email option on the service and was confused at how it apparently didnt work, this would be why. (messages deleted once read, which means if someone viewed the message you cannot)


this should also be words of caution for any future webdevs doing shit that emails links.

(PS: i already created a hotfix for this on my service to click a button before getting the message)


BUT IT GETS STRANGE

>this is related to work project, not luna
>system sends you fancy URL to activate account
>doesnt even use JS to fetch this data, its fed like a normal webpage
>works every time, gmail never bugs it out forcing activation links to be invalid


the only difference i can tell?
work project has google analytics
Luna Does NOT have ANY google scripts or analytic software installed.

someone want to explain this meme magic to me?
>>
>>54378643
>DAILY REMINDER TO CHANGE PASSWORDS AND OTHER RELATED SECURITY INFORMATION WHEN YOU FUCK OVER AN EMPLOYEE
Did you work in a startup? I thought this kind of protection would have been thought up early

Nice story though
>>
Is Durandal still OK to develop in? The github repo hasn't been updated in a while. http://durandaljs.com/
>>
>>54378822
yes

and i thought so too

what i find hilarious is that I made offsite sql backups when i was developing the service, it was simply thrown into his dropbox as well.

since the newdevs had setup a cronjob for the sql backups you would have figured they could have installed haulbox as well.

i also uploaded code to github every-night while also using it for production.


>some of my fuckshit comments are still to be found in the code
its quite fucking hilarious really


but thats what happens when you outsource to india
>>
>>54378777
google has had bots that can run js for a while now.
>>
>>54378250
haven't done anything for 3 years
>>
how do I <script src this? trying to go back one directory

../node_modules/angular/angular.min.js doesn't work
>>
>>54379032
why the fuck is that even a thing

theres zero reason for you to scrub the links i send let along trying to run the JS off them
>>
>>54379174
They need to be able to run js to do SEO checks on SPAs.
>>
>>54379032
and why the fuck are the basic email activation URLs i send from the companies not getting affected? (its new, its obviously not on some "proper business" list)

i had to go back and make sure they were not getting scrubbed, but email activation links work every time.

i honestly think it has something to do with your running GA on your site or not.

kind of spooky
>>
>>54379150
../ is correct for going up a directory. Link to your webpage?
>>
>>54379209
ah that makes sense i guess


it doesnt help i am a webapp running shit like

https://lunarmessaging.net/#drop

#drop is not an anchor it's a page in the webapp

maybe they noticed my webpage is a shell?
>>
How difficult would it be to create a basic site where you can upload series ordered by episodes. During upload you would be able to add tags, description and an image representing the tags?
>>
>tfw you want to work on shit but you're just not able to start
>>
>>54379269
Easy as piss with Django familio
>>
>>54379269
Difficult is relative, but it sounds simple enough if you know how to do some basic backend/db stuff.
>>
Anyone know what I'm doing wrong here? The test says it's responding with 500 instead of 400, but it works fine when I test manually in postman so I must be doing the test wrong. Ideas?

var mocha = require('mocha');
var chai = require('chai');
var chaiHttp = require('chai-http');

var app = require(__dirname + "/../app.js");

var expect = chai.expect;
chai.use(chaiHttp);

describe('urlShortener', function () {

/* ... */

it('should correctly respond to POST /urls/new with an invalid url', function (done) {
chai.request(app)
.post('/urls/new')
.field("original_url", "sdfvaerfawerfawef")
.end(function (err, res) {
if (err) {
done(err);
} else {
expect(res).to.have.status(400);
expect(res).to.be.json;
done();
}
});
});

>>
>>54379294

I'll check it out, thanks.

>>54379311

Well, making a successful streaming-site would require more dedication that I'm willing to put into. Creating a basic site for shits and giggles is all I'm looking for, so I guess the difficulity is somewhat mediocre.
>>
>>54377366
JQuery is bloated as fuck tho.
Just use plain Javascript as long as you can please
>>
>>54378188
>http://159.203.142.122:8080
>LGBT logo
>>
>>54379439
Even plain JS is half as short with JQuery
>bloated
it's like 33kb familio, smaller than a random site image
>>
>>54379473
It's actually 84kb, but still.
>>
I'm currently building a website. Different users can access different "functions", as an example user 1 (me) can access the userInterface and all the things on it. All the points on the userInterface either print out a page (for example the list of all users) or does something and then redirects back (like deleting a user). The question is, JS being the clusterfuck that it is, is it smart to replace that with a single JS app and just redo the printing points or stay with the pages generated by PHP. I think a single JS app would provide a much smoother experience, but result in the need of JS.
Also, is there some kind of lightweight framework that's for something like that, or do I have to rewrite that on my own?
>>
>>54379439
I never implied it wasn't.
>>54379473
Who cares about the download size? Shit eats RAM and performs literally several hundred thousand times slower than plain JS.
>>
>>54379506
If you have HTTP compression turned on for text resources (like most websites), it's only about 33KB transferred to the client
>>
Noob jQuery question here, hard to google it.

What's the difference between #formfield and .formfield?

I'm guessing on is a name and one is an ID? if so, which?
>>
>>54379530
>Shit eats RAM and performs literally several hundred thousand times slower than plain JS.

This x 1000
>>
>>54378188
You should be ashamed of yourself.
>>
>>54379678
Start with a very basic HTML/CSS tutorial. # is an element ID, . is a class. You shouldn't be using jQuery knowing so little.
>>
>>54379698
You can't expect me to know that they use CSS syntax to select elements instead of attributes like vanilla js. You high?
>>
>>54379773
Not him, but while it seemingly makes little sense, you should have been able to put 2 and 2 together. They both use # and ., JQuery uses shortcuts to select things, like CSS.
>>
>>54379827
Yeah, I get it now. So how does it select by name since CSS doesn't do that?
>>
>>54379927
CSS does that by [name=xyz]
>>
>>54379927
You can select by name in modern CSS. jQuery uses a CSS selector engine called Sizzle which supports pretty much the full CSS specification.
>>
>>54379927
I don't do much jquery, but I believe it's
[name=name]
>>
>>54378833
Anyone..??
>>
>>54380117
>js framework
>not updated in 4-5 months
It's dead lad
>>
>>54379382
Sweet Jesus, those library names...

What the fuck is going on in the web world? Is there any framework/library called Mozarella yet?
>>
>>54380181
Shockingly, no. If I make a js memework, I know what I'm going to call it though.
>>
>>54380181
nigga you need so much caffeine to survive in the web world. It was inevitable
>>
>>54380144
Damn OK. Thanks anon.
>>
Well I just graduated and looking to get into Web dev. What exactly does an employer look for in a Jr Web dev or Jr Web designer?

What should the aim of my portfolio be? To show off what kind of skills?
>>
>>54380220
When you don't have enough caffeine in your cup, you import some in your code.

Seems reasonable.
>>
>>54380302
I've just shown that I'm fast learning and doing that kind of stuff in my free time. Didn't have any webdev experience, but started with $14/hr salary. Learned everything at the job.
>>
>>54380433
Cool. What kind of skills did you have going in? None at all?? 14 isn't bad man.
>>
>>54380499
I only hacked around with Arduino and AutoIT, but that didn't stop me to add all the stuff from school (IIRC Delphi and Pascal) to my CV. I made it pretty clear that I want to study besides working, and that I didn't have any prior webdev experience. The first two months I worked for only about $6/hr and basically bootcamped PHP 8h/day and stuff like Bootstrap.

I should also probably mention that I had to prove that I'm fast learning, because I had to write a JS game while going through the application process (while my boss knew that I didn't have any experience).
>>
>>54380220
>tfw drank so much caffeine for deving that caffeine just makes me instantly sleepy these days

If I have caffeine more than one a week it ruins my sleep and makes me tired all day.
>>
>>54380718
I solve that by drinking more coffee during the week, and weekends I don't drink any at all to reset the effect.
>>
>>54380688
>$6/hr
What country?
>>
>>54380688
What country you in anon if you don't mind my asking.
>>
>>54380718
iktf, I've drunk so much that I love it though, about 5 cups a day, non-stop lethargy
>>
>>54380763
>>54380764

Germany.
>>
If you're making a website for a clinic, is it bad practice to use stock photos of Doctors?
>>
>>54380924
Yes, especially the ones where they're hanging theselves
>>
>>54380924
It's not necessarily bad practice, but usually stock photos are pretty shit and it's obvious you used them instead of real photos, which makes your site look like some kind of scam.
>>
I don't understand jQuery AJAX.

I have

[{
"city": "Balch Springs",
"state": "TX",
"distance": 10
}, {
"city": "Dallas",
"state": "TX",
"distance": 0
}, {
"city": "Garland",
"state": "TX",
"distance": 9
}, {
"city": "Mesquite",
"state": "TX",
"distance": 9
}, {
"city": "Mesqute",
"state": "TX",
"distance": 7
}]


I need to go through that like a mysql row and print it out in a div.

So some people say just to use getjson and others saying getjson and parsejson.

I can rewrite that json if needed.

I want to do something like echo $row['city'] but I don't know if jquery works that way.

Any ideas? 99% of json tutorials don't cover something like this. Usually "how to parse a single item and display it in a box" or something.
>>
Complete beginner here, I have a bootstrap carousel, how do I make it so one half is text and the other is an image (non stretched)
>>
>>54381051
So, the URL you're requesting is providing you with that JSON? Then just use var request=$.getJSON. Then in your request.done(function(data) {
console.log(data);
});

You'll see that the data is an object that you can click through in your console.

>>54381064
Take a look into CSS positioning and CSS backgrounds
>>
all my site is in pixels, do I really need to make them all % or em to make it responsive? can I do it with just media queries?
>>
>>54381357
>all my site is in pixels
why lad
>>
>>54381229
I have to send data to the PHP page. I tried

var data = {
city: "dallas",
state: "tx",
distance: 10
};

$.getJSON("index.php", data, function (result) {
alert(result);
});


as a test and got

[object Object],[object Object],[object Object],[object Object],[object Object]

returned
>>
>>54381457
nvm, got it.

this['city'] etc
>>
>>54381418
I currently have text in pixels and dont know if i should change it to ems or rems.
>>
As someone without much frontend knowledge, AngularJS looks fun. What are the alternatives that I should check out?
>>
I'm not seeing it. I broke something. Only thing I changed was an else if to an else and the data to have variables from form fields.


$('#submit').click(function () {
if ( !$(".required").val() ) {
$("#errors").append("You forgot to enter some values!")
}
else{
$("#errors").empty();

var city = $("#city").val();
var state = $("#state").val();
var distance = $("#distance").val();

var data = {
city: city,
state: state,
distance: distance
};

$.getJSON("index.php", data, function (result) {
$.each( result, function() {
$("#results").append( this['city'] + ", " + this['state'] + " is " + this['distance'] + " miles away.<br>");
});

});


}
});

>>
>>54381793
and no, that semicolon I missed didn't fix it.
>>
>>54380181
Writing it now.
>>
>>54381793
Apparently this has to below just above the closing body tag.

Whoops. Everything works now thank fuck.
>>
Sorry for posting as a relative dimwit (starter) in terms of webdev, but if I might ask for some advice:

I have undertaken my first actual real-world web project for a business to be started by a friend, and I was looking for advice on what would be best to read/learn/follow to achieve this (and I know that this is probably very easy):

create a catalog of items similar to ebay's with organization options and such (I assume from a mysql database, but it could be whatever is best), but without implementing e-commerce capabilities of actually purchasing items via paypal, instead redirecting to the contact page with item title filled in (I can probably do that last part without help).

I don't want to use any wordpress templates, because I'd rather learn how to do it than just use what other people have learned. Anybody have any advice.
>>
>>
>>54383006
>>
>>54382835
For the MVP, you'll want some basic HTML/CSS for your front end, and then look into building a relational mySQL database.

I would recommend just using EJS for linking up the two, it's quite simple and effective.
>>
>>54383006
>>54383033
What the fuck am I looking at?
>>
>>54383035
Ok. I assumed that much on front-end, but honestly hadn't heard of using EJS yet. Thanks for that
>>
im trying to enable http2 on nginx, but it says a module is not found. every time i try to google it, not a single post i can find ever talks about the problem i get. the nginx page says that nginx isnt built with the module by default, but if thats the case, surely someone would have talked about this by now? im on windows and dont feel like setting up a build environment, are there prebuilt binaries with certain modules somewhere?
>>
>>54383117
Should have been to >>54383034
>>
>>54383033
how many videos do you have?
>>
>>54383157
not many yet
>>
>>54383033
upload dump
>>
Should I use Amazon Linux or Ubuntu for my ec2 server? My Dev machine runs mint which would be more similar to Ubuntu, but Amazon Linux is more customized and shit. Any opinions?
>>
>>54381643
React and Ember are the next two popular ones, and probably the only competition to Angular in terms of popularity
>>
>>54383033
you have database of cucks? mind sharing?
>>
>>54377247

Everyone needs a catalyst to learn shit, I guess. But I'm not sure if a retarded Twitter post is the catalyst you're seeking.
>>
File: distance.png (187 KB, 1366x768) Image search: [Google]
distance.png
187 KB, 1366x768
Can I have a job now?
>>
>>54383124
I remember having to install a newer version of nginx from their PPA to get it working.
>>54383802
Debian stable or RHEL.
>>
>>54383942
>I remember having to install a newer version of nginx from their PPA to get it working.
yeah, im on windows, and ive tried both the mainline and stable branch (1.9.15 and 1.10.0 respectively), both throwing the same error that the ngx_http2_v2 module wasnt found
>>
So I was thinking.

Would it be cool to have a bunch of vulnerable websites up for SQL injection and just have a CRON reload the DB from a backup every minute?

It would be kind of like that hackthissite, but strictly sql injection practice.
>>
>>54383930
Yes, but not in any world I live in.

;)
>>
File: 1458172519997.jpg (252 KB, 1200x800) Image search: [Google]
1458172519997.jpg
252 KB, 1200x800
Is there an idiomatic or "correct" way of automating Django deployment? I figured fabric would be the way to go most of what I read on it is from around 2009.
>>
>>54384087
You see the use though, right?

A way of geolocating without using an expensive API. This is a way to lower operating costs of anything that uses geolocation including dating websites.

It's not pinpoint accurate like Google, but it's freeeeeeeeee.
>>
AWS or Ms azure for Web hosting? I get one year of AWS for free, but apparently I get azure as long as I'm a student.
>>
>>54384101
some kind of CI
codeship is very user friendly (and free), travisci is another
>>
I've decided I don't want to fuck with Node senpai, trying Python next. Then Ruby, then C#. I already somewhat mastered PHP, although that isn't anything hard to do.
>>
>>54384087
Aren't small projects like those what employers want to see?
>>
I really, really wish I could get in to web-dev but absolutely everything is so fucky. From CSS to Javascript, everything is horrendous.
>>
I need a project to do. I did all the problems in Eloquent Javascript and built a few single-page web apps that I don't even bother hosting (RoR and React.js). I work in IT, but nothing really compares to the fun you have when you feel motivated to code by a fun idea. It's like the worst writer's block.
>>
>>54384603
>small

>loading buttfucked csv with random shit all over the place into sql tables
>pruning columns and the infinite duplicates
>pulling data and comparing cordinates with Haversine formula and sorting into an associative array
>turning it into an API to return JSON

>small

Actually that probably is small but it was a pretty awful time that was awfully fun.
>>
Am I a web dev scrub if I have 2 dozen tabs open while working on something or is that normal?
>>
File: 1444959164545.jpg (51 KB, 526x701) Image search: [Google]
1444959164545.jpg
51 KB, 526x701
>>54367422
I feel like I'm competent enough to be employed by someone. I would work hard and do my best. I've been studying for years now but I always feel like my knowledge is incomplete. I dropped out of school due to depression and have been in a really bad place mentally for a long time. Despite that I always studied on my own and feel as though I would be able to handle a heavy workload. It feels really bad because now my peers who have always looked to me for help in school are getting jobs but I'm back at my parents withering away in solitude again.

I've never been able to sell myself. It doesn't feel natural and when I try it I'm afraid I just come off as cocky and pretentious which puts me in a negative state of mind. I fall fiend to the Dunning Kruger effect whenever I do that which is detrimental to my productivity.

I apologize for venting here. I was born 21 years ago today and have no one to share my thoughts with. It feels awkward saying that
>>
>>54385284
What have you actually made?
>>
>>54385308
I've written CMSs from scratch, webscrapers, BASH scripts useful for system administration, I'm not interested in videogames but a few years ago I wrote a simple 2d engine, I think I'm proficient at frontend, I released a website a while ago which takes XML data from the local government and displays it in a cute way. A handful of people actually use it now.

These might sound more significant than they actually are. I apologize for any incoherency
>>
>>54385284
>I've never been able to sell myself. It doesn't feel natural and when I try it I'm afraid I just come off as cocky and pretentious

I get this problem a lot too. But there are a few things you should keep in mind.

Employers want to hire a skilled, hard-working person. If you already know you are that, there's no reason to be ashamed about broadcasting confidence. Everyone is benefitting if they hire you. They get a good employee and you get a good job.

All you need to do is be honest about yourself, your abilities, and what you can do for each other. Don't worry about seeming smug, they like to see someone who's secure in their self-worth.
>>
>>54385284
You've got impostor syndrome, sounds like a developer to me
>>
>>54385448
That's enough to land a job.

You should apply and start your life finally.
>>
Did you guys really used these links on the OP when you first started to learn web development?
>>
>>54385977
no.

go get your degree in cs or be forever unemployed.
>>
I'm currently working on a project with XML, XSL, and CSS. I've got my XML code down pat, and I can read data from it using the XSL and make it look nice, but my issue is coming from a for-each loop that I've created.

I'm creating a simple website that takes ten albums and ten artists and displays information about them along with a picture of the album/ a picture of the artist. I've xsl:for-each looped it so that the names of the artists along with other information is displayed neatly, but I can't figure out how to insert an image into each loop. Each artist has a unique ID I've put in <artistID artID="ART-2876"> <-- as an example. And I've tried using this code in the for-each loop: <img src="images/{artist/@artID}.png"/> by naming each image file in an images folder the same as the artID.

I know that this is bush league stuff for most of you, but if you guys could put me on the right track with this I'd greatly appreciate it.
>>
>>54370217
Yes,you can apply for free Amazon Web services, iirc you get 1gb ram,30gb ssd for 1 year
>>
>>54385977
No I picked up Django out of interest since I'd been doing a lot of Python work at the time and heard about how it's easy to work with.

I would recommend bento for beginners though. There was also a link to some dude's recommended path and tools through the different stacks of web dev which I'd recommend
>>
>>54385977
no, because they weren't around in 2003.

however, if they were, I'd probably have learned a lot faster/better
>>
Hey guys, I'd like to create a simple game akin to a visual novel, I figured that instead of using something like a game engine, I'd use HTML/CSS and wrap that into Electron because it would be way easier and allow me to do a lot with the UI. The question is, do I just create hidden divs for like main menu, scenes and stuff, and then just change their visibility or should I use some library for views/templates? That should be front-end only mind you.
>>
>>54387092
>hidden divs
Sounds like a lot of unneeded data in a screen at once. What you need is ajax. Every view/template contains its own ajax commands that request the next view/template based on your actions. If your views are dynamic (people moving, talking), use ajax for that as well.
>>
Can someone please explain to me why i'm a retard and these things aren't lining up nicely?

http://jsbin.com/xiwobupipi/edit?html,output


pastebin, if that's easier http://pastebin.com/MpSg6KCx
>>
Is back-end web dev as doomed as front-end is? I'm not sure if web applications are primarily back-end or front-end
>>
>>54387092
Why not just use Ren'Py? It's easy as fuck. Literally easier than VB.
>>
>>54387209
Neither is doomed. Where is this idea coming from?

>>54387309
He probably wants to learn too
>>
>>54387341
kids are learning coding in middle school now. when they come of age they're going to flood the web dev market because it's the easiest way into programming, and since stuff like squarespace is making it possible to make a website without writing a single line of code, pretty soon all front-end web developers are just going to be artists with a pay check to match

I don't know about back-end developers, but I'm kind of cautious about that too
>>
>>54387503
Big difference between a designer and developer. Front-end developers need to know how to interact with databases. Squarespace can't do that.

Sure you have shopify and wordpress, but you won't get anything custom from a premade solution.

Also I took a web design class in middle school, 6th grade. I'm 27. I helped the teacher because she was always wrong. Only one of those people are web designers today and that's because they already knew it at that point too.
>>
>>54387571
the difference between front-end developer and web designer is that front-end developer can use javascript, and unless you're using node.js, javascript is useless for database stuff.

Node.js on the other hand is the primary tool of full-stack developers, not front-end
>>
>>54387503
I took a 3D design class + Photoshop and Illustrator for 2 years (from 5th to 7th grade)
And I still know 20 ppl of who was with me there, the girls work as nail artists or they are neets who are meried and the guys are doing something else... same goes with all the kids who play soccer as kids, you dont see them on the national league or europe finals.

Either you have the intellect or not, not to mention the motivation.
>>
>>54387640
>and unless you're using node.js, javascript is useless for database stuff.
Well gee, guess all that AJAX I just used to interact with my PHP was useless for the database. Not really sure how I'm going to pass all those requests to it otherwise.
>>
>>54387688
PHP is back-end, AJAX is just the fucking ferry
>>
>>54385284
>I've been studying for years now but I always feel like my knowledge is incomplete
You'll be always learning since you won't know everything.

>Despite that I always studied on my own and feel as though I would be able to handle a heavy workload.
>I'm afraid I just come off as cocky and pretentious which puts me in a negative state of mind.
You can get far if you have more confidence in yourself. I lacked confidence when I started looking for internships or jobs but I learnt It's alright to show you know your shit really well, they like that.
Thread replies: 255
Thread images: 31

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

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.