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

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 346
Thread images: 28

File: Z6zEcJj.png (731KB, 824x553px) Image search: [Google]
Z6zEcJj.png
731KB, 824x553px
Deal with the i's because I'm on mobile and you're all too lazy to make a thread edition.

>Díscord
https://díscord.gg/wdg

>IRC Channel
#/g/wdg @ írc.rízon.net
Web clíent: https://www.rízon.net/chat

>Learníng materíal
https://www.codecademy.com/
https://www.bento.ío/
https://programmíng-motherfucker.com/
https://gíthub.com/vhf/free-programmíng-books/blob/master/free-programmíng-books.md
https://www.theodínproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozílla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunctíon
computerphíle
codíngraínbow

>Frontend development
https://gíthub.com/dypsílon/frontend-dev-bookmarks

>Backend development
https://en.wíkípedía.org/wíkí/Comparíson_of_web_applícatíon_frameworks
[Gíst] backendDevelopmentBookmarks.md

>Useful tools
https://pastebín.com/q5nB1Npt/
https://líbraríes.ío/ - Díscover new open source líbraríes, modules and frameworks and keep track of ones you depend upon.
https://developer.mozílla.org/en-US/docs/Web - Guídes for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - Líst of publíc APís

>NEET guíde to web dev employment
https://pastebín.com/4YeJAUbT/

>How to get started
http://pastebín.com/pDT82mQS
http://pastebín.com/AL6j7GEE

>cheap vps hostíng ín most western locatíons
https://lowendbox.com
https://www.dígítalocean.com/
https://www.línode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
File: -H9D3FAwROo.jpg (204KB, 1015x1200px) Image search: [Google]
-H9D3FAwROo.jpg
204KB, 1015x1200px
first for nodejs
>>
File: Drawasaurus.jpg (890KB, 4320x2560px) Image search: [Google]
Drawasaurus.jpg
890KB, 4320x2560px
Does anyone wanna help test my Pinturillo rip-off? It's my first attempt at using node js and it's basically Pictionary in your browser. I'm probably gonna buy a domain and throw some ads on it but I have no idea how to build a playerbase.
I'd also love some design critique because I had a lot of trouble designing things (especially the lobby) to look good on mobile while making use of the available space in a desktop window. I haven't tested it on all browsers/devices yet (no Apple) so let me know if it looks wonky.
http://drawasaurus.herokuapp.com
>>
whats a good place to start laravel beside laracasts
>>
>>60159691
is she ill? her hand color is different than her face color.
>>
>>60159958
>http://drawasaurus.herokuapp.com

lol played it for a bit, pretty good
>>
I need a self-hosted headless/decoupled (whatever you want to call it) CMS, that lets users edit content in an admin interface, which I can then retrieve in the websites javascript with a quick ajax request.

Anyone got experience with ButterCMS, Directus or something similar?
>>
>>60159958
pretty cool but you really should differentiate yourself from the competitors
>>
>>60160543
sry, meant Cockpit not ButterCMS
Butter can't be self-hosted
>>
I'm looking at the green start button on visual studio. What's the difference between starting "IIS Express" and starting "web"?
>>
Is there something like The Odin Project, just concentrated on Python and Django?
>>
>>60160559
In what way do you mean?
>>
>>60160692
web will host it through its integrated kestrel server instead of iis express.
>>
What are my options if I want a lightweight JS desktop application?
>>
>>60161301
I'm just launching chrome with --app=<url>
Good enough for me.
>>
>>60161301
probably electron
>>
>>60161356
how big is an electron app?
>>
File: 1485889119752.gif (8KB, 645x773px) Image search: [Google]
1485889119752.gif
8KB, 645x773px
>he's not an asynchronous developer
>>
>>60161383
is this just bait for each thread?

>>60161301
how much help do you want from libraries? Like you can go vanilla and that will be as light as they come. But frameworks can help you to create an SPA and then all loading is in the front and you never have another page refresh (that's another form of light weight)
>>
>>60161372
I'd say its about 80-100 MB, it bundles chromium so
>>
>>60161460
my bad, its actually more. Postman seems a pretty straightforward app and its 175 MB
>>
>>60161422
I just need something really barebones with file access and a basic webpage

>>60161460
>>60161460
desu thats too large for what I want to do.

is it possible to run a .js with filesystem in the browser?

does >>60161330 allow me to do that?


If there is no way I should probably just do it in C#
>>
>>60159958
Sourcecode plz?

This is ur first attempt at node.js i built so
Many sht with node but nothing as cool as this just mock up websites
>>
>>60161524
there seems to be NW.js too.. but it too is at least 75 MB (40 zipped)

http://tangiblejs.com/posts/nw-js-electron-compared


are you asking for this>>60159958
>>
>>60161586
>are you asking for this>>60159958

nyet, im not that anon and that's not my project.

I think this will be able to do what I need https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API
without having to deploy my app bundled with chromium
>>
>>60161524
>I just need something really barebones with file access and a basic webpage
By file access, you mean importing files from the user's computer into the app? Do you need to store the image or manipulate it? Or does it just stay there in the client's app?
>>
>>60161651
I want to read the contents of a directory on the user pc and compare it to a directory on the server and then output which files are different
>>
>>60160215
It's called makeup
>>
>>60161685
Then that is some very shit makeup.
>>
>>60159958
What are you using for your front end code, react?

Are you using express for the backend?

Is there a database?
>>
>>60161356
Nigga said "lightweight"
>>
>>60161682
Compare a directory structure? I see this on SO:
http://stackoverflow.com/questions/254251/what-is-the-best-way-to-upload-a-folder-to-a-website

But you're going to need a back-end (not just JS) to export a snapshot of the directory structure there unless it's hard-coded (in which case, just use JSON to hold the snapshot)
>>
>>60161301

uhhhhhh

JS?
>>
>>60162036

Hi, welcome to /wdg/.
>>
trying to make a blog site, should i get the data from my github parse it and display it on my website, or use jelkyll(which i am unfamiliar with)
Keep in my mind my site is built on React, or should I make anohter website where I post sht in a db n thn use it as an api for my blog
>>
>>60162847

Why don't you integrate the API in the same site?
>>
>>60163056
that would be a lot of coding for security, thats why I rather make another site and when I have time ill do code the rest
>>
>>60162847
dealers choice
>>60163086
not sure how 1 site would be any less secure than 2.
>>
>>60163114
Thy wouldnt know the other sites url
>>
File: 2017-04-23-213517_658x372_scrot.png (21KB, 658x372px) Image search: [Google]
2017-04-23-213517_658x372_scrot.png
21KB, 658x372px
am trying to implement a bitcoin roll game in which a pair of players rolls a number and the highest wins the pot. I'm trying to figure out the implementation details now.

1) Do I have both subscribe to one websocket topic and send em a message that the game started and to send them a JSON with who's the winner or the loser after I generate random numbers for them?
2) Do I somehow connect these people to each other and have em directly send events to each other? For ex user A rolls, the even of rolling and the number of the opponent goes to B, B rolls, the server decides who won the game and sends them both a JSON of the results?
3) Do I not wait for any events and simply decide two random numbers for the participants and just show em the results after they click roll?

Another question for Elixir fags, how do I make a socket available in the application generally so the server can relay messages btw the sockets directly?
>>
>>60163580
are you gonna play for real btcs or just pretend?
>>
>>60163468
security through obscurity is not security at all
>>
how do i kill an ajax request if its still running when i dont want it to?
>>
>>60163580
Do not trust the clients to do what you want.
>>
>>60163894

