HNHacker News
TopNewBestAskShowJobs

CGamesPlay

8,742 karma · joined April 2, 2009

https://cgamesplay.com/

[ my public key: https://keybase.io/cgamesplay; my proof: https://keybase.io/cgamesplay/sigs/GtbWedLQcajnhwIFcwX1AsuUul7jHmox7E_MCW6PHlw ]

submissionscomments
CGamesPlay··on Copy Fail
> if your model is that linux is just about single-user desktops, this local exploit isn't too bad.

For example, if you have passwordless sudo, you've already got a widely known LPE vulnerability lurking on your system.

CGamesPlay··on Copy Fail
It's worth pointing out that you cannot, definitionally, get "real UID 0" in a "rootless" container, because then it wouldn't be a rootless container. This is relevant because this exploit doesn't claim to be able to bypass user namespaces, and that getting "real UID 0" would be a different exploit.
CGamesPlay··on Copy Fail
Kubernetes 1.33 switches to user namespaces enabled by default, which I imagine is the same underlying mechanism that rootless Podman uses. `hostUsers: false` is the way to ensure that root in the pod is root on the host. It's trivial for a real (unmapped) root to escape a Kubernetes pod.
CGamesPlay··on Period tracking app, Flo, found to be selling user data to Meta
It doesn’t? You could easily install the tracker on the client app, no need to do it server side. In fact I bet the app in question (Flo) was doing the upload to Meta client-side.
CGamesPlay··on Changes to GitHub Copilot individual plans
Claude Code doesn't have an option to use Opus 4.6 any more for me. It was great, but I guess now I have to use it half as much or upgrade my subscription again.
CGamesPlay··on I made a terminal pager
Didn't know that! I tried it and it doesn't work for me, sadly. Test case: `seq 1 100 | bat --pager=builtin` Result: immediate exit, no output printed at all.

https://github.com/sharkdp/bat/issues/1053

CGamesPlay··on I made a terminal pager
Realistically, I will be reviewing a diff, see a hunk I don’t like, change it, and want to see the change back in less. So saving my scroll offset would accomplish my goal. I guess I should add that I want to be able to quit as well?

Like I said, fzf does this. Bind a key to an action that effectively changes the file from stdin to a different command that it runs, while preserving view state.

CGamesPlay··on I made a terminal pager
Bat just uses less internally. And it deliberately breaks less’ handling of ^C, annoyingly.
CGamesPlay··on Arguing with Agents
Is there a name for this style of writing? Where it's composed exclusively of simple sentences. Short and punchy.

Paragraphs with just a single sentence.

I know it's associated with LLM writing. This article probably wasn't written by an LLM. But still. It has a kind of rhythm to it. Like poetry. But poetry designed to put me to sleep.

CGamesPlay··on I made a terminal pager
I am definitely waiting for a "modern less replacement" in the same vein as fd, sd, fzf, and the rest of the under-20yo cli crew. I get that "less" is reasonably maintained still.

I think the killer feature for me would be refresh. I get that this can't work for piped input, but I want `git diff` to show in a pager with a refresh button that holds my place. fzf supports both refresh and piped input, so perhaps there's some ideas there that could be leveraged.

CGamesPlay··on All elementary functions from a single binary operator
I made a fun marimo notebook to try and derive these myself. I structured each cell in order based on the diagram at the end of the paper. It uses Sympy to determine if the function is correct or not.

https://gist.github.com/CGamesPlay/9d1fd0a9a3bd432e77c075fb8...

CGamesPlay··on Filing the corners off my MacBooks
That cuts it by about 90%. But as others have said, the default US plug doesn't ship with a ground pin (though the extended cord does IIRC).
CGamesPlay··on Filing the corners off my MacBooks
Oh is that why it happens? Was wondering why the spot directly under my wrist was pitted into a sawblade. I also filed it, though just enough to remove the pitting, nothing like the OP did.

It's easy for me to feel the mains frequency while gently rubbing the top surface of the MacBook while it's plugged in. Really feels unsafe, but neither me nor the computer have suffered any serious injuries yet.

CGamesPlay··on I still prefer MCP over skills
Can you clarify what exactly you mean? Skills are markdown files, so they definitely can't call APIs or CLIs. Are you saying that a skill can tell the agent to use curl to call web APIs? Or something different?
CGamesPlay··on Axios compromised on NPM – Malicious versions drop remote access trojan
The packages that are actually compromised are yanked, but I assume you're talking about a scenario more like log4shell. In that case, you can just disable the config to install the update, then re-enable in 7 days. Given that compromised packages are uploaded all the time and zero-day vulnerabilities are comparatively less common, I'd say it's the right call.
CGamesPlay··on Neovim 0.12.0
What are you doing with ! that requires this? Some alternatives I can think of depending on the use case are ^Z or :term.
CGamesPlay··on The EU still wants to scan your private messages and photos
I am always curious when I see these kinds of movement. It seems abundantly clear that the options on any vote in any legislature for a proposed bill are always “yes” and “ask me later”. So when I see things like Fight Chat Control, it feels like the call is “we must tell our legislators to press the ask later button!”

Why? Why has your approach not been toward passing active legislation that protects these rights going forward? Genuinely curious. I understand that finding and pressing the “don’t ask again” button is always harder, but I don’t understand why “we punted on this decision!” is a celebratory moment.

CGamesPlay··on PC Gamer recommends RSS readers in a 37mb article that just keeps downloading
Except, this wasn't a "cold start" test. It was a "leave the page open and watch subsequent requests" test. Cache absolutely applies here.
CGamesPlay··on PC Gamer recommends RSS readers in a 37mb article that just keeps downloading
Disabling cache and then complaining that the bandwidth usage never stops increasing is certainly a take, but I'm not sure you can meaningfully draw any conclusions from it.
CGamesPlay··on PC Gamer recommends RSS readers in a 37mb article that just keeps downloading
It does when the "disable caches" checkbox is checked, as it is in that screenshot.
CGamesPlay··on SSH has no Host header
SSH configs support wildcards, so if you couple it with a ProxyCommand you can an arbitrary level of dynamism for a host pattern (like *.exe.dev).

But yeah, everything is a trade-off.

CGamesPlay··on SSH has no Host header
Using nonstandard ports would break the `ssh foo.exe.dev` pattern.

This could also have been solved by requiring users to customize their SSH config (coder does this once per machine, and it applies to all workspaces), but I guess the exe.dev guys are going for a "zero-config, works anywhere" experience.

CGamesPlay··on Reviewing Large Changes with Jujutsu
This would avoid dealing with merge conflicts when the PR changes, which is nice.
CGamesPlay··on LLMs can be exhausting
LLM coding has made programming feel like playing Factorio to me. It's simultaneously much more addictive and much more strenuous than it's even been for me before. Each commit feels like moving to a new link in the supply chain, but each link is imperfect so I have to drop back down to debug them. At the end of a long evening, "one more assembly line" and "one more prompt" feel exactly the same.
CGamesPlay··on Glassworm is back: A new wave of invisible Unicode attacks hits repositories
Appears not to. https://claude.ai/share/ac070cf5-0034-4f3c-9a8c-1c43a58eea36

Claude’s analysis seems solid here based on reading the snippets it tested.

A purpose-built linter could be cross-language, it’s pretty reasonable to blanket ban these characters entirely, or at least allowlist them.

CGamesPlay··on Launching the Claude Partner Network
I hope it’s at least a little tricky, since Claude was released only 3 years ago. That said, I would not be surprised to see companies asking for 10 years experience, despite that inconvenient truth.
CGamesPlay··on Show HN: Swarm – Program a colony of 200 ants using a custom assembly language
I published my submission and all supporting information here, in case anyone is curious! https://github.com/CGamesPlay/moment-swarm
CGamesPlay··on Prompt-caching – auto-injects Anthropic cache breakpoints (90% token savings)
Claude subscriptions (strangely) have a Sonnet limit which is lower than the general model limit. Using Sonnet counts against both limits, using Opus only the general limit. So the subscriptions are discouraging Sonnet use as well.
CGamesPlay··on Show HN: Swarm – Program a colony of 200 ants using a custom assembly language
That was fun! Will there be a blog post / showcase or anything? I came in 9th, and will definitely be writing a blog post. I did not write a single line of antssembly during the contest!
CGamesPlay··on Switch to Claude without starting over
Yeah, but then they went and added "memories" and in particular automatic memory management, and now it isn't a clean slate each time. And that's exactly what this is importing: those automatically curated memories that make the chat bot "feel like" it knows you.
← PreviousPage 4 of 34Next →