Catalina - Capri - 25s International Assocaition Logo(2006)  
Assn Members Area · Join
Association Forum
Association Forum
Home | Profile | Register | Active Topics | Forum Users | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Catalina/Capri 25/250 Sailor's Forums
 General Sailing Forum
 If you wondered why I've been so quiet for so long
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

delliottg
Former Mainsheet C250 Tech Editor

Member Avatar

USA
4479 Posts

Initially Posted - 05/30/2015 :  19:04:46  Show Profile  Visit delliottg's Homepage
I've been taking a year long course in Javascript. I've completed all but my final project, whose instructions were "make something from everything you've learned in the course".

If you're interested, here's my final project: Pentominoes

If you want to cheat, here's a diagram with a set of solved puzzles.

Click & drag to move a piece, double click to rotate a piece, right click to mirror the piece (if it can be mirrored, only 5 of the pieces have a mirror image possible).

This isn't quite ready to turn in, but it's very-very close. I have just slightly less than a month to finish it, the year runs out on the 26th of June, but that should be easy to hit.

If any of you are coders and want to take a look at the code behind the game, just remove the "/show/" from the URL and you'll be able to see HTML, Javascript & CSS that drives the game.

While the game seems simple, it represents weeks of effort on my part.

If you find any bugs, please let me know so I can fix them before my instructor finds them...

David
C-250 Mainsheet Editor


Sirius Lepak
1997 C-250 WK TR #271 --Seattle area Port Captain --

Edited by - delliottg on 05/30/2015 19:08:04

redeye
Master Marine Consultant

Members Avatar

3477 Posts

Response Posted - 06/01/2015 :  06:56:42  Show Profile
Or you can rightclick and select view page source.

I would love to learn more java, ( I just steal simple scripts ) but I guess I'll hafta wait till retirement.. your code looks pretty well structured.

That's some impressive scrip.


Ray in Atlanta, Ga.
"Lee Key" '84 Catalina 25
Standard Rig / Fin Keel
Go to Top of Page

jerlim
Master Marine Consultant

Members Avatar

USA
1484 Posts

Response Posted - 06/01/2015 :  11:01:28  Show Profile
that's pretty cool - nice work!

Jerry
Go to Top of Page

Stinkpotter
Master Marine Consultant

Members Avatar

Djibouti
9089 Posts

Response Posted - 06/01/2015 :  13:42:35  Show Profile
I can't make it work on this iPad--will have to wait to try it on my PC.

My very first experience with any computer, long, long ago, was a Fortran course at Purdue. I didn't really know what a computer (or a program) was! The first day, the professor gave us our term project: Design a computer language and develop an interpretive "machine" for it in Fortran--and a program in your language for the machine to run. I walked out of that first class in a daze--I hadn't understood a thing he said! Our tools were IBM 026 keypunches, and an IBM 7094 mainframe with a job submission desk where we took our boxes of cards and picked up our (mostly) diagnostic printouts.

Finally, I got it--and aced it! I had the only language that included subroutines with variable parameters, and some other whistles I can't remember... (Wowee! ) And I don't remember what the "program" did. But it all changed from stark panic to actual fun!

Boy, was that another era! Hope yours is more fun!

Dave Bristle
Association "Port Captain" for Mystic/Stonington CT
PO of 1985 C-25 SR/FK #5032 Passage before going over to the Dark Side (2007-2025); now boatless for the first time since 1970 (on a Sunfish).

Edited by - Stinkpotter on 06/01/2015 13:54:30
Go to Top of Page

delliottg
Former Mainsheet C250 Tech Editor

Members Avatar

USA
4479 Posts

Response Posted - 06/01/2015 :  19:50:17  Show Profile  Visit delliottg's Homepage
Thanks guys. Dave, it won't work on your iPad, I don't have touch events enabled, that'll be in V2. I've also done punch cards a very-very long time ago in high school.

Right-click and view source won't work so well on this particular bit of code, you're better off to just remove the /show/ from the URL.

Just FYI, Java has no relationship to JavaScript, they're entirely separate languages.

David
C-250 Mainsheet Editor


Sirius Lepak
1997 C-250 WK TR #271 --Seattle area Port Captain --
Go to Top of Page

Stinkpotter
Master Marine Consultant

Members Avatar

Djibouti
9089 Posts

Response Posted - 06/01/2015 :  21:14:14  Show Profile
quote:
Originally posted by delliottg

...Just FYI, Java has no relationship to JavaScript, they're entirely separate languages.
...sorta like SNOBOL was entirely separate from COBOL, or PL/X was entirely separate from PL/I, except that PL/X was a sort of PL/I-like language whose compiler was generated by a system written in (get this) PL/X. If anything about that statement sounds strange to you, welcome to my old world of software product development! (Has anybody heard of U.C. Santa Cruz?)

