<?xml version="1.0"?>
<rdf:RDF
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns="http://purl.org/rss/1.0/"
>
<channel rdf:about="http://mahara.org/planet/">
	<title>Planet Mahara</title>
	<link>http://mahara.org/planet/</link>
	<description>Planet Mahara - http://mahara.org/planet/</description>

	<items>
		<rdf:Seq>
			<rdf:li rdf:resource="http://danmarsden.com/blog/?p=139" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-3107957576002454168" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-6435899765648327852" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-4963006486593641199" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/removing-the-referer-part-of-php-error-messagse-from-apache-logs" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/whats-up-in-mahara-land-recently" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/mahara-12-importexport-demo" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/themes-in-mahara-12" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/mahara-11-almost-there" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/things-you-dont-want-to-see-in-the-morning" />
			<rdf:li rdf:resource="http://nigel.mcnie.name/blog/maharaorg-finally-relaunched" />
			<rdf:li rdf:resource="http://she.geek.nz/archives/556-guid.html" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-8489512189025315844" />
			<rdf:li rdf:resource="http://danmarsden.com/blog/?p=121" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-4834839572126540007" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-8799540138753212173" />
			<rdf:li rdf:resource="http://she.geek.nz/archives/547-guid.html" />
			<rdf:li rdf:resource="http://danmarsden.com/blog/?p=114" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-4650021723036570516" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-7731510958448121124" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-4625458287479958517" />
			<rdf:li rdf:resource="tag:blogger.com,1999:blog-7615241590176793465.post-2561925668604985632" />
		</rdf:Seq>
	</items>
</channel>

<item rdf:about="http://danmarsden.com/blog/?p=139">
	<title>Dan Marsden: Awards Time?</title>
	<link>http://danmarsden.com/blog/2010/08/22/awards-time/</link>
	<content:encoded>&lt;p&gt;With nominations soon closing for the &lt;a title=&quot;NZ Open Source Awards&quot; href=&quot;http://www.nzosa.org.nz/&quot; target=&quot;_blank&quot;&gt;NZ Open Source Awards&lt;/a&gt; I&amp;#8217;ve just heard about &lt;a href=&quot;https://www.packtpub.com/open-source-awards-home&quot;&gt;Packt Publishing&amp;#8217;s Open Source Awards&lt;/a&gt; &amp;#8211; It looks like Moodle and Mahara aren&amp;#8217;t eligible, but if you&amp;#8217;re aware of any open source products that you think should be recognised make sure you nominate them! &amp;#8211; Packt are offering cash prizes to the winners and runners-up.&lt;/p&gt;
