[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: 215
Thread images: 17

>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
>>
what's wrong with this regex test?

if ((/"word": "(\w+) \(n.[1-9]\)"/).test(json[i].word)) {
console.log("word: " + json[i].word);
}


"word": "(\w+) \(n.[1-9]\)" matches when I try using find manually in sublime text
>>
File: 7JVv5YP.jpg (462KB, 1050x1271px) Image search: [Google]
7JVv5YP.jpg
462KB, 1050x1271px
Who /realjob/ here
>>
first for LISP
>>
Anyone here ever sold HTML/CSS themes on Themeforest and other sites like it?
I need to know if I can use it as a viable alternative source of income.
>>
I've been doing Drupal for the past 3 years, but it's going downhill really fast.

Are there any similar CMS to build huge projects ($500k+ budget) on?
>>
How do you LAMP/PHP/mod_perl developers manage your dev environment for multiple projects? I mean if you have your HTML in /var/www/html and your perl/php in /var/www/cgi-bin and different http.conf for each project? One idea I have is storing everything in a directory and using bash scripts to "deploy" to those directories and have a corresponding script that cleans/undos with rm etc so I can work on different projects locally. then when time for production just git pull and run the same script to move the files on the production server.
>>
>>60249996
what is it supposed to match?
it works for
"word": "something (nx1)"
>>
>>60250982
I have a vhost for each project that maps /var/www/myproject to myproject.dev.

Deployment to production should not be coupled to my local dev environment in any way.
>>
Is it okay to use backbone.js in 2017?
>>
>>60251391
be aware that .dev is an actual TLD, you might conflict with some domains.
.test/.localhost is intended for this.
>>
>>60250932
lol cause garfield was in a bdsm cult and took his bottom bitch to a drupal party?

i used to do drupal7 gigs on elance. drupal8 looked so retarded i never learned it.
>>
>>60250982
desu I just keep everything in /var/www/html so I have projects at localhost/project1 and localhost/project2 etc

It's almost never a problem because wordpress and drupal keep track of paths for you so moving a site to a real URL just requires changing a variable somewhere in the database.

Recently though I was messing with an old angular project and everything was relative to '/' ie /scripts/bundle.js which fucked everything up and I had to set up an actual virtualhost for the project.
>>
>create div
>add innerhtml
>innerhtml appears behind the div
what
>>
>>60251887
i changed the zIndex and now it works. i just dont know anymore.
>>
Is postgresql Overkill for just a blog? What do should I use and why? I may eventually add some stuff to my site, but atm just going to be blogging a bit.
>>
>>60252024
SQLite would actually work well if you don't have comments or multiple authors publishing at the same time.
>>
First time poster to a web-dev.
On friday at work, I had finished implementing some tools for work and just had to test it on our server. To do this, I had to interact with the front end system that we have.

And found out just how shit it is. I added some parameters and if I changed one, both would change. I knew it needed updating, but I never realised how shit it was. There's no one in the team that has the web-dev skills though, so I thought I'd start learning. I'm always keen to learn new stuff, so it's good.

However, I'm confused on some terms. What is a framework (specifically Angular)? How does it fit into the picture of Javascript?
>>
>>60252117
Yeah, was just wondering if I were to add more functionality would be annoying to switch. So either Lite or Postgres IYO?
>>
>>60252157
actually, I think switching from sqlite to anything else is super easy. The other way around not so easy, but sqlite is the simplest and all your queries and commands written on it work perfectly on the other db's.
>>
>>60252214
Thanks man. Will stick with lite then.
>>
File: pug-window1.jpg (524KB, 2716x1810px) Image search: [Google]
pug-window1.jpg
524KB, 2716x1810px
I'm using mysql union to fetch a large number of results from various tables. Limit seems to search through all of the tables, then only displaying 200, while in the background it still gets maybe 200k results. Is there a way to only get the first 200 results, then completely stopping the search entirely? Having to find 200k results is very inefficient in terms of speed and resources, when you're only looking for the first 200.

I can't seem to find anything on this in the mysql documentation, and I'm not sure if there even is a solution to this.

Example:
SELECT email, city, address, name FROM table
WHERE email LIKE 'something@%'
UNION
SELECT email, city, address, name FROM table
WHERE email LIKE 'something@%'
ORDER BY city
LIMIT 200
>>
>>60252547
Correct me if I'm wrong, but doesn't the Order By clause mean that it has to get ALL the records then return the 200 you requested in a specific order?
>>
>>60252581
Tried this, but seems to still have the same issue where the first query, despite being limited to 200 takes 0.7s, and the second query with XXk takes *0.004 to complete, which in my opinion means that all of the XXk results are cached, and have been searched for in the background.
>>
>>60252137
Frameworks are pretty much sets pre-coded things.
So you can parse a limited amount of CSS/Javascript/PHP to output whatever you want.

This speeds things up. And makes it easy for people to work togheter.
But it might make your site slower, less customized and perhaps even make it feel like it runs on space magic instead of your code.
>>
I feel like I'm at a point where I can do anything I want, but actually find something to make is the hard part.
Where do you guys get inspiration for projects to add to your portfolio?
>>
>"Hey there's this cool project I could do with node"
> take 3+ days to configure build tools until frontend JS finally works
>>
>>60252698
I often just rebuild stuff that looks interesting as a website. Things like a desktop environment or a terminal for example.
>>
>>60252901
Good shout. Lately I've been rebuilding stuff I see on Dribbble, but that's mostly front-end stuff. I love doing back-end though. I'm also the one that asked >>60250209 earlier on. I'm going to make a few themes and sell them on Themeforest. That's the only way I can, outside of a full-time position, make money right now.
>>
>>60253094
That's one good way, but I was talking more about building things like a desktop environment or a terminal or something else that's not supposed to be a website. Another example would be rebuilding a menu screen from a game or some kind of interface seen on a TV show or a game.
>>
>>60252764
iktf

The worst part of learning anything new is getting everything set up so that you can actually start.
>>
>>60252764
Protip: configure it once, then just clone the repo and make any minor adjustments.
>>
Best library/method for handling ajax/ ajax rest-api ?

Axios?
github/ fetch?
ded/ reqwest?
kriskowal/ Q ?
superAgent ?
generic vanilla es6-promise ?
pajeet curry $ajax("..."); ?
generic new XMLHttpRequest() {...
>>
>>60252698
make shit that you want but doesn't exist or find some crappy commercial proprietary software that people use and make an open source version. also, there has to be at least a couple ideas you wanted to make which drove you to learning how to program in the first place which you haven't gotten around to you, i know there is for me..
>>
>>60253163
this actually seems kind of fun. I might have to try doing this
>>
>>60250111
yo.

>>60252024
Depends on your ultimate needs. If its just a document based site with a single author creating posts and static pages, NoSQL will be your best bet for performance and simplicity (but pls no mongo). If you ever expect having relational data, however, SQLLite or Postgres might make more sense.

>>60252698
If you don't have any good ideas just clone something popular from front to back. Its good practice and the world needs more open source alternatives.

>>60254770
window.fetch is the next proposed standard so I usually go for github/fetch + promises.
>>
pls hold my hands
how do i deal with backend, i have no experience with it
i only know html css and some js
>>
>>60256778
Time to learn PHP and SQL little man

Scamper over to Codecademy and then off to YouTube for some follow along tutorials to put it all together.
>>
>>60256778
>>60257090
time to lean {{ any backend language }} and SQL. PHP is a decent option, but there are others as well, do a *bit* of research before diving in:

-are you learning to get a job down the line or just for fun?
-do you know what languages are in demand in the location where you expect to get a job?
-do you want to work in big corporations or small startups? Big corps tend to favor Java/C#, startups go with everything else
>>
>>60257671
>implying you're locked into a language once you learn it
>overcomplicating what should be a simple and enjoyable learning process
>>
>>60257719
>implying you're locked into a language once you learn it

I didn't imply that, but if he's like some of the people here who say "trying to learn webdev, I desperately need to get a job three months from here cause I'm out of money!" then it doesn't make sense to start with just any language and then switch to another one.
>>
>>60256778

Time to learn Node and MongoDB.
>>
>>60256778
time to learn FORTRAN and Hadoop, medium-sized human being
>>
>>60256778
>>60256778
Time to learn Haskell and Cassandra plebeian.
>>
>>60250111
Does working in a warehouse for peanuts count as a real job?
>>
>>60256778
Time to learn Dart and Redis, little attack helicopter
>>
>>60256778
time to learn C# and Azure little roody poo.
>>
time to kms ;____;
>>
>>60259702
lol this is actually not a bad suggestion
>>
How do I steal a neocities website?
>>
>>60259976
wdym steal?
>>
>>60259982
I can't create from nothing so I want to rip a neocities site and use it like a template to build upon
>>
Anyone care to explain why this loop only seems to work on index 0?


string t1= "abcdefg";
int i = 0;
while (i < lbox1.Items.Count)
{
lbox1.SelectedIndex = i;
if (lbox1.SelectedItem.ToString() == t1)
{
work.Text = lbox1.SelectedIndex.ToString();
lbox1.SelectedItem.Value = "0";
//remove the selected item from the listbox
lbox2.Items.Remove(lbox2.SelectedItem);
}
i ++;
}
>>
>>60259999
What is supposed to happen and what does it do instead?
I can see that you remove the selected item from lbox2 without ever changing its selection.

Seems like a very inefficient way to do things though.
>>
>>60260114
Intention:
>remove selected item from lbox2
>change value of item in lbox1 which is the same as stringt1 to 0
>>
I need help friendos... How do I make an api secure? I'm assuming limiting by ip+domain isn't enough. I just need a direction to travel down...
>>
>>60259999
Did you mean lbox2 remove (lbox1 selected item)?
>>
>>60250111
Do you actually think that picture is funny? Serious question.
>>
What are the basic set of rules for CSS rule application?
Does inline style ruling take the most precedence?
>>
>>60259743
iktfb
>>
>>60260225
but why do it in a loop?
why do you combine both operations?

Just move the removal of the item in lbox2 to the top and then do something like
lbox1.Items
.Cast<YourItemType>()
.Where(x => x.Text == t1)
.ToList()
.ForEach(x => x.Value = "0");


to set the new value
>>
File: api sec.jpg (153KB, 929x725px) Image search: [Google]
api sec.jpg
153KB, 929x725px
>>60260253
is this sorta what you mean?
the book is Building RESTful Python Web Services, lemme know if you need it
>>
>>60249983
the i letter in this pasta is acute and unusable

what is this retardedness
>>
>>60260488
OP's idea of a joke, he's been doing it for a while now.
>>
>>60260309
Genuinely yes
>>
ur pastebins dont work btw
>>
>>60261044
read the thread
>>
So I studied CS actually
About a year now
Had to find algorithms to solve shit problems, it was funny but overall tiring as hell and painful for the brain

Just got back to webdev on the side

I understand the word "coding" now, since webdev is basically writing code to access APIs and prebuilt frameworks but not actually programming

I guess I hate the word "kode" less now

Please subscribe
>>
>>60260706
Not that guy, but clearly you aren't /realjob/ material.
>>
>>60260253
Oauth, some kind of token based authentication.
>>
Where do I put a logo that is round with small text?

It basically has to be huge or you can't read it, so it can't go in a menu bar.
>>
>>60262113
Sounds like a shitty logo
>>
button.on('click', function(e) {
flag = true;
});

window.on('custom_event', function() {
doSomeSyncCall().then(function() {
if (flag) {
//do some call
}
});
});


Is there a way to hook this up without using a flag? I want to do the //do some call call within the button listener due to scoping. I need to manipulate the button's class without using a DOM query and a specific class/ID.
>>
>>60263287
what is it for, what are you trying to accomplish?

there must be a better solution than using a global variable
>>
>>60263518
I have a button click listener that I want to fire code off after the next custom_event and the async call block has finished.

The custom_event / async call needs to still fire even if the user doesn't click the button (so I can't just wrap the listener inside the click listener)
>>
>>60263114
It's pretty good for everything that isn't a website.

It's a circle logo with text underneath.
>>
>>60263518
There is nothing wrong with global variables.
>>
can someone post a link to the discord wdg server invite the one in OP doesn't work

>>60263743
>>60263651
>>60263518
>>60263287
>>60263114
>>
>>60263879
i dont get why every thread on 4chan needs to have a chatroom in a separate gamer chat program

it's like you want the thread to die
>>
will we make a facebook group next
>>
>>60263879
replace the beaner i with a regular i.
>>
>>60264000
what ???
>>
so, few days ago some anons was writing about problems with wifi on laptop with ubuntu
i just saw what i used to fix that and command is
sudo modprobe -r ideapad_laptop

so if you are still here..
>>
>>60264000
>>60264057
>https://discord.gg/wdg
>>
>>60263961
>facebook
>>
What's your opinion on John Morris, the php guy?
Anyone subscribed?
>>
using html how do I make it load a different page if the user is on mobile?
>>
>>60264399
css media queries.
>>
>>60263287
https://css-tricks.com/debouncing-throttling-explained-examples/
>>
>tfw just discovered josefin sans.
>>
>>60264399
Don't do this. Just make your shit responsive man.
>>
>>60265042
I want mobile users to go to a site saying fuck off
>>
>>60263947
It's mostly shitposting and light discussions about web dev related shit desu. I prefer the flow of having an actual chat-like interface/conversation rather than posting on here sometimes. Plus there's a mobile app for it.
>>
>>60265071
>"I want to tell most of my users to fuck off"
Alright lad.
>>
>>60265181
exactly
>>
>>60265155
>Plus there's a mobile app for it.
i use a computer

i just thought earlier today how weird it sounds to me that android is more popular than windows

are there really that many people using phones instead of computers

i just cant imagine replacing my computer with a phone
>>
>>60264968
Looks great for headings but shit for general text desu

>no worries i'll just load one font for headings and one font for text, said the frontend developer
>>
>>60264391
What about him?
His sage wisdom is mostly just common sense stuff. Just another "buy my course and make mad kash learning to kode" snake oil salesman like most IT youtubers.
>>
>>60265042
What alternatives to bootstrap do you guys use? I feel like bootstrap is overused as fuck
>>
>>60265335
It looks good for both imo depending on what you're making.

I wouldn't use it to write paragraphs, but for informational stuff it works great.
>>
What's the thing called where when you scroll just a little it slides to the next section?
>>
>>60266197
Scrollify
>>
>>60266197
>>60266240
As a quick note, this type of scroll jacking is considered to be a bad UX choice. Don't use it if it is not completely unnecessary.
>>
>>60265728
Skeleton CSS - This basically gives you the responsive grid layout system and a few elements, you'll have to style everything yourself. It's pretty good and this is what I recommend you use.

If you want more feature rich alternatives to Bootstrap, check out Foundation (Zurb), Pure CSS, and Materialize CSS.
>>
>>60266292
>>60265728
Have a look at the internals of Skeleton too.

It is super concise if you rewrite the parts that matter to you as SASS mixins. I don't like any default styling because you will be overwriting it anyways.

In my job we mostly use flexbox, media queries and a proper reset.
>>
File: header_layout.png (10KB, 709x362px) Image search: [Google]
header_layout.png
10KB, 709x362px
>>60266280
Any suggestions?

I can't really use a navbar since I have the logo like pic related (this is the header section), so a nav brand wouldn't look right.
>>
>>60266414
I would stick the logo just in the nav bar and remove it from this section, people know where they are anyways.

Replace the bullet points with a single capturing sentence, people don't like too much information. Get to the essence of what you want to say.

If the intention is that people call the 1-800 number center that on the bottom.

Have a look on https://www.awwwards.com/. Many of what is on there is considered to be quite good by members of the industry.
>>
>>60266594
A lot of those are really artistic, which is good for certain industries, but this is a clinic.

I think the most I can animate will be parallax on the header and scrollreveal.js for bullet points in later sections. Maybe a fade in on the header sentence.

I can move the telephone number to the next section which has a contact form.

The bullet points can be moved to a separate section. The problem is the capturing sentence. Everything I'm provided is a paragraph long and full of buzzwords. Maybe "Your well-being is our priority" or something more descriptive like "Professional mental health and emotional services"
>>
>>60251528
Man, they really fucked him over for it.
>>
File: rortut1.png (78KB, 774x268px) Image search: [Google]
rortut1.png
78KB, 774x268px
>>60256778
Time to learn Ruby and any database at all whatsoever, shota. This book is free and it'll teach you everything from the very beginning: https://www.railstutorial.org/book.
>>
How do you mobile-enable a rails website...I'm using bootstrap so the website works nicely (navbar and shit) when i resize the window on my computer but when i go to it on my phone its still the same desktop version
>>
>>60270222
Learn the fundamentals, anon, like CSS media queries.
>>
>>60270222
Did you add the required meta tag?
>>
File: edigibson.jpg (84KB, 1080x1080px) Image search: [Google]
edigibson.jpg
84KB, 1080x1080px
Are sagas a meme? I've read all the docs over the last few days but haven't tried building anything with them. At first I was really excited about it. But then as I continued reading the more it just seemed like there was too much fuckery going on with attached/detached blah and cancellation bubbling. I already know a fair bit of rxjs and it just seems like a half baked russian attempt at something geniuses already figured out with rxjs. Am I wrong? Do I have to learn it anyway because it's popular?
>>
Id like to do some backend webshit with something sinatra inspired like flask but I dont want to touch python or memejs or anything dynamically typed.

Would you use this
http://sparkjava.com/documentation
?

I've also heard good things about Go but I hate the syntax.
>>
>>60260253
I prefer basic auth whenever possible :)
>>
>>60270222
<meta name="viewport" content="width=device-width, initial-scale=1">
to the head
>>
Where can I find freelance work that doesn't pay at the pajeet rate?
>>
Possibly silly question-
I'm using this startpage (https://github.com/TacoAnon/Homepages/tree/master/homepage-v5) and I've gotten everything customized to my liking (I'm very much so not a code person, I work in hardware development)

How do I get this to load a random image for the wallpaper (I want to say the question is "How do I load a background from an Array", is that correct?) All of the solutions I see use js and this is calling it with css.

Can anyone here help a retard out?
>>
>>60271727
yeah, you'll need to use javascript for that. you can do it with php(or other backend language)+css but since it's for a start page i'd stick with js..
>>
>>60260471
PLZ link friend
>>
how do you remove a specific element from an array that is inside of an object?

function obj(id){
this.id = id;
this.arr = ["a", "b", "c"];
}

// code to remove "b" from 'arr' inside of 'obj'
>>
>>60273461
let fag = new obj(3)
fag.arr = fag.arr.reduce((acc,el) => {
if (el !== 'b') acc.push(el)
return acc
}, [])

you could also do some shit with slice or splice
>>
>>60273498
Maybe it works, I don't know. I was able to solve it with:

delete obj[x].arr[y]; // left an array of [object, object, empty]

obj[x].arr.pop(); // removed the empty object from the array


Could use splice or whatnot if the empty value wasn't the last in the array.
>>
>>60271722
Connections.
>>
File: sweating meme.jpg (14KB, 300x300px) Image search: [Google]
sweating meme.jpg
14KB, 300x300px
GUYS HELP -

We just had a short meeting with the project manager who informed us that the front end guys are moving to angular. Most of the team just said "ok", and the meeting was over.

Why the fuck would the front end using angular have any effect on the backend? We use python3 and flask if that makes any difference.
>>
>>60275319

They wanted to let you know that when the performance drops by 60%, it wasn't your fault.
>>
I finished my first year in a CS degree. What should I do to learn web dev fast? Any recommended courses that assume you have some experience with CS concepts?

Assuming I dedicate this year and next year's summer learning (let's say 2-3 hours a day in the summer), is it unreasonable to expect a junior's job by the time I enter third year?
>>
Learning resource for getting into Angular 4?
>>
File: 1281572273102.jpg (85KB, 800x600px) Image search: [Google]
1281572273102.jpg
85KB, 800x600px
Hey fa/g/s, I did it. I landed a junior position as a full stack web developer.
I made it mom, I made it to the big leagues.
>>
>>60256778

