Friday, May 27, 2005
School Trip
Friday, May 20, 2005
Michel is home
Meanwhile, Beth's Social Studies teacher, Mr. Gordon, called me at work today. I had volunteered to go on a class trip next week and he was calling to confirm. It is all set for Thursday. So the question is, should I act real goofy so as to embarrass Beth or should I be on my best behavior? What do you think?
Tuesday, May 17, 2005
Mikey is in the newspaper!
Eight-year-old Mikey Paul has Down syndrome and many features of autism. He doesn't speak. Every Wednesday he gets off the school bus at home in Plainview and signs to his mother that it is time to get in the car. Wednesday is his music therapy day at the Rebecca Center at Molloy College in Rockville Centre.
"He's got a lot of emotion that we never saw," said Michel Paul, his mother. "Who would have thought music therapy would open the door for him? It's been amazing."
She says he is now using sounds approaching words. And he's noticing other people, which she said he never did before. She has also learned many things about her son, that he loves the Ramones and Louis Prima. His music therapist, John Carpente, writes songs for Mikey and weaves the types of music he likes into the melodies. They produce sounds together.
A year into Mikey's weekly treatment, Michel Paul noticed the first signs of independent and imaginative play. "He took a can and turned it into a drum," she said. "It was the first time I saw him playing with a toy like a typical kid."
Monday, May 16, 2005
Arghhh!
Michel wasn't feeling well at work so she is now in the ER. She was complaining of chest pains and with her medical history she could cough and everyone jumps. Anyway, I am hoping that she is just over-tired. She hasn't been sleeping well lately and there is a possibility that she might have something like sleep apnea.
On the good side, I took Mikey to see Dr. Modlin (the ENT) and Mikey did well. Modlin put him on an antibiotic for his runny nose and slight inner ear inflammation but he said it was nothing too serious. And Mikey passed his hearing test with flying colors.
Friday, May 13, 2005
Ordinary World
There's an ordinary world
Somehow I have to find
And as I try to make my way
To the ordinary world
I will learn to survive
--Duran Duran
Betsy Ross Paul
Aside: Did you notice Beth got new glasses? And the braces may be coming off this summer!
* Aunt Tina is the family sewing expert.
Wednesday, May 04, 2005
Even Dark Lords Blog!
I will say this for being a tyrannical dark overlord: you get great service at restaurants.
Getting some "me time." Mood: melancholy.
On a more banal note something has gone wrong with my left leg. For the time being I have avoided limping by overriding the control circuitry with the power of the force, but this is needlessly draining. I have called for a repair droid, but it has been over an hour and there is still no sign. Later, I will find the man responsible for dispatching the repair droids and crush his trachea with my mind.
Do you want to know what the worst part is? My left leg is still on the fritz. Whose trachea do you have to crush with your mind to get a little service around here?
Big day. Storming the rebel ice fortress. Took a nap first so I would be peppy. Leg feels pretty good. Admiral Ozzol took the fleet out of hyerspace too close to Hoth, and the Rebel Alliance were -- you guessed it -- alerted to our approach.
One of these days, one of these days, Ozzel: bang, pow! Straight to the moon.
The administrator of the facility was a quaking fool in expensive fabrics, introduced as Lando Calrissian. I took one look at his satin shirt and disco hair and I knew he was a weak specimen...
Monday, May 02, 2005
SAP Portals Continued
To start, we go to the Eclipse menu and select File>New>Other... which will bring up a dialog box. The SAP plug-in has added a new choice, "Portal Application". Select this and two items will become available on the right side of the dialog box, "Create a portal application project" and "Create a new portal application object". Select "create a project," enter a name and directory for the project, and then push the "Finish" button. A new project is created which includes most of the jar files you will need. Two additional jar files need to be added because we are going to use the DynPage methodology, htmlb.jar and com.sap.portal.htmlbridge.jar. Add these to the project.
In order to write a DynPage, two classes are required. First, you need to create a launcher class. The launcher (or controller) must extend the SAP class, PageProcessorComponent and must provide an implementation for the abstract method getPage. The getPage method must return a DynPage object. Here is the beginning of our "Hello World" portlet:
package main; import com.sapportals.portal.htmlb.page.*; import com.sapportals.htmlb.page.*; import com.sapportals.htmlb.*; import com.sapportals.htmlb.enum.*; public class TestController extends PageProcessorComponent { public DynPage getPage() { return new TestDynPage(); }
The next step is to provide a DynPage. In this example, in order to keep it simple, we will not use a JSP but will generate HTML directly from our DynPage. The TestDynPage will be an inner class of the TestController. TestDynPage will extend DynPage and must provide an implementation for the three abstract methods, doInitialization, doProcessAfterInput, and doProcessBeforeOutput. We will provide empty implementations for the first two. The doInitialization method is invoked only the first time the user enters the page. The doProcessBeforeOutput is invoked after doInitialization the first time and after the doProcessAfterInput method on subsequent calls.
There are two other classes that we need to worry about. First, the Form class that provides us with the area of the screen that we can write on. The second class is the TextView class which is one of the SAP provided HTML-Business (htmlb) classes. These classes work in a very similar way to the JSF classes in that they automatically generate HTML and provide an event based methodology to respond to user actions. We will worry about events in our next attempt. In this example, we will simply send some text to the screen.
The steps are fairly simple. First we get the Form from the current DynPage. Next we create a TextView, add some text to it, and then add it to the Form. And that is it. All that is left is to look at the rest of the code:
public static class TestDynPage extends DynPage { public void doInitialization() {} public void doProcessAfterInput() throws PageException {} public void doProcessBeforeOutput() throws PageException { Form aForm = this.getForm(); TextView label = new TextView(); label.setText("Hello World!"); label.setDesign(TextViewDesign.LABEL); aForm.addComponent(label); } } }