&lt;p&gt;The NZ Open Source Awards are a bit more flexible and a wider range of projects will be eligible but nominations are closing very soon!&lt;/p&gt;</content:encoded>
	<dc:date>2010-08-22T22:18:49+00:00</dc:date>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-3107957576002454168">
	<title>François Marier: Cherry-picking a range of git commits</title>
	<link>http://feeding.cloud.geek.nz/2010/07/cherry-picking-range-of-git-commits.html</link>
	<content:encoded>The &lt;tt&gt;cherry-pick&lt;/tt&gt; command in &lt;a href=&quot;http://www.git-scm.com/&quot;&gt;git&lt;/a&gt; allows you to copy commits from one branch to another, one commit at a time. In order to copy more than one commit at once, you need a different approach.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Cherry-picking a single commit&lt;/h2&gt;Say we have the following repository composed of three branches (&lt;tt&gt;master&lt;/tt&gt;, &lt;tt&gt;feature1&lt;/tt&gt; and &lt;tt&gt;stable&lt;/tt&gt;):&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git tree --all&lt;br /&gt;* d9484311 (HEAD, master) Delete test file&lt;br /&gt;* 4d4a0da8 Add a test file&lt;br /&gt;| * 5753515c (stable) Add a license&lt;br /&gt;| * 4b95278e Add readme file&lt;br /&gt;|/&lt;br /&gt;| * a37658bd (feature1) Add fourth file&lt;br /&gt;| * a7785c10 Add lines to 3rd file&lt;br /&gt;| * 7f545188 Add third file&lt;br /&gt;| * 2bca593b Add line to second file&lt;br /&gt;| * 0c13e436 Add second file&lt;br /&gt;|/&lt;br /&gt;* d3199755 Add a line&lt;br /&gt;* b58d925c Initial commit&lt;/pre&gt;&lt;br /&gt;The &quot;git tree&quot; command is an alias I defined in my &lt;tt&gt;~/.gitconfig&lt;/tt&gt;:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;[alias]&lt;br /&gt;tree = log --oneline --decorate --graph&lt;/pre&gt;&lt;br /&gt;To copy the license file (commit &lt;tt&gt;5753515c&lt;/tt&gt;) to the &lt;tt&gt;master&lt;/tt&gt; branch then we simply need to run:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git checkout master&lt;br /&gt;$ git cherry-pick 5753515c&lt;br /&gt;Finished one cherry-pick.&lt;br /&gt;[master 08ff7d4] Add a license&lt;br /&gt;1 files changed, 676 insertions(+), 0 deletions(-)&lt;br /&gt;create mode 100644 COPYING&lt;/pre&gt;&lt;br /&gt;and the repository now looks like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git tree --all&lt;br /&gt;* 08ff7d4a4 &lt;b&gt;(HEAD, master) Add a license&lt;/b&gt;&lt;br /&gt;* d94843113 Delete test file&lt;br /&gt;* 4d4a0da88 Add a test file&lt;br /&gt;| * 5753515c (stable) Add a license&lt;br /&gt;| * 4b95278e Add readme file&lt;br /&gt;|/&lt;br /&gt;| * a37658bd (feature1) Add fourth file&lt;br /&gt;| * a7785c10 Add lines to 3rd file&lt;br /&gt;| * 7f545188 Add third file&lt;br /&gt;| * 2bca593b Add line to second file&lt;br /&gt;| * 0c13e436 Add second file&lt;br /&gt;|/&lt;br /&gt;* d3199755 Add a line&lt;br /&gt;* b58d925c Initial commit&lt;/pre&gt;&lt;br /&gt;&lt;h2&gt;Cherry-picking a range of commits&lt;br /&gt;&lt;/h2&gt;In order to only take the third file (commits &lt;tt&gt;a7785c10&lt;/tt&gt; and &lt;tt&gt;7f545188&lt;/tt&gt;) from the &lt;tt&gt;feature1&lt;/tt&gt; branch and add it to the &lt;tt&gt;stable&lt;/tt&gt; branch, I could cherry-pick each commit separately, but there is a faster way if you need to cherry-pick a large range of commits.&lt;br /&gt;&lt;br /&gt;First of all, let's create a new branch which ends on the last commit we want to cherry-pick:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git branch tempbranch a7785c10&lt;br /&gt;$ git tree --all&lt;br /&gt;* 08ff7d4a (HEAD, master) Add a license&lt;br /&gt;* d9484311 Delete test file&lt;br /&gt;* 4d4a0da8 Add a test file&lt;br /&gt;| * 5753515c (stable) Add a license&lt;br /&gt;| * 4b95278e Add readme file&lt;br /&gt;|/&lt;br /&gt;| * a37658bd (feature1) Add fourth file&lt;br /&gt;| * a7785c10 &lt;b&gt;(tempbranch)&lt;/b&gt; Add lines to 3rd file&lt;br /&gt;| * 7f545188 Add third file&lt;br /&gt;| * 2bca593b Add line to second file&lt;br /&gt;| * 0c13e436 Add second file&lt;br /&gt;|/&lt;br /&gt;* d3199755 Add a line&lt;br /&gt;* b58d925c Initial commit&lt;/pre&gt;&lt;br /&gt;Now we'll rebase that temporary branch on top of the &lt;tt&gt;stable&lt;/tt&gt; branch:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git rebase --onto stable 7f545188^ tempbranch&lt;br /&gt;First, rewinding head to replay your work on top of it...&lt;br /&gt;Applying: Add third file&lt;br /&gt;Applying: Add lines to 3rd file&lt;br /&gt;$ git tree --all&lt;br /&gt;* ec488677 &lt;b&gt;(HEAD, tempbranch) Add lines to 3rd file&lt;/b&gt;&lt;br /&gt;* a85e5281 &lt;b&gt;Add third file&lt;/b&gt;&lt;br /&gt;* 5753515c (stable) Add a license&lt;br /&gt;* 4b95278e Add readme file&lt;br /&gt;| * 08ff7d4a (master) Add a license&lt;br /&gt;| * d9484311 Delete test file&lt;br /&gt;| * 4d4a0da8 Add a test file&lt;br /&gt;|/&lt;br /&gt;| * a37658bd (feature1) Add fourth file&lt;br /&gt;| * a7785c10 Add lines to 3rd file&lt;br /&gt;| * 7f545188 Add third file&lt;br /&gt;| * 2bca593b Add line to second file&lt;br /&gt;| * 0c13e436 Add second file&lt;br /&gt;|/&lt;br /&gt;* d3199755 Add a line&lt;br /&gt;* b58d925c Initial commit&lt;/pre&gt;&lt;br /&gt;All that's left to do is to make stable point to the top commit of &lt;tt&gt;tempbranch&lt;/tt&gt; and delete the old branch:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git checkout stable&lt;br /&gt;Switched to branch 'stable'&lt;br /&gt;$ git reset --hard tempbranch&lt;br /&gt;HEAD is now at ec48867 Add lines to 3rd file&lt;br /&gt;$ git tree --all&lt;br /&gt;* ec488677 (HEAD, tempbranch, &lt;b&gt;stable&lt;/b&gt;) Add lines to 3rd file&lt;br /&gt;* a85e5281 Add third file&lt;br /&gt;* 5753515c Add a license&lt;br /&gt;* 4b95278e Add readme file&lt;br /&gt;| * 08ff7d4a (master) Add a license&lt;br /&gt;| * d9484311 Delete test file&lt;br /&gt;| * 4d4a0da8 Add a test file&lt;br /&gt;|/&lt;br /&gt;| * a37658bd (feature1) Add fourth file&lt;br /&gt;| * a7785c10 Add lines to 3rd file&lt;br /&gt;| * 7f545188 Add third file&lt;br /&gt;| * 2bca593b Add line to second file&lt;br /&gt;| * 0c13e436 Add second file&lt;br /&gt;|/&lt;br /&gt;* d3199755 Add a line&lt;br /&gt;* b58d925c Initial commit&lt;br /&gt;$ git branch -d tempbranch&lt;br /&gt;Deleted branch tempbranch (was ec48867).&lt;/pre&gt;&lt;br /&gt;It would be nice to be able to do it without having to use a temporary branch, but it still beats cherry-picking everything manually.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Another approach&lt;/h2&gt;Another way to achieve this is to use the &lt;tt&gt;format-patch&lt;/tt&gt; command to output patches for the commits you are interested in copying to another branch and then using the &lt;tt&gt;am&lt;/tt&gt; command to apply them all to the target branch:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ git format-patch 7f545188^..a7785c10&lt;br /&gt;0001-Add-third-file.patch&lt;br /&gt;0002-Add-lines-to-3rd-file.patch&lt;br /&gt;$ git am *.patch&lt;/pre&gt;&lt;br /&gt;&lt;h2&gt;Update: looking forward to git 1.7.2&lt;/h2&gt;According to a few people who were nice to point this out in a comment, version 1.7.2 of git, which is going to be released soon, will have support for this in &lt;tt&gt;cherry-pick&lt;/tt&gt;:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;git cherry-pick 7f545188^..a7785c10&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-3107957576002454168?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2010-07-21T09:41:15+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-6435899765648327852">
	<title>François Marier: Reducing website bandwidth usage</title>
	<link>http://feeding.cloud.geek.nz/2009/10/reducing-website-bandwidth-usage.html</link>
	<content:encoded>There are lots of &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/5369&quot;&gt;excellent&lt;/a&gt; &lt;a href=&quot;http://code.google.com/speed/page-speed/&quot;&gt;tools&lt;/a&gt; to help web developers optimise their websites.&lt;br /&gt;&lt;br /&gt;Here are two simple things you have no excuse for overlooking on your next project.&lt;br /&gt;&lt;h2&gt;HTML, XML, Javascript and CSS files&lt;/h2&gt;One of the easiest ways to speed up a website (often to a surprising degree) is to turn on compression of plaintext content through facilities like &lt;a href=&quot;http://httpd.apache.org/docs/2.2/mod/mod_deflate.html&quot;&gt;mod_deflate&lt;/a&gt; or the &lt;a href=&quot;http://wiki.nginx.org/NginxHttpGzipModule&quot;&gt;Gzip Module&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here's the Apache configuration file I normally use:&lt;br /&gt;&lt;pre&gt;AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript text/xml application/x-javascript application/javascript&lt;br /&gt;BrowserMatch ^Mozilla/4 gzip-only-text/html&lt;br /&gt;BrowserMatch &quot;MSIE 6&quot; no-gzip dont-vary&lt;br /&gt;BrowserMatch ^Mozilla/4\.0[678] no-gzip&lt;br /&gt;&lt;/pre&gt;&lt;h2&gt;Images&lt;/h2&gt;As far as images go, the following tools will reduce file sizes through &lt;a href=&quot;http://en.wikipedia.org/wiki/Lossless_compression&quot;&gt;lossless compression&lt;/a&gt; (i.e. with no visual changes at all):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;code&gt;&lt;a href=&quot;http://www.lcdf.org/gifsicle/&quot;&gt;gifsicle&lt;/a&gt; -O2 -b &lt;i&gt;image.gif&lt;/i&gt;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;jpegoptim -p --strip-all &lt;i&gt;image.jpg&lt;/i&gt;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;optipng -o7 -q &lt;i&gt;image.png&lt;/i&gt;&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;(An alternative to &lt;a href=&quot;http://optipng.sourceforge.net/&quot;&gt;optipng&lt;/a&gt; is &lt;a href=&quot;http://pmt.sourceforge.net/pngcrush/&quot;&gt;pngcrush&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;Note that the &lt;tt&gt;--strip-all&lt;/tt&gt; argument to &lt;a href=&quot;http://www.kokkonen.net/tjko/projects.html&quot;&gt;jpegoptim&lt;/a&gt; will remove any &lt;a href=&quot;http://en.wikipedia.org/wiki/Exif&quot;&gt;EXIF&lt;/a&gt;/comments tags that may be present.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-6435899765648327852?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2010-06-20T13:28:55+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-4963006486593641199">
	<title>François Marier: Handling email-based events safely</title>
	<link>http://feeding.cloud.geek.nz/2010/06/handling-email-based-events-safely.html</link>
	<content:encoded>Mahara.org users have recently witnessed the unfortunate effects of a bug in the Mahara event handling: the Mahara cron job got stuck in an email loop and kept on sending the &lt;a href=&quot;http://mahara.org/interaction/forum/topic.php?id=1882&quot;&gt;same forum post&lt;/a&gt; over and over again.&lt;br /&gt;&lt;br /&gt;Here is what the affected code used to look like (edited for clarity):&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;db_begin();&lt;br /&gt;$activities = get_records('activity_queue');&lt;br /&gt;foreach ($activities as $activity) {&lt;br /&gt;  handle_activity($activity);&lt;br /&gt;}&lt;br /&gt;delete_records('activity_queue');&lt;br /&gt;db_commit();&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;One of the problems with this code was that if the &lt;tt&gt;handle_activity()&lt;/tt&gt; function threw an exception, it would interfere with the processing of the entire queue. So &lt;a href=&quot;http://gitorious.org/mahara/mahara/commit/823ab3168aed5ae0e4de27139d56b50c0ab0787c&quot;&gt;it got fixed&lt;/a&gt; in the following way:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;db_begin();&lt;br /&gt;$activities = get_records('activity_queue');&lt;br /&gt;foreach ($activities as $activity) {&lt;br /&gt;  &lt;b&gt;try {&lt;/b&gt;&lt;br /&gt;      handle_activity($activity);&lt;br /&gt;  &lt;b&gt;}&lt;br /&gt;  catch (MaharaException $e) {&lt;br /&gt;      log_debug($e-&gt;getMessage());&lt;br /&gt;  }&lt;/b&gt;&lt;br /&gt;}&lt;br /&gt;delete_records('activity_queue');&lt;br /&gt;db_commit();&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Much better. However, there was still a problem with the code: the whole queue processing is contained within a transaction. This means that should any of the SQL statements fail at any point, the exception would be caught but the SQL statements would all be rolled back at the end by the database.&lt;br /&gt;&lt;br /&gt;Now the idea of a transaction is good: we want activity handling to either succeed entirely or be rolled back. But the fact that some activities cannot be handled should not interfere with other activities. So this has &lt;a href=&quot;http://gitorious.org/mahara/mahara/commit/d08395ac1308727dd45396083f454c47605c0604&quot;&gt;been fixed&lt;/a&gt; by moving the transaction to the inside of the loop:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$activities = get_records('activity_queue');&lt;br /&gt;foreach ($activities as $activity) {&lt;br /&gt;  &lt;b&gt;db_begin();&lt;/b&gt;&lt;br /&gt;  try {&lt;br /&gt;      handle_activity($activity);&lt;br /&gt;  }&lt;br /&gt;  catch (MaharaException $e) {&lt;br /&gt;      log_debug($e-&gt;getMessage());&lt;br /&gt;  }&lt;br /&gt;  &lt;b&gt;db_commit();&lt;/b&gt;&lt;br /&gt;}&lt;br /&gt;delete_records('activity_queue');&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So individual activites are allowed to fail and get rolled back, but they will not affect other activites. But there was still one remaining problem: what if we encounter an error we cannot catch? For example, what would happen if PHP were to segfault or run out of memory while the activity queue is being processed?&lt;br /&gt;&lt;br /&gt;Well, in that case, it turns out that Mahara will never reach the &lt;tt&gt;delete_records()&lt;/tt&gt; call and the activity queue will never be cleared. Which means that on the next cron run, all of the activities will be handled again, even the ones that were successfully handled already (i.e. emails will be sent over and over again).&lt;br /&gt;&lt;br /&gt;The way we &lt;a href=&quot;http://gitorious.org/mahara/mahara/commit/d736fd6c0c99cb998af56979b12ceab60ed101ee&quot;&gt;fixed this problem&lt;/a&gt; was by moving the &lt;tt&gt;delete_records()&lt;/tt&gt; from the end of the function to the beginning of the loop:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$activities = get_records('activity_queue');&lt;br /&gt;foreach ($activities as $activity) {&lt;br /&gt;  &lt;b&gt;delete_records('activity_queue', 'id', $activity-&gt;id);&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;  db_begin();&lt;br /&gt;  try {&lt;br /&gt;      handle_activity($activity);&lt;br /&gt;  }&lt;br /&gt;  catch (MaharaException $e) {&lt;br /&gt;      log_debug($e-&gt;getMessage());&lt;br /&gt;  }&lt;br /&gt;  db_commit();&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Each activity is removed from the queue &lt;b&gt;before&lt;/b&gt; it is processed.&lt;br /&gt;&lt;br /&gt;Unfortunately, there is a downside to this modification: should an activity handler fail for whatever reason, no further attempts will be made. This means that some notifications could be lost if an unexpected error occurs.&lt;br /&gt;&lt;br /&gt;However, given that some of the activity handlers send emails out into the world and that it is not possible to &quot;un-send&quot; them, this is the only way we can guarantee that no duplicate emails will be sent. Of course, if you notice that certain notifications are lost because of a bug in Mahara, &lt;a href=&quot;https://bugs.launchpad.net/mahara/+filebug&quot;&gt;let us know&lt;/a&gt; and we'll fix it!&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-4963006486593641199?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2010-06-14T18:21:40+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/removing-the-referer-part-of-php-error-messagse-from-apache-logs">
	<title>Nigel McNie: Removing the 'referer' part of PHP Error Messages from Apache Logs</title>
	<link>http://nigel.mcnie.name/blog/removing-the-referer-part-of-php-error-messagse-from-apache-logs</link>
	<content:encoded>&lt;p&gt;This has always bugged me (scroll right to see the whole thing):&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84] [WAR] 7d (lib/web.php:916) Undefined variable: message, referer: http://mahara-test/admin/extensions/test.php?
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84] Call stack (most recent first):, referer: http://mahara-test/admin/extensions/test.php?
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]   * log_message(&amp;quot;Undefined variable: message&amp;quot;, 8, true, true, &amp;quot;/home/nigel/src/mahara-test/htdocs/lib/web.php&amp;quot;, 916) at /home/nigel/src/mahara-test/htdocs/lib/errors.php:446, referer: http://mahara-test/admin/extensions/test.php?
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]   * error(8, &amp;quot;Undefined variable: message&amp;quot;, &amp;quot;/home/nigel/src/mahara-test/htdocs/lib/web.php&amp;quot;, 916, array(size 2)) at /home/nigel/src/mahara-test/htdocs/lib/web.php:916, referer: http://mahara-test/admin/extensions/test.php?
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]   * json_reply(false) at /home/nigel/src/mahara-test/htdocs/admin/extensions/test.json.php:22, referer: http://mahara-test/admin/extensions/test.php?
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84] , referer: http://mahara-test/admin/extensions/test.php?
&lt;/pre&gt;
&lt;p&gt;I like using log files to display messages instead of the screen, but somewhere
along the way somebody decided that the 'referer' (sic) was needed in the logs
too, and that makes them totally unreadable.&lt;/p&gt;
&lt;p&gt;Here's my fix, when tailing a log file:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
nigel&amp;#64;mahara-test:~$ sudo tail -f /var/log/apache2/mahara-test.error.log | perl -pe 's/, referer:.*//'
&lt;/pre&gt;
&lt;p&gt;And, instantly:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84] [WAR] 7d (lib/web.php:916) Undefined variable: message
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84] Call stack (most recent first):
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]   * log_message(&amp;quot;Undefined variable: message&amp;quot;, 8, true, true, &amp;quot;/home/nigel/src/mahara-test/htdocs/lib/web.php&amp;quot;, 916) at /home/nigel/src/mahara-test/htdocs/lib/errors.php:446
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]   * error(8, &amp;quot;Undefined variable: message&amp;quot;, &amp;quot;/home/nigel/src/mahara-test/htdocs/lib/web.php&amp;quot;, 916, array(size 2)) at /home/nigel/src/mahara-test/htdocs/lib/web.php:916
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]   * json_reply(false) at /home/nigel/src/mahara-test/htdocs/admin/extensions/test.json.php:22
[Tue Apr 20 01:06:47 2010] [error] [client 192.168.5.84]
&lt;/pre&gt;
&lt;p&gt;Much better! But we can do better again:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
nigel&amp;#64;mahara-test:~$ sudo tail -f /var/log/apache2/mahara-test.error.log | perl -pe 's/\[error\]\s+\[client.*?\]\s+//; s/, referer:.*//'
&lt;/pre&gt;
&lt;p&gt;And we end up with:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
[Tue Apr 20 01:06:47 2010] [WAR] 7d (lib/web.php:916) Undefined variable: message
[Tue Apr 20 01:06:47 2010] Call stack (most recent first):
[Tue Apr 20 01:06:47 2010]   * log_message(&amp;quot;Undefined variable: message&amp;quot;, 8, true, true, &amp;quot;/home/nigel/src/mahara-test/htdocs/lib/web.php&amp;quot;, 916) at /home/nigel/src/mahara-test/htdocs/lib/errors.php:446
[Tue Apr 20 01:06:47 2010]   * error(8, &amp;quot;Undefined variable: message&amp;quot;, &amp;quot;/home/nigel/src/mahara-test/htdocs/lib/web.php&amp;quot;, 916, array(size 2)) at /home/nigel/src/mahara-test/htdocs/lib/web.php:916
[Tue Apr 20 01:06:47 2010]   * json_reply(false) at /home/nigel/src/mahara-test/htdocs/admin/extensions/test.json.php:22
[Tue Apr 20 01:06:47 2010]
&lt;/pre&gt;
&lt;p&gt;Hooray! &lt;em&gt;Readable&lt;/em&gt; PHP log files.&lt;/p&gt;
&lt;p&gt;You don't want to have to remember to type all of that, so for best results,
put it in a script, &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;chmod&lt;/span&gt; &lt;span class=&quot;pre&quot;&gt;+x&lt;/span&gt;&lt;/tt&gt; and you have:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
nigel&amp;#64;mahara-test:~$ sudo tail -f /var/log/apache2/mahara-test.error.log | phptail
&lt;/pre&gt;
&lt;p&gt;You could even combine it with
&lt;a href=&quot;http://dollyfish.net.nz/projects/monkeytail&quot;&gt;Monkeytail&lt;/a&gt; to make viewing
the logs even easier ;).&lt;/p&gt;
&lt;p&gt;I've trawled through the PHP codebase looking for where it adds the referer in
a vain attempt to change it, or provide a patch to make it a configuration
option. Sadly, I never found it. If anyone finds out, please let me know!&lt;/p&gt;
&lt;p&gt;Thanks to &lt;a href=&quot;http://dollyfish.net.nz/&quot;&gt;Martyn&lt;/a&gt; for the original idea, and
assisting with the arcane perl stuff.&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/whats-up-in-mahara-land-recently">
	<title>Nigel McNie: What's up in Mahara land recently?</title>
	<link>http://nigel.mcnie.name/blog/whats-up-in-mahara-land-recently</link>
	<content:encoded>&lt;p&gt;Here's a snapshot from my point of view about what's going on across all aspects of Mahara.&lt;/p&gt;