Time to learn Bash on Balls and JsHypercube, you glorious winged fagtron.


>>60275777

This is not a "yes/no" questions.

You can learn the basics of how to configure Wordpress and sell people crappy Websites in a few weeks.

Or you can spend a long time learning the fundamentals of Client/Server Architecture, Hypertext Transfer Protocol, SSH, database architectures like RDBS and NoSQL, network security, logging, performance tuninng and finding bottlenecks, servers like Apache and NGinx, a few backend langauges with some frameworks and what not..


The truth is somewhere in beteen. As a rule of thumb I'd say it takes one year of at least a few hours per week to get on the entry level of web development. There are just so many things to learn.

Your best bet is:
1) Start with HTML/CSS and JavaScript.
2) Learn one scripting language (Python, Ruby, PHP or whatever..) or learn the MEAN stack.

If you got there, you'll have a big deal of knowledge. Add a little bit of something like React or Vue and you're ready for employment.

How to learn?
For the basics (HTML/CSS/JS) it's OK to do simple tutorials, but for the rest it's better to actually do projects.

Just try to copy a site you like:
Make your own image board, make an online chess game, make a dating-app.. whatever!

Just make sure to put it on git hub and have a few commits per week.


If you do this, you'll be employable in one year.
>>
>>60276317

Well done anon.
What stack?
>>
>>60276317
tell us about your journey. Degree or not? What stack? Where you located at? Starting $$$? How long did it take you to make it?

