tag:blogger.com,1999:blog-332473772024-03-13T10:21:59.445-07:00Scott J. DeSapio (Engineering)Notes-to-self and other scattered ramblings about writing code and drinking lots of coffee.Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.comBlogger39125tag:blogger.com,1999:blog-33247377.post-69633446571291383742018-02-22T07:05:00.003-08:002018-02-22T08:04:17.470-08:00Use WiFi for Internet and Ethernet for Local File Transfer on MACOn all machines that will use this configuration...<br />
<br />
<ol>
<li>Open "System Preferences." </li>
<li>Click on "Network." </li>
<li>Click on the Gear icon in the lower left and select "Set Service Order." </li>
<li>Set Wi-Fi to first position and Ethernet to second. </li>
</ol>
<br />
<b>NOTE ABOUT NETWORK SETUP</b>: Separate the two networks by setting the wireless router to use a different subnet mask (e.g. 255.255.0.0) while also setting the DHCP range of addresses to assign from a different pool (e.g. 192.168.0.100).<br />
<br />
<b>NOTE ABOUT SHAREMOUSE</b>: Make sure to set Sharemouse to use the LAN addresses as using WiFi will result in serious lag making it impossible to use. To do this, open Sharemouse settings, click on "Clients" and make sure only the IP addresses from the LAN are in the client list. Also, make sure to setup static IP addresses for your Ethernet connection so you define clients explicitly in settings. <br />
<br />
<br />Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-28017928848671303352017-02-07T06:03:00.002-08:002017-02-07T06:07:11.307-08:00Sublime Text Dark Theme in Sidebar Not Working<div>
To ensure your theme is applied to all Sublime panels...</div>
<ol>
<li>Navigate to Sublime Text -> Preferences -> Settings -> "Preferences.sublime-settings - User"</li>
<li>Make sure the "color_scheme" property and "theme" property are both present with the appropriate values set.<br /><br />For instance, using the <a href="https://github.com/equinusocio/material-theme">Material Theme</a>:<br />
<pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"><code>"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"theme": "Material-Theme-Darker.sublime-theme",</code></code></pre>
</li>
</ol>
Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-43829903746958754142017-01-29T08:34:00.001-08:002017-02-02T11:28:11.239-08:00How to Restart Web Server After Google App Engine Launcher Crash <ol>
<li>Open a terminal window.</li>
<li>Copy and paste this: <code>sudo lsof -i -n -P | grep TCP</code></li>
<li>Take note of the process id (PID) currently listening on the port your app was running on (look for something that looks like: <code>TCP 127.0.0.1:8080 (LISTEN)</code>).</li>
<li>Open <b>Activity Monitor</b>.</li>
<li>Sort the processes list by PID.</li>
<li>Kill the process matching the PID you noted in step 3.</li>
<li>Restart your server from <b>Google App Engine Launcher</b>.</li>
</ol>
<div>
Thanks to irs8925 for providing the answer on <a href="http://stackoverflow.com/a/37612873/2037540">Stack Overflow</a>.</div>
<br />
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-78649667326266417992014-03-08T09:59:00.000-08:002014-03-08T09:59:04.324-08:00Installing Phonegap pluginsPutting this example of installing Phonegap plugins here for myself as reference...<br />
<br />
Example using Plugman (for Native workflow; entered from anywhere):<br />
<pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">plugman install --platform ios --project ./Phonegap/ios/beepwatch2/platforms/ios --plugin org.apache.cordova.splashscreen
</code></pre>
<br />
Example using Cordova (for Global workflow; entered from project folder):<br />
<pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">cordova plugin add org.apache.cordova.inappbrowser
</code></pre>
<br />Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-12154476289132170162013-08-24T08:36:00.002-07:002013-08-24T08:36:55.825-07:00Force Phoegap app to maintain focus and not go into backgroundThis one actually took me a second to research and find the answer to. I was putting together a beeping stopwatch app for myself and wanted the app to <b>remain in the foreground</b> but, after about 60 seconds, the app kept going into the background.
<br />
<br />
Finally, I stumbled on a <a href="http://stackoverflow.com/questions/10661015/since-ios-does-not-allow-you-to-run-js-in-the-background-is-it-possible-to-keep">stackoverflow conversation</a>. Without further ado...
<br />
<br />
Add the following line to your <b>didFinishLaunchingWithOptions</b> in <b>AppDelegate</b>:
<br />
<pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">[UIApplication sharedApplication].idleTimerDisabled = YES;
</code></pre>
<br />
<br />
Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-3543182084265770532013-02-06T11:59:00.001-08:002013-04-17T06:42:50.232-07:00Add iAd to PhoneGap Application<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">This post derives from the SiteKickr Blog post "<a href="http://www.sitekickr.com/blog/phonegap-cordova-iad-integration/">PhoneGap/Cordova and iAd integration</a>." I got stuck in a couple of spots and decided to attempt to lend a little clarity for anyone else seeking a solution. I've also taken a couple of the comments from that post and integrated here.</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">1. Click on the "Project Navigator" icon in the left most panel in XCode.</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR8gVfrQeSMQ8lHLG05uhvqI3w_f3vBQGGOnr3AEZg2is9zEvoFzAqHNEQRKzGlYQUeFu4fqpd3oBfGMTGEl9zZgvcZn0CJT1HE-NBaipvOo92BA4zVDCunKL4iKGGSsQQzQYHRw/s1600/iAdStep1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR8gVfrQeSMQ8lHLG05uhvqI3w_f3vBQGGOnr3AEZg2is9zEvoFzAqHNEQRKzGlYQUeFu4fqpd3oBfGMTGEl9zZgvcZn0CJT1HE-NBaipvOo92BA4zVDCunKL4iKGGSsQQzQYHRw/s1600/iAdStep1.jpg" width="540" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">2. Click on the top-most item in your hierarchy. </span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2P1fmYh65c3o5AolacZTl-q6b1f7e8bIBcjwBtHVel1OYUoyJS0MaI9k-7tE3BbYBIX_iS28qBmkKDCckFhGHLzcIxRt6L_tNMl9AtvhFC-mXoCugd-2sx7w1Zn01cCeMfxoLog/s1600/iAdStep2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2P1fmYh65c3o5AolacZTl-q6b1f7e8bIBcjwBtHVel1OYUoyJS0MaI9k-7tE3BbYBIX_iS28qBmkKDCckFhGHLzcIxRt6L_tNMl9AtvhFC-mXoCugd-2sx7w1Zn01cCeMfxoLog/s1600/iAdStep2.jpg" width="540" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">3. Click on the Build Phases tab. </span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkK_m2C7AYq3Ot5eS9oJTFFd9M536-sdwhvtku3nPGq2GCxkVqwnywjbnFqlf1xero_ioTMWzpqjYojDWXu34yUwro8N_wF763LyXReWgvrXXD6eK5zpLoYB70-hmjFpmHcrCLAQ/s1600/iAdStep3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkK_m2C7AYq3Ot5eS9oJTFFd9M536-sdwhvtku3nPGq2GCxkVqwnywjbnFqlf1xero_ioTMWzpqjYojDWXu34yUwro8N_wF763LyXReWgvrXXD6eK5zpLoYB70-hmjFpmHcrCLAQ/s1600/iAdStep3.jpg" width="540" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">4. Expand "Link Binary with Libraries."</span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR9PckMdVni1oqqKnr_NnaagtQ2zrJO9P91IzB-ygeXeUInqwtHkaqGrDjM1XlBsvuE-nQW_9X8SpjAhTvXaepS2ba3GsPSaE2pxrTopsrOZ3W6ahJvVZONQ72TTLfTvZEIIwF9w/s1600/iAdStep4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR9PckMdVni1oqqKnr_NnaagtQ2zrJO9P91IzB-ygeXeUInqwtHkaqGrDjM1XlBsvuE-nQW_9X8SpjAhTvXaepS2ba3GsPSaE2pxrTopsrOZ3W6ahJvVZONQ72TTLfTvZEIIwF9w/s1600/iAdStep4.jpg" width="540" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">5. Click the + icon to add the iAd.framework to your project.</span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI24tlqg3QiyI5RUxx_tBqmToIZWWthHK5dc8yuUgiT899vRSrsMrv_E-MW7zcyZTP5n3nc0jkf86LWi3iVflxaCHE0BgctPFe7CRr2U9Z3vb3ft8nIKKSGyIwi-9SziAnXYEpIw/s1600/iAdStep5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI24tlqg3QiyI5RUxx_tBqmToIZWWthHK5dc8yuUgiT899vRSrsMrv_E-MW7zcyZTP5n3nc0jkf86LWi3iVflxaCHE0BgctPFe7CRr2U9Z3vb3ft8nIKKSGyIwi-9SziAnXYEpIw/s1600/iAdStep5.jpg" width="540" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">6. In your App -> Classes folder, open up MainViewController.h, and drop in the following code after any existing #import statements but before @end: </span>
<br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwtfWA7mZbSSCOwhUuCb8T2OoAsNhrdT4XqeG0OvGr5n-XnLDmHHZ5DmHol2Rk97ZGxstzFMeIa01j6JintXNkfCWAqHhiWD5jkJ9_AeyqeLU6VmO3xQcdGZJep7TZXOd-YVlkWg/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> #import <iAd/iAd.h>
@interface MainViewController : CDVViewController {
ADBannerView *adView;
}
</code></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4_MHqicxZDOlIGCtXogJqud061qnKGtJ4URe_QDc30ZEyx14QJ0oIKA1OQp_YunsKzxgfSKUhyphenhyphenPOluS_IbvZDnMU-QtSAQVQfaYg2_BWTmuRBC2sENWfEPxB5-cnxDJqhNog1yg/s1600/iAdStep6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4_MHqicxZDOlIGCtXogJqud061qnKGtJ4URe_QDc30ZEyx14QJ0oIKA1OQp_YunsKzxgfSKUhyphenhyphenPOluS_IbvZDnMU-QtSAQVQfaYg2_BWTmuRBC2sENWfEPxB5-cnxDJqhNog1yg/s1600/iAdStep6.jpg" width="540" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjENiDsvzffmGPyZCxxJG6Tn5_kEkoipJwTFrMwJl6rtwTTqLBmEU-Czxc1w1dOE4_2T8yiUPw4LE71fTgwUt4frRrNxJPzuWeo7ojJWkclj_FMiY56nFd7hXJI3VkFhduvOTxEYw/s1600/iAdStep7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjENiDsvzffmGPyZCxxJG6Tn5_kEkoipJwTFrMwJl6rtwTTqLBmEU-Czxc1w1dOE4_2T8yiUPw4LE71fTgwUt4frRrNxJPzuWeo7ojJWkclj_FMiY56nFd7hXJI3VkFhduvOTxEYw/s1600/iAdStep7.jpg" width="540" /></a></div>
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">7. Open up MainViewController.m</span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSdupfehQQSz3jgmT3i6N-kgGnDYs7OgsqQBcGjFWBCWcfvdjZvgzwUQTnVHdituDeTwyyVVXRBj3ASiSSb6PDxXJxOGUZOeR5aLEHVsXqQthxUahxFf9w_9YnedbT8GUZPdIMZw/s1600/iAdStep8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSdupfehQQSz3jgmT3i6N-kgGnDYs7OgsqQBcGjFWBCWcfvdjZvgzwUQTnVHdituDeTwyyVVXRBj3ASiSSb6PDxXJxOGUZOeR5aLEHVsXqQthxUahxFf9w_9YnedbT8GUZPdIMZw/s1600/iAdStep8.jpg" width="540" /></a></div>
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">8. In your viewDidUnload method, which should already exist, add:</span>
<br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwtfWA7mZbSSCOwhUuCb8T2OoAsNhrdT4XqeG0OvGr5n-XnLDmHHZ5DmHol2Rk97ZGxstzFMeIa01j6JintXNkfCWAqHhiWD5jkJ9_AeyqeLU6VmO3xQcdGZJep7TZXOd-YVlkWg/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> [adView release];
</code></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1JYX6oWXpWx3xwMwQ5Vrqo-d3kB5_xYGT-e7-jXDFqpQz08ryz1y1go45g7MG9jwklpZoNko-YtQ4teBaz9IRvOonA2l5MN51eyhDdOKP7ewx1W5u0Hq9SLgfi0ZtxdHIbTRk0w/s1600/iAdStep10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1JYX6oWXpWx3xwMwQ5Vrqo-d3kB5_xYGT-e7-jXDFqpQz08ryz1y1go45g7MG9jwklpZoNko-YtQ4teBaz9IRvOonA2l5MN51eyhDdOKP7ewx1W5u0Hq9SLgfi0ZtxdHIbTRk0w/s1600/iAdStep10.jpg" width="540" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">9. In your webViewDidFinishLoad method, add the following just before: </span><br />
<span class="s1">"return</span><span class="s2"> [</span><span class="s1">super</span><span class="s2"> </span>webViewDidFinishLoad<span class="s2">:theWebView];<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">"</span></span><br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwtfWA7mZbSSCOwhUuCb8T2OoAsNhrdT4XqeG0OvGr5n-XnLDmHHZ5DmHol2Rk97ZGxstzFMeIa01j6JintXNkfCWAqHhiWD5jkJ9_AeyqeLU6VmO3xQcdGZJep7TZXOd-YVlkWg/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
CGRect adFrame = adView.frame;
if([UIApplication sharedApplication].statusBarOrientation
== UIInterfaceOrientationPortrait
|| [UIApplication sharedApplication].statusBarOrientation
== UIInterfaceOrientationPortraitUpsideDown) {
adView.currentContentSizeIdentifier =
ADBannerContentSizeIdentifierPortrait;
adFrame.origin.y = self.view.frame.size.height-adView.frame.size.height;
} else {
adView.currentContentSizeIdentifier =
ADBannerContentSizeIdentifierLandscape;
adFrame.size.width = adView.frame.size.width;
adFrame.origin.y = self.view.frame.size.width-adView.frame.size.height;
}
adView.frame = adFrame;
[self.view addSubview:adView];
</code></pre>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">10. If you don't already have a willAnimateRotationToInterfaceOrientation method, add it, and drop in the following code:</span>
<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> BOOL hide = (newInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || newInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
[[UIApplication sharedApplication] setStatusBarHidden:hide withAnimation:UIStatusBarAnimationNone];
CGRect mainFrame = [[UIScreen mainScreen] applicationFrame];
[self.view setFrame:mainFrame];
if (newInterfaceOrientation != UIInterfaceOrientationLandscapeLeft && newInterfaceOrientation != UIInterfaceOrientationLandscapeRight) {
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
[self.view bringSubviewToFront:adView];
adView.frame = CGRectMake(0.0, self.view.frame.size.height - adView.frame.size.height, adView.frame.size.width, adView.frame.size.height);
}
else {
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
[self.view bringSubviewToFront:adView];
adView.frame = CGRectMake(0.0, self.view.frame.size.width - adView.frame.size.height, adView.frame.size.width, adView.frame.size.height);
}
</code></pre>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"><b>A couple of points of note regarding ad placement:
</b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">- iAd is not like Adwords or Admob. Ad placement is not done in your HTML and does not use your javascript or CSS.
</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">- By default, the ad will be placed on the bottom of your app's UI. To change the position of the ad, you'll need to edit all instances of the value of adFrame.origin.y to equal 0 (</span><span style="font-family: Arial, Helvetica, sans-serif;"><i>adFrame.origin.y=0</i></span><span style="font-family: Arial, Helvetica, sans-serif;">).</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">- After you're done and ready to deploy, you'll need to enable iAd in your application through iConnect. Keep in mind you can only do this AFTER you upload your app.</span><br />
<br />
<ol>
<li><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Log in to </span><a href="https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">iTunes Connect</a></li>
<li><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Click on "Manage Your Applications"</span></li>
<li><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Click on the App you want to enable iAd on.</span></li>
<li><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Click on the blue "Set Up iAd Network" button.</span></li>
<li><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Follow the instructions.</span></li>
</ol>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">That's it! Good luck.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b>UPDATE 03.06.2013:</b> Check out this great response at StackOverflow regarding not showing the ad placeholder if an ad is not delivered: <a href="http://stackoverflow.com/a/14764349/2037540">http://stackoverflow.com/a/14764349/2037540</a></span><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><b>UPDATE 04.17.2013:</b> Brandon Hawkins has come up with a great solution to deal with the issue of the ad frame setting on top of the webview. Check it out here: <a href="http://hawkinbj.wordpress.com/2013/04/16/implement-iad-banner-ads-without-covering-uiwebview-in-phonegap/">http://hawkinbj.wordpress.com/2013/04/16/implement-iad-banner-ads-without-covering-uiwebview-in-phonegap/</a></span>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com28tag:blogger.com,1999:blog-33247377.post-77720747446079443932012-11-27T14:28:00.001-08:002013-01-16T07:25:58.159-08:00Installing PIL on a Mac<div>
After much torment, and many failures, PIL is now installed. And, it is embarrassing just how simple it ended up being. I'm leaving this here so when I move to my next dev box, I don't spend three days figuring out again.<br />
<br />
At the time of this writing, I was running OSX 10.8.2 but I'm sure this will work on earlier versions and probably subsequent versions for some time.<br />
<br />
1. Open Terminal<br />
2. Type: sudo easy_install pip</div>
<div>
3. Type: sudo pip install PIL<br />
<br />
<span id="goog_1213219195"></span>Thanks to klobucar at StackOverflow for his <a href="http://stackoverflow.com/a/9781752">answer regarding installing PIP</a><span id="goog_1213219196"></span>.<br />
<br /></div>
<div>
<br /></div>
Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.comtag:blogger.com,1999:blog-33247377.post-20448484040629561402012-11-03T08:19:00.002-07:002013-01-27T08:31:37.768-08:00Updates Posted to the Classic ASP VBScript OAuth LibraryThere's been a bit of drama over at the Classic ASP VBScript OAuth board regarding twitter's recent API URL changes. All is well now as the project has been updated and a new example project zip uploaded.<br />
<br />
Essentially, it boils down to some Constant URL changes in one of the files. You can read more about it and download the latest version at the <a href="http://scottdesapio.com/VBScriptOAuth/">Classic ASP VBScript OAuth</a> site.Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.comtag:blogger.com,1999:blog-33247377.post-34039088674345876052012-04-10T11:55:00.003-07:002013-01-16T07:25:58.140-08:00Delete all pyc filesScenario: You've just pushed a slew of compiled python files <br />
Solution:<br />
1. Terminal into your project directory <br />
2. Enter: <code>'find . -type f -name "*.pyc" -delete;'</code> (without the quotes)<br />
3. Add a .gitignore file to the root of your project with <code>'*.pyc'</code> as its content<br />
4. Re-push the projectScott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.comtag:blogger.com,1999:blog-33247377.post-76662601939786150322011-09-22T20:53:00.000-07:002015-05-28T12:20:30.421-07:00Google App Engine Localhost from Parallels<br />
This post is for developers using a MAC, developing on the Google App Engine platform, attempting to connect to their development environment from Windows on Parallels to test browser compatibility.
<br />
<br />
NOTE: This post was updated on March 25th, 2013 to accommodate changes made to the <a href="https://developers.google.com/appengine/docs/python/tools/devserver">GAE Python Development Server</a>.
<br />
<br />
Again, you are:<br />
1. Developing on a MAC.<br />
2. Atop of Google App Engine<br />
3. Using Parallels for browser testing<br />
<br />
Setup:<br />
1. On your MAC, open Google App Engine's Launcher application<br />
2. Double click on the project you're attempting to connect to<br />
3. In the "Extra Flags" field, enter "--host=0.0.0.0" (without the quotes) and hit the "Update" button.<br />
4. Make sure the Windows firewall is OFF in your Parallels Windows instance.<br />
<br />
That's it, open a browser in your Parallels Windows instance and hit the local network IP address of your MAC using the port delegation from Google App Engine launcher. For instance, if your MAC's IP address is 192.168.0.2, and your project's Google App Engine port is 8101, the address you put in your Parallels browser may be http://192.168.0.2:8101.<br />
<br />
Voila.Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-61006766421958881602011-08-23T23:58:00.000-07:002013-01-16T07:26:19.362-08:00Unsync/Remove Gmail Contacts from iPhoneSomehow you managed to get every single person you've ever emailed jammed into your iPhone right?<br />
<br />
This solution assumes you have a Mac & an iPhone:<br />
1. On your Mac, open "address book"<br />
2. Click on File -> New Smart Group...<br />
3. In Smart Group Name, type "iPhone Tmp"<br />
4. In the first drop-down menu, select "Phone"<br />
5. In the second drop-down menu, select "is set"<br />
6. Click "OK"<br />
7. Click File -> New Group<br />
8. Name the group "iPhone Contacts"<br />
9. Click on the "iPhone Tmp" group and drag all of the contacts from that group into "iPhone Contacts"<br />
10. Plug your iPhone into your Mac and open iTunes.<br />
11. Click on your phone listed in "Devices"<br />
12. Click on the "Info" tab/button.<br />
13. Check the "Sync Address Book Contacts" checkbox.<br />
14. Check "Selected groups"<br />
15. Check "iPhone Contacts"<br />
16. Make sure nothing else on the page is checked.<br />
17. Sync.<br />
18. Be happy.<br />
Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-3887338613790644632011-02-07T08:26:00.000-08:002013-01-16T07:25:58.143-08:00Atlas Shrugged MovieWent Galt. The <a href="http://www.atlasshruggedpart1.com/">Atlas Shrugged Movie</a> called. I'm back.<div><br /></div>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-81544390541899887482010-07-10T06:42:00.000-07:002013-01-16T07:25:58.161-08:00Another transaction by user ... is already in progress for this app and major version.Gotta love it when your app deployment tells you there was on error on your last attempt to deploy... 24 hours ago. WHAT!? Thanks for the heads up Google.<br /><br />Recently got hit with "<span style="font-weight: bold;">Another transaction by user ... is already in progress for this app and major version.</span>" during what I thought was going to be a quick update.<br /><br />Thanks to <a href="http://stackoverflow.com/users/111754/john-ballinger">John Ballinger</a> for posting instructions.<br /><br />1. Start -> Run -> cmd<br />2. <code>cd</code> into your application directory. For me, this is cd /Sites/appengine_myapp<br />3. <code>appcfg.py --no_cookies --email=YOUR_EMAIL_HERE@gmail.com --passin rollback ./</code><br />4. You should be prompted for your password.<br /><br />Nice.Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com1tag:blogger.com,1999:blog-33247377.post-54850425630912328292010-06-23T06:56:00.000-07:002013-01-16T07:25:58.148-08:00Web SIte Performance: Optimal Page Structure Vs. RealityRecently, I had the opportunity to talk about <a href="http://stevesouders.com/">Steve Souders</a>' web site performance work with some old friends. While attempting to hammer home the importance of the Souders' performance techniques, I failed to mention one VERY IMPORTANT thing...<br /><br />It's <span style="font-style:italic;">NOT</span> an all or nothing proposition. <br /><br />Along with the ideal, there are two VERY important points that need to be conveyed:<br /><br />1. Not ALL of the techniques need to be deployed at the same time in order to have an impact. Implementing just a few can have a dramatic effect. The more the merrier BUT, all or nothing is DEFINITELY NOT the goal.<br /><br />2. The techniques are not biblical in stature. There are times when the ideal is simply incongruent with the required solution. For instance, the recipe for optimum performance and IDEAL page structure is:<br /><br /><ul style="margin:0px 0px 0px 30px;padding:0px;"><br /><li style="margin:0px;padding:0px;">1 static HTML file</li><br /><li style="margin:0px;padding:0px;">1 css resource</li><br /><li style="margin:0px;padding:0px;">1 image resource</li><br /><li style="margin:0px;padding:0px;">1 js resource</li><br /></ul><br /><span style="font-weight:bold;">Ideal Page Structure:</span><br /><code><br /><html><br /> <head><br /> <!-- 1 css resource --><br /> <link rel="stylesheet" href="[EXTERNAL_PATH]"><br /> </head><br /> <body><br /> <div id="container"><br /> <!-- begin content --><br /><br /> <!-- 1 image resource (to be used as sprite) --><br /> <img src="[EXTERNAL_PATH]"><br /><br /> <!-- end content --><br /> </div><br /><br /> <!-- 1 js resource --><br /> <script src="[EXTERNAL_PATH]"></script><br /><br /> <!-- embedded js if required --><br /> <script language="javascript"><br /> your.thing = new your.constructor({<br /> name1: value1,<br /> name1: value2<br /> });<br /> </script><br /> </body><br /></html><br /><br /></code><br /><br />HOWEVER, while this may be the ideal, sometimes, you simply can't get down to a single resource request because of solution requirements. Case in point - if you need to add Google Analytics to your page, you're NOT going to hit the ideal - you're going to have more than 1 js resource.<br /><br />So, in closing, the idea should always be to strive for the ideal and get as close as possible. Very simply put, taking 10 js requests down to 8 is a GREAT start. Don't skip it because you can't get 10 down to 1.Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-30355995397299437822010-06-14T12:35:00.000-07:002013-01-16T07:25:58.139-08:00Apple likes my wife.To date, I've built 3 iPhone Web Apps. None of them would be considered functionally unique or powerful by any stretch, HOWEVER... and it's a big HOWEVER... so far... ready for this? <br /><br />Two out of the three have earned "Staff Pick" awards from Apple!<br /><br />As much as I would like to take credit for being an absolute genius, it would appear that Apple has a thing... for my <i>wife</i>.<br /><br />The two awarded iPhone Apps are "<a href="http://webapps.scottdesapio.com/iPhone/apps/converter/#home" target="_blank">Mila's Tools</a>", a simple Unit Conversion Calculator and "<a href="http://veganmunch.com/iPhone">VeganMunch Kombucha Calculator</a>" a simple Kombucha recipe calculator. Both are basically products of my wife, Mila. <br /><br />The other App - <a href="http://webapps.scottdesapio.com/iPhone/apps/pinger/#home">Scott's Pinger</a>, a simple web site monitor, of which I am very proud - got nothin'. Nada. Zilch. Zippo. <br /><br />I guess I'll be asking Mila for more App ideas.<br /><br />In the meantime, while waiting for Mila to tell me what App to build next, I decided to put a Mini-App of sorts together as a portal to all of my apps. The idea being, as I deploy new iPhone apps, they'll be listed in the portal app.<br /><br />Check it out from your iPhone here: Scott's <a href="http://webapps.scottdesapio.com/#home" target="_blank">iPhone Web Apps</a>. Don't forget to add it to your Home screen.<br /><br />Back to the grind. Uhm... eh ehm... Mila? What am I building next?Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-44467676782613037642010-06-14T10:19:00.000-07:002013-01-16T07:25:58.144-08:00Cannot Process Command: Internal Error.*Knock, knock. knock.* <br /><br />Apple? Hello? Apple? <br /><br /><span style="font-size:2em;"><b>Apple!</b></span><br /><br />Is there anyone even home over at the Apple <a href="http://www.apple.com/webapps/">iPhone Web Apps site</a>? <br /><br />For the love of Pete already. After all of the hubub from Jobs about HTML 5, Safari 5, Web Apps, iPhone 4 and all of the other greatness spewing from the pores of Apple, you'd think maybe they'd have someone over there keeping an eye on the Web Apps site.<br /><br />Intermittently, THE VAST MAJORITY of the web app links point to this lovely page:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilfYsO5H79wWcKZd6WY7tN1qLi3dj51hfIT3r-Wtg9VAUUdKUsHPvmFepV7fKuZ7xLDO63q3qraZFuaLgLU-GrN8qrgeRP7rudGMsG_MaUoEjhjSfkSLDD1De10X54meRBoYFjZQ/s1600/CannotProcessCommand.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 172px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilfYsO5H79wWcKZd6WY7tN1qLi3dj51hfIT3r-Wtg9VAUUdKUsHPvmFepV7fKuZ7xLDO63q3qraZFuaLgLU-GrN8qrgeRP7rudGMsG_MaUoEjhjSfkSLDD1De10X54meRBoYFjZQ/s400/CannotProcessCommand.jpg" border="0" alt="Cannot Process Command: Internal Error." id="BLOGGER_PHOTO_ID_5481309508157645442" /></a><b>Cannot Process Command: Internal Error.</b> I'm now having nightmares about this page! How many e-mails do I have to send!? How many forums need to be <a href="http://discussions.apple.com/thread.jspa?messageID=11627024�">screaming</a>!? <br /><br />PLEASE... someone at APPLE... FIX THE DAMN LEAK. <i>Oh... wait... wrong rant...</i> Nevertheless!!! FIX IT ALREADY! <br /><br />K. I feel better. Love you Apple. :)<br /><br />If you're experiencing the same issue at Apple.com, please leave a comment below. A few more voices couldn't hurt.Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com2tag:blogger.com,1999:blog-33247377.post-77125780682375501392010-05-23T22:00:00.001-07:002013-01-16T07:25:58.157-08:00Add a mute button to your system traySo you're working... jammmin' to some Zeppelin... and the phone rings. You then proceed to fumble around your systray with your volume control attempting to open it to mute. I'm not one to critique another UI engineer's <i>flow</i> but... DUDE! REALLY!? WHERE THE HELL IS THE DAMN MUTE BUTTON IN THE SYSTRAY!?<br /><br />Get ready to go around your ass to get to your elbow. Ready?<br /><br />1. Download <a href="from http://www.nirsoft.net/utils/nircmd.html">NirCmd</a> <br />2. Download <a href="http://www.johnnyfoster.com/Downloads/BeTrayed/BeTrayed.msi">BeTrayed!</a><br />3. Assuming you installed NirCmd in your Program Files directory, create a shortcut on your desktop to: <code> "C:\Program Files\nircmd\nircmd.exe" mutesysvolume 2</code><br />4. Create a new txt document with the following as the body:<br /><code><br /> C:<br /> cd C:\Program Files\JohnnyFoster.com\BeTrayed!<br /> start BeTrayed "C:\Program Files\nircmd\nircmd.exe" mutesysvolume 2<br /> Y:<br /> exit<br /> cls<br /></code><br />5. Save the file as <code>MUTE_SYSTRAY.cmd</code><br />6. Create a shortcut to MUTE_SYSTRAY.cmd in your <code>Start -> All Programs -> Startup</code> folder<br /><br />Double click to toggle your sound. <br /><br />Nice.<br /><br /><span style="font-style:italic;">TODO: Find volume control UI designer. Yell.</span><br /><p>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-6887121214299220132010-05-22T12:03:00.000-07:002013-01-16T07:25:58.154-08:00"Mila's Tools" on the Apple Web Apps homepageLet me tell you something... if you've built yourself a simple iPhone Web App... and you'd like to get a few hundred users REAL QUICK... <a href="https://adcweb.apple.com/iphone/" target="_blank">SUBMIT YOUR APP TO THE APPLE WEB APPS DIRECTORY</a>. Run. Don't walk. Run to the Apple Web Apps site and do it now.<br /><br />I about fell out of my chair after submitting my app late one night only to wake up to 100s of new users. Upon checking the directory, there it was... right on the <a href="http://www.apple.com/webapps/index.html" target="_blank">Apple Web Apps</a> home page as a "Staff Pick" - "Mila's Tools", my new <a href="http://www.apple.com/webapps/calculate/milastools.html" target="_blank">iPhone Unit Conversion App</a>.<br /><br />Pure awesomeness, drenched in awesome juice.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih-hnDu5_KCTkrkN2y8Lt9EgSIg1m1Ijw5ZRw62i4Bg3B1exCDEsWtgga3yO4xd3wfC4i2kuTiYX63vPyHnNGKZyls8tOLxQld3hdQt84OAdw9-a3JIxQFRqx4WtsRE-EXygpSpQ/s1600/milasToolsB.gif"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 378px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih-hnDu5_KCTkrkN2y8Lt9EgSIg1m1Ijw5ZRw62i4Bg3B1exCDEsWtgga3yO4xd3wfC4i2kuTiYX63vPyHnNGKZyls8tOLxQld3hdQt84OAdw9-a3JIxQFRqx4WtsRE-EXygpSpQ/s400/milasToolsB.gif" alt="" id="BLOGGER_PHOTO_ID_5474177085024403682" border="0" /></a><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFA1zaOwWC23lUzZufN5EVXgtRG7slGOhivtt4-g8rvsyimHLVI53p9Mohs0uWkZMgrl-9pq-NlxO2Wx3t9LJS1qMfH_8AYdzosb-hnLPYD99gepdqb5pnVp4smQkiLWYv9R-RUQ/s1600/milasToolsA.gif"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 378px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFA1zaOwWC23lUzZufN5EVXgtRG7slGOhivtt4-g8rvsyimHLVI53p9Mohs0uWkZMgrl-9pq-NlxO2Wx3t9LJS1qMfH_8AYdzosb-hnLPYD99gepdqb5pnVp4smQkiLWYv9R-RUQ/s400/milasToolsA.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5474177419554167634" /></a>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-78705276111274512402010-05-20T15:18:00.000-07:002013-01-16T07:25:58.160-08:00Error Number: 1413 (0x80070585)PROBLEM: Immediately after installing Zend server, upon testing you are faced with:<br /><br /><code><br />FastCGI Error<br /><br />The FastCGI Handler was unable to process the request.<br />Error Details:<br /><br />Could not find entry for "php" on site 1 in [Types] section.<br />Error Number: 1413 (0x80070585).<br />Error Description: Invalid index.<br />HTTP Error 500 - Server Error.<br />Internet Information Services (IIS)<br /></code><br /><br />SOLUTION: Add the following to the end of C:\WINDOWS\system32\inetsrv\fcgiext.ini<br /><br /><code><br />[Types]<br />php=PHP<br /><br />[PHP]<br />ExePath=C:\Program Files\Zend\ZendServer\bin\php-cgi.exe<br /><br />EnvironmentVars=PHP_FCGI_MAX_REQUESTS:1000<br />IdleTimeout=1500<br />ActivityTimeout=3000<br />RequestTimeout=1500<br /></code><br /><br /><p>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com2tag:blogger.com,1999:blog-33247377.post-28993593677769370932010-05-18T13:42:00.000-07:002013-01-16T07:25:58.137-08:00REFACTORING: A day in the lifeI put this video up months ago and just realized I never blogged about it! How'd that happen!? If you're an engineer, this butting-my-head-up-against-the-wall moment is for you.<br /><br />So, without further ado... I bring to you... "Refactoring: A day in the life." [dat-do-do]<br /><br /><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/-Ih49VHpd74&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-Ih49VHpd74&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br /><br />P.S. Turn up the volume. [Really. Turn it up.]<br /><p> <br>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-36901495278374602642010-05-16T21:46:00.000-07:002013-01-16T07:25:58.141-08:00iPhone Unit Conversion CalculatorSo, I dove into <a href="http://jQuery.com">jQuery</a> and <a href="http://jQTouch.com">jQTouch</a> development for the iPhone and all I know is, I can't wait to do it again. <br /><br /><a style="float:left;margin-right:20px;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZWSDBgFroLQBH4XrcN_LsDun99cwiDeDUMtHxM8K1ULxbzZWeahYKSCdREphwmv-2kjoOiEby8zef0AAB6yu5xzu2nCZlGKqpY0z8H0hMJAS8l0no9yscxcReykbw_mPjETPnRg/s1600/Converter.jpg"><img style="display:block; margin:0px auto 30px; text-align:center;cursor:pointer; cursor:hand;width: 218px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZWSDBgFroLQBH4XrcN_LsDun99cwiDeDUMtHxM8K1ULxbzZWeahYKSCdREphwmv-2kjoOiEby8zef0AAB6yu5xzu2nCZlGKqpY0z8H0hMJAS8l0no9yscxcReykbw_mPjETPnRg/s400/Converter.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5472099480930403762" /></a>Wow, wow, wow... talk about easy-peasy-Japanese. I could not have been more impressed. The functionality of the unit conversion calculator in-and-of-itself is nothing to write home about BUT, that which comes with employing jQuery + jQTouch most certainly is.<br /><br />Wowsers. Yep. That's all I got. Wowsers.<br /><br />The iPhone app includes four conversion calculators - a length converter, liquid converter, temperature converter, and time converter. From your iPhone, check out the converter here: <a href="http://scottdesapio.com/iPhone/apps/converter">iPhone Unit Conversion Calculator</a>.<br /><br />Don't forget to add it as a full screen app by hitting the + sign. :)<br /><p> <br>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-64225474723932695872010-05-02T08:04:00.000-07:002013-01-16T07:25:58.152-08:00Amazon API "Tags" Response GroupPROBLEM: <span style="font-weight:bold;">Amazon API</span> is not returning "Tags" even when <span style="font-weight:bold;">"Tags" response group</span> is specified in the request URL.<br /><br />SOLUTION: Add the "Version" parameter to your request. <br /><br />EXAMPLE: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=...&Version=2009-10-01<br /><br />For valid "Version" values, keep your eyes on the API's <a href="http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=17">release notes</a>.<br /><br />NOTE: By default, the API will return the top 5 tags. To have more returned or to page through tags, check out the TagPage and TagsPerPage parameters in the <a href="http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/ItemLookup.html">ItemLookup documentation</a>.<br /><p> <br>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-50902886493257344912010-04-30T17:03:00.001-07:002013-01-16T07:25:58.147-08:00Run multiple instances of Internet ExplorerDear Lord,<br /><br />Thank you for my life, my wife and FOR Hilbrand Edskes who built <a href="http://finalbuilds.edskes.net/iecollection.htm">THIS APPLICATION</a> allowing me to run multiple instances of Internet Explorer. <br /><br />One more thing... <br /><br />LAST YEAR YOU TOOK MY FAVORITE ACTOR, PATRICK SWAYZIE. YOU TOOK MY FAVORITE ACTRESS, FARAH FAWCETT. YOU TOOK MY FAVORITE SINGER, MICHAEL JACKSON. I JUST WANTED TO LET YOU KNOW, MY FAVORITE BROWSER IS INTERNET EXPLORER. <br /><br />AMEN.<br /><p> <br>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-45720732850278245432010-04-18T12:53:00.000-07:002013-01-16T07:25:58.146-08:00Classic ASP VBScript OAuthFINALLY. <a href="http://scottdesapio.com/VBScriptOAuth/">VBScript OAuth</a> with example project!<br /><br /><blockquote><span style="font-style:italic;">OAuth is hard. I don't care if you're the greatest engineer on Earth, at first glance OAuth is a WTF moment. Having a slew of Classic ASP sites to maintain, and no luck finding any help in the VBSCript OAuth department, I dove in to the HELL that is OAuth. When I'd finally emerged, although scarred for life, I had a full fledged OAuth implementation... done entirely in VBScript... OK, not entirely... but mostly no doubt.</span></blockquote> <br /><br />Check it out here: <a href="http://scottdesapio.com/VBScriptOAuth/">Classic ASP VBScript OAuth</a>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com0tag:blogger.com,1999:blog-33247377.post-76376048799558213572010-04-18T12:48:00.000-07:002013-01-16T07:25:58.155-08:00Get twitter user profile pic by name, unauthenticatedNo javascript required. No server side component to deal with. Just drop the image tag in using this generic handler as the src: <br /><br /><span style="font-weight:bold;">http://api.twitter.com/1/users/profile_image/[SCREEN_NAME]</span><br /><br />Replace "[SCREEN_NAME]" with the actual screen name and, voilĂ .<br /><br />EX: <img src="http://api.twitter.com/1/users/profile_image/sdesapio"><br /><br /><img src="http://api.twitter.com/1/users/profile_image/sdesapio"><br /><p> <br>Scott DeSapiohttp://www.blogger.com/profile/14858286014271500278noreply@blogger.com2