Better HN
topnewbestaskshowjobs
Log inSign up

kukkamario

196 karma · joined Jul 3, 2023 (3y ago) · 59 submissions

Submissions

comment 1mo ago · link · parent

Well, there are separate events for touch input and mouse input on native software. You can actually handle both if you actually have time to hone that to perfection...

comment 3mo ago · link · parent

Well CLAUDE.local.md exists specially for personal preferences. Include line to CLAUDE.md that "never edit CLAUDE.md. Write user preferences to CLAUDE.local.md".

CLAUDE.local.md is the one that should be in .gitignore.

comment 5mo ago · link · parent

And that is why existing installations put the heat pump to production side and then just pipe the high temperature water to district heating network.

comment 5mo ago · link · parent

It still makes sense. If heat is produced by a burning something, it is is more efficient to do that in one dedicated place. It makes it easier to pipe exhaust away from apartments and efficiency can be higher.

Also gas pipes to every home isn't a thing in many countries.

comment 7mo ago · link · parent

The point of the checksum is to just drop obviously wrong keys. No need to handle revocation or do any DB access if checksum is incorrect, the key can just be rejected.

comment 8mo ago · link · parent

I think there is plenty of room to make AI inference much more energy efficient. For example, there are companies testing creating custom silicon to run the model. Once that technology matures and we have some "good enough" models for normal use, inference cost for non-bleeding-edge models can come way down.

I don't expect bleeding-edge models to become any cheaper, but previous generation models can potentially be really cheap.

comment 8mo ago · link · parent

You don't want to copy-paste anything like that as text anyway. Just copy and paste files.

No human is reading much data regardless of the format.

What is the benefit over using for example BSON?

comment 1y ago · link · parent

I think in this case Rust and C code aren't equivalent which maybe caused this slow down. Union trick also affects the alignment. C side struct is 32 bit aligned, but Rust struct only has 16bit alignment because it only contains fields with 16bit alignment. In practice the fields are likely anyway correctly aligned to 32bits, but compiler optimizations may have hard time verifying that.

Have you tried manually defining alignment of Rust struct?

comment 1y ago · link · parent

SAF documentation seems a bit misleading: takePersistableUriPermission part only talks about files, but other sources seem to indicate that it also works for directories so it should be possible to request permissions to a directory and then maintain it correctly.

comment 1y ago · link · parent

NextCloud currently has to copy all files that it wants to upload & back up to its own app directory which is pain to actual usability. I'm guessing this annoyance is also related to these fun permission limitations.

comment 1y ago · link · parent

Here in Finland, there is legal obligation to help people in emergencies, but this does not mean that you are required to danger yourself or act beyond your abilities. So usually only thing you are actually legally required to do is to call for help.

comment 1y ago · link · parent

MikroTik has dynamic DNS that is based on random unique number for their router. I just point my DNS record to that dynamic DNS address and everything just works.

comment 1y ago · link · parent

a) resource use is minimal when deployment isn't in progress. It just idling and waiting for commands b) Agent need to be able to connect to Azure DevOps servers, but it is connection from agent to Azure DevOps servers so no need to open any extra inbound ports or anything like that. Documentation lists the domains that need to be accessible from agents.

Agent permissions to Azure are restricted based on the pipeline configuration to only allow things that are used in the pipeline. So if your pipeline does not involve cloning git some private git repo, agent cannot do that. And even that gives only access to that particular resource. So you normally have a build pipeline that generates package from you application and then deployment pipeline that only has access to that generated package which is then distributed to agents configured for some particular deployment environment.

I don't really have much direct experience with deployment side of things so someone else can probably provide extra info.

comment 1y ago · link · parent

Better option would be to parse json into Bson and then use that as the in-memory format. It uses minimal memory and is actually also fast to access without parsing into some other data structure.

comment 1y ago · link · parent

That is not how it works. You assume that the rich people can get as much net profit if income tax is higher due to progressiveness, which is not true. Also if there is a way to get more (gross) profit, they will use it regardless of the tax.

Profit of a company is small percentage of the moving money. Like 50c of $6 chipotle meal is profit and not all of that goes to the owner. Taxing owner at 50% rate instead of 25% would only increase cost a few cents. Same with landlords, there are fixed costs and loan costs that reduce profit. 100% of paid rent is not direct profit...

Actual issue of the progressive tax is truely rich people using tax evasion tactics to avoid it by structuring their income so that it belongs to some other tax category that doesn't have progressive tax.

comment 2y ago · link · parent

Well Yi Peng 3 recently changed operating only between Chinese ports to operating only outside China and mostly to Russian ports. Current actual owner is probably some Russian oligarch.

comment 2y ago · link · parent

It is rather annoying that larger policy changes easily take 2-4 years to actually affect anything so current party always gets both blame and thanks for the changes made by the previous administration.

comment 2y ago · link · parent

In well functioning democracy the government policy shouldn't flipflop constantly and president shouldn't have enough power to break everything.

In Europe, president's power is much more limited, there are more political parties and one party winning elections doesn't immediately change the country's policy to everything, even winning parties need to consider opinions of other parties. So overall country's policy more closely reflects the average opinion of the whole population instead of just the currently ruling party. Changes are much more slow and gradual and a single leader change doesn't immediately affect that much.

Politics are boring as they should be.

comment 2y ago · link · parent

I prefer using Python with pybind11. It makes writing new modules or embedding the whole interpreter quite simple.

comment 2y ago · link · parent

Node is so slow to start that python script can complete before Javascript even begins to execute.

comment 2y ago · link · parent

So it is git with rerere.enabled=1?

comment 2y ago · link · parent

And then you'd be limited to only one change at the time and lose the benefit of making lot of changes with one request.

comment 2y ago · link · parent

Yes. We need orbit space tax which profits are used to resolve issues caused.

comment 2y ago · link · parent

> The volume is small

That is changing with the drone warfare becoming large part of the future wars. US military (and pretty much everyone else) will make drones major focus of advancement and there is definitely lot of money to be made by supplying chips for those.

comment 2y ago · link · parent

Mikrotik at least has that DDNS functionality. It is really nice feature.

comment 2y ago · link · parent

You may want to consider Asp. It is python like language thats interpreter is designed for embedded usage. https://www.asplang.org/

Also fully fuzzy tested to not ever crash regardless of the bytecode given to it.

comment 2y ago · link · parent

It is quite easy to write Python code that works just with all Python versions since 3.6. Easier than writing any Perl code...

comment 2y ago · link · parent

All Perl code I have ever seen, has been "write-only". Just completely unreadable and it was easier to just look at the output instead of the code when converting it to Python to get actual maintainability.

comment 2y ago · link · parent

64-bit time has already been resolved in newer 32-bit Linux versions. Issue isn't that changing ABI couldn't be done. It is that no one wants to update OS and custom software of a 15-year-old embedded system that still works. Archeology to find correct instructions to build a working OS image is challenge itself and then there is a need to adapt them to more modern tools. Been there, done that, and it wasn't fun...

comment 2y ago · link · parent

Well it is just a brick that can acts as a heating element. In terms of converting electricity to heat it is almost 100% efficient like every other electric heating element.

I didn't spot any mention of voltage requirements for that so maybe it requires so high voltage that cause it to be a bit harder to actually use.

12