Also congrats ;^)
>>
>>60276317
Did you start in frontend or backend before?
>>
>>60276370
>>60276390

Have a BSc in IT/CS, took me 5 years to complete a 3 year program (the math & physics took time)
Did a summer internship in a company that develops and maintains high-traffic web applications - PHP & Symphony and some Apache/Nginx configuration
Couple of freelance projects, charged low and delivered low quality stuff

Starting pay is average in my country (Southeast Europe) but I have it on good authority that after a year or two it gets much better

I don't know much about the stack except that they have a internal codebase that is mostly PHP for backend, don't know about the front, don't really care what stack desu
>>
>>60276655
>Internal code base.

Oh boi.
>>
>>60276708
It is a small team, any spaggetti that I will be working with will be the spagetti of the guy next to me so we are cool
>>
When buying a postive SSL do I need to enter legit information or can I just bs it?
>>
File: 1488896629025.jpg (61KB, 728x704px) Image search: [Google]
1488896629025.jpg
61KB, 728x704px
Why is ruby on rails such a pain in the ass on windows? Websockets fails to install, errors everywhere, other things that are probably user error.

I'm just trying to learn guys. Waaahhhhhh
>>
File: a.jpg (23KB, 616x493px) Image search: [Google]
a.jpg
23KB, 616x493px
QUESTION:

