Showing posts with label scientific computing. Show all posts
Showing posts with label scientific computing. Show all posts

Friday, December 14, 2012

CIS(theta) 2012-2013: December Update!

Computing Independent Study 2012-2013

DECEMBER UPDATE

We finally had a chance to meet this month in our new PC Lab! We got pelicanHPC to run 3 cores at about 1.2 GFLOPS. We have AMD Phenom IIs. These CPUs are supposed to be quad-cores. It seems one core is dead. Even so, that's not a bad start. However, we could only run pelican in SMP mode. We could not PXE boot any other nodes. We are also looking into Flame Fractals.
********************

NOVEMBER UPDATE
Sorry to say that we had no meetings this month. I was hoping for 3 meetings, but Hurricane Sandy changed everything! We are in a new room where we may be able to try out liveLinux CD based MPI clusters next month. Stay tuned!
********************

OCTOBER UPDATE #2
That was a great meeting today! We burned 8 CDs of Precise Pangolin and reinstalled the whole back row of our PC LAB/Classroom. Many thanx go to Jeremy for coming to vist today and lending a hand! Here's the steps we followed for a minimal install of the Student Stations (64bit Athlons):
Step1: 
Reboot each Linux box with the current  CD. Answer some basic questions about time zone, userid, passwd, no login on bootup, etc.
Step2:
Reboot each Linux box without the CD. Make sure to configure the gigE cards and proxy server:
IP: 10.5.129.x
NetMask:255.255.0.0
GateWay: 10.5.0.254
DNS: 10.5.0.254
Proxy: 10.0.0.125
Step3:
Configure System Settings as desired (unit circle trig calculator background, no screensaver, etc).
Step4: 
We had to switch Software Sources in the Ubuntu Software Center (edit/source) to Main before this would work:
sudo apt-get update
sudo apt-get upgrade
Step5:
Now, we could use the Ubuntu Software Center to install WINE.
Step6:
I copied my VTI83 and VTI89 directories from my memory stick to the Desktop. Then, after editing preferences to have VTI open with WINE, I configured each calculator.
Step7:
I will edit my /etc/crontabs tomorrow....
Step8:
We haven't decided what else we may have to install (local SAGE server, JRE, openSSH, openMPI,etc). We'll have to think about that! Here's some info on install fests from prior years:
http://shadowfaxrant.blogspot.com/2011/05/2-so-many-hard-drives-so-little-time.html
http://shadowfaxrant.blogspot.com/2011/01/then-god-mage-midterm-week-and-saw-that.html
http://shadowfaxrant.blogspot.com/2010/06/so-many-linux-distros-so-little-time.html
********************

OCTOBER UPDATE
We decided to try out the new Ubuntu Linux 64bit Desktop 12.04 nicknamed Precise Pangolin. So we surfed on over to http://www.ubuntu.com and downloaded the latest ISO. We burned the CD, rebooted a guinea pig box and reinstalled it. This should be a simple procedure as we no longer use dualboot or dualnic boxes. However, we ran into a SNAFU right away! Intranet gigE works fine, but we can't get on the Internet? OOPs, we forgot the network proxy. If at first you don't succeed, try, try again!

Ubuntu Release History
4.10 Warty Warthog (mammal)
5.04 Hoary Hedgehog (mammal)
5.10 Breezy Badger (mammal)
6.06 Dapper Drake (bird)
6.10 Edgy Eft (amphibian)
7.04 Feisty Faun (mammal)
7.10 Gutsy Gibbon (mammal)
8.04 Hardy Heron (bird)
8.10 Intrepid Ibex (mammal)
9.04 Jaunty Jackalope (mythical beast)
9.10 Karmic Koala (mammal)
10.04 Lucid Lynx (mammal) 
10.10 Maverick Meerkat (mammal) 
11.04 Natty Narwahl (mammal) 
11.10 Oneiric Ocelot (mammal) 
12.04 Precise Pangolin (mammal) 
12.10 Quantal Quetzal (bird) release: 10/18

