histogram of os.urandom 16bits

In [6]:
%matplotlib inline
from matplotlib import pyplot as plt
import numpy as np
from collections import defaultdict
import os, sys
In [17]:
rnds = os.urandom(1000000)
nums = [int.from_bytes(rnds[i:i+2], sys.byteorder) for i in range(0,len(rnds), 2)]
In [18]:
hist = defaultdict(int)
In [19]:
for p in nums:
    hist[p] += 1
In [20]:
xs = sorted(hist.keys())
ys = [hist[i] for i in xs]
In [21]:
<Container object of 65501 artists>

test jupyter post

Write your post here.

In [1]:
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import math


x = np.linspace(0, 2 * math.pi, 200)
sine = np.sin(x)
err = np.random.normal(0, 0.2, len(sine))
y = sine + err
plt.figure(figsize=(5, 3))
plt.plot(x, y)
plt.xlim([0, 2 * math.pi])
plt.title('Some data')

Game design nudging idea.

Kids play a lot of games. FPS's, etc.

So do subtle things in the games to nudge them towards useful (to the kids hopefully) behaviors.

The canonical example I have in mind is stretching. While the character is idle have it go through some simple "ambient" stretching routines. Just simple stuff that people should do anyway.

I wonder how effective it would be.

Climate change deniers

People who deny climate change are like people in a burning building: "Why should I worry? The fire isn't on my floor."

The fire is on the floor below.

Normalcy bias darwinates those who refuse to act.

Corporations exist only for short-term profit. They are incapable of long-term thinking or responsibility.

If a corp can "externalize" a cost instead of taking responsibility, they will.

Corporations are not people and do not have a right to vote nor influence politics. America is the best democracy that money can buy, but that's no excuse for irresponsibility.

We are on 1 planet. Noone gets to leave.

Controlling the corporations: remove the privilege of voting via lobbying.

Any corporation convicted of a felony should lose the right to "vote" via lobbying.

Felonious corporations should not lose their felony in any way, via merger nor acquisition.

If corporations want personhood, then they must suffer the same punishments for criminal behavior as a person.

Profit should never be sufficient grounds for murder, plunder, nor refusal to take responsibility for their actions. Externalizing their costs to preserve their profits is clearly not justified.

nickel gone.

"Hey watch this, there's a hole in space in this corner," he said, flipping a nickel at the corner near the bed.

It vanished without a sound.

Sighing, she throws the covers off, and starts to leave the bedroom.

"I'm not sleeping next to that. And why did you throw away a nickel?", she said grumpily.

He slept like a baby next to the hole to nowhere.

Python code test.

Test posts are for me to try things out and keep around as pointers.


Code block:

for i in range(0, Infinity+Beyond):
    print("Progress is made, one step at a time.")


progress.py (Source)

for i in range(0, Infinity+Beyond):
    print("Progress is made, one step at a time.")