Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Jim Foltz
RE: tk robot runner [ reply ]  
2005-12-31 05:19
Has anyone tried this? Just wondering if it worked.

Updated version is here:

http://www2.ald.net/~jimfoltz/rrobots/

* added directory browser
* should work on Windows machines now


By: Jim Foltz
tk robot runner [ reply ]  
2005-12-26 20:44
Here is a rudimentary tk front end to run rrobots.rb. I got tired of typing.

You need to edit it to find your robot directory.

It's form came right out of "Ruby in 21 Days" by Slagell, so maybe it's not too hack-ish.


#start of ruby encoded files
#start of ruby encoded file rrunner.rb
x=<<EODATA
eJyVVttu2zgQfedXTKhibaeunBbYPgR1FrtJ+lRgsW6w3dYwAl1omzAlqhQV
W7D17zskJflSF1YdOKaGozMzh2dG8q5GRa5GQkaBGIU8HakiLAnxQKkiTZny
VUiIYt8LrhhQvaKEvMpgDFugoVQxU2se6yWF8R28HQJVTHA2t5d0oaR8YRQq
BJBS401Pqwku/JSt+wNE0FwLBJ1MbCTjaPx8zCLu0+/UuLAN1wZg86xYbhH+
DRQPQsEMCinPm5UMpT5jJ16XD8E/uJfpnC9wiesvS4bFB/gtZaHAof9BJvj7
HHM1BuptH7jys3VcjcweNXc9sHlQCA2YYSGk5jLNXRn+SyAKhtm9v7lxFRxZ
bPjHNAY532fRKXGXvYn9UQUJy3G1QfTnubmybFi75d8wPYRX2YB45WWfDh6G
lAs+oU4veBDytPoUhEw4exN1ALEkAJptNNCNYfQWKBqyIFr1ac5j5hQn2FzT
AWFpTPCf/q8Rx2OqVflTyJdaImBPB41W0vB7EwBOI0Ad4nKu5UmuP4XCbL/+
Yrbl2WwdXGe9oFaMjDUInutQbrrfSFTdY6j8KTZA0w3VaPrnm2+zaxwcdNY6
2V8/CTLY7tQOlJ9ngut+b9QbTN+8nVXO0c+l0lfEcxcxE0yzfs/vDX4wWVvm
YInI9WTf8Z9cJbWyWlXicFoyvlhqOr57dzOkOUJFOpF4HOM7mmCn8kwwVE+L
5vM0Z0r3KVJKh3Btgw32w2U6IySPlBTiIPpnawgDdRq/PsJIJkmAzb2FXaAW
+Q724coXztZwbcw48s4oRtn0sZA5F8KZykZBexirgl9SwF+F1mY6dT97D+4F
C1SjGnBk2hFnuvxeKEuGA7ZMtL1/1B8WxXSHt+flYHj7C6b/zlj6kQs89OaM
eqZyrQqEqo4Y3XMQFapNyWdBtETZHXHd7j5HthBkvDpM42LD4ow1pwGhLfEW
8PEpcsBnZpTE+HBbc+xJ7E8pCi51moMBtZXhc0QFpaXJIXQiyrpe0cNycQ1w
KEZzzXF5nga33ZCR7ppbP3xwXTRNZ5ZOLLzecgFcRXY0Dt3MGdb7A3Q4q9MT
ov4peMOTLdted6raeB7V3LwPHM66rqo9kvx9YJo0WnUX/ZH6HSu3gK3DRZy3
CQqeMnvUbMOiAtnlmpCYzVsaHYsnJOIO8oH9ja9e4I+U28EBCt7W3FFtvK25
pwJqhGl6q3ZpB+rRAPa2yrhWNfRr+4KCpt9sp31+enicTPzMpEcN/LiO4hIb
17F+9PW2iGaGYoaKsvt5mWuWmCAdHztIXRLwFISU2SXnw5cXN9QO3lSc4fRy
P22doVVVPRRxopjwNjr5H5aCQCA=
EODATA
x=x.unpack("m").first
require 'zlib'
File.open("rrunner.rb","w") do |f|
f.print Zlib::Inflate.inflate(x)
end
#end of ruby encoded file rrunner.rb
#end of ruby encoded files