BFOIT - Introduction to Computer Programming

New Installation Procedure - August 19, 2016

New Way To Download TG.jar, TurtleGraphics.zip, README, ...

In mid-August, the BFOIT.ORG website hosting service migrated our content and services to a new server.  Let's just say it wasn't transparent... There were a few problems.  Beause of this migration, anonymous FTP service is no longer available.

Here are the new download sections from Installation Notes:

Obtaining the TG Programming Environment (TG.jar)

Using A Browser

The easiest way to run the TG application is to simply grab the TG.jar file from the BFOIT website.  And the easiest way to do this is by taking advantage of your browser's built-in ability to perform an FTP (File Transfer Protocol) GET function. You do this by typing:

        ftp://TGDownloads@guyhaas.com:TGDownloads@guyhaas.com/ 

into the browser's search bar. Figure H.1 shows doing this with the Chrome browser.

Figure H.1

And once you've entered it, Figure H.2 shows what you'll get.

Figure H.2

You can then download TG.jar simply by clicking on its name.

Another file that may be of interest to you is TG_VersionHistory.txt. As the name indicates, it is a list of what has changed in TG. If you are interested in what has changed in some version, simply click on its name and read through it.

Using A Command Prompt, Terminal, or Shell Window

Another way to FTP TG.jar is via a Command Prompt (Windows), Terminal (OS X), or shell (Unix/Linux) window. If you are using Windows and are unfamiliar with a Command Prompt window, here is Gizmo's description.

Here is an example session.

    C:\Users\guy> ftp ftp.guyhaas.com
    Connected to guyhaas.com.
    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    220-You are user number 1 of 500 allowed.
    220-Local time is now 13:54. Server port: 21.
    220-This is a private system - No anonymous login
    220 You will be disconnected after 15 minutes of inactivity.
    User (guyhaas.COm:(none)): TGDownloads@guyhaas.com
    331 User TGDownloads@guyhaas.com OK. Password required
    Password: TGDownloads
    230-OK. Current restricted directory is /
    230 0 Kbytes used (0%) - authorized: 1024 Kb
    ftp> bin
    200 TYPE is now 8-bit binary
    ftp> get TG.jar
    200 PORT command successful
    150-Connecting to port 28325
    226-File Successfully transferred
    226 0.259 seconds (measured here), 1.34 Mbytes per second
    ftp: 362290 bytes received in 0.34Seconds 1065.56Kbytes/sec.
    ftp> bye
    221 Logout.

    C:\Users\guy>
                        

What I typed is in green.  Numbers that will vary are in blue. The email address you type in at the "Password:" prompt is not displayed.

Java Turtle Graphics Source Code

You can also do turtle graphics stuff in Java.  I have packaged together support for the graphics-oriented Logo commands and operators from TG, making them available in Java programs you can write.  To access them, you simply instantiate a TurtleGraphicsWindow class, and invoke it methods.

To use TurtleGraphicsWindow, you will need its Java source code and the TG source code files that it accesses.  You must copy these source code files onto your computer and compile them.  I've put all of the source code you need into a .jar file and placed it on the website's TGDownloads ftp directory.  Here is an example session of getting the files on a Microsoft Windows system.

    C:\Users\guy> ftp ftp.guyhaas.com
    Connected to guyhaas.com.
    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    220-You are user number 1 of 500 allowed.
    220-Local time is now 13:54. Server port: 21.
    220-This is a private system - No anonymous login
    220 You will be disconnected after 15 minutes of inactivity.
    User (guyhaas.COm:(none)): TGDownloads@guyhaas.com
    331 User TGDownloads@guyhaas.com OK. Password required
    Password: TGDownloads
    230-OK. Current restricted directory is /
    230 0 Kbytes used (0%) - authorized: 1024 Kb
    ftp> bin
    200 TYPE is now 8-bit binary
    ftp> get TGW_Src.jar
    200 PORT command successful
    150-Connecting to port 29470
    226-File Successfully transferred
    226 0.180 seconds (measured here), 1.48 Mbytes per second
    ftp: 280495 bytes received in 0.31Seconds 901.91Kbytes/sec.
    ftp> bye
    221 Logout.


    C:\Users\guy> jar xvf TGW_Src.jar
     created: META-INF/
     inflated: META-INF/MANIFEST.MF
     inflated: AbortException.java
     inflated: ArrowTurtle.java
     inflated: BallTurtle.java
     inflated: BoxTurtle.java
     inflated: CrossTurtle.java
     inflated: DiamondTurtle.java
     inflated: Params.java
     inflated: PixelRectangle.java
     inflated: Sprite.java
     inflated: SpritePixels.java
     inflated: TGCanvas.java
     inflated: TGFileIO.java
     inflated: TGArcOp.java
     inflated: TGFillOp.java
     inflated: TGGraphicsOp.java
     inflated: TGKeyHandler.java
     inflated: TGLabelOp.java
     inflated: TGLineOp.java
     inflated: TGMouseHandler.java
     inflated: TGPoint.java
     inflated: TGSetPixelsOp.java
     inflated: TGWexample1.java
     inflated: TGWexample2.java
     inflated: TGWexample3.java
     inflated: TGWexample4.java
     inflated: TGWexample5.java
     inflated: TGWexample6.java
     inflated: TGWexample7.java
     inflated: TriangleTurtle.java
     inflated: TurtleGraphicsWindow.java
     inflated: TurtleTurtle.java
     inflated: Clouds.jpg
     inflated: Parrot.png
     inflated: compile_tgw.bat

    C:\Users\guy>
                        

What I typed is in green.  Numbers that will vary are in blue. The email address you type in at the "Password:" prompt is not displayed.

If you would prefer to access the files in .zip format, I've provided a file, TurtleGraphics.zip, in the ftp directory.  Make sure to use ftp's bin command to transfer the file in binary/image mode.

Public Domain Mark
This work (BFOIT: Introduction to Computer Programming, by Guy M. Haas),
identified by Berkeley Foundation for Opportunities in IT (BFOIT),
is free of known copyright restrictions.