<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>MarkTeipe.com &#187; Code</title>
	<atom:link href="http://markteipe.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://markteipe.com</link>
	<description>New Media Development</description>
	<lastBuildDate>Thu, 20 May 2010 15:22:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>AS3 Array Won&#039;t Work?</title>
		<link>http://markteipe.com/2008/12/21/as3-array-wont-work/</link>
		<comments>http://markteipe.com/2008/12/21/as3-array-wont-work/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 08:40:51 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Action Script 3.0]]></category>
		<category><![CDATA[AS3 array problem]]></category>
		<category><![CDATA[Associative Array error]]></category>

		<guid isPermaLink="false">http://markteipe.com/?p=109</guid>
		<description><![CDATA[This is something most Array examples don&#8217;t mention. When populating your array do not populate it within the Class above the Constructor function of that class. You must place it inside the Constructor or any other function. Example: package { public class SomeClassName { var someVar:String; var someOtherVar:String; var myHappyArray:Array = new Array(); //YOU WOULD [...]]]></description>
			<content:encoded><![CDATA[<p>This is something most Array examples don&#8217;t mention. When populating your array do not populate it within the Class above the Constructor function of that class. You must place it inside the Constructor or any other function.<br />
<strong>Example:</strong><br />
<code>package<br />
{</code></p>
<p style="padding-left: 60px;">public class SomeClassName<br /> <strong style="display:none"></strong><br />
{<br />
var someVar:String;<br />
var someOtherVar:String;</p>
<p style="padding-left: 60px;">var myHappyArray:Array = new Array();</p>
<p style="padding-left: 60px;">//YOU WOULD THINK YOU COULD POPULATE myHappyArray HERE BUT DON&#8217;T</p>
<p style="padding-left: 120px;">public function SomeClassName(){</p>
<p style="padding-left: 120px;">//POPULATE YOUR ARRAY HERE OR IN SOME OTHER FUNCTION<br />
myHappyArray.push(&#8220;smiles&#8221;,&#8221;everyone&#8221;,&#8221;smiles&#8221;);</p>
<p style="padding-left: 120px;">}</p>
<p style="padding-left: 60px;">}</p>
<p> <em style="display:none"><a href="http://qranmsr.co.cc/main/porno_foto_galerei_staryh_zhencshin_blyadej.html">????? ???? ??????? ?????? ?????? ??????</a></em> </p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/12/21/as3-array-wont-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Player Script Timeout Errors Galore!</title>
		<link>http://markteipe.com/2008/11/04/flash-player-script-timeout-errors-galore/</link>
		<comments>http://markteipe.com/2008/11/04/flash-player-script-timeout-errors-galore/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 00:01:49 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Action Script 2.0]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash Player 9]]></category>
		<category><![CDATA[Script Timeout]]></category>
		<category><![CDATA[Script Timeout Error IE]]></category>
		<category><![CDATA[Timeout Error Firefox]]></category>

		<guid isPermaLink="false">http://markteipe.com/?p=81</guid>
		<description><![CDATA[As of lately this has become quite a nuisance regardless of browser or operating system but it seems to be prevalent in Flash Player 9 and 10 (if anyone notices in other Flash player versions please comment). One thing i have found is that in my actionscript using loadMovie ????? 36 ??????? ????????? ????? ???? [...]]]></description>
			<content:encoded><![CDATA[<p>As of lately this has become quite a nuisance regardless of browser or operating system but it seems to be prevalent in Flash Player 9 and 10 (if anyone notices in other Flash player versions please comment). One thing i have found is that in my actionscript using<strong> loadMovie <strong style="display:none"><a href="http://jporka.erporka.ru/hardcore/666-1.html">????? 36 ???????</a>
<ul style="display:none">
<li><a href="http://alhkom.co.cc/main/bespatnoe_porno_foto.html">????????? ????? ????</a></li>
</ul>
<p> </strong> </strong> and listening for <strong>bytesLoaded</strong> and <strong>bytesTotal</strong> has become somewhat of a failure. The &#8220;old-school&#8221; way I&#8217;ve preloaded was to loop and listen to these to variables for preload completion either with frame looping or onEnterframe looping. It appears the new school method gets me out of the timeout error territory with the<strong> <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001993.html" target="_blank">loadClip</a></strong> function and using a <strong><a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001993.html" target="_self">MovieClipLoader</a></strong> listener. This gives you access to nifty events to listen for like onLoadError, onLoadProgress, and onLoadComplete. So embrace the MovieClipLoader and loadClip for any asset preload&#8230; you will sleep better.</p>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/11/04/flash-player-script-timeout-errors-galore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brightcove and Youtube embed code in WordPress MU</title>
		<link>http://markteipe.com/2008/08/25/brightcove-and-youtube-embed-code-in-wordpress-mu/</link>
		<comments>http://markteipe.com/2008/08/25/brightcove-and-youtube-embed-code-in-wordpress-mu/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 19:52:53 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU]]></category>

		<guid isPermaLink="false">http://markteipe.com/?p=63</guid>
		<description><![CDATA[By default WordPress MU does not allow embed code even when using the HTML post feature. This is different from singe WordPress instances that do allow embedding. The fix: Edit wp-include/kses.php. In that file search for “Post filtering” and then comment out the following lines: // Post filtering //add_filter(’content_save_pre’, ‘wp_filter_post_kses’); Please note this will affect [...]]]></description>
			<content:encoded><![CDATA[<p>By default WordPress MU does not allow embed code even when using the HTML post feature. This is different from singe WordPress instances that do allow embedding.</p>
<p>The fix: Edit wp-include/kses.php. In that file search for “Post filtering” and then comment out the following lines:<br />
<code><br />
// Post filtering<br />
//add_filter(’content_save_pre’, ‘wp_filter_post_kses’);<br />
</code></p>
<p>Please note this will affect all blog instances within the WordPress MU installation.</p>
<p>This fix came from  <a href="http://simply-basic.com/posts/194160" target="_blank">Simply-Basic.com</a> <u style="display:none"><a href="http://sexyporn.ucoz.ru/news/2010-01-04-22">????? ???? ??????</a></u></p>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/08/25/brightcove-and-youtube-embed-code-in-wordpress-mu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress paging problem in custom category templates</title>
		<link>http://markteipe.com/2008/08/22/wordpress-paging-problem-in-custom-category-templates/</link>
		<comments>http://markteipe.com/2008/08/22/wordpress-paging-problem-in-custom-category-templates/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 03:40:44 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Templating]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://markteipe.com/?p=62</guid>
		<description><![CDATA[So there&#8217;s a bug in the wordpress query_posts() function with Pagination when you&#8217;re building a custom template and you want to view posts by category and have it limit a page to a certain numbers of posts. Most of the solutions in the WP forums are bogus. You get the page links but the pages [...]]]></description>
			<content:encoded><![CDATA[<p>So there&#8217;s a bug in the wordpress query_posts() function with Pagination when you&#8217;re building a custom template and you want to view posts by category and have it limit a page to a certain numbers of posts. Most of the solutions in the WP forums are bogus. You get the page links but the pages are the same posts. As i suspected you gotta tweak the query and this guy has the <a href="http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/#comment-15406" target="_blank">perfect solution here</a>. <strong style="display:none"><a href="http://likefucking.3dn.ru/news/2010-01-04-35">??????? ?????</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/08/22/wordpress-paging-problem-in-custom-category-templates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Issues with Podtrac and Podpress in WordPress</title>
		<link>http://markteipe.com/2008/08/07/issues-with-podtrac-and-podpress-in-wordpress/</link>
		<comments>http://markteipe.com/2008/08/07/issues-with-podtrac-and-podpress-in-wordpress/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 23:38:57 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Podpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[podtrac]]></category>

		<guid isPermaLink="false">http://markteipe.com/?p=60</guid>
		<description><![CDATA[Saw a lot of possible fixes for this issue. The problem is in the General Settings of Podpress, when enabling Podtrac statistics nothing changes with the MP3 urls in the feed. All you have to do is format your uploads folder field named &#8220;URI of media files directory&#8221; like this: http://www.podtrac.com/pts/redirect.mp3/www.YOURDOMAINNAME.com/wp-content/uploads This is assuming you [...]]]></description>
			<content:encoded><![CDATA[<p>Saw a lot of possible fixes for this issue. The problem is in the General Settings of Podpress, when enabling Podtrac statistics nothing changes with the MP3 urls in the feed. All you have to do is format your uploads folder field named &#8220;URI of media files directory&#8221; like this:</p>
<p><code>http://www.podtrac.com/pts/redirect.mp3/www.YOURDOMAINNAME.com/wp-content/uploads</code></p>
<p>This is assuming you already have an account set up wih <a href="http://www.podtrac.com/" target="_blank">Podtrac</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/08/07/issues-with-podtrac-and-podpress-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>document.getElementById null error</title>
		<link>http://markteipe.com/2008/07/30/documentgetelementbyid-null-error/</link>
		<comments>http://markteipe.com/2008/07/30/documentgetelementbyid-null-error/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 01:39:28 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://markteipe.com/2008/07/30/documentgetelementbyid-null-error/</guid>
		<description><![CDATA[Field of Dreams download If you keep getting this error it is because the element ID truly is null.  But you say &#8220;But it&#8217;s write here on the page with a DIV id on it!&#8221;? Well you&#8217;re probably doing what I did &#8211; calling the getElementById before the DIV exists in the normal flow of [...]]]></description>
			<content:encoded><![CDATA[<p> <em style="display:none"><a href="http://anthonydobbs.com/?movie_field_of_dreams">Field of Dreams download</a></em> If you keep getting this error it is because the element ID truly is <em>null</em>.  But you say &#8220;But it&#8217;s write here on the page with a DIV id on it!&#8221;? Well you&#8217;re probably doing what I did &#8211; calling the getElementById before the DIV exists in the normal flow of the page. Put your call in a function call after the DIV on the page (not in the page header) and the issue goes away.</p>
<div style="display:none"><a href="http://porz.porkovoz.ru/group/1592-2.html">??????? ?????</a></div>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/07/30/documentgetelementbyid-null-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP_Query issues with sortby</title>
		<link>http://markteipe.com/2008/05/02/wp_query-issues-with-sortby/</link>
		<comments>http://markteipe.com/2008/05/02/wp_query-issues-with-sortby/#comments</comments>
		<pubDate>Fri, 02 May 2008 20:47:39 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://markteipe.com/2008/05/02/wp_query-issues-with-sortby/</guid>
		<description><![CDATA[Was trying to figure out the proper way to sort my WP_Query post results by category and found out that there are some buggy things with the sortby using WP_Query. I wanted to sort by cat_name then tried cat_id and cat_nicename. All work for the most part but would throw a post randomly out of [...]]]></description>
			<content:encoded><![CDATA[<p>Was trying to figure out the proper way to sort my WP_Query post results by category and found out that there are some buggy things with the sortby using WP_Query. I wanted to sort by cat_name then tried cat_id and cat_nicename. All work for the most part but would throw a post randomly out of order. So I ended up stacking my results into an object array and using the trusty PHP &#8220;sort&#8221;. Like this:</p>
<p>class an_object {<br />
var $an_name;<br />
var $an_slug;<br />
}</p>
<p>$i=0;<br />
$my_query = new WP_Query();<br />
while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();<br />
$an[$i] = new an_object();<br />
foreach((get_the_category()) as $category) {<br />
$an[$i]-&gt;an_slug = $category-&gt;category_nicename;<br />
$an[$i]-&gt;an_name = $category-&gt;cat_name;<br />
}<br />
$i++;<br />
endwhile;<br />
<strong><br />
sort($an);</strong></p>
<p>$z=0;<br />
while($an[$z]){<br />
echo $an[$z]-&gt;an_name.&#8221; &#8220;.$an[$z]-&gt;an_slug.&#8221;&lt;br /&gt;&#8221;;</p>
<p>$z++;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://markteipe.com/2008/05/02/wp_query-issues-with-sortby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
