Readit News logoReadit News
dan-robertson commented on A simple way to generate random points on a sphere   johndcook.com/blog/2025/0... · Posted by u/piinbinary
srean · 4 days ago
If you want uniformly random on the spherical surface then uniformly at random in polar coordinates will not cut it.

To appreciate why, consider strips along two constant latitudes. One along the Equator and the other very close to the pole. The uniformly random polar coordinates method will assign roughly the same number points to both. However the equatorial strip is spread over a large area but the polar strip over a tiny area. So the points will not be uniformly distributed over the surface.

What one needs to keep track of is the ratio between the infinitesimal volume in polar coordinates dphi * dtheta to the infinitesimal of the surface area. In other words the amount of dilation or contraction. Then one has apply the reciprocal to even it out.

This tracking is done by the determinant of the Jacobian.

dan-robertson · 10 hours ago
Looking at Jacobians is the general method but one can rely on an interesting property: not only is the surface area of a sphere equal to the surface area of a cylinder tightly enclosing it (not counting end caps), but if you take a slice of this cylinder-with-sphere-inside, the surface area of the part of the sphere will be equal to the surface area of the shorter cylinder that results from the cutting.

This gives an algorithm for sampling from a sphere: choose randomly from a cylinder and then project onto a sphere. In polar coordinates:

  sample theta uniformly in (0,2pi)
  sample y uniformly in (-1,1)
  project phi = arcsin(y) in (-pi,pi)
  polar coordinates (theta, phi) define describe random point on sphere
Potentially this is slower than the method in the OP depending on the relative speeds of sqrt and arcsin.

dan-robertson commented on The new geography of stolen goods   economist.com/interactive... · Posted by u/tlb
NoMoreNicksLeft · 4 days ago
It's even more strange than that when you consider that the UK hasn't been any sort of industrial manufacturer for many decades. What is it that is supposedly being shipped? Granted, some British auto manufacturers might be shipping those, but why should containers full of phones ever leave the UK? Every ship leaving their ports is leaving with stolen goods.

If anyone cared, this problem could be ended even without the cooperation of the destination countries. But no one hurt by this has enough political sway to do anything about it.

dan-robertson · 4 days ago
The UK exports a reasonable number of cars (I think less since Brexit now they make less sense going to Europe). Also machinery/technical equipment, pharmaceuticals, alcoholic drinks, clothing, furniture, etc
dan-robertson commented on The new geography of stolen goods   economist.com/interactive... · Posted by u/tlb
myflash13 · 4 days ago
Why bother tracking down thieves when you can just keep jacking up premiums? It's not like customers have a choice.
dan-robertson · 4 days ago
They can choose to not pay for theft coverage. Different insurers compete but obviously trying to improve theft prevention would have to be a collaboration as it wouldn’t be able to lower only one insurer’s premiums.
dan-robertson commented on The new geography of stolen goods   economist.com/interactive... · Posted by u/tlb
jonwinstanley · 4 days ago
Spotting that a container has a car in it is not the same as a stolen car. You’d have to open up each container and run the plates.
dan-robertson · 4 days ago
The OP claims many stolen cars are exported under false manifests, so identifying a car and being able to compare that to the manifest helps. Once you can use manifests to identify cars (because you can spot containers trying to hide cars) you can put them through a different process – presumably this is part of the reason the manifests lie. Another thing is that I suspect most legitimate car exports go through a few companies so it may be that other shipping details can give big updates to your prior of whether it contains a stolen car.
dan-robertson commented on The new geography of stolen goods   economist.com/interactive... · Posted by u/tlb
wagwang · 4 days ago
OK but given that only a tiny fraction of crime is solved, then why does the UK have huge prohibitions from carrying things to defend yourself, like even pepper spray?
dan-robertson · 4 days ago
You aren’t allowed to attack someone for trying to steal from you so I don’t see how this is relevant to a thread about theft.
dan-robertson commented on VictoriaLogs Practical Ingestion Guide for Message, Time and Streams   victoriametrics.com/blog/... · Posted by u/func25
yla92 · 7 days ago
> VictoriaLogs was using Loki

Someone can correct me if I am wrong here - I don't think it's the case tho. Especially, it's competing against Loki and Elastic

https://itnext.io/why-victorialogs-is-a-better-alternative-t...

dan-robertson · 7 days ago
I think the GP intended to put some punctuation between ‘victorialogs’ and ‘was’
dan-robertson commented on Online Safety Act – shutdowns and site blocks   blocked.org.uk/osa-blocks... · Posted by u/azalemeth
a5c11 · 11 days ago
Under the main link (the big, bold one) there is a link to what precisely has been blocked. Apparently, it's enough for them to just geoblock specific subreddits, like: dark humour, bowel surgeries, some porn stuff, etc.
dan-robertson · 11 days ago
There was an entry claiming, as far as I could tell, that all of Reddit was shutdown.
dan-robertson commented on Online Safety Act – shutdowns and site blocks   blocked.org.uk/osa-blocks... · Posted by u/azalemeth
dan-robertson · 11 days ago
The data quality here seems poor, eg it lists reddit.com as having shut down, which is clearly false. I think some list like this would probably come across better with some curation so it isn’t largely a list of unsympathetic porn sites and no-name blogs being blocked to spite the UK.
dan-robertson commented on White Mountain Direttissima   whitemountainski.co/pages... · Posted by u/oftenwrong
dan-robertson · 12 days ago
What is it that makes this route a direttissima? I’m not super familiar with the term.
dan-robertson commented on The value of institutional memory   timharford.com/2025/05/th... · Posted by u/leoc
dan-robertson · 12 days ago
A few thoughts:

1. Institutional memory does seem important. It feels like lots of government things are bad at this – big infrastructure projects tend to come in occasional bursts which means each time they are learning from scratch; Japan moves lots of civil servants around every few years which means that no one really remembers how to do things.

2. I think there is a negative side of this too, a kind of ‘institutional trauma’ where some bad memory can cripple an institution. Eg one reason Microsoft lost so much to Google in the early Internet was the memory of the late ’90s antitrust action making them less aggressive. Other companies can have one particular close shave which then causes them to focus too much on avoiding a repeat, a situation you also see writ small in tech teams.

3. I think a bit about production incidents in tech too here. When things are small and the systems are relatively new and they break a lot, this may be ok for the business and recovery can hopefully be fast because it is possible to quickly hypothesise / fix stupid problems. When most silly bugs have been squashed and systems are big and reliable, problems can snowball faster, the business may be more sad about them happening, people can’t understand the whole picture well enough to have good ideas, and the lower base rate of incidents means people will be more stressed or otherwise unable to focus on the actual problem

u/dan-robertson

KarmaCake day9550June 26, 2018View Original