How do pages like NYT etc. implement the "you have read 4/10 articles for this month"

???????????
>>
>>60278998
something about cookies? Does that reset to 0 if you clear your cookies/cache? No idea, just thinking
>>
i'm kind of a newb so please bear with me

i'd like to make an android app, mostly for myself but it's also a college project at the same time. the design i have in mind would include being able to create an account and upload i don't know, either json or xml containing account data

how do i go about it? it'll be in java as i started the basic logic already, but i'm unsure what to look for in terms of account synchronization, basic security and etc. could someone please direct me towards some library or at least what to look for?

and for the record, i'm doing googling of my own, but android seems to be hell in this regard, haven't really done anything online on it
>>
>>60279112
Yep, cookies, IP, localStorage, Flash cookies were used in the past, you can also use browser fingerprinting.
>>
>>60278662
Use a VM or if you are on Win10 the ubuntu bash
>>
>>60279539
win10 ubuntu bash sucks desu
>>
>>60279464
check the basic authorization library for java, don't know about it but google is your friend. Also, check if you can use OAuth, which is a solid security library available on many platforms
>>
>>60279590
ok, and what about making the account listed in the accounts tab? do i make my own account logic and somehow translate it to android or is it the other way?

also, what's the best practice for for example retrieving your saved info from a server, like an .xml or a read from some database stored on it, assigned to the account? so far i imagine there's some library you set up on server and it responds to authorized http requests that send relevant file.
>>
>>60252764
You can find that shit already done in GitHub, learn2search
>>
testpost.
>>
so if I use a table element with react
it'll still re-render the whole fucking thing when I change one cell? what the fuck?
>>
I can't post here, "connection error". Wtf?
*sadfrog*
>>
collection = '[{"user":"Someone1","email":"[email protected]"},{"user":"Someone2","email":"[email protected]"}]';
Guys, how can i write new data in JSON like that?
>>
>>60280101

