Better HN
topnewbestaskshowjobs
Log inSign up

gbuk2013

1,214 karma · joined Dec 23, 2013 (12y ago) · 517 submissions

comrade/comrade

IN is the only way OUT - https://www.amazon.co.uk/Inner-Engineering-Yogis-Guide-Joy/dp/0143428845/

Submissions

comment 6d ago · link · parent

You say that but every Ryanair flight I have been on has been full to the brim and their balance sheet was apparently doing very well.

comment 4w ago · link · parent

I have a soft spot for PHP but these days I would reach for https://pocketbase.io/ by default for a crud app. It’s really great. :)

comment 1mo ago · link · parent

A (US based) PM on our team really liked to use “backlog grooming” until we sent him a few BBC articles about the connotations - he immediately changed his lingo :)

comment 1mo ago · link · parent

in our repo it would fail the CI due to no comment / exception linting rules before the review would even run :)

comment 1mo ago · link · parent

My VPS runs a DNS and mail, Postgres servers, web hosting with a couple of wordpress instances, a web app and several regular websites.

comment 3mo ago · link · parent

While there are infinite arguments to be made about individual diets, literally no one can do wrong by heavily cutting refined sugar intake.

comment 4mo ago · link · parent

> every living member of it's military, has never seen a single real battle

How I wish for a world where the same could be said for every other army!

comment 4mo ago · link · parent

I run Qwen3-Coder-Next-UD-Q4_K_XL and other than the initial wait to initialise context (which takes less than 2 minutes) subsequent prompts return in less than a minute, usually less than 30s.

If your performance is significantly slower then you are probably doing it in CPU - there was some fiddling required to get it to use GPU (I use llama.cpp)

comment 4mo ago · link · parent

Leaving aside the fact that there are not enough octogenarians in the Commons to pass any legislation, there’s no need to for ageist statements like that.

comment 5mo ago · link · parent

Not really, more like succeed without having to do anything.

The key is the perspective of what success is: it’s the state where the resource does not exist, or is the action having deleted the resource. But 200/202 is perfectly capable of expressing the distinction in the latter case as well.

comment 5mo ago · link · parent

> Then you'd return 202 on a request to delete any invalid element, which really doesn't sound right

It depends on your use-case if you care about this or not. If you do care you will have to handle it either way somehow.

But if you want an idempotent API then a success is more appropriate IMO than an error.

comment 5mo ago · link · parent

Response is implementation detail: a 404 on second request is one way to do it, a 202 would be another, or 200 with some sort of response to distinguish (e.g. { changed: boolean }).

Idempotency just means no state mutation on subsequent request.

comment 5mo ago · link · parent

You’re right - it’s not a campaign as such - it’s a set of scenarios (currently 22) in increasing difficulty. I haven’t played for a while after getting stuck but checking now I got stuck on the 5th scenario - even worse than I thought. :)

I played Zero-K several years ago and it didn’t stick in my mind as much but maybe worth revisiting it - thanks!

Reading about it seems to suggest that it’s even deeper in terms of strategy and tactics so I will probably struggle even more. :(

comment 5mo ago · link · parent

I used to play the original TA a lot and BAR is very well done. Much harder than the original though - I had no trouble with TA campaigns but I have not even made it halfway with BAR before hitting skill wall. Not a teen anymore so it’s hard to motivate myself to try and push through. :)

comment 5mo ago · link · parent

Sound like it’s time for yoga :) https://m.youtube.com/watch?v=txNkzlJ0tc4

comment 6mo ago · link · parent

I mean there’s nothing stopping you from committing node_modules to git (after running something like https://github.com/timoxley/cruft on it) and reviewing code changes on dependency updates.

I even managed to make that part of the workflow on one team I worked with but several other teams since thought it was a crazy idea. :)

comment 6mo ago · link · parent

I came across this interesting rant the other day: https://github.com/uNetworking/uWebSockets.js/blob/master/mi...

It does make sense that the right way would be to fork every dependency you use and install from your own repo reviewing and merging from upstream as needed. Would be a giant PITA though. :)

comment 6mo ago · link · parent

