Greatest chocolate chip cookies of all time

So it’s probably weird to read a recipe on my blog, but I actually like to cook. I especially like cooking that involves cookies. Also what programmer doesn’t like to eat cookies. So here is my recipe that has been perfected over time for the greatest chocolate chip cookies.

Chocolate Chip Cookies

  • 1 stick of salted butter (8 tbsp.)
  • 1/2 cup granulated sugar
  • 1/2 cup brown sugar
  • 1 egg
  • 1 tsp. vanilla (real vanilla is best)
  • 1/2 tsp. baking soda
  • 1/2 tsp. salt
  • 1 3/4 cup flour
  • 1 cup chocolate chips
  • 1/2 cup of walnuts (optional)

Preheat oven to 350.

Mix butter and sugar at medium speed until pasty. Add egg and vanilla, mix together at medium speed until creamy. Stir in baking soda, salt, and flour. Add chocolate chips. Drop rounded teaspoonfuls about 2” apart on ungreased baking sheet. Bake 11 minutes.  Let cool slightly before removing from baking sheet. Yields approximately 24 cookies. Enjoy!

I live in high altitude so this recipe has been adjusted accordingly. If you try it and they don’t seem right, try reducing the flour a little or adding a little more butter (coconut oil works great too).

TypeError: Error #1009: Cannot access a property or method of a null object reference – UIMovieClip

So I ran into this error again today. I first ran into it a few years ago. It happens to me when I have an asset that is created in Flash Pro and used in a Flex application. It happens when that component has focus and the whole application then loses focus and then receives focus again. The UIMovieClip class has some issues and so if you are getting this error try one of the following solutions. For either of these solutions you’ll need to put an asset on the root level of your application that extends UIMovieClip, DisplayObject or there are a few others. It has to be an object that the FocusManager instance of the main app can set the focus to. I like to use a logo or some other visual element that I can create in Flash and that will be on every view of your application (root level). What you want to do is before removing any UIMovieclip object from the display list, have the application set the focus to the logo or whatever you’re using. The first way of doing this is by adding the deactivate listener to your flex application. Then have the handler function for that set the focus. This works most of the time, but I’ve found some instances where it doesn’t. If you have text fields that have keyboard listener it doesn’t work. The way I prefer is to dispatch an event from each of my UIMovieClip objects before they are removed (I like to put it in a destroy function). That event bubbles all the way up to the app and then the app calls the function to change the focus. Here is an example:

this.focusManager.setFocus(logo);

That’s it. I hope this might help some of you from pulling your hair out. You want to keep all of the hair that you have, believe me I know.

TypeError: Error #2007: Parameter antiAliasType must be non-null

I got this error when I was trying to create a mx DateChooser via code instead of mxml. To make a long story short the solution was to move the call to the function that was attempting it to create it. It was being called from the constructor at first and I moved it to be called after the parent object was added to the stage and that did it. If you are getting this error, try and call whatever code is causing it later in time. I hope this helps.