<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><generator uri="http://www.habariproject.org/" version="0.6.4">Habari</generator><id>tag:andrewhutchings.com,2010-07-30:atom/08bcc0dfcc9942be5b03ee079c33a54af4c7e914</id><title>Andrew Hutchings</title><updated>2010-07-30T18:19:00-04:00</updated><link rel="alternate" href="http://andrewhutchings.com/" /><link rel="first" href="http://andrewhutchings.com/atom/1/page/1" type="application/atom+xml" title="First Page" /><link rel="next" href="http://andrewhutchings.com/atom/1/page/2" type="application/atom+xml" title="Next Page" /><link rel="last" href="http://andrewhutchings.com/atom/1/page/5" type="application/atom+xml" title="Last Page" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/andrew-hutchings" /><feedburner:info uri="andrew-hutchings" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry><title>Typography for Habari</title><link rel="alternate" href="http://feedproxy.google.com/~r/andrew-hutchings/~3/DDOo4I--okw/typography-for-habari" /><link rel="edit" href="http://andrewhutchings.com/typography-for-habari/atom" /><author><name>Andrew</name><uri>http://andrewhutchings.com</uri></author><id>tag:andrewhutchings.com,2009:typography-for-habari/1249511521</id><updated>2009-08-05T18:59:11-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-05T18:59:11-04:00</app:edited><category term="habari" /><category term="php" /><category term="typography" /><content type="html">&lt;p&gt;A plugin for Habari that makes use of the relatively new &lt;a href="http://kingdesk.com/projects/php-typography/"&gt;PHP Typography&lt;/a&gt; class to improve entry typography through the use of hyphenation, spacing control, intelligent character replacement, and CSS hooks for styling. Typography for Habari also has the ability to apply correct capitalization to post titles, thanks to Adam Nolley's PHP port of John Gruber's title case rules.&lt;/p&gt;

&lt;p&gt;Typography provides all the functionality of the Typogrify and SmartyPants libraries, so to avoid any potential issues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If using the Habari Markdown plugin, disable SmartyPants&lt;/li&gt;
&lt;li&gt;Disable Typogrify&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find the latest version of Typography for Habari at &lt;a href="http://github.com/ahutchings/habari-typography"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/andrew-hutchings/~4/DDOo4I--okw" height="1" width="1"/&gt;</content><feedburner:origLink>http://andrewhutchings.com/typography-for-habari</feedburner:origLink></entry><entry><title>Habari Plugin: Akismet Spam Filtering</title><link rel="alternate" href="http://feedproxy.google.com/~r/andrew-hutchings/~3/XomfBDOLrGc/habari-plugin-akismet-spam-filtering" /><link rel="edit" href="http://andrewhutchings.com/habari-plugin-akismet-spam-filtering/atom" /><author><name>Andrew</name><uri>http://andrewhutchings.com</uri></author><id>tag:andrewhutchings.com,2009:habari-plugin-akismet-spam-filtering/1242620808</id><updated>2009-05-18T00:41:03-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-18T00:41:03-04:00</app:edited><category term="akismet" /><category term="development" /><category term="habari" /><category term="php" /><content type="html">&lt;p&gt;The recent trend of entries about Habari continues, with an &lt;a href="http://akismet.com/"&gt;Akismet&lt;/a&gt; plugin. Other alternatives exist if you're not a fan of Akismet. (&lt;a href="http://wiki.habariproject.org/en/Plugins/Defensio"&gt;Defensio&lt;/a&gt;, Mollom, Simple Blacklist, the core spam checker, etc.) &lt;del&gt;A &lt;a href="http://antispam.typepad.com/"&gt;TypePad AntiSpam&lt;/a&gt; plugin will be coming soon.&lt;/del&gt; TypePad AntiSpam support was added to the Akismet plugin in version 0.1.0.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Akismet, or Automattic Kismet, is a spam filtering service created by Automattic, the corporation which employs most of the main developers of the weblog platform WordPress, and released on October 25, 2005. Akismet attempts to filter link spam from blog comments and spam TrackBack pings. The filter works by combining information about spam captured on all participating blogs, and then using those spam rules to block future spam. Akismet has captured over 10.1 billion spam comments and pings as of March 2009.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;cite&gt;courtesy of &lt;a href="http://en.wikipedia.org/wiki/Akismet"&gt;Wikipedia&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://habariproject.org/dist/plugins/habariakismet/"&gt;Download at Habari Extras&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;Changelog&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;0.1.1: A bug was squashed that prevented the Akismet provider from being selected.&lt;/li&gt;
&lt;li&gt;0.1.0: TypePad AntiSpam support added.&lt;/li&gt;
&lt;li&gt;0.0.1: Initial release of Habari Akismet.&lt;/li&gt;
&lt;/ul&gt;
&lt;img src="http://feeds.feedburner.com/~r/andrew-hutchings/~4/XomfBDOLrGc" height="1" width="1"/&gt;</content><feedburner:origLink>http://andrewhutchings.com/habari-plugin-akismet-spam-filtering</feedburner:origLink></entry><entry><title>Habari Plugin: Minify</title><link rel="alternate" href="http://feedproxy.google.com/~r/andrew-hutchings/~3/rmIh0csfMQQ/habari-plugin-minify" /><link rel="edit" href="http://andrewhutchings.com/habari-plugin-minify/atom" /><author><name>Andrew</name><uri>http://andrewhutchings.com</uri></author><id>tag:andrewhutchings.com,2009:habari-plugin-minify/1240505890</id><updated>2009-04-23T13:10:09-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-23T13:10:09-04:00</app:edited><category term="best-practices" /><category term="habari" /><category term="minify" /><category term="php" /><content type="html">&lt;p&gt;A plugin for Habari that makes use of the &lt;a href="http://code.google.com/p/minify/"&gt;minify project&lt;/a&gt; to combine and compress javascript and CSS. Although this is basically just a minify wrapper, I'd still consider it alpha status, so use at your own risk!&lt;/p&gt;

