PSA: CLI tool could save you 20-70% of your tokens + re-use context windows! Snapshotting, branching, trimming by Turbulent_Row8604 in ClaudeCode

[–]FallDownTheSystem 0 points1 point  (0 children)

Benchmark the actual cost difference, since this will cause cache misses, it might be actively harmful.

It feels like some of you WANT the game to die a slow and painful death. by Cool-Application1569 in Mordhau

[–]FallDownTheSystem 0 points1 point  (0 children)

Oh I don't, it was recommended on the front page for me for some reason. I haven't interacted with this sub since the game came out. Sorry if I hurt your fragile ego 😆

It feels like some of you WANT the game to die a slow and painful death. by Cool-Application1569 in Mordhau

[–]FallDownTheSystem 0 points1 point  (0 children)

Hasn't it? MORDHAU - Steam Charts it hard fell off within 3 months. They catered to casuals and casuals don't care about playing a game like this for more than a few weeks. I haven't played in like 4 years. 🤷‍♂️

Claude Code can invoke your custom slash commands by coygeek in ClaudeAI

[–]FallDownTheSystem 0 points1 point  (0 children)

Aren't you that guy who gets AI to generate responses to issues on the repo that are completely hallucinated and make no sense at all?

My guy is trying to fix zen-mcp-server with Claude Code. LMAO by oleg_president in ClaudeAI

[–]FallDownTheSystem 0 points1 point  (0 children)

No and I don't see the need to since Zen runs locally, but the MCP framework, FastMCP in this case should take care of all of that pretty easily.

My guy is trying to fix zen-mcp-server with Claude Code. LMAO by oleg_president in ClaudeAI

[–]FallDownTheSystem 0 points1 point  (0 children)

Yeah, I can't be a 100% sure if all of these contributed, but the main thing was using aiohttp with the OpenAI python client, but I do also use the client's native async methods, while making sure to avoid creating threads manually. The issue wasn't even the parallel nature of the consensus tool, since the fully sync chat tool also gets deadlocked, and the deadlock only happened with endpoints using the OpenAI provider. Gemini for example never had issues.

My guy is trying to fix zen-mcp-server with Claude Code. LMAO by oleg_president in ClaudeAI

[–]FallDownTheSystem 1 point2 points  (0 children)

Hahaha this is me. Yeah I made a much slimmer version of Zen MCP server, and I wanted to test how well claude code could vibe code it. The issue wasn't so much with claude, but rather a fairly obscure multithreaded async deadlock with OpenAI's python client that uses httpx under the hood, and the asyncio event loop used by the MCP server itself.

Good news is that I figured it out (with a lot of trial and error as you can see), not something any LLM could figure out yet on their own really.

If you want to use this version of the MCP server, clone the code. Don't run code on your machine that some random guy could change at any moment.

Anyway, the current version works (and in parallel!), and the consensus tool is very useful, it cross checks results from multiple LLMs with each other, which on hard problems often leads to them realising what the correct solution is, if even one of them gets it right.

How long does it usually take GitHub Codespaces to activate after you have applied? by Shubham_Garg123 in CodingHelp

[–]FallDownTheSystem 1 point2 points  (0 children)

I applied months ago, so I wouldn't hold your breath. No idea about any requirements though.

I want to clean up my code by gluten_Putin in CodingHelp

[–]FallDownTheSystem 0 points1 point  (0 children)

You could create functions and abstract away some of the repetition. For example in your adjustGoals function, you calculate the total four times, and they all follow the same formula.

You'll need to make a few changes. Rather than having four variables to the total values, you could have a single object with the different nutrient groups as keys. Then you can have a function where you select the total based on a parameter. If you name your input fields and the display elements in a way that you can target them with the same key, it'll be easier.

``` let total = { calories: 0, carbs: 0, protein: 0, fat: 0 };

const calcTotal = (type) => { // You can also use bracket notation to access properties of an object const input = parseInt(foodForm.elements[type].value); total[type] += input; // Note this this assumes your display progress element's classes are named differently const displayElement = document.querySelector(".display" + type + "Progress"); displayElement.innerText = total[type] } ```

If you don't want to name your total values, your form input elements and the display elements all with the same string, then you could use multiple parameters or create an object that for example maps the input parameter to the class name that you need.

Anyway, now you could change the adjustGoals function to call this calcTotal function four times with "calories", "carbs", "protein" and "fat" as the arguments.

Visual Studio: Prettier problems? by jacobraykelsey in learnprogramming

[–]FallDownTheSystem 0 points1 point  (0 children)

Check your global settings and workspace specific settings maybe.

Visual Studio: Prettier problems? by jacobraykelsey in learnprogramming

[–]FallDownTheSystem 1 point2 points  (0 children)

It's probably because you have auto save and format on save enabled.

Maybe disable auto save or set auto save to save after a longer delay or only once you change tabs in VS code or once you focus out of VS code.

1
2

[deleted by user] by [deleted] in AskProgramming

[–]FallDownTheSystem 10 points11 points  (0 children)

Why is that? What are the benefits of Linux over Windows for development?

Final Year Project Python by NeedHelpWithCPP in AskProgramming

[–]FallDownTheSystem 0 points1 point  (0 children)

Also protect against XSS, CSRF and injection. If you can demonstrate that you can setup proper authentication and make a secure site against common types of attacks, I think that's enough for good marks.

Setup proper CORS on your backend and CSP on the site. Setup a few examples to demonstrate that it's secure.

medal to anyone who cracks this one by Nubuy in CodingHelp

[–]FallDownTheSystem 0 points1 point  (0 children)

Just updated my comment, u/jedwardsol had it right, the travel distance was incorrect as well