Showing posts with label bzflag. Show all posts
Showing posts with label bzflag. Show all posts

Friday, November 29, 2013

Teaching AP CompSci: CH4 Choosing Data Types Wisely! Quarter II Week 3


Teaching AP CompSci: 
CH4 Choosing Data Types Wisely!

Quarter II Week 3: 11/25-11/29
We finally finished CH4 this week. We have Take Home 4 due this Tuesday. We printed Lab 4. This was a short week due to Thanksgiving, so that's about it! Next week we'll start CH6+Lab5 on Conditional Statements. Of course, Wednesday was GAMEDAY!

Quarter II Week 2: 11/18-11/22
We continued CH4 this week. We went nuts with "Can you name that number?" aka Number Systems. We converted to Base 10. We converted from Base 10. We counted, added and subtracted in various bases: BIN, OCT, HEX. See ScreenCasts below!

Quarter II Week 1: 11/11-11/15
We continued CH4 this week. We also continued "Numeral of the Day!" aka "Can you name that number?" For example, 111BIN, 222TRI, 777OCT and FFFHEX=? We wrote several classes where finals were useful such as the CashRegister class which had public static final double QUARTER_VALUE=0.25 listed after the private instance fields. We also dealt with various forms of input from main: JOptionPane, Scanner and args[0]. When using JOptionPane and args[0] we had to use Double.parseDouble() or Integer.parseInt() quite a bit!

Quarter I Week 9: 11/4-11/8
We started CH4 this week about the differences between byte, short, int, long, boolean, char, float, double variables and finals. We also started "Numeral of the Day!"

Quarter I Week 8: 10/28-11/1
We finished Lab3 which talks about writing your own classes from scratch. Our first TakeHome Tuesday on this chapter is due next week!

Quarter I Week 7: 10/21-10/25
We continued Lab3 which talks about writing your own classes from scratch. We are doing the end of chapter exercises as labs. We do the odds together so I can model new concepts. I am rerecording the odd exercises  as ScreenCasts for YouTube. The students complete the evens as labwork in groups. New Lab1 ScreenCasts are done. New Lab2 ScreenCasts are almost done. Sorry, there's no new ScreenCasts for Lab 3 yet. I have a link to my old Lab3 ScreenCasts. See my DropBox link for all our code so far. See links below.

Quarter I Week 6: 10/14-10/18
We started Lab3 which talks about writing your own classes from scratch. We have to come up with our own Contructors, Accessors and Mutators for the first time. We also discussed Abstraction and Encapsulation! Sorry, there's no ScreenCasts for Lab 3 yet.

Quarter I Week 5: 10/07-10/11
Out sick.... However, I did start using DropBox and I added some screencasts for Lab 2, see below!

Quarter I Week 4: 9/30-10/4
This week we finished Lab2 by introducing the StdDraw class from Princeton's CS101 course. Here we used Object Based Programming to draw Rectangles, Ellipses and Lines! See all the code linked below from my PasteBin account (last link). I've also been redoing my ScreenCasts in the APCS Shorts playlist on my YouTube channel (see below too)!

Quarter I Week 3: 9/23-9/27
This week we started Lab2 based on Chapter 2. In this chapter we discuss constructing objects from existing classes: Rectangle, Color, Random and String. We started talking about Constructors, Accessors and Mutators as well a Private Instance Fields. I'm reworking the ScreenCasts as short summaries after class. I have a new playlist (see below) with only HelloWorld so far.

Quarter I Week 2: 9/16-9/20
We had a good week this week! We finished Lab1 based on Chapter 1 Exercises 1-8 (see Code and ScreenCasts below). We basically covered everything you ever wanted to know about main() methods and println()! We just started talking about Chapter 2 and Lab 2, Object Based Programming (using existing classes, constructors, objects, accessors) at the end of the week.

Our networking and various hardware issues are all corrected now (except the HP Color LaserJet is still down). My networking issues required setting up a static IP on the SmartBoard or Teacher PC. So, I have access to all my sites at school, finally!

address: 10.5.129.25
netmask: 255.255.0.0
broadcast: 10.5.0.254
dns: 10.1.1.19
proxy: NONE! (was 10.0.0.125)

There's a bit of lag on the LAN. So, I think I'll make Static IPs for the students too as there may be a DHCP conflict. However, the student stations are required to have the proxy.

Also, most students can access the ssh server from home. Some of us have Linux running at home which makes accessing java files the same as in class. Some students are logging in using putty from WIN but cannot use GUI applications from home (WIN graphics engine does not recognize the LIN graphics engine). Some have Mac at home and find that the MAC terminal works just like the Linux terminal at home including GUI ssh tunnels using: "ssh -Y userid@173.251.48.56"

Quarter I Week 1: 9/9-9/13
APCS had a slow start this year with a lot of networking and server issues. I think we're up to snuff now. We're in Chapter 1 of Cay Horstmann's fabulous text. All we did was write serveral versions of HelloWorld. This is a fine way to become familiar with our Linux based system. 

We talked about how to use our server from home using putty in Windows or a terminal in Mac and Linux land.

