Also assorted cleanups and sanitation work.
# where to build the wiki
destdir => 'html',
# base url to the wiki
- url => 'http://www.physics.drexel.edu/~wking/unfolding-disasters',
+ url => 'http://blog.tremily.us/',
# url to the ikiwiki.cgi
- #cgiurl => 'http://www.physics.drexel.edu/~wking/unfolding-disasters/ikiwiki.cgi',
+ #cgiurl => 'http://blog.tremily.us/cgi-bin/ikiwiki.cgi',
# filename of cgi wrapper to generate
- #cgi_wrapper => '/tmp/ikiwiki.build/ikiwiki.cgi',
+ #cgi_wrapper => 'html/cgi-bin/ikiwiki.cgi',
# mode for cgi_wrapper (can safely be made suid)
#cgi_wrappermode => '06755',
# rcs backend to use
# mdwn_itex plugin
# path to the itex2MML binary
- #itex2mml => '/usr/local/bin/itex2MML',
- itex2mml => '/home/wking/bin/itex2MML --unicode-entities',
- # autonumber \[..\] equations?
+ #itex2mml => '/usr/bin/itex2MML',
+ itex2mml => '/home/wking/bin/itex2MML',
+ # Must return numeric character references (e.g. α) or UTF-8
+ # instead of MathML entities (e.g. α). If you're using the
+ # stock itex2MML, you might use a script like this:
+ # #!/bin/sh
+ # /usr/bin/itex2MML "${@}" | perl -e 'use MathML::Entities; print name2numbered($_) while(<>);'
+
+ # autonumber \[..\]x equations?
itex_num_equations => 1,
# recentchanges plugin
# repolist plugin
# URIs of repositories containing the wiki's source
- repositories => [qw{http://www.physics.drexel.edu/~wking/code/git/blog.git}],
+ repositories => [qw{git://tremily.us/blog.git}],
# sidebar plugin
# show sidebar page on all pages?
I'm currently using using the `gitweb` distributed with [[Git]], which
is why I wasn't on the ball in getting the changes accepted upstream.
-[git-php]: http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=git-php.git;a=summary
+[git-php]: http://git.tremily.us/?p=git-php.git;a=summary
[PV]: http://people.proekspert.ee/peeter/git/git.php?p=git-php.git
[JDG]: http://github.com/josegonzalez/git-php
[Comedi]: http://www.comedi.org/
[6052E]: http://sine.ni.com/nips/cds/view/p/lang/en/nid/2601
[external]: http://comedi.org/git?p=comedi/comedi.git;a=summary
-[kernel]: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=tree;f=drivers/staging/comedi
+[kernel]: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=tree;f=drivers/staging/comedi;hb=HEAD
[Debian]: http://packages.debian.org/sid/python-comedilib
[Ubuntu]: http://packages.ubuntu.com/natty/python-comedilib
[Gentoo]: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sci-libs/comedilib/?hideattic=0
$ cat ~/.XCompose
include "%L"
- <Multi_key> <h> <o> <m> <e> : "http://physics.drexel.edu/~wking" # Home page
+ <Multi_key> <h> <o> <m> <e> : "http://tremily.us/" # Home page
Read `Compose(5)` for more information. You may need to log out and
log back in (or use the [[newgrp]] trick) for your new `~/.XCompose`
documentation. You can also try the [official BE
documentation][BE_doc], but that sometimes lags behind my version.
-[man]: http://www.physics.drexel.edu/~wking/code/git/git.php?tr=c9ce0b30672d653f46d0a2c269c468e8cffb9a97&tag=0a993be001ab5ff250fae4c5f20bab11f89e30cb&p=be.git&a=jump_to_tag&b=3b5c8d094c4f16257bdf1b4ba3edb6ca7351054c&n=be.1.xml
+[man]: http://git.tremily.us/?p=be.git;a=blob;f=be.1.xml;hb=HEAD
[BE]: http://bugseverywhere.org/
[DB]: http://www.docbook.org/
[xsltproc]: http://www.xmlsoft.org/XSLT/
-[doc]: http://www.physics.drexel.edu/~wking/code/be/doc/doc.html#man-page
-[install]: http://www.physics.drexel.edu/~wking/code/be/doc/install.html#dependencies
+[doc]: http://doc.be.tremily.us/doc.html#man-page
+[install]: http://doc.be.tremily.us/install.html#dependencies
[BE_doc]: http://docs.bugseverywhere.org/
-
[Emacs][] is the text exitor that does everything. Take a look at the
liki pages on [emacs in general][general], [unicode][], and
[org-mode][].
Curious parties can branch my public repo:
- $ bzr branch http://www.physics.drexel.edu/~wking/code/bzr/be-email be.email
+ $ git clone http://www.physics.drexel.edu/~wking/code/bzr/be-email be.email
As a nice side effect of this little project, my [[send_pgp_mime] is
now much more elegant.
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.11 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEABECAAYFAk2nWZQACgkQ/Cm9zfFfW+heCQCgnEgIRw4RSjI9mTYN3MWQR3Se
-GR4AoJZMepIJBCVsl11sS+D0pL0/nnTD
-=4aHg
+iQEcBAABAgAGBQJO4TiuAAoJEPe7CdOcrcTZs0YH/35bxO8bEZfMU+8ir//OXo4R
+pS/rjjDMfp3NO8aA83qkM4c6ufLAyCktFxs/zDH28q6R0+eOo07IWWUpocGQA1vv
+qNHqkKmKH2vTi+4emUIEwkbJBSdfEZdf9zoOl6Sbl2qlatu4Hwn7Tnh8D58dYjt7
+Y9bvZB0AIuerWFffD4cm22a0uUSvaCDXiiZJtibh4B1yrLmBm1whS+00pUEhMkXu
+uYj88kwYVtcdcH5AGocxYMhfMEkT5WN36P0LuLVJ5+7BpdRXwPtjJWS6huTSNYZB
+YDNV14aedYtRowPia0qYjM7lKS3YLTfj66opZzlX3on6pij21HC/KS95bcpgTzs=
+=ND2N
-----END PGP SIGNATURE-----
<foaf:mbox_sha1sum>031d265f390b454d9b62554ab6ae12978f473f53
</foaf:mbox_sha1sum>
<hasKey rdf:nodeID="F15F5BE8"/>
- <foaf:homepage rdf:resource="http://www.physics.drexel.edu/~wking/"/>
- <foaf:workplaceHomepage rdf:resource="http://www.physics.drexel.edu/~wking/"/>
- <foaf:weblog rdf:resource="http://www.physics.drexel.edu/~wking/unfolding-disasters/"/>
+ <foaf:homepage rdf:resource="http://tremily.us/"/>
+ <foaf:workplaceHomepage rdf:resource="http://physics.drexel.edu/~wking/"/>
+ <foaf:weblog rdf:resource="http://blog.tremily.us/"/>
<foaf:schoolHomepage rdf:resource="http://www.colgate.edu/"/>
<foaf:schoolHomepage rdf:resource="http://www.rochester.edu/"/>
<foaf:schoolHomepage rdf:resource="http://www.drexel.edu/"/>
</foaf:Person>
<PubKey rdf:nodeID="F15F5BE8">
<hex_id>F15F5BE8</hex_id>
- <pubkeyAddress rdf:resource="http://www.physics.drexel.edu/~wking/pubkey.txt"/>
+ <pubkeyAddress rdf:resource="http://tremily.us/pubkey.txt"/>
</PubKey>
<!-- digital signature for this file -->
<rdf:Description rdf:about="">
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.11 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEABECAAYFAk2nW1wACgkQ/Cm9zfFfW+hhKACffzrs5NCiOqcMQPsguGxnCHnn
-qV4An2vMNlrIC5xjs6anse318f/95l3s
-=gz71
+iQEcBAABAgAGBQJO4TiuAAoJEPe7CdOcrcTZmm0H/idVFFzvdG6KWtDW8A/j0Rot
+M9Bn14+39NhnzkO7S0CCk3tl6BbzbjEHVup+HyvdSHph+8DQXhVazcDeR8mr6pkV
+wwjleprWIkyKIHZBPc2oAGO/PyQk1uyTNBN1TXA70j9y7PJ0/ybJrAvW8BevDpUB
+IM8xv5+h0F1Av/joLctZHcEMPZZISVpa/RlyF5aylmfwdCby4GGaBDKknD4I3gLw
+wGwims5UCwtrKX9k2LIUdv2NHtG9Vvj5UXs8SyVlX0sJLQUhDrY0xzJQ4YRI//fw
+9Dtmu3uapgVGk1mxOhWE6dHVg0IMKvfhmcLOtGx1PqY4U/A9HTI6b55N9/4SR7Q=
+=CilW
-----END PGP SIGNATURE-----
<name>wtk</name>
<description>W. Trevor King's prefix overlay</description>
<homepage>
- http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/Gentoo_Prefix_overlay/
+ http://blog.tremily.us/posts/Gentoo_Prefix_overlay/
</homepage>
<owner>
<email>wking@drexel.edu</email>
</owner>
<source type="git">
- http://www.physics.drexel.edu/~wking/code/git/wtk-prefix-overlay.git
+ git://tremily.us/wtk-prefix-overlay.git
</source>
<feed>
- http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=wtk-prefix-overlay.git;a=atom
+ http://git.tremily.us?p=wtk-prefix-overlay.git;a=atom
</feed>
<feed>
- http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=wtk-overlay.git;a=rss
+ http://git.tremily.us?p=wtk-prefix-overlay.git;a=rss
</feed>
</repo>
</repositories>
<name>wtk</name>
<description>W. Trevor King's overlay</description>
<homepage>
- http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/Gentoo_overlay/
+ http://blog.tremily.us/posts/Gentoo_overlay/
</homepage>
<owner>
<email>wking@drexel.edu</email>
</owner>
<source type="git">
- http://www.physics.drexel.edu/~wking/code/git/wtk-overlay.git
+ git://tremily.us/wtk-overlay.git
</source>
<feed>
- http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=wtk-overlay.git;a=atom
+ http://git.tremily.us/?p=wtk-overlay.git;a=atom
</feed>
<feed>
- http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=wtk-overlay.git;a=rss
+ http://git.tremily.us/?p=wtk-overlay.git;a=rss
</feed>
</repo>
</repositories>
$ scale_click.sh 0 10 5 20 fig-000.pixels > fig-000.data
Just use your first four clicks in
-[clickloc.tk](http://www.physics.drexel.edu/~wking/code/tcl-tk/clickloc.tk)
-to mark out the x and y minimum and maximum values. Then use
-[scale_click.sh](http://www.physics.drexel.edu/~wking/code/bash/scale_click.sh)
-to convert the pixel values to the units listed in the figure. In my
-example, the x axis ran from 0 to 10 units, and the y axis ran from 5
-to 20 units. Supports log-scaled axes too.
+[[clickloc.tk|clickloc/clickloc.tk]] to mark out the x and y minimum
+and maximum values. Then use
+[[scale_click.sh|clicloc/scale_click.sh]] to convert the pixel values
+to the units listed in the figure. In my example, the x axis ran from
+0 to 10 units, and the y axis ran from 5 to 20 units. Supports
+log-scaled axes too.
Having gotten some numbers, my sawtooth simulator matches up fairly
-well to [Schlierf & Rief's
-results](http://www.biophysj.org/cgi/content/abstract/90/4/L33) on
-both models. Hooray! ;).
+well to [Schlierf & Rief's results][SR] on both models. Hooray! ;).
+
+[SR]: http://www.biophysj.org/cgi/content/abstract/90/4/L33
[[!tag tags/linux]]
[[!tag tags/programming]]
: devel$ git push public master
Note that you may need to copy =.git/description= over by hand. I
-wrote up a [[http://www.physics.drexel.edu/~wking/code/index.shtml#git-publish][git-publish]] script to automate this.
+wrote up a [[http://blog.tremily.us/posts/Git/git-publish.py][git-publish]] script to automate this.
** Gitting comedi, using Git as a frontend for CVS
From [[http://issaris.blogspot.com/2005/11/cvs-to-git-and-back.html][Takis blog]]
Update: I figured out how to use the [NIST reference][] while writing
my [[sawsim]] paper, listing the mean and standard deviation of the
-Gumbel distribution. So many names... Anyway, the `pysawsim` tests
-now use the [improved guessing procedure][].
+Gumbel distribution. So many names… Anyway, the `pysawsim` tests
+now use the [improved guessing procedure][guess].
[NIST reference]: http://www.itl.nist.gov/div898/handbook/eda/section3/eda366g.htm
-[improved guessing procedure]: http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=sawsim.git;a=blob;f=pysawsim/test/bell_rate.py;hb=837c425eaeccae280cc7f7784d03dfcfcb03678c#l106
+[guess]: http://git.tremily.us/?p=sawsim.git;a=blob;f=pysawsim/test/bell_rate.py;hb=837c425eaeccae280cc7f7784d03dfcfcb03678c#l106
[[!tag tags/sawsim]]
[[!tag tags/theory]]
In [[an earlier post|Hooke-update]], I reported seeing `surface
distance (m) (m)` columns in my playlist files, but had been unable to
reproduce them. Today, after [fixing bugs with Curve
-copying](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/59390d466f0d),
-I did reproduce them with:
+copying][copy-bug], I did reproduce them with:
$ ./bin/hk.py
-c 'load_playlist test/data/vclamp_picoforce/playlist'
I'll update this post once I've tracked down the culprit.
-Update:
-[fixed](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/230d4483c9da).
+Update: [fixed][].
+
+[copy-bug]: http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/59390d466f0d
+[fixed]: http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/230d4483c9da
[[!tag tags/hooke]]
[[!tag tags/programming]]
-Minor tweaks to Hooke's [command
-stacks](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/8c0882dfbaf5). I can now execute the GUI alternative of
+Minor tweaks to Hooke's [command stacks][stacks]. I can now execute
+the GUI alternative of
./bin/hk.py
-c 'new_playlist'
Update:
-After [fixing up a few more
-bugs](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/7ba2243a9b45),
-I successfully ran:
+After [fixing up a few more bugs][bugs], I successfully ran:
./bin/hk.py
-c 'new_playlist'
- lots of useless `!!python/unicode 'retract'` tags. If the strings
are all in ASCII, I don't really care if they are loaded as unicode
or string objects.
- ([fixed](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/302413fafa96))
+ ([fixed][])
- `surface distance (m) (m)` column. Obviously someone is adding
units twice. I need to figure out who it is ;).
([[Reproduced|Hooke-update-2]])
+[stacks]: http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/8c0882dfbaf5
+[bugs]: http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/7ba2243a9b45
+[fixed]: http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/302413fafa96
+
[[!tag tags/hooke]]
[[!tag tags/programming]]
I finally got around to upgrading the environment on the server that
-autogenerates my [Hooke
-documentation](http://www.physics.drexel.edu/~wking/rsrch/hooke/).
+autogenerates my [Hooke documentation][doc].
+
The new setup is:
-- [Python](http://www.python.org/) 2.7 (previously Python 2.5)
-- [Sphinx]() 1.0.3 (previously Sphinx 0.6.5)
-- [Numpydoc](http://pypi.python.org/pypi/numpydoc/0.3.1) from the
- current [git source](http://projects.scipy.org/numpy/browse_git)
- (previously 0.3.1, see [numpy ticket
- 1489](http://projects.scipy.org/numpy/ticket/1489))
-- [SCons](http://www.scons.org/) 2.0.1.r5134 (unchanged)
+- [[Python]] 2.7 (previously Python 2.5)
+- [[Sphinx]] 1.0.3 (previously Sphinx 0.6.5)
+- [Numpydoc][] from the current [git source][git] (previously 0.3.1,
+ see [numpy ticket 1489][1489])
+- [SCons][] 2.0.1.r5134 (unchanged)
The main effect of the change is that the [hooke module
-documentation](http://www.physics.drexel.edu/~wking/rsrch/hooke/hooke/hooke.html)
-is now generated in its entirety, while the previous implementation
-only generated documentation for Python 2.5-compatible submodules.
+documentation][mod] is now generated in its entirety, while the
+previous implementation only generated documentation for Python
+2.5-compatible submodules.
+
+[doc]: http://doc.hooke.tremily.us/
+[Numpydoc]: http://pypi.python.org/pypi/numpydoc/
+[git]: http://projects.scipy.org/numpy/browse_git
+[1489]: http://projects.scipy.org/numpy/ticket/1489
+[SCons]: http://www.scons.org/
+[mod]: http://doc.hooke.tremily.us/hooke.html
[[!tag tags/hooke]]
[[!tag tags/programming]]
computing class, there are fewer graphics than there are in an
intro-physics class, so the extra power of LaTeX is not as useful.
-[MV]: http://www.physics.drexel.edu/directory/faculty/homepage/?lname=Valli%C3%A8res&fname=Michel
+[MV]: http://www.drexel.edu/physics/contact/facultyDirectory/Vallieres%20Michel/
[phys405]: http://www.physics.drexel.edu/~valliere/PHYS405/
-[f10]: http://www.physics.drexel.edu/~wking/courses/phys405_f10/
+[f10]: http://course.tremily.us/2010-fall/phys405/
[[!tag tags/code]]
[[!tag tags/web]]
[[!meta title="Reading IGOR binary waves from Python"]]
[[!meta date="2010-06-04 18:48:46"]]
+
I finally got around to translating some IBW readers from C to Python.
-And so, I present (drumroll :)
-[igorbinarywave.py](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/file/tip/hooke/driver/igorbinarywave.py).
-Python because it's easy to drop it into my other Python projects (in
-this case, [Hooke](http://code.google.com/p/hooke/)). It's also easy
-to get a hold of all that useful metadata in a hurry. No writing
-ability yet, but I don't know why you'd want to move data that
-direction anyway ;).
+And so, I present (drumroll :) [igorbinarywave.py][] Python because
+it's easy to drop it into my other Python projects (in this case,
+[[Hooke]). It's also easy to get a hold of all that useful metadata
+in a hurry. No writing ability yet, but I don't know why you'd want
+to move data that direction anyway ;).
+
+Thanks to the folks at [WaveMetrics][] for publishing some good
+[documentation][], even if it's in a goofy format.
-Thanks to the folks at [WaveMetrics](http://www.wavemetrics.com/) for
-publishing some good
-[documentation](ftp://ftp.wavemetrics.net/IgorPro/Technical_Notes/TN003.zip),
-even if it's in a goofy format.
+[igorbinarywave.py]: http://git.tremily.us/?p=hooke.git;a=blob;f=hooke/driver/igorbinarywave.py;hb=HEAD
+[WaveMetrics]: http://www.wavemetrics.com/
+[documentation]: ftp://ftp.wavemetrics.net/IgorPro/Technical_Notes/TN003.zip
[[!tag tags/programming]]
<!-- if XBitHack On, or give footer a .shtml extension. -->
</p>
<p>
- Copyright © W. Trevor King. <br />
+ Copyright © My Name<br />
Validate <a href="http://validator.w3.org/check?uri=referer">xhtml</a>
| <a href="http://jigsaw.w3.org/css-validator/check?uri=referer">css</a>
</p>
<meta http-equiv="content-type"
content="text/html; charset=utf-8" />
-<meta name="description" content="Homepage of Trevor King" />
-<meta name="keywords" content="william,trevor,king,drexel,physics" />
+<meta name="description" content="My Homepage" />
+<meta name="keywords" content="homepage,name,other,stuff" />
<meta name="robots" content="all" />
-<link rel="stylesheet" href="/~wking/shared/style.css" type="text/css" />
-<link rel="icon" href="/~wking/img/favicon.ico" type="image/x-icon" />
-<link rel="meta" type="application/rdf+xml" title="FOAF"
- href="/~wking/foaf.rdf"/>
-<title>Trevor</title>
+<link rel="stylesheet" href="/shared/style.css" type="text/css" />
+<link rel="icon" href="/img/favicon.ico" type="image/x-icon" />
+<link rel="meta" type="application/rdf+xml" title="FOAF" href="/foaf.rdf"/>
+<title>My Homepage</title>
</head>
<body>
<div id="header">
- <h3 id="top">Trevor King</h3>
- <a href="/~wking/">Homepage</a>
+ <h3 id="top">My Homepage</h3>
+ <a href="/">Homepage</a>
|
- <a href="/~wking/contact.shtml">Contact</a>
+ <a href="/contact.shtml">Contact</a>
|
- <a href="/~wking/courses/phys405_f10/">PHYS405</a>
+ <a href="/code/">Code</a>
|
- <a href="/~wking/rsrch/">Research</a>
- |
- <a href="/~wking/code/">Code</a>
- |
- <a href="/~wking/tools/">Tools</a>
- |
- <a href="/~wking/unfolding-disasters/">Blog</a>
- |
- <a href="/">Department</a>
- |
- <a href="/liki/">Liki</a>
+ <a href="/tools/">Tools</a>
<hr />
</div>
[[!meta title="Stripchart"]]
[[!meta date="2008-07-08 17:03:08"]]
-I was trying to troubleshoot the feedback loop on our NanoScope today, and
-when I went to fire up my [Comedi](http://www.comedi.org/)-driven stripcharts
-monitoring some lines in the DB-25 cable connecting the [[MultiMode]] to the
-Nanoscope, I got a bunch of wierd errors (errnos 11 and 29). I tracked them
-down to some of the Xlib function calls in my stripchart code (yes, I wrote my
-own
-[stripchart](http://www.physics.drexel.edu/~wking/rsrch/code/index.shtml#stripchart)
-code, so sue me), which I don't understand, since I can't find any reference to
-Xlib functions setting errnos.
+[[!template id=gitrepo repo=stripchart]]
-Anyhow, I've patched up my source to gleefully ignore any Xlib errno settings,
-and things seem to be back up and running now. Feel free to give my stripchart
-code a whirl, since I quite enjoy it :p.
+I was trying to troubleshoot the feedback loop on our NanoScope today,
+and when I went to fire up my [[Comedi]]-driven stripcharts monitoring
+some lines in the DB-25 cable connecting the [[MultiMode]] to the
+Nanoscope, I got a bunch of weird errors (errnos 11 and 29). I
+tracked them down to some of the Xlib function calls in my stripchart
+code (yes, I wrote my own stripchart code, so sue me), which I don't
+understand, since I can't find any reference to Xlib functions setting
+errnos.
+
+Anyhow, I've patched up my source to gleefully ignore any Xlib errno
+settings, and things seem to be back up and running now. Feel free to
+give my stripchart code a whirl, since I quite enjoy it :p.
[[!tag tags/programming]]
[[!meta title="Subversion"]]
[[!meta date="2008-07-16 19:42:55"]]
-I finally broke down and learned how to serve
-[subversion](http://subversion.tigris.org/)
-repositories. You're welcome to poke around `svn://abax.physics.drexel.edu`
-to see if there is anything interesting.
-I'll probably dump all my code in there, so don't worry if version numbers
-seem to be spiralling out of control :p. I'll try to keep an updated
-[index page](http://www.physics.drexel.edu/~wking/svn) explaining what
-everything does.
+I finally broke down and learned how to serve [subversion][]
+repositories. You're welcome to poke around
+`svn://abax.physics.drexel.edu` to see if there is anything
+interesting.
-Update: I took down the SVN server and switched to Git. Much nicer
-:). The code index page is now
-[here](http://www.physics.drexel.edu/~wking/code).
+I'll probably dump all my code in there, so don't worry if version
+numbers seem to be spiralling out of control :p. I'll try to keep an
+updated index page explaining what everything does.
+
+Update: I took down the SVN server and switched to [[Git]]. Much
+nicer :). The code index page is now [here][index].
+
+[Subversion]: http://subversion.tigris.org/
+[index]: http://git.tremily.us/
[[!tag tags/linux]]
[[!tag tags/programming]]
-REPO = http://www.physics.drexel.edu/~wking/code/git/thesis.git
+REPO = git://tremily.us/thesis.git
PACKAGE = thesis
.PHONY : all checkout clean
ebuild ([bug 144453][]) is in Torsten Veller's overlay, so I forked
his overlay and bumped the Ikiwiki version number. I've emailed
Torsten with a merge request, but haven't heard back yet. Anyhow, add
-this [[layman.xml]] to your `/etc/layman/layman.cfg` `overlays` listing
+this `layman.xml` to your `/etc/layman/layman.cfg` `overlays` listing
and run:
- layman -a tove-wtk
+ # layman -a tove-wtk
Then:
- emerge -av ikiwiki
+ # emerge -av ikiwiki
and you're off!
There is no longer any need to mess around with layman if you want to
install ikiwiki.
-
[ikiwiki]: http://ikiwiki.info/
[bug 144453]: http://bugs.gentoo.org/show_bug.cgi?id=144453
[pushed]: http://bugs.gentoo.org/show_bug.cgi?id=144453#c34
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<repositories version="1.0">
- <repo quality="experimental" status="unofficial">
- <name>tove</name>
- <description>Torsten Veller's Overlay</description>
- <owner>
- <email>Torsten Veller <tove@gentoo.org></email>
- </owner>
- <source type="git">git://git.overlays.gentoo.org/dev/tove.git</source>
- </repo>
- <repo quality="experimental" status="unofficial">
- <name>tove-wtk</name>
- <description>Torsten Veller's Overlay (WTK branch)</description>
- <owner>
- <email>W. Trevor King <wking@drexel.edu></email>
- </owner>
- <source type="git">http://www.physics.drexel.edu/~wking/code/git/tove.git/</source>
- </repo>
-</repositories>
-REPO = http://www.physics.drexel.edu/~wking/code/git/dotfiles.git/
-PACKAGE = dotfiles
+REPO = git://tremily.us/dotfiles-public.git
+PACKAGE = dotfiles-public
.PHONY : all checkout clean
(cd $(PACKAGE) && git pull && git reset --hard HEAD)
_Xmodmap : checkout
- cp $(PACKAGE:%=%/$@) $@
+ cp $(PACKAGE:%=%/src/$(@:_%=.%)) $@
unicode_sampler : _Xmodmap gen_sampler.py
./gen_sampler.py $< > $@
[Django]: https://www.djangoproject.com/
[Grappelli]: https://github.com/sehmaschine/django-grappelli
[django-taggit]: https://github.com/alex/django-taggit
-[README]: http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=cookbook.git;a=blob;f=README;hb=HEAD
+[README]: http://git.tremily.us/?p=cookbook.git;a=blob;f=README;hb=HEAD
[[!tag tags/code]]
[[!tag tags/linux]]
[SK]: http://repository.steve.org.uk/cgi-bin/hgwebdir.cgi/dotfiles/file/tip?file/tip/
[blog post]: http://blog.steve.org.uk/didn_t_i_kill_you_already_.html
-[README]: http://physics.drexel.edu/~wking/code/git/gitweb.cgi?p=dotfiles-framework.git;a=blob;f=README;hb=HEAD
+[README]: http://git.tremily.us/p=dotfiles-framework.git;a=blob;f=README;hb=HEAD
[dotfile-manager]: http://blog.steve.org.uk/poppa_s_got_a_brand_new_bang_.html
[dotfilemanager]: https://github.com/seanh/dotfilemanager
[[!template id=gitrepo repo=git-php]]
[Peeter Vois's][PV] [git-php][] is a nice PHP script which you can
-drop in to make your public [[Git]] repo's browsable. [Take a
-look][look]!
+drop in to make your public [[Git]] repo's browsable.
+
+Update: I've migrated from `git-php` to `gitweb` (which is distributed
+with Git). [Take a look][look]!
[PV]: http://people.proekspert.ee/peeter/
[git-php]: http://people.proekspert.ee/peeter/git/git.php?p=git-php.git
-[look]: http://www.physics.drexel.edu/~wking/code/git/git.php
+[look]: http://git.tremily.us/
here in case other ikiwiki users find this useful.
* Install [itex2MML][]
-* [Install][install_plugin] my updated [[mdwn_itex.pm|mdwn_itex.pm]]
- plugin ([[mdwn_itex.patch|mdwn_itex.patch]] against Jason's
- version).
+* [Install][install_plugin] my updated `mdwn_itex.pm` plugin
+ (`mdwn_itex.patch` against Jason's version).
* Patch your ikiwiki [templates][] to use a `DOCTYPE` supporting
- MathML ([[mdwn_itex-templates.patch|mdwn_itex-templates.patch]]).
+ MathML (`mdwn_itex-templates.patch`).
* Add config options along the lines of:
# plugins to add to the default configuration
otherwise they [strip][scrubber_strip] [out][tidy_strip] the MathML
markup.
-Update: current versions of my patched files can be found in my
-ikiwiki git branch.
+Update: current versions of my patched files can be found in the
+`mdwn_itex` branch of my ikiwiki git repository.
[plugin]: http://jblevins.org/git/ikiwiki/plugins.git/plain/mdwn_itex.pm
[itex2MML]: http://golem.ph.utexas.edu/~distler/blog/itex2MML.html
+++ /dev/null
-diff -ru /usr/share/ikiwiki/templates/page.tmpl .ikiwiki/templates/page.tmpl
---- /usr/share/ikiwiki/templates/page.tmpl 2010-09-30 08:58:51.000000000 -0400
-+++ .ikiwiki/templates/page.tmpl 2010-09-30 09:10:02.000000000 -0400
-@@ -1,8 +1,12 @@
- <TMPL_IF HTML5><!DOCTYPE html>
- <html>
--<TMPL_ELSE><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
--<html xmlns="http://www.w3.org/1999/xhtml">
-+<TMPL_ELSE><?xml version="1.0" encoding="UTF-8"?>
-+<!DOCTYPE html PUBLIC
-+ "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
-+ "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
-+<html xmlns="http://www.w3.org/1999/xhtml"
-+ xmlns:math="http://www.w3.org/1998/Math/MathML"
-+ xmlns:svg="http://www.w3.org/2000/svg">
- </TMPL_IF>
- <head>
- <TMPL_IF DYNAMIC>
+++ /dev/null
-diff -u a/mdwn_itex.pm b/mdwn_itex.pm
---- a/mdwn_itex.pm 2010-09-29 17:30:37.000000000 -0400
-+++ b/mdwn_itex.pm 2010-09-29 23:59:59.713046023 -0400
-@@ -2,66 +2,70 @@
- #
- # itex to MathML plugin for IkiWiki. Based on the itex MovableType
- # plugin by Jacques Distler.
--#
--# Jason Blevins <jrblevin@sdf.lonestar.org>
--# Chapel Hill, March 16, 2008
-
- package IkiWiki::Plugin::mdwn_itex;
-
- use warnings;
- use strict;
--use IkiWiki 2.00;
-+use IkiWiki 3.00;
-
- use File::Temp qw(tempfile);
-
--my $markdown_sub;
--my %itex_pages;
--
- sub import {
-- hook(type => "getopt", id => "mdwn_itex", call => \&getopt);
-- hook(type => "htmlize", id => "mdwn", call => \&htmlize);
-- hook(type => "preprocess", id => "itex", call => \&preprocess_itex);
--}
--
--sub getopt () {
-- eval q{use Getopt::Long};
-- error($@) if $@;
-- Getopt::Long::Configure('pass_through');
-- GetOptions(
-- # Location of the itex2mml binary
-- "itex2mml=s" => \$config{itex2mml},
-- # Enable or disable numbering of \[..\] equations
-- "itex_num_equations!" => \$config{num_equations},
-- # Process all pages by default or require [[!itex ]] directive?
-- "itex_default!" => \$config{itex_default},
-- );
--
-- # Default settings
-- $config{itex2mml} = '/usr/local/bin/itex2MML' unless defined $config{itex2mml};
-- $config{itex_num_equations} = 1 unless defined $config{itex_num_equations};
-- $config{itex_default} = 0 unless defined $config{itex_default};
--}
--
--sub preprocess_itex (@) {
-- my %params = @_;
-- if (defined $params{disable}) {
-- $itex_pages{$params{page}} = 0;
-- } else {
-- $itex_pages{$params{page}} = 1;
-+ # register the plugin
-+ hook(type => "getsetup", id => "mdwn_itex", call => \&getsetup);
-+ hook(type => "checkconfig", id => "mdwn_itex", call => \&checkconfig);
-+ hook(type => "preprocess", id => "itex", call => \&preprocess);
-+ hook(type => "htmlize", id => "mdwn_itex", call => \&htmlize,
-+ longname => "Markdown + itex");
-+}
-+
-+sub getsetup () {
-+ # declare plugin options etc. for the setup file
-+ return
-+ plugin => {
-+ description => "itex to MathML conversion followed by Markdown formatting",
-+ safe => 1,
-+ rebuild => 1,
-+ section => "format",
-+ },
-+ itex2mml => {
-+ type => "string",
-+ example => '/usr/local/bin/itex2MML',
-+ description => "path to the itex2MML binary",
-+ safe => 0, # path
-+ rebuild => 0,
-+ },
-+ itex_num_equations => {
-+ type => "boolean",
-+ example => 1,
-+ description => "autonumber \[..\] equations?",
-+ safe => 1,
-+ rebuild => 1,
-+ },
-+}
-+
-+sub checkconfig () {
-+ # setup default settings
-+ if (! exists $config{itex2mml}) {
-+ $config{itex2mml} = '/usr/local/bin/itex2MML';
-+ }
-+ if (! exists $config{itex_num_equations}) {
-+ $config{itex_num_equations} = 1;
-+ }
-+ if (! exists $config{itex_default}) {
-+ $config{itex_default} = 0;
- }
-- return '';
- }
-
--# Taken from mdwn plugin and modified to call itex2MML.
- sub htmlize (@) {
-+ # convert the page contents to XHTML.
- my %params=@_;
-+
- my $content = $params{content};
- my $page = $params{page};
-
-- # Default settings
-- $itex_pages{$page} = $config{itex_default} unless defined $itex_pages{$page};
--
-- $params{content} = itex_filter($content) if $itex_pages{$page};
-+ $params{content} = itex_filter($content);
-
- return IkiWiki::Plugin::mdwn::htmlize(%params);
- }
-@@ -77,6 +81,7 @@
-
- my ($Reader, $outfile) = tempfile( UNLINK => 1 );
- my ($Writer, $infile) = tempfile( UNLINK => 1 );
-+ binmode $Writer, ":utf8";
- print $Writer "$content";
- system("$config{itex2mml} < $infile > $outfile");
- my @out = <$Reader>;
-@@ -136,6 +141,9 @@
-
- =head1 AUTHORS
-
-+W. Trevor King <wking@drexel.edu>,
-+updates to IkiWiki v3.00
-+
- Jason Blevins <jrblevin@sdf.lonestar.org>,
- itex Blosxom plugin
-
-@@ -144,6 +152,12 @@
-
- =head1 SEE ALSO
-
-+W. Trevor King's blog entry for this plugin:
-+http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/mdwn_itex/
-+
-+Jason Blevins' ikiwiki plugin:
-+http://jblevins.org/git/ikiwiki/plugins.git/plain/mdwn_itex.pm
-+
- ikiwiki Homepage:
- http://ikiwiki.info/
-
-@@ -155,6 +169,8 @@
-
- =head1 LICENSE
-
-+Copyright (C) 2010 W. Trevor King
-+
- Copyright (C) 2008 Jason Blevins
-
- Copyright (C) 2003-2007 Jacques Distler
+++ /dev/null
-#!/usr/bin/perl
-#
-# itex to MathML plugin for IkiWiki. Based on the itex MovableType
-# plugin by Jacques Distler.
-
-package IkiWiki::Plugin::mdwn_itex;
-
-use warnings;
-use strict;
-use IkiWiki 3.00;
-
-use File::Temp qw(tempfile);
-
-sub import {
- # register the plugin
- hook(type => "getsetup", id => "mdwn_itex", call => \&getsetup);
- hook(type => "checkconfig", id => "mdwn_itex", call => \&checkconfig);
- hook(type => "preprocess", id => "itex", call => \&preprocess);
- hook(type => "htmlize", id => "mdwn_itex", call => \&htmlize,
- longname => "Markdown + itex");
-}
-
-sub getsetup () {
- # declare plugin options etc. for the setup file
- return
- plugin => {
- description => "itex to MathML conversion followed by Markdown formatting",
- safe => 1,
- rebuild => 1,
- section => "format",
- },
- itex2mml => {
- type => "string",
- example => '/usr/local/bin/itex2MML',
- description => "path to the itex2MML binary",
- safe => 0, # path
- rebuild => 0,
- },
- itex_num_equations => {
- type => "boolean",
- example => 1,
- description => "autonumber \[..\] equations?",
- safe => 1,
- rebuild => 1,
- },
-}
-
-sub checkconfig () {
- # setup default settings
- if (! exists $config{itex2mml}) {
- $config{itex2mml} = '/usr/local/bin/itex2MML';
- }
- if (! exists $config{itex_num_equations}) {
- $config{itex_num_equations} = 1;
- }
- if (! exists $config{itex_default}) {
- $config{itex_default} = 0;
- }
-}
-
-sub htmlize (@) {
- # convert the page contents to XHTML.
- my %params=@_;
-
- my $content = $params{content};
- my $page = $params{page};
-
- $params{content} = itex_filter($content);
-
- return IkiWiki::Plugin::mdwn::htmlize(%params);
-}
-
-sub itex_filter {
- my $content = shift;
-
- # Remove carriage returns. itex2MML expects Unix-style lines.
- $content =~ s/\r//g;
-
- # Process equation references
- $content = number_equations($content) if $config{itex_num_equations};
-
- my ($Reader, $outfile) = tempfile( UNLINK => 1 );
- my ($Writer, $infile) = tempfile( UNLINK => 1 );
- binmode $Writer, ":utf8";
- print $Writer "$content";
- system("$config{itex2mml} < $infile > $outfile");
- my @out = <$Reader>;
- close $Reader;
- close $Writer;
- eval { unlink ($infile, $outfile); };
- return join('', @out);
-}
-
-sub number_equations {
- my $body = shift;
-
- my $prefix = "eq";
- my $cls = "numberedEq";
-
- my %eqnumber;
- my $eqno=1;
-
- # add equation numbers to \[...\]
- # - introduce a wrapper-<div> and a <span> with the equation number
- while ($body =~ s/\\\[(.*?)\\\]/\n\n<div class=\"$cls\"><span>\($eqno\)<\/span>\$\$$1\$\$<\/div>\n\n/s)
- {
- $eqno++;
- }
-
- # assemble equation labels into a hash
- # - remove the \label{} command, collapse surrounding whitespace
- # - add an ID to the wrapper-<div>. prefix it to give a fighting chance
- # for the ID to be unique
- # - hash key is the equation label, value is the equation number
- while ($body =~ s/<div class=\"$cls\"><span>\((\d+)\)<\/span>\$\$((?:[^\$]|\\\$)*)\s*\\label{(\w*)}\s*((?:[^\$]|\\\$)*)\$\$<\/div>/<div class=\"$cls\" id=\"$prefix:$3\"><span>\($1\)<\/span>\$\$$2$4\$\$<\/div>/s)
- {
- $eqnumber{"$3"} = $1;
- }
-
- # add cross-references
- # - they can be either (eq:foo) or \eqref{foo}
- $body =~ s/\(eq:(\w+)\)/\(<a href=\"#$prefix:$1\">$eqnumber{"$1"}<\/a>\)/g;
- $body =~ s/\\eqref\{(\w+)\}/\(<a href=\'#$prefix:$1\'>$eqnumber{"$1"}<\/a>\)/g;
-
- return $body;
-}
-
-1
-
- __END__
-
-=head1 NAME
-
-ikiwiki Plug-in: mdwn_itex
-
-=head1 SYNOPSIS
-
-Processes embedded itex (LaTeX-based) expressions in pages and converts
-them to MathML. Also provides equation-numbering as described on
-Jacques Distler's itex2MML commands page.
-
-=head1 AUTHORS
-
-W. Trevor King <wking@drexel.edu>,
-updates to IkiWiki v3.00
-
-Jason Blevins <jrblevin@sdf.lonestar.org>,
-itex Blosxom plugin
-
-Jacques Distler <distler@golem.ph.utexas.edu>,
-itex2MML and itex2MML Movable Type Plugin
-
-=head1 SEE ALSO
-
-W. Trevor King's blog entry for this plugin:
-http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/mdwn_itex/
-
-Jason Blevins' ikiwiki plugin:
-http://jblevins.org/git/ikiwiki/plugins.git/plain/mdwn_itex.pm
-
-ikiwiki Homepage:
-http://ikiwiki.info/
-
-ikiwiki Plugin Documentation:
-http://ikiwiki.info/plugins/write/
-
-itex2MML commands:
-http://golem.ph.utexas.edu/~distler/blog/itex2MML.html
-
-=head1 LICENSE
-
-Copyright (C) 2010 W. Trevor King
-
-Copyright (C) 2008 Jason Blevins
-
-Copyright (C) 2003-2007 Jacques Distler
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
which adjusts the default LaTeX margins to pack more content into a
single page.
-[with]: http://www.physics.drexel.edu/~wking/courses/phys102_s08/notes/rec1_sols.pdf
-[without]: http://www.physics.drexel.edu/~wking/courses/phys102_s08/notes/rec1_probs.pdf
-[source]: http://www.physics.drexel.edu/~wking/courses/phys102_s08/latex/notes/rec1/
-[w09]: http://www.physics.drexel.edu/~wking/courses/phys201_w09/source/
-[sp09]: http://www.physics.drexel.edu/~wking/courses/phys201_s09/source/
-[su09]: http://www.physics.drexel.edu/~wking/courses/phys102_sum09/source/
+[with]: http://course.tremily.us/2008-spring-phys102/notes/rec1_sols.pdf
+[without]: http://course.tremily.us/2008-spring-phys102/notes/rec1_probs.pdf
+[source]: http://course.tremily.us/2008-spring-phys102/latex/notes/rec1/
+[w09]: http://course.tremily.us/2009-winter-phys201/source/
+[sp09]: http://http://course.tremily.us/2009-spring-phys201/source/
+[su09]: http://http://course.tremily.us/2009-summer-phys102/source/
[[!tag tags/code]]
[[!tag tags/latex]]
-REPO = http://www.physics.drexel.edu/~wking/code/git/problempack.git
+REPO = git://tremily.us/problempack.git
PACKAGE = problempack
.PHONY : all checkout clean
<text value="Created By:" style="font-weight: bold;"/>\r
<hbox orient="horizontal">\r
<text value="W. Trevor King" class="text-link"\r
- onclick="window.open('http://www.physics.drexel.edu/~wking/'); window.close();"/>\r
+ onclick="window.open('http://tremily.us/'); window.close();"/>\r
</hbox>\r
<separator class="thin"/>\r
<text value="Home Page:" style="font-weight: bold;"/>\r
- <text value="http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/rel-vcs/"\r
+ <text value="http://blog.tremily.us/posts/rel-vcs/"\r
class="text-link"\r
- onclick="window.open('http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/rel-vcs/'); window.close();"/>\r
+ onclick="window.open('http://blog.tremily.us/posts/rel-vcs/'); window.close();"/>\r
<separator class="thin"/>\r
</vbox>\r
</groupbox>\r
<em:name>rel-vcs</em:name>\r
<em:description>Displays an icon to indicate presence of a rel-vcs link in the web page.</em:description>\r
<em:creator>W. Trevor King</em:creator>\r
- <em:homepageURL>http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/rel-vcs/</em:homepageURL>\r
+ <em:homepageURL>http://blog.tremily.us/posts/rel-vcs/</em:homepageURL>\r
\r
<em:iconURL>chrome://rel-vcs/skin/logo.png</em:iconURL>\r
<em:aboutURL>chrome://rel-vcs/content/about.xul</em:aboutURL>\r
send_pgp_mime -H <(echo "$HEAD") -B <(echo "$BODY") --mode sign
done
-Note that I'm brushing some `gpg-agent` details under the rug. `man
+Note that I'm brushing some [[gpg-agent]] details under the rug. `man
gpg-agent` does a reasonable job of clarifying.
-[send_pgp_mime.py]: http://www.physics.drexel.edu/~wking/code/git/gitweb.cgi?p=be.git;a=blob;f=interfaces/email/interactive/send_pgp_mime.py
+[send_pgp_mime.py]: http://git.tremily.us/?p=be.git;a=blob;f=interfaces/email/interactive/send_pgp_mime.py;hb=HEAD
[RFC 3156]: http://www.ietf.org/rfc/rfc3156.txt
[[!tag tags/linux]]
-* [Homepage](http://www.physics.drexel.edu/~wking/)
+* [Homepage](http://tremily.us/)
* [[Blog|index]]
* [[Archive|posts]]
* [[Contact]]
<span class="infobox">
Available in a [[!taglink tags/git]] repository.<br />
-Repository: <a href="<TMPL_IF url><TMPL_VAR url><TMPL_ELSE>/~wking/code/git/gitweb.cgi?p=<TMPL_VAR repo>.git</TMPL_IF>" rel="vcs-git" title="<TMPL_VAR repo> repository"><TMPL_VAR repo></a><br />
+Repository: <a href="<TMPL_IF url><TMPL_VAR url><TMPL_ELSE>git://tremily.us/<TMPL_VAR repo>.git</TMPL_IF>" rel="vcs-git" title="<TMPL_VAR repo> repository"><TMPL_VAR repo></a><br />
Author: <TMPL_UNLESS author>W. Trevor King</TMPL_UNLESS><TMPL_VAR author><br />
</span>
uses these parameters:
* repo - the name of the repository.
-* url - repository url. Defaults to
- `/~wking/code/git/gitweb.cgi?p=<repo>.git`.
+* url - repository url. Defaults to `git://tremily.us/<repo>.git`.
* author - the author of the branch. Defaults to `W. Trevor King`.
It also automatically tags the branch with `tags/git`.