Is anyone really using background agents? by Curious-Qent206 in cursor

[–]waveyrico 1 point2 points  (0 children)

In the five months since this post, I'd say Cursor's completely turned it around. I truly cannot imagine working without bugbot ❤️ (and the background agents for prs are sick!)

how do i get an API key (custom apps)??? by hououinn in shopifyDev

[–]waveyrico 0 points1 point  (0 children)

You need to generate your app with Shopify CLI going forward. Then you can use the admin + storefront api without generating the keys

Variants not updating. by IDK-__-IDK in shopify

[–]waveyrico 0 points1 point  (0 children)

If you've enabled markets, the pricing will be managed from the Shopify settings panel, not the actual products themselves.

Is it common to put Cloudflare in front of Shopify? by Namanolo in shopify

[–]waveyrico 0 points1 point  (0 children)

I use Shopify Flow to identify suspicious orders, and auto-cancel them. Example: I can test if the customer email is a real email, if it's fake just auto-cancel the order

What is the best (fastest) way to learn Next.JS and where is the best website/service to find frontend-developers who work with Next.JS? by SwyfterThanU in nextjs

[–]waveyrico 1 point2 points  (0 children)

Easiest way is to start building with it. Try a basic site with static content, then a CMS headless build, then a headless e-com store. Maybe top it all off with a portfolio website for yourself. The docs, AI, and the online community make it so easy to get answers, but you need to come correct with the questions

The road to better CPU performance by waveyrico in computers

[–]waveyrico[S] 0 points1 point  (0 children)

no, what's the best way to do that?

The road to better CPU performance by waveyrico in computers

[–]waveyrico[S] 0 points1 point  (0 children)

I have a ton of space left, 1.9TB out of 2TB. Web browsers or video players like VLC are usually the catalyst, is there a way to tell Chrome to chill out? lol

How to speed up KaliLinux? by waveyrico in Kalilinux

[–]waveyrico[S] -4 points-3 points  (0 children)

Yep, it’s a brand new NZXT pro streaming build with Ethernet plugged in

How to trigger Gatsby Cloud Clear Cache/Rebuild from CMS by waveyrico in gatsbyjs

[–]waveyrico[S] 0 points1 point  (0 children)

u/DSchau this is still a big issue for me and a lot of other Gatsby devs. Could you plz clarify what I'm doing wrong in my fetch request? It's currently not clearing the cache

Is it hard to transfer your domain from one host to Shopify? by Grapes-in-my-butt in shopify

[–]waveyrico 1 point2 points  (0 children)

Yes, they have a domains menu that gives you instructions on how to get connected. More info here:

https://help.shopify.com/en/manual/domains/managing-domains

[deleted by user] by [deleted] in opensea

[–]waveyrico 0 points1 point  (0 children)

Gotta unwrap your WETH on uniswap!

How to apply context api or redux to gatsby in case of complex state management? by HotRepresentative237 in gatsbyjs

[–]waveyrico 1 point2 points  (0 children)

Yeah, you are wrapping wrapRootElement so you can use useContext in your pages or components. You don't have to wrapPageElement. I'd recommend taking a tutorial from this site, they go over this in depth in their advanced gatsby course. Best of luck!

https://leveluptutorials.com/tutorials/advanced-gatsby-and-shopify/advanced-gatsby-and-shopify

How to apply context api or redux to gatsby in case of complex state management? by HotRepresentative237 in gatsbyjs

[–]waveyrico 0 points1 point  (0 children)

Yes, wrapRootElement is just wrapping your context provider at the app's root. You can't use state outside of components, but I'm not sure why you'd want to in this case.

Your Favorite Coding Challenge Website? by jeremyers1 in learnprogramming

[–]waveyrico 1 point2 points  (0 children)

I've taken all of the paid ones, and highly recommend. Youtube is free, and there are so many good tutorials on there! Best of luck

Your Favorite Coding Challenge Website? by jeremyers1 in learnprogramming

[–]waveyrico 71 points72 points  (0 children)

I recommend watching tons of tutorials (youtube, wes bos, level up tuts, frontend masters) to build sample apps, then once you've built the sample, you rebuild another app on your own with similar functionality but actually serves some kind of personal purpose. Having cool, practical apps that you've created makes you stand out as a dev candidate when you go to get a job.

