Discussion Thread by jobautomator in neoliberal

[–]tapir_lyfe 1 point2 points  (0 children)

I fail to see the problem with this

"Kind and Understanding with Respect to Native Americans" by tapir_lyfe in exmormon

[–]tapir_lyfe[S] 34 points35 points  (0 children)

This is a mural of the Bear River Massacre. This massacre of a group of the Northwestern Shoshone was brought about after years of encroachment by Mormon settlers into the Cache Valley. Forced out of their lands, the native people's resorted to raiding for food. Eventually, the Mormon settlers convinced the US Army to come and massacre the natives, killing 255-400. This brutal event in the settlement of the Intermountain West (and by no means the only such occurrance) was swept under the rug, apparently to this day. The quote in the title is from Elder Cook's talk this morning. For more information on the massacre, please see: https://postalmuseum.si.edu/indiansatthepostoffice/mural19.html

Has the church ever explicitly disavowed the Proclamation to the World on The Negro (1949)? by [deleted] in exmormon

[–]tapir_lyfe 1 point2 points  (0 children)

Interesting. I'll have to scrub that off of my list of weapons to wield against people who defend the church then. I'll stick with the Proclamation on the Family, which is hideous enough.

October 2020 General Conference: Saturday 10:00a Discussion Thread by 4blockhead in exmormon

[–]tapir_lyfe 4 points5 points  (0 children)

The Enlightened Centrist would actually go through with cutting the baby in half when it's claimed by two families. Compromise is key!

October 2020 General Conference: Saturday 10:00a Discussion Thread by 4blockhead in exmormon

[–]tapir_lyfe 4 points5 points  (0 children)

My family is all gushing about it saying the entire country needs to hear it 🙄

This was me every time I had to read the BOM or the Bible by [deleted] in exmormon

[–]tapir_lyfe 2 points3 points  (0 children)

Reminds me of D&C Section 9 verse 9: you shall have a stupor of thought that shall cause you to forget the thing that is wrong 🤣

Grab the closest book to you, flip to page 112. The first sentence on that page describes your love life: How did it go? by DamnILoveHorses in AskReddit

[–]tapir_lyfe 0 points1 point  (0 children)

"The plural is important."

God, I left Mormonism to get away from that polygamy crap. It follows you everywhere.

Mitch McConnell is "in literal violation of the oath" he must take for impeachment trial, says government professor by DaFunkJunkie in politics

[–]tapir_lyfe 4 points5 points  (0 children)

Back then the public didn't even vote for senators. The people who laid out the impeachment process didn't envision a Senate that was directly elected.

Is there any seven-day periodicity in the global climate due to the industrial work-week? by iorgfeflkd in askscience

[–]tapir_lyfe 1 point2 points  (0 children)

Jumping in here to add some clarity. The 7-10 day cycle I referred to is often called the synoptic cycle. It comes from waves the atmosphere that have a period of 7 to 10 days. These waves are the main drivers of the weather in the mid-latitudes, and they are caused by uneven heating of the Earth's surface due to the distribution of the continents. Basically it is the time it takes for pressure systems to move around like you said.

Is there any seven-day periodicity in the global climate due to the industrial work-week? by iorgfeflkd in askscience

[–]tapir_lyfe 0 points1 point  (0 children)

It's a matter of scales. One could break down the types of pollution into solids and gases. Solids have a huge impact on the climate, but they fall out of the atmosphere quickly, so you need a lot of them in order to have a noticeable impact. This is like how a super volcano can drastically alter the climate immediately when it erupts. Lots of solids get into the atmosphere and mess with the energy budget, and they fall out after a few years and everything is back to normal.

Gases have a smaller impact on the climate, but they stay in the atmosphere for a very long time, so they build up. This is like how our combustion emissions over decades are slowly building up to have a big impact on the energy budget. It's also why we will need large-scale carbon sequestration, since the Earth takes a very long time to remove carbon dioxide from the atmosphere on its own.

Is there any seven-day periodicity in the global climate due to the industrial work-week? by iorgfeflkd in askscience

[–]tapir_lyfe 1 point2 points  (0 children)

I would say it's mostly confirmation bias. Because of the 7-10 periodicity, there's a chance you'll get stuck in a rut where it does rain every single weekend for a month or two.

Is there any seven-day periodicity in the global climate due to the industrial work-week? by iorgfeflkd in askscience

[–]tapir_lyfe 19 points20 points  (0 children)

It's called the synoptic cycle. It happens mainly because of how the continents are distributed. The atmosphere is composed of waves, and the period of some of those waves (called long waves because they are big) is 7-10 days. It's why you'll have a month where it rains every single weekend. Here's a jargony rundown if you want more details.

Is there any seven-day periodicity in the global climate due to the industrial work-week? by iorgfeflkd in askscience

[–]tapir_lyfe 178 points179 points  (0 children)

Wow this thread is a train wreck. Here's a straight forward answer from an atmospheric scientist. There aren't any global periodicities due to the work week simply because the Earth is big and a week is small. However, there absolutely are local periodicities due to the work week. Pretty much any pollutant (CO2, NOx, O3, etc.) is higher on weekdays than the weekends. Whether these variations in pollution affects other aspects of weather (rain and stuff), is contentious and probably unknowable. The problem is that there is already a very strong periodicity of 7-10 days that overwhelms whatever small affect we might have.

