Tuesday, September 16, 2014

CPS: your neighborhood is classified

In the Chicago Public School system, the city is divided into 4 socio-economic tiers. See http://cpstiers.opencityapps.org/. This map tells you where the richer, more educated people are and those who are poorer. Where you live may affect which school your children can go to.

The ideal world should be this: everyone goes to their neighborhood school. It is easy to get there... should be able to go on foot. Who needs to sing the wheel-on-the-bus? What if your neighborhood school is struggling with ultra low scores year after years and 90% of a single ethnic group? Now, really, failing scores of previous year should have nothing to do with first grade students just entering into a school? But if statistics is of any value, those school that show failure as far back as there was record just likely to fail also even if you send your smart child there.

So in this system, here is what parents do: take their 5-year-olds to tests of arbitrary things and the score will have lasting effect of their life. Can't-go-to-good-school most likely mean failure for rest of life, some are afraid.

Look, what if my 5 year old just won't cooperate with the tester? Just what sort of reading and math ability do you expect out of a 5 year old? To get to a relatively good school you need to get score of 99%+ and a good lottery number. Close to mission impossible for most, I believe.

Alternatively, you can also put up with outrageous expensive private schools, or move to an outrageous neighborhood so a good school is your neighborhood school (which will take you without lottery and test)

Waita minute, that is a wacky system. how come so many of the schools do so poorly, especially the school around my neighborhood?. Do the teachers do anything?

Answer I heard: it is the union. Poor teachers get paid even if they don't teach anything. And poverty have the vicious cycle of poverty->poor school grades->more poverty. Oh now that's sad. Waita minute then why is there any good school then? How do the winning schools work? Oh and there is magnet and charter school types too... adding more complexity...

Spring MVC + Hibernate

I found this CRUD example and got it to run locally on tomcat:

http://www.journaldev.com/3531/spring-mvc-hibernate-mysql-integration-crud-example-tutorial.

with local database of postgresql instead... I needed to put the postgresql jdbc jar onto tomcat's lib, and change that servlet-context file. Also need to update the CREATE TABLE statement as follows for postgres:

CREATE TABLE Person ( "id" serial, "name" varchar(20) NOT NULL, "country" varchar(20) DEFAULT NULL, PRIMARY KEY ("id") );

A running example is worth more than a thousand (if not a million) words.

Thanks to the gentleman who wrote that article. Thanks for writing that maven file. hard to crank that out from scratch. All that configuration files needed... thanks to spring.

Wednesday, September 10, 2014

Scribble Revisited

In school we learn simple programming... Ok, nowadays maybe Java. I was learning C and C++. And in the "real world" back then, Visual C++ was hot new item back then. Programming in Windows was HARD in those days. And Microsoft Foundation Classes (MFC) is supposed to be there to save the day? You may have remember this Scribble example. Gosh did I panic: real world programming is so hard and ugly!

See http://groups.engin.umd.umich.edu/CIS/course.des/cis400/vcpp/scribble.html.

Download that source code and see how UGLY and DIFFICULT this mess is. SO MUCH work to get a scribble going.

HTML5 can do it in so few lines and so straight forward. See http://fahadmustafa.wordpress.com/2011/06/20/scribble-app-with-html5/