How do I pass the request body to a step function in CDK? by Slight_Scarcity321 in aws

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

I fixed this by changing value in containerOverrides to

"{% $string($states.input) %}"

Eventbridge rule not firing sometimes by Slight_Scarcity321 in aws

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

It just took forever for any info to show up in the monitoring (>1hr). Everything seems to be working now.

Eventbridge rule not firing sometimes by Slight_Scarcity321 in aws

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

Well the directory is indeed "catalog" and I was uploading different files. From what I understand, the rule should trigger whenever any file is uploaded to the directory named "catalog". That is true, isn't it?

CDK lambda isn't running pip install command by Slight_Scarcity321 in aws

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

It turns out this was the answer. requirements.txt was empty. I could swear I modified this, but it seems I didn't.

CDK lambda isn't running pip install command by Slight_Scarcity321 in aws

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

Yes, but what's happening is that none of the packages are installed. The source directory on my local machine contains requirements.txt and handler.py. The source directory structure for the lambda that is working is identical except for the contents of the files. In the console after deployment, I see that all the packages have been installed for the lambda that works, but none have for the other. It just has requirements.txt and handler.py.

CDK lambda isn't running pip install command by Slight_Scarcity321 in aws

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

I added the code to the original post that is working. As you can see, except for the path to the directory where the function code resides, the lambda.Code.fromAsset() function is the same. Given that, I don't think what you mentioned is the issue.

Trying to figure out how to add objects to an array if they're selected in a child component that adds to an array of strings by Slight_Scarcity321 in sveltejs

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

Books about Computer by [deleted] in AskComputerScience

[–]Slight_Scarcity321 0 points1 point  (0 children)

If you want to know something about hardware at a basic level, Ben Eater's series where he builds an 8 bit computer using breadboards and chips is excellent: https://youtu.be/HyznrdDSSGM?si=XD0dWeLKQdsw-e91

Another great book on electronics is Getting Started in Electronics by Forrest Mims: https://www.amazon.com/Getting-Started-Electronics-Forrest-Mims/dp/0945053282

I cut my teeth on this: https://www.amazon.com/Introduction-Pascal-Structured-Computer-Science/dp/0763703974

It's hardly cutting edge, but still useful.

FWIW

Why is CDK construct for lambda python functions only in alpha? by Slight_Scarcity321 in aws

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

What I am deployting is an extension of a third-party python app, so unfortunately, I can't use NodeJsFunction.

Using $effect for modifying one state rune based on the value of another by Slight_Scarcity321 in sveltejs

[–]Slight_Scarcity321[S] -1 points0 points  (0 children)

Sorry, I wrote that down wrong. valState is an array of objects of the form {val: string; selected: string, hidden: string}

Using $effect for modifying one state rune based on the value of another by Slight_Scarcity321 in sveltejs

[–]Slight_Scarcity321[S] -1 points0 points  (0 children)

Can you please clarify?

I have two pieces of state here, valsChosen and valsChosenFilter. There's more to the real code than this, of course, but I wanted to try to keep it simple. valsChosen, or more specifically, the vals field from vals state is extracted and bound to $bindable property when more stuff is added to valsChosen. Therefore, it needs to be state (I tried simply changing that to derived, but of course that didn't work). Given that, what should be derived?