It’s not the async loop - it’s interfacing with the system. JS is designed to run in a sandbox and the only way out in say Node.js is to write C++ addons.

For example you don’t get to see TCP headers with Node out of the box and you can’t craft packets, whereas you can in Python.

comment 6mo ago · link · parent

I am well aware it supports Linux but the vast majority of work still involves being in Windows-only shops which is a circle of hell I am keen to tread only when I absolutely have to. :)

comment 6mo ago · link · parent

Sure but that runtime is much more general purpose - JS runtimes are focused on network apps. For example you can write an app like Calibre in Python and QT and it is much lighter than writing something with JS and Electron.

Python is easier to interface with C/C++ libs.

comment 6mo ago · link · parent

I’m a JS/TS dev (and fan) I don’t think either is a replacement for Python. They are not standalone languages but require some runtime to interact with the world (DOM or Node.js etc) which have limited capabilities for interacting with the system - their focus is network services. It’s not that inaccurate to say that JS is just API for a C++ app. :)

Now if .NET was still not so embedded in the Windows ecosystem that would be very interesting to me to jump from TS. As it is I am learning Go instead.

comment 6mo ago · link · parent

An interesting tangent on this is: how many answers to these (or any number of factual questions) do you (as in anyone) actually know. Not believe you know, but actually know.

Knowing something is different to reading about something, or hearing something from someone. And yet this is often confused as knowledge. In this way are we all that different from AI - we have some data and we regurgitate it as knowledge. Bad data, wrong answer. Except humans can also throw in some emotion to really muddle things up. :)

comment 6mo ago · link · parent

I led a project to (successfully) migrate a Vue 2 to 3 app and while that was painful and expensive, I still find Vue more pleasant to work with than React once it was done. But TBH depending one team code discipline either could be fine or a nightmare. :)

comment 6mo ago · link · parent

Random indeed - I’m also just down the road. :)

comment 7mo ago · link · parent

Me too except I just use rye malt instead of the bread and without making any dough with it. The malt is cheap and easy to get in UK thanks to home brewing suppliers whereas rye bread is super expensive.

My only challenge is controlling the gassiness - it’s so vigorous that the moment I even slightly open the cap the whole thing fizzes up like crazy - opening it normally would result in a kvass fountain shooting up like 30cm. :)

comment 7mo ago · link · parent

If by tourist track you mean several cities each with a population count greater than London then sure. :) But it is true I was there as a tourist to see a few places and China is an absolutely huge place.

I wish the touristy places in the UK were as clean though.

Also, writing this comment on a crowded, dirty and smelly train from Gatwick Airport, which has 2 carriages inaccessible because of broken doors and crawling due to signal failure on the line, I already miss the clean and comfortable Chinese trains I was taking from place to place.

That said I do get to work 945 here for more money so I am grateful for this for sure. :)

comment 7mo ago · link · parent

I’m currently travelling in China and the total absence of graffiti and the wide availability of public toilets as well as the general cleanliness of the place is a stark contrast to London. I am somewhat dreading that part when I return.

comment 7mo ago · link · parent

As someone who runs a such a VPS this is all a non-issue. Running HTTP service is so trivial that once I set it up I don’t even spend an hour in a year maintaining it. Especially with Caddy which takes care of all the certs for you.

And this is also bearing in mind that I complicate my setup a bit by running the different sites in docker containers with Caddy acting as a proxy.

With storage volumes for data and a few Bash scripts the whole server becomes throw-away that can be rebuilt in minutes if I really need to go there.

And for sure any difficulty and ops overhead pales in comparison to having to manage tooling and dependencies for a typical simple JS web-app. :)

comment 8mo ago · link · parent

From the article

> Analysts concluded that 23 sailors survived the initial blasts and took refuge in the small ninth compartment at the rear of the submarine.

> Evidence suggests they remained alive for more than six hours. When oxygen grew scarce, they attempted to replace a potassium superoxide chemical oxygen cartridge, but it fell into the oily seawater pooling on the floor and exploded on contact.

> The resulting fire killed several crew members and triggered a flash fire that consumed what remained of the oxygen, asphyxiating the last survivors.

That does not suggest a possibility of a foreign rescue vessel making it there in time.

12345
18