ok i found out i can use window.stop()

if this the best method to stop pending ajax requests?
>>
>>60163954

Are you using jquery?

You can call .abort() on the request its self to cancel it.
>>
>>60164007

nah raw js im just making a new xmlhttp object
>>
>>60159654

what are those i's anyway? Is there a proper name for them?
>>
the place where I started to work is complaining about bd performance and blaming mysql for that. could that really be the case? if it is, what would be good alternatives for their needs?
>>
>>60164658
>could that really be the case?

you could check the execution time of whatever MySQL are doing:
https://dev.mysql.com/doc/refman/5.6/en/performance-schema-query-profiling.html
>>
>>60164658

this is a really broad question and is begging for circle jerk.

Profile the website/client - what is taking so long? Is it ACTUALLY the database? is it an insert, or retrieving data? Which request is slow?

Check the tables this request is messing with, are they properly indexed? did someone do something retarded?

I use MSSQL at work but have equal experience with postgresql - you need to look into the actual issue.
>>
File: GoDaddyMan.jpg (19KB, 384x384px) Image search: [Google]
GoDaddyMan.jpg
19KB, 384x384px
What do you guys use for hosting? I have a number of small sites that I am going to set up for clients is there a good way to get a benefit from referrals when I sign them up for a shared hosting plan?
>>
>>60164488
https://en.wikipedia.org/wiki/%C3%8D
>>
Anyone else using webcomponents and polys?
>>
best drag an drop website maker? squarespace?
>>
I need advice on books or resources to create a good REST API. Have any suggestions? Usually I pick anything by O Reilly, but unfortunately I have seen the reviews and the books seem to suck, any ideas?
>>
>>60165262
any particular language or higher level?
>>
>>60165300
I am focusing on Javascript/JSON, I am writing something in Node, but would like more data as how to design it better overall.
>>
File: 1420099814802.jpg (13KB, 250x239px) Image search: [Google]
1420099814802.jpg
13KB, 250x239px
what are your thoughts on bootstrap components vs jquery-ui?

I'm pretty new and both seem to do the same thing, except bootstrap adds more bloat to the project while still depending on jquery.
>>
Is WordPress 'development'? I'm a data scientist and was mind blown when I found out my organisation's website runs on WP... We hire 3 full time developers, and our site is pretty static, no major frequent updates. WTF do these "developers" do all day? They all have art degrees and did some summer Ruby on rails course. I want to rebuild the site with Django and then make my CEO fire them and give me half of all their salaries. Any input from /g/?
>>
>>60166233
you can use custom themes in WP and a lot of work goes into making sure the themes work on at every resolution, on phones, etc. Its possible that they wrote a custom theme for your org or they modify an existing theme to meet your needs. It can be quite complicated but if there isnt any major changes to your site I'm not sure what they do all day. that said if they're all artists they might be UI designers or some shit.
>>
>>60166233
People did X in Y, I want to do X in Z and it will obviously be better.


holy shit this is painfully web dev
>>
>>60166233
why do you want to remake the website if it works just fine?
>>
File: 1489228329978.jpg (52KB, 599x600px) Image search: [Google]
1489228329978.jpg
52KB, 599x600px
Need some help.
Let's say I press a button in my SPA to load some content.
Now while it's loading I want to display a loading icon.

What events do I have to use to handle
everything loaded -> requesting new content/loading -> done again
>>
>>60166421
To save the company money and to make money myself.
>>
>>60166421

Oh in that case, carry on
>>
>>60166350
They're meant to do both front and back. I'll admit I have no clue nor willingness to learn front. But last week or so my CEO asked them to align a two buttons withing separate divs. They said it's impossible, lolz. They also told me it's impossible to count the amount of times files we host are downloaded...
>>
>>60165463
> Caring about bloat

Care about whether it's slow and whether it makes it easier/harder for you to use. If you're a web developer you have basically no control over the performance of your environment where it matters because everything is a single threaded event loop.

Just worry about which one is easier to use and helps you maintain it
>>
>>60166410
Is it even an argument that Django > WordPress? WordPress is literally a blogging platform
>>
>>60166509
Although desu, I was intrigued by the react based front end framework based on Google design guidelines. Minimal ui or something like that? May have a look at it
>>
What's a kiss-ass reason for why I would be interested in working front end dev at a marketing firm? I'm thinking something along the lines of "I want to work there because what better place to foster a web development career than at an internet marketing firm?"
>>
>>60166581
You want to work in a customer-facing company to help provide an excellent user experience in their front facing products.

You're welcome. I've gone through many of these, but I hate front end dev.
>>
>>60166581
I'm actively looking to work at a marketing firm, rather than other industries, because I feel it's a sector where front end development is very much aligned with the core marketing ethos. I feel like front end is a significant part of both the product and placement in today's digital society.
>>
>>60166581
that's pretty shit. You shouldn't say anything that can be replaced with x.

say something about how a products front end on the internet is the website and you want to create memorable websites that will solidify their brand in your market segment that views the website.
>>
>>60166581
Say you want to change the world. With ads.
>>
>>60166779
you mean "make the world a better place"
>>
So what is requirement to work as junior php web developer?
I have done almost everything in php and still like afraid to send my cv to some company.
I worked as freelancer but i want real job in company.
I have knowledge of c++, java, php and js
Dont really know good any php framework , i can build simple stuff in Laravel.
In plane php i can do anything, i always write my code is always object oriented. Dont like seeing that half html half php codes
red-pill me anons about real jobs
>>
do you have a portfolio that proves you actually know what you are doing?
>>
>>60167063
>>60167076
>>
>>60167076
Well, is github enough?
They can see my code there
>>
>>60167063

You have to have:

> A portfolio
> A website
> A focus in a backend area
>>
>>60167104

Sometimes it isn't enough, you have to showcase it
>>
>>60167125

For the love of god, this.

We just got through a hiring round of ~8 developers. I don't want to see screenshots of your shit on github and then go through the code as well. Make a showcase, make your shit demoable. Make it easier it is on me and you're much more likely to get a call back.
>>
>>60167104
theres not really any way for them to see that your code actually works. Buy some cheap hosting and implement your code. or just host on your computer and never turn it off since it won't really be traffic intensive.
>>
>>60167063
I don't use PHP. I focused on Javascript and Node.js instead but all I had on my github were some tutorial-level projects like a todo list and shit. No personal website, no portfolio. Got a job doing Node for a small company, its comfy and I get ownership over a codebase and get to solve fun problems rather than just churning out the same websites all the time.

Fill your resume with a huge "skills" section listing every language, library, framework and tool you've ever used. This will allow non-technical recruiters to match their stupid keywords easily and give you interviews.

If you worked as a freelancer you'll be fine, make it sound technical to impress the recruiters. You should have no trouble finding a job.
>>
>>60167342
>Fill your resume with a huge "skills" section listing every language, library, framework and tool you've ever used. This will allow non-technical recruiters to match their stupid keywords easily and give you interviews.

