<?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>Media Extreme</title>
	<atom:link href="http://www.mediaextreme.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mediaextreme.com</link>
	<description>Development Notes</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:21:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Firefox plugins and XUL</title>
		<link>http://www.mediaextreme.com/2012/02/10/firefox-plugins-and-xul/</link>
		<comments>http://www.mediaextreme.com/2012/02/10/firefox-plugins-and-xul/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 20:21:32 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Firefox/XUL]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=111</guid>
		<description><![CDATA[Writing XUL is a giant pain in the ass and the documentation is lacking any examples. Here is a good resource https://forums.mozilla.org/addons/viewtopic.php?f=7&#038;t=384 Excerpt from that page There is a list of some resources here https://addons.mozilla.org/en-US/develo &#8230; ng-started This tutorial is quite a helpful introduction https://developer.mozilla.org/En/Firefo &#8230; Extensions I generally just use MDC (Mozilla Developer Center) [...]]]></description>
			<content:encoded><![CDATA[<p>Writing XUL is a giant pain in the ass and the documentation is lacking any examples.<br />
Here is a good resource</p>
<p>https://forums.mozilla.org/addons/viewtopic.php?f=7&#038;t=384</p>
<p>Excerpt from that page</p>
<p>There is a list of some resources here<br />
<a href="https://addons.mozilla.org/en-US/developers/docs/how-to/getting-started">https://addons.mozilla.org/en-US/develo &#8230; ng-started</a></p>
<p>This tutorial is quite a helpful introduction<br />
<a href="https://developer.mozilla.org/En/Firefox_addons_developer_guide/Introduction_to_Extensions">https://developer.mozilla.org/En/Firefo &#8230; Extensions</a></p>
<p>I generally just use MDC (Mozilla Developer Center) for reference (just keep an eye on what version of Firefox/Gecko the documentation applies to)<br />
<a href="https://developer.mozilla.org/En">https://developer.mozilla.org/En</a></p>
<p>The XUL periodic table is a helpful resource for basic XUL element layout<br />
<a href="http://www.hevanet.com/acorbin/xul/top.xul">http://www.hevanet.com/acorbin/xul/top.xul</a></p>
<p>W3Schools is a useful basic reference for DOM and Javascript<br />
<a href="http://www.w3schools.com/jsref/default.asp">http://www.w3schools.com/jsref/default.asp</a></p>
<p>There is a list of the Mozilla interfaces here<br />
<a href="http://www.oxymoronical.com/experiments/apidocs/">http://www.oxymoronical.com/experiments/apidocs/</a></p>
<p>The DOM inspector is a &#8220;must have&#8221;<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/6622">https://addons.mozilla.org/en-US/firefox/addon/6622</a></p>
<p>Anyway that&#8217;s just a few that you might find useful</p>
<p>HTH</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2012/02/10/firefox-plugins-and-xul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Admin Bar</title>
		<link>http://www.mediaextreme.com/2011/12/29/disable-admin-bar/</link>
		<comments>http://www.mediaextreme.com/2011/12/29/disable-admin-bar/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 19:38:59 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=107</guid>
		<description><![CDATA[Lots of ways to skin this cat, but this is the easiest for wp 3.3+ in functions.php show_admin_bar(false);]]></description>
			<content:encoded><![CDATA[<p>Lots of ways to skin this cat, but this is the easiest for wp 3.3+</p>
<p>in functions.php<br />
show_admin_bar(false);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/12/29/disable-admin-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>adding jquery to wordpress</title>
		<link>http://www.mediaextreme.com/2011/12/22/adding-jquery-to-wordpress/</link>
		<comments>http://www.mediaextreme.com/2011/12/22/adding-jquery-to-wordpress/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 20:12:57 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=104</guid>
		<description><![CDATA[jQuery is already in wordpress so if you need to use it, there is no need to pull it in from elsewhere. Use: wp_enqueue_script(&#8216;jquery&#8217;); to access jQuery. However, you will not be able to use $(). The right way is to]]></description>
			<content:encoded><![CDATA[<p>jQuery is already in wordpress so if you need to use it, there is no need to pull it in from elsewhere.<br />
Use:<br />
wp_enqueue_script(&#8216;jquery&#8217;);<br />
to access jQuery. However, you will not be able to use $(). The right way is to<br />
<script> 
var $j = jQuery.noConflict();
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/12/22/adding-jquery-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualDocumentRoot for local development</title>
		<link>http://www.mediaextreme.com/2011/12/21/virtualdocumentroot-for-local-development/</link>
		<comments>http://www.mediaextreme.com/2011/12/21/virtualdocumentroot-for-local-development/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 22:01:11 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=102</guid>
		<description><![CDATA[If you want to develop locally on your machine, its a pain to have to write a virtualhost container and restart apache every time. There is a simple way to do this by using VirtualDocumentRoot directive. 1) use localhost as the domain and create subdomains in /etc/hosts ie 127.0.0.1 devsite.localhost 2) Put this into your [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to develop locally on your machine, its a pain to have to write a virtualhost container and restart apache every time. There is a simple way to do this by using VirtualDocumentRoot directive.</p>
<p>1)  use localhost as the domain and create subdomains in /etc/hosts ie<br />
127.0.0.1 devsite.localhost</p>
<p>2) Put this into your httpd-vhosts.conf file<br />
<VirtualHost _default_:80><br />
    VirtualDocumentRoot /my_home_dir/Sites/%0<br />
    <Directory /my_home_dir/Sites><br />
        AllowOverride All</p>
<p>        Order allow,deny<br />
        Allow from all<br />
    </Directory><br />
</VirtualHost></p>
<p>All your development sites need to be in /my_home_dir/Sites and the directories must have the same name as the entry in /etc/hosts ( ie /my_home_dir/Sites/devsite.localhost/ )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/12/21/virtualdocumentroot-for-local-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xdebug and Phpstorm</title>
		<link>http://www.mediaextreme.com/2011/12/21/xdebug-and-phpstorm/</link>
		<comments>http://www.mediaextreme.com/2011/12/21/xdebug-and-phpstorm/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 20:34:48 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=97</guid>
		<description><![CDATA[Phpstorm is an IDE made by Intellij. I&#8217;ve never really used an IDE for php before. I have tried Aptana and Eclipse but didn&#8217;t really like them. My coworker Alex really loves Intellij so I thought I would give it a try. One of the reasons I&#8217;m giving in is due to having to work [...]]]></description>
			<content:encoded><![CDATA[<p>Phpstorm is an IDE made by Intellij. I&#8217;ve never really used an IDE for php before. I have tried Aptana and Eclipse but didn&#8217;t really like them. My coworker Alex really loves Intellij so I thought I would give it a try. One of the reasons I&#8217;m giving in is due to having to work on Magento.<br />
Magento is so large that without an IDE, it would be difficult to navigate. Instead of grepping, I would like to use something that can find the definition/declaration of functions and trace through the stack.</p>
<p>First, my impressions of Phpstorm: I like it! It doesn&#8217;t have as many of the mystery buttons of Aptana, and pretty much everything is configurable. I was able to find an editor theme that I liked ( <a href="http://elis.ws/phpstorm-dark-theme/" target="_blank">http://elis.ws/phpstorm-dark-theme/</a> ).</p>
<p>My next task was to get Magento working on my local machine ( Mac OSX Lion). This is the first hiccup as mcrypt is not compiled. There are a few ways to fix this but coupled with the fact that xdebug is also not compiled for OSX, I&#8217;ll save you the time and tell you that <a href="http://www.mamp.info" target="_blank">MAMP</a> is the easiest option.</p>
<p>By default, MAMP runs apache on port 8888 and mysql on 8887, you can set the preferences in MAMP to change them back to port 80 for apache and 6667 for mysql provided that you are not running web sharing or mysql server on the mac. If you are, simply disable in your System Preferences.</p>
<p>The next thing to do is to turn on vhosts config for MAMP. Edit /Applications/MAMP/conf/apache/httpd.conf and uncomment<br />
# Virtual hosts<br />
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf</p>
<p>You can set local vhosts for development and modify /etc/hosts so that your mac responds to a domain for development. I&#8217;ll write about how to make all this easy to deploy using VirtualDocumentRoot later.</p>
<p>The last step is to turn on xdebug. Edit your php.ini ( ie /Applications/MAMP/bin/php/php5.3.6/conf/php.ini ) and add the following lines:<br />
*** make sure the path to your zend_extension matches what you installed from MAMP ***<br />
zend_extension=&#8221;/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so&#8221;<br />
xdebug.default_enable = On<br />
xdebug.show_exception_trace = On<br />
xdebug.show_local_vars = 1<br />
xdebug.var_display_max_depth = 6<br />
xdebug.remote_enable = 1</p>
<p>xdebug.dump_once = On<br />
xdebug.dump_globals = On<br />
xdebug.dump_undefined = On<br />
xdebug.dump.REQUEST = *<br />
xdebug.dump.SERVER = REQUEST_METHOD,REQUEST_URI,HTTP_USER_AGENT</p>
<p>To debug from Intellij you can either set up the PHP processor ( CLI ) to your MAMP php binary, or you can have Phpstorm listen to port 9000 for xdebug messages. Xdebug does this by<br />
1) set a cookie in your browser so that when xdebug.so module intercepts the request and sees the cookie, it will:<br />
2) stop at the break points in debugger window.</p>
<p>Use the bookmarklet generator link on this <a href="http://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/" target="_blank">page</a>.</p>
<p>Navigate to your local development site, turn on the listening in Phpstorm for this project and set the break points in Phpstorm. Click on the bookmarket to set the cookie for Xdebug. Reload the page and watch Phpstorm debug window.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/12/21/xdebug-and-phpstorm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a theme options page</title>
		<link>http://www.mediaextreme.com/2011/11/30/add-a-theme-options-page/</link>
		<comments>http://www.mediaextreme.com/2011/11/30/add-a-theme-options-page/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 01:18:52 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=90</guid>
		<description><![CDATA[http://codex.wordpress.org/Function_Reference/add_theme_page function theme_admin_setup() { add_theme_page( __( &#8216;Theme Options&#8217;),   // Name of page __( &#8216;Theme Options&#8217;),   // Label in menu &#8216;edit_theme_options&#8217;,                    // Capability required &#8216;theme_options&#8217;,                         // Menu slug, used to uniquely identify the page &#8216;theme_options_page&#8217; // Function that renders the options page ); } add_action(&#8216;admin_menu&#8217;, &#8216;theme_admin_setup&#8217;); // must be wrapped in admin_menu function theme_options_page() { if [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codex.wordpress.org/Function_Reference/add_theme_page" target="_blank">http://codex.wordpress.org/Function_Reference/add_theme_page</a></p>
<p>function theme_admin_setup() {</p>
<p>add_theme_page(<br />
__( &#8216;Theme Options&#8217;),   // Name of page<br />
__( &#8216;Theme Options&#8217;),   // Label in menu<br />
&#8216;edit_theme_options&#8217;,                    // Capability required<br />
&#8216;theme_options&#8217;,                         // Menu slug, used to uniquely identify the page<br />
&#8216;theme_options_page&#8217; // Function that renders the options page<br />
);<br />
}</p>
<p>add_action(&#8216;admin_menu&#8217;, &#8216;theme_admin_setup&#8217;); // must be wrapped in admin_menu<br />
function theme_options_page() {</p>
<p>if ($_POST) { .. update .. }</p>
<p>// page for the form</p>
<p>}</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/11/30/add-a-theme-options-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy way to add embed code to your site</title>
		<link>http://www.mediaextreme.com/2011/11/18/easy-way-to-add-embed-code-to-your-site/</link>
		<comments>http://www.mediaextreme.com/2011/11/18/easy-way-to-add-embed-code-to-your-site/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 23:06:59 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=88</guid>
		<description><![CDATA[If you want to embed from popular video sites, rather than copying and pasting embed codes, use oembed and the built int wordpress oembed functions. http://codex.wordpress.org/Function_Reference/wp_oembed_get Call it from your template and it will create the embed code for you. The only drawback is that it may be slower.]]></description>
			<content:encoded><![CDATA[<p>If you want to embed from popular video sites, rather than copying and pasting embed codes, use oembed and the built int wordpress oembed functions.</p>
<p><a href="http://codex.wordpress.org/Function_Reference/wp_oembed_get" target="_blank">http://codex.wordpress.org/Function_Reference/wp_oembed_get</a></p>
<p>Call it from your template and it will create the embed code for you. The only drawback is that it may be slower.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/11/18/easy-way-to-add-embed-code-to-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great wordpress video for beginners</title>
		<link>http://www.mediaextreme.com/2011/11/14/great-wordpress-video-for-beginners/</link>
		<comments>http://www.mediaextreme.com/2011/11/14/great-wordpress-video-for-beginners/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 14:36:13 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=85</guid>
		<description><![CDATA[Here is a little WP video to get beginners familiar with WP admin panel.]]></description>
			<content:encoded><![CDATA[<p>Here is a little WP video to get beginners familiar with WP admin panel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/11/14/great-wordpress-video-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pretty Date</title>
		<link>http://www.mediaextreme.com/2011/10/30/pretty-date/</link>
		<comments>http://www.mediaextreme.com/2011/10/30/pretty-date/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 23:58:44 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=80</guid>
		<description><![CDATA[Here is a cool little javascript that turns a javascript Date into a pretty string. It&#8217;s very useful for twitter http://ejohn.org/blog/javascript-pretty-date/]]></description>
			<content:encoded><![CDATA[<p>Here is a cool little javascript that turns a javascript Date into a pretty string. It&#8217;s very useful for twitter</p>
<p><a href="http://ejohn.org/blog/javascript-pretty-date/" target="_blank">http://ejohn.org/blog/javascript-pretty-date/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/10/30/pretty-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piano arrived</title>
		<link>http://www.mediaextreme.com/2011/10/19/piano-arrived/</link>
		<comments>http://www.mediaextreme.com/2011/10/19/piano-arrived/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 01:34:09 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Piano]]></category>

		<guid isPermaLink="false">http://www.mediaextreme.com/?p=74</guid>
		<description><![CDATA[The Privia 830 arrived today. Installing this takes a little bit of patience but the instructions were clear and they included Styrofoam pieces that aid in the installation. Very clever. There were a couple of minor issues. A thin wood backing was cracked and a couple of places could have fit better but overall impression [...]]]></description>
			<content:encoded><![CDATA[<p>The Privia 830 arrived today.</p>
<p>Installing this takes a little bit of patience but the instructions were clear and they included Styrofoam pieces that aid in the installation. Very clever. There were a couple of minor issues. A thin wood backing was cracked and a couple of places could have fit better but overall impression is that for under $800, this could not be beat. At first I was fearing that I would regret not buying the high gloss finish version ( cost $500 more ), but after putting this together, I think this is just as good if not better. Unlike the high gloss, this will not show fingerprints as much.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediaextreme.com/2011/10/19/piano-arrived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

