34

cross-posted from: https://lemmy.sdf.org/post/3732588

A nice trip up and down the scale of things. I especially like the ones from 10^1 to 10^14, inhumane numbers attempting to be brought to a human scale.

Source: CRC Standard Mathematical Tables and Formulas (Zwillinger, Daniel) (Z-Library)

1
181
Motherfucking Website (motherfuckingwebsite.com)
[-] sixfold@lemmy.sdf.org 9 points 1 year ago

time for some kind of anonymizing location data sharing service, peer to peer or federated protocol? that might be interesting, or sketchy, not sure which.

[-] sixfold@lemmy.sdf.org 12 points 1 year ago

Pretty sure you can download the maps ahead of time, GPS doesn't require data, then upload the fixes when you get home.

1

cross-posted from: https://lemmy.sdf.org/post/3152363

Figs and fig wasps have a tightly coordinated reproductive cycle, and have been cospeciating for 70 to 90 million years. The pollination of figs is accomplished in an internal cavity only accessible to a specific species of wasp. The wasp enters through an opening that is only just large enough for it to get through, loosing it's wings and antenna in the process. Pollen on the wasp pollinate the fig's internal flowers, and the wasp lays it's eggs in some of the flowers before dying there. When the male wasps hatch, they fertilize the unhatched females, and burrow tunnels out of the fig before also dying inside it. When the females hatch, they exit the fig through the tunnels, taking pollen with them to search for a fig within which to lay their eggs.

https://en.wikipedia.org/wiki/Syconium https://en.wikipedia.org/wiki/Fig_wasp

[-] sixfold@lemmy.sdf.org 15 points 1 year ago

It does. And Firefox is my default browser app.

1
astrophotography rule (lemmy.sdf.org)
90

It's the only browser I have installed besides Safari, and my default browser but instead of just opening the link with my default browser, it advertises these other browsers to me and makes me click 'Default browser app' by default. wtf I'll be turning that off, should have never been a feature.

[-] sixfold@lemmy.sdf.org 12 points 1 year ago* (last edited 1 year ago)

Exactly. it was bottled at atmospheric pressure while it was boiling, so 1 atm and 100 degrees C. Check this graph to see the relationship between the water's temperature and it's pressure in the jar (since there is no air, only water vapor). If the vapor is condensed, then the pressure drops below the curve on the graph, that is, the pressure in the jar is lowered below the vapor pressure of the water. Any time the pressure is below the vapor pressure, the water will boil, releasing vapor, until the pressure is equal to the vapor pressure. The pressure does not become negative, it is still positive, just lower than the vapor pressure at the given temperature. You can get below the vapor pressure curve by changing the temperature too, which is what we usually do when boiling water at a pressure near 1 atm (760mmHg)

http://hyperphysics.phy-astr.gsu.edu/hbase/Kinetic/watvap.html#c2

(1 atmosphere is ~760mmHg)

a slight aside, there is an important difference between the total pressure of the air, and the partial pressure of water vapor in the air. Inside the jar, the two are equal, but in a dry location (not humid) the partial pressure of water vapor is usually less than the vapor pressure of water at that temperature, but since the total large pressure of the atmosphere would not allow a pocket/bubble of very low pressure water vapor to form inside the bulk water, the water cannot boil, but it will evaporate at the surface anyway until the partial pressure of water is equal to the vapor pressure (very humid).

2
72

This is a jar full of only water (liquid and vapor). It boils at any temperature when you apply something cold enough to the top, like ice.

cross-posted from: https://lemmy.sdf.org/post/2697716

I put water in a jar and sealed it while it was boiling, and now it boils at any temperature. Super fun demo to try.

50
submitted 1 year ago* (last edited 1 year ago) by sixfold@lemmy.sdf.org to c/programming@programming.dev

I've been playing with shadertoy a bit, and here is a lil demo. It's probably not the best way to do it, code suggestions welcome.

https://www.shadertoy.com/view/dtlBRM

