<?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>Mark Parolisi &#187; Articles</title> <atom:link href="http://markparolisi.com/category/articles/feed/" rel="self" type="application/rss+xml" /><link>http://markparolisi.com</link> <description>Official Portfolio and Blog</description> <lastBuildDate>Wed, 01 Feb 2012 04:35:02 +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>Run Coverage Reports in Python</title><link>http://markparolisi.com/articles/tutorials/run-coverage-reports-in-python/</link> <comments>http://markparolisi.com/articles/tutorials/run-coverage-reports-in-python/#comments</comments> <pubDate>Wed, 01 Feb 2012 04:32:59 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[Tutorials]]></category><guid isPermaLink="false">http://markparolisi.com/?p=416</guid> <description><![CDATA[During a recent Code Dojo with my team, we split up into a friendly coding competition. Coverage.py turned out to be a lifesaver.]]></description> <content:encoded><![CDATA[<p>During a recent Code Dojo with my team, we split up into a friendly coding competition. We worked on a generic problem and the winner was decided by a few simple factors: completion time, code coverage and 100% passing of tests. Luckily, <a href="http://nedbatchelder.com/">Ned Batchelder</a> has written a great module for running coverage reports. Simply install (easy_install) the package and run</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">coverage run my_program.py</pre></div></div><p>Then&#8230;</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">coverage report</pre></div></div><p>will print the results to the terminal. You can even output a fancy HTML microsite by running</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">coverage html</pre></div></div><p>That will not only display your result table, but also your code itself.</p><p>It&#8217;s terribly convenient and essential in TDD. Now, go and learn more <a href="http://nedbatchelder.com/code/coverage/">here</a></p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/tutorials/run-coverage-reports-in-python/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordCamp Orlando 2011</title><link>http://markparolisi.com/articles/news/wordcamp-orlando-2011/</link> <comments>http://markparolisi.com/articles/news/wordcamp-orlando-2011/#comments</comments> <pubDate>Mon, 05 Dec 2011 13:04:19 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://markparolisi.com/?p=403</guid> <description><![CDATA[Myself, and the great team at Voce Communications, just had a great time at this year&#8217;s WordCamp Orlando. Check out the site for session info and some of the great]]></description> <content:encoded><![CDATA[<p>Myself, and the great team at <a href="http://vocecommunications.com/blog/2011/09/announcing-wordcamp-2011/">Voce Communications</a>, just had a great time at this year&#8217;s WordCamp Orlando.<br /> Check out the <a href="http://2011.orlando.wordcamp.org/">site</a> for session info and some of the great photos on <a href="http://www.flickr.com/photos/hyku/sets/72157628260077905/">flickr</a></p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/news/wordcamp-orlando-2011/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Better Late than Never</title><link>http://markparolisi.com/articles/news/better-late-than-never/</link> <comments>http://markparolisi.com/articles/news/better-late-than-never/#comments</comments> <pubDate>Sun, 27 Mar 2011 15:11:53 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://markparolisi.com/?p=307</guid> <description><![CDATA[Wanted to inform everyone that I have moved to New York (after three years of delay). I&#8217;ve been here for five months, but forgot to make an official statement. I]]></description> <content:encoded><![CDATA[<p>Wanted to inform everyone that I have moved to New York (after three years of delay). I&#8217;ve been here for five months, but forgot to make an official statement. I am still working for Embanet-Compass Knowledge Group, and am very fulfilled. We now have offices in Orlando, Chicago, and Toronto; making my remote working situation a non-issue. While I am very busy with my day job, I am still accepting project offers for a select few of my preferred clients. So please, if you have an interesting opportunity for me to work on, do not hesitate to forward me the concept. Thanks for everyone&#8217;s support and I hope you all are well.</p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/news/better-late-than-never/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>New WordPress slideshow posted</title><link>http://markparolisi.com/articles/tutorials/new-wordpress-slideshow-posted/</link> <comments>http://markparolisi.com/articles/tutorials/new-wordpress-slideshow-posted/#comments</comments> <pubDate>Sat, 17 Apr 2010 12:30:12 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[News]]></category> <category><![CDATA[Tutorials]]></category><guid isPermaLink="false">http://markparolisi.com/?p=215</guid> <description><![CDATA[I presented an overview of the WordPress application to a recent client and decided to post it on slideshare for anyone interested. It&#8217;s intended for a technical audience, but it]]></description> <content:encoded><![CDATA[<p>I presented an overview of the WordPress application to a recent client and decided to post it on slideshare for anyone interested. It&#8217;s intended for a technical audience, but it is not an overly technical presentation.<br /> Please feel free to comment on it and send in any error I may have made.<br /> Hope you enjoy&#8230;</p><div style="width:425px" id="__ss_3758146"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/markparolisi/wordpress-structure-and-best-practices" title="WordPress Structure and Best Practices">WordPress Structure and Best Practices</a></strong><object width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wpbest-practices-100417071550-phpapp01&#038;stripped_title=wordpress-structure-and-best-practices" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wpbest-practices-100417071550-phpapp01&#038;stripped_title=wordpress-structure-and-best-practices" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/markparolisi">markparolisi</a>.</div></div> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/tutorials/new-wordpress-slideshow-posted/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Sorry iPad, I got an EeePC</title><link>http://markparolisi.com/articles/tech/sorry-ipad-i-got-an-eeepc/</link> <comments>http://markparolisi.com/articles/tech/sorry-ipad-i-got-an-eeepc/#comments</comments> <pubDate>Sun, 14 Mar 2010 02:51:42 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[Tech]]></category><guid isPermaLink="false">http://markparolisi.com/?p=193</guid> <description><![CDATA[Like most people, I was very excited about the iPad&#8230;before it was presented. I&#8217;m not going to go into the details why I&#8217;m not a fan (that&#8217;s already been done]]></description> <content:encoded><![CDATA[<p>Like most people, I was very excited about the iPad&#8230;before it was presented.</p><p>I&#8217;m not going to go into the details why I&#8217;m not a fan (that&#8217;s already been done to death by <a href="http://www.youtube.com/watch?v=lQnT0zp8Ya4">everyone</a> else on the internet). I&#8217;m just going to say one thing: multi-tasking.</p><p>I really <span style="text-decoration: line-through;">needed</span> wanted a travel-sized device so I could read blogs, watch videos, and do some break-fix web work, but my iPhone, though essential and powerful as it may be, wasn&#8217;t cutting it. I was considering picking up a 13&#8243; MacBook Pro but the price tag was a little much for something that would just be for an auxiliary work tool and temporary travel luxury. Then I remembered about netbooks. You know, those devices that were the cool cutting edge thing after and now before tablets (that makes sense right?). They had just about everything I wanted.</p><ul><li>Portability</li><li>Low Entry Cost</li><li>Large Community</li><li>Lots of Linux Options (more on that next)</li></ul><p>The model I chose was the sort-of flagship standard netbook; the Asus EeePC 1005 HA. Sure, the hardware isnt the greatest; 2 gb max memory and a graphics card that can handle no more than standard resolution video, but remember, this is a supplement, not my primary workstation.</p><p>The netbook came with windows XP installed, so I quickly formatted that right off of it. I was considering having it as a secondary partition, but seeing as how little I launch Windows Parallels on my iMac I decided it would just be a waste of space. I briefly considered running OSX, but decided it&#8217;d be too much of a hassle and ultimately not as flexible as a Linux disto.</p><p>A quick Google search returned Eeebuntu; a custom mod of Ubuntu 9 optimized for EeePc&#8217;s. I downloaded the beta of the new version (eb4). It took me a couple of tries to get the install right and I encountered some other problems like the GUI update manager crashing and network card not reconnecting on wake (common problem of this beta), but overall I&#8217;m happy with the OS.</p><p>I&#8217;ve got everything I need on it now: Chrome, FF, NetBeans, Pidgin, TweetDeck, Thunderbird, and a few other utilities. And there&#8217;s always the terminal. Working in command line is a nice break from heavy interfaces and keeps that knowledge fresh in your memory.</p><p>So, though I was pretty excited about the prospects of the iPad, I&#8217;m more than satisfied with my netbook. I may not get to play the innovative games that the new Apple device will make available, but I was able to comfortably type this entire post, while listening to music, checking Twitter, and instant messaging all at once.</p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/tech/sorry-ipad-i-got-an-eeepc/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Use wp_enqueue_style</title><link>http://markparolisi.com/articles/tutorials/use-wp_enqueue_style/</link> <comments>http://markparolisi.com/articles/tutorials/use-wp_enqueue_style/#comments</comments> <pubDate>Mon, 08 Mar 2010 13:11:56 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[Tutorials]]></category><guid isPermaLink="false">http://markparolisi.com/?p=186</guid> <description><![CDATA[A few months ago Chris Scott gave a presentation on &#8216;proper&#8217; WordPress plugin development. It was full of great stuff so I thought I&#8217;d pass along a small slice of]]></description> <content:encoded><![CDATA[<p>A few months ago Chris Scott gave a presentation on &#8216;proper&#8217; WordPress plugin development. It was full of great stuff so I thought I&#8217;d pass along a small slice of it here.<br /> <span id="more-186"></span><br /> Instead of writing your CSS and JS to your theme&#8217;s header.php, or echo&#8217;ing it out in a function call; use WP&#8217;s wp_enqueue_style and wp_enqueue_script functions respectively. wp_enqueue_script is really handy to check for/load dependent scripts (jQuery, Scriptalicious, etc) and wp_enqueue_style even works on conditional CSS&#8230;</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">wp_enqueue_style<span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'ie7-style'</span><span style="color: #339933;">,</span>
get_template_directory_uri<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>  <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/ie7.css'</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_styles</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_styles</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add_data</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'ie7-style'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'conditional'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'lte IE 7′ );</span></pre></div></div><p>Chris&#8217; article on condtional CSS is here:<br /> <a href="http://iamzed.com/2010/01/07/using-wordpress-wp_enqueue_style-with-conditionals/">http://iamzed.com/2010/01/07/using-wordpress-wp_enqueue_style-with-conditionals/</a></p><p>and his full presentation is here:<br /> <a href="http://www.slideshare.net/iamzed/youre-doing-it-wrong-wordcamp-orlando">http://www.slideshare.net/iamzed/youre-doing-it-wrong-wordcamp-orlando</a></p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/tutorials/use-wp_enqueue_style/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>A Short Rant on Open-Source Development</title><link>http://markparolisi.com/articles/news/a-short-rant-on-open-source-development/</link> <comments>http://markparolisi.com/articles/news/a-short-rant-on-open-source-development/#comments</comments> <pubDate>Mon, 08 Mar 2010 03:38:35 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://markparolisi.com/?p=173</guid> <description><![CDATA[Ok, so this isn&#8217;t a rant per-se, but I have been very busy lately and feeling a small rant coming on soon. I use a lot of open-source products, and]]></description> <content:encoded><![CDATA[<p>Ok, so this isn&#8217;t a rant per-se, but I have been very busy lately and feeling a small rant coming on soon.</p><p>I use a lot of open-source products, and most of my education and skill-set is derived from what I&#8217;ve learned from <span style="text-decoration: line-through;">hacking</span> reverse-engineering many of these projects. In turn, I always try to give back as much as I can. Whether it&#8217;s posting answers on message boards, participating or organizing user groups (<a href="http://orlandowordpress.org/">OWUG</a> &amp; <a href="http://orlandophp.org/">Orlando PHP</a> &#8211; FTW!), or contributing my own code back into the community.</p><p>The first two methods are pretty painless and very rewarding, while the last has been pretty taxing as of late. Most of the stuff I push into the community are projects that I&#8217;ve done for a client and have been green-lit for GNU distribution. Now, obviously all of these products work to the client&#8217;s specifications and satisfaction, but a funny thing happens when that code goes public. All of a sudden its full of bugs and lacks certain &#8216;essential&#8217; features. While adding these new features, you inevitably create the possibility for other bugs. Not to mention issues that arise with server configuration and compatibility with other programs that live in the same software eco-system.</p><p>Something that was initially a job, turns into a passion project, and then a burden. Don&#8217;t get me wrong, it&#8217;s not all bad. I really like knowing that projects I&#8217;ve worked on are helping people in one way or another, and I like the opportunity to meet other people in the community that are more than willing to provide constructive and detailed feedback on my work. But, I just wanted to let everyone out there know; it&#8217;s not always peaches and cream.</p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/news/a-short-rant-on-open-source-development/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>New Site Design</title><link>http://markparolisi.com/articles/news/new-site-design/</link> <comments>http://markparolisi.com/articles/news/new-site-design/#comments</comments> <pubDate>Mon, 25 Jan 2010 21:29:54 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://portfolio.markparolisi.com/?p=5</guid> <description><![CDATA[The old site design just seemed a little bloated for me, so I&#8217;m changing it up. It will hopefully organize the content more clearly and will allow visitors to browse]]></description> <content:encoded><![CDATA[<p>The old site design just seemed a little bloated for me, so I&#8217;m changing it up. It will hopefully organize the content more clearly and will allow visitors to browse more easily.</p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/news/new-site-design/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Inject Invalid Elements with JS</title><link>http://markparolisi.com/articles/tutorials/inject-invalid-elements-with-js/</link> <comments>http://markparolisi.com/articles/tutorials/inject-invalid-elements-with-js/#comments</comments> <pubDate>Mon, 25 Jan 2010 05:02:17 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[Tutorials]]></category><guid isPermaLink="false">http://portfolio.markparolisi.com/?p=66</guid> <description><![CDATA[Sometimes you need to add objects to a page from other sources. Like Facebook friendconnect boxes, twitter widgets, or some Google tool(s). Many times, these elements will not pass W3C]]></description> <content:encoded><![CDATA[<p>Sometimes you need to add objects to a page from other sources. Like Facebook friendconnect boxes, twitter widgets, or some Google tool(s). Many times, these elements will not pass W3C validation and ruin your perfectly crafted site. To get around this problem, I use some JavaScript to simply inject these elements into my page after the DOM has rendered.</p><p><span id="more-66"></span>At the bottom of my site I&#8217;ve included a button to launch my Google Voice widget. This was invalidating my markup so I added this bit of code to my jQuery doc.ready to get things squared away.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">$(&quot;#content&quot;).append('*google voice object embed code here*');</pre></td></tr></table></div><p>My page now validates perfectly and I didn&#8217;t lose a cool feature.</p> ]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/tutorials/inject-invalid-elements-with-js/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Open External Links in a New Tab</title><link>http://markparolisi.com/articles/tutorials/open-external-links-in-a-new-tab/</link> <comments>http://markparolisi.com/articles/tutorials/open-external-links-in-a-new-tab/#comments</comments> <pubDate>Mon, 25 Jan 2010 04:39:39 +0000</pubDate> <dc:creator>Mark</dc:creator> <category><![CDATA[Tutorials]]></category><guid isPermaLink="false">http://portfolio.markparolisi.com/?p=60</guid> <description><![CDATA[This javascript snippet is in almost every site I build. It scans the links on the page and add target=&#8217;_blank&#8217; to any anchor tag with a href not starting with]]></description> <content:encoded><![CDATA[<p>This javascript snippet is in almost every site I build. It scans the links on the page and add target=&#8217;_blank&#8217; to any anchor tag with a href not starting with our domain. Here are two different ways to do it using two different JavaScript libraries.</p><p><span id="more-60"></span>jQuery:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a[href^='http://']&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> thehref <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>thehref.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">host</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'target'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'_blank'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>mootools:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a[href^=&quot;http://&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> href <span style="color: #339933;">=</span> a.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>href.<span style="color: #660066;">contains</span><span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">host</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      a.<span style="color: #660066;">setProperty</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'target'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'_blank'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>]]></content:encoded> <wfw:commentRss>http://markparolisi.com/articles/tutorials/open-external-links-in-a-new-tab/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/26 queries in 0.012 seconds using disk: basic
Object Caching 694/746 objects using disk: basic

Served from: markparolisi.com @ 2012-02-05 18:17:08 -->