Guardian, our ssh server, is running 10.04 32bit. Guardian has a dualcore 32bit intel Xeon processor with 2GB RAM and a 512GB RAID drive.

Caprica, our ftp server, is running 10.04 32bit. Caprica has a dualcore 32bit intel Xeon processor with 2GB RAM and a 512GB RAID drive.

Shadowfax, our teacher station, is running 11.10 32bit. Shadowfax has a dualcore 64bit amd Athlon processor with 2GB RAM and a 256GB hdd. We use a 32bit OS here as SmartNotebook doesn't run on 64bit....

Alpha-Omega, our student stations, are running 11.04 64bit. These Linux boxes, like Shadowfax, have dualcore 64bit amd Athlon processors with 2GB RAM and a 256GB hdd.

We are only upgrading Alpha-Omega to 12.04 (or 12.10 if it's available when we upgrade in a couple of weeks). We are also waiting for a hardware upgrade for Alpha-Omega to amd quadcore Phenoms!
********************

SEPTEMBER UPDATE
We had our traditional first organizational meeting:

(1) Wreath of the Unknown Server: 
We visited our first ssh server, Colossus, which is still in the switch room though dormant. I set it up for the first time in 1995 running Slackware Linux. Colossus ran for 12 years straight, 24x7 never having to shut down, reboot or even have anything re-installed! Colossus would not die. We finally just replaced Colossus with a dual-core Intel Xeon box complete with a RAID drive running 1TB. Old Linux boxes never die, they just fade away...


(2) Display Case Unveiled: 
We took down a ton of fractal prints and ray tracings from Room 429 to the 2 cases on the 1st floor near the art wing. We decorated both cases as best we could and left before anyone saw us. Must have been gremlins.

(3) Recruiting 2012: 
We decided that we did not have a good pool of candidates to recruit more CIS(theta) members for this year's Geek Squad, so we tabled that topic.

(4) Planing 2012: 
Next meeting would have been 9/28 but that's Yum Kipur. So, we have to wait another 2 weeks after that for 10/10 at which point Ubuntu Precise Pangolin 64bit release 12.10 Desktop Edition should be available for a mini install fest. After that, we may use bootable cluster Linux CD distros to learn MPI.
==================================
What we are researching I (Sept)
(look what this school did in the 80s): 
Thomas Jefferson High courses
http://academics.tjhsst.edu/compsci/parallel/
Thomas Jefferson High paper
http://www.tjhsst.edu/~rlatimer/techlab07/BWardPaperQ3-07.pdf
Thomas Jefferson High ftp
http://www.tjhsst.edu/~rlatimer/techlab07/
Thomas Jefferson High teacher
http://www.tjhsst.edu/~rlatimer/


What we are researching II (Oct)
(clustering environments): 
Parallel Virtual Machine
http://www.csm.ornl.gov/pvm/
openMOSIX
http://openmosix.sourceforge.net/instant_openmosix_clusters.html
Message Passing Interface
http://www.open-mpi.org/


What we are researching III (Dec)
(clustering environments): 
Cluster By Night
BCCD
pelicanHPC
Flame Fractals
http://en.wikipedia.org/wiki/Fractal_flame


==================================
Today's Topic:
CIS(theta) 2012-2013 - PelicanHPC


Today's Attendance:
CIS(theta) 2012-2013: Kyle Seipp


Today's Reading:
Chapter 3: Building Parallel Programs (BPP) using clusters and parallelJava
==================================
Membership (alphabetic by first name):
CIS(theta) 2012-2013: 
Kyle Seipp

CIS(theta) 2011-2012: 
Graham Smith, George Abreu, Kenny Krug, LucasEager-Leavitt

CIS(theta) 2010-2011: 
David Gonzalez, Herbert Kwok, Jay Wong, Josh Granoff, Ryan Hothan

CIS(theta) 2009-2010: 
Arthur Dysart*, Devin Bramble, Jeremy Agostino, Steve Beller

CIS(theta) 2008-2009: 
Marc Aldorasi, Mitchel Wong*

CIS(theta) 2007-2008: 
Chris Rai, Frank Kotarski, Nathaniel Roman

CIS(theta) 1988-2007: 
A. Jorge Garcia, Gabriel Garcia, James McLurkin, Joe Bernstein, ... too many to mention here!

*nonFB
==================================
Well, that's all folks, enjoy!
Happy Clustering,
mailto:calcpage@aol.com


Sunday, September 16, 2012

Teaching CSH: Chapter 1 is nearly done!



We almost finished Chapter 1 this week. We worked on section 102 Pythonic Functions, 103 Defining Functions, 104 Algorithms and 105 Coding in Python. Below, you will find all our ScreenCasts and Python Code!







Code for Chapter 1 Section 2.
Code for Chapter 1 Section 3.
Code for Chapter 1 Section 4.
Code for Chapter 1 Section 5.

Well, that's all folks!

Monday, June 25, 2012

Teaching APCS: Away with GridWorld say I!

What follows is a reply I made to a post on the AP CompSci ListServ regarding changing the GridWorld Case Study on the AP Exam:


Thanx for expressing the frustrations that many of us have had teaching large case studies in AP Computer Science over the years. These case studies have gotten more and more elaborate starting with Directory Manager in Pascal to Large Integers in C++ and Marine Biology in C++ and then in Java. BTW, both the Marine Biology and GridWorld case studies seem to me a lot like Conway's Game of Life gone amok. 


However, as a Math teacher, I must admit to being a bit partial to the Large Integer Case Study. One really nice feature of this case study was the use of operator overloading which we lost when we switched to Java. We really should do more with Scientific Computing or Computing Science applications in Math and Science. Maybe, we should even introduce multi-processor aka grid aka cluster computing!


I'm sure I'm not the only one that feels a lot of time presure in their AP course. I have a big problem teaching all the content in APCS plus a large case study with time to spare for review for the May exam to students who take this course as a first experience in Computer Science! In fact, I'm quite concerned that the new mini modules won't be all that mini! 


On a related note: some schools start the year in August but mine, as many others, starts in September. I thought something was being done about this such as early and late exam dates for AP exams in May?




Well, that's all folks!

Monday, April 16, 2012

eText, eText, where fore art thou, eText?

I'm sorry to say it, but, online Calculus texts are just not ready for prime time! My school just purchased the latest edition of our favorite text with the understanding that my students would get etexts and the other classes would get hardcovers. Just look at my beat-up text pictured above (c) 1995 and you'll see why it was time to get a new book! So, I get the etext and it turns out that its only for one user and has to be reregistered each year??? This is outrageously expensive! I don't get the problem. I also teach Computer Science and have been using etexts for those classes for several years now without a problem. 

For my Computing classes, we simply bought a class set of each text and got a pdf version for free! Now, I just upload one chapter at a time to http://www.edmodo.com. That's all I'm asking for. The eText can easily be identical in content to the printed book as most authors and publishers generate pdfs now-a-days anyway! I don't need any extra digital content, I can create my own. If you want extra digital content, more power to you, but it will take longer to create the books and these books will be far from free.

Here's the books I use in my Scientific Computing track:
1) Computer Math (Discrete Mathematics and Python):
1) published eText: MathAndPython

