<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Paul Kiddie's Blog</title>
	
	<link>http://www.paulkiddie.com</link>
	<description>Mainly coding...</description>
	<lastBuildDate>Wed, 30 Jun 2010 08:45:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PaulKiddiesBlog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="paulkiddiesblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">PaulKiddiesBlog</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Configuration methods in PHP to enable large uploads on a per-site basis</title>
		<link>http://www.paulkiddie.com/2010/06/configuration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis/</link>
		<comments>http://www.paulkiddie.com/2010/06/configuration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 10:22:05 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[registry]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=409</guid>
		<description><![CDATA[As dry as the subject of PHP configuration is, I thought a blog entry was necessary as I’ve just spent a fair bit of time digging around to find a way to configure PHP directives on a per-site basis. The mechanisms available vary based on the runtime environment and the method PHP runs.
My problem was [...]]]></description>
			<content:encoded><![CDATA[<p>As dry as the subject of PHP configuration is, I thought a blog entry was necessary as I’ve just spent a fair bit of time digging around to find a way to configure PHP directives on a per-site basis. The mechanisms available vary based on the runtime environment and the method PHP runs.</p>
<p>My problem was to set PHP directives on a per site basis in order to enable large file uploads on a single web application running on the web server. I also wanted to modify the temporary upload folder PHP uses for file uploads, and enable file upload progress monitoring through the APC extension (preferrably only on the file uploader web app). The directives corresponding to these are in a number of different <a href="http://www.php.net/manual/en/ini.list.php">“modes”</a>, so I was looking for a way that provided complete freedom over specifying the directives.</p>
<p>Depending on your PHP install and operating system there are several ways to customise your site’s PHP configuration. PHP itself can run in CGI mode, or as an Apache module. I’ll leave it to <a href="http://docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F#What_is_the_difference_between_CGI_and_apache_Module_Mode.3F ">http://docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F#What_is_the_difference_between_CGI_and_apache_Module_Mode.3F</a> as it does a great job at explaining security and performance differences between PHP running in CGI or Apache module mode.</p>
<h1>Determining your PHP runtime environment.</h1>
<p>To determine the best way for configuring PHP on a per-site basis you’ll need to determine your PHP runtime environment (i.e. your operating system and whether PHP runs as a CGI or an Apache module). So, create a script that outputs your PHP runtime environment information:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a href="http://www.php.net/phpinfo"><span class="kw3">phpinfo</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>You should then look at the “Server API” field, which will say something like “CGI/FastCGI” for PHP running as a CGI:</p>
<p><a href="http://www.paulkiddie.com/wp-content/uploads/2010/06/cgi.png"><img class="aligncenter size-full wp-image-417" title="cgi" src="http://www.paulkiddie.com/wp-content/uploads/2010/06/cgi.png" alt="" width="606" height="890" /></a></p>
<p>or “Apache Handler” for PHP running as an Apache module:</p>
<p><a href="http://www.paulkiddie.com/wp-content/uploads/2010/06/apache_handler.png"><img class="aligncenter size-full wp-image-418" title="apache_handler" src="http://www.paulkiddie.com/wp-content/uploads/2010/06/apache_handler.png" alt="" width="602" height="611" /></a></p>
<p>Now we&#8217;ve identified the mode of operation, I&#8217;ll explain some general methods for customising PHP directives on a per-site basis:</p>
<h1>General per-site configuration methods</h1>
<p>This should work on PHP running in any environment (Linux/Windows/Mac/etc) as either an Apache module or CGI.</p>
<h3>Use ini_set() (limited number of options available)</h3>
<p>You can customise a limited number of PHP directives on a per-script basis, by adding <code>ini_set()</code> to the top of your scripts. You can adjust <code>PHP_INI_USER</code> directives within scripts. See <a href="http://uk.php.net/ini_set">http://uk.php.net/ini_set</a> for more information on this.</p>
<h3>Allow user defined INI files (greater number of options available)</h3>
<p>Edit your <code>php.ini</code> to permit user defined .ini files, by looking for a field <code>user_ini.filename</code> (which might be currently commented out). Uncomment it and state the filename you want to use for the user defined .ini files (which by default is <code>.user.ini</code>).</p>
<p>Then, within your web application (e.g. <code>C:\phpwebs\helloworld</code>), create a new file called <code>.user.ini</code> and add in the directives to suit:</p>
<pre>upload_max_filesize = 1024M
post_max_size = 1500M</pre>
<p>You can adjust <code>PHP_INI_PERDIR</code> and <code>PHP_INI_USER</code> directives in user defined INI files, which may or may not be enough. In my case, it was not, as I wanted to also update <code>upload_tmp_dir</code>, a <code>PHP_INI_SYSTEM</code> directive.</p>
<h3>Define folder and directives in php.ini (most, if not all options available)</h3>
<p>In this approach, you edit <code>php.ini</code> wherever it is located (see output from <code>phpinfo()</code> above), and at the end add your site-specific configuration, by specifying the folder that the web application resides in. Lets say our web app is located in <code>C:\phpwebs\helloworld\</code>. To configure the PHP runtime on this web app, add</p>
<pre>[PATH=C:/phpwebs/helloworld/]
upload_max_filesize = 1024M
post_max_size = 1500M</pre>
<p>At the end of <code>php.ini</code>.</p>
<p>Note virtually any directive can be customised on a per-site basis using this method, and this was the approach I went for when hosting a PHP web app on IIS to in order to adjust <code>upload_tmp_dir</code> for the uploader app. What I didn’t seem to be able to do was to enable some extension based directives on a per site basis. The progress meter failed when <code>apc.rfc1867=on</code> was specified under the per-site declaration, so I made this part of the global php.ini.</p>
<h1>Per-site configuration options with PHP as a CGI in Windows IIS</h1>
<p>Any of the general per-site configuration options mentioned above should work. You can also edit the registry to manage a subset of PHP directives, illustrated at <a href="http://www.php.net/manual/en/configuration.changes.php">http://www.php.net/manual/en/configuration.changes.php</a>, in the section entitled ‘Changing PHP configuration via the Windows registry’. The process is as follows:</p>
<ul>
<li>Open up regedit</li>
<li>Navigate to HKLM\SOFTWARE\PHP\Per Directory Values</li>
<li>Create keys corresponding to the directory hierarchy of your web app and at the child node specify the customised directives via <code>New &gt; String Value</code>. Using our <code>C:\phpwebs\helloworld\</code> example see the screenshot below for how you modify PHP directives:</li>
</ul>
<p><a href="http://www.paulkiddie.com/wp-content/uploads/2010/06/registry.png"><img class="aligncenter size-full wp-image-419" title="registry" src="http://www.paulkiddie.com/wp-content/uploads/2010/06/registry.png" alt="" width="638" height="450" /></a></p>
<p>Note that you can customise only <code>PHP_INI_USER</code> directives in this manner.</p>
<h1>Per-site configuration options with PHP as an Apache module</h1>
<p>All-in-one *AMP stacks (such as XAMPP) mostly have PHP running as an Apache module. Any of the general per-site configuration options mentioned above should also work for PHP configured as an Apache module.</p>
<p>If your PHP install in running this way, you can also edit <code>httpd.conf</code> file to specify PHP directives for virtual hosts and additionally directories and subdirectories exposed by the virtual host.</p>
<p>To do this:</p>
<p>1.	Ensure <code>AllowOverride All</code> in <code>httpd.conf</code>. This should reside in the <code>conf</code> folder in the Apache folder.</p>
<p>2.	In XAMPP, virtual host declarations are containerised and are specified in &lt;<code>apache_dir&gt;/conf/extra/http-vhosts.conf</code>. In this file you would type the following:</p>
<pre>DocumentRoot "C:/phpwebs/helloworld"
ServerName www.helloworld.com
php_admin_value upload_tmp_dir "C:\tmp"
php_value post_max_size 1500M
php_value upload_max_filesize 1024M
php_admin_value apc.rfc1867 on</pre>
<p>With this method you have complete freedom over which PHP directives you want to set. Valid apache directive syntax can be found at <a href="http://www.php.net/manual/en/configuration.changes.php">http://www.php.net/manual/en/configuration.changes.php</a>.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fconfiguration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis%2F&amp;linkname=Configuration%20methods%20in%20PHP%20to%20enable%20large%20uploads%20on%20a%20per-site%20basis">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/19XGSFIzg59UC_vhReMwVzpQ3bc/0/da"><img src="http://feedads.g.doubleclick.net/~a/19XGSFIzg59UC_vhReMwVzpQ3bc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/19XGSFIzg59UC_vhReMwVzpQ3bc/1/da"><img src="http://feedads.g.doubleclick.net/~a/19XGSFIzg59UC_vhReMwVzpQ3bc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/JYIOgHEKwGM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/06/configuration-methods-in-php-to-enable-large-uploads-on-a-per-site-basis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What does Word 2010 offer for reference management?</title>
		<link>http://www.paulkiddie.com/2010/06/what-does-word-2010-offer-for-reference-management/</link>
		<comments>http://www.paulkiddie.com/2010/06/what-does-word-2010-offer-for-reference-management/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 13:26:00 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[bibword]]></category>
		<category><![CDATA[jabref]]></category>
		<category><![CDATA[word 2010]]></category>
		<category><![CDATA[reference manager]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=279</guid>
		<description><![CDATA[I&#8217;ve been having a bit of a play with Word 2010 since its release on MSDN to see if any improvements have been made in the area of reference management. Unfortunately it seems not a great deal has changed. So, instead, here&#8217;s a feature wish-list and how you can get by currently on some of the points [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having a bit of a play with Word 2010 since its release on MSDN to see if any improvements have been made in the area of reference management. Unfortunately it seems not a great deal has changed. So, instead, here&#8217;s a feature wish-list and how you can get by currently on some of the points by using Word (both Word 2007 and Word 2010) and some third party tools for all your referencing and citation needs:</p>
<ol>
<li>Support for citing as parenthesised and non-parenthesized references like in LaTeX. Unfortunately Word only supports the former, which is fine when citing references numerically, but it does not provide the flexibility which is important for Harvard author, date referencing. There is no automatic workaround that I am aware of to assist in this.</li>
<li>Search and import citations into the Source Manager via common Internet repositories such as ieeexplore, citeseer, Google Scholar etc, or provide a mechanism by which this functionality can be plugged in. I’m currently using <a href="http://jabref.sourceforge.net">JabRef</a> as my reference manager which provides a search of these libraries.</li>
<li>A larger selection of bibliographic styles provided out of the box. In the meantime, <a href="http://www.codeplex.com/bibword">BibWord</a>, available on Codeplex, has a number of alternative bibliographic styles, including variations of Harvard style referencing.</li>
<li>Make it easier to cite multiple authors within the text. Currently, <a href="http://bibword.codeplex.com/wikipage?title=Styles_FAQ&amp;referringTitle=Documentation#Q13">the process is a little clunky</a>.</li>
<li>Import other bibliographic formats natively. I use <a href="http://jabref.sourceforge.net/">JabRef</a> as a middleman to store citations as it is able to deal with citations in a number of formats (Endnote, .ris, .bib etc). I then export the JabRef library into a Word 2007 XML bibliography. See <a href="http://www.paulkiddie.com/2009/07/jabref-exports-to-word-2007-xml/">my article on how to export a bib using Jabref into XML format</a> in order to read it into Office 2007/2010.</li>
<li>Offer a search when inserting citations so if an author/author tag or some other information about the reference  is known, you can filter the list without having to scroll through a (potentially long) list of citations.</li>
<li>Sort the performance issues when rendering extremely large reference lists. To mitigate any performance issues you can export just the citations you need to Office XML format (see 5.) from within Jabref, rather than your entire library.</li>
</ol>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F06%2Fwhat-does-word-2010-offer-for-reference-management%2F&amp;linkname=What%20does%20Word%202010%20offer%20for%20reference%20management%3F">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/en2vAoJZ75c7IphUydzm1eyx9U8/0/da"><img src="http://feedads.g.doubleclick.net/~a/en2vAoJZ75c7IphUydzm1eyx9U8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/en2vAoJZ75c7IphUydzm1eyx9U8/1/da"><img src="http://feedads.g.doubleclick.net/~a/en2vAoJZ75c7IphUydzm1eyx9U8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/g7Oglzd9l4k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/06/what-does-word-2010-offer-for-reference-management/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enabling Alternative PHP Cache (APC) extension in Zend Server CE</title>
		<link>http://www.paulkiddie.com/2010/05/enabling-alternative-php-cache-apc-extension-in-zend-server-ce/</link>
		<comments>http://www.paulkiddie.com/2010/05/enabling-alternative-php-cache-apc-extension-in-zend-server-ce/#comments</comments>
		<pubDate>Thu, 20 May 2010 12:58:35 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[zend server ce]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=399</guid>
		<description><![CDATA[I spent a little bit of time yesterday trying to code up a file progress bar for a project requiring large uploads. It seems the best (and the only?) way to do this in PHP is to use an extension called the Alternative PHP Cache, which amongst other things enables file upload status support and [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a little bit of time yesterday trying to code up a file progress bar for a project requiring large uploads. It seems the best (and the only?) way to do this in PHP is to use an extension called the <a href="http://php.net/manual/en/book.apc.php">Alternative PHP Cache</a>, which amongst other things enables file upload status support and specfically enable a switch corresponding to RFC1867 support. I&#8217;m going to show you how I did this using the Zend Server CE PHP stack on a Windows Server 2003 x86 install.</p>
<p>I originally thought that APC was statically compiled into Zend as it pops up in the list of  extensions in the Zend dashboard:</p>
<p><a href="http://www.paulkiddie.com/wp-content/uploads/2010/05/zend-apc.png"><img class="aligncenter size-large wp-image-403" title="zend-apc" src="http://www.paulkiddie.com/wp-content/uploads/2010/05/zend-apc-1024x682.png" alt="" width="1024" height="682" /></a>But, on closer inspection of <code>phpinfo()</code>, there was no reference to any apc directives at all.</p>
<p>So here is how I did it:</p>
<h2>Enabling Alternative PHP Cache (APC) extension in Zend Server CE</h2>
<ol>
<li>Download non-thread safe VC9 APC DLL (I went for <code>php_apc-5.3-nts-svn20100226-vc9-x86.zip</code>) from <a href="http://downloads.php.net/pierre/">http://downloads.php.net/pierre/</a></li>
<li>Unzip it and put the extension dll <code>php_apc.dll</code> into <code>C:\Program Files\Zend\ZendServer\lib\phpext</code> (assuming you left the Zend Server install location as its default)</li>
<li>Add the following to your <code>php.ini</code> (in <code>C:\Program Files\Zend\ZendServer\etc</code>):
<pre>;Enable APC
extension=php_apc.dll
;Enable upload progress bar
apc.rfc1867=on</pre>
</li>
<li>Give Apache/PHP a restart</li>
</ol>
<p>Now check out <code>phpinfo()</code> on the Zend dashboard and you should see something like the following, with apc and the various directives being output in the configuration part of the output.</p>
<p><a href="http://www.paulkiddie.com/wp-content/uploads/2010/05/phpinfo-apc.png"><img class="aligncenter size-large wp-image-404" title="phpinfo-apc" src="http://www.paulkiddie.com/wp-content/uploads/2010/05/phpinfo-apc-1024x682.png" alt="" width="1024" height="682" /></a></p>
<p>Any of the APC file upload progress bar plugins (e.g. <a href="http://www.ibm.com/developerworks/library/os-php-v525/index.html">http://www.ibm.com/developerworks/library/os-php-v525/index.html</a>) should now work.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F05%2Fenabling-alternative-php-cache-apc-extension-in-zend-server-ce%2F&amp;linkname=Enabling%20Alternative%20PHP%20Cache%20%28APC%29%20extension%20in%20Zend%20Server%20CE">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/zS0CDhZiUyhhP4_b6jYtvZqrSQM/0/da"><img src="http://feedads.g.doubleclick.net/~a/zS0CDhZiUyhhP4_b6jYtvZqrSQM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zS0CDhZiUyhhP4_b6jYtvZqrSQM/1/da"><img src="http://feedads.g.doubleclick.net/~a/zS0CDhZiUyhhP4_b6jYtvZqrSQM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/lDWsWhwGYsw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/05/enabling-alternative-php-cache-apc-extension-in-zend-server-ce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting the best out of an Acer Revo in Windows 7</title>
		<link>http://www.paulkiddie.com/2010/03/getting-the-best-out-of-an-acer-revo-in-windows-7/</link>
		<comments>http://www.paulkiddie.com/2010/03/getting-the-best-out-of-an-acer-revo-in-windows-7/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 09:49:34 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[htpc]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[acer revo]]></category>
		<category><![CDATA[boxee]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=349</guid>
		<description><![CDATA[A couple of weeks ago I picked up an Acer Revo on the cheap as a replacement for my old behemoth of a HTPC. The Revo is a &#8220;nettop&#8221; with netbook parts in a slimline case not much bigger than many routers currently on the market.

I picked up the basic version with 1GB RAM, and [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago I picked up an Acer Revo on the cheap as a replacement for my old behemoth of a HTPC. The Revo is a &#8220;nettop&#8221; with netbook parts in a slimline case not much bigger than many routers currently on the market.</p>
<p><a href="http://www.paulkiddie.com/wp-content/uploads/2010/03/Acer-AspireRevo.jpg"><img src="http://www.paulkiddie.com/wp-content/uploads/2010/03/Acer-AspireRevo-246x300.jpg" alt="" title="Acer-AspireRevo" width="246" height="300" class="aligncenter size-medium wp-image-369" /></a></p>
<p>I picked up the basic version with 1GB RAM, and a single core Atom N230 running at 1.6Ghz running Acer&#8217;s custom Linux install. The kicker was the inclusion of the Nvidia Ion chipset which includes a Geforce 9400 on-board, sufficient for accelerating pretty much any HD content you want to throw at it. In use its practically silent, using a 2.5&#8243; laptop hard disk and small active fan which throttles down during use.</p>
<p>First thing I did was to get Windows 7 on there to see how it would handle and I was pretty impressed with the experience. I left the Aero theme enabled as it seemed to perform better than running the Basic theme. Standby and hibernate works much better and quicker than my old HTPC. To get the best out of it for my HTPC related tasks I did the following:</p>
<ol>
<li>Downloaded and installed the latest Ion chipset, graphics and HDMI audio drivers from <a href="http://www.nvidia.co.uk/page/home.html">Nvidia</a>. Select Download Drivers, then ION as the Product Type and ION (Desktops) as the Product Series.</li>
<li>Downloaded <a href="http://labs.adobe.com/downloads/flashplayer10.html">Flash 10.1 beta</a> (both active-x and the plugin for Windows). <em>Update: the release candidate (Flash Player 10.1 Release Candidate 2) is now available on the previous link</em>. After installation, you should see an immediate improvement when playing Flash video content on the web as it supports hardware acceleration making Youtube HD (720p and 1080p) and BBC iPlayer HD content fly. Note it doesn&#8217;t enable acceleration for downloaded content through the iPlayer Desktop application as this uses the Adobe Air runtime instead to play back video and this does not yet support GPU acceleration but I&#8217;m hoping it isn&#8217;t be that far off.</li>
<li>Downloaded the latest version of <a href="http://mpc-hc.sourceforge.net/">Media Player Classic Home Cinema</a> (currently at v1.3.1249) which hardware accelerates most of the HD content I’ve got out of the box without any additional configuration. If it’s doing the same with yours you should see ‘DXVA’ toward the bottom of the window when playing back your content.</li>
</ol>
<p>If you have a 5.1 amp which supports DTS and Dolby Digital and want to get your content pumping out multi-channel audio in MPC-HC (should the content provide either a DTS or Dolby Digital stream) then you&#8217;ll need to do a small amount of configuration:</p>
<ol>
<li>Open MPC-HC and click View &gt; Options</li>
<li>Select &#8216;Internal Filters&#8217; to bring up a list of source and transform filters</li>
<li>Double click AC3 in the list of transform filters</li>
<li>In the window that appears, set AC3 decoder and DTS decoder settings as follows:<br />
<a href="http://www.paulkiddie.com/wp-content/uploads/2010/03/mpc-hc-dts-ac3.png"><img class="aligncenter size-full wp-image-366" title="mpc-hc-dts-ac3" src="http://www.paulkiddie.com/wp-content/uploads/2010/03/mpc-hc-dts-ac3.png" alt="" width="306" height="382" /></a></li>
</ol>
<p>Additionally, if you want a complete front end without navigating the Windows desktop, <a href="http://www.boxee.tv/">Boxee </a> might be worth a look into as it also supports GPU acceleration both on the interface and during video playback. It&#8217;s also available for Ubuntu and supports the Ion chipset out of the box for accelerated video, for a free alternative. This is based on the very popular <a href="http://xbmc.org/">Xbox Media Center (XBMC)</a> which also supports VDPAU (Linux&#8217;s implementation of DXVA).</p>
<p>Got any other tips? Feel free to share them in the comments <img src='http://www.paulkiddie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fgetting-the-best-out-of-an-acer-revo-in-windows-7%2F&amp;linkname=Getting%20the%20best%20out%20of%20an%20Acer%20Revo%20in%20Windows%207">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/Ih6Xz45Y3Lw64G4w26w5ZkHP7RE/0/da"><img src="http://feedads.g.doubleclick.net/~a/Ih6Xz45Y3Lw64G4w26w5ZkHP7RE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Ih6Xz45Y3Lw64G4w26w5ZkHP7RE/1/da"><img src="http://feedads.g.doubleclick.net/~a/Ih6Xz45Y3Lw64G4w26w5ZkHP7RE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/W9PJDs2KyDg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/03/getting-the-best-out-of-an-acer-revo-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>And we’re back….</title>
		<link>http://www.paulkiddie.com/2010/03/and-were-back/</link>
		<comments>http://www.paulkiddie.com/2010/03/and-were-back/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:25:21 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=299</guid>
		<description><![CDATA[Apologies for those of you trying to access my blog over the past couple of days: normal service has now resumed after getting severely let down by my old web host. Luckily I had some recent (but not fully up to date) backups so all bar a couple of the posts are intact. I&#8217;ll recreate [...]]]></description>
			<content:encoded><![CDATA[<p>Apologies for those of you trying to access my blog over the past couple of days: normal service has now resumed after getting severely let down by my old web host. Luckily I had some recent (but not fully up to date) backups so all bar a couple of the posts are intact. I&#8217;ll recreate the others from my friend, the Google cache, ASAP.</p>
<p>If you spot any problems please do let me know and I&#8217;ll get it rectified ASAP.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B." title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fand-were-back%2F&amp;linkname=And%20we%26%238217%3Bre%20back%26%238230%3B.">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/iGrgALnlUiZql9FMlsy8QDjfXYs/0/da"><img src="http://feedads.g.doubleclick.net/~a/iGrgALnlUiZql9FMlsy8QDjfXYs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iGrgALnlUiZql9FMlsy8QDjfXYs/1/da"><img src="http://feedads.g.doubleclick.net/~a/iGrgALnlUiZql9FMlsy8QDjfXYs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/poj8WqR7YFs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/03/and-were-back/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Including Visio diagrams in LyX documents</title>
		<link>http://www.paulkiddie.com/2010/03/including-visio-diagrams-in-lyx-documents/</link>
		<comments>http://www.paulkiddie.com/2010/03/including-visio-diagrams-in-lyx-documents/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 20:25:34 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[TeX]]></category>
		<category><![CDATA[lyx]]></category>
		<category><![CDATA[visio]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=330</guid>
		<description><![CDATA[If you want to be able to include Visio drawings within your LyX documents, the process is relatively painless as you can export the drawing as a PDF and embed the PDF directly into the document.
First, create your diagram in Visio as normal. Then, click File > Page Setup, select the Page Size tab and [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to be able to include Visio drawings within your LyX documents, the process is relatively painless as you can export the drawing as a PDF and embed the PDF directly into the document.</p>
<p>First, create your diagram in Visio as normal. Then, click <code>File > Page Setup</code>, select the Page Size tab and click the radio button entitled ‘Size to fit drawing contents’:</p>
<p><img src="http://www.paulkiddie.com/wp-content/uploads/2010/03/visio-size-to-fit-drawing-contents.PNG" alt="visio-size-to-fit-drawing-contents" title="visio-size-to-fit-drawing-contents" width="502" height="381" class="aligncenter size-full wp-image-333" /></p>
<p>The bounding box will shrink to fit your drawing, which makes for easier positioning within LyX as you won’t have any whitespace issues arising from borders from your drawing.</p>
<p>If you are using Visio 2007, and have the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041&#038;displaylang=en">Save as PDF or XPS plugin</a> installed, you may go directly to <code>File > Publish as PDF or XPS</code> and save the diagram as a PDF. If you are using Visio 2003, or 2007 but do not have the plugin, then you can install a PDF printer, such as <a href="http://www.cutepdf.com/">CutePDF</a> (just go for whatever you&#8217;re most comfortable with) and <code>File > Print</code> directly to the PDF printer.</p>
<p>Within LyX, the process of embedding this PDF into your document is really easy. Click <code>Insert > Graphics</code>, browse for the PDF file and optionally set the scale or width and height to suit. LyX will render a preview of the image within the document and when you compile it to a DVI/PDF, you should see the Visio drawing output inline with the text.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fincluding-visio-diagrams-in-lyx-documents%2F&amp;linkname=Including%20Visio%20diagrams%20in%20LyX%20documents">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/TF1jiGrTINAi5EL8R_pCbE20u6s/0/da"><img src="http://feedads.g.doubleclick.net/~a/TF1jiGrTINAi5EL8R_pCbE20u6s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TF1jiGrTINAi5EL8R_pCbE20u6s/1/da"><img src="http://feedads.g.doubleclick.net/~a/TF1jiGrTINAi5EL8R_pCbE20u6s/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/hiOV3LyJZLI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/03/including-visio-diagrams-in-lyx-documents/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Commenting on PDFs generated from LaTeX documents</title>
		<link>http://www.paulkiddie.com/2010/03/commenting-on-pdfs-generated-from-latex-documents/</link>
		<comments>http://www.paulkiddie.com/2010/03/commenting-on-pdfs-generated-from-latex-documents/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 23:24:49 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[TeX]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[commenting]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=325</guid>
		<description><![CDATA[PDF’s generated with pdflatex, the pdf generator for LaTeX documents which is used by default in LyX, cannot be commented on directly through the use of Adobe Reader alone (currently as of version 9). See http://www.tug.org/pipermail/pdftex/2008-August/007802.html for a good explanation for this. To enable this feature using only Adobe products you need to run the [...]]]></description>
			<content:encoded><![CDATA[<p>PDF’s generated with <code>pdflatex</code>, the pdf generator for LaTeX documents which is used by default in LyX, cannot be commented on directly through the use of Adobe Reader alone (currently as of version 9). See <a href="http://www.tug.org/pipermail/pdftex/2008-August/007802.html">http://www.tug.org/pipermail/pdftex/2008-August/007802.html</a> for a good explanation for this. To enable this feature using only Adobe products you need to run the generated PDF through Acrobat Professional (which costs) and specifically enable commenting. This makes reviewing documents electronically impossible by using just the free tools that Adobe provide.</p>
<p>Luckily there are some great alternatives. I’ve used <a href="http://www.foxitsoftware.com/pdf/reader/">Foxit Reader</a> and <a href="http://www.docu-track.com/product/pdf-xchange-viewer">PDF-XChange Viewer</a> in the past and both allow you to comment directly onto PDFs, whether or not the document has commenting permissions enabled in the first place. Any comments you add are portable and can be viewed in Adobe Reader as a bonus.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F03%2Fcommenting-on-pdfs-generated-from-latex-documents%2F&amp;linkname=Commenting%20on%20PDFs%20generated%20from%20LaTeX%20documents">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/o4enkVetmeapH6hlWo7f3QGwmcA/0/da"><img src="http://feedads.g.doubleclick.net/~a/o4enkVetmeapH6hlWo7f3QGwmcA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/o4enkVetmeapH6hlWo7f3QGwmcA/1/da"><img src="http://feedads.g.doubleclick.net/~a/o4enkVetmeapH6hlWo7f3QGwmcA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/3Mbn4TL5cYU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/03/commenting-on-pdfs-generated-from-latex-documents/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Update on setting up Ubuntu in order to build kernel modules</title>
		<link>http://www.paulkiddie.com/2010/02/update-on-setting-up-ubuntu-in-order-to-build-kernel-modules/</link>
		<comments>http://www.paulkiddie.com/2010/02/update-on-setting-up-ubuntu-in-order-to-build-kernel-modules/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 23:07:59 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[kernel module]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=286</guid>
		<description><![CDATA[As an update to my “hello world” kernel module article, there is a much easier way to set up your Debian-based Linux (including Ubuntu) to build kernel modules, without manually getting the relevant kernel headers using apt-get.
I’ve tested this process with Ubuntu 8.04, 9.04 and 9.10 and it works great. Do the following to set [...]]]></description>
			<content:encoded><![CDATA[<p>As an update to my <a href="http://www.paulkiddie.com/2009/10/creating-a-hello-world-kernel-module-in-linux/">“hello world” kernel module</a> article, there is a much easier way to set up your Debian-based Linux (including Ubuntu) to build kernel modules, without manually getting the relevant kernel headers using apt-get.</p>
<p>I’ve tested this process with Ubuntu 8.04, 9.04 and 9.10 and it works great. Do the following to set up your Debian-based Linux environment for building kernel modules.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> <span class="kw2">su</span></div>
</li>
<li class="li1">
<div class="de1">apt-get <span class="kw2">install</span> module-assistant</div>
</li>
<li class="li1">
<div class="de1">m-a prepare</div>
</li>
</ol>
</div>
<p><code>m-a</code> (module assistant), will set up the appropriate build environment for you (including correct <code>linux-headers</code> and <code>build-essential</code>)<br />
You can now skip to code part of the <a href="http://www.paulkiddie.com/2009/10/creating-a-hello-world-kernel-module-in-linux/">original article</a> <img src='http://www.paulkiddie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Reference: <a href="http://wiki.debian.org/ModuleAssistant">http://wiki.debian.org/ModuleAssistant</a></p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fupdate-on-setting-up-ubuntu-in-order-to-build-kernel-modules%2F&amp;linkname=Update%20on%20setting%20up%20Ubuntu%20in%20order%20to%20build%20kernel%20modules">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/OAk3W5NUGOOardfS6fN21fNfwCg/0/da"><img src="http://feedads.g.doubleclick.net/~a/OAk3W5NUGOOardfS6fN21fNfwCg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OAk3W5NUGOOardfS6fN21fNfwCg/1/da"><img src="http://feedads.g.doubleclick.net/~a/OAk3W5NUGOOardfS6fN21fNfwCg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/S42Jp7r11Ds" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/02/update-on-setting-up-ubuntu-in-order-to-build-kernel-modules/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding custom class files (.cls) to Lyx in Windows Vista / Windows 7 environment</title>
		<link>http://www.paulkiddie.com/2010/02/adding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment/</link>
		<comments>http://www.paulkiddie.com/2010/02/adding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 23:02:46 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[TeX]]></category>
		<category><![CDATA[lyx]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[cls]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=305</guid>
		<description><![CDATA[When writing for publication, you may be offered a .cls file from the journal in question in which to format a TeX document to their specification. Whilst this works great in TeX, usually by copying the class.cls file in your working directory where all your .tex files reside and adding \documentclass{class} in the preamble (before [...]]]></description>
			<content:encoded><![CDATA[<p>When writing for publication, you may be offered a .cls file from the journal in question in which to format a TeX document to their specification. Whilst this works great in TeX, usually by copying the class.cls file in your working directory where all your .tex files reside and adding <code>\documentclass{class}</code> in the preamble (before <code>\begin{document}</code>), using these custom classes isn’t so straightforward in Lyx, so I’ll describe the steps required. I’m using the <code>eethesis.cls</code> class file as an example, which you can obtain from <a href="http://www.latex-site.info/">http://www.latex-site.info/</a>. This class file aids in the presentation of a thesis or progress report which meets the requirements of formatting at the University Of Birmingham, UK.</p>
<p>There are a couple of posts I ran across which deal with this specific issue, <a href="http://wiki.lyx.org/Layouts/CreatingLayouts">here </a>and <a href="http://wastedmonkeys.com/2007/09/27/adding-a-new-class-in-lyx-windows">here</a>. None were specific to Windows Vista/Windows 7, so I’ll deal with that here. This assumes version 2.8 of Miktex and version 1.6 of Lyx. If you are using an earlier or later versions, replace with the correct version numbers where I’ve used them.</p>
<ol>
<li>Get a copy of the class file, and copy it into a folder with the same name into <code>C:\Users\<em><your user name></em>\AppData\Roaming\MiKTeX\2.8\tex\latex</code>. So, for <code>eethesis.cls</code>, you should have a folder called <code>eethesis</code> within <code>C:\Users\<em><your user name></em>\AppData\Roaming\MiKTeX\2.8\tex\latex</code>. This is Windows Vista / Windows 7 specific, you will soon see why…</li>
<li>Create a new file and paste the following into it:
<pre>#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[xxx]{article (xxx)}
# Input general definitions
Input stdclass.inc</pre>
<p>replacing <code>xxx</code> with the class name (without the .cls extension). In my case, <code>xxx</code> is <code>eethesis</code>, and the code above becomes:</p>
<pre>#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[eethesis]{article (eethesis)}
# Input general definitions
Input stdclass.inc</pre>
<p>Thanks goes out to <a href="http://wastedmonkeys.com/2007/09/27/adding-a-new-class-in-lyx-windows">http://wastedmonkeys.com/2007/09/27/adding-a-new-class-in-lyx-windows</a> for this.</li>
<li>Save this file to <code>C:\Program Files\LyX16\Resources\layouts</code>, naming it <code>eethesis.layout</code>.</li>
<li>In a command prompt (type <code>cmd</code> in start menu), type <code>texhash</code>. What you will now see it doing is iterating through several folders for new classes, one of which (<code>C:\Users\AppData\Roaming\MiKTeX\2.8\</code>) is where we copied the <code>eethesis.cls</code> class file into.</li>
<li>Within Lyx, hit Tools > Reconfigure, then restart Lyx.</li>
<li>Open a document and click Document > Settings. Click on ‘Document Class’, expand the drop down menu and you should see ‘<code>article (xxx)</code>’ is visible, and usable, (like below) within the drop down menu.</li>
</ol>
<p><img src="http://www.paulkiddie.com/wp-content/uploads/2010/03/lyx-document-classes.png" alt="lyx-document-classes" title="lyx-document-classes" width="600" height="476" class="aligncenter size-full wp-image-308" /></p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fadding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment%2F&amp;linkname=Adding%20custom%20class%20files%20%28.cls%29%20to%20Lyx%20in%20Windows%20Vista%20%2F%20Windows%207%20environment">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/vY9_Yd_PEFsBAzM5gQBVvyEppO4/0/da"><img src="http://feedads.g.doubleclick.net/~a/vY9_Yd_PEFsBAzM5gQBVvyEppO4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vY9_Yd_PEFsBAzM5gQBVvyEppO4/1/da"><img src="http://feedads.g.doubleclick.net/~a/vY9_Yd_PEFsBAzM5gQBVvyEppO4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/vLe6FyMU-to" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/02/adding-custom-class-files-cls-to-lyx-in-windows-vista-windows-7-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Batching video transcodes with Handbrake (Windows)</title>
		<link>http://www.paulkiddie.com/2010/02/batching-video-transcodes-with-handbrake-windows/</link>
		<comments>http://www.paulkiddie.com/2010/02/batching-video-transcodes-with-handbrake-windows/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 22:46:21 +0000</pubDate>
		<dc:creator>Paul Kiddie</dc:creator>
				<category><![CDATA[Handbrake]]></category>
		<category><![CDATA[transcode]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[batch]]></category>

		<guid isPermaLink="false">http://www.paulkiddie.com/?p=301</guid>
		<description><![CDATA[I keep all my media in a central location on a network store but I want to be able to play it on my iphone when I’m away without network connectivity. Most of the content is avi/divx/xvid which the iphone does not play natively.
Handbrake is a really slick transcoder which converts a wide number of [...]]]></description>
			<content:encoded><![CDATA[<p>I keep all my media in a central location on a network store but I want to be able to play it on my iphone when I’m away without network connectivity. Most of the content is avi/divx/xvid which the iphone does not play natively.</p>
<p>Handbrake is a really slick transcoder which converts a wide number of video formats to those compatible with mobile devices. It offers a number of built-in profiles for many mobile devices, including the iphone, and comes as UI or command line interface.</p>
<p>Here’s a quick and dirty batch script for Windows which processes a given folder (this assumes you installed Handbrake into the default directory):</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><a href="http://www.ss64.com/nt/for.html"><span class="kw1">FOR</span></a> /F &quot;tokens=*&quot; %%G <a href="http://www.ss64.com/nt/in.html"><span class="kw1">IN</span></a> <span class="br0">&#40;</span>‘<a href="http://www.ss64.com/nt/dir.html"><span class="kw3">DIR</span></a> /B /S *.avi’<span class="br0">&#41;</span> <a href="http://www.ss64.com/nt/do.html"><span class="kw1">DO</span></a> &quot;C:\Program Files\Handbrake\HandBrakeCLI&quot; -i &quot;%%G&quot; -o &quot;%%G&quot;.mp4 —-preset=&quot;iPhone &amp; iPod Touch&quot;</div>
</li>
</ol>
</div>
<p>Copy this into a .bat file in the root of the media folder you wish to transcode the media from. This script will iterate through all the .avi files in the folder, calling Handbrake, and creating an .mp4, suitable for playback on the iphone/ipod touch.</p>
<p>You can customise the batcher to suit, replacing *.avi in the DIR part of the batch file (which provides the input to drive Handbrake) with the type of media file you want to deal with, or replacing the <code>--preset</code> argument with any of those mentioned in the Handbrake <a href="http://trac.handbrake.fr/wiki/CLIGuide#presets">wiki</a> (there are profiles for most common devices, including Xbox 360, PSP, PS3, AppleTV etc). Great thing is, I can run the script and leave the PC whirring away overnight </p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="Digg" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.paulkiddie.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.paulkiddie.com%2F2010%2F02%2Fbatching-video-transcodes-with-handbrake-windows%2F&amp;linkname=Batching%20video%20transcodes%20with%20Handbrake%20%28Windows%29">Bookmark</a>
<p><a href="http://feedads.g.doubleclick.net/~a/COacTYWRiVNm5auVaDbQEop-vts/0/da"><img src="http://feedads.g.doubleclick.net/~a/COacTYWRiVNm5auVaDbQEop-vts/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/COacTYWRiVNm5auVaDbQEop-vts/1/da"><img src="http://feedads.g.doubleclick.net/~a/COacTYWRiVNm5auVaDbQEop-vts/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/PaulKiddiesBlog/~4/NTVBGdJj6YU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulkiddie.com/2010/02/batching-video-transcodes-with-handbrake-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
