WebResponse responseObject = await Task.Factory.FromAsync(request.BeginGetResponse, request.EndGetResponse, request);
var responseStream = responseObject.GetResponseStream();
var sr = new StreamReader(responseStream);
string received = await sr.ReadToEndAsync();
Notes integrating brain sensor into Windows Phone app
- Ran into numerous barriers and blocks - may have to look into low level "C" and sockets
- WP8 does not support DllImport
- WP8 needs to use Windows Phone Runtime Component
- Ran into C++ "unresolved external symbols" error trying to use sensor api
- When use non phone lib - works in non-phone environment, but object fails to initialize when new'ed in phone environment
Will probably have to use C and sockets?
Posted on Sunday, February 02, 2014 6:27 AM
Nokia 928 Audio problem
Another Nokia 928 phone problem - audio speaker cuts out or sometimes the headphone not recognized and plays out speaker. Others have same issue - need to send in to get replaced. Again!!!
Short term work around - bang on back of phone and sound comes back - seriously
Posted on Friday, January 31, 2014 5:49 AM
George W Bush - From Starkey Hearing Innovation Expo 2014
"Know what you know and what you don't know, then surround yourself with people who are experts."
"As a leader, when you're successful, give someone else the credit. When you fail, take the heat."
"Leaders need to let employees know they have their back in times of crisis."
"During the difficult teen years, I told my daughters, there is nothing you can do to make me stop loving you, so stop trying."
"The greatest gift a parent can give a kid is unconditional love, like my parents gave me."
"My first reaction was I was hot ... my blood boiled. But I knew my job was to protect our country and project calm in a time of crisis."
Dealing with adversity
"Something will happen to you that you don't want to happen. Are you going to be overcome with self-pity or suck it up and deal with it?
On serving others
"To whom much is given, much is required. Americans need to understand how well-off we are and that we have a responsibility to help others throughout the world."
On his first hearing mission in Africa with Bill Austin
"I've had a lot of great experiences in my life but seeing a mother's reaction to her daughter hearing for the first time was priceless."
"Don't ever retire, just change your assignments."
Posted on Thursday, January 30, 2014 6:14 AM
There is only one thing that makes a dream impossible to achieve: the fear of failure. [Paulo Coelho]
Posted on Monday, January 27, 2014 7:15 AM
The Art of Racing in the Rain [Garth Stein]
From the Author...
The car goes where the eyes go.
Q: What lessons can we all learn from Enzo?
A: I'm not sure that's for me to judge. But I would say the important things for me are twofold.
First, Enzo's mantra: "That which you manifest is before you." I think it's very important to take charge of your life, not to feel like you're a victim of circumstance or fate, but that you are an active participant in your future. It's not a new idea: "And in the end, the love you take is equal to the love you make." (Lennon/McCartney) Where I focus my energy always matches what comes back to me in my life.
Secondly, Enzo's epiphany—the thing he learns at the end of his life—is that his assumption that race car drivers have to be selfish to be successful, is incorrect. In fact, he determines, in order to be successful, a race car driver has to be completely selfless. He must cease looking at himself as the brightest star in the solar system, and begin to see himself as simply a unique aspect of the universe around him—and, most importantly, as an extension of the universe around him. In this way, a race car driver sheds his ego; his actions become pure and as powerful as the entire universe, which in turn leads to success.
All athletes speak about the mental element of athletics, and it usually boils down to the same thing: if you can remove your ego from the game, you can function with much more clarity and you are more likely to succeed. Wouldn't it be interesting if we all began speaking about the mental element of our lives in this way? How would our lives change if we did?
Posted on Monday, January 06, 2014 10:14 AM
Courage is what it takes to stand up and speak. Courage is also what it takes to sit down and listen. [Winston Churchill]
!-- This style is used for buttons, to remove the WPF default 'animated' mouse over effect --
Style x:Key="MyButtonStyle" TargetType="Button"
Setter Property="OverridesDefaultStyle" Value="True"/
Setter Property="Margin" Value="5"/
Posted on Friday, December 13, 2013 5:58 AM
A foolish faith in authority is the worst enemy of truth. [Albert Einstein]
Posted on Sunday, December 08, 2013 6:30 AM
Screen Capture Video
Trying TechSmith Camtasia (30 day free trial) for video screen capture. Notice though that when screen capturing multiple monitors, the audio gets delayed. Just recording one screen does not have that problem.
Posted on Tuesday, December 03, 2013 9:25 AM
To think is easy. To act is hard. But the hardest thing in the world is to act in accordance with your thinking. [Johann von Goethe]
Posted on Tuesday, November 26, 2013 6:00 AM
I dreamed death came the other night,
And heaven’s gate opened wide.
With kindly grace an angel
Ushered me inside,
And there, to my astonishment
Stood folks I’d know on earth,
Some I’d judged and labeled
As unfit or little worth.
Indignant words rose to my lips,
But never were set free,
For every face showed stunned surprise
No one expected me!
Posted on Saturday, November 02, 2013 7:06 AM
Got a simple DIY brainwave monitor. It will save the info to a wav or edf file. I want to capture the data real time for analysis - I have some C++ files. Could get interesting.