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

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

Thread replies: 255
Thread images: 24
File: 1461494573041.jpg (427 KB, 1543x1360) Image search: [Google]
1461494573041.jpg
427 KB, 1543x1360
Last >>54559081

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

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

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
https://youtu.be/JxAXlJEmNMg?list=PL7664379246A246CB - "Crockford on JavaScript" lecture series.

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
https://gist.github.com/dypsilon/5819528/

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

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

>How to get started
https://youtu.be/pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://youtu.be/zf_cb_Nw5zY - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
First for salt cave.
>>
Hello frogo
>>
Anybody can help me with nodelists?

When I use querselectorall(), I get back a nodelist. That's cool but why when I typeof() the result I get object rather than Element? This wouldn't usually be a problem but I have added a new function to the prototype of elements that checks what is calling it, ie:

 function Evaluate (vis, root) { return (this === Element)? ..... }
Element.prototype.Evaluate = Evaluate;


Help a n000b?
>>
Could someone with python and flask knowledge give a honest opinion of my codebase code quality?
https://github.com/Floens/uchan
It's some message board software I'm working on, focusing on speed by using rational caching (message boards are easy to cache) and not the "traditional" method of writing files when someone posts.
I've posted it on 8ch and people always meme about python being slow or just general "it sucks" without further explanation of what they thought sucked. I think the code base is reasonable at this stage. Not pleb tier, but not god tier either.
>>
>>54593599
>>54594225

You know you're a web "programmer" when all you do is look for shit to copy and paste all day or beg on the internet for real programmers to write your code for you.
>>
>>54594255
>or beg on the internet for real programmers to write your code for you.
I want an opinion, not someone to write the code for me. Did you even read my post?
>>
How do search engines work? Do they actually loop through everything until they find what they're looking for?
>>
>>54594279
map reduce, and a lot of magic
>>
Short of a week passed since my 3rd and last interview for a hipster web programming job (50/h, remote). I think I aced the 2nd and 3rd interview.

Should I send an email asking about my current status or shit?
>>
>>54594335
Yes
>>
>>54594225
Your mistake is to believe users of such anonymous boards have any relevant opinion about the code behind it.

Look at the reply you just got, /g/ is clearly not a dev community. Most are just kids, wannabes, amateurs who don't know what they're doing.

Finding a good advice here will be difficult. This is mostly a tech-memes board.
>>
How defuq do i get the Zend framework on my iis?
>>
>>54594255
Thanks for contributing nothing faggot.

>>54593599
The answer to this if anyone is asking isn't the === operator but rather (x instance of y)
function Evaluate(vis, root) { return ((this instanceof Element)? this : document)....
Element.prototype.Evaluate = Evaluate;


Thanks everyone!
>>
>>54594415
Not that anon, but why is it that you can find experts on /mu/ or /his/, but if you want to be serious about web development you have to go to reddit?

Let's make /wdg/ great again.
>>
>>54594415
That's a sad state.
But you're right, and it's pretty bad on 8ch. There are a lot of threads there about image board software (because of the terrible software they're running now), but if it isn't node.js or Go then they will insult you. They will circlejerk over a language, not looking at the code or technologies used. They will create drama over the people who wrote some software. Only a few know something about real web dev.

I was hoping the situation here was better.
What are the /wdg/ threads here generally about then?
>>
>>54594664
>What are the /wdg/ threads here generally about then?

1. Pajeets asking how to align a grid of images with CSS
2. Pajeets struggling to install WordPress
3. PHP hate
4. General JS, node.js and SPA hate
5. A few fullstack/backend guys
>>
>>54594705
Well, at least you hate PHP and nodejs, the other site think's there is nothing wrong with it.
>>
I'm currently working through Freecodecamp and I'm starting to feel like I'm just filling in blanks and not actually learning. Is this just how it feels for a while? I'm on the intermediate algorithm section (About 300 or so modules in)

Are there any other recommended paths for learning web dev? I'm not too fond of video guided material if you have to wait for the video to finish to get some hands on.
>>
>>54595322
Seconding this
>>
>>54595322
>>54595337

The only things "required" for the "certificates" are the ones with the * next to them. You can just skip everything else if you don't want to do it.
>>
>>54595485
It's not that I don't want to do them I'm just not sure if what I'm doing is the most effective way to use my time for learning.
>>
File: 1449633025225.jpg (723 KB, 3504x2336) Image search: [Google]
1449633025225.jpg
723 KB, 3504x2336
is the free part of code academy tutorial any decent?

also what's a good IDE/programfor a complete beginner? i'm not a beginner with programming just with web dev, preferably unix compatible, and preferably allows for some live or quick feedback, something like the khan academy in built editor or scratchpad.io
>>
>>54595512

It's not like you paid any money to use FCC. If you want to do something, do it. If you don't, don't.

>I'm just not sure if what I'm doing is the most effective way to use my time for learning

If you're even wondering that, it probably isn't. Skip to the project section and do those.

>>54595514
>is the free part of code academy tutorial any decent?
For the most part, they're pretty good for teaching you the basic syntax and usage of the language you're learning.

also what's a good IDE/programfor a complete beginner?

Brackets is good if you want an IDE and has an integrated chrome live preview. VIM is pretty much unbeatable for text editors, though.
>>
>>54592746
I am learning JAVA in order to pass my OOP course and I want to start learning WebDev in the summer.
I am a bit naive and also ignorant about what would await me, but:
Will I be fine in WebDev?
>>
>>54595582
I didn't pay money for it but I did invest 20 or so hours into where I'm at now expecting for it to get more involved. I skip to the projects but it just feels like I didn't learn the concepts and I'm just hacking stuff together from stack overflow.

If I'm devoting 4 hours a day to coding, is there a better recommended learning path?
>>
File: poop.png (52 KB, 992x440) Image search: [Google]
poop.png
52 KB, 992x440
>>54595514
poopy
>>
>>54595618

>is there a better recommended learning path?

Yes, go to school or the military or something because it sounds like you can't handle self-directed learning and need someone else to hold your hand and tell you what to do.
>>
>>54595679
Oh shit I thought I was asking questions to people who've gone through similar paths of learning so that I can better myself in an efficient way.

Get over yourself
>>
>>54594279
Tokenisation and inverted indexes. By tokenising every word in the search text, which includes splitting the entire document by word, indexing each one with an ID, the placement within the document and the number of documents the word resides in, documents can be scored via algorithms that measure how relevant a search term is to a document (term count, word order, popularity, etc).

Have a paper about Google before it was a company: http://infolab.stanford.edu/~backrub/google.html
>>
What's that website with all the programming puzzles?

I want to do a few of them a day.
>>
>>54595771
>>
>>54595707
Thank you for that, I've never seen the paper. Very interesting.
>>
>>54592746
>https://programming-motherfucker.com/
should be
>http://programming-motherfucker.com/
>>
>>54595693

Everyone learns in different ways. An important part of self-directed learning is being able to recognize what is effective for you and what isn't. For some people, doing large numbers of problem sets is effective. For some, doing hands-on projects is more effective. Some people need to have a a human voice and diagrams explaining things to them to learn. Others need the pressure of deadlines and grades to learn.

You want help with a technical problem, people on here can probably help. For something that's intrinsic to your own brain, you're on your own.


>>54595618
> I did invest 20 or so hours
Oh wait, my mistake. After 20 hours they're supposed to email you a link to the secret part of the website where you can magically download JS knowledge directly into your brain.

As I said, if you're even wondering whether or not it's an effective way to learn, it probably isn't so move on. If you're pissed because you think that means the 20 hours you invested in the site already are wasted...Well, maybe you shouldn't have spent 20 hours doing something where you weren't learning anything.
>>
>>54595860
Well memed, friend! :D

Im sure that Google search will lead to the obscure website anon mentioned a month ago!
>>
>>54595679
Males are hands-on learners. These websites typically use methods used in the education system which statistically has been shown to cater towards females.

Low test detected.
>>
File: file.png (14 KB, 416x128) Image search: [Google]
file.png
14 KB, 416x128
>>54596028
my favicon-and-title script agrees
>>
so I'm learning html right now on mac and just realized that mac does not come with an application like notepad. what do you guys recommend I use, i want something easy and accessible if at all possible.
>>
>>54596814
You could've easily googled this (I recommend sublime text 3)
>>
>>54596814
>mac does not come with an application like notepad

yes it does you fucking liar
>>
>>54596907
thanks, i tried googling it but i couldn't find anything that was easy to use. Thanks for the recommendation!!
>>
>>54596814
it comes with textedit, and vi

atom works pretty well
>>
im making a barebones chatroom with nodejs, express, and socket.io, and i want the room to remember people's usernames when they disconnect and reconnect. which libraries or modules should i look into to generate and store cookies?
>>
>>54597293
cookie-parser and express-session if you want to use session
>>
does anyone know where to spam a kickstarter?

i already promised i wouldnt post here or i would.


trying to make the world a more secure place
>>
>>54597293
>barebones

>node.js
>express
>socket.io
>>
>>54595193
What do you use then?
>>
>>54597572
Python with flask or django, ruby (rails), java spring. It depends on the project. Not even talking about decisions like what os, db, caching, cdn
>>
working with json APIs
when I open them in browsers they look awful and its not easy to see where the objects elements end or not
how do I make them more readable
>>
>>54598051
ok nevermind
https://jsonformatter.curiousconcept.com
>>
Should I learn and start using ES6 or will it be a pain trying to make it work with frameworks and libraries?
>>
>>54598386
>Should I learn and start using ES6
Yes
>will it be a pain trying to make it work with frameworks and libraries?
Not particularly, just use babel/browserify
>>
>>54594481
Please, "experts" in a non technical field.
>>
>>54598386
Don't fall for the ES6 meme.
>>
best web language to learn right now? well, of course you have to learn more than one, guessing I should learn html entirely and css?
>>
>>54598868
let alone de-memifies ES6, fucking hoisting shit.
>>
>>54598900
>best web language to learn right now?
PHP dominates the web and will continue to do so.
>>
>>54598992
Continue? Eh
It's popular but the pay will always be shit. You'll be stuck being a PHP monkey forever.
>>
>>54598992
Alright
>>54599011
What do you recommend friend

Also whats a good editor? I remember starting with dream-wave adobe way back on my time, but.. yeah.. I've heard bad things about it.
>>
>>54599011
What's the alternative?
Being a JS monkey ?
>>
>>54598900
HTML > CSS > Javascript
>>
>>54599270
> CSS > Javascript
I disagree... you can do more stuff with JS... how can CSS be better?
>>
>>54599528
Comparing CSS with JS is like comparing a spoon with a bottle of shampoo. You'll use both, learn both.
>>
>>54599528
dude ">" are arrows
html -> css -> js
>>
hahah fuck my life
spent 30-40 minutes figuring out why my jquery append doesnt work

<div id="#context"></div>

$("#context").append("<p>"...."</p>");
>>
>>54599164
Rails desu senpai

>>54599580
You must be new here
>>
>>54599528
I knew someone would bite.
Anyway, >>54599580
is right. Those are arrows (kind of)
>>
>>54599617
>>54599646
so funny
>>
Yo, does anybody have experience with chartjs? I have a line chart, with a bunch of different labels/lines, but I'd like to be able to display only ONE label at first, instead of all of them like it is by default.

I can post my code if you guys want but it is just a default line chart with ChartJS.
>>
File: 1461981983799.gif (2 MB, 475x277) Image search: [Google]
1461981983799.gif
2 MB, 475x277
What is the best web format for images?
>>
it depends on the type of image
>>
>>54599875
BMP and TIFF mainly
GIF is also acceptable
JPG is lossy compressed shit
PNG is a meme
>>
>>54599978
Nice bait, anon
>>
>>54599875
Just jpg everything. It's small and that's all that matters.

The downside of jpg files is that colors seem to leak into each other making future editing of the file a pain. So keep the original.
>>
>>54599875
PNG uber alles
>>
>>54599978
I didn't even have to google for some obscure file extension I didn't know
0/10
>>
>>54599875
WEBP
>>
File: Screenshot_28.png (37 KB, 1920x1047) Image search: [Google]
Screenshot_28.png
37 KB, 1920x1047
making a concept design for a upcoming project. rate and hate

https://paym.us
>>
>>54601747
>https://paym.us
logo is shit
too much gray is boring
>>
>>54601997
what do you suggest then? It's one of the first light color sites I've made for myself in over a year and I thought it looked professional. I guess maybe blue or orange would fit decently?
>>
File: pajama-boy.jpg (33 KB, 497x324) Image search: [Google]
pajama-boy.jpg
33 KB, 497x324
>>54595771
>>54596102

Are you talking about codewars.com?
>>
>>54602148
if you want to keep the gray at least use "gold" color in some areas where you want to draw attention ( like the logo and the authenticate button for example)
That would look nice and professional
>>
>>54601997
>>54602439
what I mean is gray has to stay in the background otherwise it will look boring no matter what, because that's how gray works.
>>
>>54599732
>>54599732
>>54599732
pols respond
>>
>tfw giting gud
>>
Can you tell me a website that sells shit and has a good design.

Need that for school.
>>
>>54603020
craigslist
>>
To make it simplier, I have to tell my classe why this website is shit. Any suggestions ?

http://www.avenuenautique.com/
>>
i read today that async/await finally hit v8.
full native support in node.js when?
>>
>>54603091
Easy: it's french.
>>
>>54603113
>still no tail call elimination
>>
>>54603190
Already in my speech.
>>
>>54603091
>http://www.avenuenautique.com/
annoying fixed items
search box in the middle
some header above the context header
tex too small imo in the footer
>>
http://howtocenterincss.com
>>
I know how to program and am smart and can be hard working if i want to
how long does it take me to learn webdev
>>
Where do you go for css inspiration?
>>
>>54603568
Well if you already know to program, use the library that suits you the best and go learn some web designing skills.

But I'm pretty sure you don't really know how to program or else you would not ask that question.
>>
Any able commerce devs here? Need your help desperately.
>>
I finished The Odin Project RoR what should I do next? should I read a book or keep building sites?
>>
>>54603801
How about you just say what you need help with

>>54603808
> keep building sites
Always
>>
>>54603662
>I'm pretty sure you don't really know how to
Ye ye.
>web designing skills
Honestly, I thought there was more to it than that.
That's why I asked too.
>>
>>54603808
>RoR what should I do next
>RoR

Start hormone therapy so you can begin transitioning
>>
is the FreeCodeCamp "Front End Development Certificate" worth something ?
>>
>>54604102

IT certificates are never worth anything
>>
>>54604034

Need guidance on how to display color thumbnail option images on a different page than its programmed to be on. Tons of code to sift through I don't even know where to begin. I thought I could just copy and paste the asp.net repeater element that displays the thumbnails but I got many reference/directive/context errors. Will pay someone 20 bucks if they can figure it out.
>>
>>54603660
csszengarden
>>
>>54604047
Well from a personal experience, designing is actually harder than I tought.

But there's also the fact that it's boring as fuck.
>>
>>54604102
It's worth the satisfaction that you know how to make a tic tac toe game or whatever with javascript. In other words, no.

>>54604135
This isn't actually true in all cases. Most basic ones like A+ are basically worthless, but there are some good ones. Certs are actually pretty important for non-programming IT jobs.
>>
>>54602672
nobody has ever used chartjs boys?
>>
>>54599875

GIF for all purpose
PNG for scalable stuff
JPG for "real photos" with gradients
>>
>get digitalocean vps
>100+ ssh login attempts every hour

how do i deal with this
>>
>>54605255
if you have a good password or use public keys you have nothing to worry about

if you really want to block them use fail2ban
>>
>>54605630
>fail2ban

I think I love you
>>
"We have reviewed your application. Unfortunately, you are not the right fit for the position at this time.

I am sorry for the disappointing news. Best of luck in your job search. "


This was for an entry-level Wordpress job. Is education that fucking important?
>>
>>54606000
>Is education that fucking important?
No.
Are you a good programmer?
>>
>>54606000
>trips fell for the bootcamp meme
Brah, those things are scams. They only work if you're a women or black.
>>
>>54594481
>/mu/
>experts
>>
>>54595605
yes
>>
>>54595618
>20 or so hours
kys
>>
>>54596814
use Emacs

(actually don't, this is pure shitpostery)
>>
>>54602148
it does look pretty good.

I think green always works for a money/payments oriented site,

maybe gold as well. go to /gd/ and ask them what to do maybe.
>>
File: image.jpg (123 KB, 800x800) Image search: [Google]
image.jpg
123 KB, 800x800
>>54606000

>Wordpress
>>
>>54599875
svg
>>
>>54606075
I've been working on it most days for 16 years. I would hope so. Especially these last 6 months. 8 hours a day building crazy shit.

Got accepted through a few recruiters that posted puzzle problems. No jobs. I'm getting no jobs and now I'm turned down for wordpress.
>>
>>54606349
I make 10 dollars an hour. I would suck a dick to make wordpress websites for 35 an hour.
>>
>>54597511
>needs a library to write a cookie
>>
Why is everyone in this thread awful? Surely there are at least a few competent people on this board.
>>
>>54606736
I know, right?
Competent guy here, nice to meet you.
>>
>>54606408
If you have 16 years of experience and you're trying to get a Wordpress job, you are doing something wrong.
>>
>>54606992
16 years of learning web design and dev.

My problem is only making personal projects and not wanting to open source the code.
>>
>>54607090
Well, maybe try not to say that you have 16 years of experience to your employers.

A guy who spend 16 years to learn web development, but never got a job? Red flag right there.

I mean, wow.
>>
>>54607090
you've been doing web design and development since the year 2000 and can't get a job?

what the fuck, man? how insane do you come across in interviews exactly?
>>
>>54607740
I've only been applying for 2 months now. Haven't had an interview yet. I'm waiting for one to be scheduled though.
>>
>>54607827
Do you know your shit? Do you know how prototypes work in Javascript and such?
>>
>>54607861
>javascript
>wordpress

I'm not landing a job because my portfolio sucks. Also no prior relevant jobs or college degree.
>>
>>54607904
well, build more shit then, mah man
>>
>>54607904
Wait, you mean you are trying to do Wordpress without knowledge of Javascript? Good luck with that. At best, you will end up being a mediocre Wordpress guy.

I wonder how you managed not to learn Javascript in your 16 years of training.
>>
File: 1437467330026.jpg (36 KB, 480x486) Image search: [Google]
1437467330026.jpg
36 KB, 480x486
Need a select forms that gets data from the database. I have no idea what to use. Is it that there ajax thing?
>>
>>54609041
quality b8 m8
>>
>>54608178
I know vanilla js, jquery, php/mysql. Theoretically I should have landed it no problem.
>>
>>54609308
Ok, next time don't say you have 16 years of experience because it makes no sense.

Only say you've been doing freelance work on the side for 6/12 months, no further job experience.
>>
Do you think .com and .net will one day have whois privacy by default?

Just like .nl .eu and .se and so on?
>>
File: 1461512163231.png (8 KB, 1324x651) Image search: [Google]
1461512163231.png
8 KB, 1324x651
How can I get a box with tabs like pic related? I'm having trouble figuring it out
>>
>>54610374
Make a system such that clicking on a tab changes the content of the box.
>>
>>54610385
Yee but how do I go about doing that?
>>
>>54610392
That is getting too much into the details, it depends on what exactly you're trying to accomplish.

I'm guessing you want to do it on the frontend, so I'd say: Use Javascript
>>
>>54610392
js onClick event, and css visibility property
>>
>>54609308
Touching PHP3 and not doing anything for several years doesn't mean you have 16 years of experience
>>
>>54593599
why would you expect a single element when 'all' implies a collection of elements?

if you want it as a normal array of dom nodes you can slice it e.g:
[].slice.call(document.querySelectorAll('div'))
>>
>>54595771
codility, project euler
>>
>>54597293
don't use cookies, use jwt
>>
>>54599875
vector: svg, raster: jpeg
>>
File: 1462405183011.png (319 KB, 447x679) Image search: [Google]
1462405183011.png
319 KB, 447x679
I've been looking into ClojureScript and Elm.

Is using transpile-to-JS languages legit? I'm afraid they will die out next year and I'll be stuck using yet another unmaintained project. Also I'm afraid they will have tons of bugs and weak interop with JS. My gut is telling me to just stick with JS because it will always be usable, and ES6 isn't THAT bad of a language to use at least for making frontends.
>>
>>54612192
Generally they're come-and-go, but I think Elm has some potential. Static typing is super useful in large, long term projects, and the benevolent dictatorship and focus on helpful compiler messages, simplicity, and quality package ecosystem is a breath of fresh air. The Elm architecture makes a lot of sense, too.

In practice, ES6 is still transpiled anyway. It's ok. We use it at my work. But if you want to refactor something, you get no help, can only rely on whatever test coverage you have + your alertness on the day.
>>
$("#haters").fadeOut;
>>
>>54612714
This does nothing until you actually call the method, Pajeet.
>>
How effective is Free Code Camp? Is it a good learning site?
>>
>>54611841
PHP 5 - 7 and I've updated knowledge in everything else like ES3 to ES6 and CSS2 to 3 and of course html4 to 5.

Where your legacy at skills, son?
>>
>>54612978
>>>54612714
<div id="haters" class="dickbutt">
>This does nothing until you actually call the method, Pajeet.
</div>
>>
File: ELVGREN_img_38-223x300[1].jpg (22 KB, 223x300) Image search: [Google]
ELVGREN_img_38-223x300[1].jpg
22 KB, 223x300
>>54592746
How do I learn front-end /wbg/? I mean actually making functional stuff I know all the languages, I need a book/tutorial/course that guides me through building a proper website. Would be very appreciative if someone could point me in the right direction.

I am fairly sufficient in JS (+jQuery), I know all I need to know about HTML and I can handle CSS. So don't need someone to start telling me what HTML is or what selectors are etc, looking for something like nice book focused around building actual stuff or screen-casts.
>>
>>54605255
>100+ ssh login attempts every hour
how do you monitor this ?
>>
>The company that denied me yesterday just looked at my resume again apparently.

Are they laughing at me?
"Hey, Tom, look at this shitcake I just turned down for a 15 dollar an hour job."

I'm going to ask them.
>>
>>54613113
If after "16 years of experience" all you have on your belt is PHP, MySQL and jQuery then that means you are exaggerating greatly. You definitely have not been at it enough if after nearly two decades you still only know very basic technologies and back it up by saying what versions you have migrated through, which is not as big of an achievement as you think it is.

If you are telling potential employers that you have 16 years of experience when you can't list anything other than first year basics then that reflects horribly on you. You keep mentioning CSS; do you know about preprocessors like SASS and LESS? Because those are much more useful.

You shouldn't even have to mention HTML if you already know a good stack of languages and databases because it's so fucking trivial.
>>
File: nothing.gif (402 KB, 250x250) Image search: [Google]
nothing.gif
402 KB, 250x250
>>54613313
>>
>>54613307
sshd on CentOS logs to /var/log/secure by default. Allows you to see IP addresses and what they tried to sign in as; I still get them even after disabling password auth funnily

May 15 14:15:52 litterbox sshd[9479]: Invalid user cvsroot from 115.95.5.219
May 15 14:15:52 litterbox sshd[9479]: input_userauth_request: invalid user cvsroot [preauth]
May 16 08:01:16 litterbox sshd[10969]: Invalid user cvsroot from 115.95.5.219
May 16 08:01:17 litterbox sshd[10969]: input_userauth_request: invalid user cvsroot [preauth]
May 16 13:20:24 litterbox sshd[11738]: Invalid user cvsroot from 51.254.39.4
May 16 13:20:24 litterbox sshd[11738]: input_userauth_request: invalid user cvsroot [preauth]
May 16 13:46:57 litterbox sshd[11809]: Invalid user cvsroot from 51.255.168.23
May 16 13:46:57 litterbox sshd[11809]: input_userauth_request: invalid user cvsroot [preauth]
May 17 15:06:08 litterbox sshd[15279]: Invalid user cvsroot from 115.95.5.219
May 17 15:06:08 litterbox sshd[15279]: input_userauth_request: invalid user cvsroot [preauth]


Maybe I should put fail2ban on this shit
>>
>>54613414
oh shit I have some too
>>
>>54613344
Not exaggerating. I pursued it as a hobby because web people made like 30k a year those days.
>>
>some Pajeet on reddit defending installing cPanel on servers they control just so they can use the web host interface

What the fuck
>>
>>54613414
They are Chinese and Russian bots.

Had one hijack a droplet a few months ago. Once they log in they immediately add you to a ddos botnet. Was sending out tons of traffic and DO shut it down.
>>
AJAX seems cool but I don't quite get it yet. If I had a select option on a HTML form, how would I use JQuery's post method to send the selected data to the PHP code on the same page? I assume I'd just receive it as a $_POST variable in the PHP, but I'm not sure on how to send it. Any help?
>>
>>54613478
i think you dabbled a little in web shit 16 years ago, did something else for a long time, and now you're dabbling again

if you've really been doing it regularly since the year 2000 you should be really, really good by now, so something else must be horribly wrong

i'd change your story if i were you. no one is impressed by "muh 16 years" -- more like freaked out.

I wrote my first HTML site by hand in 1995 but I damn sure don't go around talking about it as if it's relevant experience today.
>>
Someone Redpill me on angular 2

What should I absolutely avoid
And what should I absolutely do
>>
>>54613584
You should absolutely avoid writing anything in angular 2 for now, unless the RC is out. Is the RC out?
>>
>>54613539
Stop thinking in terms of pages and start thinking in terms of API endpoints you POST to
>>
>>54613196
help
>>
>>54613615
Quick question. When something is posted with AJAX, how is it received in PHP? I assume it's a $_POST variable, but how exactly am I supposed to know what it is?
>>
I have to build a small scale (reusable) voting system, and I've got way too much time for it.
I have the freedom to do it however I want with whatever I want.

What can I use to make this a fun project? I've all the time to learn whatever JS libraries, or even different languages.
>>
>>54613764
you should get a better grasp on how HTTP works if you feel the need to ask that question. AJAX isn't magic and you shouldn't treat it as such.

Read up on what request methods are (GET, POST, PUT, DELETE etc), and how POST data/query strings work when sent in a HTTP message. PHP is a bit backwards in this regard, as there is no easy way to get the request payload for other RESTful methods (you need to parse the php://input stream if you are going to do anything other than key-value pairs with GET and POST).

In general, something like:

$.post('/endpoint.php', {"foo": "bar"});


Will let you see the following within an endpoint.php that looks like this:

<?php
print_r($_POST);


Array (
"foo" => "bar"
)
>>
>>54613684
Read the OP
>>
>>54614219
You actually completely misunderstood the question. I was asking what the name of the post was. Eg. '$_POST['WHERE IS THIS SPECIFIED']. I found out anyway, but a swing and a miss from you.
>>
>>54613579
I deved as a hobby. I didnt list experience on that website, just on Dice because it asked how long I've know languages. They were from Indeed though and years known isnt even listed.
>>
How do i retrieve the GET information in JS if they are in an array? Example of how it looks:

?id[]=994&id[]=322

In php i retrieve it as an array with all the ids: $_GET['id']

But how would i do this js? I can get individual GET variables that have unique names, but how do i get an array?
>>
>>54614803
I have the code at home. Regexp.
>>
What's a useful back end programming language to learn as a front end developer?
>>
Crosspost from sqt

What is the correct method to display a cropped section of an image using html/css/js. Most places I find info on this recommend making a div (or other container), setting the desired width & height, setting the image as background and offsetting the background, however isn't this extremely unoptimized, or is there some internal magic already optimizing this?

Apparently there's plugins and whatnot to do this, but everything has to be self written
>>
>>54592746
Any books to recommend to read about Docker/containerization?
>>
>>54615161
Javascript
>>
>>54615161
PHP. Javascript works so well with it.
>>
>>54615161
Golang.
>>
>>54614803
>>54614856

Nvm got it working. Stole this from someone:

function getURLParam(key,target){
var values = [];
if(!target){
target = location.href;
}

key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");

var pattern = key + '=([^&#]+)';
var o_reg = new RegExp(pattern,'ig');
while(true){
var matches = o_reg.exec(target);
if(matches && matches[1]){
values.push(matches[1]);
}
else{
break;
}
}
if(!values.length){
return null;
}
else{
return values.length == 1 ? values[0] : values;
}
}
>>
>>54614257
he told you the answer but you were to stupid to see that it was there you butthurt little shit
>>
>>54615627
>stealing
called the cops, anon
best burn your pc
>>
>>54615627
It's fucking amazing that abstract query string manip isn't natively supported in browser js and that dubious regexes are the solution
>>
>>54615627
URLSearchParams
>>
>>54615627

Damn, JS is so ugly..
>>
>>54616836
No, that's just shit code.
>>
I really need an idea of what I should build next.
My last nearly finished project is a Spring based user management service that can be used by other servers/web applications: I built in everything you could ever need: aop annotations, persistent remember-me, session based csrf-token, proper password hashing & salting, un&pw login, email&pw login, stateless token authentication...
All you need to do in consuming applications is entering the URL and token for an ADMIN user.
The only thing unfinished is the web gui for it...

Do you have any ideas what I could do next?
>>
>>54616836
>>54616983
Much cleaner.
function getURLParam(key, target = location.href) {
key += "[]="
return target
.split(/[?&]/)
.filter(el => el.startsWith(key))
.map(el => el.slice(key.length))
}
>>
>>54617262

Not bad..
>>
>>54614709
Been in this field as long you state but you should be saying "Been and In out of the web field for over a decade" or something fairly brief and just go in detail more at the interview and be truthful.

I'd suggest you brush up on learning SASS and/or LESS along with grunt and gulp. These are fairly helpful and would show you're trying to keep up to date with things. The problem older people have is, their un-wellness to learn new things, don't be like this and you'll get a job.

All that should be easy for you providing you are near the big 4-0 age.
>>
>>54617262
u ned babbel for tht
>>
I am having trouble making my Submit button sit directly to the right of my form, no padding. It always seems to move about at different page widths or break to a new line.

Is there a proper way to just get the 2 to act as one element.
>>
File: Screenshot_2016-05-18_19-46-57.png (53 KB, 487x626) Image search: [Google]
Screenshot_2016-05-18_19-46-57.png
53 KB, 487x626
Nope. Stop using IE.
>>
>>54617262
Except your function is now broken with standard key-value pairs that aren't array-notated.
>>
>>54617645
OP asked for array notation specifically.
>>
>>54617442
I'm 27. Good advice though. Will learn LESS this weekend.

Currently in talks with a recruiter, just getting turned down for 15 an hour? Come on. I just need be more I suppose.
>>
What's the best IDE for web developing?
>>
>>54618782
What language? If it's just frontend, any text editor with a couple of plugins is more than enough.
>>
>>54618782
>>54618852
brackets + chrome delevoper tools
>>
>>54618852
mostly PHP and JS
>>54618939
ty, will consider that
>>
>>54613602
Yes
>>
>>54619020
if you use brackets download the addon "beautify.io"
>>
>>54618782
Sublime.

I used Brackets before with space gray and minimap. Havent found one thing that brackets does better than sublime. Even the autofill is better. It doesnt shit up your code most of the time by forcing close tags and stuff like that.
>>
>>54620128
Also it doesnt take 3 decades to load on windows or crash everytime on ubuntu.
>>
>>54618782
Anything by IntelliJ, most likely WebStorm
>>
>>54596814
download emulator, your life will become easier
>>
>>54599978
He's right, I don't know why people are arguing with him
>>
>>54605164
Wrong on every level.

If you're going to speculate please say so.
>>
>tfw I'm afraid to use new tlds due to bankruptcy, price changes and other irregularities
I like my three letter domain, but I'm afraid I'll stick to my safe home at .com and .net
>>
pork.xxx

What a waste of a great domain.
>>
I'm upgrading from a 128 OpenVZ plan at Ramnode.
Should I go for the 512mb massive plan with 40 gigs ssd

or

https://www.ovh.com/us/vps/vps-ssd.xml

which has 2 gigs memory, but a 10 gig hard drive?

I kind of want this to be my own cloud, along with obviously a builtup website.

As well, is there a way to snapshot my existing install and reload it so I don't have to redo it all?
>>
>>54598386
Yes, just use ES6 now with babel.
>>
>>54623039
Never mind the server part, I did a BBB review, and it turns out there is a reason its so cheap, bad service and no service.


Now should I host in the Netherlands or the US?
>>
>>54623768
The dutch collaborate with FBI anyway so you might as well choose the one closer to you
>>
>>54623816
That's not entirely true. The Dutch police cooperates with the fbi. But Dutch hosters themselves arent fond of it. Like leaseweb who deleted the evidence against megaupload because the fbi didnt pay the hosting bills, despite an American court order. The notice and takedown procedures are more lenient and a dmca is meaningless. Fines have no punishment element in Dutch courts so for using copyrighted pictures the fine is for example 2 times the selling price of that image, which might be 60 euros instead of thousands of dollars. Privacy regulations are better.

Legally the USA really has to be avoided.
>>
>>54620128
>It doesnt shit up your code most of the time by forcing close tags and stuff like that.
except it does
>>
>want to be a front end dev
>not confident in my ability to self teach at an efficient rate
>seek out coding camps and schools in my area
>find one offering scholarships
>the entire application save for 3 questions is asking what id do to promote diversity in tech, how I'd help minorities with my skills, how I'd advocate for progressives etc.
dude what, I just want to learn coding so I can stop being a fucking neet
>>
>>54626402
You dodged a bullet, anon. You wouldn't learn about programming there, just about safe spaces and how to check your privilege.

You can teach yourself, just stay disciplined and learn something new every day. If you need the structure of school, take a look at some university CS programs. 99% of bootcamps aren't worth your time.
>>
Anyone know of actual steady online/remote jobs? I'd be fine working minimum wage for a few months as long as it's consistent work and not freelance/contracts.
>>
>>54626469
I'm just not sure where to start or what to do everyday. I've used codecademy a ton in the past but it just isn't best for me as far as learning and retaining. When I think of everything there is to learn including the back end, it becomes so overwhelming that I don't do anything with it.
>>
>>54626469
i learned a shitload at bootcamp personally

its not enough to get a job immediately, but it's enough so that you can self-learn much faster after and get a job pretty soon
>>
>>54626543
Don't worry about learning everything, that's literally impossible for one person. Backend is actually easier than frontend imho.

Pick a project and keep working on it every day. Any time you get stuck, just google it, and if you still can't figure it out, ask on here or on IRC or something. (Remember, google-fu is a skill unto itself, and it's a skill you should master ASAP). Don't worry about learning every meme.js framework there is. Concentrate on HTML, CSS, and JS, those are your core skills.

Eventually, you'll need to google things less and less, and when you do need to, you'll find that it's a lot easier because you'll have a general idea about how to do it already.

Once you feel like you're starting to get a handle on that stuff, then start thinking about backend. Pick a language (NodeJS, Python, Ruby, ASP.NET, PHP, etc) and start learning it. Make sure you understand things like HTTP, REST, MVC pattern, conceptual things like that. Get to know your preferred language's preferred backend framework (Express, Django, Rails...) and start making projects. Just like before, keep googling till you understand things. That won't get you all the way to employment, but it'll give you a better idea of where you stand and where you need to go.

Overall, just keep writing code every day. A github profile with a lot of little green squares is better than a blank one.
>>
>>54626734
Code bootcamps are a meme.

Of course a few of them are going to be decent, but the vast majority are either scams or sjw shitholes or just unregulated bullshit.
>>
why does freecodecamp put jquery before javascript? should you learn javascript first?
>>
>>54627486
Yes.

>>54626517
Should be in the OP. Lionsbridge and shit like that. I got accepted, but you make just under 10 an hour after taxes so it wasn't worth it.
>>
/wdg/ approved SSL cert CA?
>>
>>54627486
Sounds like they're almost definitely retarded and you should do a different tutorial.

And yes, obviously, you need to know Javascript first.
>>
>>54627513
Thanks for the suggestion. As long as it's steady pay then I'm good with that for now.
>>
>>54628046
Deprecated. Use letsencrypt.
>>
>ctrl + f + react
>0 of 0 results
Why?
>>
>>54629037
React is bloated shit.
>>
>>54592746
Guys, I really really want to learn to code to even a professional level, I don't care it it's gonna be hard, I'll put my heart and soul into it, what is the best place to start to really learn?
I would really apreciate your advice
>>
>>54629086
Maybe so, but I saw that it was more popular than Angular (which surprised me).
>>
>>54629295
Read books and do all the exercises.
>>
>>54629367
any book you would recommend?
>>
>>54629508
What languages/platforms?
>>
Does anyone here have experience with udacity?

My friend works with a web dev who got hired with a udacity "nanodegree."

Their full stack web dev course is $200 per month, about 200 hours. Or for $300 a month you get a guarantee where you get your money back if you aren't hired in the field.

I know i can potentially get hired for free if i stick to the resources on bento.io and odinproject and build a portfolio, but i was wondering if udacity helps.

I'm 26 working a pretty dead end job. No degree, going back to school is an option but it's my last resort.
>>
>>54629524
I've researched a bit and I understood that eventually I would have to learn a bit of everything so whichever you say it's good I will study it
>>
>>54629714
Do the codecademy course. Then pick a book about HTML + CSS, then a book about Javascript.

This how I started 4 years ago. The trick is to never stop learning.
>>
http://jsfiddle.net/Lcsb6/

Does that shit work for any of you?
>>
>>54629774
Thank you for your advice, I really appreciate it, I was just doing python on codeademy and tried it on real life but codecademy was teaching me python 3.0 and current one is like 3.5 so that's why I dropped it.
Still I will follow your advice, thank you so much
>>
>>54629832
What is it supposed to do?
>>
>>54629867
Scroll when you hover over the grey.
>>
>>54629835
Who ever told you there's much difference between python 3.0 and 3.5? The syntax is pretty much the same.

Go back to that course, bro. Python is a nice backend language to learn.
>>
>>54629037
>>54629086
>>54629324

React dev here, AMAA
Thread replies: 255
Thread images: 24

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.