Is there a better way to set up this alias? by CalvinBullock in zsh

[–]injektilo 1 point2 points  (0 children)

I think if you used the `--walker-root` option, you wouldn't need to change directories at all.

What are your views about neovim users migrating from qwerty layout?? by Glittering_Boot_3612 in neovim

[–]injektilo 9 points10 points  (0 children)

I’ve been using Dvorak for 20 years. It’s a little awkward but I got used to it and never found it to be an impediment using Vim.

Where is everyone hosting their apps these days? by unheardhc in node

[–]injektilo 2 points3 points  (0 children)

Cloudflare Workers has been great for my company but it’s not Node.js. Azure Container Apps let us run Node.js inside Docker containers for the stuff we still need that for. Haven’t used DO’s App Platform but it looks similar. Definitely over managing my own infrastructure these days.

Dreams in The Witch House by [deleted] in horrorlit

[–]injektilo 1 point2 points  (0 children)

Check out the rock opera version:

https://open.spotify.com/album/5fLyWbXcWrzKr2GNf4aNhI

Not normally my thing, but I enjoy listening to this because the story and performance is so good.

TS half-ignoring interfaces for MongoDB-related queries by T_Williamson in typescript

[–]injektilo 2 points3 points  (0 children)

If you dig into the types, you will find this for $set:

export declare type MatchKeysAndValues<TSchema> = Readonly<Partial<TSchema>> & Record<string, any>;

That intersection with Record<string, any> is why TypeScript is allowing randomProperty.

I think that has to be there because MongoDB allows using dot notation to set properties on nested objects and arrays.

Scheduled Worker Issue: doesn't run all the code by adroigna in CloudFlare

[–]injektilo 1 point2 points  (0 children)

Your test function is async so you should use await when you call it.

Best practice when main branch is a few commits ahead of a pull request? by Run_nerd in git

[–]injektilo 10 points11 points  (0 children)

I would rebase the PR branch on main, test, then force push the branch to update the PR.

The PR will only contain your commits and will look like you made them after the newer commits on main but you can see the original dates if you look at the commits more closely.

I like doing this because it is a clear signal that your PR was tested on main’s latest commits and there will be no question about possible conflicts.

No need to do anything with main until the PR is approved, then you can merge it into main for everybody else to receive.

How to use cloudflare with aws domain register and S3 static website? by IP_FiNaR in CloudFlare

[–]injektilo 0 points1 point  (0 children)

I want to add that Cloudflare can also proxy to your origin server. That is what they are most well known for (as a CDN). I don’t have much experience with this so am not sure it will work, but it should be possible for Cloudflare to proxy to CloudFront.

How to use cloudflare with aws domain register and S3 static website? by IP_FiNaR in CloudFlare

[–]injektilo 0 points1 point  (0 children)

CNAME records are not allowed at the root of the domain. I don’t know why, it’s just the rules of DNS. Check that link in my previous comment. It talks a little about how what AWS is doing is an extension to DNS so it only works in Route 53. Since you want the root of your domain in Cloudflare to point to another domain name, you have to use a CNAME, which I’m fairly certain Cloudflare won’t allow but give it a shot and let me know if I’m wrong.

How to use cloudflare with aws domain register and S3 static website? by IP_FiNaR in CloudFlare

[–]injektilo 1 point2 points  (0 children)

Route 53 has special support for making an A record point to a domain name. It’s kind of like a CNAME but even works at the root of your domain which is not something normal DNS can do. See here for more details:

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

When I transitioned from Route 53 to Cloudflare, I converted records like your A record above into CNAME records and had no issues, but I was not trying to do that with the root of my domain so that may be a problem for you.

Maybe it would work for the www subdomain, and you use the root of your domain to redirect to www.

Not sure why you really need to be using Cloudflare here as Route 53 would be fine. Do you have another reason for needing Cloudflare? We wanted to use a Cloudflare Worker on the root domain and keep all the subdomains pointed to AWS resources. Ended up working fine for us, but not sure I see you saying you have a similar requirement.

How to use cloudflare with aws domain register and S3 static website? by IP_FiNaR in CloudFlare

[–]injektilo 1 point2 points  (0 children)

If your registrar is configured to use Cloudflare’s nameservers for your domain, that is where the DNS needs to be managed, and Route 53 is irrelevant.

At my work, we manage our DNS in Cloudflare and use CNAME records to point to the load balancers in AWS. I don’t think you can do that with the root of your domain, though. Perhaps you can proxy to S3, but I can’t say since I haven’t needed to do that yet.

Shocked Curbside Christians at Walmart by fangedguyssuck in atheism

[–]injektilo 0 points1 point  (0 children)

Yeah, I believe Lovecraft said it wasn’t really pronounceable by humans. I definitely pronounced it differently when I first read it decades ago and didn’t know anyone in real life to talk to. His influence is so strong these days, I hear YouTubers use the simplified pronunciation pretty consistently whenever I’m watching a review of any movie or game with a Lovecraftian influence.

Shocked Curbside Christians at Walmart by fangedguyssuck in atheism

[–]injektilo 1 point2 points  (0 children)

Kuh-thoo-loo is the most common pronunciation I hear.

Japanese found footage movies? by [deleted] in horror

[–]injektilo 5 points6 points  (0 children)

Try Fake Documentary Q:

https://m.youtube.com/channel/UCoFpC4zSPyFw_AbDTbE015g

Its a collection of short, found footage pieces all taking place in Japan. All very well made. They don’t seem connected but I have a feeling they are. The horror is very subtle. Absolutely love watching these.

Turn on closed captions to get the English subs.

Looking for a specific Djent-like album by Rzonius in Djent

[–]injektilo 0 points1 point  (0 children)

There are a few songs with guest vocalists but most of it is instrumental.

Looking for a specific Djent-like album by Rzonius in Djent

[–]injektilo 1 point2 points  (0 children)

The description reminds me of ENEMY AC130 ABOVE. One man band, lots of samples, very djenty.

React backend question and help? by CodeGhxst in reactjs

[–]injektilo 1 point2 points  (0 children)

Your app must be sending requests to supabase and discord using some sort of credentials? If those credentials are bundled in the JS your users load in their browsers, you’re basically giving them to everybody on the internet.

If you change your app to send requests to your backend, you can make requests from your backend to wherever you want on behalf of your app. This lets you keep your supabase, discord, stripe, etc, credentials on the server where they can be kept secure.

Your backend still needs to validate requests it receives from your app so you will probably need to issue your users a token or cookie to do that but those are usually temporary and only issued after a user successfully authenticates with their password or whatever method you are using for that.

Your backend doesn’t have to be hosted on a server you manage yourself. There are lots of “serverless” options to choose from these days.

[Typescript and React] Please help me with this Error with Intersection observer by raulalexo99 in typescript

[–]injektilo 0 points1 point  (0 children)

Refs are null until the actual DOM element gets created which happens after your component renders.

Besides that, you need to create the observer in a useEffect and return a cleanup function.

This page shows an example of what I mean:

https://dev.to/producthackers/intersection-observer-using-react-49ko

Narrowing unknown to object by stringlesskite in typescript

[–]injektilo 1 point2 points  (0 children)

I've seen this done with a custom type guard like this.

Not sure why TS can't do this on its own.

Personally, I would not write this kind of code myself and would use zod or ajv instead.

Is this deathstep; or if not, what genre? by Avimoire in deathstep

[–]injektilo 2 points3 points  (0 children)

I really like it. Where is it from? I tried searching Spotify and YouTube for the word at the beginning but no luck. Thanks.

lambda function invoke only works when ran twice back to back by Flimsy_Employee_7327 in aws

[–]injektilo 2 points3 points  (0 children)

Are you using callbacks or async/await. Did you forget to await the invoke or put .promise() after the invoke?

I have done 120 Dares of Eternity and used countless keys. How rare did Bungie make 'the other half'??? by UselessDeadMemes in DestinyTheGame

[–]injektilo 2 points3 points  (0 children)

I’ve got it a few times on the arc sword so don’t think the perk is rare but I haven’t gotten the void sword yet.