Fuck me cause this works
>>
>>60167369
Kek. I still struggle with the idea that we need to be filtered by some idiot who knows nothing about programming.
>>
>>60167168
So what type of apps people usually wants to see?
Most of the apps i made for myself are doing things with video/photo/audio files, use some linux app for its shit.
Projects i did for clients were boring on the other hand. Like website for renting apartments, my biggest project was a storage inventory management system which needed to generate lots of PDF reports, calculate all type of shit and send bunch of mails with those reports attached. But i don't think i could show them this app for legal reasons
>>60167342
Well i'm type of person that tests everything, that could be really long list
>>
>>60167528
For front end development, just demonstrate knowledge of what you're trying to get hired on. Something a bit more than babby's first TODO app, so I know you didnt just copy a tutorial and send it up.

Doesn't need to be ground shatteringly amazing, just not an obvious plagiarism and have something that shows off some knowledge.

Just doing this puts you ahead of the majority of candidates.
>>
>>60161738
I don't know shit about front-end frameworks so I'm just using jQuery, probably a pretty dumb choice. The backend is Express and Socket IO and there's no database, I wanted to keep it simple so I wouldn't need one.
>>
>>60167615

old shit newfag
>>
>>60167615
not with that GPA
>>
>>60164814
digital ocean instance, should probably look for something better though
>>
Anyone know the easiest way to host a node.js app on a domain?
>>
File: 62580197_p0.jpg (495KB, 994x711px) Image search: [Google]
62580197_p0.jpg
495KB, 994x711px
What's your favorite piece of syntax sugar in ES6?
>>
>>60168446
You could use Heroku, alternatively a host which supports FTP, and has a bash command line should suffice.
>>
Is there a book which teaches you Typescript from scratch? One which assumes you don't know Javascript yet?
>>
>>60166447
You should be able to use something like nprogress and hook it into your apps routing and http service
>>
File: 1483773744255.jpg (48KB, 687x461px) Image search: [Google]
1483773744255.jpg
48KB, 687x461px
How do I return whether a fetch was successful or not?

Imagine I have a function like this
function myFunc() {
return fetch(...).then(...).catch(...);
}

is it possible to get a true/false back from the function?
>>
>>60170262
is fetch a promise? then you have to resolve.send()
>>
Do humans webscale?
>>
What should I say my salary expectations are for a front end dev job in boston? My last job was as a network engineer making $60k, I don't want to over ask and scare them off
>>
>>60168498
ES6 is old hat, it's all about object rest and spread now (ES2017 last I checked). It's completely changed the way I write JS, especially when combining with decomposition. It's like a whole new, much more expressive language.
>>
>>60171118
For an entry level position straight out of a training program you would be asking for at least $40k, if you have real work experience AND some form of education or experience in front end specifically I'd ask at least 50.
>>
>>60167063
Stop being a pussy, you can get a cushy job easily, you're able to be picky even. Only problem is all that ESL.
>>
I'm going to lose my mind. I can feel myself going insane here. What the fuck is happening.

You can't (can not) make a select dropdown in EmberJS. It will not work. I've tried every solution and it spits out errors. This is actually insane. I'm not even trying to do anything special or fancy. Just a fucking select box with options and a variable that updates.

Everything else works just fine. All the other inputs, methods, actions, everything works fine. But not this one thing. Not this one.

I'm losing it.
>>
>>60172013
>Falling for the JSF meme.
>>
Newbie here, trying to create my first website from scratch.

What is the best framework/API to build a front-end of a website?

Is bootstrap studio any good? (thats the only one i know)
>>
>>60167451
sad but true. I have a female friend working for a big HR company, she just interviews one dev after another and reads CV's all day long. Other than being able to name every single language and framework out there, she knows nothing about programming.
>>
>>60166233
>>data scientist
>>wants to rewrite working thing
>>wants to change platform without real reason
>>doesn't even care about frontend
Please stay away from development or at least understand your place.
>>
>>60171779
that's just a syntactic sugar for writing assigns
nothing new
>>
>>60172157
/r/iamverysmart
>>
>>60172166
what does that even mean
>>
>>60172202
i meant the subreddit
>>
>>60170262
Your function is returning fetch, which is a promise. Your code should look more like this.

function myFunc() {
return fetch(...)
}

/* later on you call this function */

myFunc()
.then(/* the promise resolved here, success */)
.catch(/* an error happened */)
>>
>>60171793
that's pretty fucking shit for boston m8

rent there is seattle tier, unless you're a total fucking twit i wouldn't expect entry level to be less than 60k.
>>
>>60167561
>For front end development, just demonstrate >knowledge of what you're trying to get hired on. >Something a bit more than babby's first TODO >app, so I know you didnt just copy a tutorial and >send it up.

>>60167342
this guy says otherwise, so which one is it?
>>
>>60172053
I bought bootstrap studio, I (personally) didnt think it was great if you starting out better to learn by yourself.
>>
What's the state of python?
>>
Who regrets getting a job in webdev and can't wait to quit now
>>
>>60172383
most of us are neets, and as much fun as that is, it isn't sustainable in the long run. I'd welcome a webdev job, desu. I'd hate myself every single day I'd be doing it, but that's no different from today, and at least I'd be getting paid.
>>
>>60166529
It's a CMS. It would be roughly equivalent to using Django with Mezzanine or Wagtail or something like that (personally I love wagtail. If you're going to switch, give it a look). You should know though that while Django is definitely a more powerful framework than WP, you can potentially dig yourself into a hole with the amount of stuff you have to do to keep your site running. WP and PHP definitely have there place since you can just stick in the www folder on a shared server and everything just werkz.

I highly recommend you read some stuff about deploying Django apps in production first to see what you're getting into. (fullstackpython is a great place to start, although some of the info there is a bit outdated, I've noticed).

t. a junior Django dev
>>
>>60172013
I'm going to tear my own face off.

A fucking dropdown. YOU WOULD THINK A DROPDOWN WOULD BE EASY. A staple of web design. A fucking bread and butter feature of literally any signup page or age gate or fucking anything ever.

Does not work with ember as of right now. I can't believe this is real.
>>
>>60172487
WP isn't really a CMS, let's be honest. It's a blogging platform which Indians use to sell websites for 1-2k.
>>
>>60172537
it aight do it with jquery+ ajax or something sempai
>>
>>60172600
The whole reason I'm using Ember in the first place is so I can standardize the whole page and not use unmaintainable jquery spaghetti. That would be such a ridiculous step back for something so retardedly simple.
>>
>>60172547
I mean, it literally is a CMS. It's a System that allows normies to Manage Content on their indian-made blog sites without having to write any of that scary kode stuff.
>>
>>60172616
Use Vue. It's pretty comfy. It's like react but simpler.
>>
>>60172636
react is simple as is
>>
File: demo.png (4KB, 208x225px) Image search: [Google]
demo.png
4KB, 208x225px
>>60172537
Just use normal html desu?

<!DOCTYPE HTML>
<html lang = "en">
<head>
<title>formDemo.html</title>
<meta charset = "UTF-8" />
</head>
<body>
<h1>Form Demo</h1>
<form>
<fieldset>
<legend>Selecting elements</legend>
<p>
<label>Select list</label>
<select id = "myList">
<option value = "1">one</option>
<option value = "2">two</option>
<option value = "3">three</option>
<option value = "4">four</option>
</select>
</p>
</fieldset>
</form>
</body>
</html>
>>
>>60172537
>>60172937
or this aswell literally the first answer on google
https://ember-twiddle.com/280778b093768172cf43?numColumns=1
>>
File: 1427403963568.jpg (36KB, 600x347px) Image search: [Google]
1427403963568.jpg
36KB, 600x347px
are asynchronous php frameworks decent? are they as "capable" as node.js?
>>
>>60163929
smart advice right here
>>
hey, are you using any css frameworks for dashboards? if so, which one do you prefer?
>>
File: file.png (107KB, 1466x937px) Image search: [Google]
file.png
107KB, 1466x937px
>million dollar search company can't escape html

