Thursday, December 1, 2011

Add Some Keys to Those Clicks

This is the same mouse test as before, but I've also added some keyboard behavior. Pressing the number keys displays a number in the corresponding box. (The numeric keypad keys do not, just the ones in the top row of the keyboard.) The different shape of the grid is intentional. The appearance of the boxes, and consequently the mouse hit detection, gets computed from the width and height of the canvas as described in the HTML rather than being defined on the JavaScript side. This is a minor little example of separating appearance and functionality.

Sorry, you browser does not support the canvas element, you will not be able to see this demo.

Bachelor Chow: Corp. Joe's Chicken

Today's experiment in turning a bunch of mostly pre-made ingredients into something greater than the sum of their parts went quite well. For future reference, I present Corporal Joe's Chicken.

  • Shake and bake chicken, hot and spicy style, prepared as nuggets (cooks faster that way too).
  • Veggie fried rice consisting of frozen "stir fry" vegetable medley of your choice, stir fried with a touch of ginger powder, adding cooked instant rice and a light amount of soy when the veggies are done.
  • Mix 50/50 soy sauce and hoisin sauce, heat for a couple of seconds in the microwave so they will blend, drizzle over chicken to taste. Optionally add red pepper flakes and onion flakes or chopped fresh green onions to better emulate Tso chicken's flavor.