Rage
July 20th, 2011I have been playing around with processing lately.
To increase Arnold’s rage press “+”, “-” decreases it and “r” is to reset.
Just another WordPress weblog
I have been playing around with processing lately.
To increase Arnold’s rage press “+”, “-” decreases it and “r” is to reset.
Google changed the way the define: query works so I had to update my scripts:
I came across this website last night. The attached lectures bring up lots of interesting topics about this concise c64 program. Here are my ports to javacript and Go.
Original Basic:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
Javascript:
for(i=0;i<20480;)document.write(i++%80?String.fromCharCode(9585.5 + Math.random()):'\n');
You can run a version of the javascript program here.
Go:
package main
import "fmt"
import "rand"
func main(){p:=fmt.Print;i:=0;A:if i%0x50==0{p("\n")}else{p(string(int(9585.5+rand.Float32())))};i++;goto A;}
My code ends up with more statements in both languages mainly because of handling text wrapping. You get that for free on the C64. Also, in this modern era of name spaces you have the added verbosity of the object names.
More discussion of the C64 version can be found at lemon64.
Repo man was on the TV the other night. Time to get out your delay pedals.
Here is a little python script that will change your windows background image.
How it works
It will go through all of the pictures in the c:\wallpaper\ directory and picks the next one in the list. It writes the name of the picture to the \HKEY_CURRENT_USER\Control Panel\Desktop but this will not change the picture until a reboot takes place. We want it to change immediately so a call to SystemParametersInfoA is also needed.
I’m using pycron to call the script every hour.
Dirty Old Town CAGED arpeggios
This tab picks out the melody of the song by using arpeggios from CAGED chord shapes.
Julie and me like to spend Saturday mornings at Flea Markets and Garage Sales. Found this one for $1.50.
We got Tate’s guitar working with Garage band this weekend and I got to have some fun playing with it last night. Take a listen: rockabill-e.mp3