Hacker Newsnew | past | comments | ask | show | jobs | submit | supermatt's commentslogin

> now you need Docker-in-Docker

Or you can just mount the socket and call docker from within docker.


Correct, which I wanted to avoid because:

> Mounting the Docker socket grants the agent full access to your Docker daemon, which has root-level privileges on your system. The agent can start or stop any container, access volumes, and potentially escape the sandbox. Only use this option when you fully trust the code the agent is working with.

https://docs.docker.com/ai/sandboxes/advanced-config/#giving...


PM for Docker Sandboxes here.

We have an updated version of Sandboxes coming out soon that uses MicroVM isolation to solve this exact problem. This next version will let your agent access a Docker instance within the MicroVM, therefore allowing you to do this securely.


It doesn’t.

It gives a very naive approach that doesn’t support any complex styling.

For that you need to wrap the input and additional styling elements in a ref’ed label.


Out of interest what's an example of styling that the radix/shadcn version enables that their approach doesn't? I was able to (AFAICT) replicate the radix docs example by just moving their styles around: https://codepen.io/mcintyre94/pen/pvbPVrP

In the example they are just using an empty <RadioGroup.Indicator/> for the pip as it is easy to target with a classname, but you can put any content in there instead for e.g. card-style radios (as used for complex selections, like a subscription tier).

By using radix, the underlying behaviour is compliant and identical for each of those implementations - you just change the content. Radix isn't looking at it like an html radio element, it is looking at it as a completely unstyled unique item selector.

The pseudo-element styling approach limits you to 3 layers - the container, and the 2 pseudo elements, none of which you can provide with meaningful content besides plain text. The best you can do is provide a basic styles and set background image. For anything else you need to use labels to either wrap the radio (in which case you can access state via sibling selectors) and/or ref them with "for" (in which case you cant access the state).


Wrapping it in a label is the idiomatic and correct way, and should be done even when not styling. Perhaps especially when not styling.

Putting an adjacent label is also possible, but scales poorly due to needing unique ids.


Can you give an example please? What kind of complexity are we talking about?

Any kind of nested markup: styled content, additional animation layers, etc.

Author here. Can you provide a screenshot or more detail?

I'd be happy to implement an HTML + CSS only solution and share it with you.

Thanks


But is that still less complex than what the author found?

> Why would you want to do this?

Have you tried completely customising a radio button with CSS? Feel free to demonstrate a heavily customised radio button style where you don’t hide the native appearance.


There's literally an example of that in the post.

> where you don’t hide the native appearance

What do you mean by this? Seems like an arbitrary requirement to set. Could you show an actual example of how this overengineered style is easier to customize?


The pseudo element solution alone is extremely limiting in its ability to be customised. For more complex customisation you will need to decorate with additional elements within a ref’ed label - and then you are effectively back to what radix does.

> and then you are effectively back to what radix does

I certainly won't need to import x elements from a library that imports y elements itself


Yes, several times. I've been specializing in front-end dev for over a decade.

I shared a simple example because Shadcn has a simple design.

You do often hide the native appearance if you need something complex, but doing that via CSS is still much simpler than a bunch of JS and a third party dependency.

If you have a specific design in mind I can show you how to do it.


I almost had the same reaction tbh! Like I remember inline-grid and place-content for example was not at all supported css, it would've been a nightmare to do, but modern browsers css support is way more powerful than my mental model of them still is. So it's time to update that mental model.

How do you test for ad effectiveness vs annoyance? Especially so for a captive audience where they can’t leave and go elsewhere?

It seems like every market leader that gets ads eventually “optimises” towards making them look like not ads. Obviously they will be more effective if people don’t realise what they are, so how do they account for annoyance (and the other negatives a user experiences) while doing these a/b tests?


Why would you care about annoyance when you captured your audience?

It is a question asking how you would do that if you cared. I.e how do you measure/quantify that annoyance as a metric when they are captive and have no choice to leave.

Traditionally you would be able to measure annoyance by reduced usage, but that’s not the case in a captive market, so how do you measure it?


>How do you test for ad effectiveness vs annoyance?

In a walled garden like apple? You simply don't, just make the test gradual and long enough until people get used to it.


That’s the way it appears, sure. But my question is how would you do it if you did care. What metric would there be you could measure if they have no choice but to use the product.

What does "solved with" mean? The author claims "I've solved", so did the author solve it or GPT?

