Friday, April 17, 2009

rice chex, peanut butter, agave and banana smoothie

Liquid energy. I think this might become breakfast for me.

Here it is:

3/4 - 1 cup rice chex
1 medium frozen banana
1 1/2 - 2 tablespoons agave nectar
3 tablespoons of peanut butter
1 cup water
4 large ice cubes

Blend it!

I might throw some blueberries or strawberries in with the next one to round this out.

Wednesday, April 15, 2009

Meat, Fish, and Poultry

I noticed a consistent theme amongst chefs when baking meat, fish, and poultry. Bake at as low a temperature as possible until the item is almost cooked through. Then, pull the item from the oven. If you want to finish the dish in the oven, crank up the heat, respice the dish, and when the oven is hot enough, finish it in there where it the dish can develop a nice, tasty crust. Same thing goes for searing the finish. Add more spices, then sear the outside of the meat. At this point, the meat should have finished cooking through its middle as well.

A very simple tip which has already paid off for me.

Tuesday, April 14, 2009

The Amazing Avocado Smoothie

Ingredients
-----------
1 medium ripe avocado
half a dozen or so ice cubes
1 cup of milk (I use vanilla soy)
2-3 tablespoons of agave nectar

Optional ingredients:
1/2 teaspoon vanilla extract (or imitation)
2 teaspoons sweet cocoa (or use chocolate milk)
A few strawberries

Steps
-----------
Blend all ingredients until smooth.


About the Drink
-----------

This drink is... beautiful. I don't know any other word that sums up the experience of enjoying one of these. It tastes healing, feels life-giving. The creamy fats in the avocado bond and layer over the ice, giving the drink a wonderful bottom. The drink has a weight to it that is both filling and soothing, a thick, expanding coolness as it passes down your throat... The relatively thin soy milk rounds out the middle of the drink and makes the drink light enough to ingest. This masks or blends with most of the avocado flavor... so that the taste is almost recognizable, but not quite. The vanilla and agave are sweet tops for the drink, lending the drink its ether, an angel atop the tree.

Note: I like these without the optional ingredients. However, my son likes them with the strawberries. The strawberries cloak the very mild bitterness in the avocado flavor... which is perhaps is why I like it, the mildest touch of bitterness underneath luxurious creaminess and delicate sweetness of the agave. Like life?

Monday, April 6, 2009

Adding speech to your web page

demo is here: http://www.slowseattle.com/samvoice.aspx

I was up last night and am preparing for interviews. I find the best way to brush up on technologies is to write something fun... I've been interested in the .NET Speech API, but hadn't played with it. I decided that I wanted a way for the page to dynamic speak with the end user. So, I looked around and coded up this .ashx handler.

The front-end code is simple enough. On your web page, use an Ajax call to dynamically create a Windows Media Player object, recreating the url every time with the querystring sending up what you want to tell the service. In this case, I just have the service send back the audio of the text that is in the querystring. You could, of course, capture the querystring, intelligently parse the request and then, say whatever you want. 

I'm using the 5.1 version of the SAPI. 



The js looks something like this:



