167 karma · joined Oct 3, 2019 (7y ago) · 75 submissions
comment 8mo ago · link · parent
I haven't tried integrating it into a repl or even command line tools though. The llm can't experience the benefit of a repl so it makes sense it struggled with it and preferred feeing entire programs into sbcl each time.
comment 1y ago · link · parent
Soy beans pre-cooked in cans don't exist in the UK.
comment 1y ago · link · parent
I eat a high protein, vegetarian diet optimised for lifting weights, and "Approximately no additional grams, if you pick the right legumes." doesn't really add up for me. For the main sources of protein I usually try to eat daily:
Tofu 400g; eggs 3 large; cottage cheese (low-fat) 300g; greek yoghurt (0% fat) 250g; beans/lentils (mixed) 1-3 cans;
and then also supplement with whey protein powder to get to my daily protein target (~150g). To get there with just legumes I'd need to consume 15 cans of cooked lentils (i.e. not achieveable in reality).
comment 2y ago · link · parent
Every day I'm reminded of something I think Jo Armstrong said in a talk, paraphrased "Ah, an update! Maybe they made it better ;)".
comment 2y ago · link · parent
CREATE TABLE [dbo].[Nodes] (
[Id] UNIQUEIDENTIFIER NOT NULL,
[NetworkId] UNIQUEIDENTIFIER NOT NULL,
[Locked] INT NOT NULL,
[Acknowledged] INT NOT NULL,
);
CREATE TABLE [dbo].[Messages] (
[Id] UNIQUEIDENTIFIER NOT NULL,
[NetworkId] UNIQUEIDENTIFIER NOT NULL,
[NodeId] UNIQUEIDENTIFIER NOT NULL,
[Payload] NVARCHAR (MAX) NULL,
[InsertedOrder] INT DEFAULT (NEXT VALUE FOR dbo.MessageSequence) NOT NULL,
[TimestampUtc] DATETIME2 (7) DEFAULT (sysutcdatetime()) NOT NULL,
);
Select *
From Nodes With (Rowlock, Holdlock)
Where NetworkId = @networkId
And Id = @nodeId
Multi-tenancy is per database.(edit: simplified sql)
comment 2y ago · link · parent
>> A more recent study shows that toxoplasma infection prevalence was a consistent, positive predictor of entrepreneurial activity. Fear of failure would be less important in infected individuals, who are more willing than others to start their own business. These elements shed interesting light on behaviours and their possible relationship with toxoplasmosis, which is generally considered benign in adults.
I think while the part about it being generally benign is corrent, I was always told it can be particularly harmful for pregnant women and their babies. That's why I was on cat litter duty for 3 years anyway.
comment 2y ago · link · parent
That can't be true, I believe one of the Die Hard films made at the time is based on this idea.
comment 2y ago · link · parent
Paddington (busy station): https://github.com/anisotropi4/kingfisher/blob/main/image/P/...
Penzance (rural endpoint): https://github.com/anisotropi4/kingfisher/blob/main/image/P/...
comment 2y ago · link · parent
Really, this is pinterest. They store 'boards' and 'pins', you may as well have a bit of fun with it. What use cases do they have for the features you list? They probably only used a database for write transactions?
I deeply value database technology and use it daily, but I don't think something simple like this needs to worry too hard about it.
comment 3y ago · link · parent
In the end I used Sql Server's SYSUTCDATETIME which is precise to 100 nanoseconds. More importantly I gave all transactions in the batch the same timestamp, added a batch order int column, and a unique contraint on the timestamp, batchOrder columns.
Turns out DateTime.UtcNow is not really designed to give you a precise value for a messaging or transaction system! More of a sometime that day, probably.
Edit: don't trust timestamps, especially from different sources.
comment 3y ago · link · parent
Edit: am Emacs user.
comment 3y ago · link · parent
All these rules only govern what they can broadcast to UK citizens though. If you have a globally popular sport/product like the Premier League you can broadcast the Saturday 3pm matches to them, as they're unlikely to be able to attend a match anyway.
All that aside I actually think cycling could be a wonderful sport to view in this format. Great screnery shots from helicopters and close up peleton shots captured on motorbikes. Also strap into your turbo trainer to ride along for an hour too!
comment 3y ago · link · parent
It might be more fruitful to look at mobile broadband hotspots or whatever they're being called now. Could imagine a 5g one of those would be more likely?