&lt;div class=&quot;section&quot; id=&quot;hackfests&quot;&gt;
&lt;h1&gt;Hackfests&lt;/h1&gt;
&lt;p&gt;Yesterday, &lt;a class=&quot;reference external&quot; href=&quot;http://she.geek.nz&quot;&gt;Penny&lt;/a&gt;, &lt;a class=&quot;reference external&quot; href=&quot;http://seld.be&quot;&gt;Jordi&lt;/a&gt; (both from Mahara partner &lt;a class=&quot;reference external&quot; href=&quot;http://liip.ch&quot;&gt;Liip&lt;/a&gt;) and I had another weekend hackfest. Penny has been adding a framework for unit testing, and managed to get the first test working. Jordi was working on swapping &lt;a class=&quot;reference external&quot; href=&quot;http://smarty.net&quot;&gt;Smarty&lt;/a&gt; for &lt;a class=&quot;reference external&quot; href=&quot;http://dwoo.org&quot;&gt;Dwoo&lt;/a&gt;, while I continued hacking on &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/interaction/forum/topic.php?id=917&quot;&gt;View Themes&lt;/a&gt; support. Pics: &lt;a class=&quot;reference external&quot; href=&quot;http://temp.mjollnir.org/firstswissmaharahackfest.jpg&quot;&gt;Switzerland end&lt;/a&gt;, &lt;a class=&quot;reference external&quot; href=&quot;http://stuff.nigel.mcnie.name/nz-hackfest.jpg&quot;&gt;NZ end&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Penny has been working on unit testing, as it's something we developers have realised has been lacking in Mahara for some time now. What unit tests do is give us more confidence that when we make a change (whether it's a bug fix or new feature), that the rest of Mahara continues working exactly the way it used to - i.e., we didn't inadvertently add any more bugs. This has the result that we can continue development safe in the knowledge that we didn't break anything that worked before, which will result in better quality. It will also make it easier for enthusiastic hackers to make changes to Mahara and know they haven't broken anything important.&lt;/p&gt;
&lt;p&gt;Unit testing isn't the only way we've been trying to integrate testing - Gerald Quimpo from &lt;a class=&quot;reference external&quot; href=&quot;http://catalyst.net.nz&quot;&gt;Catalyst&lt;/a&gt; has been resurrecting the &lt;a class=&quot;reference external&quot; href=&quot;http://seleniumhq.org/&quot;&gt;Selenium&lt;/a&gt; tests that come with Mahara, and has done an excellent job in getting them working again, while also setting up a Continuous Integration server (&lt;a class=&quot;reference external&quot; href=&quot;https://hudson.dev.java.net&quot;&gt;Hudson&lt;/a&gt;) so the tests will be run regularly. Soon, we'll have that available publicly so everyone can see which tests are currently passing and failing.&lt;/p&gt;
&lt;p&gt;Backtracking a tiny bit - Jordi has been working on swapping Smarty for Dwoo, a change we would like to do for a couple of reasons. Firstly, Smarty is bigger and slower, perhaps largely due to the fact that it needs to support PHP4 (which Mahara doesn't support). Secondly, Smarty doesn't make it easy for us to output variables that are HTML escaped by default - which is currently the leading cause of security vulnerabilities in Mahara. We haven't had many security vulns actually, Mahara is reaping the benefits of a security-oriented development ethic. But of the few we've had, almost all of them have been because someone forgot to put &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;|escape&lt;/span&gt;&lt;/tt&gt; on the end of a smarty variable. So switching to Dwoo will cut down that entire avenue of attack.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;mahara-1-2&quot;&gt;
&lt;h1&gt;Mahara 1.2&lt;/h1&gt;
&lt;p&gt;We &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/interaction/forum/topic.php?id=963&quot;&gt;released the first beta of Mahara 1.2&lt;/a&gt; last week. That means we're looking for bug reports now, and encourage people to download it and try out the new features. Here's a short list of the coolest new features in 1.2:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;&lt;a class=&quot;reference external&quot; href=&quot;http://wiki.mahara.org/Developer_Area/Import//Export&quot;&gt;Import and Export&lt;/a&gt; - Mahara supports the LEAP2A standard for import/export, and in addition, allows you to export an HTML version of your portfolio (including a nice HTML represntation of an individual View).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&amp;quot;My Files&amp;quot; and file handling improvements&lt;/strong&gt; - now the My Files section makes it easier to quickly upload files, and degrades to work without javascript. You can now upload files directly into Views, and use a standard directory browser to choose files in Views. For developers, we created a pieform element for uploading/attaching files, which will make it easier than ever to do this in custom plugins.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Theming&lt;/strong&gt; - we're shipping with &lt;strong&gt;6&lt;/strong&gt; themes, to give people an idea of how they can customise their Mahara. We've done a lot of rework of how themes are created, so from 1.2 it'll be even easier to create a custom theme. We even documented the process (finally!).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Usability/Comprehension tweaks&lt;/strong&gt; - Now groups get a default forum, and blogs get a default blog. If there is only one forum or blog, users are taken straight to it. This should really help in preventing the problem where people create a blog as if it's a blog post, and should make the forums an even more useful tool.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Improved Moodle/Mahara integration&lt;/strong&gt; - with a custom patch to Moodle 1.9, you'll be able to submit a View to Moodle for assessment as an assignment answer. How useful is that? Now people can keep their data in their portfolio, and mash it together into a View for assessment over on Moodle, where all the useful grading functionality is :)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There's s still a bit of work to go before Mahara 1.2 will be ready though. I need to finish off LEAP2A import - currently resume import is only half finished, and view import is just begun. We'll also need a fancy UI for it, and of course there are some inevitible bugs that will need squashing.&lt;/p&gt;
&lt;p&gt;Also, I'd really like to get view themes to a point where it can be merged also. That'll really help people personalise their environment. If I get around to it, maybe we can add a theme chooser for users to change how they see the entire site, not just individual Views.&lt;/p&gt;
&lt;p&gt;Other than that though, I think we're looking pretty good!&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;code-contribution-policy&quot;&gt;
&lt;h1&gt;Code Contribution Policy&lt;/h1&gt;
&lt;p&gt;We are currently preparing a policy for contributors to the codebase. We aren't going to be wanting copyright assignment, but we are going to make sure all contributions are as legal as we can make them ;). Unlike many open source projects, Mahara is actually in a pretty good position legally, as most members of the team are well aware of the legal issues around open source and licensing, and we take legal issues seriously. Our policy won't be onerous, but will ensure we stay legit now and into the future.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;mahara-1-3&quot;&gt;
&lt;h1&gt;Mahara 1.3&lt;/h1&gt;
&lt;p&gt;Though 1.2 is not out yet, talk is already shifting in some departments to the plans we have for Mahara 1.3. The big focus there will be usability, and we're going to target that in a couple of main areas - the navigation, and View creation.&lt;/p&gt;
&lt;p&gt;For the navigation, our current plan is to adopt a dropdown menu structure, organised more to how users think when they're looking for something. The main categories will be roughly along the lines of &amp;quot;My Stuff&amp;quot;, &amp;quot;Friends &amp;amp; Groups&amp;quot; and &amp;quot;Sharing&amp;quot;. We'll build a demo of this at some point after 1.2 so the community can see it in action and give feedback, though I've seen it in action elsewhere and it's easy to grasp. Furthermore, the addition of &amp;quot;horizontal navigation&amp;quot; - where when you're at one page you're given suggestions about what else you might be looking for - should help tremendously as well.&lt;/p&gt;
&lt;p&gt;We're also going to have a good look at the View creation process. The Drag and Drop and layout concepts won't be changing, but the layout of the editing screens themselves will be improved a lot. We're hoping we can even ditch a step to make things simpler. I think the biggest gains will be seen on the View Access screen, which currently can be a bit of a minefield to navigate. We'll get mockups out some time after 1.2 also.&lt;/p&gt;
&lt;p&gt;Other stuff we might do could include Group Views, a User Dashboard (as a View of course!), and &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/interaction/forum/topic.php?id=956&quot;&gt;overhauling the notification system&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;mahara-growth&quot;&gt;
&lt;h1&gt;Mahara Growth&lt;/h1&gt;
&lt;p&gt;And last but not least, here are some interesting statistics about Mahara and its community:&lt;/p&gt;
&lt;p&gt;We now have over 3000 members of the &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/group/view.php?id=1&quot;&gt;mahara.org community&lt;/a&gt;, with &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/partners&quot;&gt;17 partners worldwide&lt;/a&gt;. The community growth has been steady since we launched the new mahara.org last November. The site receives nearly 25,000 visits a month (for the geeks among you: 57% firefox and 27% IE). Of these visitors, we get the most from the US, followed by the UK, Germany, Spain, Australia and then New Zealand.&lt;/p&gt;
&lt;p&gt;Since we added the ability for sites to register on mahara.org in May, we now have over 50 sites doing this every week. These sites together add to some 12,000 users, but this doesn't include mahara.org, or the New Zealand &lt;a class=&quot;reference external&quot; href=&quot;http://myportfolio.ac.nz&quot;&gt;MyPortfolio&lt;/a&gt; &lt;a class=&quot;reference external&quot; href=&quot;http://myportfolio.school.nz&quot;&gt;service&lt;/a&gt; - if these numbers were included, the total would rise to nearly 25,000. Again for the geeks - we are seeing a 75/25 split of MySQL to PostgreSQL. Hopefully things will skew more to the PostgreSQL side of that equation as time goes on :). Of the registered sites, the largest seem to be run by Blackpool University, Uni Krems (Austria) and Birmingham City University, all of which have thousands of users.&lt;/p&gt;
&lt;/div&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/mahara-12-importexport-demo">
	<title>Nigel McNie: Mahara 1.2 Import/Export Demo</title>
	<link>http://nigel.mcnie.name/blog/mahara-12-importexport-demo</link>
	<content:encoded>&lt;p&gt;OK so my last post was just all text, which is a slog to read through. So here, I made a video about Mahara 1.2's import/export:&lt;/p&gt;
&lt;div class=&quot;center&quot;&gt;&lt;/div&gt;&lt;p&gt;I don't think I got the sound levels right and I'd have loved to have added a background track, but video editing on linux is a pain. It's only my second video so be nice. The next one should be better again ;)&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/themes-in-mahara-12">
	<title>Nigel McNie: Themes In Mahara 1.2</title>
	<link>http://nigel.mcnie.name/blog/themes-in-mahara-12</link>
	<content:encoded>&lt;p&gt;One of the things we're doing for the upcoming 1.2 release of Mahara is doing a big tidyup of the theming. There are some code level changes, but the most important changes are to do with the themes themselves.&lt;/p&gt;
&lt;p&gt;Note that I said &amp;quot;themes&amp;quot;. This is because 1.2 won't have just one theme - it'll have six. One is a brushed up version of the default, one is &amp;quot;special&amp;quot; (more on that in a minute), and the other four are all-new themes that will give Mahara users a chance to immediately personalise their installation &amp;quot;out of the box&amp;quot;. The new themes are mainly just colour changes, but they're pretty damn good looking colour changes all the same. They'll also give people good examples to work from when creating their own themes.&lt;/p&gt;
&lt;p&gt;Now, the special theme. Mahara will now have a theme called 'raw', which is a very stripped down theme. There's very few colours or styles, and most of the theme's job is to position everything correctly and set sensible defaults. &lt;em&gt;All other themes extend from this theme.&lt;/em&gt; Mahara has a theme inheritance system, where by you can specify another theme as the 'parent' of your theme, and thus rely on it to provide the templates and most of the CSS. From now, every theme will ultimately extend from the 'raw' theme - including the default theme.&lt;/p&gt;
&lt;p&gt;The inheritance can have any number of levels, so for example a theme someone did for Mahara 1.1 might have a parent of the default theme which might be parented by the raw theme. Sadly, because we haven't documented the theme inheritance well, some of the themes out there have copied the entire default/ directory to create their new theme. These people will probably have noticed that when new versions of Mahara come out, sometimes bugs they are supposed to fix are not fixed - this is because the fix was made in a 'default' theme template, which is overridden by their theme's copy. When they upgrade to 1.2, it's highly likely their theme will totally break.&lt;/p&gt;
&lt;p&gt;Elsewhere on the backward compatibility front, it should be easier though. If your theme uses theme inheritance, then it will continue to inherit from the (slightly changed) default theme. You may also have to change some CSS selectors in your stylesheet to match the new HTML structure.&lt;/p&gt;
&lt;p&gt;Speaking of which, we've cleaned up the HTML immensely, and the CSS along with it. I think the default stylesheet was over 50KB in previous versions of Mahara, at the moment I have the raw theme down to much less than half that, and I don't think it will end up much bigger than 25KB. The default theme's stylesheet will be negligible in size. We're also going to cut the print stylesheet down to size, and if we get the chance we'll add in RTL and browser-specific stylesheets too.&lt;/p&gt;
&lt;p&gt;The net result of all of this is a bit of short-term pain while people migrate their themes, but a lot of long-term gain, as the HTML will be cleaner, the CSS smaller and every Mahara faster because of it. Theme development will be much easier from 1.2 onwards, I'll make sure we write documentation so people don't get caught out by the theme inheritance issue again.&lt;/p&gt;
&lt;p&gt;Maybe at some point after 1.2 we can look at some fine-tuning and performance of the theming system. I'd love to crank out some CSS sprites and javascript minification, but right now I don't think there's going to be much time other than for 'easy wins', such as expires headers and configuring mod_deflate (which Mahara does already).&lt;/p&gt;
&lt;p&gt;Anyway, that's enough from me for now. We have this theming work and finishing off import/export to do, followed by a &lt;strong&gt;lot&lt;/strong&gt; of bug fixing before 1.2 can be released. Look out for another alpha soon, at least.&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/mahara-11-almost-there">
	<title>Nigel McNie: Mahara 1.1 - almost there!</title>
	<link>http://nigel.mcnie.name/blog/mahara-11-almost-there</link>
	<content:encoded>&lt;p&gt;There's three bugs and two feature requests left until 1.1 is ready to roll! Finally it looks like we've got on top of the long list of issue and will be able to get a release out later this month.&lt;/p&gt;
&lt;p&gt;Here's a quite explanation of how things will progress over the next while:&lt;/p&gt;
&lt;p&gt;Once the bugs and feature requests are fixed, we will release the first, and possibly only, release candidate of 1.1. This will be a release that we consider &amp;quot;good enough&amp;quot; for 1.1 - no major crashing bugs, upgrade from 1.0 works, new functionality works.&lt;/p&gt;
&lt;p&gt;We'll let that circulate for a few days, to give people a change to have one last go at testing upgrades and looking for major bugs. If there's nothing reported that's too major, we'll do the 1.1 release, otherwise, there will be a second (and potentially third) release candidate.&lt;/p&gt;
&lt;p&gt;The 1.1 release will no doubt need some tweaking and minor fixes, which I'm sure will be reported back to us quickly. So there will probably be a series of point releases after 1.1 to iron out the kinks. We'll fully support you if you upgraded from any version of 1.0 to 1.1 though, and hopefully the testing we've done means the upgrade path doesn't break, even if some minor things don't work in 1.1.&lt;/p&gt;
&lt;p&gt;Meanwhile, we'll be working hard on the import/export functionality for 1.2. This is the &lt;em&gt;only&lt;/em&gt; feature planned for 1.2, and we hope to have it released quite quickly, by mid this year even.&lt;/p&gt;
&lt;p&gt;So, look out for Mahara 1.1 RC1 real soon now!&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/things-you-dont-want-to-see-in-the-morning">
	<title>Nigel McNie: Things You Don't Want to See in the Morning</title>
	<link>http://nigel.mcnie.name/blog/things-you-dont-want-to-see-in-the-morning</link>
	<content:encoded>&lt;pre class=&quot;literal-block&quot;&gt;
maharademo=# select count(*) from activity_queue;
 count
-------
 10043
(1 row)
&lt;/pre&gt;
&lt;p&gt;Aah crap.&lt;/p&gt;
&lt;p&gt;So it turns out there's a bug in Mahara's activity queue processing which means that if you make a view, leave objectionable feedback on it then delete the view before the queue is processed, the queue will bomb out every time it gets to processing the feedback and not send any of the other messages. Doh!&lt;/p&gt;
&lt;p&gt;I have written a patch for this that'll go to 1.0_STABLE and master. It will probably involve unconditionally deleting any notifications older than two weeks, as the last thing people want is old notifications.&lt;/p&gt;
&lt;p&gt;This problem &lt;em&gt;may&lt;/em&gt; have affected other Mahara installs out there, but it's not guaranteed to have. For example, it hasn't affected the &lt;a class=&quot;reference external&quot; href=&quot;http://myportfolio.school.nz/&quot;&gt;MyPortfolio&lt;/a&gt; &lt;a class=&quot;reference external&quot; href=&quot;http://myportfolio.ac.nz&quot;&gt;sites&lt;/a&gt;, nor &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/&quot;&gt;mahara.org&lt;/a&gt; itself. You can find out by doing a &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;pre&quot;&gt;COUNT(*)&lt;/span&gt; &lt;span class=&quot;pre&quot;&gt;FROM&lt;/span&gt; &lt;span class=&quot;pre&quot;&gt;activity_queue;&lt;/span&gt;&lt;/tt&gt; on your database - large numbers are bad, 0 or small numbers are good.&lt;/p&gt;
&lt;p&gt;There will probably be a 1.0.7 soon to fix this.&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://nigel.mcnie.name/blog/maharaorg-finally-relaunched">
	<title>Nigel McNie: mahara.org finally relaunched!</title>
	<link>http://nigel.mcnie.name/blog/maharaorg-finally-relaunched</link>
	<content:encoded>&lt;p&gt;It's taken a while, but finally the &lt;a class=&quot;reference external&quot; href=&quot;http://mahara.org/&quot;&gt;new mahara.org&lt;/a&gt; has been launched. I think it's a great step up from the old site, and will hopefully serve as a useful place to showcase and document Mahara for a while yet.&lt;/p&gt;
&lt;p&gt;DNS is still propogating so it might be a while until everyone can see the new site. In the mean time, we're putting up some content and will tweak the site over the next couple of days.&lt;/p&gt;
&lt;p&gt;Our focus will now turn back to the Mahara 1.1 release. There's still some bugs to iron out, but hopefully we can get the release out soon...&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-14T03:30:04+00:00</dc:date>
</item>
<item rdf:about="http://she.geek.nz/archives/556-guid.html">
	<title>Penny Leach: On loving (and hating) software, and how crippling it is to run in high heels</title>
	<link>http://she.geek.nz/archives/556-On-loving-and-hating-software,-and-how-crippling-it-is-to-run-in-high-heels.html</link>
	<content:encoded>I have a well established (and well deserved) reputation for hating MySQL and being a Postgres fan.  While this is &lt;i&gt;functionally&lt;/i&gt; true, I want to examine what is actually behind it.&lt;br /&gt;
&lt;br /&gt;
I tried to find an analogy recently to explain this to my friend &lt;a href=&quot;http://starnut.com&quot;&gt;Michel&lt;/a&gt;, and the best I could come up with was (and actually I think it fits perfectly) the following:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
Imagine that you are an athlete.  A runner.  And you have the most amazing comfortable ergonomic shoes.  These shoes fit you perfectly, they are tailored to exactly your body, the way you run.  They help you run faster, they enable you to excel at the sport that you have chosen.  Then imagine that for whatever reason, you join a running club, and this running club has a policy of running in high heels.&lt;br /&gt;
&lt;br /&gt;
&quot;But why would you do that?!&quot;, you exclaim in dismay.  &quot;When you could use these other shoes, which are much more comfortable and actually &lt;b&gt;help&lt;/b&gt; you run faster&quot;. &lt;br /&gt;
&quot;Ah well&quot;, they reply. &quot;We've always run in high heels and it works fine for us&quot;.&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
That is how I feel whenever I have to touch MySQL.&lt;br /&gt;
&lt;br /&gt;
I remember having seen one of Kathy Sierra's talks about creating passionate users  - not sure where, maybe Webstock 2007.  'Passionate users' is something that may seem absurd to many computer users who struggle with daily computer use (I have &lt;a href=&quot;http://she.geek.nz/archives/504-the-way-people-use-their-computers-baffles-me.html&quot;&gt;written about this before&lt;/a&gt;), but the reality is that &lt;b&gt;I am&lt;/b&gt; a passionate user.  There are certain pieces of software that I use every day, and feel passionate about! While writing this blog post, I realised that what I'm really talking about here is tools - things that I use in my daily work as a software developer.&lt;br /&gt;
&lt;br /&gt;
I honestly love working with Postgres.  I love working with Git.  There are actually times where I need to do something, or solve a problem, and I feel like this software &lt;b&gt;helps&lt;/b&gt; me do it.  After I solve the problem I am grateful to be able to work with such tools.  This is where the random &quot;I love postgres!&quot; or &quot;I love git&quot; tweets come from.&lt;br /&gt;
&lt;br /&gt;
This is a really important point - it's not that I hate MySQL (although I do), or CVS or SVN (also true) - it's that I actually &lt;b&gt;love&lt;/b&gt; Postgres and Git, and when I need, for whatever reason, to work with Mysql or CVS or SVN, I really miss the features that make me love their competitors.&lt;br /&gt;
&lt;br /&gt;
Of course, this fails to take into account that different pieces of software have different purposes and features, and this is &lt;b&gt;a good thing&lt;/b&gt;, because diversity encourages competition which makes software improve.  Interestingly, I don't know if I feel this way about all software - I love Vim, but I don't hate Emacs - I just don't use it.  When I have to use Emacs (it happens), I am sometimes frustrated that it's different - but I blame myself for that (not knowing it well enough), rather than blaming the software for being substandard.  I'm not sure if Vim is any better or worse than Emacs - Vim just suits me better. In the case of Mysql and Postgres, I actually think that Mysql is substandard, and similarly for Git and CVS or SVN.&lt;br /&gt;
&lt;br /&gt;
There seems to be a scale for my reaction to using different software:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Love: I feel that the software is predictable, elegant and helps me achieve what I want and get my work done.  I sometimes feel love for it when it's particularly helpful.&lt;/li&gt;&lt;li&gt;Ambivalence: I use the software, but don't feel particularly strongly about it.&lt;/li&gt;&lt;li&gt;Hatred: Using it actively hinders me working, because it is lacking features I need, or is unpredictable and unreliable. I feel despair when I have to use it.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
Obviously, the two extremes are both forms of passion, although I'm sure that the first is what Kathy Sierra was talking about.  But I wonder if the software that falls into the third category only exists when there is a competing piece of software that falls into the first category.  If I had never used Postgres, would I hate MySQL so much?  Probably not, although I might hate it a little bit.  I'm sure people that have always run in high heels and never experienced how much easier it is to run in sneakers don't hate their high heels, because they don't know any different.&lt;br /&gt;
&lt;br /&gt;
So the conclusion I must draw, is that I don't actually hate MySQL or CVS or SVN - I hate being forced to use tools that I consider to be substandard than their equivalents, which I actually &lt;b&gt;love&lt;/b&gt;.  To me this is such a black and white issue I am completely baffled when other people don't see it.  Considering the way that most people interact with their computers, if software exists that actually makes people feel love - why on earth would they use anything else?&lt;br /&gt;</content:encoded>
	<dc:date>2010-05-11T15:07:56+00:00</dc:date>
	<dc:creator>Penny</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-8489512189025315844">
	<title>François Marier: &quot;Abusing&quot; git storage</title>
	<link>http://feeding.cloud.geek.nz/2010/03/abusing-git-storage.html</link>
	<content:encoded>A &lt;a href=&quot;http://git-scm.com/&quot;&gt;git&lt;/a&gt; repository is primarily intended to store multiple branches of a single program or component. The underlying system however is much more flexible. Here are two ways to add files which are related to the project but outside the normal history.&lt;br /&gt;&lt;h2&gt;Storing a single file all by itself&lt;/h2&gt;This &lt;a href=&quot;http://andyjeffries.co.uk/articles/25-tips-for-intermediate-git-users&quot;&gt;intermediate trick&lt;/a&gt; allows you to store a single file into a git repository without the file being in any of the branches.&lt;br /&gt;&lt;br /&gt;First of all, let's create a new file:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;echo &quot;&lt;b&gt;Hi&lt;/b&gt;&quot; &amp;gt; &lt;i&gt;message.txt&lt;/i&gt;&lt;/code&gt;&lt;/blockquote&gt;and store it in git:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git hash-object -w &lt;i&gt;message.txt&lt;/i&gt;&lt;br /&gt;&lt;b&gt;b14df6442ea5a1b382985a6549b85d435376c351&lt;/b&gt;&lt;/code&gt;&lt;/blockquote&gt;At this stage, the file is stored within the git repository but there is no other way to get to it other than using the hash:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git cat-file blob &lt;b&gt;b14df6442ea5a1b382985a6549b85d435376c351&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Hi&lt;/b&gt;&lt;/code&gt;&lt;/blockquote&gt;A good way to point to the stored contents is to use a tag:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git tag &lt;i&gt;message.txt&lt;/i&gt; &lt;b&gt;b14df6442ea5a1b382985a6549b85d435376c351&lt;/b&gt;&lt;/code&gt;&lt;/blockquote&gt;Now you can access your file this way:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git cat-file blob &lt;i&gt;message.txt&lt;/i&gt;&lt;br /&gt;&lt;b&gt;Hi&lt;/b&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;h2&gt;Creating an empty branch&lt;/h2&gt;As seen in this &lt;a href=&quot;http://www.gitcasts.com/posts/empty-branches&quot;&gt;git screencast&lt;/a&gt; or in the &lt;a href=&quot;http://book.git-scm.com/5_creating_new_empty_branches.html&quot;&gt;Git Community Book&lt;/a&gt;, you can create a branch without a parent or any initial contents:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git symbolic-ref HEAD refs/heads/&lt;span&gt;foo&lt;/span&gt;&lt;br /&gt;rm .git/index&lt;br /&gt;git clean -fdx&lt;/code&gt;&lt;/blockquote&gt;To finish it off, add what you were planning on storing there and commit it:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git add &lt;i&gt;myfile&lt;/i&gt;&lt;br /&gt;git commit -m 'Initial commit'&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_kmDRplXH_Ys/S7KYy4YDjfI/AAAAAAAAAEE/ve5KngW5VWU/s1600/Capture.png&quot;&gt;&lt;img src=&quot;http://3.bp.blogspot.com/_kmDRplXH_Ys/S7KYy4YDjfI/AAAAAAAAAEE/ve5KngW5VWU/s400/Capture.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5454590098593254898&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-8489512189025315844?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2010-03-31T14:38:39+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="http://danmarsden.com/blog/?p=121">
	<title>Dan Marsden: New Mahara book</title>
	<link>http://danmarsden.com/blog/2010/02/18/new-mahara-book/</link>
	<content:encoded>&lt;p&gt;Packt Publishing just sent me a copy of the new Mahara book:&lt;br /&gt;
&lt;a title=&quot;Mahara 1.2 E-Portfolios&quot; href=&quot;http://www.packtpub.com/mahara-1-2-e-portfolios-beginners-guide/book/mid/170210c4076s?utm_source=danmarsden.com&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_002532&quot;&gt;Mahara 1.2 E-Portfolios: Beginner&amp;#8217;s Guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.packtpub.com/mahara-1-2-e-portfolios-beginners-guide/book/mid/170210c4076s?utm_source=danmarsden.com&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_002532&quot;&gt;&lt;img class=&quot;aligncenter&quot; title=&quot;Mahara 1.2 E-Portfolios: Beginners Guide&quot; src=&quot;https://www.packtpub.com/images/100x123/1847199062.png&quot; alt=&quot;&quot; width=&quot;100&quot; height=&quot;123&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s been a while since I&amp;#8217;ve sat down and read through a text-book, my eyes tend to glaze over and I find something else to read instead! I&amp;#8217;ve also never been very good at sitting down and &amp;#8220;studying&amp;#8221; &amp;#8211; This book surprised me, I was expecting a book detailing the different features in a dry step by step manner, but what I found was quite different. The first paragraph of the content in the book made me feel a little uncomfortable:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;So, you&amp;#8217;re interested in Mahara? Maybe you are already using it, but you are wondering if you are using it well. Maybe you&amp;#8217;ve recently heard of Mahara and you are wondering if this is actually the ePortfolio solution you were looking for? Or, maybe you have been told you have to use it and you just need to get a sense of what Mahara is all about?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The book seemed to be talking to me &amp;#8211; that&amp;#8217;s not supposed to happen is it? After reading further I began to almost see the writers at the front of a computer lab speaking to me sitting at a PC &amp;#8211; this easy to read tone engaged me in the book and the blend of content, hands on activities, and reviews made it an interactive experience &amp;#8211; not what I&amp;#8217;ve come to expect from the reference manuals I normally have on hand! The book has some great use cases and full detail without overwhelming the reader. It&amp;#8217;s split up into logical bite-sized chapters that could be tackled one at a time when the reader has a quiet moment. Packt release this book as an eBook which I found useful &amp;#8211; it meant that you could switch over to a web browser and run through the activities on the demo site provided specifically for readers of the book. I have a multi-monitor display which made this easy &amp;#8211; some readers will definitely prefer the hard copy. Unfortunately the urls in the eBook weren&amp;#8217;t live urls so I had to copy/paste them, but that didn&amp;#8217;t take too much effort.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;d recommend this book to anyone new to ePortfolios or new to Mahara &amp;#8211; it gives the reader a really good detailed knowledge of not only the features of Mahara, but how they can be used in a variety of ways for very different groups of people. The book is great for real users &amp;#8211; teachers/students/educators &amp;#8211; it gives a much &amp;#8220;easier to digest&amp;#8221;, concise guide than the mahara.org online documentation. It&amp;#8217;s not aimed at Administrators or Developers but if you haven&amp;#8217;t implemented Mahara yet it gives some good information for new administrators or those considering Mahara&amp;#8217;s suitability towards the end of the book. I&amp;#8217;d highly recommend that any organisation running Mahara grabs a hard copy of the book to lend someone when they walk into your office and ask &amp;#8220;so what&amp;#8217;s this Mahara thing?&amp;#8221;&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s available on &lt;a href=&quot;http://www.amazon.com/gp/product/1847199062?ie=UTF8&amp;tag=danmarsdencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1847199062&quot;&gt;Amazon&lt;/a&gt;, but cheaper from &lt;a title=&quot;Mahara 1.2 E-Portfolios&quot; href=&quot;http://www.packtpub.com/mahara-1-2-e-portfolios-beginners-guide/book/mid/170210c4076s?utm_source=danmarsden.com&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_002532&quot;&gt;Packt Publishing&lt;/a&gt; who sell the eBook as well.&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-18T10:58:49+00:00</dc:date>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-4834839572126540007">
	<title>François Marier: Excluding files from git archive exports using gitattributes</title>
	<link>http://feeding.cloud.geek.nz/2010/02/excluding-files-from-git-archive.html</link>
	<content:encoded>&lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-archive.html&quot;&gt;git archive&lt;/a&gt; provides an easy way of producing a tarball directly from a project's git branch.&lt;br /&gt;&lt;br /&gt;For example, this is what we use to build the &lt;a href=&quot;http://www.mahara.org&quot;&gt;Mahara&lt;/a&gt; tarballs:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;git archive --format=tar --prefix=mahara-${VERSION}/ ${RELEASETAG} | bzip2 -9 &gt; ${CURRENTDIR}/mahara-${RELEASE}.tar.bz2&lt;/code&gt;&lt;/blockquote&gt;If you do this however, you end up with the entire contents of the git branch, including potentially undesirable files like &lt;tt&gt;.gitignore&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;There is an easy, though not very well-documented, way of specifying files to exclude from such exports: &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html&quot;&gt;gitattributes&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This is what the Mahara &lt;tt&gt;.gitattributes&lt;/tt&gt; file looks like:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;/test &lt;b&gt;export-ignore&lt;/b&gt;&lt;br /&gt;.gitattributes &lt;b&gt;export-ignore&lt;/b&gt;&lt;br /&gt;.gitignore &lt;b&gt;export-ignore&lt;/b&gt;&lt;/code&gt;&lt;/blockquote&gt;With this file in the root directory of our repository, tarballs we generate using &lt;tt&gt;git archive&lt;/tt&gt; no longer contain the &lt;a href=&quot;http://www.seleniumhq.org&quot;&gt;selenium&lt;/a&gt; tests or the git config files.&lt;br /&gt;&lt;br /&gt;If you start playing with this feature however, make sure you &lt;b&gt;commit the &lt;tt&gt;.gitattributes&lt;/tt&gt; file to your repository before running &lt;tt&gt;git archive&lt;/tt&gt;&lt;/b&gt;. Otherwise the settings will not be picked up by &lt;tt&gt;git archive&lt;/tt&gt;.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-4834839572126540007?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2010-02-09T16:57:32+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-8799540138753212173">
	<title>François Marier: Ignoring files in git repositories</title>
	<link>http://feeding.cloud.geek.nz/2009/12/ignoring-files-in-git-repositories.html</link>
	<content:encoded>According to the &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/gitignore.html&quot;&gt;man page&lt;/a&gt;, there are three ways to exclude files from being tracked by &lt;a href=&quot;http://www.git-scm.org&quot;&gt;git&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Shared list of files to ignore &lt;/h2&gt;The most well-known way of preventing files from being part of a git branch is to add such files in &lt;tt&gt;.gitignore&lt;/tt&gt;. (This is analogous to CVS' &lt;tt&gt;.cvsignore&lt;/tt&gt; files.)&lt;br /&gt;&lt;br /&gt;Here's an example:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;*.generated.html&lt;br /&gt;/config.php&lt;/pre&gt;&lt;/blockquote&gt;The above ignore list will prevent automatically generated HTML files from being committed by mistake to the repository. Because this is useful to all developers on the project, &lt;tt&gt;.gitignore&lt;/tt&gt; is a good place for this.&lt;br /&gt;&lt;br /&gt;The next line prevents the local configuration file from being tracked by git, something else that all developers will want to have.&lt;br /&gt;&lt;br /&gt;One thing to note here is the use of a leading slash character with &lt;tt&gt;config.php&lt;/tt&gt;. This is to specifically match the config file in the same directory as the &lt;tt&gt;.gitignore&lt;/tt&gt; file (in this case, the root directory of the repository) but no other. Without this slash, the following files would also be ignored by git:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;/app/config.php&lt;br /&gt;/plugins/address/config.php&lt;br /&gt;/module/config.php&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2&gt;Local list (specific to one project)&lt;/h2&gt;For those custom files that you don't want version controlled but that others probably don't have or don't want to automatically ignore, git provides a second facility: &lt;tt&gt;.git/info/exclude&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;It works the same way as &lt;tt&gt;.gitignore&lt;/tt&gt; but be aware that this list is only stored locally and only applies to the repository in which it lives.&lt;br /&gt;&lt;br /&gt;(I can't think of a good example for when you'd want to use this one because I don't really use it. Feel free to leave a comment if you do use it though, I'm curious to know what others do with it.)&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Local list (common to all projects)&lt;/h2&gt;Should you wish to automatically ignore file patterns in all of your projects, you will need to use the third gitignore method: core.excludesfile&lt;br /&gt;&lt;br /&gt;Put this line in your &lt;tt&gt;~/.gitconfig&lt;/tt&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;[core]&lt;br /&gt;excludesfile = /home/&lt;i&gt;username&lt;/i&gt;/.gitexcludes&lt;/pre&gt;&lt;/blockquote&gt;(you need to put the absolute path to your home directory, &lt;tt&gt;~/&lt;/tt&gt; will not work here unless you use git 1.6.6 or later)&lt;br /&gt;&lt;br /&gt;and then put the patterns to ignore in &lt;tt&gt;~/.gitexcludes&lt;/tt&gt;. For example, this will ignore the automatic &lt;a href=&quot;http://www.gnu.org/software/emacs/manual/html_node/emacs/Backup.html&quot;&gt;backups made by emacs&lt;/a&gt; when you save a file:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;*~&lt;/pre&gt;&lt;/blockquote&gt;This is the ideal place to put anything that is generated by your development tools and that doesn't need to appear in your project repositories.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-8799540138753212173?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2009-12-28T09:56:48+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="http://she.geek.nz/archives/547-guid.html">
	<title>Penny Leach: mahara stand at swiss open expo</title>
	<link>http://she.geek.nz/archives/547-mahara-stand-at-swiss-open-expo.html</link>
	<content:encoded>This Wednesday and Thursday I'm going to be at the &lt;a href=&quot;http://openexpo.ch&quot;&gt;Swiss Open Expo&lt;/a&gt;, &quot;manning&quot; the Mahara stand.    Liip are always in heavy presence at the Open Expo, but this time will be the first time we have a Mahara stand, so it's pretty exciting! &lt;br /&gt;
&lt;br /&gt;
If you're in or around Winterthur and interested in Open Source e-portfolios, come and say hi!</content:encoded>
	<dc:date>2009-09-21T08:50:28+00:00</dc:date>
	<dc:creator>Penny</dc:creator>
</item>
<item rdf:about="http://danmarsden.com/blog/?p=114">
	<title>Dan Marsden: Moodle Networking bugs</title>
	<link>http://danmarsden.com/blog/2009/09/11/moodle-networking-bugs/</link>
	<content:encoded>&lt;p&gt;I&amp;#8217;ve been battling with a couple of issues with Moodle Networking over the past week!&lt;/p&gt;
&lt;p&gt;The first was an issue where the configuration of Mnet between a Moodle and Mahara site on the same server worked fine, it obtained the various keys as necessary, but when an Mnet call was made like a Single Sign on call from a Moodle user accessing Mahara, it would fail &amp;#8211; with no useable error message anywhere to be found! &amp;#8211; I eventually traced it down to a call to xml_parse &amp;#8211; turns out that libxml in &lt;a href=&quot;http://bugs.php.net/bug.php?id=45996&quot;&gt;certain versions of PHP&lt;/a&gt; is quite buggy &amp;#8211; and this is actually a known issue with other areas of Moodle. &lt;a title=&quot;Spoiled ancoding in 1.9.3&quot; href=&quot;http://tracker.moodle.org/browse/MDL-17136&quot;&gt; MDL-17136&lt;/a&gt; &lt;a title=&quot;After Course Restoration HTML entities get broken&quot; href=&quot;http://tracker.moodle.org/browse/MDL-16759&quot;&gt;MDL-16759 &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;IMO we should really notify administrators that they are potentially running buggy code so I&amp;#8217;ve created &lt;a href=&quot;http://tracker.moodle.org/browse/MDL-20220&quot;&gt;MDL-20220&lt;/a&gt; to add such a notification!&lt;/p&gt;
&lt;p&gt;The other issue I&amp;#8217;ve been battling with is related to Moodle and Mahara not generating any keys at all &amp;#8211; this is centered around the installation not being able to locate an openssl.cnf file on the server, and it appears in my testing that adding an environment var on the server didn&amp;#8217;t reliably work! &amp;#8211; also I needed to get this to work on a XAMPP install or an &lt;a href=&quot;http://www.chsoftware.net/en/useware/mowes/mowes.htm&quot;&gt;MoWeS&lt;/a&gt; install, so setting an environment var wasn&amp;#8217;t really an option! I&amp;#8217;ve got an incoming  &lt;a href=&quot;http://tracker.moodle.org/browse/MDL-13503&quot;&gt;patch&lt;/a&gt; for 1.9Stable and Head that fixes this &amp;#8211; I also have a patch for Mahara which will go upstream very soon!&lt;/p&gt;</content:encoded>
	<dc:date>2009-09-11T09:58:06+00:00</dc:date>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-4650021723036570516">
	<title>François Marier: 3 ways to improve your source control history</title>
	<link>http://feeding.cloud.geek.nz/2009/07/3-ways-to-improve-your-source-control.html</link>
	<content:encoded>A few weeks ago, Linus Torvalds wrote a &lt;a href=&quot;http://torvalds-family.blogspot.com/2009/06/happiness-is-warm-scm.html&quot;&gt;blog post&lt;/a&gt; talking about how happy he was with the way that the last Linux merge window was going. Especially given how flexible distributed source control systems are and how long it takes before developers understand &lt;a href=&quot;http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html&quot;&gt;how to use them properly&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Most Free Software projects collaborate with external contributors through the use of &lt;a href=&quot;http://feeding.cloud.geek.nz/2009/06/writing-perfect-patch.html&quot;&gt;patches&lt;/a&gt; and with project members through &lt;b&gt;shared source control&lt;/b&gt; systems. Keeping a clean source control history in this case can:&lt;ul&gt;&lt;li&gt;ease maintenance of the codebase (especially when merging between multiple active branches) and&lt;/li&gt;&lt;li&gt;facilitate collaboration with other developers who need to quickly grasp what your changes are all about.&lt;/li&gt;&lt;/ul&gt;Here are three things I've put in practice in a few recent projects.&lt;br /&gt;&lt;h2&gt;Reduce the noise on the main branch&lt;/h2&gt;If you use your source control system in a traditional centralised way, make sure that the main branch has as little noise as possible:&lt;ul&gt;&lt;li&gt;use &lt;b&gt;feature branches&lt;/b&gt; when developing new functionality (i.e. use one branch per feature)&lt;/li&gt;&lt;li&gt;&lt;b&gt;rebase&lt;/b&gt; into a small number of commits instead of merging directly into the main branch (or use something like &lt;tt&gt;git cherry-pick -n&lt;/tt&gt; on your commits) &lt;/li&gt;&lt;/ul&gt;It will then be much easier to &lt;b&gt;port these changes across to a different version&lt;/b&gt; and to &lt;b&gt;revisit the changes several months later&lt;/b&gt;.&lt;br /&gt;&lt;h2&gt;Make each commit a logical unit&lt;/h2&gt;Ideally, the main branch should be &lt;b&gt;fully usable at any point in its history&lt;/b&gt;. For example, if a refactoring commit breaks an existing feature, it should also include any necessary fixes. &lt;i&gt;Progress&lt;/i&gt; and &lt;i&gt;fixup&lt;/i&gt; commits belong to private branches and should be cleaned up before the code is published on a public repository.&lt;br /&gt;&lt;br /&gt;A commit shouldn't be too small, but at the same time, it shouldn't be too large. Before pushing a large commit, ask yourself whether or not it could be broken down into &lt;b&gt;smaller or more meaningful units&lt;/b&gt;. Introducing a new feature through a number of smaller self-contained units often makes a branch's history much more readable.&lt;br /&gt;&lt;h2&gt;Write meaningful commit messages&lt;/h2&gt;A commit message will typically be seen along with its patch. Therefore the ideal commit message will include everything which is not immediatly obvious from the code changes:&lt;ul&gt;&lt;li&gt;A short &lt;b&gt;description of the new feature&lt;/b&gt; it introduces (or how to &lt;b&gt;reproduce the bug&lt;/b&gt; it fixes)&lt;/li&gt;&lt;li&gt;Links to &lt;b&gt;related commits&lt;/b&gt; (e.g. &quot;Fix bug introduced in COMMIT_ID&quot;)&lt;/li&gt;&lt;li&gt;&lt;b&gt;Bug numbers&lt;/b&gt; related to this commit&lt;/li&gt;&lt;li&gt;The &lt;b&gt;main area&lt;/b&gt; of the code (or &lt;i&gt;subsystem&lt;/i&gt;) that this commit touches (as part of the short description, so that it's easily &lt;i&gt;grep&lt;/i&gt;able)&lt;/li&gt;&lt;/ul&gt;Here's an example of a good commit message from version 2.6.29 of the Linux kernel:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;commit 4869fdea77052c480c54b9e66a927ba036eab29e&lt;br /&gt;Author: Mikulas Patocka &lt;br /&gt;Date:   Mon Jun 22 10:08:02 2009 +0100&lt;br /&gt;&lt;br /&gt;dm mpath: validate table argument count&lt;br /&gt;&lt;br /&gt;commit 0e0497c0c017664994819f4602dc07fd95896c52 upstream.&lt;br /&gt;&lt;br /&gt;The parser reads the argument count as a number but doesn't check that&lt;br /&gt;sufficient arguments are supplied. This command triggers the bug:&lt;br /&gt;&lt;br /&gt;dmsetup create mpath --table &quot;0 `blockdev --getsize /dev/mapper/cr0`&lt;br /&gt; multipath 0 0 2 1 round-robin 1000 0 1 1 /dev/mapper/cr0&lt;br /&gt; round-robin 0 1 1 /dev/mapper/cr1 1000&quot;&lt;br /&gt;kernel BUG at drivers/md/dm-mpath.c:530!&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;Good commits and useful source control histories are great ways of documenting your code. If there are other conventions or practices you've found useful in your use of source control systems, please leave a comment!&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-4650021723036570516?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2009-07-30T00:52:39+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-7731510958448121124">
	<title>François Marier: Writing the perfect patch</title>
	<link>http://feeding.cloud.geek.nz/2009/06/writing-perfect-patch.html</link>
	<content:encoded>Other people &lt;a href=&quot;http://userweb.kernel.org/%7Eakpm/stuff/tpp.txt&quot;&gt;have written&lt;/a&gt; and &lt;a href=&quot;http://cs.anu.edu.au/students/comp8440/lectures.php&quot;&gt;talked (in Lecture 3)&lt;/a&gt; about writing the perfect patch for a Free Software project. The goal there is to &lt;b&gt;increase the likelihood that a patch will be accepted&lt;/b&gt; by the project developers.&lt;br /&gt;&lt;br /&gt;Integrating and testing patches takes time and so reducing that burden is essential when interacting with busy maintainers. Especially if they're volunteers.&lt;br /&gt;&lt;br /&gt;Here's what I try to keep in mind when preparing a patch.&lt;br /&gt;&lt;h2&gt;Use the right options to &lt;tt&gt;diff&lt;/tt&gt;&lt;/h2&gt;These two options should always be part of your call to the &lt;tt&gt;diff&lt;/tt&gt; command:&lt;ul&gt;&lt;li&gt;&lt;b&gt;-u&lt;/b&gt;: use the most common patch format, unidiff.&lt;/li&gt; &lt;li&gt;&lt;b&gt;-p&lt;/b&gt;: include the name of the function that's being changed.&lt;/li&gt;&lt;/ul&gt;and this one can be useful if the output seems unnecessarily large:&lt;ul&gt;&lt;li&gt;&lt;b&gt;-d&lt;/b&gt;: try hard to find a smaller set of changes.&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Minimize the number of changes&lt;/h2&gt;You need to draw attention to the changes that you're proposing and remove all other potential distractions:&lt;ul&gt;&lt;li&gt;&lt;b&gt;Follow the coding style of the original file.&lt;/b&gt; Your changes must fully blend in or they are likely to be rejected.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Do not re-indent existing code.&lt;/b&gt; This will make it look like you modified every line.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Pay attention to whitespace changes.&lt;/b&gt; In particular: end-of-line characters, trailing spaces and tab-versus-space differences. Use the &lt;tt&gt;dos2unix&lt;/tt&gt; or &lt;tt&gt;unix2dos&lt;/tt&gt; commands if you need to.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Gratuitous refactoring of existing code.&lt;/b&gt; Unless the refactoring makes your change smaller or easier to understand, keep it for another patch.&lt;/li&gt;&lt;/ul&gt;Of course all of the above would be acceptable patches &lt;b&gt;on their own&lt;/b&gt;, just not combined with other types of changes.&lt;br /&gt;&lt;h2&gt;Only one logical change at a time&lt;/h2&gt;Patches often need to be broken up into a series of logical changes to avoid these two extremes:&lt;ul&gt;&lt;li&gt;the &lt;b&gt;gigantic patch&lt;/b&gt; which adds a number of features and fixes a couple of bugs but scares everybody&lt;/li&gt;&lt;li&gt;a &lt;b&gt;series of interdependent patches&lt;/b&gt; which all relate to the same change and must all be applied together&lt;/li&gt;&lt;/ul&gt;It's a bit of a balancing act, but a good rule of thumb is:&lt;ul&gt;&lt;li&gt;to have &lt;b&gt;one patch per feature or bug&lt;/b&gt; and&lt;/li&gt;&lt;li&gt;to try to find the smallest (yet meaningful) change which can be applied on its own.&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;It's not just about the patch&lt;/h2&gt;Your patch can be really good, but the email (or the bug tracker update) announcing it should also contain:&lt;ul&gt;&lt;li&gt;a good &lt;b&gt;description&lt;/b&gt; of the problem it solves and how it solves it&lt;/li&gt;&lt;li&gt;the output of &lt;b&gt;&lt;tt&gt;diffstat&lt;/tt&gt;&lt;/b&gt; to give an idea of the size of the change&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-7731510958448121124?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2009-07-01T01:10:54+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-4625458287479958517">
	<title>François Marier: Troubleshooting Postgres Performance Problems</title>
	<link>http://feeding.cloud.geek.nz/2009/05/troubleshooting-postgres-performance.html</link>
	<content:encoded>There are &lt;a href=&quot;http://momjian.us/main/writings/pgsql/hw_performance/index.html&quot;&gt;great&lt;/a&gt; &lt;a href=&quot;http://www.varlena.com/GeneralBits/Tidbits/perf.html&quot;&gt;resources&lt;/a&gt; to help tune &lt;a href=&quot;http://www.postgresql.org/&quot;&gt;PostgresQL&lt;/a&gt; for performance, but say you've got a Postgres database which suddenly becomes very slow. How can you figure out what's going on?&lt;br /&gt;&lt;h2&gt;General system state&lt;/h2&gt;A slow database server will typically be running out of:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;cpu,&lt;/li&gt;&lt;li&gt;memory or&lt;/li&gt;&lt;li&gt;disk.&lt;/li&gt;&lt;/ul&gt;So the first thing you should do is to get an overview of the system state using common UNIX tools such as:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;tt&gt;top&lt;/tt&gt; (press &lt;b&gt;c&lt;/b&gt; to see the full command line): look at CPU and memory usage&lt;/li&gt;&lt;li&gt;&lt;tt&gt;iostat -x -m 5&lt;/tt&gt;: look at i/o wait and service time&lt;/li&gt;&lt;/ul&gt;If you notice that memory is exhausted, you could play with the following &lt;tt&gt;postgresql.conf&lt;/tt&gt; settings:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;shared_buffers&lt;br /&gt;work_mem&lt;br /&gt;effective_cache_size&lt;/pre&gt;&lt;/blockquote&gt;If you see a lot of I/O, then try adjusting these settings:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;checkpoint_segments&lt;br /&gt;autovacuum_naptime&lt;br /&gt;wal_buffers&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;h2&gt;Finding slow queries&lt;br /&gt;&lt;/h2&gt;On the database side, start by determining whether:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;there is one large query holding up all of the resources or&lt;/li&gt;&lt;li&gt;the number of queries is the main problem.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;To do this, make sure that the following setting is turned on in your &lt;tt&gt;postgresql.conf&lt;/tt&gt;:&lt;pre&gt;&lt;blockquote&gt;stats_command_string = on&lt;/blockquote&gt;&lt;/pre&gt;Then fire up &lt;tt&gt;psql &lt;i&gt;dbname&lt;/i&gt;&lt;/tt&gt; and look at the &lt;span&gt;currently executing queries&lt;/span&gt;:&lt;pre&gt;&lt;blockquote&gt;SELECT usename, current_query, query_start&lt;br /&gt;FROM pg_stat_activity;&lt;/blockquote&gt;&lt;/pre&gt;(You can also add the &lt;tt&gt;procid&lt;/tt&gt; column to the query if you want to map a query to the process ID you see in &lt;tt&gt;top&lt;/tt&gt;.)&lt;br /&gt;&lt;br /&gt;If you can't get anything useful out of &lt;tt&gt;pg_stat_activity&lt;/tt&gt;, you may want to enable &lt;b&gt;slow query logging&lt;/b&gt; by adding this to your &lt;tt&gt;postgresql.conf&lt;/tt&gt;:&lt;pre&gt;&lt;blockquote&gt;log_min_duration_statement = 100&lt;/blockquote&gt;&lt;/pre&gt;(All queries which take more than 100 ms to execute will be printed to the main Postgres log file.)&lt;br /&gt;&lt;h2&gt;Examining a particular query&lt;/h2&gt;Once you have identified a slow query, you can time it by running this command before executing the query manually:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;\timing&lt;/pre&gt;&lt;/blockquote&gt;To get an idea of where Postgres spends its time when executing that query, look at the query plan:&lt;br /&gt;&lt;pre&gt;&lt;blockquote&gt;EXPLAIN &lt;span&gt;your_query&lt;/span&gt;;&lt;/blockquote&gt;&lt;/pre&gt;The numbers you see there are &lt;span&gt;estimates&lt;/span&gt;. To run the query and get actual numbers, use this instead:&lt;pre&gt;&lt;blockquote&gt;EXPLAIN &lt;span&gt;ANALYZE&lt;/span&gt; &lt;i&gt;your_query&lt;/i&gt;;&lt;/blockquote&gt;&lt;/pre&gt;If you still can't figure out why a certain query takes so long, have a look at the &lt;span&gt;ratio between live and dead rows&lt;/span&gt; in the relevant tables:&lt;pre&gt;&lt;blockquote&gt;ANALYZE VERBOSE &lt;i&gt;tablename&lt;/i&gt;;&lt;/blockquote&gt;&lt;/pre&gt;Having too  many dead rows  is often a  sign of insufficient  vacuuming. You might want to &lt;b&gt;turn autovacuum on&lt;/b&gt; if it isn't already, or to make it a bit more aggressive by tweaking these settings:&lt;pre&gt;&lt;blockquote&gt;autovacuum_vacuum_scale_factor&lt;br /&gt;autovacuum_analyze_scale_factor&lt;br /&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;br /&gt;Troubleshooting database performance is a bit of a black art, many thanks to Mark Kirkwood for sharing his Postgres wisdom with me.&lt;br /&gt;&lt;br /&gt;If there's anything else you have successfully used to find the cause of your performance woes, please feel free to leave a comment.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-4625458287479958517?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2009-05-30T18:09:29+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>
<item rdf:about="tag:blogger.com,1999:blog-7615241590176793465.post-2561925668604985632">
	<title>François Marier: Handling security bugs in your Free Software project</title>
	<link>http://feeding.cloud.geek.nz/2009/03/handling-security-bugs-in-your-free.html</link>
	<content:encoded>If you are managing a Free Software project, you may eventually be confronted with a security vulnerability. Normally bugs in the Open Source world are discussed in a transparent way on public forums. In the case of security bugs however, there are benefits to &lt;b&gt;temporarily&lt;/b&gt; withholding these details from the public.&lt;br /&gt;&lt;br /&gt;Some people describe this approach as &lt;a href=&quot;http://en.wikipedia.org/wiki/Responsible_disclosure&quot;&gt;responsible disclosure&lt;/a&gt;. It boils down to this:&lt;br /&gt;&lt;blockquote&gt;if the vulnerability is not publicly known, warn the vendors first and give them some time to fix it before making the details public.&lt;/blockquote&gt;If the vulnerability is already public knowledge, then you can focus on fixing it as soon as possible and maybe let reporters know about &lt;a href=&quot;http://oss-security.openwall.org/wiki/disclosure/researcher&quot;&gt;a better way to report their findings&lt;/a&gt;.&lt;br /&gt;&lt;h2&gt;Sample Security Policy&lt;/h2&gt;Here's the procedure we now follow in the &lt;a href=&quot;http://www.mahara.org/&quot;&gt;Mahara&lt;/a&gt; project for security bugs we found ourselves or which have been privately disclosed to us through &lt;a href=&quot;mailto:security@mahara.org&quot;&gt;security@mahara.org&lt;/a&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Figure out the extent of the problem: which versions of Mahara are affected by this problem?&lt;/li&gt;&lt;li&gt;Fix the problem on all supported branches of the project &lt;b&gt;in a private source control repository&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Share the vulnerability information with &lt;a href=&quot;http://oss-security.openwall.org/wiki/mailing-lists/vendor-sec&quot;&gt;vendor-sec&lt;/a&gt; and request a &lt;a href=&quot;http://cve.mitre.org/cve/identifiers/index.html&quot;&gt;CVE identifier&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Prepare release tarballs and packages.&lt;/li&gt;&lt;li&gt;Draft a security advisory for the &lt;a href=&quot;http://mahara.org/interaction/forum/view.php?id=43&quot;&gt;Security forum&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Wait until the embargo date to push the release out.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Emails to vendor-sec should include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;a description of the problem&lt;/li&gt;&lt;li&gt;any proof of concept code demonstrating the vulnerability&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the list of affected versions&lt;/li&gt;&lt;li&gt;any patches you have prepared&lt;/li&gt;&lt;li&gt;a proposed embargo date&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Benefits of properly handling security bugs&lt;br /&gt;&lt;/h2&gt;First and foremost, it &lt;b&gt;protects end-users&lt;/b&gt; by giving them a chance to download and install fixed versions of your software before widespread exploitation of the security flaws.&lt;br /&gt;&lt;br /&gt;Secondly, it may &lt;b&gt;increase your project credibility&lt;/b&gt;. While you are admitting that your software has flaws, you are also demonstrating that your project is committed to dealing with the most serious ones promptly and in a responsible manner.&lt;br /&gt;&lt;br /&gt;Finally, sharing security flaws and having your fixes reviewed by a select group of experts may &lt;b&gt;reveal extra vulnerabilities you missed&lt;/b&gt; while preparing your patches. This gives you an opportunity to improve your fixes before they are released and to avoid having to issue yet another security advisory a few days later.&lt;br /&gt;&lt;br /&gt;Big thanks to &lt;a href=&quot;http://steffen-joeris.skolelinux.de/&quot;&gt;Steffen Joeris&lt;/a&gt; for his help in shaping the Mahara policy!&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/7615241590176793465-2561925668604985632?l=feeding.cloud.geek.nz&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content:encoded>
	<dc:date>2009-03-10T22:47:05+00:00</dc:date>
	<dc:creator>François</dc:creator>
</item>

</rdf:RDF>