OK, too much irrelevant, ancient history! I'll fade out (like I did from the software industry).

Dave Bristle
Association "Port Captain" for Mystic/Stonington CT
PO of 1985 C-25 SR/FK #5032 Passage before going over to the Dark Side (2007-2025); now boatless for the first time since 1970 (on a Sunfish).

Edited by - Stinkpotter on 06/01/2015 21:58:25
Go to Top of Page

redeye
Master Marine Consultant

Members Avatar

3477 Posts

Response Posted - 06/02/2015 :  10:01:22  Show Profile
<< Java has no relationship to JavaScript, they're entirely separate languages. >>

Ah... I always thought the scripts were java. Duh..

Ray in Atlanta, Ga.
"Lee Key" '84 Catalina 25
Standard Rig / Fin Keel
Go to Top of Page

delliottg
Former Mainsheet C250 Tech Editor

Members Avatar

USA
4479 Posts

Response Posted - 06/02/2015 :  15:13:49  Show Profile  Visit delliottg's Homepage
quote:
Originally posted by redeye

<< Java has no relationship to JavaScript, they're entirely separate languages. >>

Ah... I always thought the scripts were java. Duh..




Nah, like my books say, Java is to JavaScript as car is to cartoon.

David
C-250 Mainsheet Editor


Sirius Lepak
1997 C-250 WK TR #271 --Seattle area Port Captain --
Go to Top of Page

britinusa
Web Editor

Members Avatar

USA
5404 Posts

Response Posted - 06/02/2015 :  17:59:56  Show Profile  Visit britinusa's Homepage
Early 1980's UCSD Pascal learnt on dumb terminals linked to a national computer for the Open university in the UK.
Keyboard resembled a typewriter, hit the send key and wait for the computer to return the line of script.
Once done use the Run command and watch what happened.
No screen, just a single line printout.

paul

Joint Decision. (Sold)
PO C250WB 2005 Sail # 841.


Moved up to C34 Eximius

Updated August 2015
Go to Top of Page

Stinkpotter
Master Marine Consultant

Members Avatar

Djibouti
9089 Posts

Response Posted - 06/03/2015 :  06:12:53  Show Profile
quote:
Originally posted by britinusa

Early 1980's UCSD Pascal learnt on dumb terminals linked to a national computer for the Open university in the UK.
Keyboard resembled a typewriter, hit the send key and wait for the computer to return the line of script.
Once done use the Run command and watch what happened.
No screen, just a single line printout.

Wow--terminals linked via telephone lines directly to computers that responded to your entries! Where's the anticipation? The hours of doubt? And finally the thrill of victory or the agony of defeat??

Dave Bristle
Association "Port Captain" for Mystic/Stonington CT
PO of 1985 C-25 SR/FK #5032 Passage before going over to the Dark Side (2007-2025); now boatless for the first time since 1970 (on a Sunfish).
Go to Top of Page

Stinkpotter
Master Marine Consultant

Members Avatar

Djibouti
9089 Posts

Response Posted - 06/03/2015 :  06:33:00  Show Profile
Here's a system for you: IBM 026 -> 087 -> 407 -> 522 -> 556 -> 087 -> 407. Done. (The programming language was jumper wires plugged into a board for each machine, and written instructions for the operators moving the cards between the machines.) Been there, done that.

Dave Bristle
Association "Port Captain" for Mystic/Stonington CT
PO of 1985 C-25 SR/FK #5032 Passage before going over to the Dark Side (2007-2025); now boatless for the first time since 1970 (on a Sunfish).

Edited by - Stinkpotter on 06/03/2015 06:35:46
Go to Top of Page

shnool
Former Capri-25 Tech Editor

Members Avatar

USA
1032 Posts

Response Posted - 06/03/2015 :  07:00:45  Show Profile  Visit shnool's Homepage
Right there with you guys, started a little later... digested 3 volumes of "manuals" for my father's Compaq luggable (yes Compaq was because they made the first portable computers, they weighed 80+lbs)... dual floppy drives, 640k RAM... linked via AUI ports over THICKNET, circa 1984.

Learned BASIC, then later ANSI, edline for DOS, then ForTran, then Pascal 7 for DOS, then Pascal 1.5 for windows (OOP) then foxpro for windows 2.5, Crosstalk Mark IV, then Crosstalk for windows (CASL scripting), then Foxpro for windows 5.0 (OOP), now I'm up to Foxpro for windows 9... but I program less now, and instead have 2 programmers working for me including my wife (foxpro programmer) and a JAVA programmer. My life is almost exclusively network administrator now, my electrical engineering degree hasn't been used in 16 years, when I jumped from the telco company to network admin job when I got my MCSE in 1998.

