Monday, January 15, 2018

CIS(theta), 2017-2018 January Meeting: PelicanHPC!

CIS(theta), 2017-2018 
January MeetingPelicanHPC!

We successfully downloaded the latest pelicanHPC ISO (version 4.1 gnome), burned the ISO as a bootable DVD an booted the DVD in our lab. Now we can compile flops.f! flops.f is a program that stresses each core of your cluster scattering and gathering a Riemann Sum calculation for PI and calculating the cluster's performance. flops.f is written using openMPI and FORTRAN77:

mpif77 -o flops flops.f

Then we ran the flops executable:

mpirun -np 4 flops
mpirun -np 100 --hostfile machines flops

We can't set up a DHCP server to make a 100 core grid cluster anymore (second commandline) since IT made my room rejoin the WimpDoze DHCP server (after 24 years). BTW, machines is a text file listing all the DHCP allotted IP addresses on our intranet LAN. 

So, we can run SMP Clusters (first commandline). In other words, we can use all 4 cores on our quadcore Lenovo PCs, but that's about it. Doing so, we achieved very good performance: 2GFLOP/s per core and 8GFLOP/s per Linux Box. Yes, I know, we don't have Linux Boxes anymore, but the pelicanHPC DVD boots up Debian Linux with a Gnome desktop, so we can dream, can't we?

Here's your January homework: 
If you haven't done so already, download the pelicanHPC ISO file and burn your own bootable DVD. Don't worry if your first burn doesn't boot. You can use that DVD as a "Linux Coaster" for your favorite beverage the next time you play on SteamOS. If you can make this work at home, try to run Hello_World_MPI.py from John Burke's sample MPI4PY (MPI for Python) code. You can also try this tutorial.

Also, here's our third reading assignment. BTW, I was an editor on this book. That's why I recommend it. It's all about setting up and programming a Linux Cluster aka Super Computer with COWS (Commodity Off-the-shelf Work Stations = ordinary PCs). What's unique about this book is that it uses Java for all its coding samples making it an easy read for anyone who has taken AP CompSci!

You may also want to download and try out the BCCD ISO! I'm also looking at the hardware side of building our own cluster with RaspberryPi 3.0 single card computers which are also Debian and Python based. Maybe we'll play around with codrone to learn about programming drones too? Stay tuned!

NEW DECOR (Display Case):
Featuring ChromeCast & Processing!


NEW DECOR (Room 429):
Featuring Tapestry from RedBubble!

So, what's all this good for aside from making Fractal Zoom or Shrek Movies?
SETI Search
Econometrics
Bioinformatics
Protein Folding
Beal Conjecture
Scientific Computing
Computational Physics
Mersenne Prime Search
Computational Chemistry
Computational Astronomy
Computer Aided Design (CAD)
Computer Algebra Systems (CAS)

These are but a few examples of using Computer Science to solve problems in Mathematics and the Sciences (STEAM). In fact, many of these applications fall under the heading of Cluster Programming or Super Computing. These problems typically take too long to process on a single PC, so we need a lot more horse power. Next time, maybe we'll just use Titan!

====================

Membership (alphabetic by first name):
CIS(theta) 2017-2018:
BrandonB(12), JoehanA(12), RusselK(12)

CIS(theta) 2016-2017: 
DanielD(12), JevanyI(12), JuliaL(12), MichaelS(12), YaminiN(12)

CIS(theta) 2015-2016: 
BenR(11), BrandonL(12), DavidZ(12), GabeT(12), HarrisonD(11), HunterS(12), JacksonC(11), SafirT(12), TimL(12)

CIS(theta) 2014-2015: 
BryceB(12), CheyenneC(12), CliffordD(12), DanielP(12), DavidZ(12), GabeT(11), KeyhanV(11), NoelS(12), SafirT(11)

CIS(theta) 2013-2014: 
BryanS(12), CheyenneC(11), DanielG(12), HarineeN(12), RichardH(12), RyanW(12), TatianaR(12), TylerK(12)

CIS(theta) 2012-2013: 
Kyle Seipp(12)

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

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

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

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

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

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

Well, that's all folks!
Happy Linux Clustering, 
AJG

Monday, January 1, 2018

Happy New Year 2018!

Happy New Year 2018!
Now that it's 2018, I suppose it's time for a New Year's Resolution: 

"I resolve not to get upset every time I see a blatant disregard for the proper use of units or a lack of number sense!" 


This problem shows up everywhere. I think you'd be very surprised by just how ubiquitous this issue really is! Take a look at just a few examples below:

Verizon To The Rescue!
This audio clip, turned YouTube video, is one of the most infamous examples of this complete disregard for number sense and dimensional analysis. Suffice it to say that an approximate 36000 KB cell phone data overage times 0.002 cents per KB is billed at approximately $72???

