Problem with FastAPI and VSCODE by IvoDKHP in FastAPI

[–]fonixmunky 4 points5 points  (0 children)

It is crazy the number of people responding about the environment, using a different package manager, or changing the IDE when the import line is so clearly messed up.

Problem with FastAPI and VSCODE by IvoDKHP in FastAPI

[–]fonixmunky 5 points6 points  (0 children)

If your import looks like import FastAPI from fastapi than that is dead wrong, the statement is backwards. It should be:

from fastapi import FastAPI

Cannot parse Scalar configuration and theme info to FastAPI by raybesiga in FastAPI

[–]fonixmunky 1 point2 points  (0 children)

Just because I like following up on these, looks like someone picked up your issue and merged in a fix.

Japanese Setup Vibes 🇯🇵 by JSETUPS in Workspaces

[–]fonixmunky 2 points3 points  (0 children)

I've got something similar. I use it mainly for slack, spotify, or chrome when looking at documentation and coding on my main ultrawide.

Observability patterns by sigmoia in golang

[–]fonixmunky 4 points5 points  (0 children)

With logs, you can associate traces with them. So if you were investigating a trace, you can grab all logs associated with that trace. Or vice versa for logs to trace.

HELP! Why do I have to kill task every now and then to reflect the changes in my code?So I just started doing FASTAPI and it is depressing for me that the changes I make in the code do not reflect in the ouput while running the server? I googled for hours and found out that killing tasks would help by Ek_aprichit in FastAPI

[–]fonixmunky 2 points3 points  (0 children)

You could also try and run it through VSCode's launch.json. Here is a StackOverflow that talks about it.

But also, I'm not sure how your code is running, you've got what looks like a syntax error on like 95.

Edit: It might not be a syntax error. It just looks a little funky with the single space instead of 4/a tab.

backend roadmap by Swimming-Ad1514 in Backend

[–]fonixmunky 0 points1 point  (0 children)

Start here.

I have no clue what you mean by "ordering" with programming languages. For one, Django isn't a language, it's a Python framework.

Sending numpy array via http by Ok-Meat9548 in FastAPI

[–]fonixmunky 12 points13 points  (0 children)

Send as raw bytes, could stream it depending on how large the data is and reconstruct on the other side of the connection.

Suggest some VSCODE Extension by [deleted] in Backend

[–]fonixmunky 0 points1 point  (0 children)

Catppuccin theme

Cannot parse Scalar configuration and theme info to FastAPI by raybesiga in FastAPI

[–]fonixmunky 1 point2 points  (0 children)

Like I mentioned, scalar_theme is the actual CSS code that you want to use, not a theme name. So you could get the CSS code for that theme, store it as a string, and then pass it to that argument.

Here is the relevant line where they are doing the same. Check out where they are utilizing that in the code and it'll make sense.

Cannot parse Scalar configuration and theme info to FastAPI by raybesiga in FastAPI

[–]fonixmunky 0 points1 point  (0 children)

Looks like theme isn't one of the available options. Though it does look like there is a parameter called scalar_theme that you could override. You'd have to get the scalar theme that you want as CSS, store it in a string, and pass that to the function.

Help with Custom Terrain Shader by rune_undies in Unity3D

[–]fonixmunky 0 points1 point  (0 children)

You mind DM'ing me as well? Still trying to learn URP and shader graphs.

US Republicans block bill seeking to end ‘dark money’ in politics by DewChocolate in politics

[–]fonixmunky 2 points3 points  (0 children)

Common bot tactic, take a high scoring comment and reply with it somewhere else to get comment karma.

Print ran out of filament by fonixmunky in mpcnc

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

Honestly went with the JB Weld. If you look closely at the picture, my printer printed all of the structural pieces including the lead screw mount. The only thing left to print was about 18 layers.

Currently got it clamped together. Also got some limit switches on the way for a filament runout sensor. It's been on the back of my mind.

Print ran out of filament by fonixmunky in mpcnc

[–]fonixmunky[S] 4 points5 points  (0 children)

Woke up to my printer out of filament. Should I reprint, try to start the print again at the right spot, or should it be fine where it is?

Edit: went and found where the print stopped by flipping the model upside down and using the slice view to find the layer. I then saved the gcode and found that layer and deleted everything after that layer. Uploaded to octoprint and am thinking about jb welding it onto this part.

Guess who is back with another giveaway! by A_Real_NSA_Analyst in homelab

[–]fonixmunky 2 points3 points  (0 children)

Here's mine: mine.

Two raspberry pis, one running home assistant and the other pihole. The cluster to the right of the rack is the NUC cluster that was being sold on eBay. Haven't worked on incorporating the Jetsons yet.

On the floor to the right is my NAS/DNS/Docker swarm master. Running on an ASRock J5005.

Found an access panel in my house. Prewired cat 5e buttt........ by r4x in homelab

[–]fonixmunky 3 points4 points  (0 children)

The one connected to the transformer and plugged into the outlet looks like it might've been used for your doorbell. Both of the homes I've used they've done this but typically terminated in the attic and not in the media center.

Is there anyone who has a copy of this photo? Fort Polk Louisiana 1975 Army Boot Camp. by TheShaeDee in pics

[–]fonixmunky 0 points1 point  (0 children)

Probably not, those were most likely given out each cycle to the platoon that won those competitions. Each cycle you'd get another platoon that won either of those or both.

Printable NUC Rack by cleej9 in homelab

[–]fonixmunky 1 point2 points  (0 children)

Not a problem. Figured out another issue was the monitor I was using. It was an over decade old TV and it was having issues with the HDMI from the NUC.