C&C 32 Smith Mountain Lake Virginia

Edited by - shnool on 06/03/2015 07:02:00
Go to Top of Page

Stinkpotter
Master Marine Consultant

Members Avatar

Djibouti
9089 Posts

Response Posted - 06/03/2015 :  15:14:54  Show Profile
quote:
Originally posted by shnool

Right there with you guys, started a little later... digested 3 volumes of "manuals" for my father's Compaq luggable (yes Compaq was because they made the first portable computers, they weighed 80+lbs)... dual floppy drives, 640k RAM...
IBM made a portable 2741 Selectric (golfball typewriter) terminal around 1970, with two boxes that were each bigger and heavier than the first Compaq, with four casters on each. We used them with acoustic couplers for telephone handsets to demo Basic programs on Call/360 time-sharing, one line at a time, as Paul describes, at a blazing 14 characters per second! (Sometimes a character was wrong, but what do you expect??)

Dave Bristle
Association "Port Captain" for Mystic/Stonington CT
PO of 1985 C-25 SR/FK #5032 Passage before going over to the Dark Side (2007-2025); now boatless for the first time since 1970 (on a Sunfish).

Edited by - Stinkpotter on 06/03/2015 15:18:38
Go to Top of Page

csmcg
1st Mate

Members Avatar

96 Posts

Response Posted - 06/05/2015 :  12:19:17  Show Profile
schnool, do you ever attend the SW Fox conference?

quote:
Originally posted by shnool

Right there with you guys, started a little later... digested 3 volumes of "manuals" for my father's Compaq luggable (yes Compaq was because they made the first portable computers, they weighed 80+lbs)... dual floppy drives, 640k RAM... linked via AUI ports over THICKNET, circa 1984.

Learned BASIC, then later ANSI, edline for DOS, then ForTran, then Pascal 7 for DOS, then Pascal 1.5 for windows (OOP) then foxpro for windows 2.5, Crosstalk Mark IV, then Crosstalk for windows (CASL scripting), then Foxpro for windows 5.0 (OOP), now I'm up to Foxpro for windows 9... but I program less now, and instead have 2 programmers working for me including my wife (foxpro programmer) and a JAVA programmer. My life is almost exclusively network administrator now, my electrical engineering degree hasn't been used in 16 years, when I jumped from the telco company to network admin job when I got my MCSE in 1998.

Go to Top of Page

Voyager
Master Marine Consultant

Members Avatar

USA
5430 Posts

Response Posted - 06/05/2015 :  19:46:40  Show Profile
Wow - history here. Worked on pre-PC IBM minicomputer programmed in BASIC at my 1st job. Afterward went to Ga Tech and received an invitation in spring '81 to IBM Windy Hill campus in N. ATL. Introduced the IBM PC then. Ran BASIC. After graduation wrote assembler language on a CPM-based 6502 system. Fortran also. BASIC and FORTH on a Commodore 64 with a cassette storage device.
Installed a BSD UNIX system in 1986 at work connected via 2400 baud modem to Darpanet for email and IM. Programmed in C, C++ and pascal. Learned HTML.
Worked on a XEROX PARQ "Windows" type system in 1988, precursor to Apple's graphical user interface and Windows PCs. Xerox nixed the product because their secretaries complained that it was unusable - as it was nothing at all like an IBM Selectric typewriter. [true story]
Anybody following Halt and Catch Fire on AMC Networks? In its 2nd season. About the early days of PCs and Apple. Cool show whether you were there back then or not. 80s punk rock soundtrack...
Playing with JavaScript recently. Learned from a guy on YouTube.

Bruce Ross
Passage ~ SR-FK ~ C25 #5032

Port Captain — Milford, CT

Edited by - Voyager on 06/05/2015 19:57:44
Go to Top of Page

TakeFive
Master Marine Consultant

Members Avatar

2272 Posts

Response Posted - 06/05/2015 :  20:34:18  Show Profile
In 1983 I built an Apple II+ clone from parts. It was way cooler than the real Apple II+ because it had two floppy drives (160K IIRC) and a separate keyboard. I even burned a custom EPROM that was a direct copy of the Apple II+ firmware. (Sue me.) I wrote Basic programs on it to analyze the data for my PhD dissertation. I also had terminal emulator software which allowed me to connect directly from my graduate lab to the mainframe - everyone envied me for that.

