Categories
advice and tips Fun kids

Preschool days

Reading Time: < 1 minute

Did not want to go in the morning (most days), did not want to leave in the afternoon (sometimes). Positives: she started to call some teachers by name, and some friends by name. She talked quite a bit in English, continuing make progress on language.

Kindermusik, sit on teachers’ lap. A nice overlap for her as this class is only class she goes this whole semester (with the transition from toddler to preschool).

Change job
The tuition goes up again. I need to make more money to support my family. I plan to start new job on April 1 (yes April fool’s day, but hopefully new job works out for me and my family).

A bit emotional lately as a net friend passed away recently, reminds me of an old friend’s husband passed away years ago at similar age. We all need to balance our life and work at this age.

Categories
Uncategorized

Things moving so fast

Reading Time: < 1 minute

Serenity started preschool a week ago, on Friday. When she started toddler program, since I need to go to work early in the morning, I have not been able to drop her off or pick her up much for first semester. Since I joined my current employer, I got more flexibility, and I got to see her more inside and outside classroom. I obviously miss the infant toddler community too, as I spent quite some time there (drop off, pick up, other gatherings). On her last day, we got the bags, put her stuff from her cubby, and said good bye to her teachers.

Pre-school
I have been to her preschool a few times (tour, a parent teacher gathering), I just realized it’s much bigger in terms of space, and population. So less intimacy (or cozy) feelings. But we like the teachers and it’s the same system (Hope Montessori). Minor things like fast cars on the parking lot (5 miles speed limit) bothers me a bit, but not terribly. I guess as parents we just need to be watchful of our kids in parking lot. Because each teacher is responsible for more kids (of course kids are older), it will take a while for parents to get familiar with teachers.

This moving from toddler program to pre-school thing reminds me a bit like our daughter was born, the doctor delivered the baby, in no time they cleaned up the baby, and put the baby in a scale (and light) to weigh her. Sometimes I wish things could move a bit slower. But this is the case of our modern society.

Categories
Uncategorized

Some basic techniques for canon rebel T1i

Reading Time: < 1 minute

Canon EF 50mm f/1.8 II Camera Lens
(link here)