When you use a calculator, did you really solve it or was it the calculator?

With a calculator I supply the arithmetic. It just executes it with no reasoning so im the solver. I can do the same with an LLM and still be the solver as long as it just follows my direction. Or I can give it a problem and let it reason and generate the arithmetic itself, in which case the LLM is effectively the solver. Thats why saying "I've solved X using only GPT" is ambiguous.

But thanks for the downvote in addition to your useless comment.


> more like 30cts like it is in Europe

Nope - i live in one of the most expensive areas, and even the residential price has averaged 18c/kWh delivered including taxes. Businesses get a lower basic rate and also don't pay the VAT, so it works out around 13c/kWh for them.

https://data.nordpoolgroup.com/auction/day-ahead/prices?deli...


That's excluding tax, net prices around 0.20-0.30 EUR / Kwh we common.

I updated my comment to include my personal delivered rate including VAT - also note that businesses (like a data center) don't pay the VAT and have substantially reduced delivery fees at high voltage

Then you're living in one of the cheapest areas for electricity prices in Europe, the opposite of what you said.

https://ec.europa.eu/eurostat/statistics-explained/index.php...

Scroll a little down and you see a breakdown by country

E.g.

https://ec.europa.eu/eurostat/statistics-explained/index.php...


I am in Lithuania, which has one of the highest wholesale energy prices in Europe (as per nord pool): https://data.nordpoolgroup.com/auction/day-ahead/prices?deli...

That it is not translating into a higher cost to the consumer (as evidenced on your link) is likely indicative of other costs being incurred by the “average” consumer in those countries with a higher domestic rate - like massive markup from users being tied into inflated contracts due to the 2022 shock where rates across Europe were more than double what they are now.

Also, these are residential prices - business prices are usually much lower (wholesale discounts, subsidies, no VAT, lower delivery charges).

As per my response to the initial comment - there is no way a datacentre in Europe is paying 30c/kWh


Business prices should be figure 6 in my link, while the difference is a lot smaller, Lithuania is definitely one of the cheaper countries, beating the EU average slightly.

> As per my response to the initial comment - there is no way a datacentre in Europe is paying 30c/kWh

Hetzner prices it at 33c/wh as of last year I believe, previously it was 40c (after the pipeline was destroyed)

But Germany is pretty much in the 3 most expensive countries wrt electricity cost in the EU - both for consumers and commercial pricing


> Lithuania is definitely one of the cheaper countries

And yet has one of the highest wholesale rates...

> Hetzner prices it at...

Hertzner are reselling. They make a profit on energy resale. Their rate also includes a substantial buffer on the actual rate to account for volatility. Their rate is most likely less than half of what they are passing on for colo.

For reference, last year German industrial energy prices were around 10c/kWh INCLUDING taxes and network fees - and the government are looking to subsidize that further to target 5c/kWh: https://www.gleisslutz.com/en/know-how/germany-cuts-costs-el...


You're talking about select industries which are being supported via subventions, data centers are not included. If you pay attention to the wording in your cited article, they've said so as well.

And hetzner does not have a large upsell for their energy prices, they're pretty much passing in the price as-is according to their own statements (from the large increase to 40c)

Almost all commercial applications need to pay the quoted prices around what's shown in figure 6


Ok, it seems I am mistaken that this subsidy applies to datacenter (apparently there is ongoing discussions to include them for this reason).

That said - I 100% don't believe that hertzner are simply passing on the price for their colo clients. Where did you read that they are not making a profit off electricity resale?

Here is another link discussing industrial energy prices WITHOUT reductions: https://www.smard.de/page/en/topic-article/213922/216044

So less than 17c/kWh in 2024, and likely another 2c when adjusted for current wholesale prices and network fees.


> That said - I 100% don't believe that hertzner are simply passing on the price for their colo clients. Where did you read that they are not making a profit off electricity resale?

That's indeed probably untrue, you're most likely correct there.

The statement was wrt the increase (they're passing on the increase in cost, not that they're mirroring the cost the energy provider!)

And after thinking about it some more, they absolutely have to make a significant upcharge, as they need to pay for wiring to the rented and housed devices, Large battery banks for temporary fail over and finally diesel generators if power is down for an extended period of time (that has all been demoed via YouTubers like derBauer )


