Can you search a HTMLElement for a particular class?
Say I have a DOM model that has a collection of elements with class: class_1 and I use document.getElementsByClassName("class_1") to get an HTMLCollection of these elements.If I take the first element...
View ArticleAnswer by Connor for CollectionGroupQuery but limit search to subcollections...
@samthecodingman's answer is fantastic, but I think there's one more useful thing to add here. I used his answer to develop a helper function that streamlines building a query for this.You provide the...
View ArticleComment by Connor on How can I use an npm package's types without adding the...
Since posting, I've copied the types manually. For my desired API surface, it's ~10 files, which I don't consider too much of a pain. It could reasonably be completed with a pre-processing script. That...
View ArticleComment by Connor on How can I use an npm package's types without adding the...
@DougStevenson The size increase of the package and all the dependencies that have to come with it. I want something small with the minimum possible dependencies.
View ArticleIs there a standard C library for dynamic arrays?
One of the greatest things about Python is the flexibility of dynamic arrays (lists).It's so useful I find it hard to believe there isn't a library for this already included in C. This question...
View ArticleWhy can't I register a hub filter in my SignalR application?
I'm building a .NET 9 application that uses SignalR for realtime messaging. I want to validate incoming requests using a Filter. The following documentation indicates that I should do so by adding the...
View ArticleAnswer by Connor for Why can't I register a hub filter in my SignalR...
To fix this, you need to add the following import to your Program.cs file:using Microsoft.AspNetCore.SignalR;This adds the functionality you're trying to use.
View ArticleHow can you kill all queued and running Firebase Emulator functions?
I'm working with Firebase Emulators to test production code locally. To do this I need to load state from a file into Firestore. This works fine, but I'm having an issue because I have listeners on one...
View ArticleComment by Connor on How can you kill all queued and running Firebase...
Man, that sucks! Okay, thank you, well at least I know there's no official workaround/ approach now. I've taken to uploaded the state once per testing cycle and adding insta-return statements to the...
View ArticleWhy is my AWS CDK Stack failing for an unclear reason?
This is my stack:import * as cdk from "aws-cdk-lib";import { Code, Function, Runtime } from "aws-cdk-lib/aws-lambda";import { Construct } from "constructs";export class CdkImmersion2HelloCdkStack...
View ArticleComment by Connor on Why is my AWS CDK Stack failing for an unclear reason?
The lambda needs one apparently. It sets up a role for it which requires IAM. Does that sound right to you?
View ArticleCan you dynamically initialize stack memory to zero?
I have an integer array that's only useful in a single code block. I'd like to declare it and initialise it to zero on the stack to avoid the overhead of the heap.I'd like to do this dynamically and...
View ArticleComment by Connor on How to specify platform-specific dependences with Poetry?
Why does this work? Is it because you've specified a source in both instances?
View ArticleComment by Connor on Flutter: Container's color change when i add box shadow...
This doesn't work in 2024.
View ArticleComment by Connor on Do I need to move all my DNS records to Route 53 when I...
Yes, I have to I think, because Godaddy won't let me point at cloudfront.
View ArticleShould I use log.Fatalf in my main function?
I'm using Golang to write a script that produces a file. At the moment, I'm testing the process with the following code:func main() { var builder strings.Builder keys := []int{1, 2, 3, 4} for _, key :=...
View ArticleDo I need to move all my DNS records to Route 53 when I point Godaddy to...
I'm managing a website that is currently using Godaddy as its DNS provider. Godaddy can't point at a Cloud Front distribution, so I need to swap the DNS name servers to Route 53.I have MX records for...
View ArticleWhy can't I connect to my EC2 instance through AWS CloudFront?
I'm moving a WordPress site onto AWS. To do this, I've set up the following architecture:A single EC2 instance held in a target group with a database and WordPress installed on it.An Elastic Load...
View ArticleAnswer by Connor for Why can't I connect to my EC2 instance through AWS...
I resolved this issue by editing the General Settings of my CloudFront distribution and redeploying. I didn't have a CNAME record attached to my CloudFront distribution with my site's name on it.I...
View ArticleAnswer by Connor for How do I stop my AWS Security Group being invalid?
The issue is in the MyDBInstance. I had a reference to the Database security group: !Ref DatabaseSecurityGroup. But this returns the name of the group, not the ID, which is what's required.To fix this...
View Article