Monday, November 21, 2011
Yesterday, the South Florida PurpleStride was held in Ft. Lauderdale and was a great success at raising awareness of Pancreatic Cancer and raising funds.
The event was held at the BankAtlantic Center in Sunrise at 8am and attended by over 900 people, both walkers and runners. We raised over $110,000 for PanCan to aid in research for this deadly disease.
Tuesday, October 25, 2011
Please join us at the Bank Atlantic Center for this year’s Purple Stride on Sunday, November 20th at 7am. It is a timed 5K run/walk.
You can find out more about the event and donate for Pancreatic Cancer research at our Purple Stride Team Ron Davis page at http://garz.me/TeamRonDavis-2011.
Find out facts about Pancreatic Cancer athttp://garz.me/facts-pancan.
Wednesday, October 05, 2011
I have been spending some time lately writing an app for the Windows Phone 7 to remote
control a TiVo using your home network (not infrared). Today, the app showed up in the marketplace.

The app uses the Mango (7.5) version of the Windows Phone 7 which supports TCP/IP socket communication. As you click the buttons, commands are sent to the TiVo over the connection to tell it to do various things. For example, IRCODE PAUSE is the command to pause the TiVo. TiVo has documented most of the commands. The TiVo Premiere, S3 and TiVo HD support network remote control.
The app uses some controls from Telerik to improve the user interface such as page transitions, popups for Trial/Purchase notification and the list picker.
The app has a trial and purchase mode. The trial is free but some functionality is disabled. Purchasing the full version ($1.99) immediately enables the missing functions.
The app uses the Dotfuscator product from Preemptive Solutions to obfuscate the code to deter reverse engineering and decompiling the app as well as add analytics to track the number of times the app is used by all those that downloaded it.
Much of the text and hyperlinks within the app may be updated by me without requiring users to update their app. This is done by the app downloading an XML file containing the text and other properties from a website. I simply update the XML file and users will have the latest text available to them. For example, one of the pages has a list of resources and links to websites. I can easily add or update this list. Also, there is a page of Headline News which I can update periodically with new and interesting tips.
Development of the app is done using Microsoft’s Visual Studio. The code is C# and WP7 development is in Silverlight (xaml).
About 9 years ago, I wrote a similar app for the Windows Mobile 6 (image on the right). This app also used network commands but it talked to the old Series 1 TiVo using HTTP protocol to the web server that was set up on the TiVo (TivoWeb).
For more information, click the images to get to the marketplace and the app’s home page.
Tuesday, June 14, 2011
Don’t forget to call your two state senators and your representative about
Pancreatic Cancer Action Network’s advocacy day and let them know of your
interest and ask them for their support of the PanCan funding bills. It only
takes a couple minutes per call. For details, see http://knowitfightitendit.org/.
The buttons on this site send you to the capwiz.com site which seems to be
slow or somewhat broken. I had to scroll down on the messed up page to get to
the phone numbers and script.
Monday, May 30, 2011
You probably include your <script> to pull in the jQuery JavaScript in your layout.cshtml (master page in Razor), perhaps something like this:
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
But your code pages that use jQuery do not show Intellisense. To enable Intellisense, add this to the top of the pages so Visual Studio has a reference to the vsdoc which is hosted by the Microsoft CDN:
@if (false) {<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.6.2.min.js" type="text/javascript" />}
The if statement will prevent the script tag from being emitted to the browser since it is only needed for Visual Studio development.
It is not necessary to specify the path to the vsdoc file since Visual Studio knows to look for the vsdoc in the same location and use it if it finds it.
The Intellisense is shown based on deleting then typing the open paren at the point indicated.
BTW, the $(function() at the top of the example is a common shorthand for $(document).ready(function().
The CDN used is the Microsoft Ajax Content Delivery Network and they changed the domain from ajax.microsoft.com to ajax.aspnetcdn.com to improve performance and prevent microsoft.com cookie transmission.
The CDN also has the files for the jQueryUI .js and .css for the themes.
<link type="text/css" rel="Stylesheet"
href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.14/themes/redmond/jquery-ui.css" />
<script type="text/javascript"
src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.14/jquery-ui.min.js"></script>
Note that the current versions of these files at this time is 1.6.2 for jQuery and 1.8.14 for jQueryUI.
Thursday, May 26, 2011
One of my webs lets the user authenticate using the Facebook OAuth 2.0 Graph protocol. When the user clicks the Logout button, a call is made (Http redirect) to Facebook to have it log the user off Facebook and my site and then it returns to my site to display my page with the button now showing Login instead of Logout. The user never sees any Facebook page during the logout.
The way this works is to pass a parameter to Facebook that indicates the url to return to when it is done. A few weeks ago, this stopped working. Instead of returning to the specified url, Facebook logged out the user but displayed its own page. It ignored the return url parameter.
The return parameter is specified as next=.
I posted a Facebook bug and someone did reply with a solution. It did not immediately work for me but with some experimentation, I found out the needed syntax.
This does work if you do it right. I tried some variations and some work and some don't. By "work", I mean the redirect will log you out and it will return to your url in the "next" parameter.
https://www.facebook.com/logout.php?next=[http://www.yoursite.com]&access_token=[current_token]
- Use https, not http - it won't return if you use http (for facebook.com)
- Supply the access_token parameter - it won't return if omitted
- Both www.facebook.com and m.facebook.com appear to work
- Supply or omit the &confirm=1 parameter (some folks mentioned it). It worked either way
- UrlEncode the next parameter if necessary (contains question marks, ampersands, equal signs, etc.)
- I passed &next=http://localhost:5000/ - final slash is not required but recommended.
Wednesday, February 23, 2011
I attempted installation of SP1 for Windows 7 on an Acer (Aspire Revo 3610) PC running 64-bit Windows 7. The PC runs as a home server and I started the install while remotely connected. Once it completed the install (with about 5 other Windows updates), I allowed it to reboot. 
I eventually noticed that it never came back up (I was unable to ping it) so I went to the console (my TV monitor) and it displayed no signal. The power light was on so I left it alone incase it was just a really long install. I actually installed the SP1 on my desktop, also running 64-bit and though it took a long time (maybe an hour), it did complete and start up OK.
I then powered the Acer off and on and it started a reboot which displayed on the console. It indicated it had a problem and offered a recovery or continue the boot normally. I opted to continue the normal boot. It displayed the bootup graphic and started a count-up of the dlls it was updating similar to my successful install. However, it stopped early and displayed a fatal error:
Fatal Error C0000034 applying update operation (Update 282 of 103814)
I searched the web and did not get many hits on this error and none very helpful other than to recover from a backup or checkpoint.
So, I rebooted again, this time choosing to recover from the last good boot. This also took a while - maybe 1/2 an hour but was successful.
I will reattempt the SP1 install when I can get more information on this error and its resolution.
UPDATE (from this) - Once you are recovered, provide your logs to Microsoft
Go to the folder C:\Windows\Logs\CBS\ and copy all files to your document folder, also copy the setupapi logs from the folder C:\Windows\Inf and the file C:\Windows\winsxs\poqexec.log to your document folder. Zip all files into 1 Zip file and upload the Zip file to your SkyDrive and post a link here: http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/4fc10639-02db-4665-993a-08d865088d65
UPDATE 2 (A reported solution from thiswoot: here) - Basically, select Launch Startup Repair; follow the steps to get to the command line; run notepad.exe c:\windows\winsxs\pending.xml; reboot and wait about 15 minutes and the SP1 will complete its install.
Monday, December 06, 2010
I posted over three years ago about my experiences in upgrading my HD Tivo (How I Upgraded my HD Tivo from 20 to 98 hours) and since then, I moved my family room HD Tivo to the bedroom and replaced it with a Tivo Premiere. Well, I started running low on space so it is upgrade time again.
There are new tools to do the easy upgrade which I did yesterday. The upgrade took four hours of which three hours were waiting for the disk-to-disk copy to complete. Also, I recorded the project for YouTube. See details at my DIYClinic website.
Friday, September 03, 2010
Google AdSense is not supported for https (see here). If you attempt to use it on an SSL page, you will see this warning in IE8.
The user would have to click No to allow the request (for a .js file in this case) to complete. Answering Yes will block it (the wording seems backwards from what you’d expect).
Some postings I saw said to change the .js url in the script to use https://pagead2.googleadservices.com/pagead/show_ads.js but while this will work for this one .js file, the script then attempts to pull in other .js files using http so you still get the warning popup.
The best solution is to not let the warning pop up on your secure pages.
This is the standard AdSense code:
<script type="text/javascript">
if ("http:" == document.location.protocol) {
google_ad_client = "pub-1234567890123456";
google_ad_slot = "1234567890";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
This is the new version that will suppress the AdSense code and prevent the popup on your SSL pages. Simply insert the document.write statement and remove the second script.
<script type="text/javascript">
if ("http:" == document.location.protocol) {
google_ad_client = "pub-1234567890123456";
google_ad_slot = "1234567890";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
document.write(unescape(
"%3Cscript src='http://pagead2.googlesyndication.com/pagead/show_ads.js' type='text/javascript' %3E%3C/script%3E"));
}
</script>
This fix uses the existing conditional block for non-SSL pages that initializes some google_ad variables to also emit a <script> element to pull in the necessary show_ads.js file. For SSL pages, the variables will not be initialized and the script will not be emitted for the page.
Wednesday, September 01, 2010
I signed up with a PayPal Plus MasterCard some time ago and started to accumulate some rewards points. When I went to investigate how to redeem my points, I found out there were some pretty unusual restrictions. Instead of buying an item from a catalog and applying the points, the PayPal credit card rewards is based on vouchers that may be redeemed during some site’s PayPal checkout process. There are three vouchers – $7 to be applied to shipping for 1000 points; $25 for an item for 2500 points and $100 for an item for 9500 points.
Vouchers must be used within 60 days or you lose them. Also, not all websites that take PayPal support payment via voucher. Searching the Internet, I saw may postings about people having trouble finding out how and where to redeem these vouchers. It turns out that a website that I am familiar with does work with the vouchers. It is www.blowitoutahere.com which sells CDs, DVDs, games and accessories which is a great way to use your rewards and not lose out of your redeemed voucher value.
Basically, you first go to the PayPal site, log on, click on the View card details link on your My Account Overview page. Click on the Rewards link on the left to select the voucher you want. In this example, I plan to buy Avatar on Blu Ray with a $25 voucher.
Once you get the voucher, the 60-day count-down starts. The voucher is not something you see, or a number you have to copy down. It is tied to your PayPal account and will be available for you to apply during checkout.
I had heard there was a delay in being able to use the voucher but in this case, I was able to complete my checkout immediately using the voucher.

Now that you have the voucher, go to the BIOH website. Search for the item(s) you want and add them to the cart. The voucher will be used up in this purchase so you want to make sure your cart has enough stuff in it so you don’t lose any value from your voucher. Any amount over the voucher value will come from another PayPal funding source like your PayPal balance. This includes shipping and sales tax.
Click to checkout and when you see the PayPal Express Checkout button on the second checkout page, click it instead (see image on right) of entering you address information and going through with the standard checkout. Standard checkout will not give you the opportunity to use your voucher but Express Checkout will.

You will now be redirected to PayPal to log on and select the shipping address and payment information.
When you have the opportunity to select the payment method, click the link to Enter gift certificate, reward or discount as shown on the left. This will open up the entry panel and you now click on select from this list. Your voucher(s) will show up to allow you to make your selection and click the Apply button.
At this point, you will continue with the checkout process at the BIOH website.
You can go back to your PayPal account and see details of the transaction such as the amount redeemed from the voucher (hopefully all of it) and any balance pulled from your PayPal account or other funding source.
I understand that the PayPal Plus credit card may be changing the rewards program to use a more traditional approach rather than the voucher system. I am not sure if existing accounts will be changed over or how this is to be implemented.
In any case, this is one place that you can use your rewards. Other sites that offer Express Checkout probably also will work just fine. Please leave comments on other sites that can be used for reward redemption.