View Single Post
Old 03-15-2012, 09:46 AM   #7
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Question

Quote:
Originally Posted by JustAMan View Post
If you do use it for custom screensaver generation I think you'd have to say "bye-bye, nice to meet you, battery life"...
@JustAMan: Good point for portable use, but it would use less battery if it were recoded in C instead of an interpreted shell script. Also, battery life is not an issue while it is plugged into USB so it can charge. And of course, this could be used to generate static images that could be put into your screensaver folder and used as "normal" screensaver images.

I added 500 karma points to varnie for the first posted screenshots, and another 500 points to thomass for the first complete screenshot.

Here is the screenshot I took using the all-powerful "dd" command:


spoxbrane.png


Q1) From what cultural reference (popular TV episode) was the name of this script derived?
A1) Star Trek, Spock's Brain: http://www.youtube.com/watch?v=2zKDQfVbWqc

Q2) What two properties of the title character of that TV episode fit the image created by this "spoxbrane" script?
A2) Well, the dark inner part of the image looks like a brain in an artistic sort of way, and it was created analytically, which is a trademark property of the title character of that TV episode.

Q3) Does the screensaver interfere with this script?
A3) Not when you run it from diags SSH like I do.

Q4) It takes 13 to 15 minutes to generate the image with this shell script. Faster image generation would consume less battery when not connected to USB. How fast is this image generated after converting the spoxbrane script to a C program?
A4) I don't know. It's on my "To Do" list. Anybody with "spare time" want to provide that answer?

P.S. The original spoxbrane script (before being simplified for this post) could generate different images based on random values obtained like this:
set $(hexdump -n10 /dev/urandom); local n1=$2 n2=$3 n3=$4 n4=$5 n5=$6
Then you need to scale these (0-65535) random numbers to fit the 600x800 display like this:
x=$((n1*600/65536)) y=$((n2*800/65536))

Enjoy playing with this stuff!

P.S. Here is a little "Spock-related" bonus humor for your enjoyment:


Last edited by geekmaster; 03-22-2012 at 03:18 PM.
geekmaster is offline   Reply With Quote