In 1984 I was one of the first to buy the Mac. Our PhD dissertations were not allowed to be printed on dot matrix - they had to be typewritten or printed on something called a laser printer, but I had never seen one. They reportedly had one with the mainframe in the computer center, but it didn't print any symbol characters and had to be written in some cryptic page markup language called SCRIPT. I took a chance and wrote the whole thing on the Mac using Postscript fonts (Courier for text, since it looked like typewriter, and Symbol for the equations). I was betting that the LaserWriter would come out before my final draft was due. Fortunately Apple met their promised ship date, and the University forked over $7000 to buy one. I got to use it just in time for my final draft of my dissertation.

Funny thing, the early drafts were printed on dot matrix, and my PhD advisor made it bleed red with changes with every draft. Once I started turning in chapters that were laser printed, he suddenly stopped making corrections, as if the pages were too perfect to mess with.

Rick S., Swarthmore, PA
PO of Take Five, 1998 Catalina 250WK #348 (relocated to Baltimore's Inner Harbor)
New owner of 2001 Catalina 34MkII #1535 Breakin' Away (at Rock Hall Landing Marina)

Edited by - TakeFive on 06/08/2015 18:41:32
Go to Top of Page

Stinkpotter
Master Marine Consultant

Members Avatar

Djibouti
9089 Posts

Response Posted - 06/06/2015 :  09:34:05  Show Profile
Ahhh, the memories! Speaking of dot-matrix printing and graphical stuff, in the early '70s a friend of mine invented a dot-matrix graphics system for the 2741 Selectric terminal. He designed a "golf ball" that used the normal character positions on the ball for dots that were positioned in something like an 8x8 (?) matrix within each character printing position. He then wrote routines (in Basic) that would translate graphical input to "high resolution" graphics using this ball--backspacing multiple times to print different dot positions within a character position to create a segment of a line, shading, or whatever... IBM manufactured the ball to his specs, and many of our time-sharing customers bought them. I wrote a charting program that used his routines to help end-users create nice graphics--but I don't remember much about it! The fog is thickening...

Dave Bristle
Association "Port Captain" for Mystic/Stonington CT
PO of 1985 C-25 SR/FK #5032 Passage before going over to the Dark Side (2007-2025); now boatless for the first time since 1970 (on a Sunfish).
Go to Top of Page

delliottg
Former Mainsheet C250 Tech Editor

Members Avatar

USA
4479 Posts

Response Posted - 06/06/2015 :  12:52:17  Show Profile  Visit delliottg's Homepage
Here's the final project (different URL than the one above). Pentominoes

I'm getting ready to turn in the project right now. Hope I don't have to make any changes!

Now maybe I'll get a weekend free to actually take my boat out sailing!

David
C-250 Mainsheet Editor


Sirius Lepak
1997 C-250 WK TR #271 --Seattle area Port Captain --

Edited by - delliottg on 06/06/2015 12:52:46
Go to Top of Page

bigelowp
Master Marine Consultant

Members Avatar

USA
1800 Posts

Response Posted - 06/07/2015 :  15:07:36  Show Profile
You are all WAY over my head! One year on special assignment to the MIS department of the company I worked for in the late 1970's convinced me that I had better stick to something else -- anything else!. The closest I can offer is my late uncle Julien Bigelow (you can google him) who gave all his nephews and nieces lessons on how to use a slide rule -- a right of passage in our extended family back in the 60's and 70's. We never realized it at the time that he was a true software programming pioneer.

Peter Bigelow
PO - C-25 TR/FK #2092 Limerick
Rowayton, Ct
Port Captain: Rowayton/Norwalk/Darien CT
Go to Top of Page

Chief RA
Chief Technical Advisor

Members Avatar

USA
191 Posts

Response Posted - 06/08/2015 :  16:12:58  Show Profile
Well guys I hated that stuff! Made it through on my first Business BS(1973)and never looked back! I am a technical type not programmer! I have been in maintenance Electronics since 1958. Progressed to Industrial & Electronic Eng. in 1979,BA and am certified in all major fields of electronics, Comm.,Radar,Sonar and Comp.(AS). FCC cert. #1890, (radar and comm.) Doctorate pay as a JC College Prof. Likely you will never find an Engineer certified in all 4 fields of electronics.
You do still need $3.50 to get a beer in a cheap bar! Later, Chief

COMPASS ROSE C250WK
Tall Mast, Wing keel
PORT CHIEF, Bodega Bay Ca.
IE,EE,FCC lic #1890

Edited by - Chief RA on 06/08/2015 16:18:01
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Association Forum © since 1999 Catalina Capri 25s International Association Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06
Notice: The advice given on this site is based upon individual or quoted experience, yours may differ.
The Officers, Staff and members of this site only provide information based upon the concept that anyone utilizing this information does so at their own risk and holds harmless all contributors to this site.