if((document.getElementById)
{document.getElementById('mediaplayer').innerHTML =
'<object id="Player" type="application/x-ms-wmp"
width="300" height="200">'

'<param name="URL" value="" txt="'">
'"/></object>;'


And here is the code for the web service:




using System;
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;

using System.Speech.Synthesis;

namespace WebApplication1
{
    ///
    /// Summary description for $codebehindclassname$
    ///
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class Sound : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            System.Threading.Thread t = new System.Threading.Thread(Sound.SpeechThread);
            t.Start(HttpContext.Current);
            while (t.IsAlive)
            {
                System.Threading.Thread.Sleep(1);
            }

            HttpContext.Current.Response.ContentType = "audio/x-msdownload";
        }

        public static void SpeechThread(object context)
        {
            HttpContext c = (HttpContext)context;
            string sound = c.Request.QueryString["txt"].ToString();

            using (SpeechSynthesizer synth = new SpeechSynthesizer())
            {
                using (System.IO.MemoryStream spMemStream = new System.IO.MemoryStream())
                {
                    synth.SetOutputToWaveStream(spMemStream);
                    synth.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Child);
                    synth.Speak(sound);
                    spMemStream.WriteTo(c.Response.OutputStream);
                }
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

---------

A demo of this can be seen at http://www.slowseattle.com/samvoice.aspx

Thursday, April 2, 2009

concentration and spirituality

I remember watching an episode of Penn and Teller's show "Bullshit". They debunked yoga as anything but spiritual, and in an unscientific way, because they did not first define what spiritual is.

The word 'spiritual' conjures images of middle-aged white women in the Arizona desert, wearing scarves and bindis arms raised and chanting--all waiting for some great revelation to bonk them on the head which will solve all of their worldly problems, with money, with men, their children. To many, spirituality is looking up toward heaven, asking for help from more advanced beings, and looking for a way out of this world and the pain which is inherent. Whatever it is, some notions of spirituality ask for something beyond the laws of nature.

Enter yoga. Yoga, in the U.S., is generally practiced as what is known as 'hatha' yoga to Eastern practicioners. There are traditionally, eight different types of yoga, the physical one being hatha, the one I'll talk about here. The other types of yoga are all different types of meditation, but with the same goal in mind--ultimate awareness.

I have nothing against people who practice hatha yoga to get their bodies in shape. They're doing the same practice I am. They're exerting the same amount of concentration and, whether they know it or not, are strengthening their minds as well as their bodies. There's nothing 'spiritual' per se going on, except what you are focused on and the degree to which you are focused.

Yoga means to yoke... or tie the body to the mind. The most important part is, especially for very cerebral people, to get out of their heads and feel what their bodies are telling them, maybe even for the first time. Your body is what guides your intuition and is a billion year old intelligent system. Like a gutter is designed to carry away the rain, you are designed to function in this world. Compared to the inner brain, the frontal cortex, the language center, is in its infancy. So, if you think you're smart and you're having trouble in the world and don't know why, that's why. You're not listening to your body. If you're always daydreaming and tripping over your shoelaces, and it's gotten a bit old, yoga might be able to help you.

Yoga is a ticket back into the body... and for those with the ability to focus and grasp what is going on--far beyond. (According to the yoga masters, higher levels of awareness do require contemplation.) And although yoga is about stretching the body and feeling good, it also about honing your concentration or Dharana-

-If you haven't tried yoga but are relatively limber... try this. Stand tall. Put your right foot on the inside of your left thigh. Lift your chest up. Now lift your left arm to the sky. Point your right arm, palm out, towards the wall on your right. Now shift your gaze to the right. Now hold this pose for two minutes and try to make the movement as perfect as possible.

Now, you probably fell before you reached the end. If you did not, good for you. If you did, here's why. First, your body probably isn't strong enough. Second, and more importantly, you didn't hold your concentration.

Yes, it's just like a Buddhist monk sitting in front of a candle staring at the flame for two hours. It is focus. It is concentration. And when you full concentrate, you might find, like Helen Keller, all of the outward stimuli of the world is engaged in one focus, but you are still inside. You are not the focus. You are not the chirping voice in your head. It's a razor's edge, I think, and I'm only starting to scratch the surface myself. But beyond the flame, is there a land of strangeness? Spirituality? I'm not sure yet.

Concentration is a key to success in life. It's what athlete's call being in the zone. It's the perfect balance of being there intellectually or aware, perfectly in to what you are doing, but not being self-conscious. What are the things that distract us from paying attention? Noises? Smells? Sounds? Yes, all external stimuli. And sometimes the voice inside us, chirping on about doubts, fears, etc. Whatever it is, what distracts us the most is the experience of discomfort or pain.

Yoga teaches you to experience discomfort and pain, to lean into it and experience it fully, and all the while, to maintain your pose and your focus. Some schools of yoga do not emphasize this path, but for me, it a the route of passion and commitment. It is my intent, through my practice, to be a better person, stronger, more compassionate. So, when I move through discomfort and pain, I keep my goal in mind. The process can feel ennobling, particularly when you are a person who feels much fear, like I do. When your muscles tremble, you breathe into them. When you are afraid in the real world, you breathe into it--you train for courage.

This depth of concentration carries over into the real world. Maybe you find you are no longer phased by blaring ambulances or gunshots. Maybe your significant other can no longer push your buttons. Maybe you overhear someone making fun of your yoga mat and you laugh it off (ha, I was seriously annoyed by that when I first started!). Seriously, the concentration, the ability to weather storms, comes with the concentration. It can take a sensitive person from incapable and weak to able and resilient.

Yogi also trains the self to wield the body. Yogis and monks have demonstrated that they can go slow their heartbeats to almost nothing, that they can survive extremes of temperature like sitting in the snow for periods of time not thought humanly possible. They can go without food or water. They are pushing the limits of what was thought possible of the body. Though I am a beginner, I can see how this happens. The yogi's mind becomes very close to his or her body.

So, spirituality doesn't have to be something otherworldly. However, it is an inner, subjective experience, and like psychology, we'll have to rely on someone's word until we find better ways to quantify the journey into inner space. And yoga doesn't have to be a drug for you or a means of escape. It can be a means to learn concentration and focus which empower you in this world. A warning though--yoga might start showing you patterns in nature that you hadn't noticed before, synchronicities which may be explained by math or perhaps by some underlying meaning or desired meaning to everything. That is part of the mystery of life is you choose to ponder it.