&lt;p&gt;From the minify project page:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Minify is a PHP5 app that can combine multiple CSS or Javascript files, compress their contents (i.e. removal of unnecessary whitespace/comments), and serve the results with HTTP encoding (gzip/deflate) and headers that allow optimal client-side caching. This helps you follow several of Yahoo!'s Rules for High Performance Web Sites.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To enable minification for your theme stylesheet(s), you'll need to add them to the &lt;code&gt;template_stylesheet&lt;/code&gt; stack, like so:&lt;/p&gt;

&lt;script src="http://gist.github.com/238581.js?file=gistfile1.php"&gt;&lt;/script&gt;

&lt;p&gt;You can then remove the stylesheet from the head section of the theme HTML. Also, make sure the theme is calling &lt;code&gt;theme_header()&lt;/code&gt; somewhere in the head section.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://github.com/ahutchings/habari-minify"&gt;Download at GitHub&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/andrew-hutchings/~4/rmIh0csfMQQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://andrewhutchings.com/habari-plugin-minify</feedburner:origLink></entry><entry><title>Habari Plugins: Cache Gists and an Update to Google Analytics</title><link rel="alternate" href="http://feedproxy.google.com/~r/andrew-hutchings/~3/FRuoYL0jZaU/habari-plugins-cache-gists-and-an-update-to-google-analytics" /><link rel="edit" href="http://andrewhutchings.com/habari-plugins-cache-gists-and-an-update-to-google-analytics/atom" /><author><name>Andrew</name><uri>http://andrewhutchings.com</uri></author><id>tag:andrewhutchings.com,2009:habari-plugins-cache-gists-and-an-update-to-google-analytics/1240343525</id><updated>2009-04-21T15:52:05-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-21T15:52:05-04:00</app:edited><category term="best-practices" /><category term="development" /><category term="habari" /><category term="javascript" /><category term="php" /><content type="html">&lt;p&gt;As of last night, this site is running on &lt;a href="http://www.habariproject.com/"&gt;Habari&lt;/a&gt; again (from Drupal, from Nisaba, from Habari...). I am using quite a few plugins for site optimization - here are two. The Google Analytics plugin is originally by &lt;a href="http://iamgraham.net/"&gt;Graham Christensen&lt;/a&gt;, the Cache Gists plugin is my own creation. Both of these plugins were tested with version 0.6 of Habari.&lt;/p&gt;

&lt;h2&gt;Google Analytics&lt;/h2&gt;

&lt;p&gt;Drupal's Google Analytics plugin had the useful ability to cache the analytics javascript file, which reduces the number of DNS lookups for visitors browsing your site. I decided to get my hands dirty, and added this option to the Google Analytics plugin from the Habari Extras repository.&lt;/p&gt;

