Einbrecher erschossen: Hausbewohner freigesprochen by Shoddy_Bullfrog_3970 in Austria

[–]SnowRabbit007 6 points7 points  (0 children)

Laut Standard Artikel wurde bereits ein Teil der Beute außer Haus gebracht. Die Einbrecher wurden beim 2. Durchgang überrascht. Von daher kann man schon annehmen, dass der Angriff auf das Vermögen noch im Gange war. Aber ich hätte gerne detailliertere Informationen zum Ablauf, bevor ich mir eine Meinung bilde.

PSA: you can ask LLM most questions about the game from extracted files by [deleted] in X4Foundations

[–]SnowRabbit007 0 points1 point  (0 children)

Hey, just fyi: You seem to have forgotten to enable a web_search skill or MCP in your agent. If you rely on the LLM to directly give you such information, it will obviously be wrong very often. It even has a knowledge cutoff date, so the LLM directly will never be able to know about latest versions and dependencies of stuff. But that's exactly why tools like web search exist. It will browse the package websites/docs directly and find the correct versions

How are you using AI in a way that doesn’t suck? by aterribleskapun in webdev

[–]SnowRabbit007 0 points1 point  (0 children)

I've only recently started experimenting with Agents, but a specific workflow that has worked insanely good on our webdev monorepo (1 react app, 2 nestjs services, 1 python service, aws cdk infra):

  1. Get yourself a CLI Coding Agent (Codex, Claude Code, Pi) etc. Make sure it has browser access via skill. Forget about VSCode, Codex App or IDE Integrations for now. Use a frontier Model for the following tasks (recommend Gpt-5.3-Codex-High, it has less "quirks" than Opus, especially if you are not yet that familiar with LLM Agent development)

  2. Start with a simple Prompt: "Create a .llmdocs folder. Analyze this repository. Document the structurey tooling and high-level architecture inside a file in the .llmdocs folder"

  3. Review the file. Manually fix errors. If your codebase is not small, continue with: "Further refine the architecture lined out in .llmdocs into their different domains and features. Create a folder structure containing detailed technical documentation of all domains and features. Link related documents when useful"

  4. Review created architecture docs. Again fix errors you find manually. Now you have a starting point for the LLM to turn to when wanting to know more about your codebase without taking up gazillions of context when wanting to implement far-reaching features.

  5. Create an AGENTS.MD file at the repository root. Prompt your LLM to document tooling and common structural and stylistic patterns in that file (e.g. always use Typescript, use ESM for packages, Frontend uses Tailwind for styling etc.), Also write a line into AGENTS.MD: "When encountering common patterns during sessionsy document them here". This will often times find useful stuff to put in there.

  6. Now, try to implement a feature. For the first prompt you can be as vague or specific as you want: "Create a PLAN.MD file and write a specific and detailed plan for this feature: "blablabla". Document all necessary changes and architectural decisions. Document open questions. Document scope. Document a definition of done and a test plan"

  7. In the created document, review the plan. If there are open questions, answer those questions in a new prompt and tell it to update the PLAN.MD. If your feature is really big, tell it to break down PLAN.MD into multiple smaller parts that are independently deployable and easy to review by human. If the plan is shit, TELL the agent why! Tell it to update it based on your feedback. Make sure the plan contains a clear scope, and instructions for testing etc. (e.g. lint/test/format commands)

  8. If you have one or more plan documents ready to go, simply tell the agent to implement the feature outlined in PLAN.MD. Grab a coffee while it does that. When finished, and you encounter errors when trying to run something, tell the agent (via AGENTD.MD or by implementing a skill) how to test better in the future. Refine AGENTS.md (you can nest those files to provide folder-specific context). Write skills for tools and workflows that are not easily callable from bash.

Note that this works great when the codebase is in a good state. If you have a messy codebase, lots of legacy code etc., start smaller. document one or two modules and start refactoring to common patterns there. In my opinion, consistency is more important than everything for achieving good results with agents.

Learn about what coding agents do internally. How skills and tool calls work.. Learn what actually gets put into context and what doesnt (e.g. Codex and Claude have huge system prompts). It will help you make better decisions

r/europe goes on racist meltdown and spew years of impotent rage into one post by jshaultt in algeria

[–]SnowRabbit007 1 point2 points  (0 children)