how long until someone puts a script tag there
>>
I like Vue
>>
why has the web not been decentralized yet?
>>
>>60173374
lmao
>>
>>60173622
Because normies don't understand what decentralization is and what benefit they would get from it.
>>
>>60174007
But they don't have to if a decentralized web came with applications/content that could rival existing ones, right?
>>
>>60172949
>installing third party helpers
Not helpful, there is no guarantee this shit won't break overnight. On top of that, it doesn't solve my problem.

Here's my issue. Second select dropdown programmatically populated. Doesn't update selection when each is refreshed, leaving invalid data in place. Afaik no way to do this in Ember alone.
https://ember-twiddle.com/e8b991320d6ffdf1e21320adb5e51764?openFiles=application.controller.js%2C
>>
File: image_thumb.png (82KB, 520x276px) Image search: [Google]
image_thumb.png
82KB, 520x276px
I'm working with python/django. What's the best library (either python or javascript) for displaying online graphics and charts off of my database? The graphics have to be generated dynamically, because they depend on the variables the user selects from my database. Don't know if my description makes any sense...
>>
>>60174292
"But I can make this work somewhat" you might say.

Great. Now split the selection page into its own component. Which is a requirement for very fucking obvious reasons, seeing as I'm not going to put the whole page in one route.
>>
>>60174480
D3.js?
>>
>>60174773
I've googled that one, looks alright, but are there any other libs like that available? I wanna know what my options are. Thx!
>>
>>60171793
>>60172257

I ended up replying with:
"I’m hoping for something in the $60k range, as that was my salary upon leaving my last job. That said, at this stage I’m much more motivated to find the right role to grow my career in than I am in locking down the highest paying job available, so I’m sure that after some discussion we’d be able to find a price point that’s mutually agreeable"

hopefully that leaves it open enough if they want to low-ball me
>>
>>60175617
yeah, that sounds alright. But even though you have no frond-end dev exp, you're a network engineer, you have programming exp, right? You could be asking for a bit more, imo
>>
God. I hate making frontend work on mac/safari/iphones. This shit is worse than working with ie7.
>>
>>60176013
Try debugging for an issue only on Samsung Galaxy 3 using android 4.1 running outdated Chrome just because an exec reported an issue.

I wish I made that up...
>>
>>60175786
eh I automated stuff with python but nothing more complex than that. I figure I'll just ask for a review after 6 months or so and hit them up for a raise then

also the hr lady I'm emailing with just got back to me and said she's setting up a call with their tech director, wish me luck boys
>>
Speaking about D3, my transitions are laggy on mobile devices
>>
>>60176066
I'd kms on the spot honestly
>>
>>60176066
I though the flex should work on iphones 5 and 6. But apparently it won't.
>>
File: 6dCgyuo.gif (198KB, 952x416px) Image search: [Google]
6dCgyuo.gif
198KB, 952x416px
How can I delete a file from a server, and delete data from my database at the same time?

My code:
<form method="post" action="" id="slettBildeSkjema" name="slettBildeSkjema" onSubmit="return bekreft()">

Bildenr
<select name='bildenr' id='bildenr'>
<?php include("listeboks-bildenr.php"); ?>
</select> <br><br>
<input type="submit" value="Slett bilde" name="slettBildeKnapp" id="slettBildeKnapp"/><br><br>

</form>


<?php
}

@$slettBildeKnapp=$_POST ["slettBildeKnapp"];
if ($slettBildeKnapp) {
$bildenr=$_POST ["bildenr"];
$filnavn=$_POST ["filnavn"];

$fil="D:\\Sites\\none.of\\yourbusiness\\".$filnavn;
$webfil="https://noneofyourbusiness.com/user/pics/".$filnavn;


$sqlSetning="DELETE FROM bilde WHERE bildenr='$bildenr';";
mysqli_query($db,$sqlSetning) or die ("Not able to delete from database");
@unlink($filnavn) or die ("Not able to delete image (Check if file exists)");

print ("Image is now deleted<br>");
}
?>


And the listeboks-bildenr.php code:
<?php

include ("db-tilkobling.php");

$sqlSetning="SELECT * FROM bilde ORDER BY bildenr;";
$sqlResultat=mysqli_query($db,$sqlSetning) or die ("Ikke mulig å hente data");
$antallRader=mysqli_num_rows($sqlResultat);

for ($r=1;$r<=$antallRader;$r++) {

$rad=mysqli_fetch_array($sqlResultat);

$bildenr=$rad["bildenr"];
$filnavn=$rad["filnavn"];

print ("<option value='$bildenr'>$bildenr $filnavn</option>");
}

?>


Right now, it just deletes the data from the database, but not the file from the server.
>>
>>60176285

$fileArray = array(
"./dat/img/first.jpg",
"./dat/img/second.jpg",
"./dat/img/third.jpg"
);

foreach ($fileArray as $value) {
if (file_exists($value)) {
unlink($value);
} else {
// code when file not found
}
}



not sure how you are linking the filename in your server to your database but link the two with some data so you can recognise it and delete with unlink
>>
What's the easiest way to start making money freelancing? Upwork?
>>
>>60176676
I'd say so, but you gotta start asking $10/hour or even less to get your first couple of clients.
>>
>>60176285
>non-english names
don't
>>
I'm testing a page on my site that lets users test my API. I was sending a request to the API on localhost:8001 from the website on localhost:8000 but was getting errors because they were treated as different domains. So i allowed requests from localhost:8001 and it worked but the result was undefined (status code was 0 i think).

I've set my API up on api.mydomain.net, will it treated as a different domain or not?
>>
File: 1493101577345.jpg (444KB, 2048x2048px) Image search: [Google]
1493101577345.jpg
444KB, 2048x2048px
>>60159654
So I've messed with JS for the past few days and it amazes me the lack of good quality tools regarding autocomplete and documentation in the editor (coming from VS).
Right now I'm using Sublime with Tern package and it's okayish, but it only shows autocompletion for the standard library, there's a way to have autocompletion for the libraries I add?
>>60168861
Why would you do that? Learn JS then TS.
>>
>>60176208
They don't? RIP my iphone users.
>>
>>60177038
Pretty sure VSC should do that out of the box.
>>
Best back end language to learn right now?

I'm trying to decide between PHP and NodeJS and only really have the time to learn one (for job purposes)
>>
>>60177076
Just tried this and it has autocompletion for JS, and discovered that some libraries (like JQuery) includes a file "Jquery.intellisense.js" and there it has the comments to document the library itself. So if a lib doesn't includes these annotations, I won't be able to have the intellisense thing.
>>60177395
I'd say node, because once learning JS you can do front-end stuff too without learning another language.
>>
>>60177038
If you want autocomplete use TypeScript, autocomplete is impossible in a dynamic language like JavaScript.
>>
>>60177715
>mfw I am using Studio Code with Js and it has autocomplete even for obscure Node.js variables.
>>
>>60177395
Both.

PHP first since newbie jobs are easy to find, then node once you land a job or you're done with PHP.

