W. Trevor King [Tue, 29 Jan 2013 18:39:40 +0000 (13:39 -0500)]
pdf-merge.py: Upgrade to Python 3.x
This probably breaks Python 2.x support. If you can't upgrade your
Python implementation, you'll have to stick to older versions of this
script.
W. Trevor King [Tue, 29 Jan 2013 18:09:15 +0000 (13:09 -0500)]
pdf-merge.py: Add KEYWORD metavar for --keyword.
This should make the `--keyword KW1 --keyword KW2 ...` usage more
obvious.
W. Trevor King [Tue, 29 Jan 2013 17:27:18 +0000 (12:27 -0500)]
pdf-merge.py: Add -v/--version option
W. Trevor King [Tue, 29 Jan 2013 17:20:52 +0000 (12:20 -0500)]
pdf-merge.py: Fix 'perserving' -> 'preserving' typo in module doctest
W. Trevor King [Tue, 29 Jan 2013 16:31:14 +0000 (11:31 -0500)]
pdfmerge.py: Bump copyright year
W. Trevor King [Tue, 29 Jan 2013 16:23:46 +0000 (11:23 -0500)]
pdf-merge.py: Update dump parser for pdftk v1.45
On Tue, Jan 29, 2013 at 08:15:57AM -0800, Tsung-Han Yang wrote:
> I've attached the dumpdata message. I've just installed pdftk on
> windows yesterday. I've attached the diff file with -u, too.
> ...
> It looks like my pdf has some metadata like "InfoBegin" without ":"
> in the line.
The new lines in the dump are due to the addition of m_begin_mark in
pdftk between v1.44.1 and v1.45:
Sid Stewart wrote:
> Added record delimiters to dump_data output to help make parsing
> more reliable.
W. Trevor King [Sun, 20 Jan 2013 20:30:57 +0000 (15:30 -0500)]
posts:mutt-ldap: Add title, README link, and PiPI tag.
W. Trevor King [Sun, 20 Jan 2013 18:38:08 +0000 (13:38 -0500)]
posts:mutt-ldap: Mention Wade and Niels and add tags
W. Trevor King [Sun, 20 Jan 2013 18:26:59 +0000 (13:26 -0500)]
mutt-ldap.py: Pulled out into its own repository
W. Trevor King [Thu, 17 Jan 2013 22:06:27 +0000 (17:06 -0500)]
script-publish.py: Fix double-spacing in <pre> by removing \n
This makes the HTML less readable, but it's not worth the trouble to
make these HTML-readability endlines optional.
W. Trevor King [Sun, 13 Jan 2013 15:23:08 +0000 (10:23 -0500)]
script-publish.py: Don't print raw strings to the log
Print their repr() instead, since the strings may contain funky
characters and missed control codes.
W. Trevor King [Sun, 13 Jan 2013 15:18:19 +0000 (10:18 -0500)]
script-publish.py: Add DOCTYPE and <meta charset="..." />
<meta charset="..." /> is new in HTML5.
W. Trevor King [Sun, 13 Jan 2013 14:52:32 +0000 (09:52 -0500)]
script-publish.py: More newlines in the output HTML source
These newlines don't affect the rendered HTML, but they make the HTML
source more readable. The `previous_tail` bit keeps unstyled text
from clobbering newlines that were attached to a preceding <br />.
W. Trevor King [Sun, 13 Jan 2013 14:45:23 +0000 (09:45 -0500)]
script-publish.py: Use -o/--output instead of -t/--target
This seems to be more conventional. As a side benefit, we can now use
-t as the short form of --term.
W. Trevor King [Sun, 13 Jan 2013 14:42:10 +0000 (09:42 -0500)]
script-publish.py: Drop empty text chunks
Firefox 10.0.11 was having trouble with:
<span style="..." />
Which, instead of being a no-op, was changing the default styling of
every element after that tag.
W. Trevor King [Sun, 13 Jan 2013 14:34:24 +0000 (09:34 -0500)]
script-publish.py: Add more control codes (reset1, reset2, ...)
These new codes were from a typescript where I had used the `reset`
command. Xterm doesn't support rs3, but I thought I'd add it for
completeness.
The reset commands are listed in order of decreasing complication
(rs3, rs2, rs1), so that if rs1 is a subset of rs2, we don't match
part of an rs2 entry with our rs1 regexp and leave the rest unmatched.
Ideally, we'll only match the low level escape codes, and compound
escapes like rs2 will be handled automatically by taking care of their
constituent parts. Until we get to that point, we'll need to be
careful about the order of ControlCodes.
W. Trevor King [Sun, 13 Jan 2013 13:49:46 +0000 (08:49 -0500)]
script-publish.py: Add debugging output for the chunk stream
So you can take a look at the raw stream before we start dumping
stuff. I also made the SGR skipping message more explicit.
W. Trevor King [Sun, 13 Jan 2013 13:24:55 +0000 (08:24 -0500)]
script-publish.py: Also reference the console_codes(4) man page
This page discusses the console escapes and control codes implemented
by the Linux console.
W. Trevor King [Sun, 13 Jan 2013 13:06:05 +0000 (08:06 -0500)]
script-publish.py: Use Unicode horizontal tabs
Replace the ControlCodeMatch instances with textual tabs, since they
are appropriately handled in `<pre>` blocks.
W. Trevor King [Sun, 13 Jan 2013 12:50:55 +0000 (07:50 -0500)]
script-publish.py: Allow emulator selection with --term
This means we have to delay ControlCode initialization until the user
has actually selected a terminal. The curses.setupterm() logic also
assumes that the selected terminal doesn't change after the initial
call. For our script, this is a safe assumption. If that assumtion
eventually breaks down, you'll have to cache the last-setup terminal
somewhere, and call setupterm() whenever the current control code's
`.term` doesn't match the cached value.
I also fixed a bug where args.encoding was not being passed to
ScriptServerApp.
W. Trevor King [Sun, 13 Jan 2013 01:10:51 +0000 (20:10 -0500)]
script-publish.py: Add my terminal-escape-to-HTML conversion script
So students can follow along (and easily archive) the instructor's
live terminal session. I convert all the escape sequences that turned
up during some simple messing around (including opening an Emacs
window), but there are surely some escape sequences that I don't catch
yet. Also, the HTML output doesn't understand anything about windows
or cursors, so anything inside a curses application (e.g. Emacs) will
probably come out horribly mangled. Still, things should recover
quickly once you get back to the command line.
If you do want to record curses sessions, you'll probably want to
record scripts with timing information and play them back in an actual
terminal emulator ;).
W. Trevor King [Wed, 9 Jan 2013 18:48:45 +0000 (13:48 -0500)]
font:GoodCityModern-reduced: Update to add a 0x20 (space)
Still compiled with:
$ font-reduce.py -r 0x9f,0x9f -t 0xfc,0xfc -o GoodCityModern-reduced.woff /usr/share/fonts/freefonts/gocmseq_.pfb
but, I just tweaked font-reduce.py, so the new font has a space
character. On Gentoo, gocmseq_.pfb is bundled in the
media-fonts/freefonts package.
W. Trevor King [Wed, 9 Jan 2013 18:40:35 +0000 (13:40 -0500)]
font:Pecita-reduced: Upgrade to Pecita 4.0.0 alpha and add 0x20 (space)
Upgrade from 3.3.0 to a recently downloaded 4.0.0 alpha and reduce with:
$ font-reduce.py -s 'http://pecita.eu/police-en.php' -l 'OFL (SIL Open Font License)' Pecita.otf
I just tweaked font-reduce.py, so the new font has a space character.
W. Trevor King [Wed, 9 Jan 2013 18:38:51 +0000 (13:38 -0500)]
font-reduce.py: Add special space handling
For some reason, FontForge doesn't like selecting spaces with
`select(('ranges',),...)`. No idea why, but this works around the
problem.
Reported-by: David Loyall <david.loyall@nebraska.gov>
W. Trevor King [Wed, 9 Jan 2013 18:20:36 +0000 (13:20 -0500)]
font-reduce.py: Improve ranges/targets error handling and logging
Now the ranges in the fontlog reflect the actual ranges (instead of
being hardcoded to match the defaults). Also raise an explicit error
if the number of ranges does not match the number of targets.
W. Trevor King [Mon, 31 Dec 2012 12:06:20 +0000 (07:06 -0500)]
mkogg.py: Upgrade from optparse to argparse
W. Trevor King [Mon, 31 Dec 2012 11:52:18 +0000 (06:52 -0500)]
mkogg.py: Prefix imports with underscores for a clean namespace
W. Trevor King [Thu, 13 Dec 2012 15:20:52 +0000 (10:20 -0500)]
posts:bugs: mention Hub "pull request warning" pull request
W. Trevor King [Mon, 10 Dec 2012 13:54:54 +0000 (08:54 -0500)]
posts:script: write up the terminal-recording utility
W. Trevor King [Sat, 8 Dec 2012 23:58:11 +0000 (18:58 -0500)]
emerge-lastsync.py: handle the never-synced case
W. Trevor King [Sat, 8 Dec 2012 23:56:47 +0000 (18:56 -0500)]
emerge-lastsync.py: use open() instead of file()
W. Trevor King [Sat, 8 Dec 2012 19:20:23 +0000 (14:20 -0500)]
posts:bugs: mention PyCuda relative .gitmodules URLs
W. Trevor King [Sat, 8 Dec 2012 19:19:26 +0000 (14:19 -0500)]
posts:bugs: mention distlib depgraph.rst merge into database.rst
W. Trevor King [Fri, 7 Dec 2012 13:20:54 +0000 (08:20 -0500)]
posts:git:notes: mention `git remote prune`
W. Trevor King [Thu, 6 Dec 2012 17:46:20 +0000 (12:46 -0500)]
emerge-status.sh: cleanup Bash command substitution and testing
W. Trevor King [Thu, 6 Dec 2012 17:45:19 +0000 (12:45 -0500)]
emerge-lastsync.py: convert lastsync.pl to Python
I don't always have Perl installed.
W. Trevor King [Thu, 6 Dec 2012 17:44:48 +0000 (12:44 -0500)]
emerge-current.sh: strip trailing whitespace
W. Trevor King [Thu, 6 Dec 2012 17:39:58 +0000 (12:39 -0500)]
posts:conky:*.sh|*.pl: add emerge scripts for conky.
Scripts are from http://conky.sourceforge.net/screenshots.html:
http://conky.sourceforge.net/emerge-current.sh
http://conky.sourceforge.net/emerge-progress.sh
http://conky.sourceforge.net/emerge-status.sh
http://conky.sourceforge.net/lastsync.pl
W. Trevor King [Wed, 5 Dec 2012 17:20:09 +0000 (12:20 -0500)]
posts:git:notes: show how to tag a file (e.g. junio-gpg-pub)
W. Trevor King [Tue, 4 Dec 2012 19:37:33 +0000 (14:37 -0500)]
posts:btrfs: use mkfs.btrfs instead of mkbtrfs
Version 0.19 of btrfs-progs installs the mkfs version.
W. Trevor King [Sun, 18 Nov 2012 15:10:10 +0000 (10:10 -0500)]
posts:bugs: mention html2text initial crowded <pre> patch
W. Trevor King [Tue, 13 Nov 2012 16:17:55 +0000 (11:17 -0500)]
posts:mlmmj: use virtual aliases to match mailing list addresses
Also convert tab indents to spaces.
W. Trevor King [Tue, 13 Nov 2012 16:17:16 +0000 (11:17 -0500)]
name-by-date.sh: change default exif field to 'Date and Time (Original)'
W. Trevor King [Mon, 12 Nov 2012 01:30:11 +0000 (20:30 -0500)]
posts:git:notes: add cat-file example
W. Trevor King [Mon, 1 Oct 2012 12:33:52 +0000 (08:33 -0400)]
post:irc-server: Convert Global.NoPAM -> Options.PAM for ngIRCd v18+.
W. Trevor King [Mon, 22 Oct 2012 18:43:11 +0000 (14:43 -0400)]
posts:bugs: reference update-copyright pull request for python-kmod.
W. Trevor King [Mon, 22 Oct 2012 17:44:40 +0000 (13:44 -0400)]
posts:bugs: add some bugs/patches (including git submodule add --branch).
W. Trevor King [Mon, 22 Oct 2012 16:04:55 +0000 (12:04 -0400)]
posts:git:notes: talk about submodule updates and the branch config option.
W. Trevor King [Thu, 18 Oct 2012 20:56:40 +0000 (16:56 -0400)]
spectrum.py: add a simple script for plotting power spectra
Sometimes you want more frequency detail than the standard
calibcant-plot.py scripts will give you. This script plots a single
(not chunked and averaged) power spectrum, which increases frequency
resolution at the expense of statistical significance. Example usage
would be something like
$ spectrum.py -f detail.png -t 'Vibration 15' -F 50000 \
calibcant/2012-10-01T16-51-15-calibcant-data.h5 /vibration/15/raw/data
W. Trevor King [Thu, 18 Oct 2012 17:10:36 +0000 (13:10 -0400)]
compare-unfold.py: add --single option for less crowded plots.
W. Trevor King [Wed, 17 Oct 2012 22:42:27 +0000 (18:42 -0400)]
gallery.py: add caption title/alt to images.
W. Trevor King [Wed, 17 Oct 2012 22:41:59 +0000 (18:41 -0400)]
gallery.py: escape XML chars (<, &, and >) in caption paragraphs.
W. Trevor King [Wed, 17 Oct 2012 22:31:21 +0000 (18:31 -0400)]
gallery.py: adjust CGIGalleryServer._image() to handle no kwargs case.
W. Trevor King [Tue, 16 Oct 2012 17:55:49 +0000 (13:55 -0400)]
compare-unfold.py: add bit-level comparison between my and Marisa's programs.
Marisa was using Prof. Yang's LabVIEW unfolder, while I use my
pyafm-based unfolder. The `compare-unfold.py` script allows bit-level
comparison between the two approaches, reading the native data saved
by each approach. Here's an example using local data on my system:
$ ./compare-unfold.py \
~/rsrch/analysis/labview-comparison/gyang/2012-10-01-unfold/ \
~/rsrch/analysis/labview-comparison/wking/unfold/
W. Trevor King [Fri, 12 Oct 2012 14:35:30 +0000 (10:35 -0400)]
git-publish.py: bump to Python 3.
W. Trevor King [Thu, 11 Oct 2012 22:19:34 +0000 (18:19 -0400)]
gyang_curve.py: reader for LabVIEW unfolding experiments.
W. Trevor King [Thu, 11 Oct 2012 22:17:24 +0000 (18:17 -0400)]
posts:aspire_one: mention sys-kernel/linux-firmware package for brcm firmware.
W. Trevor King [Sun, 30 Sep 2012 01:04:37 +0000 (21:04 -0400)]
caption: add a captioning script.
W. Trevor King [Sat, 29 Sep 2012 13:24:12 +0000 (09:24 -0400)]
scgi-test: update byte/string handling for Python 2/3 compatability.
W. Trevor King [Sat, 29 Sep 2012 12:44:00 +0000 (08:44 -0400)]
scgi-test: convert urlparse -> urllib.parse for Python 3.
W. Trevor King [Fri, 28 Sep 2012 04:33:36 +0000 (00:33 -0400)]
posts:xmodmap:gen_sampler.py: update to Python 3.
W. Trevor King [Fri, 28 Sep 2012 04:12:25 +0000 (00:12 -0400)]
posts:yacc2dot: edit the post, update script to Python 3, and rename to .py.
W. Trevor King [Fri, 28 Sep 2012 02:20:53 +0000 (22:20 -0400)]
posts:pdf-forms: fix XFDF specs link reference.
W. Trevor King [Fri, 28 Sep 2012 01:28:01 +0000 (21:28 -0400)]
post:irc-server: Convert Options.PAM -> Global.NoPAM for ngIRCd v17+.
Also replace tabs with spaces in the Markdown source.
W. Trevor King [Fri, 28 Sep 2012 00:26:14 +0000 (20:26 -0400)]
contact: update email to tremily.
W. Trevor King [Fri, 28 Sep 2012 00:08:16 +0000 (20:08 -0400)]
posts:ldap: update Python scripts to explicitly use Python 2.
python-ldap doesn't have a Python 3 version yet. I made a few other
changes to increase Python 3 compatibility, and added a full copyright
blurb to abook-ldif-cleanup.py.
W. Trevor King [Thu, 27 Sep 2012 21:12:33 +0000 (17:12 -0400)]
posts:kerberos: link to my reverse-DNS trace patch and git clone URL.
W. Trevor King [Thu, 27 Sep 2012 20:50:25 +0000 (16:50 -0400)]
posts:ldap: remove duplicate `-d 1` arguments to ldapwhoami.
W. Trevor King [Thu, 27 Sep 2012 20:22:25 +0000 (16:22 -0400)]
posts:x.509: add certificate verification examples for OpenSSL and GnuTLS.
W. Trevor King [Thu, 27 Sep 2012 18:48:43 +0000 (14:48 -0400)]
posts:ldap: mention release which fixes OpenLDAP bug 7271.
W. Trevor King [Thu, 27 Sep 2012 18:27:13 +0000 (14:27 -0400)]
posts:bugs: add link to Slink to Gitorious typo/permissions cleanup.
W. Trevor King [Wed, 26 Sep 2012 02:05:33 +0000 (22:05 -0400)]
posts:bugs: add link to SMC1211TX PCI ID patch.
W. Trevor King [Thu, 20 Sep 2012 23:04:35 +0000 (19:04 -0400)]
posts:pdf_forms: link to TextFieldFonts.java example for PDF font tweaks.
W. Trevor King [Thu, 20 Sep 2012 20:42:02 +0000 (16:42 -0400)]
posts:pdf_forms: add PDF forms post (FDF and pdftk).
W. Trevor King [Wed, 19 Sep 2012 07:08:55 +0000 (03:08 -0400)]
posts:pdf_bookemarks: fix Ubunto -> Ubuntu typo.
W. Trevor King [Mon, 17 Sep 2012 18:04:39 +0000 (14:04 -0400)]
posts:comparing_velocity_clamp_experiments: add expected unfolding force line.
For comparing crunched results against previously published numbers.
W. Trevor King [Mon, 17 Sep 2012 18:03:04 +0000 (14:03 -0400)]
posts:comparing_velocity_clamp_experiments: extract pull velocity.
For determining the expected unfolding force.
W. Trevor King [Mon, 17 Sep 2012 13:41:43 +0000 (09:41 -0400)]
local.css: add curve to the bottom-left sidebar border.
W. Trevor King [Sat, 15 Sep 2012 01:47:01 +0000 (21:47 -0400)]
posts:FRC: add reproduction of Livadaru's figure 14.
W. Trevor King [Fri, 14 Sep 2012 22:02:10 +0000 (18:02 -0400)]
posts:comparing_velocity_clamp_experiments: added post.
W. Trevor King [Fri, 14 Sep 2012 19:48:00 +0000 (15:48 -0400)]
posts:mutt: add local Postfix caveat.
W. Trevor King [Fri, 14 Sep 2012 19:28:45 +0000 (15:28 -0400)]
posts:mutt: prefer single quotes over double quotes.
W. Trevor King [Fri, 14 Sep 2012 19:27:46 +0000 (15:27 -0400)]
posts:mutt: update link for Drexel mail server address information.
W. Trevor King [Fri, 14 Sep 2012 19:05:55 +0000 (15:05 -0400)]
posts:mutt: assorted editing. no major changes.
W. Trevor King [Wed, 4 Feb 2009 18:06:00 +0000 (13:06 -0500)]
posts:mutt: copy post over from Drexel Liki.
This is my
http://www.physics.drexel.edu/liki/index.php?title=Mutt&oldid=2213
translated into Markdown. I had been the only contributor to that
liki page at that point.
W. Trevor King [Fri, 14 Sep 2012 16:32:56 +0000 (12:32 -0400)]
posts:gstreamer:beep: use argparse default values for frequency.
W. Trevor King [Fri, 14 Sep 2012 16:07:10 +0000 (12:07 -0400)]
posts:gstreamer:beep: no need to import gtk for an endless loop.
W. Trevor King [Fri, 25 Nov 2011 12:52:18 +0000 (07:52 -0500)]
posts:gstreamer:beep: refactor to create the Beep class.
Jono Bacon [Mon, 12 Oct 2009 18:59:39 +0000 (18:59 +0000)]
posts:gstreamer:beep: add Jono Bacon's GStreamer beep tutorial.
From:
http://www.jonobacon.org/2006/08/28/getting-started-with-gstreamer-with-python/
http://jonobacon.org/files/gstreamertutorial-1.py
W. Trevor King [Fri, 14 Sep 2012 12:09:55 +0000 (08:09 -0400)]
posts:postfix: make generic regexp rules more specific.
The earlier rule remapped *everything* (including the "To" addresses),
which made it hard to send email to anyone but myself ;).
W. Trevor King [Fri, 14 Sep 2012 11:50:54 +0000 (07:50 -0400)]
posts:postfix: also add a link for `relayhost`.
W. Trevor King [Fri, 14 Sep 2012 10:34:01 +0000 (06:34 -0400)]
posts:postfix: use smtp_generic_maps instead of sender_canonical_maps.
Thanks to David Craig (0x94081B81) for suggesting the shift from
canonical to generic.
I also:
* Switched from hash- to regexp- tables, because I'm mapping all
outgoing mail to the same From address.
* Added links for the various configuration parameters.
* Wrapped the first "Incoming mail" paragraph.
W. Trevor King [Wed, 12 Sep 2012 14:53:52 +0000 (10:53 -0400)]
posts:FRC: add freely rotating chain post.
W. Trevor King [Mon, 10 Sep 2012 17:14:36 +0000 (13:14 -0400)]
posts:dotfiles: fix `installation framework` link to dotfiles-framework.git.
W. Trevor King [Wed, 5 Sep 2012 17:57:15 +0000 (13:57 -0400)]
posts:git:notes: point people towards git notes ref base thread.
Thanks to Johan for the pointer:
From: Johan Herland
Subject: Re: [PATCH 0/2] Add --expand to 'git notes get-ref'
Date: Wed, 5 Sep 2012 17:58:37 +0200
Archived-At: <http://permalink.gmane.org/gmane.comp.version-control.git/204833>
On Wed, Sep 5, 2012 at 2:48 PM, W. Trevor King <wking@tremily.us> wrote:
> The second commit makes the expansion less strict about the location
> of note refs. In his initial mail introducing 'git notes', Johan says
> that note refs should live under 'refs/notes' [1]. This seems like a
> good place for local notes, but note refs from remote repos should
> probably live somewhere else (e.g. 'refs/remote-notes/' or
> 'refs/remotes/<name>/notes/'. In the initial thread there are a few
> messages talking about looking up reverse mappings under 'refs/notes/',
> but this seems to all have been before the 'refs/notes/<namespace>/'
> stage. If I'm missing a good reason to keep everything under
> 'refs/notes/', feel free to ignore the second patch.
This has been discussed a couple of times on this list, but it never
resulted in any actual changes. Read up on this thread to get some
context:
http://thread.gmane.org/gmane.comp.version-control.git/160503
W. Trevor King [Tue, 4 Sep 2012 21:44:59 +0000 (17:44 -0400)]
posts:git:notes: add missing origin/master to format-patch example.
W. Trevor King [Tue, 4 Sep 2012 01:34:12 +0000 (21:34 -0400)]
posts:Git:notes: add a quick intro to `git notes`.
W. Trevor King [Sun, 2 Sep 2012 20:29:26 +0000 (16:29 -0400)]
posts:pygrader: update description to match pygrader v0.3.
W. Trevor King [Sat, 1 Sep 2012 21:09:41 +0000 (17:09 -0400)]
gallery.py: restore `*args` handling in _ogv() and ._mp4().
This was broken by an overly exuberant:
commit
6506f908b65778cb17ef200560c2873babeb48b6
Author: W. Trevor King <wking@tremily.us>
Date: Sun Aug 12 18:53:00 2012 -0400
Pass stream into ._error() calls in gallery.py.
Avoids 502 errors when ._response() tries to .write() when stream is
None.
W. Trevor King [Thu, 30 Aug 2012 12:15:14 +0000 (08:15 -0400)]
posts:Git:notes: add commit signing example.