Pong 2.0

Here it is pong 2 .

0[sto]W
0[sto]S
1[sto]B
3[sto]Y
7[sto]X
-1[sto]L
-1[sto]M
0[sto]C
2[sto]Q
While 1
getKey[sto]K
If K=26
Then
If B<13+W
Then
B+1[sto]B
End
End
If K=24
Then
If B>1
Then
B-1[sto]B
End
End
ClrHome
If W=0
Then
Output(8,B,”^^^^”)
End
If W=1
Then
Output(8,B,”^^^”)
End
Output(Y,X,”O”)
If C=Q
Then
Output(Y,X,”O”)
0[sto]C
X+M[sto]X
Y+L[sto]Y
If Y=0
Then
2[sto]Y
L*-1[sto]L
End
If X=0
Then
2[sto]X
M*-1[sto]M
End
If X=17
Then
15[sto]X
M*-1[sto]M
End
If Y=7
Then
If X>=B
Then
If W=0
Then
If X<=B+3
Then
S+1[sto]S
L*-1[sto]L
End
End
If W=1
Then
If X<=B+2
Then
S+1[sto]S
L*-1[sto]L
End
End
End
End
If Y=8
Then ClrHome
Disp “You Lose”
Disp “You score was”
Disp S
Stop
End
End
1+C[sto]C
If S=5
1[sto]Q
If S=20
1[sto]W
End

Emulate Pong on TI 83

This isn’t a tutorial just a summary on howto do it.
Emulator – http://www.ticalc.org/archives/files/fileinfo/84/8442.html
ROM – http://www.theoldcomputer.com/Libarary’s/Emulation/BIOS_Roms/ti83rom.zip
File to upload rather than typing out the whole game if you ask me nicely via email

Pong 2.0

I now have Pong 2 which has sevral bug fixes, larger play area and the bat gets smaller at a certain level. Shall post code here when I feel like it, it’s so hard to copy out stuff on these calc, anyway, my next target is SNAKE.

PONG

This is pong for the Ti-83 calulator and works on TI-83 plus, should work on most TI calculators I guess but i havn’t tested it.Oh and [sto] will represent the sto arrow. DO NOT TYPE IT ALL IN ALPHA, REFER TO MANUAL IF NEED BE.

0[sto]S
1[sto]B
3[sto]Y
7[sto]X
-1[sto]L
-1[sto]M
0[sto]C
2[sto]Q
While 1
getKey[sto]K
If K=26
Then
If B<13
Then
B+1[sto]B
End
End
If K=24
Then
If B>1
Then
B-B[sto]B
End
End
ClrHome
Output(7,B,”MMMM”)
Output(Y,X,”O”)
If C=Q
Then
Output(Y,X,”O”)
Output(1,1,5)
0[sto]C
X+M[sto]X
Y+L[sto]X
If Y=0
Then
1[sto]Y
L*-1[sto]L
X-M[sto]X
End
If X=0
Then
1[sto]X
M*-1[sto]M
Y-L[sto]Y
End
If X=17
Then
16[sto]X
M*-1[sto]M
Y-L[sto]Y
End
If Y=7
Then
If X>=B
Then
If X<=B+3
Then
S+1[sto]S
L*-1[sto]L
End
End
End
If Y=8
Then ClrHome
Disp “You Loose”
Stop
End
End
1+C[sto]C
If S=5
1[sto]Q
End

afraid.org round robin, with dynamic IP’s

This is basiclly for all the people that want to break the RFC standards and afraid.org saft measures without doingeither of the two. This is the problem as I see it, you and your friends create this ultra cool irc network inwhich you have a few servers and a domain name, howto share that irc.yourdomain.com between yous, well you could make a “A Record” for each person creating a round robin, but this doesn’t work since most of you’s proberly have dynamic IPs. Wouldn’t ya’ just love to be able to create a round robin with Cnames, well that would be against RFC standards. Anyway here is my solution, I use this script with afraid.org to update A records in my subdomain every 5 minutes using good ye’ old crontab. The php script basiclly gets the IP addresses from your friends records you select and places them into the round robin A Records, anyway here it is. By the way, this php script shouldn’t break anything, but if it does, it’s not my fault. (Yes i know this is a dodgy post)

Dead Link

VNC your FreeBSD

A few days ago I showed you how-to store your data on a samba share for windows, this time I’ve decided to do something a bit different. The aim of the project is that I get the same session with everything still running from when i logged off no matter which computer im on including area’s out side my home network. I setup on my freebsd server, vncserver by going

$ sudo pkg_add -r vnc

and then ran it with this command

$ vncserver

On first start it’ll ask you to supply a password to protect from strangers controlling your PC. To VNC you need a VNC client like tight vnc for windows or vncviewer, the address is ipaddres:1 (some times you might have to replace the 1 with the number it reports back in the terminal when started, but usually its 1) . It didn’t really look to pretty. I dediced to pretty it up with gnome, though the steps should be the same for kde.

$ pkg_add -r gnome2

After that finished I had to tweak the ~/.vnc/xstartup file so that the right window manger and that started. Comment out twm and xterm and add this to the end of the file.

gnome-session &

Then kill the vncserver and restart it :

killall Xvnc


vncserver

And you can login into your nice gnome desktop. I decided to osxify my desktop by following a ubuntu walk throughbut it doesn’t have anything that stops you doing it in other operating system. It can be found at http://www.supriyadisw.net/2006/09/ultimate-ubuntu-dapper-look-like-osx .

And here is my current desktop, I need have a nice OS X type wallpaper but decided to go with one of mine.