spit out the data with a backend language and send an AJAX request to retrieve it
>>
>>60280132
I can't do that with only frontend? But i can show each elements so:
let users = JSON.parse(collection);
alert(users[0].user + users[0].email);

I have no way with frontend-side?
>>
>>60280224
I tried this, but it's doesn't works:
let newData = {user:"New User",email:"New Email"};
//JSON.stringify(newData);

And sorry for my shitty english:(
>>
>>60279662
>so far i imagine there's some library you set up on server and it responds to authorized http requests that send relevant file.

exactly like that, my friend. It's not too complicated
>>
Has anyone used Spring? Is it anything like Django? I'm looking to make a basically static site, but I would like to have the ability to edit posts through an admin panel and want to write any code in Kotlin instead of Python
>>
>>60280281
>>60280101
>>60280224
I am sorry but I cannot understand what you mean. Can you give an example of the inputs you have and your desired output?
>>
File: error1.jpg (29KB, 616x597px) Image search: [Google]
error1.jpg
29KB, 616x597px
Retard here, i've been trying to simply install wordpress on IIS (Windows Server 2016) and every time I go to open the install php I get hit with a too many redirects.

Anyone have any ideas where i've fucked up? I've been trying different things for hours now and get the same shit every time.
>>
is wordpress still the standard as far as a `cms` goes? is there anything better?
>>
>>60278192
Why not just use Let's encrypt?
>>
>>60280795
WordPress is still very popular and it's a decent option if you're building a blog or basic CMS, but if you start getting into anything more complicated than that you're going to experience pain.

I'd only suggest using it if it pretty much does what you need out of the box or if you want to draw from the many plugins that are available for it. Otherwise just build something custom with a modern framework.
>>
Uh I got a python program running Bottle, set up to use 4 threads and 2 processes. The program uses some natural language processing which is quite memory intensive (about 1GB to load/use the models). It seems when another user initiates the program, a new instance of the program is started, adding another 1GB.

How on earth do I manage this?
>>
how can I link to selected values instead of divs like in this site? hslpicker.com/#40bfbb,0.5
>>
>>60281138
Decouple the http part from the NLP part
>>
why have irc there when no one uses it
>>
>>60281643
How? I have my own module which handles the NLP that is used by both the program and an API I made.

I could only have the API import the NLP module and then call the API from the program? Or is there a way I can simply have the module running in its own right, decouple from the http parts as you said?
>>
>>60250932
I did drupal as a junior 7 years ago. was bad even then. jekyll + cloudcannon is ok. shit, for that budget you could do something custom for their needs.
>>
>>60252024
use a static site generator
>>
>>60252547
I've never thought about how that is implemented, would also like to know the question. Sounds like what you want is a list data structure though. You can use redis for that.
>>
>>60265728
lil bit of hand-rolled scss. a small set of globals (gutter size etc) and some abstract classes like shadows, padding, and columns. css frameworks are almost always the wrong choice.
>>
>>60271296
I don't like java, but that looks really good actually if you use 8+. Maybe even use it with Kotlin?
>>
Not a webdev, but I need a quick HTTP communication for a robot system.

What is wrong with dumping my request payload + nonce + timestamp as base64 and encrypting with a shared AES key?

It's not very important data, and there will be a more permanent solution in weeks (written by a webdev person) but I'd really like a temporary solution that is 'safe enough'.
HTTPS is available, my request is:
{
'origin': 'agv-1234',
'iv': 123412341234,
'payload': AES(key-of-agv-1234, data)
}

Where data is:
{
'origin': 'agv-1234', # this must match the one above
'time': time.time(),
'data': { whatever im sending },
'nonce': some-CSPRNG-value
}


What are my vulnerabilities here? I don't care about one request being mitm'd and stolen, I care about someone structurally leeching the data without access to the shared AES key.
(I have very little space/CPU time to work with but do have a native implementation of AES on-chip which is why I came up with this)

Any help /g/?
>>
>>60260253
JWT. but make sure you use a good implementation. some are insecure.
>>
>>60271296
spark is bretty good but you can do quite a lot with just the java standard library
>>
You know how those sites that display a popup saying "register" or some shit like that if you are not signed in also disable scrollbar? I can easily avoid the popup by inspecting the element and deleting it but how do i enable scrollbar in inspect element?


I've read online that i have to find overflow in the body tag but i can't seem to pinpoint the location
>>
>>60260371
yes it does. here's the full ruleset https://www.w3.org/TR/2011/REC-CSS2-20110607/cascade.html#cascade but you can avoid all this complexity by explicitly namespacing with BEM or similar
>>
í
>>
File: 1419994056218.jpg (255KB, 1000x1500px) Image search: [Google]
1419994056218.jpg
255KB, 1000x1500px
>>60249983

> making a javascript frontend for a website
> form submit redirects to a plaintext page with a URL
> Try to redirect to url by setting location.href, location, window.location, window.location.href
> None of these work
> try copying and pasting URL into URL bar
> Works find

how do I fix this shit? It's really important and I've been stuck on it this for days

Here is a jap girl so I get some replies.
>>
>>60282515

>> Works find

*works fine
>>
full stack master race reporting in
>>
>>60282515
is it hosted on cf?
>>
>>60282563

What is cf?
>>
>>60282515
can you clarify? you posting with ajax then setting the browser location in js upon response, or is the backend handling the redirect?
>>
>>60282515

thank you for using a jap girl pic

and you should use a backend to do redirects
>>
>>60281796
The pro way to do it would probably be to split off the nlp program into its own thing and run it with a job queue. If you're using python, you'll probably want to look into celery. See here for more info: https://www.fullstackpython.com/task-queues.html
>>
File: 1462049911457.jpg (76KB, 760x584px) Image search: [Google]
1462049911457.jpg
76KB, 760x584px
Well mates I fucked up and applied for a job the other day. Today they email me and want me to take a JS assessment. I never really got past the basics of javascript, I was in the process of focusing on Ruby/Rails, I also have never really seen anyone else's code.

Any resources that can provide with a crash course on these things that I can study before I have to take the test? I have to take it by tomorrow evening.

Halp! Thx in advanced.
>>
>>60282636
Thanks, I was looking at Celery the other day so I'll get started with that.
>>
>>60282596

I'm submitting a form with an XML http request, then it responds with a URL and I am redirecting with Javascript

The thing is im rewriting the javascript for a website I didn't build. They use some kind of ajax dollarsign shit, I don't really know.
>>
>>60282691
ok you probably want to submit the form the ajax. the dollarsign shit is likely jquery. not sure what to advise you other than make sure you understand the basics of http/js/ajax
>>
>>60282607

I didn't write the website

It is a compatibility add-on for a website that LibreJS breaks.
>>
>>60282678
sorry for english. let me rephrase.

for a junior position what do I need to know in JavaScript? Are there any places that you fellas can point me towards so I can study my ass off with? Like a refresher or crash course type of thing?
>>
File: 1491498188614.jpg (602KB, 2448x3264px) Image search: [Google]
1491498188614.jpg
602KB, 2448x3264px
>>60282720

I really don't want to take on a dependency just to do something so simple

bumping with an anime whore because I really need an answer.

I'm unironically doing this at the request of RMS.
>>
>>60282849
CodeAcademy is a pretty fast very basic understanding and has a similar focus as you employer probably.
Also, there's no load of text that you must read, so if you have enough coffee I'd say go for it
>>
File: 1472779719967.png (157KB, 516x440px) Image search: [Google]
1472779719967.png
157KB, 516x440px
Best place to download web development courses for free? For example from udemy or lynda
>>
I was just spam-applying on zip recruiter with the 1-click apply.

I accidentally applied to where I am currently working. What do?
>>
>>60284111
btdigg.org, when it's working, or use duckduckgo instead of google.
>>
>>60282515
same-origin policy desu senpai
>>
>>60284024
Cool I always forget about that site. Probably because it's not that great for learning a language but it is probably pretty damn good for a refresher.

Thanks anon.
>>
>>60280699
The most common misconfiguration that causes redirect hell is when a user has incorrect URL in WordPress Address URL or Site Address URL settings.
>>
Going to starr freelancing,

Hosting node web applications, whats is the avg cost per month per website? I can host multiple sites on one account right? What tier to get? Also if im freelancing do I make an account for every persons website?
>>
>>60278662
learn you a linux gud you mong
>>
>>60282405
They usually add overlay what's basically html element that covers everything. Shouldn't be too hard to find with inspect, it's usually first element under body.
>>
File: george-costanza.gif (805KB, 245x262px) Image search: [Google]
george-costanza.gif
805KB, 245x262px
Anyone have a good boilerplate react universal repo?

I need it for my next project and figured I would ask here.
>>
>>60282515
Anything on error console? Sounds like same origin policy like was already mentioned but it should give some sort of error. Are you trying to redirect to different domain?
>>
>>60284722
You can get basic vps from digitalocean or linode or somewhere else and with right conf host all your sites there. Doubt they will get enough traffic to cause problems.
>>
>>60282363
I don't understand, are you asking if your security model itself is "safe enough?" Because I can tell you that that's too specialized for a webdev thread, and isn't really specific to webdev in the first place. I can tell you that you should make sure you're using strong SSL because most default configs are weak. https://cipherli.st/
>>
>>60285608
Whats your use case for server side react? Are you literally facebook?
>>
When freelancing is it better to brand yourself as a company or an individual? I'm full stack and prefer to choose when to delegate tasks out to other individuals if that makes a difference.
>>
>>60286358
nah the client was insistent on it because SEO meme.

I found a solution with next.js
>>
Why does everything loom the same? Like dating apps.

All say to connect to facebook with "Dont worry, we wont post there"

Also video chat apps. All are exactly the same with different gift icons.

Is there some super company that just churns out dozens of the same kind of app and somehow makes them all successful?
>>
>>60278662
if you want to webdev just use linux/mac, if you're into m then windows is fine i guess
>>
>>60284111
extratorrent just search udemy and it'll show up
>>
Does anyone know how to check if you have access to a file without calling open() when using an XMLHttpRequest?
I'm accessing local files from a local page, and it works fine in firefox, but in IE it will present an "access denied" message and stop the entire script, but I can't seem to find out how to check if you have access without it fucking everything in the process.
I tried looking myself, but I can't find anything. I don't know if I'm just using the wrong search terms or if it's just bullshit with no solution.
>>
>>60287890
the world is not incredibly creative. People see something that works and they go "I want THAT for my app too!"
Thread posts: 215
Thread images: 17


[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.