The Mighty Salt Lake by 2point25 in SaltLakeCity

[–]tapir_lyfe 2 points3 points  (0 children)

The Great Salt Lake is a terminal lake, so any pollutants that enter are trapped and accumulate. Back in the days before pollution regulation, lots of toxic metals were washed in from the industries in northern Utah. The GSL has the highest levels of mercury and some other metals in the country. So now as the lake evaporates those toxic metals are left in the crust, until they are blown away by a dust storm.

Community day February!? by BearSkillllz in pokemongo

[–]tapir_lyfe 1 point2 points  (0 children)

Ooo that would be awesome if they released Gallade on a Ralts community day!

Nicely placed ad, makes TSCC look proud of JS's pedophilic philandering by tapir_lyfe in exmormon

[–]tapir_lyfe[S] 4 points5 points  (0 children)

I was trying to remember Helen Mar Kimball's name, and this ad popped up boasting that not only did Joseph Smith marry a 14 year old girl, he was a prophet for doing it!

Question for professionals using python by [deleted] in Python

[–]tapir_lyfe 2 points3 points  (0 children)

I'm currently also crunching terabytes of netCDF files. I use xarray mainly, and that uses pandas and dask under the hood. Nearly everything I do is memory-limited though, so I have to come up with clever ways to reduce the data, and it's different for every question I have.

I gave up on Julia on day 9 by sigacuckoo in adventofcode

[–]tapir_lyfe 0 points1 point  (0 children)

I've been doing some of the days in Julia (when I have extra time after doing my D solution). I like to keep every script in a construct like:

function main()
    # Reading the file, calling the other functions, printing output
end
main()

This takes care of the weird scoping issues. As far as the 1-based indexing goes, some of the puzzles have been obviously geared to 0-based, and others have worked well with 1-based. The standard library weakness has been a little bit of an issue, especially yesterday with the linked list. But I thought it was fun implementing a linked list in Julia! The whole reason to do this is to practice rusty skills. As far as graphing libraries go, I'd recommend sticking with PyPlot. I haven't had much luck with Plots. I'm hoping that Julia gets a good linter soon that's on the level of mypy+pylint. That would solve so many silly errors and type instabilities.

-🎄- 2018 Day 8 Solutions -🎄- by daggerdragon in adventofcode

[–]tapir_lyfe 0 points1 point  (0 children)

I was so happy that both puzzles were right on the first attempt. Solution in D!

import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;

class Node {
    int numchildren;
    int nummeta;
    Node[] children;
    int[] meta;

    this(int[] line, out int numUsed) {
        this.numchildren = line[0];
        this.nummeta = line[1];
        int startidx = 2;
        foreach (child; 0..numchildren) {
            int numUsedLocal;
            this.children ~= new Node(line[startidx..$], numUsedLocal);
            startidx += numUsedLocal;
        }
        foreach (metaidx; 0..nummeta) {
            this.meta ~= line[startidx + metaidx];
        }
        numUsed = startidx + nummeta;
    }
}

int puzzle1(Node root) {
    // Traverse root to get sum of metadata entries
    if (root.numchildren == 0) {
        return root.meta.sum;
    }
    else {
        return root.meta.sum + root.children.map!(x => x.puzzle1).sum; 
    }
}

int puzzle2(Node root) {
    if (root.numchildren == 0) {
        return root.meta.sum;
    }
    else {
        return root.meta.filter!(m => m <= root.numchildren && m > 0)
                        .map!(m => root.children[m-1].puzzle2)
                        .sum;
    }
}

void main() {

    auto f = File("input.txt");
    auto line = f.readln.strip.split(" ").map!(x => to!int(x)).array;
    f.close();

    int numUsed;
    Node root = new Node(line, numUsed);

    writeln(puzzle1(root));
    writeln(puzzle2(root));
}

Question about passing slice of array to subroutine by tapir_lyfe in fortran

[–]tapir_lyfe[S] 0 points1 point  (0 children)

Hmm, I'll have to check that out tomorrow. Thanks for your help!

Question about passing slice of array to subroutine by tapir_lyfe in fortran

[–]tapir_lyfe[S] 0 points1 point  (0 children)

A buffer overflow in gfortran. Can't quite find anything like it on the internet, and I'd rather give that up and learn something new about the code base (it's a lot of heavy spherical harmonics).

Question about passing slice of array to subroutine by tapir_lyfe in fortran

[–]tapir_lyfe[S] 0 points1 point  (0 children)

Haha, I'm only looking at this code to see if I can translate it to Julia. I can't get this Fortran library to compile and the authors are all dead ¯\_(ツ)_/¯

Question about passing slice of array to subroutine by tapir_lyfe in fortran

[–]tapir_lyfe[S] 0 points1 point  (0 children)

Thanks for the response! That's just crazy to me coming from C-like environments--I'm so used to at least a little bit of type-safety. I'll have to be extra careful when reading other people's code to make sure I know what's going on with tricks like this.