Potato Farmer
Me: My dear sir, that's quite a sign you have!
Farmer: Why, yes, we are having a big sale.
Me: I can see that! This sale is amazing!
Farmer: May I interest you in some potatoes?
Me: Certainly, I'll take 100lbs.
Farmer: Dear me, how wonderful...
Farmer: Just a minute while I fetch 100 bags!
Me: Thank you, take your time, no hurry...
Farmer: There you go, done loading your car.
Me: Here you are, my good man...
Me: You get a nice new crisp $1 bill...
Farmer: What's the meaning of this?
Me: You did such a fine job, keep the change!
Me: I know, it's way too generous,
Me: but I think you've earned it!
Farmer: This is an outrage!
Me: No, no, you can keep the change. 
Me: After all, with the extra penny,
Me: you can get a whole pound for yourself
Me: with change to spare, no less!
(above: similar problem at my supermarket)

Library Matron
Clearly, the Librarian meant 10 cents per page printed from the PC Lab. However, under the unwritten rules of "Truth In Advertising" I would be fully within my rights to demand 10 printed pages for a single penny, no?

Local Deli
The Deli Guy is guilty of the same gross negligence of proper use of units aka dimensional analysis aka number sense! Did he mean 50 cents per sandwich? Shall we just give him a pass? No, say I, no more Mr Nice Guy! We can't let this slide anymore. Keep this up and it will soon be the end of civilization as we know it! How about 50 cents for 100 sandwiches?

Tile Store
Is the Tile clerk guilty of this mortal sin as well? So, shall we pay our 69 cents per tile and meekly walk away shaking our collective heads without uttering so much as a single cough in derision? No, I will make my order and pay 69 cents for 100 tiles! Maybe I'll take 1000 tiles off the clerk's hands for a measly $6.90! Why stop there, how about 10000.... OK, ok, now this is getting out of hand!

Parting Blow
Sorry, I have no further commentary. This last example just takes the cake!

Wait, just when you thought it could not get any worse, there's more:

OK, just one more: 
This one opens up a whole other can of worms! My neighbor's mailbox is supposed to have a street address of 226 Such-And-Such Lane. Did he mix up his Roman Numerals with his Arabic Number System?

Related Memes?





Here's some good number sense!



13 Most Common Midterm Mistakes:













Well, that's all folks!

Thursday, December 28, 2017

Computer Science 2017-2018: Conditionals and Predicate Methods (December)

Computer Science 2017-2018:
Conditionals and Predicate Methods 
(December)

LAB 5 ScreenCast


LAB05 was all about boolean operators, conditional statements and predicate methods! We touched on loops a bit in Processing and Strings as arrays. Fun was had by all when we started the unit with Rock Paper Scissors Lizzard Spock!


1st YouTube Wednesday: Tom Lehrer




December YouTube Wednesdays



December Carols!

preCalculus (period 9) went to Volleyball!

Well, that's all folks!
Teaching with Technology, 

Wednesday, December 27, 2017

preCalculus 2017-2018: Vector and Polar Notation! (December)

preCalculus 2017-2018:
Vector and Polar Notation! 
(December)

Chapter 9 ScreenCasts



Chapter 9 was all about Vector and Polar Notation. First we talked about Complex Number arithmetic on the Complex Plane depicting Complex Numbers as Vectors with a Direction (theta=arctan(y/x)) and Magnitude (r=sqrt(x^2+y^2)). We also converted from Polar to Cartesian forms (x=r*cos(theta), y=r*sin(theta)). We played around with CIS(theta) notation, DeMoivre's Theorem and even touched on Euler's Trig Identity! 

Then we extended our understanding of Complex Vectors to Vector Sums, Vector Differences and Dilating a Vector by a Scalar. Finally we talked about the differences and applications of the Scalar Dot Product and the Vector Cross Product. We even talked about Orthogonality and the Triple Scalar Product!


1st YouTube Wednesday: Tom Lehrer




December YouTube Wednesdays



December Carols!

preCalculus (period 9) went to Volleyball!

Well, that's all folks!
Teaching with Technology, 

Calculus 2017-2018: Work, Ln(x), Exp(x) and DiffEqus! (December)

Calculus 2017-2018:
Work, Ln(x), Exp(x) and DiffEqus! 
(December)

UNIT 7 ScreenCast


UNIT07 started with the concept of calculating work in Foot-Pounds or Newton-Meters. Then we finally got to derivatives and integrals involving ln(x), e^x and a^x. We finished off with some Variable Separable DiffEqus involving ln(x) and e^x. We also started talking about Slope Fields and applications of DiffEqus such as Exponential Growth and Decay plus Newton's Law of Heating and Cooling.



1st YouTube Wednesday: Tom Lehrer




December YouTube Wednesdays




December Carols!

preCalculus (period 9) went to Volleyball!

Well, that's all folks!
Teaching with Technology,