10800 to 18000°Ra for the Americans
- 0 Posts
- 13 Comments
renormalizer@feddit.orgto
Lemmy Shitpost@lemmy.world•the next question when the teacher calls on you while you're asleep and you answer correctlyDeutsch
3·2 months agoIt’s a sequence of numbers where the next number is a fixed multiple of the previous one.
1 2 4 8 16 32 … Is a sequence with a ratio of 2.
96 48 24 12 6 3 … Is the sequence from the question with a ratio of 1/2. You see that elements 2 and 4 (counting from zero) sum to 30 and elements 3 and 5 sum to 15.
In general, the sequence can be expressed as a_k = c r^k for some starting value c and the ratio r.
Your daily weather forecast likely runs on FORTRAN. It’s quite terrible code in many places because the people writing it are not software engineers but meteorologists, mathematicians, or physicists with little to no formal training in software design writing a million-line behemoth.
And FORTRAN adds to the suck because it is superbly verbose, lacks generics, has a few really bad language design decisions carried over from the 60’s, and a thoroughly half-assed object model tacked on. As a cherry on top, the compilers are terrible because nobody uses the language anymore – especially the more recent features (2003 and later).
renormalizer@feddit.orgto
Ask Lemmy@lemmy.world•Any RPGs that take into account when you reload a save? Or that break the 4th wall like this?Deutsch
2·3 months agoExperience 112 reacts to the time between sessions. When you start playing after a few days you get a comment where the main character wonders where you’ve been.
renormalizer@feddit.orgto
Selfhosted@lemmy.world•Looking for a selfhostable chat service that people on phone and computers can log onto
1·4 months agoRocket.Chat is a Slack-like environment under MIT license with apps for iOS and Android
renormalizer@feddit.orgto
Privacy@lemmy.ml•Europe’s cookie law messed up the internet. Brussels wants to fix it.Deutsch
1·6 months agoBut even when they do, I feel that, after rejecting, I get the same banner again the next time I visit the site. I bet that doesn’t happen when you accept tracking.
renormalizer@feddit.orgto
Open Source@lemmy.ml•Discover Hidden Gems: Open-Source Software You Should Know AboutDeutsch
3·7 months agogitolite for when a shared git folder is not enough but you don’t want a full gitlab. Provides SSH-based access management for a bunch of git repos.
renormalizer@feddit.orgto
TenForward: Where Every Vulcan Knows Your Name@lemmy.world•Space: The Fungal FrontierDeutsch
12·9 months agoWhen the spore drive malfunctions.
x = 15
Denote the origin of the circle O and the points A, B, C clockwise starting from the left. From the isosceles triangle OAB we get 2 r sin(alpha/2) = 24, where alpha is the angle between OA and OB.
Construct the line orthogonal to OB that goes through C. The length of the line, h, between C and the intersection is h = 7 sin(beta) = x sin(90 - alpha). Denote the lengths of the parts of OB a and b, where a is connected to B. We have a + b = r
Use Thales circle theorem to find that the triangle ABA’ completes the red shape, with A’ on the circle opposite to A. That means that the angle between A’A and A’B is alpha/2, but A’OB is also an isosceles triangle. So the angle on the other side, beta, has to be the same. Thus, beta = alpha/2.
Now, put everything together: a = 7 cos (alpha/2), b = h cot(90 - alpha) = 7 sin(alpha/2) tan(alpha), r = 12 / sin(alpha/2).
a + b = r <=> cos(alpha/2) sin(alpha/2) + sin^2(alpha/2) tan(alpha) = 12 / 7
1/2 sin(alpha) + 1/2(1 - cos(alpha)) tan(alpha) = 12/7 <=> tan(alpha) = 24/7
From the identity for h we know that x = 7 sin(alpha/2) / cos(alpha). Insert alpha = arctan(24/7)
renormalizer@feddit.orgto
TenForward: Where Every Vulcan Knows Your Name@lemmy.world•Are there any episode plots that bug anyone? Here's one that got me...Deutsch
4·1 year agoThe doctor’s program could be a quantum state that just can’t be copied, only transferred. They do it all the time, to the mobile emitter, to the holodeck, etc. And if the state degrades too much during transfer, it can’t be recovered, so all that makes sense.
Then there is that episode with the EMH backup set hundreds of years after Voyager…
renormalizer@feddit.orgto
Programmer Humor@programming.dev•Do you know who can help?Deutsch
5·2 years agoI’ve been a four-star programmer a few times. Imagine a blocked symmetric matrix where the rows and columns are indexed by triples (u,v,w). The entries are zero whenever u != u’ or v != v’, and because of symmetry you only store entries with w <= w’. But the range of v depends on the value of u and the range of w on the value of v. So you do
double ****mat = calloc (UMAX, sizeof(*mat)); for (int u = 0; u < UMAX; ++u) { mat[u] = calloc (u + 1, sizeof(**mat)); for (int v = 0; v <= u; ++v) { mat[u][v] = calloc (v + 1, sizeof(***mat)); for (int w = 0; w <= v; ++w) { mat[u][v][w] = calloc (w + 1, sizeof(****mat)); for (int ww = 0; ww <= w; ++ww) mat[u][v][w][ww] = some_function (u, v, w, ww); } } }and weep a little. In reality, this gets a bit optimized by allocating a single chunk of memory and carving that up into the pointer and data arrays, so everything is reasonably close together in memory.

The second buy can even be the nice one. If you’re unsure how much use the tool will get, buy cheap then upgrade after it breaks.