Profile cover photo
Profile photo
Thomas Olson
8,754 followers -
Forged by Design
Forged by Design

8,754 followers
About
Thomas's interests
View all
Thomas's posts

Post has attachment
Okay with me.

Post has attachment
I mean... Damn.

Post has attachment
Holy shit! The camouflaged pillow! It's still here! But it's migrated to an even harder-to-spot location. XD
Photo

Post has attachment
I mean, my birthday IS coming up...

Post has attachment
Cute little crow feet in the snow.

Shape silhouetted like a shadow in the glow.

Remnants of his passing, black torso, three toes.

What was he looking for, and where did he go, leaving cute little crow feet stamped in the snow?
Photo

Post has attachment
Somebody's already stuck on the hill. Man, I don't even own a pair of boots. >_<
Photo
Photo
2/6/17
2 Photos - View album

Post has attachment
What the entire fuck? This just came down instantly with no warning. The whitewashing begins... #thankstrump
Photo

Post has attachment
My new Mavic Pro 4k quadcopter. This thing is awesome!
PhotoPhotoPhotoPhotoPhoto
1/30/17
5 Photos - View album

Post has attachment
I just got one of these. Holy crap it's dope as hell! Super high quality. It's extremely nice. Can't wait to actually use it. hehe...

Post has attachment
Don't know if anyone will find this interesting or not, but it was a fun little project for me.

This image shows a 512x512 pixel box. What you are seeing here is a graphical representation of prime numbers.

Each pixel is assigned a number. Numbers 0-262143 are represented here. The blue colored pixels are prime numbers. The gray are not. Each pixel is painted left-to-right, row by row, and a check for prime is done each time. As the numbers get larger, this check takes longer and longer.

It basically divides the assigned number by numbers smaller than it (not EVERY number, mind you--it tries to be efficient) to find out if any of them are equally divisible (no remainder). It's enough numbers that at 200k, it can take quite some time. The time to render this image then can take several minutes. On an old enough machine, I imagine this could take hours.

The square is actually an HTML table rendered in a browser. It is generated using Java and Freemarker code that I developed as an interesting diversion.

It can scale too. By changing a single variable, I can adjust how high it counts, and it will try to find the highest number of columns that is equally divisible by that number so that it contains only full rows (if possible) and as square as possible. I didn't want to go much higher than 512x512 because I don't want this mid-range i7 laptop to run out of heap space or something while trying to process all the information. :P I bet my desktop at home could do it much more quickly, but I haven't tried that yet.

Initially, I had it generating random colors for each pixel, and the primes were brighter (restricting the R G and B channels to 128-255), whereas the non-primes were dimmer (restricted to 0-127), but it was frankly uglier and harder to really see what was happening. It looked more like static than something meant to represent some semblance of order.

I've also attached a version of that to this post, but in that one, it shows prime numbers where the row number and column number are both prime, so only where they intersect. It resets to 0 at the beginning of each row, so it's not representing all 262144 numbers, but 0-511 repeating in both directions, hence the more pattern-like appearance.

Math is art...I guess?
Photo
Photo
1/25/17
2 Photos - View album
Wait while more posts are being loaded