JS jobs usually pay more at the lower level than PHO jobs.
>>
>>60177675
>So if a lib doesn't includes these annotations, I won't be able to have the intellisense thing.
there are some types here:
https://github.com/DefinitelyTyped/DefinitelyTyped
typescript doesn't magically provide types for untyped javascript
>>
>>60177805
Nice to know but I won't be using TS since I'm starting with JS.
>>
>>60177805
>DT
Switch to @types scope. Its easier cause its part of npm and not typings
>>
>>60177877
oh
vs code uses typescript for javascript validation/intellisense so you can use the type definitions for js too
>>
How do I become an internet famous front end dev?
Just join open source gits until someone notices me?
>>
>>60170262
var myFunc = async () => await fetch();

:DDDDDDD
>>
File: file.png (116KB, 605x793px) Image search: [Google]
file.png
116KB, 605x793px
>>60178077
>var
>arrow function
did you forget that there's a keyword specifically for defining functions?
>>
halp!

How do I land my first WEB DEV job?

t. Aspiring web developer.
>>
>>60178144
I think they changed it but I used to write let in browser console and it wouldn't keep it in memory so this is why I am prone to write var for one line things like this
>>
>>60178211
yeah but

did you forget that there's a keyword specifically for defining functions

it's called "function"
>>
>>60178224
Can't write function async myFunc
>>
>>60178245
Oh you can! oops!
Its just async function myFunc.
Too much typescript, sorry senpai.
>>
File: me.jpg (122KB, 1280x720px) Image search: [Google]
me.jpg
122KB, 1280x720px
>>60178245
>>60178262
typescript rots your brain
>>
>>60178274
Javascript and webdev rots your brain.
>>
>>60178204
-make a github profile and be active on it (a couple of commits/week)
-create a portfolio with a bunch of stuff you've coded (rip-off's of whatever popular website you like). Nothing here has to be original, it just has to show that you know how to get shit done
-spam your CV with link to your github and portfolio everywhere
-not be a complete autist when interview time comes around
>>
>>60178352
popular and succesful ideas for your portfolio are an imageboard or reddit-like app, an instant messaging app, a stock manager, an e-commerce site.

depending on whether you're front- or back-end, you should focus on either one of those aspects.
>>
>>60178389
i want to be full stack tho
>>
>>60178559
I dont think Ill take someone who "wrote a webapi for a personal project" as a serious back end dev.
>>
>>60178604
what would you look in back end?
>>
>>60178630
A lot of buzzwords written in your CV that you could explain to me in an interview. Also, frameworks.
>>
>>60178719
what buzzwords, and what frameworks?
>>
>>60178761
Language dependent
>>
>>60178719
LESS, SASS, CSS3, HTML5, XHTML, Angular 1.x, Angular 2, Angular 4, React, Redux, Express, ES5, ES6, ES7, ES8, PostgreSQL, MySQL, Sqlite, Mongodb, Redis, Webpack, Grunt, Gulp, Git, REST, Nginx, Apache2, Htttpd, UNIX, GNU/Linux, Windows

good enough? what should I add
>>
>>60178784
A lot of those are front-end tho :^)
>>
>>60178719
If i said AGILE and SCRUM, would you hire me?
>>
>>60178817
I'd get hard
>>
So what's the deal with my seeing my website looking fine on my PC (Chrome), yet it looks like shit on my friends PC (Also Chrome).

I'm having positioning issues. On my screen, it looks fine. But on his, there are large gaps between some of the text divs. Reason for this?

To be fair, I'm not well-versed in this shit and am relatively new, but I've been using divs and absolute positioning to place the images and text. Is this wrong? I tried the margin approach, but it made it even more fucked up on other peoples' computers.
>>
>>60178804
so let's see the ones for back-end|

PostgreSQL, MySQL, SQLite, Mongodb, REST,...

what else?
>>
>>60178835
post the site?
>>
>>60178784
The more shit you add the less experience you have makes me think you just write shit to make me think you know things and not really know things indepth.
Like why did you list es5-es8?

But I guess this works. Interviewers just look for words they like in a resume, not actually think OH HE KNOWS THIS AND THIS.
>>60178817
If you recite SOLID then yes.
>>
>>60178853
How is database stuff back-end?
Also REST, is a standard rather than a tech. (mostly)
>>
>>60178868
Should I only list things I know in depth? I'd never make it then
>>
>>60178919
No, no...just be reasonable and don't forget you'll have to explain whatever you write in the interview.
Especially weird stuff you write.
>>
>>60178868
>If you recite SOLID then yes.
single responsibility, open-closed, Liskov substitution, interface segregation and dependency inversion
>>
>>60172990
What are those?
>>
>>60178856
Sorry, can't really do that. The site has my name and I'd rather not go down that path.

I did just narrow down the problem, though.

I threw a border on my containing div and saw that it's not actually spanning the entirety of the body. That being said, the containing div opening tag mates to the final div tag of the body.

Yet it doesn't cover the whole webpage.

Any thoughts?
>>
>>60174480
https://frontend.directory/p/56e33d91b7c64d1a006c250e/56e341e5b7c64d1a006c250f
>>
>>60178897
how is database stuff NOT back-end? Or am I completely mistaken here into thinking that back-end is mostly database handling? ORM and all that stuff...
>>
>>60175617
Never reveal your previous salary. Heck, you should not say how much you want because it will put you into weaker position in negotiations but it's hard to keep rule. Also always ask for more- you are probably undervalueing yourself(imposter syndrome) and it will make you look better.
>>
JSONP allows you to bypass same-origin policy for GET requests. Is there any way to bypass same-origin policy for a POST request using AJAX?
>>
>>60179810
eh I got a phone interview with the CTO scheduled so it seems to have been a good strategy
>>
Right now when I request an image from my server, I resize it with this https://github.com/kevva/resize-img
and send back the buffer of the resized image.
Would it make sense to chain it with this? https://github.com/imagemin/imagemin
>>
File: sfasdafs.png (527KB, 1849x508px) Image search: [Google]
sfasdafs.png
527KB, 1849x508px
How do I get my image with an absolute position to behave like it's floating to the left of my text?

I have it set to absolute so that it resizes with the white header, but this makes the text go through it. I don't want to manually add a margin to the text because it wouldn't be as response/scale as well, right?
>>
>>60181015
float: left/display: inline-block
>>
>>60181154
doing that doesn't resize my img for me
also, MS Code is telling me that float doesn't apply when display:inline-block is used anyway
>>
>>60159654
>https://pastebín.com/4YeJAUbT/
This is down.

Also, thoughts on TypeScript?
>>
>>60182703
>>
>>60182823
fuck, what the fuck OP
>>
>>60182847
It's a test, a good webdev should pay attention to the tiniest details 24/7
>>
>>60178835
Yes absolute positioning is shit.
>>
>>60178897
Databases are back end technology.
>>
>>60180427
CORS is alternative.
>>
>>60161698
She chose a shade of foundation that was lighter than her actual skin. It's pretty common. You can tell there's a lot because it looks a little bit cakey.
>>
>>60180666
Ignoring my mentioned stuff mostly makes you look begginerish and puts you at disadvantage at salary negotiation. Btw raises are usually shit unless your position changes. Only real way for rising your salary is changing your job. And don't go low on your first salary number - it can make them doubt your skills if it's too low. Of course asking some delusional number is bad too. Just ask for higher end of common salaries for your position. At best you will get pleasant surprise (has happened to me), at worst you will get reasonable counteroffer.
>>
>>60176970
CORS shouldn't give you any shit if they're on different subdomains.
>>
>>60164814
whatever the client uses
>>
Is there a good collection of credit card/debit card mockup/placeholder images I can use? I'm putting together a list of payment methods and I'm trying to make it look pretty
>>
why is everyjob
>needs 5 years experience in this specific shit
shouldn't the diversity of the stacks you have use be more of a indicator that your gud and can learn whatever you need to whenver you need to?
>>
>>60184875
Because a million shitters joined this career for the EZ money.

