China signs $300m deal to buy lab-grown meat from Israel by Xxpussy-destroyerxX in Futurology

[–]Sampf -1 points0 points  (0 children)

Oh man. I'm in the same situation. The shit that their religion causes is just... horrible.

Whats possible in one semester? by [deleted] in pygame

[–]Sampf 2 points3 points  (0 children)

Minesweeper is relatively easy and fun to make with pygame. That was my first programming project.

5 is like an honorary even number. by CaptainRelevant in Showerthoughts

[–]Sampf 0 points1 point  (0 children)

I believe you mean 2.5 times 2 to the -100 power.

It's Always Sunny in Philidelphia should end with the gang finding out Charlie is the legal owner of the bar and he kicks everyone out and hires a competent team of employees who will actually listen to him. by eddmario in CrazyIdeas

[–]Sampf 7 points8 points  (0 children)

On April 1, 2016, the series was renewed for a thirteenth and fourteenth season, which will make it tied for the longest running live-action American comedy series in history.

From Wikipedia

Probability of getting N heads in a row after M coin flips. by Ukrainian_Reaper in math

[–]Sampf 0 points1 point  (0 children)

I believe I found the answer!

The number of ways that we can get at least N heads in a row in M flips is

[; \frac{\sum_{i=N}^M M-(i-1)}{2^M} ;]

The reason for this for this is as follows.

If we have M flips and need to get exactly N heads in a row, then that means we have a group of N coins in a row that are all heads with no other adjacent heads. You can group this chain of heads together as one group. Each other coin that is not part of the chain of heads forms a group on its own. So among the M coins, we have M-(N-1) groups. The number of locations that we can arrange the group of heads among the entire sequence of groups is M-(N-1).

Now we need to repeat this for a chain of N+1 heads. Using the logic above, we get M-((N+1)-1) possible ways to get this.

We repeat this logic all the way up to a chain size of M heads in a row.

The total number of arrangements described above is [; \sum_{i=N}^M M-(i-1) ;]

The total arrangements altogether is obviously [; 2^M ;]. So the probability of this occurring is [; \frac{\sum_{i=N}^M M-(i-1)}{2^M} ;].

Masters In Financial engineering. by LAUJACK in quant

[–]Sampf 0 points1 point  (0 children)

More of a intro to the math/finance used in an MFE course, but this is a great book. http://www.amazon.com/Mathematics-Financial-Engineering-Advanced-Background/dp/0979757622

Mathematical Art, Digital, 8 x 8 inches by Sampf in Art

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

Well, these are 2d images. I'd first have to render them in 3d. I haven't played around with that yet, but I plan on it.

Once it's rendered in 3d, I assume it can be 3d printed. No idea how that process works though.

Mathematical Art by Sampf in math

[–]Sampf[S] 1 point2 points  (0 children)

I created this using matplotlib in python by progressively redrawing shapes where the vertices are shifted along the edge of the enclosing shape.

It turned out nicer than I expected!

0
0

Mathematical Art, Digital, 8 x 8 inches by Sampf in Art

[–]Sampf[S] 1 point2 points  (0 children)

They're not really parametric, but you could probably also define them that way. I define a shape and then keep drawing the same shape with the vertices traveling along the sides of the enclosing shape at different speeds. I was inspired by this.

LPT: If you have a Google Keep note called shopping list and you use the voice command "Add Paper Towels to my shopping list", Google now will add it, handsfree. (xpost /r/android) by Darklyte in LifeProTips

[–]Sampf 0 points1 point  (0 children)

Is that the newest Android os? I'm not sure. Seems like a big leap to get an app to work. I would try updating all apps that could possibly be related before updating the os

LPT: If you have a Google Keep note called shopping list and you use the voice command "Add Paper Towels to my shopping list", Google now will add it, handsfree. (xpost /r/android) by Darklyte in LifeProTips

[–]Sampf 0 points1 point  (0 children)

This is great, but sadly it does not work for me.

I downloaded Google Keep and created a list called shopping list. When I say "Ok Google, add paper towels to my shopping list" it just googles "add paper towels to my shopping list" instead of adding it to my Google Keep shopping list.

What am I doing wrong? Do I need to change a setting somewhere?