<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>davinci’s notebook &#187; plugin</title>
	<atom:link href="http://stargrads.net/blogs/davinci/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://stargrads.net/blogs/davinci</link>
	<description>everything is an experiment</description>
	<lastBuildDate>Tue, 07 Sep 2010 02:51:13 +0000</lastBuildDate>
	<language>fa</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Wikindx macro plug-in for WordPress</title>
		<link>http://stargrads.net/blogs/davinci/2009/09/wikindx-macro-plug-in-for-wordpress/</link>
		<comments>http://stargrads.net/blogs/davinci/2009/09/wikindx-macro-plug-in-for-wordpress/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 16:20:11 +0000</pubDate>
		<dc:creator>davinci</dc:creator>
				<category><![CDATA[★grads.net]]></category>
		<category><![CDATA[programming and technical issues]]></category>
		<category><![CDATA[Footnotes]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[plug-ins]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[Rob Miller]]></category>
		<category><![CDATA[WIKINDX]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://stargrads.net/blogs/davinci/?p=1860</guid>
		<description><![CDATA[
A small plug-in for WordPress, which adds a macro for inserting bibliography information from WIKINDX.
]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://stargrads.net/blogs/davinci/2009/06/using-jsmath-with-wordpress-bbpress-and-wikindx/">this previous post</a>, I had actually made use of a small plug-in I had written for <a href="http://wordpress.org/">WordPress</a>, which creates a macro for pulling bibliographical information from <a href="http://wikindx.sourceforge.net/"><span style="font-variant: small-caps">Wikindx</span></a>, which I use to manage my <a href="http://stargrads.net/bibliography/">bibliography</a>.</p>
<p>The plug-in is rather simple, but since a web search turned up nothing similar (which is kind of surprising), and someone might find it useful, I thought I&#8217;d post it here<span id="more-1860"></span>.</p>
<p>Here is the code for &#8220;wikindx.php&#8221;:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/* 
Plugin Name: Wikindx
Plugin URL: http://stargrads.net/blogs/davinci/2009/09/wikindx-macro-plug-in-for-wordpress
Description: Adds a macro to WordPress to insert bibliography information from Wikindx.
Author: D. L. Yonge-Mallo
Version: 1.0
Author URI: http://stargrads.net/blogs/davinci/
*/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> parse_wikindx<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$WikindxPath</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://path.to/wikindx/&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#&lt;wikindx( resource=&quot;([ \w]+)&quot;)?(&gt;(.*)&lt;/wikindx&gt;| ?/&gt;)#Usi'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #000088;">$wikindxs</span><span style="color: #339933;">,</span> PREG_SET_ORDER<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wikindxs</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$wikindxs</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$wikindx</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wikindx</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ERROR: WIKINDX MISSING RESOURCE ARGUMENT&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$resourceId</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wikindx</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$WikindxPath}</span>cmsprint.php?action=getResource&amp;id=<span style="color: #006699; font-weight: bold;">{$resourceId}</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">unserialize</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">base64_decode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$resourceId</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; ([<span style="color: #006699; font-weight: bold;">{$WikindxPath}</span>index.php?action=resourceView&amp;id=<span style="color: #006699; font-weight: bold;">{$resourceId}</span> details])&quot;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ERROR: WIKINDX RESOURCE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$resourceId</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; NOT FOUND&quot;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wikindx</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$output</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'parse_wikindx'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Replace &ldquo;<a href="http://path.to/wikindx/">http://path.to/wikindx/</a>&rdquo; in the above with the URL to your installation of <span style="font-variant: small-caps">Wikindx</span>, obviously.  For example, mine is &ldquo;<a href="http://stargrads.net/bibliography/">http://stargrads.net/bibliography/</a>&rdquo;.</p>
<p>Put the file into the &#8220;plugins&#8221; directory on WordPress, or if you are using <a href="http://mu.wordpress.org/">WordPress<sup>&mu;</sup></a>, then into its &#8220;mu-plugins&#8221; directory.</p>
<p>The plug-in creates a new macro &#8220;wikindx&#8221; with one parameter &#8220;resource&#8221;, which can be used inside WordPress posts like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>wikindx resource<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;68&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>

<p>Replace &#8220;68&#8243; in the example with the resource ID of the bibliography entry whose information you want.  (This ID can be found in the URL of the resource&#8217;s page on <span style="font-variant: small-caps">Wikindx</span>.)  The result is that the macro is replaced by the bibliographical information for that resource.  For the above example, this would be:</p>
<blockquote><p>R. Cleve, D. Gavinsky, and D. L. Yonge-Mallo, “Quantum Algorithms for Evaluating Min-Max Trees,” in <em>Proc. TQC 2008</em>, Tokyo, Japan, 2008, (<a href="http://stargrads.net/bibliography/index.php?action=resourceView&#038;id=68">details</a>)</p></blockquote>
<p>This plug-in can be used to good effect with <a href="http://robm.me.uk/projects/plugins/wordpress/footnotes">Rob Miller&#8217;s Footnotes plug-in for WordPress</a>, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ref name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;CGMSY08&quot;</span><span style="color: #339933;">&gt;&lt;</span>wikindx resource<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;206&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>ref<span style="color: #339933;">&gt;</span></pre></div></div>

<p>The result<sup><a class='footnote' id='note-1860-1' href='#footnote-1860-CGMSY08'>[1]</a></sup> can be seen in the footnote below.</p>
<p>&#8211; davinci 11780</p>
<hr />
<p><b>Update (Sept. 15, 2009):</b> I&#8217;ve added the plug-in to the <a href="http://wordpress.org/extend/plugins/wikindx-macro-plug-in-for-wordpress/">WordPress Plugin Directory</a>.</p>




	<a rel="nofollow"  href="http://stargrads.net/blogs/davinci/feed/" title="RSS"><img src="http://stargrads.net/common/images/handycons/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Wikindx%20macro%20plug-in%20for%20WordPress&amp;body=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F" title="email"><img src="http://stargrads.net/common/images/handycons/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;t=Wikindx%20macro%20plug-in%20for%20WordPress" title="Facebook"><img src="http://stargrads.net/common/images/handycons/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Wikindx%20macro%20plug-in%20for%20WordPress%20-%20http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F" title="Twitter"><img src="http://stargrads.net/common/images/handycons/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Wikindx%20macro%20plug-in%20for%20WordPress&amp;link=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F" title="FriendFeed"><img src="http://stargrads.net/common/images/handycons/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;title=Wikindx%20macro%20plug-in%20for%20WordPress&amp;notes=A%20small%20plug-in%20for%20WordPress%2C%20which%20adds%20a%20macro%20for%20inserting%20bibliography%20information%20from%20WIKINDX." title="del.icio.us"><img src="http://stargrads.net/common/images/handycons/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;title=Wikindx%20macro%20plug-in%20for%20WordPress&amp;bodytext=A%20small%20plug-in%20for%20WordPress%2C%20which%20adds%20a%20macro%20for%20inserting%20bibliography%20information%20from%20WIKINDX." title="Digg"><img src="http://stargrads.net/common/images/handycons/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;title=Wikindx%20macro%20plug-in%20for%20WordPress&amp;annotation=A%20small%20plug-in%20for%20WordPress%2C%20which%20adds%20a%20macro%20for%20inserting%20bibliography%20information%20from%20WIKINDX." title="Google Bookmarks"><img src="http://stargrads.net/common/images/handycons/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;t=Wikindx%20macro%20plug-in%20for%20WordPress&opener=bm&amp;ei=UTF-8&amp;d=A%20small%20plug-in%20for%20WordPress%2C%20which%20adds%20a%20macro%20for%20inserting%20bibliography%20information%20from%20WIKINDX." title="Yahoo! Bookmarks"><img src="http://stargrads.net/common/images/handycons/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;title=Wikindx%20macro%20plug-in%20for%20WordPress" title="StumbleUpon"><img src="http://stargrads.net/common/images/handycons/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F" title="Technorati"><img src="http://stargrads.net/common/images/handycons/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fwikindx-macro-plug-in-for-wordpress%2F&amp;title=Wikindx%20macro%20plug-in%20for%20WordPress" title="Reddit"><img src="http://stargrads.net/common/images/handycons/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/><img src="http://stargrads.net/blogs/davinci/?ak_action=api_record_view&id=1860&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://stargrads.net/blogs/davinci/2009/08/using-the-ajaxified-expand-post-now-plugin-with-rob-millers-footnotes-plugin/' rel='bookmark' title='Permanent Link: Using the Ajaxified Expand Post Now plug-in with Rob Miller&#8217;s Footnotes plug-in'>Using the Ajaxified Expand Post Now plug-in with Rob Miller&#8217;s Footnotes plug-in</a></li>
<li><a href='http://stargrads.net/blogs/davinci/2009/09/annotate-with-jarnal-plug-in-module-for-wikindx/' rel='bookmark' title='Permanent Link: Annotate With Jarnal Plug-In Module for Wikindx'>Annotate With Jarnal Plug-In Module for Wikindx</a></li>
<li><a href='http://stargrads.net/blogs/davinci/2009/06/using-jsmath-with-wordpress-bbpress-and-wikindx/' rel='bookmark' title='Permanent Link: Using jsMath with WordPress, bbPress, and Wikindx'>Using jsMath with WordPress, bbPress, and Wikindx</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://stargrads.net/blogs/davinci/2009/09/wikindx-macro-plug-in-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Annotate With Jarnal Plug-In Module for Wikindx</title>
		<link>http://stargrads.net/blogs/davinci/2009/09/annotate-with-jarnal-plug-in-module-for-wikindx/</link>
		<comments>http://stargrads.net/blogs/davinci/2009/09/annotate-with-jarnal-plug-in-module-for-wikindx/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 12:46:02 +0000</pubDate>
		<dc:creator>davinci</dc:creator>
				<category><![CDATA[open notebook science]]></category>
		<category><![CDATA[programming and technical issues]]></category>
		<category><![CDATA[annotate]]></category>
		<category><![CDATA[Annotate With Jarnal]]></category>
		<category><![CDATA[annotateWithJarnal]]></category>
		<category><![CDATA[annotating PDFs]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Jarnal]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WIKINDX]]></category>

		<guid isPermaLink="false">http://stargrads.net/blogs/davinci/?p=1755</guid>
		<description><![CDATA[
I wrote a module for Wikindx called Annotate With Jarnal to allow me to annotate PDF files attached to bibliography entries using the Jarnal note-taking application.
]]></description>
			<content:encoded><![CDATA[<p>For my Ph.D. research, I had set up the <a href="http://wikindx.sourceforge.net/"><span style="font-variant: small-caps">Wikindx</span></a> bibliography management system for use on my laptop to keep track of the papers that I had read or come across.  Furthermore, I use it to store local copies of frequently accessed papers by attaching them as PDF files.</p>
<p>Because I&#8217;m using <a href="http://www.dklevine.com/general/software/tc1000/jarnal.htm">Jarnal</a> to annotate these papers, I wanted to integrate the ability to launch Jarnal into <span style="font-variant: small-caps">Wikindx</span> itself, and also to store the annotations in <span style="font-variant: small-caps">Wikindx</span> along with the attached documents.</p>
<p>I wrote the <a href="https://launchpad.net/annotatewithjarnal">Annotate With Jarnal</a> plug-in <a href="http://wikindx.sourceforge.net/extras.html">module</a> for <span style="font-variant: small-caps">Wikindx</span> initially for my private use, so it&#8217;s not very polished.  But it gets the job done<span id="more-1755"></span>.</p>
<p>The module adds an &#8220;Annotate With Jarnal&#8221; menu item to the &#8220;Resources&#8221; menu in <span style="font-variant: small-caps">Wikindx</span>.  To use it, copy the URL of an attached PDF file, and paste it into the module&#8217;s input box.  The module then generates a Jarnal Meta File which (if everything is set up correctly) launches Jarnal with the PDF file as the background.  </p>
<p>Here is a series of screen shots showing the module in action:<br />
<a href="http://img190.imageshack.us/img190/8126/annotatewithjarnal001.png" target="_blank"><img src="http://img190.imageshack.us/img190/8126/annotatewithjarnal001.th.png" border="0" /></a> <a href="http://img16.imageshack.us/img16/8995/annotatewithjarnal002.png" target="_blank"><img src="http://img16.imageshack.us/img16/8995/annotatewithjarnal002.th.png" border="0" /></a> <a href="http://img190.imageshack.us/img190/4228/annotatewithjarnal003.png" target="_blank"><img src="http://img190.imageshack.us/img190/4228/annotatewithjarnal003.th.png" border="0" /></a> <a href="http://img16.imageshack.us/img16/6308/annotatewithjarnal004.png" target="_blank"><img src="http://img16.imageshack.us/img16/6308/annotatewithjarnal004.th.png" border="0" /></a></p>
<p>The result of the above sequence of steps is that Jarnal fetches the PDF file from <span style="font-variant: small-caps">Wikindx</span>, and displays it for annotation:<br />
<a href="http://img190.imageshack.us/img190/7067/annotatewithjarnal005.png" target="_blank"><img src="http://img190.imageshack.us/img190/7067/annotatewithjarnal005.th.png" border="0" /></a></p>
<p>The annotations can be saved using Jarnal&#8217;s &#8220;Network Save&#8221; feature.  This writes the Jarnal file back to the &#8220;attachments&#8221; subdirectory in the <span style="font-variant: small-caps">Wikindx</span> directory on the web server, with a file name created from appending the &#8220;.jaj&#8221; extension to the hash code of the annotated file.  The next time the PDF file is opened through the module, the annotations will be loaded along with the PDF file.</p>
<p>A user must be logged in to <span style="font-variant: small-caps">Wikindx</span> to use the module.  However, beyond that, there is currently not a lot of security.  Furthermore, the interface is not very easy to use.  Ideally, there would be an &#8220;annotate&#8221; button or link next to each attached PDF file, so that the user does not have to bother with copying the URL and pasting it.  Right now, there&#8217;s nothing to stop the user from entering a malformed or nonsense URL, but in most cases the module will respond by displaying an error message or doing nothing.</p>
<p>The module can also be used with the <a href="http://wordpress.org/extend/plugins/macro-expander/">Macro Expander</a> plug-in for WordPress, to provide a link to directly annotate a PDF file from a WordPress blog entry.  I kept my research notes in a private WordPress blog on my laptop, and this feature allowed me to link to and annotate the relevant papers directly from my research notes.</p>
<p>For more information, and the source files, see the module&#8217;s <a href="https://launchpad.net/annotatewithjarnal">web site on launchpad.net</a>.</p>
<p>&#8211; davinci 11779</p>




	<a rel="nofollow"  href="http://stargrads.net/blogs/davinci/feed/" title="RSS"><img src="http://stargrads.net/common/images/handycons/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx&amp;body=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F" title="email"><img src="http://stargrads.net/common/images/handycons/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;t=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx" title="Facebook"><img src="http://stargrads.net/common/images/handycons/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx%20-%20http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F" title="Twitter"><img src="http://stargrads.net/common/images/handycons/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx&amp;link=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F" title="FriendFeed"><img src="http://stargrads.net/common/images/handycons/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;title=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx&amp;notes=I%20wrote%20a%20module%20for%20Wikindx%20called%20Annotate%20With%20Jarnal%20to%20allow%20me%20to%20annotate%20PDF%20files%20attached%20to%20bibliography%20entries%20using%20the%20Jarnal%20note-taking%20application." title="del.icio.us"><img src="http://stargrads.net/common/images/handycons/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;title=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx&amp;bodytext=I%20wrote%20a%20module%20for%20Wikindx%20called%20Annotate%20With%20Jarnal%20to%20allow%20me%20to%20annotate%20PDF%20files%20attached%20to%20bibliography%20entries%20using%20the%20Jarnal%20note-taking%20application." title="Digg"><img src="http://stargrads.net/common/images/handycons/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;title=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx&amp;annotation=I%20wrote%20a%20module%20for%20Wikindx%20called%20Annotate%20With%20Jarnal%20to%20allow%20me%20to%20annotate%20PDF%20files%20attached%20to%20bibliography%20entries%20using%20the%20Jarnal%20note-taking%20application." title="Google Bookmarks"><img src="http://stargrads.net/common/images/handycons/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;t=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx&opener=bm&amp;ei=UTF-8&amp;d=I%20wrote%20a%20module%20for%20Wikindx%20called%20Annotate%20With%20Jarnal%20to%20allow%20me%20to%20annotate%20PDF%20files%20attached%20to%20bibliography%20entries%20using%20the%20Jarnal%20note-taking%20application." title="Yahoo! Bookmarks"><img src="http://stargrads.net/common/images/handycons/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;title=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx" title="StumbleUpon"><img src="http://stargrads.net/common/images/handycons/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F" title="Technorati"><img src="http://stargrads.net/common/images/handycons/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fstargrads.net%2Fblogs%2Fdavinci%2F2009%2F09%2Fannotate-with-jarnal-plug-in-module-for-wikindx%2F&amp;title=Annotate%20With%20Jarnal%20Plug-In%20Module%20for%20Wikindx" title="Reddit"><img src="http://stargrads.net/common/images/handycons/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/><img src="http://stargrads.net/blogs/davinci/?ak_action=api_record_view&id=1755&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://stargrads.net/blogs/davinci/2009/09/wikindx-macro-plug-in-for-wordpress/' rel='bookmark' title='Permanent Link: Wikindx macro plug-in for WordPress'>Wikindx macro plug-in for WordPress</a></li>
<li><a href='http://stargrads.net/blogs/davinci/2009/08/using-the-ajaxified-expand-post-now-plugin-with-rob-millers-footnotes-plugin/' rel='bookmark' title='Permanent Link: Using the Ajaxified Expand Post Now plug-in with Rob Miller&#8217;s Footnotes plug-in'>Using the Ajaxified Expand Post Now plug-in with Rob Miller&#8217;s Footnotes plug-in</a></li>
<li><a href='http://stargrads.net/blogs/davinci/2009/09/converting-digimemo-files-to-jarnal-format/' rel='bookmark' title='Permanent Link: Converting DigiMemo files to Jarnal format'>Converting DigiMemo files to Jarnal format</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://stargrads.net/blogs/davinci/2009/09/annotate-with-jarnal-plug-in-module-for-wikindx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->