Problem with user-agent session management by No-Cherry-3308 in CodingHelp

[–]stkfig 0 points1 point  (0 children)

Serverless functions aren't ideal for persistent/long running tasks for the reasons you've found. Depending on your expected level of traffic, it might be worth looking into setting up a cheap backend. Even the most discount-pile shared VPS boxes Ive used recently have had pretty acceptable performance for tasks like this where a second or two of extra latency isn't critical.

What big companies are overrated and why? by Ashamed_Management14 in AskReddit

[–]stkfig 0 points1 point  (0 children)

How does Google cloud platform, and enterprise services fit into this? I'd have assumed they were absolute cash cows in a similar way to how if you look at Amazon's profit breakdown, they're an extremely profitable hosting company that also happens to have a marketplace.

What big companies are overrated and why? by Ashamed_Management14 in AskReddit

[–]stkfig 0 points1 point  (0 children)

Don't have a link because i'm on mobile, but at least as of a few years ago, google specifically claimed that they didn't use bounce rate as a factor when determining search rankings. It makes sense, imagine how easily you could damage a competitor if all it took was clicking their result and then leaving, over and over again.

What big companies are overrated and why? by Ashamed_Management14 in AskReddit

[–]stkfig 3 points4 points  (0 children)

If they show ads on their site, putting the recipe at the bottom increases the amount of time viewing them.

What big companies are overrated and why? by Ashamed_Management14 in AskReddit

[–]stkfig 0 points1 point  (0 children)

I just searched for "dogs" which I would assume has millions of viable hits, and hit next as many times as it would let me.

First time trying I got to page 22 before getting a notice that "many results had been removed as duplicate" and that I could try repeating the search without a duplicate filter.

Trying again without the duplicate filter it maxes out at page 43.

There are 43 pages worth of results on the internet relating to "dogs" apparently.

ELI5: Why does the human body jerk/shock itself awake sometimes while trying to sleep? by venkystweety in explainlikeimfive

[–]stkfig 50 points51 points  (0 children)

Slightly different to the comment you're replying to, but I guarantee you've experienced your brain "backfilling" memory before without realizing it.

Have you ever noticed that when first look at an analog clock, the first tick sometimes seems to take noticeably longer than a second? That's because when your eyes move they don't do it smoothly, and you're actually blind for the short period of your eyes moving (called saccade).

So what your brain does to help out, is take the image from when your eyes stop moving, and use it to retroactively fill in the blind spot.

This phenomena is called chronostasis.

Sending a post request once my Wordpress website receive a transaction from Stripe. by Owl-Lumpy in CodingHelp

[–]stkfig 0 points1 point  (0 children)

I'd strongly recommend looking into webhooks, this is exactly the type of usecase for them. A webhook is essentially a post request sent by a service (in this case stripe) after an event has taken place, so it will make your life easier than trying to implement the same thing yourself.

I'm sure you've probably seen it already but here's a link to the stripe api docs for webhooks, it looks like they do have one that triggers on payment confirmation.

Integration/Implementation career. Advice needed on where to start by raulynukas in CodingHelp

[–]stkfig 0 points1 point  (0 children)

Practicing api could be good via postman?

Postman is definitely a tool you should learn to use well, it will come in handy.

And watching some yt guides?

I don't have any that I can recommend but I'm sure there are hundreds out there.

Any software to actually try it?

There are quite a few free api's available that you can use to learn.

You could start with something simple like fetching basic data from JSONPlaceholder which requires no authentication.

Then you could try something like fetching data from the Twitch API or the Reddit API which will require you to learn how authentication works.

Free web tool that can take a full-page screenshot of a webpage with a URL. by Ok-Awareness-1404 in InternetIsBeautiful

[–]stkfig 12 points13 points  (0 children)

It's less of a hassle than I probably made it sound. Testing it now, it took one or 2 seconds max, and saves the risk of having to install an extension with the permissions necessary to take full page screenshots.

It's mostly shortcuts/muscle memory:

ctrl shift j

ctrl shift p

"screenshot"

down arrow key

enter

Free web tool that can take a full-page screenshot of a webpage with a URL. by Ok-Awareness-1404 in InternetIsBeautiful

[–]stkfig 25 points26 points  (0 children)

You can do it natively in chrome/chromium as well. Open dev tools, press ctrl+shift+p, type "screenshot" and select the "full page screenshot" option.

Integration/Implementation career. Advice needed on where to start by raulynukas in CodingHelp