Some countries also employ progressive electricity pricing such that higher energy consumption leads to elevated kWh rates incentivizing conservation. This is also not visible in the stats above. I also think that business kWh rates are actually higher than for the households in some instances.

Yeah, strictly business vs residential isn’t a good comparison either really, as the lower transmission fees for medium (10kV+) and higher voltage are where a lot of the savings are - and obv a lot of business don’t use such power.

Net is excluding tax, you mean gross.

Private / endconsumer in Germany is 34

> the worlds most serviceable keyboard PC.

Any idea why raspberry didn’t use compute modules in the pi500? IMHO that should have been trivially upgradable but will likely be the shortest lived keyboard I’ve ever had when the pi6 comes out.


Is the app bound to the purchasers iCloud, or can I also use it to download my partners images?

Yes — Photos Backup Anywhere supports Apple Family Sharing

If the app is shared via Family Sharing, each family member can install and use it on their own Mac with their own iCloud Photos library. The app works with whichever Photos library is signed into macOS on that machine, so you can absolutely use it to back up your partner’s images as well.


It is comical how far apple has fallen with its UI overall.

They were praised for their human interface guidelines, and yet they now break almost every rule. I appreciate things change but those guidelines haven’t even evolved they have just been ignored.

Have they truly innovated in the last 10 years? What capitalist reason is for them to actually invest the manpower in the enshittification of the product experience? It feels counterintuitive. Maybe they are just too big to communicate internally?


Finland (where Linux comes from) is in the EU. There are also a few European linux distributions you may have heard of: e.g. Debian, SUSE, Ubuntu (UK), Mandrake/Mandriva/Mageia, Knoppix, etc.

How is Linux related to Finland? Just because some of early contributors was born in Finland?

You mean the actual founder of Linux is from Finland, not just a contributor.

Also you're forgetting all the "US" companies with headquarters in Luxembourg or Ireland.


It was literally created by Torvalds (a Finn) while at the university of Helsinki (in Finland).

I am not claiming "invention", my whole point here is that place of origin means nothing, especially for a FOSS project - despite Linus being important part of it.

If we talk about OS being independent from US, the culprit is where does control(both in terms of technology and legislation) comes from. Main contributors are US companies(technological control) while Linus is obligated to comply to US laws and decisions as US citizen.


Active kernel contributors are spread all around the world, with a pretty even distribution across USA, Western Europe and Asia.

Your suggestion that the US government would lean on the citizenship of Torvalds in order to exert control over the kernel should be laughable but I concede that anything is possible these days.


Yeah, Nah, 0 chance.

Linus Torvalds, imo, is the reason we have open source, through Linux & Git. He’s the open source philosopher king.

I think he’s put enough in to know where his allegiance lies, over a 2010 US citizenship - a very different world.

There is also 0 chance, US/MS government hasn’t put a lot of pressure on him over the last 34 years of creating and spreading, at least the OS form of socialism


It is not laughable, Linux directly complies with SDN list[1] and US sanction policy(i.e. removing of russian developers by Linus). Thus, US does have and execute control over Linux kernel currently.

[1] https://www.linuxfoundation.org/blog/navigating-global-regul...


I think you have some confusion about the role of the Linux Foundation in relation to the kernel. They provide financial, organisational, and infrastructural support and neither own nor control its development.

Linus is the BDFL and lead maintainer and if he wanted to move the kernel development anywhere else he could do so, but Linus Torvalds has stated that he personally agrees with them.

That is not the US controlling him, it is his own decision. Moreover he has dual citizenship and could renounce his US citizenship if he chose. When Greg takes over maintainership things may be different.


Why should Linus renounce US citizenship, not finnish? He is living with family in Oregon for 20+ years.

This is my main point here - not much things connecting Linus and Linux to EU. In question of US and EU tensions I am not really sure US citizen BDFL will party with EU, also because companies who spend money and contribute to kernel are located in US mainly.


In the very post where he discussed the removal of Russian maintainers https://lore.kernel.org/all/CAHk-=whNGNVnYHHSXUAsWds_MoZ-iEg... he identifies as Finnish - not American or Finnish-American.

That you are trying to strip him of his own identity speaks volumes.

Anyway, clearly you have some misguided patriotic agenda here. You can thump your chest if it makes you feel better, but theres little point in continuing this discussion.


> Ubuntu (UK)

This is an EU initiative, Ubuntu probably isn't included.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: