[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: 197
Thread images: 18
File: 1468062808226.jpg (10 KB, 400x400) Image search: [Google]
1468062808226.jpg
10 KB, 400x400
> 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/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
https://www.youtube.com/watch?v=JxAXlJEmNMg&feature=youtu.be&list=PL7664379246A246CB [Embed] lecture series.

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

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

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

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/
>How to get started
https://www.youtube.com/watch?v=pB0WvcxTbCA [Embed] - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://www.youtube.com/watch?v=zf_cb_Nw5zY [Embed] - "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
https://www.openshift.com/
>NEW!
https://scaleway.com/
>>
How complex do my projects have to be in order to get a job?
>>
File: quotegen.png (2 MB, 2748x676) Image search: [Google]
quotegen.png
2 MB, 2748x676
Workin on a quotes machine, how does the overall design look so far?
>>
>>55541360
>quotes machine
Kind of neat.
>>
>>55541360
Are you using an API to get quotes?
>>
>>55541730
No, put some random ones in an array
>>
File: IMG_20160707_220017.jpg (2 MB, 2592x4608) Image search: [Google]
IMG_20160707_220017.jpg
2 MB, 2592x4608
Recommended reading n MVC?
>>
>>55541835
Wikipedia article
>>
>>55541730
Where would you even get an API for that?

I was looking for something to make for a new project. Not a quotes API though, just something cool I could work with.
>>
>>55541360
How have you done it?
>>
>>55542349
What do you mean? html, css, vanilla js and jquery.
>>
>>55542349
>being this retarded
>there are people on this general that can't make this project.

baka. Really simple yet nice design though m8, i really like it.
>>
>>55541360
The shadows on the buttons look lame, making it a white 5-7px border would make them look much better. Rounded borders are also lame, just make it a square.

Also the shadow on the quote container is too thin and solid, add more blur and make it wider.
>>
>>55543100
>making it a white 5-7px border would make them look much better

pls no
>>
>>55542944
is it forbidden for people who want to learn ?
>>
>>55543148
yes
>>
>>55542944
thanks m8

>>55543100
thanks for the suggestions too
>>
>>55542349
>>55543156

If you know basic html, css and really basic js and jquery then it's simple.

Make a mockup in photoshop, build up the framework using bootstrap, and then go about styling it. If you get stuck use stackexchange god bless them lol
>>
File: raspilamp.jpg (970 KB, 2448x2448) Image search: [Google]
raspilamp.jpg
970 KB, 2448x2448
>>55543216
thanks!
>>
Is Dynadot good for registering domains?

I wanted to pick namecheap, but they don't have many domain extensions plus they are a reseller.
>>
>>55543517
all that effort just to turn on a lamp
>>
>>55544228
>have an eeepc
>it uses less power than a lamp
Might as well keep my laptop on.
>>
So in jquery for some reason when I put a function in a .click when I click the object the function only executes once even though I click it more than one time. If I put the exact same code but inside the .click it works fine, what am I missing?
>>
Where can I host my projects? I code it on Brackets but don't know where to put it up. I don't like Codepen, looking for something simple but professional looking.
>>
Started my first real job in a foreign country just a month ago guys. Don't give up on this if it's really what you want to do. Took me 3 years, and I still feel like i'm not worthy of calling me an actual developer but the important thing is that you can do it!

>inb4 nice blog post
>>
>>55541109
all depends on the job really. Where are you at right now? Personally if i had to give advice i'd get really fucking good at vanilla js.

Learn about scope. Learn about the methods. Learn object orientated principles.

Set up an api using express (or use an existing one like instagrams) and just interact with it using vanilla js. Then when your comfortable, jump into a framework and learn to interact with it using that!
>>
>>55544321
Fiddle it so we can help you.
>>
>>55544429
I can do vanilla JS.
>Learn about scope. Learn about the methods. Learn object orientated principles.
I know these things. I've built hobby projects that make use of APIs, I can build web apps with Django, and so on, but will I be expected to know a language or a framework inside out if I'm applying for jobs in which I'd be using it?
>>
>>55544505
If you can do all that then you're more than ready for an entry level position. You're making me feel bad because it sounds like you know more than me
>>
>>55544505
and in regards to knowing a framework it's not really necessary. I got taken on to work on a backbone project and I'd never even looked at it before starting.

I had to do a quick code test to show that I can make something, but yeh don't think you need to know all about the framework
>>
>>55544449
https://jsfiddle.net/5w5z8crr/

Here you go, sorry if it's a stupid problem I'm still in the basics
>>
Lads, is there a javascript library that will turn a json defined layout into html?

so something like this (this is just a conceptual idea)

layout = [
{
type: 'row',
children: [
{
type: 'col',
width: 6,
children: [
{
type: 'col',
width: 12
}
]
}
]
},
{
type: 'row',
children: [
{
type: 'col',
width: 12,
children: [
{
type: 'col',
width: 6
},
{
type: 'col',
width: 6
}
]
}
]
}
]


to this

<div class="row">
<div class="col">
<div class="col"></div>
</div>
</div>
<div class="row">
<div class="col">
<div class="col"></div>
<div class="col"></div>
</div>
</div>
>>
>>55544716

I don't know how to solve this without putting the contents of the function directly inside the click. Someone else will help you eventually.
>>
Man, went on Angel List to find a remote job and at least half of the startups are Indian.
Just about ready to give up and find a retail job a pack it in bros.
>>
>>55544716
Literals are pass by value in JS. a is not number, but a copy of number. See https://jsfiddle.net/5w5z8crr/5/
>>
>>55544753
Pick your poison https://garann.github.io/template-chooser/
>>
File: 1416422497440.jpg (94 KB, 600x446) Image search: [Google]
1416422497440.jpg
94 KB, 600x446
>second interview
>first one went great
>"oh great you're here anon, let me get you set up"
>here's a pdf, turn this into an html email template
>literally no idea how to do this
>fucking none
>spaghetti time
>panic for about 20 minutes while they work silently behind me
>finally decide to do something, i export the pdf as a jpg, and start putting the links on a separate z-index with absolute positioning
>alright anon that's one hour
>oh my, your strategy was sound! but that would never work in any email client ever
>i guess that wraps us up for today
>we'll be in touch for next steps

I'm a fraud and I hate myself. Please end my life.
>>
>>55541835
The design pattern or ASP.NET MVC?
>>
>>55545100
>Angel List
Ha
>find a remote job
Hahahah
>Just about ready to give up and find a retail job a pack it in bros.
If you're willing to leave the house to work in retail, why won't you leave the house to work as a web developer? You moron.

I got a nice comfy office job working with node.js all day. Small company, no bullshit. I don't have a degree and didn't have any commercial experience when I started. If you know your shit and you can fill your resume with enough buzzwords to get past the recruiters, then you can probably get a job.
>>
>>55545172
>literally no idea how to do this
>fucking none
And you didn't think to Google it?
>>
>>55545278
I didn't know what we'd be doing. Just fucking kill me okay
>>
>>55545239
>If you're willing to leave the house to work in retail, why won't you leave the house to work as a web developer?
Gonna need a visa for that. No dev jobs anywhere here.

>I got a nice comfy office job working with node.js all day
I envy you.

>fill your resume with enough buzzwords
Can you link me to a good resume for this field?
>>
>>55545122
Thanks that helps, I made the function take the argument because later I'll need to execute it with different numbers and stuff is there a way to make it work like that or at least with less code than rewriting the function all over again?
>>
>>55545290
So you couldn't google it while you were there doing it?

What the fuck kind of bullshit hiring process is that?

I'm a professional web developer, and I don't even get paid in indian rupies. I don't know
how the fuck to do a HTML email template off the top of my head. Personally the way I'd do it is sign into Mailchimp and do it all in there because email is too much of a ballache not to just do it through a 3rd party service.

Googling shit you don't know how to do is part of the skillset of any developer. Do you have any idea how long in a given day I spend on Stack Overflow or looking at documentation, or even watching a video tutorial on how to do something? Fucking ages.

Asking candidates to do some random-ass esoteric task, without giving them all the tools they would normally have access to, is fucking stupid and a shitty hiring process. It's like you're hiring a plumber but putting him in a room that is steadily flooding with water, and telling him he has to fix it but he can't use a fucking wrench because that'd be too easy.

Don't worry about it. Find a place to work that doesn't have a dogshit hiring process.
>>
>>55545391
Wrap the parameter in an object.
>>
>>55545307
>No dev jobs anywhere here.
Where is that?
>>
>>55545172
I thought that's pretty much how it's done?
>>
>>55545460
No interview I've been in has given me access to a computer. It's all pen and paper.

>solve X algorithm from Y output
>explain what this script does and ways that it can be improved
>tell us about differences between browser A and browser B
>thanks for interviewing, you're quite experienced but not a good cultural fit, best of luck in your job search
>>
>>55545683
>you're quite experienced but not a good cultural fit

Are you black?
>>
>>55545683
>solve X algorithm from Y output
>explain what this script does and ways that it can be improved
>tell us about differences between browser A and browser B

Those questions are also fucking gay.

But that's not exactly implementing an email html though is it? I'd assume they'd give you a computer for that.
>>
>>55545750
nah just white
>>
How much web dev money is in your bank account? Mine has 12k
>>
>>55545460
>during interview
>tell me what this obscure function do and when you would use it
>in the actual job
>"don't get nervous anon, we're a pretty down to earth group, you don't need to know everything you know, like all the functions and stuff, as long as you can google you'll be ok"
>>
>>55546009
>You don't need to know anything besides how to google

excuse me while I got light my degree on fire
>>
File: image.jpg (2 MB, 2480x3508) Image search: [Google]
image.jpg
2 MB, 2480x3508
>>55540825
Can a Thinkpad T400 with 3Gb of ram handle web development?
>>
>>55546009
Googling works best if you know what you are looking for...which comes from knowing how to program already. A programmer is alot more likely to find what he is looking for and know how to implement the answer as a opposed to a non-programmer. The non-programmer may never find the answer or if they were to even stumble upon it, they might not know that they did.

Google is just a tool to support you. The knowledge how to use it effectively comes from your experience and education. It's unlikely to make up for those things if you lack them.
>>
>>55546009
Well they do want people who have some level of knowledge. If you can demonstrate knowledge. But admitting when you don't know something is also a good thing (or should be) because it can show that you're not going to hide your mistakes when you're working on something, which can be a very bad thing.

Also there's literally a Udemy course specifically designed to train you to pass those stupid interviews. Just learn that shit.
>>
>>55546085
Yes.
>>
>>55545486
>Wrap the parameter in an object.
No idea how to do that but you actually helped me a lot, thanks pham
>>
>>55546590
Instead of
myFunc(number)
do
myFunc({number})
>>
File: 1467371996362.jpg (57 KB, 600x622) Image search: [Google]
1467371996362.jpg
57 KB, 600x622
How do you NodeJS developers handle callback nesting?

Also, do you happen to have any good resources to handle bad practices?
>>
>>55546737
Async functions.
>>
>>55546737
>How do you NodeJS developers handle callback nesting?

ES6 Promises make async very easy to manage, and are available natively in Node.

https://www.youtube.com/watch?v=g90irqWEqd8
>>
>>55546633
Do I wrap it in when declaring a function or when calling it, both? I think I tried every combination of that, doesn't seem to make any significant change https://jsfiddle.net/5w5z8crr/6/
>>
>>55547015
Best way would be to wrap the number value itself, I guess. https://jsfiddle.net/5w5z8crr/7/
>>
>>55547070
Yeah I tried that, but failed to successfully pass other parameters other than number without changing the whole function/variable again
>>
Is using HTML/CSS to make Android apps still laggy and shit?
Tried Cordova some time ago and it wasn't very quick. For my next project I want to do something a little different from the usual browser based web apps.
>>
>>55542098
There are a few, just google them.
>>
Are programming meetups worth attending?
>>
>>55548674
If you want to hear how white and problematic you are, sure.
>>
>>55548706
I'm sure there are real groups out there.
>>
>>55546085
I develop on a laptop with 1gb ram. As long as you don't use a shitty bloated to fuck IDE you'll be fine.
>>
Someone recommend me a text editor with a good ftp plugin? I use wine + notepad++
>>
>>55549529
Just use filezilla you goddamned autist.
>>
Any front-end bros out there wanna collaborate and make something like this?

https://dribbble.com/shots/2831822-Cloudy-with-a-chance-of-Doge-Night-View

This isn't my design, obviously.

We could mix it up by making it more of a start page, add a small section for links and another section with a calendar.
>>
>>55549702
Looks great and seemingly easy to make, but I doubt any of us have decent art skills.
>>
What's the go-to payment solutions for an eCommerce site? PayPal and amazon seem like the most popular but is there a better option?
>>
>>55540825
Hi, i built a website with the django framework, how do connect this to a domain name? It´s not hoarded.
>>
>>55548746
The autists in the wdg Discord chatroom just finished teaching formal grammars or some shit.
>>
>>55550367
You're thinking of it wrong. When you build a website with django you're running a server. All the server does is send people html when they ask for it. A domain name just tells computers where your server is located. You have to manually tell the domain name where your server is. You do this by editing the DNS (Domain Name Service).

Here's a shitty example video using godaddy. Don't use godaddy though because it is also shit.
https://www.youtube.com/watch?v=Mt4muw3uxOc

You may also need a dedicated computer to serve your website. For this you may need to use a vps.

Here's a tutorial on that kind of stuff.
https://www.youtube.com/watch?v=bmkajH5pEaQ&list=PL313A26329E0C8900
>>
How do I find small(ish) freelance webdev jobs? I've tried craigslist, but all the job advertisements are for full time positions. I've also tried some freelance websites, but you either have to have some sort reputation on the site or be willing to work for next to nothing.
>>
First for Ionicframework.com
>>
>>55550506

Freelancing is a full time job. Have a portfolio ready. Every ad online is expecting a RFP.
>>
>>55550507
See >>55547900
>>
>>55550308
No worries, if nobody else wants to I'll have a go at it myself.
>>
>>55547015

Jesus Christ you can do this in Angular in a 16th of the code with 3 directives

Html
<input 
ng-init="data.counter = 0 "
ng-click=data.counter -= 1"
ng-model="data.counter"></input>
>>
>>55550611
well excuse me mr fancy pants angular man
>>
>>55550334

1. Woocommerce/wp
2. Squarespace
>>
>>55550674

Sorry, http://stripe.com as API only.
>>
>>55545962

Do not accept a job that only gives you html emails to "program" as a test
>>
found out about sikuli when I was trying to bot a browser game. This is the code that I came up with today while learning python for the first time.
I want to make it so it spams left click when it's told to do so but I'm not sure if the loop is making it click at 1 sec interval or is the loop running the whole command again.
Can anyone take a look and let me know how to fix it?
running = True 

def hotkey(event):
global running
running = False

#when hotkey is pressed, will launch script
Env.addHotkey('`',KeyModifier.SHIFT, hotkey)

while True:
Region(-1127,86,796,641)
# highlight the currently fontmost window for 2 seconds
setShowActions = True
s1 = Screen(2)
hover(Location(-978,384))
if s1.exists ("1468375558600.png"):
s1.click("1468375558600.png")
s1.exists("1468381755122.png")
hover(Location(-978,384))
wait(.5)
click(-978,384)
s1.find("1468371290523.png")
s1.click("1468371290523.png")
s1.find("1468370633327.png")
s1.click("1468370633327.png")
while s1.exists (Pattern("1468382021902.png").similar(0.89)):
click(Location(-1037,515))
if not s1.waitVanish(Pattern("1468382021902.png").similar(0.89)):
break
wait(.5)
s1.type('w',KeyModifier.CTRL)
print 'part 1 done'
else:
while s1.exists (Pattern("1468382021902.png").similar(0.89)):
click(Location(-1037,515))
if not s1.waitVanish(Pattern("1468382021902.png").similar(0.89)):
break
print 'part 2 done'
if not s1.exists ("1468381755122.png"):
break
print 'something happened'


Not sure if the formatting will stay since it's a long ass code. Might repost with pastebin if it turns out badly
>>
>>55550611
>>>55547015
><input
>ng-init="data = {}; data.counter = 0 "
>ng-click=data.counter -= 1"
>ng-model="data.counter"></input>
>>
>>55550460
thanks! very helpful
>>
>>55550611
And you only need one bloated framework for this.
>>
File: apple store.jpg (23 KB, 671x197) Image search: [Google]
apple store.jpg
23 KB, 671x197
>>55540825
Hi, /wdg/!
Looking for a price comparator like idealo, that has search API. Is there at least a single one that's not indian? Preferably based in europe
>>
I need to interview people for a back-end dev position. Suggest questiond and exercises for technical interview, please.
>>
>>55552269
lol fizzbuzz
make them write a simple response to an AJAX call given a spec, then test it with a frontend you previously wrote. Make small changes to spec for every candidate. Boom, done with the least effort possible.
>>
>>55552303
Simple but to the point. I might do this. I would have to define a DB schema or where they get the data from, though.
>>
Anyone familiar with nginx here? I have a server entry that simply does a rewrite from http to https but I'd like to make an exception for a single location and keep serving it through http, but as far as I can tell you can't do negations in the URL rules, any way around it?
>>
>>55543216
>using JQuery for simple shit like this

Kill yourself
>>
>>55545172
Oh man I wish I had interviews that easy. You got so lucky anon, but you still fucked it up
>>
>>55553375
location ~/exception {
...

}
location / { #everything less specific
rewrite
>>
>>55545486
>>55546590
>being JS illiterate
Just use the default 'arguments' var.
>>
>>55553585
Thanks champ, that worked just as intended.
>>
>>55553619
Nice reading comprehension. His problem was treating the argument as if it was a pointer type, retard.
>>
>>55553457
Teach me then genius. I started learning a month ago, I'm still all over the place.
>>
What's the best way to let the user define a blogpost? Let him write some text and parse tags out of there to replace with images?

Up to now my user can only define a title and a block of text. That's fine, but not enough.
>>
>>55544341
bump
>>
>>55554454
Get a domain, point it towards your hoster. I like nearlyfreespeech.net as a hoster (you only pay for used ressources), and namecheap for my domains.
>>
File: ed.png (167 KB, 1362x678) Image search: [Google]
ed.png
167 KB, 1362x678
>>55543100
>>55541360
better?
>>
>>55547015
Like this anon?
>https://jsfiddle.net/5w5z8crr/8/
>>
>Here anon here is a site based on the elevate child theme for Gensis. Here is the concept in which the layout is completely different we want the site completed in 14 hours. Any more time wise and you'll not be paid for the extra work.

Work for a web studio as a contractor.
I fucking hate my job.
>Boomers and Gen X flat out refuse to train anyone or except a reality newbie won't be as fast as someone doing this for 12 years.
>>
File: 1447571173931.png (226 KB, 400x511) Image search: [Google]
1447571173931.png
226 KB, 400x511
Trying to remove all Inner HTML Mark Up Content on Genesis Home Page chilf theme.


Keep on getting error

>>>. This the eroors Fatal error: Cannot redeclare thmeprefix_remove_homepage_content() (previously declared in /home/mdnbcheese97/public_html/build/wp-content/themes/MelbourneDnB/front-page.php:47) in /home/mdnbcheese97/public_html/build/wp-content/themes/MelbourneDnB/front-page.php on line 45


https://github.com/SleepOwl/Melbourne-drum-and-base/issues/1
>>
>>55540825
Don't die on me, thread.

>that pic
why haven't you used the right one, fagOP?
>>
>>55556612
>the right one

You mean the one with the spaghetti code in the background?
>>
Why doesn't this grab quotes? What am I doing wrong. The .text function about the .getJson does change the text, but the one inside of the .getJson does not work. I've tried jsonResults[0].author and that didn't work either.

$(document).ready(function() {

var url = "http://quotes.stormconsultancy.co.uk/quotes.json";

$("#getMessage").click( function(){
$("#tets").text("Change To");

$.getJSON(url, function(jsonResults) {
var quote = jsonResults.quote;
$("#tets").text(jsonResults.author);
});
});
});
>>
>>55557078
console.log inside the function until you find where the issue is, and check the network logs.

Basic debugging.
>>
Why does Firefox not allow local JavaScript to be executed?
>>
>>55556612
generals dont die retard
and this is the right image retard
stop being a retard, retard
>>
>>55554587
yeah
what's your limit on characters desu, there are some really long ass quotes
>>
>>55557158
I'm self-teaching on freecodecamp and have only ever used codepen.io, this shit doesn't seem to support much debugging.
>>
>>55557255
Fuck codepen, do it locally.
>>
>>55557255

You can see console logs in the browser right click view source when running codepen
>>
>>55557255
Fellow freecodecamper here. Codepen is simple but I noticed it leaves you incapable of using a real text editor and combining different languages as it lets you conveniently enter links to resources in the settings.

Use Brackets, then put it up by using Github Pages. Looks more professional too.
>>
>>55557016
That one, the original.

>>55557223
>this is the right image
are you fucking idiot? that's the logo of an architecture company
>http://www.wdgarch.com/
the guy who first started using this shitty image even said
>i just google'd wdg and chose the first i saw because i'm a fucking faggot
>>
>>55557240
I tried to keep them to one liners, the longest I have is the "There are two types of people in the world, etc" quote from The Good, the Bad and the Ugly
>>
FUCK YES

landed me a job thanks to wdg

im rollin in the dough and learning tons

what a time to be alive
>>
>>55557078
because it returns an array, not an object.
>>
>>55558447
elaborate, what kind of job?
>>
File: 1420879248028.jpg (90 KB, 400x400) Image search: [Google]
1420879248028.jpg
90 KB, 400x400
An open question. Please do not take it as a bait, because its not!
yeah yeah.. install gentoo and all that stuff

Why do so many web-developers use apple products?
I can see why you would like to have a os that is part of the unix-family but why OSX?
Are there any killer apps?
Do you just like the way it works?
Do you like the look of it? Why?
I would like to know because i started to work as the in-house it-guy at a company that uses OSX almost exclusively and i have used PCs with both windows and Linux and i think that OSX is a horrible mess of illogical gestures to do stuff that isnt that helpful!
Again, why not use Linux or another -IX OS?
>>
>>55559173
I don't care much for the OS, but the battery life is good.
>>
>>55559173
Web development, especially front-end, often requires you to branch out it into other creative disciplines and make use of or at least read files created in programs such as Adobe suite, etc. There's also a lot of stuff you might need like Slack, that Linux just is not going to touch.

OSX can run these programs and also has a UNIX terminal, so it's kind of the best middle ground.
>>
>>55559173
As >>55559267 said, it is a solid choice for front-end devs mainly because of the Adobe suite. For pure backend devs there is literally no reason to not develop on the same OS your server will be running on.
>>
>>55558888
>>
File: 1458479577624.webm (930 KB, 426x426) Image search: [Google]
1458479577624.webm
930 KB, 426x426
Learning Django atm but I'm stuck at a point in a tutorial.

Trying to use makemigrations, but it's not recognising the app I've included in INSTALLED_APPS

Anyone seen this issue before?
>>
>>55558447
>thanks to wdg

how the fuck did we help?
>>
>>55559173
Because average web developer is actually front end guy who thanks to abominations like wordpress and JS frameworks has delusion that he also knows programming. And front end is basically hipster faggotry and this kind of people tend to like Apple's approach of looks over functionality. Basically antitech people.
>>
Has anyone else jumped on the Reactive bandwagon? I'm learning RxJS at the moment and it's a bit of a foreign concept but it seems legit. Is it just mental masturbation or genuinely how it should be done? I've only just recently switched over the using Promises instead of normal callback stuff.
>>
File: backend-vs-frontend.jpg (46 KB, 552x347) Image search: [Google]
backend-vs-frontend.jpg
46 KB, 552x347
What are stereotypes of Backend vs Frontend people?
>>
>>55545172
>pdf
>turning this into an email template

U wot m8

I work with Mailchimp/Mandrill a lot, why the fuck would you need to do this.

And why would you even need to code something for this, Zapier could handle it easily
>>
>>55560601
Maybe they gave him advice about his interview?
>>
>>55561517
When 90% of the people here are unemployed? Maybe the blind really can lead the blind.
>>
>>55561411
Stereotypes for front end are your average insufferable hipster "code artisan" who sneers at you over your choice of fonts but can't do anything without importing fifty off-site libraries.

Back end is pretty much the same as any other programmer, a sweaty bearded man who squints in bright lights and despite his advanced expertise is used as a perpetual whipping boy by the other teams.
>>
>>55561897
>tfw backend
>tfw dress like a hipster
>I'm wearing flannel right now

I sneer at your choice of programming paradigms, while I spend all day working with node.js and most of my time is spent filling in the gaps between stuff I got off npm... So I'm not sure if you're right or not.
>>
>>55561897
Now tell me what a full-stack dev looks like.
>>
>>55562081
I'm frontend and backend, stereotype me.
>>
>>55562173
Just a normal regular person like me.
>>
>>55561897
>code artisan
haha that's actually really funny.

it's the medium tagline of a guy in SF who posts instagrams of his macbook on a "rustic" table next to an unsipped latte. github is open to an HTML file with two-space tabs, but the real brilliance is in the moleskine to the side. it is the anguish of pixel-imperfectness and the pride of web fonts.

>>55562081
mini lol
>>
>>55562195
Are you really tho? Can you implement a serviceworker?
>>
>>55555282
>help please.
>>
>>55555282
>>55562414
>esoteric question about a wordpress theme that I've never heard of.

Fuck off Pajeet. Build something yourself instead of trying to hack something that someone else made, you'll probably learn more in the process.
>>
>>55562521
Sir, I'm gonna need you to calm down, please.
>>
>>55555282
Get rid of WP and become real developer- it helps. But really error message tells exactly what's the problem- you have two functions with same name. What's little weird is according to error they are two lines apart- maybe some merge problem? Anyway if you gonna post link to github repo you should at least actually upload code there.
>>
I'm applying for a job that includes a billion different tools in the description, it looks like Codeacademy covers all of them but one.

Does anyone know of a good resource for learning ASP .NET MVC?
>>
File: 1414839706425.gif (762 KB, 300x170) Image search: [Google]
1414839706425.gif
762 KB, 300x170
Attempting to upload pic related using following code:

var multer = require('multer');
var randomstring = require('randomstring');
var randomstringOptions = {
length: 5,
carset: 'nigger'
};

// Configuring the storage
var storage = multer.diskStorage({
destination: function(request, file, callback){
callback(null, '../public/uploads');
},
filename: function(request, file, callback){
callback(null, file.originalname + randomstring.generate(randomstringOptions));
}
});

var multerOptions = {
storage: storage,
onError: function(error, next){
console.log('error', error);
next(error);
}
};

var upload = multer(multerOptions).single('image');

/* GET users listing. */
router.post('/', function(request, response, next) {
upload(request, response, function(error){
// if (error) throw error;
console.log(request.file);
});


But the console.log(request.file); prints 'undefined'
>>
>>55562703
Forget about it, the .single('image'); was conflicting with the input name. (The input was named file)

ffs
>>
>>55562521
I have choice in the matter for this contract job for web dev company has insisted I use this. Been a complete and utter fuck fest . I would have created the site myself if I was allowed.
>>
>>55563117
Since they chose it let them figure out the problem.
>>
>>55554863
I think the problem here is that you can't re-use the function with other number passed as argument without changing the value of the original variable all over again i.e re-writing the function each time you need it contradicting the whole point of using functions in the first place.
>>
Lets say i have 10 divs that are vertically ontop of each other. Right now i have a fade and drop effect animation in js that triggers on page load and it works great. However, it happens to all the divs at the same time, i would rather have each one drop and fade in after the previous one finishes (starting from the top). Having a bit of a difficult time figuring out how to accomplish that.

    $(".hitler").css({opacity: "0"});
$(".hitler").css({marginTop: "-10px"});
$(".hitler").animate({
marginTop: "0px",
opacity: 1
}, "slow");
>>
>>55543216
>build up the framework using bootstrap

What? That's pure client side fluff is it not?
>>
>>55564787
https://api.jquery.com/each/
>>
>>55544716
It could be so much easier, and so much more beautiful, with the right libs

(data-binds are awesome)

<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap-theme.min.css" class="theme-stylesheet">
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular.min.js"></script>
</head>
<body ng-controller="MainCtl as main" class="container">
<div class="number panel panel-danger">{{main.a}}</div>
<button class="btn btn-primary" ng-click="main.decrease();">Decrease</button>
<script type="application/javascript">
(function(){
var app = angular.module('app', []);
app.controller('MainCtl', function(){
var me = this;
this.a = 10;
this.decrease = function(){
if (me.a > 1){
me.a--;
}
};
});
})();
</script>
<style type="text/css">
.panel.number { max-width: 200px; font-size: 30px; text-align: center; margin-top: 2em; }
</style>
</body>
</html>
>>
>>55565071
Imagine including an entire framework just to decrease the value of a variable. Yikes.
>>
>>55545172
There's a linux cli utility to literally just turn a pdf into plaintext ascii file.

From that point, you just eyeball it, re-mark it up in html tags, and use some CSS to style

I had to do something like this for a project. Literally just wrapped every line of text in a
<div class="lineItm">[text here]</div> 
and used some css to:
.lineItm { white-space: pre; }


As far as HTML emails? We just had a guy do something in Microsoft Word, then we exported it as HTML. I went in with some php to swap some static values for dynamically generated values, and... easy as pie.

We all get nervous in interviews. I'm sure you'll do better when you've had a few more under your belt.
>>
>>55549529
> wine + notepad++
kill yourself
>>
>>55560601

>start flipping burgers because you're too dumb for this webdev shit
>>
>python can't do a mouse click loop without 3rd party extension

why did I even start with this language first
>>
File: CNYVwmmWUAA7iIl.jpg (2 KB, 106x106) Image search: [Google]
CNYVwmmWUAA7iIl.jpg
2 KB, 106x106
Sorry if this is the wrong place to ask, I've tried stackoverflow and google. I'm following the tizag php file upload tutorial (tizag com/phpT/fileupload php) , and I wanted to see if there was a way to make it so that a link is generated after the files been uploaded, like how imgur does for example. Thank you if you can give me any advice ️ ️ sorry for spamming up this thread...!
>>
>>55565167
>We just had a guy do something in Microsoft Word, then we exported it as HTML

This intrigues me. Tell me more.
>>
>wake up at 7:30
>go to dead end job that I'm far overqualified for
>go to gym after work
>get home at 7
>make dinner and eat it
>begin working on my web project so that I may one day apply for a better job and get it
>have at most 2 hours to code
>tired as shit from work and gym so more like 1 hour to code
>weekends + 5 hours are all I have to get this shit off the ground
I'm never gonna make it. I need a DIFFERENT FUCKING JOB REEEEEEE
>>
>>55546633
This helped me a whole lot but for a different issue.

>thinking about best way to pass json object to server to be handled as a variable type class
>need to handle it server side as 1 of 4 classes.
>will create java script object with first property as the type, the actual data as the second property in another object

Is there a better way to pass a multitude of json objects to be handled server side as a multitude of classes once deserialized?

This seems like it would work.
>>
>>55565117
Imagine being so focused on micro-optimizations that you avoid frameworks like the plague, and never learn the tools required to get a decent job.

Honestly, we both know I'm not trying to sell the dude on angular just to change a single variable. I'm trying to get his interest piqued on data-binds, which actually turn out to be pretty useful in the real world.

[pic not related to databinds, but is related to why you shouldn't be afraid of frameworks: they can allow you to build custom app-behavior for normies to do things like edit their content on their website]

(I probably should've just gone with wordpress instead of trying to build my own interface for everything, but I was kind of retarded when this project began)
(but none of that is the point; the point is: frameworks are useful. Learn them. They're where the money is at.)
>>
>>55565303
Once you upload and save the file, have the server side send back the web address of where it was saved
>>
>>55565303
I don't know php but in rails, you'd have a route that was like get picture/:id => show picture

Basically do whatever you would normally do to serve a file to the client, but in this case make the id of what you show match the id of what was just saved
>>
>>55565402
I only briefly looked at ng1 but I'm working on an ng2 project and loving it.
>>
>>55565378
Try waking up at 6 instead of 7:30 so you'll have some time to code.
Skip the gym a few days?
If you get home at 7 it shouldn't take you more than an hour to shower and make dinner. Work from 8 - 12 then you will get 6 hours of sleep.

If you want it that badly then make a few sacrifices.
>>
>>55540825
does anyone have any experience with slick-sliders? i am trying to put a div over the image that has the slide number on it (i.e. "1/5"). how could i do this?
>>
>>55565402
Data-binds can be a terrible idea in some situations. I'm working on a project that should still be snappy enough on mobile with several thousand model-view pairs loaded. At such numbers event-driven setups start to lag heavily as well.
>>
I have a simple website that allows users to send maintenance requests. The requests are stored in a MySQL (not my choice, so don't complain) database.

Would it increase security if I create multiple users: one that can *only* INSERT data into the requests table (used through the website), and one that can *only* SELECT and DELETE the table entries (this is for viewing and deleting existing requests)? Then, even if someone somehow gets through the security layers (I am using PDO and prepared statements, so it should be safe from injection attempts), they can't do anything else except INSERT new data into the table? The browsing account is protected by password and IP checks (it only allows certain IP addresses to open the page), so it won't let an attacker do that much damage either.

The host uses phpMyAdmin, so I don't really need a separate "root" user for my database that can do everything.

I'm asking because I couldn't find anything about this through some Googling.
>>
Can you guys please check and find bugs in my first important project?
It's for a friend and for school at the same time.
I have to use just html css and js, this is what ive made so far:
https://7bbf6cdeff24a430c94b4dab80abd4497d2bb946.googledrive.com/host/0B9Ihr8Pj1h_heXdDQXhiYkZHaTA/index.html

dont be mad at me im kinda new(3-4 months)
>>
>>55568952
>tfw i probably couldnt make something like this
>tfw never gonna make it
I would post a sad pic but i lost my reaction pic folder
>>
>>55568952
Your page shouldn't scroll when the burger menu is open. I would tell you how to fix it but honestly i have no idea
>>
https://uchan.plebco.de
r8
>>
>>55568993
drink coffee and keep trying anon you can do it!
step after step, project after project

>>55569015
i had that in mind but i couldn't find a cross-browser way to do it... do anybody here know a
js way to stop the browser from scrolling?

>>55569030
cool anon thats really nice!
>>
>>55569015
issue solved thanks for the input, if you like to check the link is the same
>>
r8 pls
idtrend.xyz/finity
>>
>>55569219
>idtrend.xyz/finity
the background img is a bit too heavy to download expecially if you wanna blur it afterwards, just make it small.
its not that really responsive on high res devices
and it doesnt seem secure at all im not gonna put my email in that
>>
>>55569051
>js way to stop the browser from scrolling
Listen for the scroll event and preventDefault.
>>
>>55569582
i made this on opening

this.s = window.scrollY;
window.onscroll = function() {
window.scrollTo(0, s);
}

and i set it back to normal when i close, i think its okei this way
>>
>>55569241
well thanks for the advice i can confirm this is need more works on security
>>
>>55569769

>get Les Encrypt setup

What's the backend?
>>
>>55569849
meme tier

(you know that)
>>
>>55569030
You're gonna get a lot of shitposts from bots if you don't use recaptcha.
>>
>>55569051
>js way to stop the browser from scrolling
literally cancer
>>
>>55571714
recaptcha is fully implemented, but not enabled on all boards.
>>
>>55545460
>bullshit hiring process

I am studying software engineering at a university next year. This is my biggest fear when it comes time to look for a job. In fact, I plan on spending most of my free time creating projects that one day might become profitable just to avoid the interview process.
Thread replies: 197
Thread images: 18

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.