News for hackers. Stuff that matters.

rtuin

Re:The EPA Is Quietly Killing Its Web Archive on Monday October 26, 2026 @05:33PM (#50251327)
Wiping and rewriting history is straight from 1984 (novel). It's insane US let this happen.
Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @05:26AM (#50178021)
Did you successfully run a RCE test, or only a vulnerability check? So far all write-ups and PoC's i've found fail to "cash in" on the RCE part.
Re:Sonnet 5.5 on Monday September 28, 2026 @02:14PM (#49882092)
Any benchmarks other than computer use/agentic coding published yet? Curious to compare more broadly with other models
Re:Claude Managed Agents on Wednesday April 08, 2026 @03:08PM (#47694801)
Most definitely. Although I haven’t found an (F)OSS project that lets one easily ship [favorite harness SDK] to self-hosted platform yet.

Which projects are standing out in this space right now?

Re:Claude Sonnet 4 now supports 1M tokens of context on Tuesday August 12, 2025 @06:51PM (#44882689)
Quick tip when working with Claude Code and Git: When you're happy with an intermediate result, stage the changes by running `git add` (no commit). That makes it possible to always go back to the staged changes when Claude messes up. You can then just discard the unstaged changes and don't have to roll back to the latest commit.
Re:Cursor CLI on Thursday August 07, 2025 @07:00PM (#44831442)
It seems they haven’t implemented MCP client features in Cursor CLI yet
This type of service is becoming increasingly prevalent among European energy suppliers for their residential customers. Beyond providing a revenue stream for consumers this model aggregates distributed energy resources (home batteries, EV's, PV systems) into a one virtual power plant. This enables the storage of surplus energy generated during solar peaks and dispatch back to the grid during periods of high demand. I find it a fascinating domain to work in!
Totally irrelevant on the subject, but the screen recording in the article caught my attention: what tool does one use to create the screen recording with zoom and mouse tracking?
This reminds me of Winamp too.

As a teenager I used to fiddle with the visualization editor for hours. Good fun!

Otel seems complicated because different observability vendors make implementing observability super easy with their proprietary SDK’s, agents and API’s. This is what Otel wants to solve and I think the people behind it are doing a great job. Also kudos to grafana for adopting OpenTelemetry as a first class citizen of their ecosystem.

I’ve been pushing the use of Datadog for years but their pricing is out of control for anyone between mid size company and large enterprises. So as years passed and OpenTelemetry API’s and SDK’s stabilized it became our standard for application observability.

To be honest the documentation could be better overall and the onboarding docs differ per programming language, which is not ideal.

My current team is on a NodeJS/Typescript stack and we’ve created a set of packages and an example Grafana stack to get started with OpenTelemetry real quick. Maybe it’s useful to anyone here: https://github.com/zonneplan/open-telemetry-js

This seems like a great tool! I like how it "simply" works by putting a view on top of the actual table. This concept is widely used in the data engineering world (in dbt).

There must be an easier way to write migrations for pgroll though. I mean, JSON, really?

Re:The Impact of Jungle Music in 90s Video Game Development on Wednesday November 13, 2024 @03:34PM (#42129686)
What a nice writeup. I've listened to jungle and related styles on and off over the years but I wasn't aware the music had played such a big role in 90's game music!
Re:Optimizing Postgres table layout for maximum efficiency on Tuesday October 08, 2024 @03:05AM (#41774507)
This is interesting! Turning the values into arrays is not suitable for our base-tables, but might be for the several materialization tables we run.
Re:Optimizing Postgres table layout for maximum efficiency on Tuesday October 08, 2024 @03:00AM (#41774470)
I see your point. Some of our measurements are counters and interpolate missing data via certain rules. We store these interpolations in a separate table with exactly the same format and join the two tables directly when querying the data. Since the real value always takes precedence over the interpolated value this is just a COALESCE(realmeasure0000, interpolation0000) statement.

This is super fast when taking advantage of postgres' partition-wise joins.

Re:Optimizing Postgres table layout for maximum efficiency on Tuesday October 08, 2024 @02:51AM (#41774436)
The schema is organized by how we need to query it which is mostly by fetching all measurements for an entire day or month. Querying statistics on those metrics is not often needed, maybe a few times per week or day, so we do that in Snowflake if necessary. Or create a specialized streaming data flow when it the stats are queried more often.
Re:Optimizing Postgres table layout for maximum efficiency on Tuesday October 08, 2024 @02:40AM (#41774394)
Good observation. The updates are as much HOT-updates as possible. I wasn't familiar with BRIN-indexes before, so I have to look into that.

At first glance our solution follows a similar approach, let me elaborate:

- no index columns are updated ever, only inserted

- all tables are partitioned based on date (partition range is 1 month)

- for some tables there is another layer of partitioning (3 sub-partitions, based on one specific column)

- finding an appropriate fillfactor is important to improve the speed of UPDATE statements (HOT-updates)

- standard vacuum / auto vacuum settings work great for us so far.

- to improve ANALYZE performance, set column statistics of value-only columns to 0.

Re:Optimizing Postgres table layout for maximum efficiency on Monday October 07, 2024 @04:41PM (#41770815)
Glad you asked!

This system contains measurements and state of physical devices (time series). It’s designed for both heavy write and read, with slight emphasis on write. Each table is one type of device and contains 1 to 5 different measurements/states. But here’s the trick: because data is queried with minimum bucket size of 15minutes I figured we could just create a column for each measurement + quarter of the day (i.e. measure0000, measure0015), so that’s 100 columns for each measurement (96 quarter + 4 for DST), include the date in the key, et voila: excellent write performance (because it’s mainly UPDATE queries) and good read performance.

Okay, the queries to make sense of the data aren’t pretty, but can be generated.

I find it really cool how effective this is for time-series data without Postgres extensions (we’re on RDS).

Re:Optimizing Postgres table layout for maximum efficiency on Monday October 07, 2024 @04:01PM (#41770328)
It’s really something you don’t know how this applies to your Postgres DB, until you run into a situation where you do.

The author explains this very well, it’s a good read! I’ve learned about this padding little over a year ago, while I was designing a data intensive application with a colleague. I was skeptical about the advantage at first, but for our specific design, where we have 100 to 480+ columns in one table it makes a huge difference on table store size. Not so much on the indexes, though.

Re:Just for Fun. No on Tuesday September 10, 2024 @02:21AM (#41497722)
Yes! Enthusiasm is contagious. Share the fun.
Re:Ask HN: What is your ChatGPT customization prompt? on Sunday May 26, 2024 @07:22AM (#40481305)
Once added this to a team’s shared account:

>When responding to IT or programming questions, respond in UK slang language, Ali G style but safe for work.

Took them a few hours to notice.

Re:All you need is Wide Events, not "Metrics, Logs and Traces" on Wednesday February 28, 2024 @04:04AM (#39535665)
Where I work we’ve set up OpenTelemetry SDK in the applications to expose traces, logs and metrics.

Grafana agent as OTEL collector on the application hosts, Grafana Tempo as backend for traces, Loki for logs and Prometheus for Metrics.

The cool thing about Tempo it generates metrics for ingested spans and their labels (spanmetrics) so this allows us to explore “unknown unknowns” as the author calls it in a very cost efficient way.

Re:CorsixTH: Open-source clone of Theme Hospital on Sunday February 18, 2024 @01:50PM (#39421840)
Similar though! It was on PC, either downloaded from Tucows or from one of these shareware discs they sold at computer fairs.
Re:CorsixTH: Open-source clone of Theme Hospital on Sunday February 18, 2024 @10:06AM (#39419625)
This is awesome, can’t wait to play TH again. Totally forgot about this game, but i remember playing a demo version of the original game. The game was good fun. What impressed me most back then was the quality and “realism” of the videos (mind you, it was 1997)
My setup extends on this: the pulumi stack creates ECR repo, IAM user+access token, adds credentials and ECR details to GitHub actions secrets, and GitHub actions builds tags and pushes the images to ECR when a release is (automatically) tagged.

Pulumi is (mostly) a bliss!

There are more than a few resource types lacking import examples/details in the docs.

Other than that, for most resources I use the docs are pretty good.

Interesting developments in this space. So how does this work in practice? Do I feed it an ISO? Are Steam games supported?
Re:Mail-in-a-Box: a mail server in a box on Friday November 24, 2023 @05:07PM (#38408921)
I've been using mail in a box since 2016 for a handful of personal domains. It's easy to setup and very low maintenance. Backups are solid too.

Just make sure your hosting package/provider allows and supports self-hosted mail. PTR dns records specifically as without your mail might work but much ends up in spam boxes. The mail in a box setup guide covers this too.

Maybe sharing my experience helps in some way:

I’ve been using a handful of these accounts nearly 10 years ago. Not much if any mails received on them for at least a few years, and received the inactive notification for all of them last month. Note the nuance that these account didn’t have mail to forward for several years.

Older »