b-money Updated 2025-07-16
When taking a penalty kick in soccer, the kicker must chose left or right.
And before he kicks, the goalkeeper must also decide left or right, because there is no time to see where the ball is going.
Because the kicker is right footed however, he kicker kicks better to one side than the other. So we have four probabilities:
  • goal kick left keeper jumps left
  • goal kick right keeper jumps right
  • goal kick left keeper jumps right. Note that it is possible that this won't be a goal, even though the keeper is nowhere near the ball, as the ball might just miss the goal by a bit.
  • kick right and keeper jumps left. Analogous to above
Personal finance Updated 2025-07-16
  • the American stock market gives 10% / year, which is about 2x over 10 years. It has been the sure-fire best investment on a 10 year horizon for many decades, and should serve as your benchmark.
  • risky diversified investments (e.g. ETFs that track a market index) are basically the best investment if you can keep your money in them in the long term (10 years)
  • risky investments can gown down for a while, and you cannot take your money out then. This effectively means risk is a form of illiquidity
  • investment funds have taxes, which eat into your profit. The best investments are dumb index tracking investments (like an ETF that tracks the stock market) that are simply brainless to manage, and therefore have lowest taxes. No fund has managed to beat the market long term essentially.
  • when you are young, ideally you should invest everything into riskier higher yielding assets like stock. And as you get older, you should move part of it to less risky (and therefore more liquid, but lower yielding) assets like bonds
    The desire to buy a house however complicates this for many people.
ROW_NUMBER Updated 2025-07-16
sqlite3 ':memory:'  'WITH t (i) AS (VALUES (-1), (-1), (-2)) SELECT *, row_number() over () FROM t'
Possible output:
-1|1
-1|2
-2|3
Gives them unique IDs.
With a partition by:
sqlite3 ':memory:'  'WITH t (i) AS (VALUES (-1), (-1), (-2)) SELECT *, row_number() over ( partition by i ) FROM t'
possible output:
-2|1
-1|1
-1|2
activatedgeek/LeNet-5 run on GPU Updated 2025-07-16
By default, the setup runs on CPU only, not GPU, as could be seen by running htop. But by the magic of PyTorch, modifying the program to run on the GPU is trivial:
cat << EOF | patch
diff --git a/run.py b/run.py
index 104d363..20072d1 100644
--- a/run.py
+++ b/run.py
@@ -24,7 +24,8 @@ data_test = MNIST('./data/mnist',
 data_train_loader = DataLoader(data_train, batch_size=256, shuffle=True, num_workers=8)
 data_test_loader = DataLoader(data_test, batch_size=1024, num_workers=8)

-net = LeNet5()
+device = 'cuda'
+net = LeNet5().to(device)
 criterion = nn.CrossEntropyLoss()
 optimizer = optim.Adam(net.parameters(), lr=2e-3)

@@ -43,6 +44,8 @@ def train(epoch):
     net.train()
     loss_list, batch_list = [], []
     for i, (images, labels) in enumerate(data_train_loader):
+        labels = labels.to(device)
+        images = images.to(device)
         optimizer.zero_grad()

         output = net(images)
@@ -71,6 +74,8 @@ def test():
     total_correct = 0
     avg_loss = 0.0
     for i, (images, labels) in enumerate(data_test_loader):
+        labels = labels.to(device)
+        images = images.to(device)
         output = net(images)
         avg_loss += criterion(output, labels).sum()
         pred = output.detach().max(1)[1]
@@ -84,7 +89,7 @@ def train_and_test(epoch):
     train(epoch)
     test()

-    dummy_input = torch.randn(1, 1, 32, 32, requires_grad=True)
+    dummy_input = torch.randn(1, 1, 32, 32, requires_grad=True).to(device)
     torch.onnx.export(net, dummy_input, "lenet.onnx")

     onnx_model = onnx.load("lenet.onnx")
EOF
and leads to a faster runtime, with less user as now we are spending more time on the GPU than CPU:
real    1m27.829s
user    4m37.266s
sys     0m27.562s
Actuator Updated 2025-07-16
Some people have been creating YouTube channels that just post and go over a large number of Stack Exchange questions, some of them with a quick random intro video. Perfectly legal due to CC BY-SA but really weird stuff!
Adenine nucleotide translocator Updated 2025-07-16
A single transmembrane protein that moves ATP out and ADP in of the mitochondrion. So crucial.
Present in chormosome 4.
Video 1.
Energized about the Mechanism of ADP/ATP Transport by Ruprecht et al. (2019)
Source.
Good video showing what appears to be the adenine nucleotide translocator. although they don't use that name, instead saying ADP/ATP carrier.
The video also briefly depicts the ATP synthase and the mitochondrial phosphate carrier protein.
Adenosine triphosphate Updated 2025-07-16
The fact that ATP is the universal energy storage mollecule of all life on Earth is such an incredible unifying principle of biology!
It is the direct output of all the major forms of "energy generation" in cells: ATP synthesis mechanism.
It is just as fundamental as the genetic code for example.
No wonder dozens of Nobel Prizes were related to its discovery, given its complexity.
CC BY Updated 2025-07-16
Political correctness Updated 2025-07-16
Ciro Santilli believes it generally hurts more than it helps.
Especially when you can't even mention censored things to criticize them. You have to pretend they never existed. So people will forget about them, and do them again in the future.
And when companies do it just to look good, even though it has absolutely no real impact on the lives of those who are discriminated against.
Point particle Updated 2025-07-16
This idealization does not seems to be possible at all in the context of Maxwell's equations with pointlike particles.
The Taylor series expansion is the most direct definition of the expontial as it obviously satisfies the exponential function differential equation:

There are unlisted articles, also show them or only show them.