Here's most of the code for reference:

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
    // fetch neighbor values from last frame, loop back onto screen if off screen
    mat3 n;
    n[0][0] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(-1., -1.), iResolution.xy)), 0).g;
    n[1][0] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(0., -1.), iResolution.xy)), 0).g;
    n[2][0] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(1., -1.), iResolution.xy)), 0).g;
    n[0][1] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(-1., 0.), iResolution.xy)), 0).g;
    n[1][1] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(0., 0.), iResolution.xy)), 0).g;
    n[2][1] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(1., 0.), iResolution.xy)), 0).g;
    n[0][2] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(-1., 1.), iResolution.xy)), 0).g;
    n[1][2] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(0., 1.), iResolution.xy)), 0).g;
    n[2][2] = texelFetch(iChannel0, ivec2(mod(vec2(fragCoord) + vec2(1., 1.), iResolution.xy)), 0).g;
    
    // sum of neighbors
    float sum = n[0][0] + n[1][0] + n[2][0] +
                n[0][1] +           n[2][1] +
                n[0][2] + n[1][2] + n[2][2];
                
    if(n[1][1] == 0.) {
        if(sum == 3.) {
            // if dead and has 3 neighbors, come alive
            fragColor = vec4(0., 1., 0., 1.);
        } else {
            // otherwise stay dead
            fragColor = vec4(0., 0., 0., 1.);
        }
    } else {
        if(sum == 2. || sum == 3.) {
            // if alive and has 2 or 3 neighbors, stay alive
            fragColor = vec4(0., 1., 0., 1.);
        } else {
            // otherwise, die
            fragColor = vec4(0., 0., 0., 1.);
        }
    }
}
114
The Human Shader (humanshader.com)
submitted 1 year ago* (last edited 1 year ago) by sixfold@lemmy.sdf.org to c/programming@programming.dev

A GLSL shader computed painstakingly by hand by almost 2000 people

1

Now a set of useful mutations are implemented, and balanced so that the number of nodes or edges doesn't explode.

The mutations I've implemented (node are genes are nodes):

add random gene
delete node
delete group of nodes (range of indexes)
split edge    create new node in place of an edge (insertNode)
flip edge
duplicate node
duplicated group of nodes (range of indexes)
change node index (regrouping/separating functional groups)
change group of nodes index (transposable elements)
create random edge
delete random existing edge
scale existing edge weight
negate weight
redirect existing edge to random node
scale parameter (k1, b, k2)
negate bias

This is the next installment from the Gene Regulatory Network saga.

previously: https://lemmy.sdf.org/post/1967056######

[-] sixfold@lemmy.sdf.org 10 points 1 year ago
[-] sixfold@lemmy.sdf.org 9 points 1 year ago

I hear you, but genetic change at the level of these diseases and traits can take on the order of hundreds of thousands of years or more to accumulate into meaningful trends. Social society is a part of that process, in the way it might be for other social animals. If social dynamics tend to result in communities harboring vulnerable individuals, then there is probably some selective advantage to that behavior, not the other way around.

[-] sixfold@lemmy.sdf.org 19 points 1 year ago* (last edited 1 year ago)

This is a common misconception. These traits are not likely due to modern medicine (which is very, very new compared to the scale of human evolution). The environment plays a big role, but there is always a distribution of traits in a normal population, some good, some bad. Not to mention that what we might be self-selecting for must change very rapidly as civilizations rise and fall, preferences shift like the winds, and ethics rapidly evolve. I think this misconception can be dangerous, because of what you mentioned. Eugenics.

48
How Python dictionaries work (tenthousandmeters.com)

Nice article reviewing hash tables and how python dictionaries are implemented with them.

[-] sixfold@lemmy.sdf.org 10 points 1 year ago

PeerTube is awesome. Also its federated with lemmy!

[-] sixfold@lemmy.sdf.org 11 points 1 year ago

Time to go to PeerTube. (federated! Bonus)

[-] sixfold@lemmy.sdf.org 35 points 1 year ago

I mean, since we're all here, PeerTube is federated with Lemmy! There are limited numbers of creators on PeerTube right now, but maybe if we can link more videos from there on lemmy and upload some ourselves, we can get the platform into a healthy state. Not that there is nothing there, there is a decent amount uploaded already.

[-] sixfold@lemmy.sdf.org 24 points 1 year ago

I really like the idea. There one major issue that I see currently, and that is discoverability. It takes some real effort and time to explore things outside of your own instance. I think the federation of pre-federation content will be important for discoverability, since the foundation of a community is in it's ranking of posts, which takes time and interaction. Right now, votes, comments, and most posts pre-federation on another instance are just not reachable.

I believe this problem can be solved, and there are a lot of motivated developers here, so I'm all in on lemmy.

[-] sixfold@lemmy.sdf.org 9 points 1 year ago
view more: next ›

sixfold

joined 1 year ago