We also talked about CLI vs GUI, ASCII and Unicode, SSH vs FTP, javac vs java, etc. We also talked about the importance of comments and self-documenting code!


What's new this year is that I'm trying to stick to a CLI for coding in java all day every day! All we need is a shell or terminal to run javac, java and a text editor. This way we call login from home and do our work the same way we do in class even from a Mac terminal or by using putty in Windows!



ScreenCasts and SmartNotes and Code, 
oh my:
Below, you will usually find ScreenCasts from this week. We don't have too many SmartNotes in this course. Please see our sample code!

new HelloWorld:


new Lab1:


new Lab2:


old Lab3:


Number Systems:


new Lab4:




Code for APCS: 

2013 APCS DropBox


Well, that's all folks!

Saturday, June 5, 2010

A bit of R&R!


Finally, AP Review is over! Finally, AP Exams are over! Finally, a little bit of R&R! In school, I'm showing my students how to use SAGE, except for Fridays. On Fridays we have LAN Party Friday! We've been playing bzflag for a while, I'm trying to set up Tremulous for next week. The last few days of class, I think we'll top off the Star Trek Trilogy (II, III, IV) with Star Trek VI: The Undiscovered Country.



The weekends have been a lot more relaxed lately with all the Mock AP Exams over and all the grading that goes along with it! So, I've been taking my kids to the city. Last weekend, we spent the whole day just walking through Central Park. What a nice day. We walked all along The Pond on the south end. Then we walked all around the Central Park Zoo. The weather was great for Spring. The park was full of musicians and artists. Right next to the golden chariot monument for the USS Maine, there were a dozen guys from some college trying to earn their fares back whole singing barber shop quartet style. One homeless guy set up a whole percussion section near the zoo made up of anything he could find in the street to make noise with and he was good! We saw all the horse and carriages on Central Park South. There was a Statue of Liberty mime trying to take pictures with us.... Then we had a snack at the Columbus Circle Mall. There's a cool Samsung demo store where we saw all the latest 55" HD 3D LCD TVs...wow!


This past weekend we went to the Tenement Museum, http://www.tenement.org.  We went on a guided tour to a refurbished apartment that was once home to a family of Sephardic Jews fresh off the boat from Greece via Ellis Island circa 1916. The tour included an actress in the apartment pretending to be a daughter of this family by the name of Victoria Confino.  We were told to act the part of newly arrived immigrants ourselves looking for an apartment there too. This was great fun and very educational for my kids! I am going back!




Generally speaking,


Sunday, November 29, 2009

Happy Turkey Day!!!



Happy Turkey Day everyone! Sorry for the belated greeting, but I've been away from cyberspace these past few days as have many of you. I note a sharp decrease this time of year in the internet chatter related to school in general and this blog in particular. Almost noone is on the forums this 4-day weekend (ap-calc, ap-compsci, ap-physics, ap-stats, etc).

Anyway, we had a bit of a disaster the day before T-Day. Its become somewhat of a tradtion to have a little LAN Party for T-Day-eve. I push my students really hard all year up to this point and promised them a little break. So, we used our brand-spanking-new 64-bit fedora installation on the cluster and added bzflag to the mix. Try as we might, however, we could not get the various bzflag clients to connect to a local bzflag server. We finally had to boot up an old KNOPPIX 32-bit DVD running bzfs and all was well after that. So, something is wrong with our 64-bit ethernet drivers or we have to play with our firewalls or, perhaps, selinux? IDK, but we'll figure it out for the daybefore X-Mas I hope!

Generally Speaking,


calcpage@aol.com

Saturday, November 14, 2009

Meeting V

Today's Aim: Install Fest!
Tonight's Reading: Building Parallel Programs, Chapter 5
This Week's Research: PVM and MPI environments
Attending Tues: JeremyA, SteveB, DevinB (fedora install fest)
Attending Thurs: JeremyA, SteveB, DevinB, ArthurD (bzflag stuff)
 
This Tuesday we are finally reinstalling the Linux Partitions on all the PC clients in our PC Classroom.  We have 64-bit AMD Athlon dualcores, so we are using the Fedora 11 64-bit liveCD to do the reinstall over the KNOPPIX 5.3.1 32-bit liveDVD installation we currently have.  

We will also have a make-up meeting this Thursday when we will burn a class set of the Fedora 11 Games liveDVD for our BZFlag LAN Party the day before turkey day!



Happy Clustering,

Meeting V

Today's Aim: Install Fest!
Tonight's Reading: Building Parallel Programs, Chapter 5
This Week's Research: PVM and MPI environments
Attending Tues: JeremyA, SteveB, DevinB (fedora install fest)
Attending Thurs: JeremyA, SteveB, DevinB, ArthurD (bzflag stuff)
 
This Tuesday we are finally reinstalling the Linux Partitions on all the PC clients in our PC Classroom.  We have 64-bit AMD Athlon dualcores, so we are using the Fedora 11 64-bit liveCD to do the reinstall over the KNOPPIX 5.3.1 32-bit liveDVD installation we currently have.  

We will also have a make-up meeting this Thursday when we will burn a class set of the Fedora 11 Games liveDVD for our BZFlag LAN Party the day before turkey day!



Happy Clustering,