Manual focus point: make sure eye is the focal point (link here

Exposure: add some if background is too bright (snow)

ISO: 100 is the common value, add more if we need more (gan guang du) in the case of low light

Reference:

cheat sheet 

Categories
iPhone app Software development

Code signing error in Xcode

Reading Time: 2 minutes

(Update 08-Dec-2020) Things I learned today (or tomorrow am 🙂

  1. One team can have at most two distribution certs
  2. In Xcode sign in as agent without the (mail.com or gmail.com after @) because it appears my apple id is just the id without all the @ + dot com stuff. That alone cost me probably one hour. Plus the one hour I tried to export cert in old MacBook, then move it over to the new MacBook. So totally 2 hours wasted… after those two steps, I was able to go back to automatically signing and validate my archive (ipa) for myNestEgg…

Managing a Distribution Certificate

No signing certificate “iOS Distribution” found

Create, export, and delete signing certificates

====

For organizations, if a distribution certificate is missing a private key or not in your keychain, you can email the creator of the signing certificate. Ask the creator to export the signing certificate on their Mac so you can install it on your Mac. (To install a certificate in your keychain, double-click the exported certificate file.)

====

What is app signing?

Creating the iOS Distribution Certificate

iOS – Creating a Distribution Certificate and .p12 File

(Original 06-Feb-2013) Had my share of code signing problem (esp. the enterprise distribution certificate) in my Xcode development. Luckily, stackoverflow rescued me as always. It seems a lot problem is due to the Xcode upgrade, project name change, provision profile/distribute certificate expiring etc. And the solution is usually delete or comment out the offending line. Like below. To go to the project file, I usually do in the command line, “cd projectName.xcodeproj”, then “vi project.pbxproj”.

http://stackoverflow.com/questions/1760518/codesign-error-provisioning-profile-cannot-be-found-after-deleting-expired-prof

http://stackoverflow.com/questions/5758154/code-sign-error-provisioning-profile-cant-be-found

I encountered another problem related to the provisioning profile expiration, the distribute certificate appears twice in the Keychain, even after I deleted it explicitly. It turns out the old distribute certificate came back after I opened the project in Xcode (presumedly it came back when the old provision profile associated with the project got loaded). So the workaround is to delete the old distribute certificate again after opening the project in Xcode.

http://stackoverflow.com/questions/5932522/codesign-error-certificate-identity-appearing-twice

Btw, saw an interesting idea from Mobile Iron regarding the enterprise distribution certificate. Normally the certificate expires in a year. In last 30 days it will prompt the user something like “the provision profile will expire in a few days…”, not good user experience. There is no way to renew it before it expires either. So the workaround suggested by MI is create 2 certificates, and create the second 6 months before the expiration and have user update the app. This way, essentially the app got extended 6 months. And so on. There is one catch in Xcode 4.3.3 I am using. It only recognizes the provision profile that was created earlier (or expires earlier). The workaround there is delete the earlier provision profile 😀

Categories
advice and tips

Thoughts from the NPR “Struggling smarts” story

Reading Time: < 1 minute

I heard this story from NPR a while back, I meant to share it with my daughter’s teacher, did not do it as the New Town incident happened on that day. This is again discussed this morning at Hope Montessori morning presentation. I gave it some thought on this topic from time to time. I think it’s not east vs. west thing, also we need to consider the “brain freeze” when we put a person who usually is shy about public speaking to the blackboard, explain something to the class.

The most important lesson is, we (both teachers and parents) should encourage “good efforts”. I recall I had a very difficult class in Rolla, and from what I heard, the professor could give some not so good scores in the end. I tried my best, basically take the notes, spend a lot time working on homework problems, sometimes barely get it done before the class starts (I recall we meets 2 or 3 times a week). I did not do well in some of the early tests (3 tests before the final), in one test I did especially poor as I misread the problem as I was trying to finish all the problems in a short time. I explained it to the professor. He obviously understood it. As the semester concludes to my surprise he gave me “A” on the course. I think he gave it mostly because he thought I tried my best.

 

Categories
advice and tips

Morning meeting at Hope

Reading Time: < 1 minute

A lot of good points.

We congrats/celebrate with kids (did something, e.g., potty training), we don’t “reward” them (Sarah).

The “grit” (persistence) is very important, recent research found American kids are more tend to give up (Susie). Also, toddlers (community) do not have watch, the teachers give toddlers plenty of time to make mistakes and learn. When she saw the infant feed her/himself, or pour milk, she know they are going to succeed in life. The library incident example (toddler want to touch the phone, the mom said if he does, she won’t bring him to library again, the librarian said she will fine him for $100). The lesson: be honest when we communicate with kids. Sarah: the kids knew the first 9 times (parents said) does not count. A parent learned from Mishra (no need to repeat, just remind we already said it).

Sarah: we make mistakes, just be honest and say sorry to kids (e.g., we shout at kids).

Another parent: the “salad” video (hope kids video, maybe put Serenity’s video on iPad so that we can watch more often).

Sarah also mentioned as the older toddler gets more leadership role and feel more confident in the class, it’s also a good preparation for her/him to go pre-school (that self-confidence will help them do well in the new environment).

Categories
advice and tips

If I could treat everyone like Hope community (family)

Reading Time: < 1 minute

Did not get much sleep last night, as I had to go to airport to pick up my in-laws at 2 am. This morning, after drop off my daughter and I was trying to change lane to get to Panera Bread, the car behind me was not happy, and honked. I honked in revenge. Not good. Later on at Panera I gave up better nice to a few older people as good well gesture.

This evening when I was picking up my daughter, I waved at the car waited for me in parking lot. My wife asked “do you know the person?” I replied I don’t. But it’s good to behave good in Hope community, because I feel we are like a family. But outside Hope, my feeling was different 🙂

Categories
advice and tips

My thoughts and prayer on today’s event

Reading Time: 2 minutes

(Update 01-23-13) This morning I talked to my daughter school director about this.  He is older and wiser (like my uncle). We talked various topics from teaching kids to the new town incident, and yesterday’s incident. His thought was some people will do anything for fame (name recognition). I agree. The best way is probably just ignore those people, while get prepared by ourselves. Pray a bit for us and for them. Don’t lose cool.

(Original 01-22-13) It was quite eventual day today, as the place I worked has some protest, and at one point, the fire alarm went off (turned out to be false alarm, trigged by the saw cutting the chain of protesters). To be honest, I had a lot emotions today, from the initial surprise, to excitement (as some protesters doing some singing and chanting downstairs), to angry (why did they invade my work place, and disrupt my work, my co-workers and all the other tenants’ work), to more angry as I saw pregnant woman also had to came out in this cold due to false alarm. By the way, she took it better than me as she joked she could use the ambulance on the site if she delivers. I talked to my wife and one of my daughter’s teacher about this (as I was picking up Serenity after work).

Now as I read a bit more on protesters’ background, and our daughter Serenity goes to bed, I do the normal prayer, I think forgiving is the right approach. I was very much blessed with my parents, my siblings and my relatives, friends, teachers, co-workers in my upbringing, from growing up in a rural village in Ningbo (Zhejiang, southeast China), attending Zhenhai Middle School (a top high school in Zhejiang province and in China), doing the farm work while in summer, and seeing the rapid opening and development of China (esp. costal) in 1980s and 1990s. I also was very fortunate attending Huazhong University of Science and Technology, a leading engineering school in China, then University of Missouri at Rolla (a leading engineering school here). Again the people I met in both places are just amazing.

Categories
Uncategorized

Who is doing the dishes at school: lessons learned from teachers :-)

Reading Time: < 1 minute

I (actually we both my wife and myself) learned quite a bit from our daughters’ teachers. A few months ago Serenity does not like to leave when we picked her up in the late afternoon. I recall one evening we were the last car to leave the parking lot 🙁

One evening, she said she wants to get a drink (water). Thought it’s a benign request, I took her back to classroom. She used 3 cups, obviously did not finish them all. I did not thought too much that day (evening) as eventually she leaves with me. Another evening, she’s doing the same in the classroom, and would not leave. Luckily the teacher was there, and talked to her about “just use one cup”, at that time I realized who is doing the dishes, not my mom, not me, not my wife, it’s our teachers 🙂

We should teach our child to be respectful of others. Another example is in the restaurant, initially I did not what to say when my daughter makes large noise, after a while I came up with this answer: we are here as guests, we should be respectful of other guests (not making noises). This is better than “don’t do that”. From negative to positive.

Categories
Software development Web Windows

Consuming a PHP SOAP web service from C# client

Reading Time: < 1 minute

I need to create a SOAP client in C#, and in order to test it I need a SOAP web service. Since my hosting company uses MySQL/PHP technology stack, I am using this PHP Soap web service example.

For the C# soap client, I am following this example on stackoverflow. But there is one problem when I tried to run the example. I got the error (exception) like the following:
The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.

Again I found this thread on stackoverflow which seems relevant. It talked about the custom message encoder developed by Microsoft, and Paul Morgado’s addition to the CustomTextMessageEncoder class (just add his method at the end of the class). There is one more thing, the configuration file for the app. In my case, it’s something like the following: (note the messageVersion and bindingElementExtensions definition, there was some error in the Microsoft documentation regarding the latter one).