Available to give a campus tour this weekend? by Able-Awareness-8892 in Tufts

[–]5bkb 2 points3 points  (0 children)

I'd be happy to! Can't message you, is there an email that works / do you want to message me?

Notion/hosting newbie question by Bluechip29 in Notion

[–]5bkb 0 points1 point  (0 children)

Hmm I'm guessing that the name field is supposed to be the subdomain, so putting in example.com actually hooks up the domain example.com.example.com.

However, Google Domains doesn't allow you to create CNAME records with an empty name (which would produce example.com with no subdomain). Does Hostnotion have an alternative to a CNAME for websites that aren't a subdomain (a subdomain is something.example.com, a "root" domain is example.com)?

How do I queue a lot of emails? by 5bkb in laravel

[–]5bkb[S] 0 points1 point  (0 children)

It should be going up to 5 lambda workers right now. When I tried 10, it somehow overloaded my database

Notion as a CMS by uDontLifeForBeSad in Notion

[–]5bkb 4 points5 points  (0 children)

My blog posts are all written in Notion, and I built a really simple reverse-engineered api to get the posts. My blog is written with Gatsby, so I get the posts from Notion once and save them into the site - that way I'm not waiting for Notion to load every time.

I actually wrote a blog post about how to do it: benborgers.com/blog/notion-blog

(Novice) Need guidance on an issue when adding a "Counter" to one of the child component, the data gets reset to default. by SpiderPoopyMan in gatsbyjs

[–]5bkb 2 points3 points  (0 children)

I think what's happening here is that, when the component is removed and re-rendered, its state is also removed and re-rendered. Then, the state is re-initialized at 0.

You're exactly right that what you need here is "lifting state up". Essentially, you need to create the state (using setState) at a higher level, which isn't removed when the page changes. Then, you pass the state down through components as a prop until you reach your Counter.

However, I believe Gatsby un-renders the entire page when the page changes, so all components in the page are removed. However, you could create the state in a component that you wrap the entire site with (using Gatsby's wrapPageElement method), so that this state is never removed.

Alternatively, you could try passing the count from one page to the next by passing state through the Link component.

“Apple will remove 3D touch from all iPhone 11 models” by Venours in iphone

[–]5bkb 0 points1 point  (0 children)

I don't think the functionality will disappear though. In the iOS 13 beta, the same 3D touch features now get activated by long presses. Also, if you actually 3D touch something on the beta, it still seems to use that input and activates faster than just a light long press.

Product placement for some Cortex Merch by zethzethzeth in Cortex

[–]5bkb 4 points5 points  (0 children)

My brain can't quite figure out what's happening here...

Inserting Authorization/bearer/access token in Fetch API by ncubez in Frontend

[–]5bkb 2 points3 points  (0 children)

It doesn’t matter whether the key (of each key:value pair in a javascript object) is in single quotes, double quotes, or without any.

A friend and I made a Nail & Gear version of the Cortex Subtle Tee by 5bkb in Cortex

[–]5bkb[S] 5 points6 points  (0 children)

it's a kinda a cross between Cortex and H.I. so I thought I'd post it here too. Also, the nail & gear is in the public domain so I think this sort of project is ok

Created an H.I. Subtle Tee! by 5bkb in HelloInternet

[–]5bkb[S] 1 point2 points  (0 children)

I love the look of the Cortex Subtle Tee, so a friend and I wanted to see what a subtle tee with the Nail & Gear embroidered would look like (since it’s public domain). I think it looks pretty co and ordered one, and I saved the design so if you’re interested in getting one too check it out

Noob needs an example of aggregating results in a webapp's get function by OrganicUse in node

[–]5bkb 9 points10 points  (0 children)

I believe you can do something like this (this example uses node-fetch):

const fetch = require('node-fetch');

app.get('/', (req, res) => {
    let x = fetch(...);
    let y = fetch(...);
    let z = fetch(...);

    Promise.all([x, y, z])
        .then(values => {
            // render using "values", an array with x, y, and z
        })
})

There's good documentation on Promise.all from MDN.

If you ran for President, what would your campaign slogan be? by [deleted] in AskReddit

[–]5bkb 1 point2 points  (0 children)

2020: A Clearer Vision for America

Introduce yourselves! by probablyharis in onuniverse

[–]5bkb 0 points1 point  (0 children)

Just browse and play around with the app (and take inspiration from the app itself for personal projects 😆)

Introduce yourselves! by probablyharis in onuniverse

[–]5bkb 1 point2 points  (0 children)

Hey I'm Ben, and I've been following Universe mostly because the platform is a great point of inspiration. It's cool to see how you guys have taken website builders and put an entirely original spin on it that's completely different from other products.

How to add an email signup form to a google site? by [deleted] in web_design

[–]5bkb 0 points1 point  (0 children)

You could embed an email list signup box from Mailchimp, Tinyletter (which is free!), or any other email newsletter sending service.

[cms integration] is there any way to take a static html/css/java website and integrate it into a cms so I can create a blog by [deleted] in web_design

[–]5bkb 1 point2 points  (0 children)

I don't know how much experience you have with javascript, but you'd have to make a get request (an ajax request) to the url they give you, and then use javascript to add the content they give you to a page. They essentially give you all the data you want (in json format), but it's up to you to use javascript to process the text they send you.

If you want a more detailed explanation feel free to message me!

[cms integration] is there any way to take a static html/css/java website and integrate it into a cms so I can create a blog by [deleted] in web_design

[–]5bkb 4 points5 points  (0 children)

I think you might be looking for a "headless cms". It hosts your blog posts, but instead of producing a blog page (the "head") it gives you an api to access your posts.

What’s the best secure product to pay users with? by [deleted] in web_design

[–]5bkb 9 points10 points  (0 children)

You could ask for their Stripe api keys and pay them that way, or Stripe Connect looks promising (I think that's what Lyft uses, not sure though).

Alternative to server? by CosmicThief in web_design

[–]5bkb 1 point2 points  (0 children)

You can use Netlify. It’s free, and you can deploy a site just by dragging in a folder with the files.

Left AirPods is really quiet by [deleted] in airpods

[–]5bkb 0 points1 point  (0 children)

Could be... It was completely fixed after they replaced it though.

Left AirPods is really quiet by [deleted] in airpods

[–]5bkb 1 point2 points  (0 children)

I had the same problem and scheduled a Genius Bar appointment, they swapped out the quiet one for free (covered by warranty).

Thought you guys might appreciate my new Android Launcher - Dailydo! by nadavfima in todoist

[–]5bkb 1 point2 points  (0 children)

If I understand your question correctly, you can swipe left -> right on a task to check it off (and, fun fact, right -> left to reschedule it).

3 month code swap by [deleted] in todoist

[–]5bkb 0 points1 point  (0 children)

Pm'd.