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:
Adjoint operator Updated 2025-07-16
Given a linear operator over a space that has a inner product defined, we define the adjoint operator (the symbol is called "dagger") as the unique operator that satisfies:
Adolfo Amidei Updated 2025-07-16
This dude mentored Enrico Fermi in high school. Ciro Santilli added some info to Fermi's Wikipedia page at: en.wikipedia.org/w/index.php?title=Enrico_Fermi&type=revision&diff=1050919447&oldid=1049187703 from Enrico Fermi: physicist by Emilio Segrè (1970):
In 1914, Fermi, who used to often meet with his father in front of the office after work, met a colleague of his father called Adolfo Amidei, who would walk part of the way home with Alberto [Enrico's father]. Enrico had learned that Adolfo was interested in mathematics and physics and took the opportunity to ask Adolfo a question about geometry. Adolfo understood that the young Fermi was referring to projective geometry and then proceeded to give him a book on the subject written by Theodor Reye. Two months later, Fermi returned the book, having solved all the problems proposed at the end of the book, some of which Adolfo considered difficult. Upon verifying this, Adolfo felt that Fermi was "a prodigy, at least with respect to geometry", and further mentored the boy, providing him with more books on physics and mathematics. Adolfo noted that Fermi had a very good memory and thus could return the books after having read them because he could remember their content very well.
Ciro Santilli really likes guys like this. Given that he does not have the right genetics, conditions and temperance for scientific greatness in this lifetime, he dreams of one day finding his own Fermi instead.
Polynomial over a ring Updated 2025-07-16
However, there is nothing in the immediate definition that prevents us from having a ring instead, i.e. a field but without the commutative property and inverse elements.
The only thing is that then we would need to differentiate between different orderings of the terms of multivariate polynomial, e.g. the following would all be potentially different terms:
while for a field they would all go into a single term:
so when considering a polynomial over a ring we end up with a lot more more possible terms.

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