icon sets are gay
why use whole set when you need few
just download png/svg of what you need from internet
/wdg/ - Web Development General
is it possible that tdd is actually impossible except for routine tasks?
brainlets!
I have some input fields on my blog, once the user has given the requested data. I prompt the user to login they can either use native login else there is FB login. The native login is working fine but when I use the FB login, I am not able to retrieve whatever data was entered earlier. I am using Laravel. I tried to store the data in local storage and retrieve it but some of my input fields has multiple data possibilities like tags so when I retrieve from local storage. I am not able to view those data stored as array.
Any solution to retrieve the data to my controller that was entered before pressing the FB login button? Thanks in advance.
What's the 'proper' way to call an API for some data?
I'm trying to do it through Ajax/jQuery but getting a CORS error. Generally, should you not call an API through a script? How should you do it?
are you talking about registering the user for the first time or actual login?
Why don't you google the error?
I just did a mini benchmark of the smaller (DigitalOcean - 1 CPU - 1 GB - 5.00$
CPU: 3115 events
MEM: 3539.57 MiB/sec
IO random read: 29.19 MiB/s
IO random write: 19.46 MiB/s
>Vultr - 1 CPU - 1 GB - 5.00$
CPU: 3371 events
MEM: 4086.63 MiB/s
IO random read: 36.50 MiB/s
IO random write: 24.34 MiB/s
>Scaleway - 2 CPU (x86) - 2 GB - 3.99€
CPU (1 thread): 4834 events
CPU (2 threads): 9634 events
MEM (1 thread): 2581.35 MiB/sec
MEM (2 thread): 3281.17 MiB/s
IO random read: 6.98 MiB/s
IO random write: 4.43 MiB/s
>Scaleway - 4 CPU (ARM) - 2 GB - 2.99€
CPU (1 thread): 2550 events
CPU (4 threads): 10176 events
MEM (1 thread): 986.18 MiB/sec
MEM (4 thread): 3040.03 MiB/s
IO random read: 6.16 MiB/s
IO random write: 4.26 MiB/s
Note that while Scaleway has the best CPU performance and more RAM, they are lacking in most other aspects and features (no backups, no monitoring, etc.). You are on your own with most things. They also only have EU west locations.
Vultr and especially DO come with more features.
rude
Are you from the last thread?
Try calling it from your backend.
>Generally, should you not call an API through a script?
If you try to call the API from your own site in the browser and your domain isn't whitelisted for CORS, then you will get that error.
Read about CORS on MDN if you have some time.
if you are calling an api from the public folder of your server, you don't need to mess around with cors, if you have 2 servers, one for the beck-end and one for the front-end development and you are making a call from port 3000 to port 5000 you need to set up cors for your server, google how to set it up for the language you use
>I just did a mini benchmark of the smaller
didn't you did this a few months back?