<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Alpha Papa Hotel</title>
	
	<link>http://www.alphapapahotel.com</link>
	<description>ASP.NET, CSS, Web and General Geekery</description>
	<lastBuildDate>Sun, 23 Jan 2011 05:03:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AlphaPapaHotel" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="alphapapahotel" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">AlphaPapaHotel</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>EndNote Add-In Causes Microsoft Word 2010 To Crash</title>
		<link>http://www.alphapapahotel.com/endnote-add-in-causes-microsoft-word-2010-to-crash/software/</link>
		<comments>http://www.alphapapahotel.com/endnote-add-in-causes-microsoft-word-2010-to-crash/software/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 05:03:12 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=223</guid>
		<description><![CDATA[Microsoft Word kept crashing on me and I couldn&#8217;t figure out why. The culprit: EndNote! To disable the EndNote add-in: Go to File -&#62; Options. Click Add-Ins. At the bottom of the screen, select &#8220;Actions&#8221; in the Manage dropdown box. Click &#8220;Go.&#8221; Uncheck the box next to &#8220;EndNote.&#8221; Click OK. Close and restart Word. I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft Word kept crashing on me and I couldn&#8217;t figure out why. The culprit: EndNote!</p>
<p>To disable the EndNote add-in:</p>
<ol>
<li>Go to File -&gt; Options.</li>
<li>Click Add-Ins.</li>
<li>At the bottom of the screen, select &#8220;Actions&#8221; in the Manage dropdown box. Click &#8220;Go.&#8221;</li>
<li>Uncheck the box next to &#8220;EndNote.&#8221;</li>
<li>Click OK.</li>
<li>Close and restart Word.</li>
</ol>
<p>I&#8217;m not sure what the conflict is between EndNote and Word 2010 (because it worked fine with Word 2007), but at least Word 2010 runs now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/endnote-add-in-causes-microsoft-word-2010-to-crash/software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Private Browsing Causes ‘Script Panel was inactive during page load’ Message in Firebug</title>
		<link>http://www.alphapapahotel.com/firefox-private-browsing-causes-script-panel-was-inactive-during-page-load-message-in-firebug/web-development/</link>
		<comments>http://www.alphapapahotel.com/firefox-private-browsing-causes-script-panel-was-inactive-during-page-load-message-in-firebug/web-development/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 18:38:16 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=219</guid>
		<description><![CDATA[I recently upgraded to the new version of the Firebug plugin on Firefox. When I did, every time I brought up the Firebug Scripts panel it displayed the same message: &#8220;Script Panel was inactive during page load.&#8221; I would click the button to &#8220;Activate Firebug for the selected tab&#8221;, and the page would refresh, but [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded to the new version of the <a href="http://getfirebug.com/">Firebug</a> plugin on Firefox. When I did, every time I brought up the Firebug Scripts panel it displayed the same message: &#8220;Script Panel was inactive during page load.&#8221;</p>
<p>I would click the button to &#8220;Activate Firebug for the selected tab&#8221;, and the page would refresh, but I would then see the same Script Panel message as before.</p>
<p>After some searching on the interwebs I found out it was because I had <strong>Private Browsing </strong>enabled in Firefox. I didn&#8217;t even realize it; I had set it to not remember or keep any history but Firefox treats that setting as a private browsing session.</p>
<p>Once I disabled the Private Browsing feature in Firefox, my Firebug Scripts panel worked again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/firefox-private-browsing-causes-script-panel-was-inactive-during-page-load-message-in-firebug/web-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery Breaks ASP.NET MVC Action Parameters</title>
		<link>http://www.alphapapahotel.com/jquery-breaks-asp-net-mvc-action-parameters/aspnet/</link>
		<comments>http://www.alphapapahotel.com/jquery-breaks-asp-net-mvc-action-parameters/aspnet/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 23:14:37 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=211</guid>
		<description><![CDATA[After upgrading to jQuery 1.4 my jQuery posts that passed in parameters to my MVC actions started failing. I noticed that &#8220;[]&#8221; was being appended to the parameters. Instead of this: param1=123 It looked like this: param1[]=123 Turns out it had to do with how 1.4 serialized parameters. You can read more about it at [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to jQuery 1.4 my jQuery posts that passed in parameters to my MVC actions started failing. I noticed that &#8220;[]&#8221; was being appended to the parameters.</p>
<p>Instead of this:<br />
<code>param1=123</code></p>
<p>It looked like this:<br />
<code>param1[]=123</code></p>
<p>Turns out it had to do with how 1.4 serialized parameters. You can read more about it at the posts below. To fix it, I added this globally on the page for now:<br />
<code><br />
// Enables for all serialization<br />
.jQuery.ajaxSettings.traditional = true;</code></p>
<p><a href="http://forum.jquery.com/topic/jquery-1-4-breaks-asp-net-mvc-parameter-posting">http://forum.jquery.com/topic/jquery-1-4-breaks-asp-net-mvc-parameter-posting</a></p>
<h5><span style="font-weight: normal;"><a href="http://blogs.dovetailsoftware.com/blogs/kmiller/archive/2010/02/24/jquery-1-4-breaks-asp-net-mvc-actions-with-array-parameters.aspx">jQuery 1.4 breaks ASP.Net MVC actions with array parameters</a></span></h5>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/jquery-breaks-asp-net-mvc-action-parameters/aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Web Root Path for XAMPP on Windows</title>
		<link>http://www.alphapapahotel.com/change-path-to-web-root-for-xampp-on-windows/web-development/</link>
		<comments>http://www.alphapapahotel.com/change-path-to-web-root-for-xampp-on-windows/web-development/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 18:07:07 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=204</guid>
		<description><![CDATA[I had an existing XAMPP install on a shared location that I wanted to access using a laptop with its own local XAMPP install. I didn&#8217;t want to do any heavy lifting with the laptop, just wanted to access the web files on the shared server through the laptop&#8217;s localhost. I also didn&#8217;t want to [...]]]></description>
			<content:encoded><![CDATA[<p>I had an existing XAMPP install on a shared location that I wanted to access using a laptop with its own local XAMPP install. I didn&#8217;t want to do any heavy lifting with the laptop, just wanted to access the web files on the shared server through the laptop&#8217;s localhost.</p>
<p>I also didn&#8217;t want to relocate the entire XAMPP folder on my laptop, so I instead modified the <b>httpd.conf</b> file on my local XAMPP install to point to the web root of the remote XAMPP install.</p>
<p>Here&#8217;s what I did:</p>
<ol>
<li>Locate <i>httpd.conf</i> file on my local XAMPP install: C:\xampp\xampp\apache\conf\httpd.conf</li>
<li>Edit the &#8220;DocumentRoot&#8221; line to the location of the remote \htdocs folder. I changed mine from:<br />
&#8220;C:/xampp/xampp/htdocs&#8221; to &#8220;C:/Users/Ann/Documents/My Dropbox/Dev/Xampp/xampp/htdocs&#8221;</li>
<li>Edit the &#8220;Directory&#8221; tag to the same remote location you set for DocumentRoot. My Directory tag looked like <i>Directory &#8220;C:/Users/Ann/Documents/My Dropbox/Dev/Xampp/xampp/htdocs&#8221;</i></li>
<li>Save the file and restart your local Apache server.</li>
<li>Navigate to &#8220;http://localhost/&#8221; in your browser and you should see the remote web site files.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/change-path-to-web-root-for-xampp-on-windows/web-development/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enable curl with XAMPP on Windows</title>
		<link>http://www.alphapapahotel.com/enable-curl-with-xampp-on-windows/web-development/</link>
		<comments>http://www.alphapapahotel.com/enable-curl-with-xampp-on-windows/web-development/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 17:41:44 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=201</guid>
		<description><![CDATA[Location the directory where XAMPP is installed. For me, it was the default location at C:\xampp\xampp. Open the following file: C:\xampp\xampp\php\php.info Uncomment (by removing the semicolon) the following line: ;extension=php_curl.dll Save the file and restart your Apache server.]]></description>
			<content:encoded><![CDATA[<p>Location the directory where <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a> is installed. For me, it was the default location at C:\xampp\xampp.</p>
<p>Open the following file: C:\xampp\xampp\php\php.info</p>
<p>Uncomment (by removing the semicolon) the following line:<br />
<code><br />
;extension=php_curl.dll<br />
</code></p>
<p>Save the file and restart your Apache server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/enable-curl-with-xampp-on-windows/web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert an Array of Objects to a List, Then Sort the List</title>
		<link>http://www.alphapapahotel.com/convert-an-array-of-objects-to-a-list-then-sort-the-list/aspnet/</link>
		<comments>http://www.alphapapahotel.com/convert-an-array-of-objects-to-a-list-then-sort-the-list/aspnet/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 19:33:42 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=192</guid>
		<description><![CDATA[I recently had to build a page that consumed a web service returning data in an array of custom objects. The array was sorted by ID, while I needed to display it sorted alphabetically by name. First, I had to convert the array of objects to a list: CustomObject[] objectArray; objectArray = fancyWebServiceFunction(); System.Collections.Generic.List objectList [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to build a page that consumed a web service returning data in an array of custom objects. The array was sorted by ID, while I needed to display it sorted alphabetically by name.</p>
<p>First, I had to convert the array of objects to a list:</p>
<pre class="brush: php; light: true">
CustomObject[] objectArray;

objectArray = fancyWebServiceFunction();

System.Collections.Generic.List<CustomObject> objectList = new System.Collections.Generic.List<CustomObject>(objectArray);
</pre>
<p>Then I sorted the list:</p>
<pre class="brush: php; light: true">
  objectList.Sort(delegate(CustomObject o1, CustomObject o2)
 {
     return o1.ObjectName.CompareTo(o2.ObjectName);
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/convert-an-array-of-objects-to-a-list-then-sort-the-list/aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 Emulator</title>
		<link>http://www.alphapapahotel.com/ie6-emulator/software/</link>
		<comments>http://www.alphapapahotel.com/ie6-emulator/software/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 07:20:10 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=188</guid>
		<description><![CDATA[IE6 puts the &#8220;p&#8221; in PAIN but unfortunately I still have to make pages play nicely with it. I&#8217;ve been looking for an easy way to fully test on IE6 (not just create and view screenshots). IETester to the rescue! Sure it&#8217;s one of the old, &#8220;desktop&#8221; applications but it&#8217;s no more a behemoth than [...]]]></description>
			<content:encoded><![CDATA[<p>IE6 puts the &#8220;p&#8221; in PAIN but unfortunately I still have to make pages play nicely with it. I&#8217;ve been looking for an easy way to fully test on IE6 (not just create and view screenshots). </p>
<p>IETester to the rescue! Sure it&#8217;s one of the old, &#8220;desktop&#8221; applications but it&#8217;s no more a behemoth than IE6 itself, right?</p>
<p>It works like a champ, BTW.</p>
<p><a href=" http://www.my-debugbar.com/wiki/IETester/HomePage">Download IETester for Free</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/ie6-emulator/software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Difference Between Dates in Javascript</title>
		<link>http://www.alphapapahotel.com/finding-difference-between-dates-in-javascript/web-development/</link>
		<comments>http://www.alphapapahotel.com/finding-difference-between-dates-in-javascript/web-development/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 04:24:05 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=176</guid>
		<description><![CDATA[This snippet of code lets you determine the difference (in weeks, days, hours, minutes, or seconds) between two dates. For the example below I&#8217;m using the current date as one of the two. var future = new Date("01/01/2020"); var today=new Date(); var weeks = 1000 * 60 * 60 * 24 * 7; var days [...]]]></description>
			<content:encoded><![CDATA[<p>This snippet of code lets you determine the difference (in weeks, days, hours, minutes, or seconds) between two dates. For the example below I&#8217;m using the current date as one of the two.</p>
<pre class="brush: javascript; light: true">

var future = new Date("01/01/2020");
var today=new Date();

var weeks = 1000 * 60 * 60 * 24 * 7;
var days = 1000 * 60 * 60 * 24;
var hours = 1000 * 60 * 60;
var mins = 1000 * 60;
var secs = 1000;

var diffWeeks = Math.ceil((today.getTime()-future.getTime())/(weeks));
var diffDays = Math.ceil((today.getTime()-future.getTime())/(days));
var diffHours = Math.ceil((today.getTime()-future.getTime())/(hours));
var diffMinutes = Math.ceil((today.getTime()-future.getTime())/(mins));
var diffSeconds = Math.ceil((today.getTime()-future.getTime())/(secs));
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/finding-difference-between-dates-in-javascript/web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Visitor’s IP Address in PHP</title>
		<link>http://www.alphapapahotel.com/get-visitors-ip-address-in-php/web-development/</link>
		<comments>http://www.alphapapahotel.com/get-visitors-ip-address-in-php/web-development/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 17:35:28 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=171</guid>
		<description><![CDATA[I used this snippet for a geolocation script. $ipaddress=$_SERVER['REMOTE_ADDR'];]]></description>
			<content:encoded><![CDATA[<p>I used this snippet for a geolocation script.</p>
<pre class="brush: php; light: true">

$ipaddress=$_SERVER['REMOTE_ADDR'];
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/get-visitors-ip-address-in-php/web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set and Read Cookies in PHP/Smarty</title>
		<link>http://www.alphapapahotel.com/set-and-read-cookies-in-phpsmarty/web-development/</link>
		<comments>http://www.alphapapahotel.com/set-and-read-cookies-in-phpsmarty/web-development/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 17:33:54 +0000</pubDate>
		<dc:creator>Ann</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[smarty]]></category>

		<guid isPermaLink="false">http://www.alphapapahotel.com/?p=168</guid>
		<description><![CDATA[To set a cookie: setcookie(&#8216;TestCookie&#8217;,'testvalue&#8217;, time()+3600, &#8216;/&#8217;); Function definition: setcookie(&#8220;TestCookie&#8221;, $value, time()+3600, &#8220;/&#8221;, &#8220;.example.com&#8221;, 1); To read a cookie: echo &#8216;Hello &#8216;.$_COOKIE['TestCookie'];]]></description>
			<content:encoded><![CDATA[<p><strong>To set a cookie:</strong><br />
setcookie(&#8216;TestCookie&#8217;,'testvalue&#8217;, time()+3600, &#8216;/&#8217;);</p>
<p><strong>Function definition:</strong><br />
setcookie(&#8220;TestCookie&#8221;, $value, time()+3600, &#8220;/&#8221;, &#8220;.example.com&#8221;, 1);</p>
<p><strong>To read a cookie:</strong><br />
echo &#8216;Hello &#8216;.$_COOKIE['TestCookie']; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphapapahotel.com/set-and-read-cookies-in-phpsmarty/web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