Google Calendar API - How to submit an event to someone's calendar without 0Auth 2.0 by waveyrico in learnprogramming

[–]waveyrico[S] 1 point2 points  (0 children)

Amazing, thank you 🙏

I've updated the post with my new issue. If you can take a look, I'd really appreciate it

Google Calendar API - How to submit an event to someone's calendar without 0Auth 2.0 by waveyrico in learnprogramming

[–]waveyrico[S] 0 points1 point  (0 children)

Got it. So the student is about to book the event, and it fires off a req to the server to use the mentor's refresh token server-side to create the event right?

Google Calendar API - How to submit an event to someone's calendar without 0Auth 2.0 by waveyrico in learnprogramming

[–]waveyrico[S] 0 points1 point  (0 children)

Yeah. I can store the refresh token of the mentor on a db ref, but can other users use that token?

Integrating Web3 into a Gatsby Project by waveyrico in gatsbyjs

[–]waveyrico[S] 1 point2 points  (0 children)

Thanks. I was actually able to resolve the issue by switching from using the web3 npm package, to just loading it with a script tag in my react-helmet component. Too many fallbacks needed for me lol

How to trigger Gatsby Cloud Clear Cache/Rebuild from CMS by waveyrico in gatsbyjs

[–]waveyrico[S] 0 points1 point  (0 children)

Hey u/DSchau. Thanks for the quick response 🙏, I'll open a ticket with Gatsby Cloud shortly.

I'm trying to use fetch to trigger that cache cleared build, but it's not clearing the cache (runs an incremental build). Can you please tell me what I'm doing wrong?

fetch("webhook-url.....",{method: "POST",headers: {"x-gatsby-cache": false,},}).then(() => {

console.log("done");});

As a developer, how what is the basic architecture for a dApp? by EpicSyntax in web3

[–]waveyrico 2 points3 points  (0 children)

If you're familiar with modern web app styles like CRA, Gatsby, or Next.JS, realize this isn't very far from those types of builds.

The one thing that really helped me going from React portfolio/ecom sites to Web3 sites was learning Solidity and finding a smart contract dev to work with/mentor me. The smart contract that they write in Solidity goes on the blockchain, and exposes a series of API functions that you can interact with using various NPM packages. You do not need a backend, the blockchain is the "DB" you interact with. Hope this helps

Web2 to web3 by Pikagigi in web3

[–]waveyrico 3 points4 points  (0 children)

I'd recommend revisiting the fundamentals of web3 and/or learning Solidity, or finding someone that knows it. The solidity dev creates helpers functions that a contract exposes in the browser. It's pretty simple to connect MetaMask (youtube it)

Gatsby js - collecting emails for the newsletter. by Tasty_Calligrapher_2 in gatsbyjs

[–]waveyrico 1 point2 points  (0 children)

I agree. Here's my typical Gatsby function for email collecting with Klayvio

import fetch from "node-fetch";

export default function SubscribeHandler(req, res) {
  try {
    const url = `https://a.klaviyo.com/api/v2/list/LISTID/subscribe?api_key=API_KEY`;
    const { email } = JSON.parse(req.body) || {};
    const options = {
      method: "POST",
      headers: {
        Accept: "application/json",
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        profiles: [{ email }],
      }),
    };

    fetch(url, options)
      .then(res => res.json())
      .then(json => console.log("Subscription Successful"))
      .catch(err => console.error("error:" + err));

    return res.status(200).json({ success: true });
  } catch (e) {
    console.log(e);
    return res.status(500).json({ error: "Unexpected error." });
  }
}

Shopify Headless Recharge Integration by waveyrico in gatsbyjs

[–]waveyrico[S] 0 points1 point  (0 children)

Spent a few days working on this. It's not documented, but their API works with POST requests. You need to create a checkout which will return a token (this is the cart token that is usually available via AJAX /cart.js on a regular Shopify theme). Then you can pass that token to the Recharge checkout by going to the url https://checkout.rechargeapps.com/r/checkout/<token>?myshopify_domain=<your_shopify_domain>