W. Trevor King [Wed, 15 Feb 2012 15:03:18 +0000 (10:03 -0500)]
Convert my NFS-root howto from LaTeX to Markdown.
W. Trevor King [Tue, 14 Feb 2012 01:54:34 +0000 (20:54 -0500)]
Add comment to SNI post saying that you don't need any special configuration.
W. Trevor King [Mon, 13 Feb 2012 20:02:06 +0000 (15:02 -0500)]
Add SunOS post.
W. Trevor King [Mon, 13 Feb 2012 17:50:40 +0000 (12:50 -0500)]
Add `xset q` section to Fonts post and strip trailing whitespace.
W. Trevor King [Mon, 13 Feb 2012 17:25:49 +0000 (12:25 -0500)]
Fix link from Xephyr post to dedoimedo tutorial.
W. Trevor King [Mon, 13 Feb 2012 17:23:04 +0000 (12:23 -0500)]
Fix tagging in Xephyr post.
W. Trevor King [Mon, 13 Feb 2012 15:19:23 +0000 (10:19 -0500)]
Manual bisection of kernel bugs is possible using Git.
A note to myself and others who hadn't read the man page ;).
W. Trevor King [Sun, 12 Feb 2012 20:04:58 +0000 (15:04 -0500)]
Add syslog-ng post, and comment on increased git-daemon logging in gitweb post.
W. Trevor King [Sun, 12 Feb 2012 13:18:19 +0000 (08:18 -0500)]
Add workaround for blocked incoming port 25 to Postfix post.
Also convert tabs to spaces.
W. Trevor King [Sun, 12 Feb 2012 11:57:56 +0000 (06:57 -0500)]
Add browseurl option to gitrepo template.
W. Trevor King [Thu, 9 Feb 2012 16:21:57 +0000 (11:21 -0500)]
Add spam post.
W. Trevor King [Thu, 9 Feb 2012 15:46:01 +0000 (10:46 -0500)]
Add `--pdfmarks` option to pdf-merge.py.
This makes it easy get a pdfmark file from one PDF and and apply it to
another (among other things). The workflow suggested by Larry was:
On Thu, Feb 09, 2012 at 03:25:09PM +0800, Larry Cai wrote:
> 1. pdftk source.pdf dump_data_utf8 > in.info # save rawdata
> 2. pdftk A=book-cover.pdf B=source.pdf cat A1-2 B3-end output replaced.pdf
> # replace two pages for the book
> 3. pdf-convert < in.info > pdfmarks
> 4. gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf
> replaced.pdf pdfmarks # put bookmark back
With the new option, you can accomplish the same goal with
$ rm -f pdfmarks
$ pdf-convert.py --pdfmarks pdfmarks source.pdf
$ pdftk A=book-cover.pdf B=source.pdf cat A1-2 B3-end output replaced.pdf
$ pdf-convert.py --pdfmarks pdfmarks --output output.pdf replaced.pdf
With the first call to pdf-convert.py creating pdfmarks (using
`pdftk`), and the second call applying it (using `gs`).
W. Trevor King [Thu, 9 Feb 2012 11:54:34 +0000 (06:54 -0500)]
Remove `[:-len('�')]` from Unicode parsing of pdftk output in pdf-merge.py.
Thanks to Larry Cai <larry.caiyu@gmail.com> for pointing this out:
On Thu, Feb 09, 2012 at 03:25:09PM +0800, Larry Cai wrote:
> …
> When I just remove "[:-len('�')]", it seem works!!
> …
I had thought that pdftk always appended a trailing null byte to
Unicode strings, but that appears to be incorrect.
W. Trevor King [Thu, 9 Feb 2012 06:29:53 +0000 (01:29 -0500)]
Add Pecita-reduced.woff and use it for headers in local.css.
W. Trevor King [Thu, 9 Feb 2012 06:28:02 +0000 (01:28 -0500)]
Add font-reduce.py and related post.
W. Trevor King [Thu, 9 Feb 2012 06:27:18 +0000 (01:27 -0500)]
Add fonts post.
W. Trevor King [Wed, 8 Feb 2012 15:16:56 +0000 (10:16 -0500)]
Credit Larry Cai <larry.caiyu@gmail.com> for suggesting Unicode handling.
On Tue, Feb 07, 2012 at 05:25:04PM +0800, Larry Cai wrote:
> …
> it will be nice if you can continue to improve this.
> 1. support unicode
> …
W. Trevor King [Wed, 8 Feb 2012 14:56:20 +0000 (09:56 -0500)]
Add pdftk post and link other pdftk references to that post.
W. Trevor King [Wed, 8 Feb 2012 01:51:09 +0000 (20:51 -0500)]
Handle Unicode strings in pdf-merge.py.
For information on Unicode strings in PDFs, see `§7.3.4 String
Objects` and `§7.9.2.2 Text String Type` in the PDF reference [1] and
`Table 2.3 (p21)`, `Table 2.5 (p25)`, etc. in the pdfmark reference
[2].
Note that there are Ghostscript bugs [3] that can lead to errors like:
Entity: line 5: parser error : xmlParseCharRef: invalid xmlChar value 1
<rdf:Description rdf:about='
e7674657-8a09-11ec-0000-
cfd67fe5d10' xmlns:pdf='
and:
Entity: line 9: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xAC 0x26 0x23 0x32
dobe.com/xap/1.0/mm/' xapMM:DocumentID='uuid:
3792d85d-8a0b-11ec-0000-
cfd67fe5d10
when you open your generated PDF in `evince`. These bugs were fixed
in Ghostscript 9.06.
The encoding of command-line arguments are not well standardized [4],
so I supply an `--argv-encoding` option to override the locale if
necessary.
[1] Document management — Portable document format — Part 1: PDF 1.7
(PDF 32000-1:2008, July 2008
http://www.adobe.com/devnet/pdf/pdf_reference.html)
[2] pdfmark Reference
(Edition 1.0, November 2006
http://www.adobe.com/devnet/acrobat/pdfs/pdfmark_reference.pdf)
[3] http://bugs.ghostscript.com/show_bug.cgi?id=692422
[4] http://stackoverflow.com/questions/
5408730/what-is-the-encoding-of-argv
W. Trevor King [Tue, 7 Feb 2012 14:47:37 +0000 (09:47 -0500)]
Change my email address back to drexel (Verizon blocks incoming port 25).
W. Trevor King [Sat, 4 Feb 2012 17:52:52 +0000 (12:52 -0500)]
Change my email address back to drexel (Verizon blocks incoming port 25.
W. Trevor King [Fri, 27 Jan 2012 18:00:25 +0000 (13:00 -0500)]
Add `git clean` notes to notes.org.
W. Trevor King [Wed, 25 Jan 2012 13:45:04 +0000 (08:45 -0500)]
Add channel operator's guide link to irssi post.
W. Trevor King [Wed, 25 Jan 2012 04:53:30 +0000 (23:53 -0500)]
Fix IRC mini-HOWTO link in irssi post.
W. Trevor King [Wed, 25 Jan 2012 04:50:11 +0000 (23:50 -0500)]
Add irssi post.
W. Trevor King [Wed, 25 Jan 2012 04:20:59 +0000 (23:20 -0500)]
Add local IRC server post.
W. Trevor King [Tue, 24 Jan 2012 18:35:04 +0000 (13:35 -0500)]
Add the words 'telnet' to the simple server post (so I find it with grep ;).
W. Trevor King [Thu, 12 Jan 2012 18:23:50 +0000 (13:23 -0500)]
Convert scale_click.sh to scale_click.py and make clickloc scripts executable.
W. Trevor King [Wed, 11 Jan 2012 23:17:32 +0000 (18:17 -0500)]
Add OfflineIMAP patch to bugs post.
W. Trevor King [Wed, 11 Jan 2012 19:12:14 +0000 (14:12 -0500)]
Add favicon.ico (TE icon).
W. Trevor King [Wed, 11 Jan 2012 19:02:44 +0000 (14:02 -0500)]
Add HTML5 outlines post.
W. Trevor King [Wed, 11 Jan 2012 19:01:58 +0000 (14:01 -0500)]
Add geopy post.
W. Trevor King [Sun, 8 Jan 2012 17:42:02 +0000 (12:42 -0500)]
Convert Hooke's repo and commit links from Mercurial to Git.
W. Trevor King [Sun, 8 Jan 2012 17:38:34 +0000 (12:38 -0500)]
Use spaces (instead of tabs) in Mutagen post.
W. Trevor King [Fri, 30 Dec 2011 20:20:48 +0000 (15:20 -0500)]
abc2midi options inserted *after* the input filename and refnum in abcplay.py.
W. Trevor King [Mon, 19 Dec 2011 17:26:28 +0000 (12:26 -0500)]
Add mpc-stop-after-n-songs.sh.
W. Trevor King [Sat, 17 Dec 2011 18:55:03 +0000 (13:55 -0500)]
Add Mutagen post.
W. Trevor King [Sat, 17 Dec 2011 18:39:47 +0000 (13:39 -0500)]
Convert mkogg.py to use Mutagen instead of metaflac, id3v2, etc.
The command line tools are limited compared with Mutagen:
* metaflac doesn't support multi-line values
* id3lib (underneath id3v2) doesn't support ID3v2.4
Also, Mutagen is already a Python library, so I don't need to convert
between native Python formats and whatever the command line program
uses.
This bumps mkogg.py to version 0.3.
W. Trevor King [Sat, 17 Dec 2011 02:09:31 +0000 (21:09 -0500)]
Add temperature bit value reading to slow_bend.py (CHANNEL_1_A_D_COUNTS).
W. Trevor King [Sat, 17 Dec 2011 01:52:50 +0000 (20:52 -0500)]
Fix names -> name_units typo in slow_bend's Monitor._make_header.
W. Trevor King [Fri, 16 Dec 2011 21:42:56 +0000 (16:42 -0500)]
Add --ambient-temperature to slow_bend.py.
W. Trevor King [Fri, 16 Dec 2011 14:41:57 +0000 (09:41 -0500)]
Remove Drexel-mail-filtering comments from contact.mdwn (since move to tremily).
W. Trevor King [Fri, 16 Dec 2011 14:18:35 +0000 (09:18 -0500)]
Adjust local.css for a cleaner layout (fewer borders, etc.).
W. Trevor King [Fri, 16 Dec 2011 14:02:28 +0000 (09:02 -0500)]
Adjust whitespace in local.css to use tabs for indentation.
W. Trevor King [Fri, 16 Dec 2011 12:02:21 +0000 (07:02 -0500)]
Change email address from drexel to tremily.
Also add section to GnuPG maintenance post about adding new user IDs.
W. Trevor King [Fri, 16 Dec 2011 00:39:19 +0000 (19:39 -0500)]
Add netCDF post.
W. Trevor King [Fri, 16 Dec 2011 00:32:33 +0000 (19:32 -0500)]
Add OpenSSH and ECDSA post.
W. Trevor King [Fri, 16 Dec 2011 00:28:38 +0000 (19:28 -0500)]
Add OfflineIMAP post.
W. Trevor King [Thu, 15 Dec 2011 19:57:55 +0000 (14:57 -0500)]
Add robots.txt, now that we're serving from the blog.tremily.us/ root.
W. Trevor King [Thu, 15 Dec 2011 19:51:13 +0000 (14:51 -0500)]
Add qgis post.
W. Trevor King [Thu, 15 Dec 2011 19:22:47 +0000 (14:22 -0500)]
Add Aspire One 722 post.
W. Trevor King [Thu, 15 Dec 2011 18:59:28 +0000 (13:59 -0500)]
Add SNI post.
W. Trevor King [Thu, 15 Dec 2011 18:57:28 +0000 (13:57 -0500)]
Move from physics.drexel.edu/~wking/unfolding-disasters to blog.tremily.us.
Also assorted cleanups and sanitation work.
W. Trevor King [Thu, 15 Dec 2011 18:52:01 +0000 (13:52 -0500)]
Add --no-hash option to mkogg.py.
Hashing is slow, so now you can avoid computing hashes to determine if
the target file has changed. You can miss small changes this way
(e.g. tag changes in the source, or changed tag handling in mkogg.py
itself), but sometimes I don't care about that enough to want to hash
my whole music collection ;).
I've also added a few more ignored and translated ID3v2 keys.
W. Trevor King [Thu, 15 Dec 2011 15:22:55 +0000 (10:22 -0500)]
Update AWStats post to use -configdir.
W. Trevor King [Fri, 9 Dec 2011 17:25:42 +0000 (12:25 -0500)]
Make bare repo globally readable (chmod 755) in git-publish.py.
W. Trevor King [Thu, 8 Dec 2011 17:13:34 +0000 (12:13 -0500)]
Update URL to RMNP map in Colorado post.
W. Trevor King [Thu, 8 Dec 2011 16:01:01 +0000 (11:01 -0500)]
Better variable quoting in passwd-gen.sh.
With the previous version, the unquoted `SET` passed to `tr` could
cause problems if Bash exapanded it to a filename. Now everything is
nicely quoted, using braces and everything. I also use
`${paramter:-word}` for all the configuration variables, which makes
it easy to override them without editing the script. For example, you
can now run:
$ DEVICE=/dev/urandom SET="[:alnum:][:punct:]" passwd-gen.sh 10
W. Trevor King [Thu, 8 Dec 2011 15:57:41 +0000 (10:57 -0500)]
Add --one-line option to find_duplicates.py.
Also add comments explaining dictionary contents and fix
ab_duplicates -> aa_duplicates
typo.
W. Trevor King [Thu, 8 Dec 2011 12:50:48 +0000 (07:50 -0500)]
Fix links and use reference link syntax in Colorado post.
Translate physics.drexel.edu to tremily.us and apply other minor
cleanups.
W. Trevor King [Thu, 8 Dec 2011 12:37:44 +0000 (07:37 -0500)]
Add AWStats post.
W. Trevor King [Thu, 8 Dec 2011 12:29:27 +0000 (07:29 -0500)]
Add Gramps-and-calendar post.
W. Trevor King [Thu, 8 Dec 2011 11:50:35 +0000 (06:50 -0500)]
Add gitweb (and git-daemon) post.
W. Trevor King [Thu, 8 Dec 2011 11:47:11 +0000 (06:47 -0500)]
Add readlink post.
W. Trevor King [Thu, 8 Dec 2011 02:28:20 +0000 (21:28 -0500)]
Adjust pinentry paths in gpg-agent-spawn.sh to pinentry.py.
Now it matches the name of my pinentry script.
W. Trevor King [Wed, 7 Dec 2011 19:10:38 +0000 (14:10 -0500)]
Add dummy --display argument to pinentry.py so it doesn't crash when called from X.
W. Trevor King [Wed, 7 Dec 2011 18:58:28 +0000 (13:58 -0500)]
Export GPG_AGENT_INFO in gpg-agent-spawn.sh.
W. Trevor King [Tue, 6 Dec 2011 19:45:37 +0000 (14:45 -0500)]
Strip trailing whitespace from SciPy and ATLAS post.
W. Trevor King [Tue, 6 Dec 2011 06:54:10 +0000 (01:54 -0500)]
Update links to related dotfile managers.
W. Trevor King [Tue, 6 Dec 2011 06:41:35 +0000 (01:41 -0500)]
Link to Steve Kemp and Sean Hammond's related dotfiles managers.
W. Trevor King [Tue, 6 Dec 2011 06:26:54 +0000 (01:26 -0500)]
Update dotfiles post now that I've split out the framework from the dotfiles.
W. Trevor King [Tue, 6 Dec 2011 03:36:28 +0000 (22:36 -0500)]
Also catch RuntimeError when importing matplotlib in slow_bend.py.
When it can't initialize the backend, the matplotlib crashes with a
runtime error. For example, I've used `~/.matplotlib/matplotlibrc` to
select the GTKAgg backend as my default. When I log in without X,
running the previous version of slow_bend.py would produce:
$ slow_bend.py --help
/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py:48: GtkWarning: IA__gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)' failed
cursors.MOVE : gdk.Cursor(gdk.FLEUR),
Traceback (most recent call last):
File "/home/wking/bin/slow_bend.py", line 39, in <module>
from matplotlib import pyplot as _pyplot
...
RuntimeError: could not create GdkCursor object
W. Trevor King [Tue, 6 Dec 2011 03:22:34 +0000 (22:22 -0500)]
Add --plot option to slow_bend.py, for displaying strip-charts.
W. Trevor King [Tue, 6 Dec 2011 02:01:28 +0000 (21:01 -0500)]
Fix default-repo help formatting in git-publish.py.
W. Trevor King [Tue, 6 Dec 2011 01:50:16 +0000 (20:50 -0500)]
Rewrite git-publish as a Python script, and add it to the blog's version control.
W. Trevor King [Mon, 5 Dec 2011 14:26:32 +0000 (09:26 -0500)]
Add `--ignore REGEXP` option to mkogg.py.
I store my music as FLAC files, but some of it originally came from
other file formats (e.g. purchased mp3s). These non-FLAC originials
get stored in '.orig' subdirectories. Now I can run:
$ mkogg.py --ignore '.*/[.]orig/.*' ...
to avoid converting these originals.
W. Trevor King [Mon, 5 Dec 2011 14:22:01 +0000 (09:22 -0500)]
Add more dropped id3v2 tags and short-key translation to mkogg.py.
The occurence of three-charachter short tag keys may be due to the
version 0.1.11 -> 0.1.12 transition in the id3v2 utility. In any
case, the new translation dictionary makes it easy to map new keys
onto already existing synonyms.
Also, we no longer attempt to parse the 'no id3v1 tag' message as if
it were another tag.
W. Trevor King [Fri, 2 Dec 2011 15:14:27 +0000 (10:14 -0500)]
Add checks for required utilities to name-by-date.sh.
W. Trevor King [Fri, 2 Dec 2011 14:52:37 +0000 (09:52 -0500)]
Add version and log-level command line options to pinentry.py and log to syslog.
W. Trevor King [Fri, 2 Dec 2011 14:23:24 +0000 (09:23 -0500)]
Add pinentry.py and mention it in gpg-agent post.
W. Trevor King [Fri, 2 Dec 2011 01:42:55 +0000 (20:42 -0500)]
Add mailcap post.
W. Trevor King [Thu, 1 Dec 2011 17:59:20 +0000 (12:59 -0500)]
Add HOSTALIASES post.
W. Trevor King [Mon, 28 Nov 2011 03:07:17 +0000 (22:07 -0500)]
Mention RPCSEC_GSS_KRB5 in Kerberos post.
W. Trevor King [Sun, 27 Nov 2011 18:54:48 +0000 (13:54 -0500)]
Add kinit-mpd.sh script, and mention it in the Kerberos post.
W. Trevor King [Tue, 22 Nov 2011 01:10:46 +0000 (20:10 -0500)]
I've removed abcmidi from my Gentoo overlay.
The package is now part of the standard Portage tree.
W. Trevor King [Mon, 21 Nov 2011 03:21:22 +0000 (22:21 -0500)]
Adjust bat.sh to find the first battery matching /sys/class/power_supply/BAT[0-9].
W. Trevor King [Mon, 21 Nov 2011 03:08:36 +0000 (22:08 -0500)]
Fix krb.conf -> krb5.conf typo in Kerberos post.
W. Trevor King [Thu, 17 Nov 2011 20:56:11 +0000 (15:56 -0500)]
Add adjustable logging verbosity to slow_bend.py.
W. Trevor King [Wed, 16 Nov 2011 02:08:33 +0000 (21:08 -0500)]
Comment on shelldap's edit command in the LDAP post.
W. Trevor King [Wed, 16 Nov 2011 00:48:25 +0000 (19:48 -0500)]
Add Postfix post.
W. Trevor King [Wed, 16 Nov 2011 00:45:14 +0000 (19:45 -0500)]
Add SMTP post.
W. Trevor King [Sun, 13 Nov 2011 12:27:26 +0000 (07:27 -0500)]
Add Gentoo-emerge instructions to the Xephyr post.
W. Trevor King [Sat, 12 Nov 2011 22:44:31 +0000 (17:44 -0500)]
Add slow_bend post.
W. Trevor King [Sat, 12 Nov 2011 21:32:41 +0000 (16:32 -0500)]
Update slow_bend.py to version 0.4.
W. Trevor King [Sat, 12 Nov 2011 21:30:06 +0000 (16:30 -0500)]
Update slow_bend.py to version 0.3.
W. Trevor King [Sat, 12 Nov 2011 21:28:32 +0000 (16:28 -0500)]
Add slow_bend.py version 0.2.
W. Trevor King [Thu, 10 Nov 2011 19:57:01 +0000 (14:57 -0500)]
Add 'wav' source and drop 'tflt' id3 tags in mkogg.py.
W. Trevor King [Thu, 10 Nov 2011 19:47:39 +0000 (14:47 -0500)]
Remove lifelines from my Gentoo overlay.
W. Trevor King [Wed, 9 Nov 2011 19:20:01 +0000 (14:20 -0500)]
Add .bashrc blurb for picking up agent info to SSH post.
Nicolas Bigaouette [Sat, 5 Nov 2011 00:15:19 +0000 (20:15 -0400)]
Add missing `set` to eselect atlas line in SciPy and ATLAS post.
Thanks to Nicolas Bigaouette for pointing this out.