It's mainly there to scare away the 90%+ people that apply and can't even program.
>>
JavaScript or Python
Be honest anons, no memes pls
>>
>>60180427
Wait...what has this?

I'm asking because my mobile apps use jquery $.post to interact with my API on the server.

I haven't tested it on mobile yet, but is it not going to work? I turned off the cross-domain protection in Cordova.
>>
This is probably better suited for /sqt/ but I figured I'd try here.

I have my app running on an an AWS Linux AMI but my development machine is Windows. This hasn't really been a problem so far, but I'm starting to notice some issues and I'd like to set up an identical VM. Is it possible to clone my server or find a copy of the same OS Amazon uses?
>>
Hey /wdg/, what forum software do you like? I need a customized forum for a client but I haven't given a shit about forums for a decade. Is there something better and more modern than Simple Machines?
>>
>>60185431
I've been using MyBB, its modern and lightweight with a lot of features.
>>
What does /wdg/ think of biwascheme?
http://www.biwascheme.org/index.html
>>
>>60185431
Discourse if you like Rails.
>>
>>60183479
psychologically I want them to assume that they can lowball me just so they actually give me a shot and let me do my career pivot into their company. I want them to think they're taking a cheap gamble on me then after 6 months I'll ask for a review and go for $75k there or another company. then maybe a year or two later go for a senior role somewhere else for $130k(lol)
>>
>>60186463
Getting a senior role after 2 years is really rare.
>>
>>60185069
I get that, it just sucks cause I actually love it, I quit my job to go to college for compsci, ive made an forex arbitrage sniffer and sklearn stock screener, a site, several apps, two semesters of C programming, but no yeeers cperience so no jr. positions for anon, im making a ruby on rails blog just for fun now, gonna do my freelance dev co. site with MEAN after that maybe can churn some monetary cummies like that
>>
>>60186685
You just have to keep applying. It took me a year and a half to land my first dev job. You could be overqualified and asking minimum wage and they still wouldn't see your app 90% of the time.
>>
>>60186713
I live in bum fuck nowhere, which is comfy cause humans be scarce but fucking jobs are to, ive wrote a scrapy spider for this place in town and now they want me to do some devop stuff but arent paying me yet so hopefully that turns out cause I got a family and shit and the money would be good but I would rather do web dev and take a cut in pay or move, how much scripting will I get to do in devops, seems like just messing with faggot gui's all day
>>
>>60184819
Use the logos of different card companies instead of card images.
>>
>>60187031
That's not trendy
>>
Trying to loop through an array filled with images. I have an arrow with the id "right" and when i click on it, I want the next image to display and the previous image to hide. I am trying to use jquery. How can I get this to work?

var imgs = new array(img1,img2,img3,img4);


