Categories
Uncategorized

Simplify, simplify, simplify

Reading Time: < 1 minute

Last Updated on October 31, 2012 by omaha

Our daughter has been a bit fussy lately in school (daycare/toddler program). In talking to the teacher, we agreed “too late to go to bed” is probably one reason. So we started to adjust our schedule, trying to put her to bed at around 8:30 to 9 PM. In the past, it could be 10 or 10:30 PM, due to my wife’s evening work load and my laziness. A lot of times I was just doing net surfing while our daughter was watching Netflix, or play her own toys (books).

I gave it more thought after reading our teacher’s article on the TV thing (see Hope Academy toddler home page, titled “How TV watching harms young children”). One comment kinda resonate with me is why the baby diaper needs to have some sort of cartoon figure on it. We are increasingly living in a commercial, multi-tasking, run-run-run type of society, sometimes without our own noticing. This of course has effect on young kids, and on us. From my personal perspective, I had an iPhone 4 from 2 years ago, and I have been addicted to facebook, twitter, and other apps since. I decided to unload a few apps (CNBC, LinkedIn and facebook) after re-reading the TV watching article. Let’s see how it goes.

Categories
kids

The most important thing in parenting

Reading Time: < 1 minute

Last Updated on October 7, 2012 by omaha

is the “not give up” attitude. I learned a few things from Dave’s yearly breakfast seminar, last year was Dave talking about the Montessori “explore” approach, this year was about digital media by Dr. Sucre (a parent of Hope Montessori student). The topic is related to the “no TV watching” as shown in the Hope Infant Toddler web page (written by my daughter’s teacher). To be honest I have not read all the materials and have not followed all these good advice strictly, but I was trying my best for the most part 🙂

This reminds me of couple things: I remember Woody Allen once said 80% of the work is to show up. I also recall the CIO of the company I work for recently said: show the customers you care (IT is very customer focused in my company).

Yesterday in the parenting work day, our daughter started crying for some reason, which is a big embarrassment for my wife, she has a thin skin by the way. They wanted to go home. So we started driving while I was hoping they can change their mind. On a red light we saw a friend’s car, I know they are coming to the event as their son is in the same class as my daughter. So I tried to drive back. Things turn out ok eventually.

 

Categories
Fun

Montessori Dad

Reading Time: 2 minutes

Last Updated on October 6, 2012 by omaha

My daughter has been to the Montessori Toddler program (Hope Academy in Creve Coeur) for over a year, and I think I am becoming a Montessori dad. This is a bit abstract, but I like to list a few examples about the school and teachers, and show why they are great.

This is the first US pre-school I have first hand experience. I never went to pre-school when I was young, I was raised primarily by my grandmas. There was an old saying “it takes a village to raise a child”. Hope Montessori was pretty much organized this way. We increasingly live in a consumerism society, but that I mean we run around for work and material things, and lose family time and equally important, quite time for reflection and time with friends. Hope has a few interesting activities each semester to bring kids, teachers and parents together. In the fall there is the parent work day. Today is the second parent work day we attended, while I had to admit I didn’t contribute much building the wooden slide. Our daughter did have fun painting the climber. Last year we helped out in the kitchen.

There are 4 fields trips each year: farm field trip in fall, magic house in winter, botanical garden in spring, and a state park trip in summer. Dave (the director) always makes sure the food are good in those field trips. Now when I think about it, the activity fits the season very well 🙂

Now a few words about the teachers. The most important thing is they love/care the kids very much. I am 100% sure my baby is in good hands when I drop her off in the morning. We also learned some parenting lessons from the teachers, tell the truth (be honest) to the kids, encourage her use the words, and recently, how to deal the emotion problem with the kid. One interesting thing is the teacher told my daughter we all have moms and we all miss mom (when my daughter cries for mom during nap time). Kinda cute, isn’t it?

Categories
iPhone app

Some tips when creating WCF web service for iPad consumption

Reading Time: < 1 minute

Last Updated on October 7, 2012 by stlplace

Continuation of previous post.

1) WCF get does not like “NULL” column in the query results

2) // note the “id” should match in declaration and method

Categories
Fun

Some thoughts on work, election, and faith

Reading Time: 2 minutes

Last Updated on October 4, 2012 by omaha

I changed my job this Jan. I started working for a coal company as mobile app developer. Coal and mobile app (iPhone, iPad) do usually go together in the same sentence, I think. As coal is described as “dirty” in the media, especially by the environmentalists, the “green” people both in and outside government (think Al Gore, president Obama and his EPA commissioner Lisa Jackson). On the other hand, Apple the forerunner of smartphone, tablet revolution is famous for its environment friendly too, just recently they announced initiatives to replace coal powered datacenter by natural gas (they are like tube and box like, think those as natural gas modules). Those are developed by Silicon Valley based start-ups.

Back to topic, for me the rationale of working for coal company goes like this. I am a pragmatist (a pragmatic programmer 🙂 Coal is not the cleanest energy source and not renewable source. But before this year, Coal made up more than 40% if the US power generation (this year the number dropped to lower 30s). So, if one person really wants to make a stand on the issue (instead of just talking like the former vice president does, he got a huge mansion and uses a lot of electricity), the person can simple use 1/3 less of the electricity. That means, uses less light, AC, heat,…in her/his daily life. I am trying to be energy conscious on my life but won’t go as far as cut 1/3 of usage. At the same time, working for a coal company (5 minutes commute time), will help me be a part of the solution (less gasoline for commute for sure). I will be a stake holder in coal mining, as I recently learned, coal mining uses a lot of energy too (diesels, electricity etc.)

I have worked for my new employer for about 9 months, and so far I like what I see. Most recently I went on 2 mines, and met some down-to-earth miners. Since I went to Rolla (the former Missouri School of Mines, miner), now I became a real miner.

Presidential election will play a part in the coal industry too, as the current administration is very coal-unfriendly. I think green (renewable) energy is fine, but the traditional energy source (oil, gas, coal) got to be a part of the solution.

Last but not least, I have 2 scene kinda imprinted in my mind during the mine visit: when I eat the lunch comfortably in the office, I recall the miners eat their lunch in the tunnel. The devotion during lunch time from a few surface miners. In the HQ we sometimes lost touch of the toughness of the front line work. Now I do. At the same time, the company continues to do good things around the community, in all the locations. Here in HQ, we have the united way campaign. In a sense, we are all in one community.

Categories
iPhone app

Creating WCF web service II

Reading Time: < 1 minute

Last Updated on October 4, 2012 by stlplace

A continuation of previous post.

1) Visual Studio, publish web service: check destination IIS app
Before the change, the error was “cannot show the content of the folder”.

2) Add this line to the service.cs (service class C# file), to work around/avoid a problem, asp .net compatibility issue. Do something like this:

[ServiceBehavior]
[AspNetCompatibilityRequirements(RequirementsMode=
AspNetCompatibilityRequirementsMode.Allowed)]
class BarService : IHelloContract
{
// …
}

Refer to wenlong

3) Bad request: it appears to be a class rename problem, Visual Studio has a “red” warning sign, follow it and accept “update”, rebuild.