From 467545e5b64c220250fc60239b8e4efd9cc8ca02 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 13 Oct 2010 16:25:09 -0400 Subject: [PATCH] Use gitrepo for other links into /~wking/code/git/. Unchanged links go to the root of the browsable interface: /~wking/code/git/git.php with no `p=...` query value, or to specific blobs inside the browsable interface. I also cleaned up the Gentoo overlay post an pulled in the layman.xml file. --- posts/Gentoo_overlay.mdwn | 20 ++++++++++---------- posts/Gentoo_overlay/layman.xml | 17 +++++++++++++++++ posts/LaTeX.mdwn | 5 +++-- posts/SiteCorePy.mdwn | 8 ++++---- posts/call_graph.mdwn | 8 +++++--- posts/depgraph.mdwn | 10 ++++++---- posts/dotfiles.mdwn | 5 ++--- posts/git-php.mdwn | 14 +++++++++----- posts/inline.mdwn | 6 +++--- posts/mdwn_itex.mdwn_itex | 5 +++-- 10 files changed, 62 insertions(+), 36 deletions(-) create mode 100644 posts/Gentoo_overlay/layman.xml diff --git a/posts/Gentoo_overlay.mdwn b/posts/Gentoo_overlay.mdwn index 527f449..3ea9661 100644 --- a/posts/Gentoo_overlay.mdwn +++ b/posts/Gentoo_overlay.mdwn @@ -1,14 +1,11 @@ -I broke down today and looked into [Gentoo -overlays](http://www.gentoo.org/proj/en/overlays/userguide.xml) and -[layman](http://layman.sourceforge.net/). It seems much simpler now -than it did when I last looked at it a year or so ago. I guess I'm -just more familiar with how portage works... +[[!template id=gitrepo repo=wtk-overlay]] -Anyhow, I've posted my [personal -overlay](http://www.physics.drexel.edu/~wking/code/git/git.php?p=wtk-overlay.git) -and [layman XML describing -it](http://www.physics.drexel.edu/~wking/code/layman.xml). It -currently a fairly strange mix: +I broke down today and looked into [Gentoo overlays][] and [layman][]. +It seems much simpler now than it did when I last looked at it a year +or so ago. I guess I'm just more familiar with how portage works... + +Anyhow, I've posted my personal overlay and [[layman XML|layman.xml]] +describing it. It currently a fairly strange mix: - app-misc/lifelines [Gentoo 42103](http://bugs.gentoo.org/42103) @@ -19,4 +16,7 @@ currently a fairly strange mix: - media-sound/abcmidi [Gentoo 76017](http://bugs.gentoo.org/76017) +[Gentoo overlays]: http://www.gentoo.org/proj/en/overlays/userguide.xml +[layman]: http://layman.sourceforge.net/ + [[!tag tags/linux]] diff --git a/posts/Gentoo_overlay/layman.xml b/posts/Gentoo_overlay/layman.xml new file mode 100644 index 0000000..e33c227 --- /dev/null +++ b/posts/Gentoo_overlay/layman.xml @@ -0,0 +1,17 @@ + + + + + wtk + W. Trevor King's Overlay + + http://www.physics.drexel.edu/~wking/code/git/git.php?wtk-overlay.git + + + wking@drexel.edu + + + http://www.physics.drexel.edu/~wking/code/git/wtk-overlay.git + + + diff --git a/posts/LaTeX.mdwn b/posts/LaTeX.mdwn index 5d0d03e..5a543f4 100644 --- a/posts/LaTeX.mdwn +++ b/posts/LaTeX.mdwn @@ -5,9 +5,11 @@ Hate repeating yourself? Love macros? [LaTeX][] lets you write bit tricky to get things *just right*, but once you figure it out, it's easy to reuse the code. +[[!template id=gitrepo repo=thesis]] + Take a look at [my packages][code], the [Drexel Liki page][liki], the source for most of my [papers][] (if you scroll to the bottom of a -paper's HTML, there is a `source files` link), and my [thesis][] (in +paper's HTML, there is a `source files` link), and my thesis (in progress). If you're interested in LaTeX and graphics, you'll probably be @@ -17,7 +19,6 @@ interested in [[Asymptote]] and [[PGF]]. [code]: http://www.physics.drexel.edu/~wking/code/#latex [liki]: http://www.physics.drexel.edu/liki/index.php/Latex [papers]: http://www.physics.drexel.edu/~wking/rsrch/papers -[thesis]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=thesis.git [[!tag tags/latex]] [[!tag tags/programming]] diff --git a/posts/SiteCorePy.mdwn b/posts/SiteCorePy.mdwn index 336d256..5848102 100644 --- a/posts/SiteCorePy.mdwn +++ b/posts/SiteCorePy.mdwn @@ -1,5 +1,7 @@ [[!meta title="SiteCorePy"]] [[!meta date="2010-06-24 19:52:08"]] +[[!template id=gitrepo repo=sitecorepy]] + As the Physics webmaster, I'm in charge of transitioning most of the static department content into SiteCore, as the powers that be get wise to the ways of version control. Unfortunately, I'm not the @@ -16,10 +18,8 @@ biggest fan of SiteCore. Major gripes include: something that the designers hadn't planned for, like, oh, importing data from a preexisting database. -Anyhow, to overcome the major limitation, I'm [driving my browser -through a -script](http://www.physics.drexel.edu/~wking/code/git/git.php?p=sitecorepy.git). -Thanks to the magic of +Anyhow, to overcome the major limitation, I'm driving my browser +through a script. Thanks to the magic of [WebDriver/Selenium](http://code.google.com/p/selenium/wiki/GettingStarted) for making this possible. diff --git a/posts/call_graph.mdwn b/posts/call_graph.mdwn index 4e9cd49..08e699d 100644 --- a/posts/call_graph.mdwn +++ b/posts/call_graph.mdwn @@ -1,3 +1,5 @@ +[[!template id=gitrepo repo=call_graph]] + This script scans a Python file for function dependencies, and generates code for [Graphviz dot][graphviz]. See [[depgraph]] for scripts to generate dependency graphs *between* modules. @@ -6,8 +8,10 @@ Originally by [Prashantha Ellina][original], the [script][call_graph] is good for giving you the "short view" for restructuring a single module. +[[!template id=gitrepo repo=calibrate_cantilever]] + As example, here is the callgraph of my cantilever calibration program -[calibrate_cantilever.py][]. +`calibrate_cantilever.py`. $ python construct_call_graph.py -i calibrate_cantilever.py | dot -T png -o call_graph.png @@ -17,8 +21,6 @@ As example, here is the callgraph of my cantilever calibration program [graphviz]: http://www.graphviz.org [original]: http://blog.prashanthellina.com/2007/11/14/generating-call-graphs-for-understanding-and-refactoring-python-code/ -[calibrate_cantilever.py]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=calibrate_cantilever.git -[call_graph]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=call_graph.git [[!tag tags/programming]] [[!tag tags/python]] diff --git a/posts/depgraph.mdwn b/posts/depgraph.mdwn index c5d49b2..b251000 100644 --- a/posts/depgraph.mdwn +++ b/posts/depgraph.mdwn @@ -1,9 +1,11 @@ +[[!template id=gitrepo repo=depgraph]] + This set of scripts scans a Python file for module dependencies, and generates code for [Graphviz dot][graphviz]. See [[call_graph]] for a script that generates dependency graphs *within* a module. Originally by Toby Dickenson, the scripts are good for giving you the -"long view" on how your project is organized. I've [altered][] the +"long view" on how your project is organized. I've altered the [originals][] a bit. My `py2depgraph` also prints out path information for each module, so @@ -25,7 +27,9 @@ I've also added the `depgraph2dot` methods to detect and configure the shared C libraries extending Python, so you know where to look for the code your Python depends on. -As example, here is the depgraph of my protein unfolding program [unfold.py][] +[[!template id=gitrepo repo=unfold_protein]] + +As example, here is the depgraph of my protein unfolding program `unfold.py` $ python py2depgraph.py unfold.py | python depgraph2dot.py | dot -T png -o depgraph.png @@ -40,9 +44,7 @@ in their paths. title="unfold.py dependency graph"]] [graphviz]: http://www.graphviz.org -[altered]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=depgraph.git [originals]: http://tarind.com/depgraph.html -[unfold.py]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=unfold_protein.git [[!tag tags/programming]] [[!tag tags/python]] diff --git a/posts/dotfiles.mdwn b/posts/dotfiles.mdwn index 4829816..ea7a262 100644 --- a/posts/dotfiles.mdwn +++ b/posts/dotfiles.mdwn @@ -1,12 +1,11 @@ +[[!template id=gitrepo repo=dotfiles]] + Keep all those pesky config files in one place. Inspired by (and sharing much code with) [Steve Kemp's implementation][SK] (Steve's [blog post][] gives a bit of historical background). -[dotfiles project code][code] - [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 -[code]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=dotfiles.git [[!tag tags/linux]] [[!tag tags/code]] diff --git a/posts/git-php.mdwn b/posts/git-php.mdwn index c378c15..ca09b76 100644 --- a/posts/git-php.mdwn +++ b/posts/git-php.mdwn @@ -1,7 +1,11 @@ [[!meta title="git-php"]] [[!meta date="2010-05-02 21:42:34"]] -[Peeter Vois's](http://people.proekspert.ee/peeter/) -[git-php](http://people.proekspert.ee/peeter/git/git.php?p=git-php.git) -is a nice PHP script which you can drop in to make your public Git -repo's browsable. [Take a -look](http://www.physics.drexel.edu/~wking/code/git/)! +[[!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]! + +[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 diff --git a/posts/inline.mdwn b/posts/inline.mdwn index 4600cb9..7eb9fd7 100644 --- a/posts/inline.mdwn +++ b/posts/inline.mdwn @@ -1,3 +1,5 @@ +[[!template id=gitrepo repo=ikiwiki]] + While writing the [[yacc2dot]] page I ran across some difficulties inlining raw files (i.e. those whose type/extension ikiwiki doesn't know about). Fixed with the following changes: @@ -7,6 +9,4 @@ know about). Fixed with the following changes: * New `raw.tmpl` to minimally format the raw contents (formatting still needs work). -Changes made in my [branch][] of the IkiWiki Git repository. - -[branch]: http://www.physics.drexel.edu./~wking/code/git/git.php?p=ikiwiki.git +Changes made in my branch of the IkiWiki Git repository. diff --git a/posts/mdwn_itex.mdwn_itex b/posts/mdwn_itex.mdwn_itex index 3b20549..99db83c 100644 --- a/posts/mdwn_itex.mdwn_itex +++ b/posts/mdwn_itex.mdwn_itex @@ -1,3 +1,5 @@ +[[!template id=gitrepo repo=ikiwiki]] + In my [[last post|MathML]] I plugged Jason Blevins' [mdwn_itex plugin][plugin]. It turns out that it was harder than I'd expected to get the plugin working with ikiwiki, so I'm recording the steps I took @@ -48,7 +50,7 @@ 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][git]. +ikiwiki git branch. [plugin]: http://jblevins.org/git/ikiwiki/plugins.git/plain/mdwn_itex.pm [itex2MML]: http://golem.ph.utexas.edu/~distler/blog/itex2MML.html @@ -57,6 +59,5 @@ Update: current versions of my patched files can be found in my [scrubber_strip]: http://ikiwiki.info/todo/svg/ [tidy_strip]: http://lists.w3.org/Archives/Public/html-tidy/2006JanMar/0052.html [itex]: http://golem.ph.utexas.edu/~distler/blog/itex2MMLcommands.html -[git]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=ikiwiki.git [[!tag tags/blogging]] -- 2.26.2