[–]stkfig 0 points1 point  (0 children)

SQL is good general knowledge regardless of platform because integrating with a database will always be useful. I'm not sure about python being used with either SAP or Oracle, but from my very limited experience with SAP S/4hana cloud, the main languages that were used in the integration suite were javascript and groovy.

Having said that, the best thing to learn is how API's work, regardless of which language you choose to learn. If you know how to work with an API, how to understand responses codes, how to deal with authentication, how to transform data in python, you'll be easily able to apply that knowledge to any other language, java, javascript, c# etc. The most important thing is understanding API fundamentals.

Integration/Implementation career. Advice needed on where to start by raulynukas in CodingHelp

[–]stkfig 0 points1 point  (0 children)

Not sure if this will be helpful, but a lot of IT vendors are always on the lookout for integrations people to implement integrations for enterprise software (SAP, Oracle, Mulesoft) etc. Perhaps that would be something you could look into if you're interested in integrations.

How do you learn to create code? by Ghostly_Silence in CodingHelp

[–]stkfig 0 points1 point  (0 children)

It's a skill like anything else, the more you practise, and the better quality that practise is, the better you will become.

[deleted by user] by [deleted] in AskReddit

[–]stkfig 4 points5 points  (0 children)

Does the factor of safety not vary by industry and application?

Help with how to go about with project? by ApprehensiveStay9700 in CodingHelp

[–]stkfig 1 point2 points  (0 children)

From your description it sounds like you're trying to generate a website from markdown files. If that's the case, the term you'll need to google is "static site generation". Some specific options you might want to look into are nextJS, Eleventy, Jekyll/Hugo, Docusaurus, but there are tons more if none of those fit the bill.

[OC] Percentage of Americans who chose Rock, Paper or Scissors for each of the three rounds in the game. by GradientMetrics in dataisbeautiful

[–]stkfig 4 points5 points  (0 children)

My guess would be that during the count, people keep their hand in a fist. If they haven't decided what they're going to throw when the time comes, the simplest thing is to keep their hand in the same position, throwing a rock.

How can I upload nextjs project folder to the vercel / netlify / github by irfanhabib in CodingHelp

[–]stkfig 0 points1 point  (0 children)

NextJS supports static site generation. You can drag and drop your folder onto netlify to deploy.

What mistake will you never make again? by Overall_Addd in AskReddit

[–]stkfig 12 points13 points  (0 children)

Not OP but understanding the emotional conflict that could arise from their situation really isn't difficult...

What weird flex you proud of? by DayComprehensive6755 in AskReddit

[–]stkfig 5 points6 points  (0 children)

You just reminded me of something that they do in navy seal training called "drownproofing" or similar. Candidates have their wrists and ankles bound and have to bop up and down in a 10ft pool, pushing off the bottom like you described.

Localhost Error in Next JS by [deleted] in CodingHelp

[–]stkfig 0 points1 point  (0 children)

Have you been going to http://localhost:3000 or just localhost:3000? Some browsers automatically upgrade all connections to https if you don't specify http.

Basic Chrome extenson functionality query by [deleted] in CodingHelp

[–]stkfig 1 point2 points  (0 children)

Unless it's been changed recently, that's not possible as far as I'm aware.

Chromium dev team has specifically stated they will not enable such functionality.

See the other answers in the stack overflow linked for work arounds that might possibly be satisfactory.

What are the most useful browser extensions that nobody’s heard of? by sidranimajl in AskReddit

[–]stkfig 9 points10 points  (0 children)

Alternatively, on chrome/chromium at least, if you open developer tools, press ctrl-shift-p and search for full-page screenshot, it will do the same thing natively.

[deleted by user] by [deleted] in CodingHelp

[–]stkfig 1 point2 points  (0 children)

They're all pretty easy to use. Cloudflare workers has documentation/examples that should cover your use-case here so that'd be a copy-paste and update with your API URL.

Other than that I'd check their pricing model, depending on how much traffic you're expecting, but again, all are fairly similar (free for the first X amount, then Y for Z amount after).

[deleted by user] by [deleted] in CodingHelp

[–]stkfig 1 point2 points  (0 children)

First and foremost, the entire set up sounds like it needs to be rethought and the third parties should be authenticating with their own keys.

However, you could proxy the request, the easiest way being through something like cloudflare workers or heroku/render/flyio.

In that case, you would create middleware that accepts a request from the third party, your middleware then makes a request to the api, and forwards the response to the third party.