&lt;p&gt;While I was at it, I added https detection to the plugin. Stock Google Analytics code writes the script tag to the document after the page is loaded, but there are multiple issues with this feature, the primary one being that it doesn't play nice with real XHTML documents. The Google Analytics plugin now writes the script location into the document before sending it to the client.&lt;/p&gt;

&lt;p&gt;Download here: &lt;del&gt;googleanalyticsextra-0.6-0.0.1.zip&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update 04.25.2009:&lt;/strong&gt; Changes have been merged into the GoogleAnalytics plugin at &lt;a href="http://trac.habariproject.org/habari-extras/"&gt;Habari Extras&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;Cache Gists&lt;/h2&gt;

&lt;p&gt;Similarly to the Google Analytics stock code, GitHub Gists are inserted into the document using document.write(). Unlike Google Analytics, Gists are usually right in the middle of page content, making document rendering jerky. This plugin caches the Gist to the webserver, avoiding document.write(). I published a &lt;a href="http://andrewhutchings.com/embedding-github-gists-in-xhtml"&gt;previous entry about GitHub Gists here&lt;/a&gt;.The target audience for this one will be a small niche for sure, but here it is.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://github.com/ahutchings/habari-gistextras"&gt;Download at Github&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;Future Updates&lt;/h2&gt;

&lt;p&gt;At some point, I may add the option to move the Gist stylesheet to the document head (if that's possible) or strip the Gist stylesheet from page to allow for easier custom styling. Also, I'd like to look into creating a &lt;a href="http://code.google.com/p/minify/"&gt;minify&lt;/a&gt; plugin for Habari. Stay tuned!&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/andrew-hutchings/~4/FRuoYL0jZaU" height="1" width="1"/&gt;</content><feedburner:origLink>http://andrewhutchings.com/habari-plugins-cache-gists-and-an-update-to-google-analytics</feedburner:origLink></entry><entry><title>Closing In on a Nisaba Public Release</title><link rel="alternate" href="http://feedproxy.google.com/~r/andrew-hutchings/~3/OCm56G-yfwQ/closing-in-on-a-nisaba-public-release" /><link rel="edit" href="http://andrewhutchings.com/closing-in-on-a-nisaba-public-release/atom" /><author><name>Andrew</name><uri>http://andrewhutchings.com</uri></author><id>tag:andrewhutchings.com,2009:closing-in-on-a-nisaba-public-release/1240269524</id><updated>2009-04-20T19:18:44-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-20T19:18:44-04:00</app:edited><category term="development" /><category term="gnip" /><category term="nisaba" /><category term="php" /><content type="html">&lt;p&gt;*[API]: Application Programming Interface
*[XSS]: Cross-Site Scripting&lt;/p&gt;

&lt;p&gt;Nisaba's code structure has changed drastically over the past few months, and I consider it almost ready for a public release. The initial release will not include &lt;a href="http://gnipcentral.com/"&gt;Gnip&lt;/a&gt; support, as Gnip just released a new API for testing, and I want to get a solid product out for the first release.&lt;/p&gt;

&lt;h3&gt;Remaining Todos&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;del&gt;Assign milestones to all bugs in &lt;a href="http://code.google.com/p/nisaba/"&gt;Google Code&lt;/a&gt;&lt;/del&gt;&lt;/li&gt;
&lt;li&gt;&lt;del&gt;Comment processing, to enable &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; support and prevent XSS&lt;/del&gt;&lt;/li&gt;
&lt;li&gt;A graphical walkthrough&lt;/li&gt;
&lt;li&gt;&lt;del&gt;Cleanup of admin content areas&lt;/del&gt;&lt;/li&gt;
&lt;li&gt;&lt;del&gt;Comment &amp; entry status changing&lt;/del&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;System Requirements&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;PHP 5.2.3+ (Nisaba uses &lt;a href="http://www.doctrine-project.org/"&gt;Doctrine ORM&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Apache with mod_rewrite&lt;/li&gt;
&lt;li&gt;MySQL 4.1+ (Possibly higher, all development is done with version 5.1)&lt;/li&gt;
&lt;li&gt;Minimal testing has been done in browsers other than Google Chrome and Mozilla Firefox. There are no guarantees with Internet Explorer, but patches are welcome.&lt;/li&gt;
&lt;/ul&gt;
&lt;img src="http://feeds.feedburner.com/~r/andrew-hutchings/~4/OCm56G-yfwQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://andrewhutchings.com/closing-in-on-a-nisaba-public-release</feedburner:origLink></entry></feed>