right.on('click', function(e) {
for (var i = 0; i < imgs.length; i++) {

imgs.prev().hide();
imgs.next().show();

});
>>
>>60187786
var imgs = new array(img1,img2,img3,img4);


$("#right").on('click', function(e) {
for (var i = 0; i < imgs.length; i++) {
imgs.prev().hide();
imgs.next().show();
}

});
>>
>>60187313
try this?

https://pixabay.com/en/photos/?q=credit+card&image_type=&cat=&min_width=&min_height=
>>
>>60187937
i already had the right variable equal to $('#right') and it still doesnt work.
>>
>>60188147
This is my full script as of right now if anyone can figure it out.
(function() {

//left and right arrows
var left = $('#left');
var right = $('#right');
//imgs
var img1 = $('#one');
var img2 = $('#two');
var img3 = $('#three');
var img4 = $('#four');
//array
var imgs = new array(img1,img2,img3,img4);


right.on('click', function(e) {
for (var i = 0; i < imgs.length; i++) {

var prev = i.prev();
var next = i.next();

prev.hide();
next.show();

});

}());
>>
which one will survive for the next few years. react or vue or angular? i want to choose one to start learning but cant decide which
>>
>>60188545
If and only if there will be an Angular 3, than it will be popular because the meme will jump ship, but at this rate for jobs in my city, React looks like it's gonna stay around for a bit more, and Vue is growing a lot.
>>
>>60188610
but there is already angular 4?
>>
>>60185597
It is unfinished and not practical to use compared to ClojureScript.
>>
>>60188610
>>60188545
Mind my english
>>
>>60188724
Fake news
>>
>>60188545

They are all fine.

The SinglePageApp market is pretty saturated, but you can't go wrong with Angular2, React or Vue because they are here to stay and mature enough.

>I want to choose one to start learning but cant decide which

Well, Vue is by far the easiest and has a lot of similarities with React. So it might be a good start.

React is pretty mature and more Jobs, so if you think Vue is too easy or boring for you, React provides a bigger ecosystem, has some funny ideas how to structure code and a completely different workflow than classical web development. Also it has more Jobs than Vue (which might change soon).

Angular2 is completely different. It's a stand alone framework, not so much a View component like Vue or React. It's also slightly bigger.


tl; dr: try each of them for a day and see what feels comfy for you.
>>
>>60188190
Did you check errors? Because i see something that looks like syntax error. Also instead of collecting images one by one give them class and get them together.
>>
>>60188545
Angular is really hurt by mess with versions and lack of backwards compatibility.
>>
can you provide me some link with PHP RESTful tutorials?
That is like only area of php that im not familiar with
>>
File: benis.png (53KB, 1440x799px) Image search: [Google]
benis.png
53KB, 1440x799px
try my dice roll game in elixir language
http://78.182.173.71:4000
>>
>>60191870
>http://78.182.173.71:4000

your score is glitchy, I think. It just goes up and down around 100, is that what you meant?
>>
>>60192239
nah its good, i set it to start at 100 and give 1 for each win and take 1 for each loss, thanks <3
>>
File: wat.png (15KB, 712x395px) Image search: [Google]
wat.png
15KB, 712x395px
Why am I getting the error, "TS2300 Duplicate identifier 'DefaultPasswordModalController'"

in all of my typescript controllers suddenly? 15,000 errors because of this
>>
Im starting with Liberty Basic. How will I adapt to other programming languages later (these more popular ones and these more harder ones - C,C sharp, C++, Java, Python and Ruby)
>>
File: edgelord.png (248KB, 815x335px) Image search: [Google]
edgelord.png
248KB, 815x335px
>>60192648
>>
>>60192694
Oh FFS is there anything good in this "programming world" ?
In C family of languages (especially in C++ u get lost)
When u start with BASIC u will not lear others
With JAVA and Python you will get money but will never be a good coder
WTF is wrong with programmers these days
>>
>>60192694
So, Sir where would You start?
>>
When were CSS columns added to browsers? Why use grid system layouts over these CSS columns?
>>
>>60192812
um... there are columns in tables... no columns that I know of otherwise natively

>>60192694
lolwut?? >edgelord.png
HAHAHAHHAHAHA
>>
>>60192883
What? Dijkstra was the edgiest cs motherfucker ever.

>>60192794
what's your endgame
>>
>>60192892
endgame?
>>
>>60192932
I mean goal. What's your goal? Why do you want to start programming? Job, hobby, dream project, have fun?
>>
>>60192892
Anon, better ask me "Why you want to learn it?" :)
>>
>>60192892
>What? Dijkstra was the edgiest cs motherfucker ever.
Idk who that guy is, I'm wondering why he's saying people who learn basic are unredeemable
>>
>>60192949
Hobby, dream project, have fun, learn something new, MAYBE cash it.
But, mainly im frustrated by what at the moment has to offer.
Everything is like scripted, every social network is dum as hell (does the same), every game is just a graphical update form last year and so on.
I wanna make something new (and i have some ideas)

basically i have higher goals, and create something or change smthign thats all
>>
>>60193024
what INTERNET at the moment has to offer
>>
can someone help me understand this. So I've learned html/css/javascript/php in a class, and now I want to make a website for fun, but I don't want it to look like it's from the 90s. From my understanding you need to use frameworks. But like theres 1000 frameworks I hear out there. Do I need a separate framework for the CSS, for the server side, and client side programming?? or does 1 framework do it all
>>
>>60192393
Never mind about this. I got it. I have been creating publishes in the root and typescript had not excluded them in its compilation.
>>
Anyone webdevving in VS? How is it?

>>60193193
Not necessarily. What site do you want to make? Making your very first website using pure html/css/js is a decent learning experience
>>
>>60192648
Basic is still alive?
>>
>>60193496
What would You suggest ? (I guess it is alive)
>>
>>60159654
var https = require('https'),
pem = require('pem');

pem.createCertificate({days:1, selfSigned:true}, function(err, keys){
https.createServer({key: keys.serviceKey, cert: keys.certificate}, function(req, res){
res.end('o hai!')
}).listen(443);
});


Nodescrub here Am I missing something here? Copied and pasted it from the examples. It gets a TypeError Cannot read property 'serviceKey' of undefined. It's pem module from the npm.
>>
>>60192694

based dijkstra knows..
>>
>>60192971
Bad syntax and consepts.
>>
>>60193457
my idea was to make a website where you type a text and it tells you your wpm, and build upon that idea as I go on, add more features etc. of course this has been done before but thats what I want to do.
>>
>>60192971

Dijkstra was just pretty funny when it came to langauges he didn't like:

"The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense."

"

"FORTRAN, 'the infantile disorder', by now nearly 20 years old, is hopelessly inadequate for whatever computer application you have in mind today: it is now too clumsy, too risky, and too expensive to use."

"APL is a mistake, carried through to perfection. It is the language of the future for the programming techniques of the past: it creates a new generation of coding bums."
>>
>>60193997
Yea its funny but where do i begin without basic ?
>>
>>60194043
You start with guidobasic aka Python
or Java
or Javascript

I don't know
>>
>>60193931
Anyone here know?
>>
>>60194043

Programming:
C or Java.

Web development:
HTML, CSS + JavaScript.
>>
>>60194102
Why is everyone like "I am lost for few years on C campared to my first language i learned" .
I really dont get u guys.
It cant be that hard :P
(also which C exactly and which program is good for C )
>>
>>60194197

It's not really hard, but C has more details. You have to do a lot of things by hand, that "higher" langauges abstract away from you.

If you want a soft start, take something like Ruby or Python. Or even Go.

Starting with C is more demanding, but you'll value something like Ruby, Python or JavaScript more if you know what they do for you.
>>
>>60194385
Well, starting "Demystified C++"... wish me luck.
Thank you for simple but direct answer. Everybody says those things from book, never seen this before.
>>
>>60193844
yeah, that is absolutely doable on plain html/css/js, no framework needed
>>
if I
DB::select(DB::raw('select * from users'));
or something similar. I want to print the table like sql would but it returns an object. Is there a method for this? This is laravel
>>
Can anyone explain really simple what react is and why do people use it
>>
>>60195616
front-end js framework made by facebook, used as the V in your MVC but can go full SPA with react-router etc...
>>
SQL question. I'm joining a few tables with a query. The first one results in multiple rows being returned but when i add in the 2nd join only 1 row gets returned because the ON table.column=table.column part gets only 1 match. Is there anyway i can still return all the rows it used to spit out? Hopefully this makes sense.
>>
How would you handle the colon attached to 'plain'? Should I detach it and highlight black? Or keep it there because that's how the user input it? I strip it out when I process it on the server but I'm thinking just user experience-wise
>>
How would I check if an integer value in a column is greater than the value in a couple of other columns in MySQL or SQLite? I'm gonna google it but I'd rather have a few personalized answers as well
>>
>>60196811
I'm trying to select rows where a certain column has a value that is greater than a couple of other columns in their respective rows. Maybe something like this would work?

SELECT * FROM table WHERE col_a IS NOT NULL AND col_a > col_b AND col_a > col_c ORDER BY col_a DESC


Am I on the right track or is the solution significantly more complex than this?
>>
>>60195616
It's a way of nicely compartmentalizing UI components as dynamic bundles of HTML (see JSX).
>>
>>60196261
left / outer join depending on your dbms is probably what you're looking for
and maybe you want to check for NULL

>>60196903
should do fine, you can also utilize greatest() in mysql
>>
>>60196261

Well, you're probably doing a LEFT JOIN, but what you need is a FULL OUTER JOIN.

You can google it up.

Some SQL dialects don't do full outer joins, so mind that you can always excange JOINS for simple WHERE statements:

SELECT * 
FROM query_a LEFT JOIN query_b ON query_a.val = query_b.val


..is exactly the same as:

SELECT query_a.*, query_b.* 
FROM query_a, query_b
WHERE query_a.val = query_b.val



So in your case you might consider something like:
SELECT a.*, b.* 
FROM a, b
WHERE (a.val = b.val
OR NOT EXISTS
(SELECT * FROM b WHERE b.val = a.val))
AND blablabla = 'blablabla'
(...)



You have to play around a little bit, but that's the rough idea.
Beware of "NOT IN", it does not work as you want if you have a null value in the column. "NOT EXISTS" is what you want here..
>>
>>60197026

you the shit. Totally forgot about checking for NULL

thanks anon
>>
>>60197026
Is there anything that's compatible with SQLite, MySQL and PostgreSQL? I'm prototyping this thing with a SQLite database and I haven't settled on what we're going to use in the end
>>
File: output2.webm (2MB, 1000x855px) Image search: [Google]
output2.webm
2MB, 1000x855px
Crunched this out
>>
>>60197111

>almost no whitespace
>buttons where you don't know what they do
>arty farty symbols that look like from the 5th element
>heading thin as fuck (and sans-serif font), but extra bold (and serif font) within the pictures
>too much animation, everything is moving constantly

4/10 would not hire
>>
>>60193457
All microloft memes aside it's probably the best Django environment you could ask for
>>
>>60197225

Haha, oh wait: I just realized you have 3 completely different fonts:

one thin, one bold and one italian..
>>
Hi, I'm looking for a language recommendation. I want to to write a program that uses some web APIs, so I'm looking for a language that's good at that. One that has good libraries for making http requests, parsing json, interacting with databases, all that. Normally I'm a C and C++ guy, but from what I've read these languages are a little too level for a task like this.

What language would you recommend to use for this?
>>
Im fallowing some udemy tutorial for laravel and i got stuck at this shit
<form action="" method="post" id="contact-form">
<div class="input-group">
<label for="name">Your name</label>
<input type="text" name="name" id="name">
</div>

<div class="input-group">
<label for="email">Your email</label>
<input type="text" name="email" id="email">
</div>

<div class="input-group">
<label for="subject">Subject</label>
<input type="text" name="subject" id="subject">
</div>
<div class="input-group">
<label for="message">Your message</label>
<textarea name="message" rows="10" id="message"></textarea>
</div>
<button type="submit" class="btn">Submit Message</button>
<input type="hidden" value="{{ Session::token() }}" name="_token">
</form>


im getting error for this line of code
        <input type="hidden" value="{{ Session::token() }}" name="_token">


and error is
Type error: Too few arguments to function Illuminate\View\Factory::startSection(),

what now
>>
>>60197111
>scroll on mobile device
>have to scoll back to the top to make images large<->grid
>0:20 switching to black
>0:24 when switching to the plants page it re-changes the background color, probably killing people with epilepsy
>>
I hate my PHP programming internship, CRUD shit all day. Autistic coworkers who flame my code, even though I'm a noob. Managers who are quick to blame me.

Should I just suck it up? Because my internship ends within a month and then I can get a full time job.

Honestly, my life was much better when I was a NEET.
>>
>>60197305
Eh, probably Python with requests
>>
File: reddit.jpg (119KB, 1024x746px) Image search: [Google]
reddit.jpg
119KB, 1024x746px
>>60172217
you need to go back
>>
>>60197366
do you use frameworks, tell me more
>>
>>60197366
stick it out then work from home
>>
what events fire when you touch scroll on mobile? touchstart, touchmove, then touchend? trying to troubleshoot why my overflow:scroll div isn't scrolling on mobile
>>
>>60197437
Laravel for the backend, and HTML/jquery. I'm working on a CRUD app that's a little bit of customer relationship management, and a project planning tool.
>>
>>60197327
try
{{csrf_field()}} instead?
>>
>>60197476
>csrf_field
same error
>>
>>60197305
Pretty much any language these days will do what you want. If you want an OOP language, Python is known for being easy to pick up. JS is also pretty easy but it can be quirky at times if you already know how to program and aren't used to it.

Since you're already a C/CPP guy though, Go would also probably be right up your alley. It's similar to C but with great support for web stuff, 3rd party libraries, and concurrency.
>>
>>60173228
Not pure CSS, but I like this one a lot:
https://almsaeedstudio.com/preview
>>
>>60195484
Nigger why are you abusing Laravel like this when you have a perfectly fine ORM based query builder available to you?
>>
>>60197714
school
>>
>>60197738
https://laravel.com/docs/5.4/queries#retrieving-results
Read this
>>
>>60197332
Good points, I'll move the buttons to a float that stays in the upper part of the screen when scrolled past. I've actually noticed the epilepsy part myself but frankly did not know how to fix it properly. Should have thought twice before posting it here.

>>60197225
Guess I could change up the "about" font (which is the same as the bold one on the pictures, just italic lowercase), but I really don't think two contrasting fonts is overkill.
As for the animation, it's just for the buttons, the background fade-in and the little nudge the photos do when the number of columns changes. Maybe the safari scrolling combined with the pacing of the video and the epilepsy the other guy mentioned made you think that everything is moving constantly.
I get the critique about the buttons, but t's something you could figure out almost instantly when actually using the site. idk, what would you use?

thanks for the comments though
>>
>>60197798
Yeah I know all that.
In this excercise I'm supposed to take raw user sql input and assume it's safe.

Unless there's a paragraph about printing database replies there?
>>
File: Capture.png (43KB, 1015x705px) Image search: [Google]
Capture.png
43KB, 1015x705px
On a scale of 1-10 how retarded is my solution?

I've been working my way through Eloquent JavaScript and while I understand what I'm reading I feel a bit slow on the uptake considering I'm only on Chapter 2.
>>
>>60197836
There is a paragraph about what is returned anon. So read it:

The get method returns an Illuminate\Support\Collection containing the results where each result is an instance of the PHP StdClass object. You may access each column's value by accessing the column as a property of the object:
>>
>>60197366
That bad? I mean, enduring a month should be easy enough, right? If you quit now it may fuck you up

fuck those guys tbqh, nobody should flame newbies. Boss on my first job cared about me and other noobs like were his children or something for a year or so
>>
>>60197822
>Should have thought twice before posting it here.

Well anytime you post something on 4chan it's for the (you)'s. Question is what you do with the (you).
See what you want to change, but don't take criticism too seriously
>>
>>60197069

im using LEFT JOIN and it looks like it's working properly. I just needed to check for null values after i spit out the JSON

thanks
>>
>>60198451

speaking of null, whats better?

if (data[x].Description == null) ...


or

if (data[x].Description === null) ...
>>
>>60197476
problem was at the bottom of the page
it was @section instead of @endsection :D
>>
>>60198494
is_null()
>>
What credit card information is safe to store yourself? I want to display some of it on a payment options page for aesthetic reasons but I'm not sure what's considered "okay" or good practice. Obviously not the full card number or CVC, but maybe the last four digits of the card number and the expiration?
>>
>>60198668

that exists in js...?
>>
>>60198830

ya go on a trusted company store site and see what they do, though theres a lot more to security than just hiding parts of a string or integer, keep in mind.
>>
I needed to implement http basic auth for webhooks in a service we use. Is this good enough or are there other things I need to watch out for?

sub lob_authenticate {
my ($self) = @_;

my $auth = $self->req->header('authorization');
$auth =~ s/Basic //;
$auth = decode_base64($auth);

my ($user, $pass) = split(':', $auth);

return 1 if $user eq $self->config('lob')->{webhook_user}
&& $pass eq $self->config('lob')->{webhook_pass};

return 0
}


The programming language is Perl, by the way
>>
>>60198908
I don't plan on storing anything I don't need to display. Our payment processor (Stripe) will handle that
>go on a trusted company store site and see what they do
I think they store just about everything but the CVC and full card number in general
>>
>>60198888
you didnt specified language, but you can use it in js too, just google is_null js
>>
ok i think im retarded. I have input field that user puts in number they save it to db, and now that number is stored as that inputs "value". However when i do this with a textarea, the value gets duplicated (only in the front end). So everytime I save this gets put in the textarea: "somethingsomething".

just "something" should show up. Why must i suffer the autismos?
>>
>>60197844
0, it's perfect. anything more I think would be tricking it up
>>
>>60199111
can you give some screenshots?
i dont rly get what is problem
>>
>>60199173

not at the moment

i have a input field, user enters "5" for example. They click save. Now the saved data loads since it has been updated. Now "5" is automatically put in that input field.

I'm doing the same thing for a textarea field, but when the user saves, the input gets duplicated, so now "55" is in the textarea.
>>
>>60198705
>>60198705
>>60198705

new thread
>>
>>60199210
well, without code i cant tell you much
>>
>>60198494
the latter. Always check identity unless you absolutely mean to leverage double equals or it's a quick and dirty 6 line program.
Thread posts: 346
Thread images: 28


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.