2) AP Computer Science (Object Oriented Programming and Java)
2) published eText: BigJava

3) Calculus Research Lab (Calculus and SAGE):
3a) Calc1 = Derivatives
3a) free eText: calc1-sage
3b) Calc2 = AntiDerivatives
3b) free eText: calc2-sage
3c) Calc3 = Differential Equations
3c) free eText: DiffyQ

4) Computing Independent Study (Linux Clusters and openMPI)
4) published eText: BuildingParallelPrograms

Generally Speaking,

Saturday, September 17, 2011

School Week 2: The YouTubes! Math and Computing Classes


Week 1 Math Filk: 
Mathematicious, all the regents level math you need before taking preCalculus!



Week 1 Computing Spoof(all 3 parts):
PC vs. Mac Spoof, what is the Linux community all about?



Week 2 Math Filk: 
New Math by Tom Lehrer, all you need to know about subtraction in base 8...



Week 2 Computing Documentary:
Grace Hopper: part I of 60 minutes interview with the great Admiral.




Week 2 Bonus Calculus Filk (Thursday):
Theorem Night: by my Calculus students 2 years ago about the definition of continuity?



Every Wednesday, I like to break up the routine a bit with YouTube Wednesday! I start each class with a YouTube clip that has something to do with what we are learning. Sometimes its a fun filk (folk song with changed words to make fun of something), sometimes its an informative documentary. I've even been known to show eulogies of famous mathematicians (Jaime Escalante) and computer scientists (Randy Pausch)! 


