Sunday, January 01, 2012

Parenting Month 14: Evaluations and goals

Some lighthearted observations. Then a serious one.

1. T is learning how to go down things. We've been trying to get him to get off of a mattress backwards (feet first). Not only has he started to do this consistently (instead of charging headfirst off them), he also figured out that this is how to go down stairs. The books state that this marks the end of the 'stairs are dangerous' period, and some of the more natural parenting types consider this as the goal instead of using baby gates. Mind you, we are keeping the baby gates, but we don't have them everywhere. And maybe we won't need to.

2. Loves bananas. He amuses everyone at grocery stores when we go pick up bananas and he is so happy to have them. Even better when he cries out 'nana, nana' for all to hear once we get within sight of the bananas.

3. He likes to feed mommy and daddy. Taking a spoon of yogurt and putting in our mouths. Cheese, crackers, bread, even a banana. We like to think that this is his way of showing love (after all, feeding him is what we do)

4. He is generally a very happy child. Except when it comes to sleeping. Then he is a very unhappy child. *sigh* *yawn*

5. He has continued to like it when we read to him. Our babysitter comments that she is surprised that he has the patience to make it through books. Of course, he has been doing this for months.

6. At day care they had evaluations. One funny one was 'does not show affection to stuffed animals.' He actually does not have stuffed animals at home, so the idea of forming attachments to things, not people, is probably not something that has occurred to him.

7. A more serious note, the evaluators also mention that he is slow on all marks regarding socialization and language. Of course, most of the behaviors they mark as deficient, he does show at home. The problem, of course, is that we are raising T bilingual. And our understanding is that children raised bilingual will be evaluated as slow until they are around 5-6. I have colleagues who are in the same situation.

We have promised ourselves that we would ignore things like milestones for the first few years. But this is where it is important to check that we do believe in this. Because we believe that the goal of raising children is not for good grades or evaluations, but to prepare them for the world. And while evaluations are important, if they do not further that goal, they are to be ignored. Learning to put aside these evaluations now, after considering what they mean, hopefully makes us better able to work with evaluations in the future. And take us further in our goal of raising a child.

Getting SageTeX to work on Ubuntu

Since I'm using Sage more, I'm trying to get SageTeX working, so I can embed Sage into LaTeX documents (i.e. have a report on the methods integrated with the code that implements the methods and generates the results. Search for 'Literate Programming' or 'Sweave' for many references on this)

On Ubuntu, after I copied SageTeX files to my local LaTeX configuration directory (as per instructions in the Sage Installation Guide, I still got errors when trying to build the example documents

Traceback (most recent call last):
File "st_example.py", line 7, in
_st_.inline(_sage_const_0 , number_of_partitions(_sage_const_5 ))
File "/home/lluang/Apps/sage-4.7.2/local/lib/python2.6/site-packages/sagetex.py", line 86, in inline
'}{{%\n' + s.rstrip() + '}{}{}{}{}}\n')
File "element.pyx", line 331, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:2868)
File "parent.pyx", line 327, in sage.structure.parent.getattr_from_other_class (sage/structure/parent.c:3193)
AttributeError: 'sage.rings.integer.Integer' object has no attribute 'rstrip'

**** Running Sage on st_example.sage failed! Fix st_example.tex and try again.


So what happened? Apparently, one of the Ubuntu texlive packages (specifically texlive-latex-extra) includes an outdated version of the sagetex.sty file while what is needed is one tailored to the current version of Sage (and included in the Sage distribution). While I have the correct version in a local directory, there is a precedence issue when multiple LaTeX style files are present. Since I don't have the inclination to figure out the issue, I found the location of the wrong sagetex.sty file, and deleted the entire directory (/usr/share/texmf-texlive/tex/latex/sagetex). Now, SageTeX works, and I can start writing papers using Sage/Python, just like I do using Sweave for R.