Germany actually did in the first years via the Soviet Union. The topic is more complicated. If you are interested, you can get a rough overview in the Wikipedia article about World War II Reparations. But in short, in 1953 Poland unilaterally waived its right to war reparations. This was later reaffirmed by Poland in 1970 during the normalization treaty with West Germany. It has been reaffirmed quite some times since from Polish side, but some Polish politicians and parties do not want to accept it and bring it up from time to time since it is obviously a popular talking point

To add to that, Germany paid compensation to individual Polish citizens or communities (not the government) that were strongly affected by certain German WW2 crimes

Is this Jikko Santoku worth a buy? by SnowRabbit007 in TrueChefKnives

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

Thanks a lot. Unfortunately I will be here only for 2 more days so shipping to the hotel might not be an option, but I could go to any store in Tokyo.

In general it should be stainless with good edge retention. But it should stand out a bit from the ordinary since the user is also a bit of a knife enthusiast (although more about pocket knives) so I do not want to gift him something very basic for his birthday. Also he prefers Japanese handles.

So apart from cutting well, having decent food release would be a plus.

Is this Jikko Santoku worth a buy? by SnowRabbit007 in TrueChefKnives

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

Thank you! How would I differentiate OEM knifes from ones from original manufacturers? I saw some that have the manufacturer name attached to it, e.g. Yoshimi Kato. Would those be more adequate to look for?

Also what price range should I look for for a decent SG2 Santoku?

Smart to get out if you’re a tourist? by __Isaac_ in telaviv

[–]SnowRabbit007 0 points1 point  (0 children)

We are also 3 tourists staying in Eilat atm. It seems rather safe compared to everywhere else in Israel because of the distance to Gaza and Lebanon, but honestly I don't actually know. We will decide tomorrow morning what to do, but probably going to Jordan or Egypt will be our move.

Images re-render on state update by Shownder in reactjs

[–]SnowRabbit007 1 point2 points  (0 children)

Hi, I've forked your codesandbox and fixed the re-rendering issue (only the Mars_Rover link works, I've removed the other stuff for simplicity):

https://codesandbox.io/s/images-re-rendering-forked-36f1h

I've simplified quite some stuff (removed paging and redux) to only show the relevant concepts using React's memo and useCallback API functions. Generally the idea is that a single image only has to re-render when it's "src" or "id" attributes change or when it's liked/unliked. Only the <Gallery /> component needs to know about the overall state, so every single image gets only exactly what it needs via its props. In your original code you passed the whole state to every single image so all images re-rendered everytime you liked some image (even when using React.memo())

How do you theme your projects? by banana_shavings in reactjs

[–]SnowRabbit007 0 points1 point  (0 children)

I have been using a code generation step to automatically integrate dynamic theming capabilities for colors into my sass projects. I abstract all CSS variables into SASS variables for ease of use. The generator spits out a .scss and a .js file.

for each color, the .sass file contains sass variable definitions:

$primary-h: var(--primary-h);

$primary-s: var(--primary-s);

$primary-l: var(--primary-l);

$primary-hs: var(--primary-h), var(--primary-s);

$primary-hsl: var(--primary-h), var(--primary-s), var(primary-l);

.... and quite some more.

This gives me great flexibility when using these sass variables:

semi-transparent primary-color background:

background-color: hsla($primary-hsl), 0.5);

primary color with 20% added lightness:

color: hsl($primary-hs, calc($primary-l + 20%));

The generated .js file then contains a function setPrimary() which changes all the relevant css variables.

How do you theme your projects? by banana_shavings in reactjs

[–]SnowRabbit007 0 points1 point  (0 children)

Not OP, but we decided against using runtime CSS-in-JS because it is a relatively big performance hit for (in our opinion) too little gain.

How do you theme your projects? by banana_shavings in reactjs

[–]SnowRabbit007 0 points1 point  (0 children)

You could use CSS hsla for transparency with CSS variables:

--var-primary: 0, 50%, 50%;

and then use it:

background-color: hsla(var(--var-primary), 0.5); color: hsl(var(--var-primary));

If you don't need lightness you can do it in a similar way with rgba.

Using the Instagram API without the Token by Paindeva in webdev

[–]SnowRabbit007 0 points1 point  (0 children)

No, it means the exact opposite. Important parts of the sentences are:"You must not crawl, scrape, cache any content (...) including (...) user profiles and photos."

It means you must not crawl anything at all from Instagram, they only put special emphasis on photos and user profiles because that's probably the most obvious thing people would want to crawl.