I keep it to a 5 or 10 minute video and then we have a 5 to 10 minute discussion. Yes, it does eat into classwork, but I think the students come away the better for it. Its a good way to expose the students to the wonder and fun of Mathematics, Science and Computing! 


I didn't blog about this during Week 1, so here are the Week 1 YouTubes too. BTW, I show a different video in my Math classes (preCalculus, AP Calculus BC) as opposed to Computing classes (Computer Math, AP Computer Science, Calculus Research Lab). I don't want to bore those few students that are actually taking 2 classes with me every day.

HTH, I hope you enjoyed this week's YouTubes!


Learning with Technology, 

Saturday, February 5, 2011

Course Selection Week: "I don't do Windows, and neither does my Maid!"



Well, it's that time of year again! It's time for that yearly festival at my school. The week after midterms, students start to choose their courses for next year. My courses are largely elective, so I have to sell, sell, sell!

I'm not only selling the curriculum, but all the bells and whistles that goes with it including my PC Lab/Classroom/Linux Cluster, not to mention, myself! Contrary to popular opinion, I did not talk a lot about myself. I did introduce myself each period and give a little info about my background. The students also asked some questions about me. So, over the course of 9 periods, I divulged the following:

EDUCATION
1973 - Graduated Laurel Elementary
1975 - Graduated Longwood Middle School
1979 - Graduated Longwood High School (Sciences, Languages and Orchestra)
1983 - Graduated Cornell with BA Physics with EE minor
1989 - Graduated CW Post with MS Applied Mathematics and Computer Math

EMPLOYMENT
1982 - Joined Riverhead SHS Faculty as a Student Math Teacher
1983 - Joined Freeport SHS Faculty teaching Programming on Commodore Pet and Apple IIe
1984 - Joined Southampton SHS Faculty teaching Summer NYS Regents Math 11
1985 - Joined Baldwin SHS Faculty teaching NYS Regents Math and Science
1986 - Joined Syosset SHS Faculty teaching Summer NYS Regents Sequential Math III
1986 - Joined Ames Massapequa JHS Faculty teaching Math 7 and Honors Chem 8
1987 - ReJoined Baldwin SHS Faculty teaching NYS Regents Math and Science (to present)
1990 - Joined SUNY Farmingdale Faculty teaching Technical Calculus 1A and Discrete Math
1995 - Joined Nassau CC Faculty teaching Harvard preCalculus, Calculus I&II (to present)

CURRICULUM DEVELOPMENT
1988 - Wrote Computer Math course (revised several times since - currently Discrete Math and SAGE)
1993 - Wrote Advanced Computer Math course (revised several times since - currently Discrete Math and python)
1999 - Wrote Computing Independent Study course (Linux Clusters)
2009 - Wrote Calculus Research Lab course (Calculus reenforcement using SAGE)

TECHNOLOGICAL INNOVATION
1986 - Designed first PC Lab (Room 429) in Baldwin and have redesigned several times since (hardware)
1987 - Installed first PC Lab (Room 429) in Baldwin and have reinstalled several times since (firmware)
1987 - Maintained first PC Lab (Room 429) in Baldwin and have done so ever since (software)
1988 - Introduced third website ever: CALCPAGE
1994 - Introduced Linux to Baldwin SHS
1997 - Introduced first ftp server to Baldwin SHS
1998 - Introduced first ssh server to Baldwin SHS
2005 - Introduced smart-boarding to Baldwin SHS
2006 - Introduced screen-casting to Baldwin SHS