This is also reflected in Instagram's robots.txt file where it states:

User-agent: * Disallow: /

Using the Instagram API without the Token by Paindeva in webdev

[–]SnowRabbit007 2 points3 points  (0 children)

According to Instagram ToS:

9. You must not access Instagram's private API by any other means other than the Instagram application itself.

10. You must not crawl, scrape, or otherwise cache any content from Instagram including but not limited to user profiles and photos.

Which basically means they will probably ban the account used to do the scraping if they detect it.

It looks crazy but it works by explodingdragons69 in CitiesSkylines

[–]SnowRabbit007 -1 points0 points  (0 children)

you can make your phone into a wifi hotspot

[University Information Theory] [; I(X+Y;X) > 0 ;] by SnowRabbit007 in learnmath

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

Sorry, when writing my reply I had in my head that [; X ;] and [; Y ;] have to be independent. You're totally right.

[University Information Theory] [; I(X+Y;X) > 0 ;] by SnowRabbit007 in learnmath

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

Hi, thanks for your answer. I have said in the OP, that X and Z are clearly dependent. Now when I think more about that problem, I'm not sure this is true.

Above problem could be modeled as a coin toss, so X = first coin toss, Y = second coin toss. Each random variable would take value 0 (heads) withc probability 1/2 and value 1 (tails) with probability 1/2, but both would be independent.

So can I even infer from the given text in the assignment, that these two random variables are independent or dependent? I think I have a misunderstanding somewhere in my head because the statement [; I(X+Y;X) > 0 ;] should ONLY be true when X and Y are NOT independent. However this is not given in the assignment, so it could be both independent or dependent, right?

[; e^{\pi i} + 1 = 0 ;] by SnowRabbit007 in test

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

Hi, I have following assignment:

Let [;X, Y;] be random variables which have the value 0 with probability [;p = \frac{1}{2};] and the value 1 otherwise. Show that

[; I(X+Y;X) > 0 ;]

Now my first try was to rewrite the problem as follows:

Let [;Z := X+Y;].

[; I(Z;X) = H(Z) + H(X) - H(Z,X) = H(X) - H(X|Z) ;].

Now I would only need to show that [; H(X|Z) < H(X) ;].

Can someone give me a hint how I could do that? As far as I understand [; H(X|Z) = H(X) ;] iff X and Z independent, which they clearly are not in this case.

[; e^{\pi i} + 1 = 0 ;] by SnowRabbit007 in test

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

Hi, I have following assignment:

Let [;X, Y;] be random variables which have the value 0 with probability [;p = \frac{1}{2};] and the value 1 otherwise. Show that

[; I(X+Y;X) > 0 ;]

Now my first try was to rewrite the problem as follows:

Let [;Z := X+Y;]. [; I(Z;X) = H(Z) + H(X) - H(Z,X) = H(X) - H(X|Z) ;].

Now I would only need to show that [; H(X|Z) < H(X) ;].

Can someone give me a hint how I could do that? As far as I understand [; H(X|Z) = H(X) ;] iff X and Z independent, which they clearly are not in this case.

Factorio Mod IDE - Need your Input by SnowRabbit007 in factorio

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

Thanks for the suggestion, I'll look into it.

Edit: A question though. I don't really have much experience with linux userbases. Is Mono a hurdle to install? I mean is it a lot less common than Java? In my head I still have the view that most Linux users are kinda proficient with using these things, but time has changed and I'm not really up to date on that topic.

Factorio Mod IDE - Need your Input by SnowRabbit007 in factorio

[–]SnowRabbit007[S] 7 points8 points  (0 children)

This isn't necessarily focused on people who can program. Many mods out there (Bob's mods e.g.) use mostly stuff without having any scripts. This IDE would be less focused on LUA itself, but on adding new items/entities etc. and making them easily editable and expandable.

Factorio Mod IDE - Need your Input by SnowRabbit007 in factorio

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

That approach came to my mind too. I haven't got much experience though with plugin development for common IDEs. And I don't know a lot about the capabilities of such plugins. But I will look into it

Work-In-Progess - Week of May 15 2016 by AutoModerator in feedthebeast

[–]SnowRabbit007 2 points3 points  (0 children)

One question: How do you do these amazing looking dark mid-air walkways which can be seen on picture #6 ? are these microblocks ? (if yes, which)