TEACHING
1975 - Started teaching BASIC Programming!
1979 - Started teaching FORTRAN Programming!
1980 - Started teaching PL/I and PL/C Programming!
1984 - Started teaching AP CompSci/Pascal
1988 - Strated teaching Computer Math/BASIC
1993 - Started teaching Advanced Computer Math/C
1993 - Started teaching AP Calulus BC
1999 - Started teaching AP CompSci/C++
2005 - Started teaching AP CompSci/Java and html
2010 - Started teaching Calculus Research Lab (aka Scientific Computing Lab)/SAGE
2010 - Started teaching Computer Math/Discrete Math/python
2011 - Started teaching Advanced Computer Math/Discrete Math/python



I talked about Linux for a while. We talked about Linux mascots. I displayed the mascot for our Linux Cluster, Shadowfax. I played the KNOPPIX theme song and asked them to identify the chirping bird like sounds made by Tux. They eventually guessed it was a penguin! I showed them a picture of Tux. I had them fire up their Linux Boxes. Ubuntu booted up with its theme music. I showed them Maverick Meerkat. Then I played the clip from "The Big Bang Theory" where Dr. Sheldon Cooper is playing with his laptop saying how much he loves Ubuntu....

I got a sub for all my classes, gave then an assignment and bid them adieu (they went to the library). So my PC Lab was freed up. Every period through out the day, I selected one class to take on a "Field Trip" to our computer room. I told them what we do in all the courses they can take at their particular level. I talked about Scientific Computing. I let them play with SAGE. I basically did the first few days worth of Computer Math or Calculus Research Lab (selected from the following topics), depending on the audieance, in one period!



Day 0: Arithmetic in python, 2+7, 2-7, 2*7, 2/7, 2//7, 2%7, 2**7, repeating decimals with high precision such as 2/7.n(digits=1000000), very large integers like len(str(2**7777777), why is -12/5=-3 and -12%5=3?
Day 1: Algebra: factoring and 2D plotting
Day 2: 2D Geometry
Day 3: 3D Geometry
Day 4: Trig identities and equations
Day 5: Vectors: adding, subtracting, dilation, dot product
Day 6: Vectors: cross product, the triple scalar product
Day 7: Matrices: solving simultaneous equations, simple encryption
Day 8: Matrices: linear programming
Day 9: Programming: finding Mersenne Primes and solving Quadratic Equations
Day 10: Calculus: functions, derivatives and integrals

I visited primarily our Junior classes.
Regents preCalculus 4R-11 can take 5HAB aka AP Calculus AB, Calculus Research Lab and AP CompSci.
Honors preCalculus 4H can take 5HBC aka AP Calculus BC, Calculus Research Lab and AP CompSci.



Underclassmen can take Computer Math/Advanced Computer Math next year.  I nearly killed myself visiting all those Math classes last year.  So, this year I simple\y ran off flyers for the teachers of the Geometry Math 2H and Algebra II Trig Math 3H classes to hand out and discuss!

The usual sequence for computing is:
Algebra or Geometry or Trig
=> Computer Math Fall and Advanced Computer Math Spring (CM/ACM)
=> AP Computer Science (APCS)
=> Computing Independent Study (CIS(theta))

There is only one level of APCS now as the College Board cancelled APCS AB.  There is talk of a new introductory APCS course much like our CM/ACM coming soon.  Maybe we will be able to offer 4 levels of APCS one day:

APCS - Principles (new course)
APCS - Algorithms (current course - APCS A)
APCS - Data Structures (old course - APCS AB)
APCS - Clusters (current CIS(theta) course)

Calculus Research Lab (CRL) is open to AP Calculus AB and BC students as a lab every other day like a science class.  In CRL we use SAGE to do Calculus in the PC Lab in every class!

Oh, one more thing.  Did I mention that I'm getting a model 885xi extra wide SmartBoard???


Well, that's all folks, and I hope that gives you ideas for your Course Selection Week Field Trip Day!