tadhg.com
tadhg.com
 

Posts concerning tech

RTF/Word–reStructuredText Toolchain

12:05 24 Sep 2009. Updated: 14:19 06 Oct 2009

It took me a while to get there, but I now have a working toolchain to automate going from an RTF file (or a Word document) to reStructuredText. The final link took the longest to find, and turned out to have been right there all along (no, I’m not going to turn this into a retelling of The Alchemist). But if you’re interested in how to get from Word to a sane format (like reStructuredText), this post will interest you.
[more...]

Permalink     Comment     [, , , , , , ]    

Pool-Playing Robot: Deep Green

13:27 17 Sep 2009

The Robotics and Computer Vision Lab at Queen’s University Ontario has produced a working robotic system that can play pool. Called Deep Green, it appears to have an excellent understanding of geometry, although it’s not clear that it understands the rules of the game per se, or that it can do its own shot selection.
[more...]

Permalink     Comment     [, , , , ]    

Python Script for Subversion Status

23:48 02 Aug 2009. Updated: 11:33 06 Apr 2010

I find in my use of Subversion that I often want to see a side-by-side list of files that aren’t under version control and files that have some other status. I also want these lists to be sorted alphabetically. Naturally, I ended up writing a Python script for this.
[more...]

Permalink     Comment     [, , , , ]    

Better reST–WordPress Pipeline

23:15 28 Jul 2009

Last week I posted about my setup for going from reStructuredText to WordPress. It involved a shell script, some Python scripts, and the pbpaste and pbcopy commands. It worked, but it was a little on the convoluted side.

Now I have a slightly better process, and one that I will have used to publish this post.
[more...]

Permalink     Comment     [, , , , , , , ]    

Better Word Count in jEdit

22:33 19 Jul 2009

I tend to care about word count in my writing. I’ve never been paid by the word, but nevertheless, it matters to me. From time to time I write fiction where I set the word count in advance, and then I try to hit it precisely. Even when that’s not the case, I just like to know how many words there are in a piece I’m writing. For this reason, a "word count" function is completely critical to me for whatever word processor or text editor I’m using to write.

jEdit has such a feature. It’s more or less the same as the one that I’ve been using in AbiWord, and in various word processors before that. But for quite some time I’ve wanted a better word counter. Since jEdit is now my application for all writing and I can script for it in Python, it was time to make the word counter I wanted.
[more...]

Permalink     Comment     [, , , , , ]    

jEdit Macros in Python

16:57 17 Jul 2009. Updated: 17:52 18 Jul 2009

jEdit has long been my text editor of choice, and I’m using it more than ever now that I’m writing more or less everything in it. I’ve been waiting a while for 4.3 to come out, but overall I remain quite happy with it. I do occasionally wonder about switching to vim or Emacs, but jEdit’s generally been able to do whatever I wanted it to.

I haven’t done much scripting with it, though. I recently came up with some use cases for scripts—involving reStructuredText, naturally—but I was a little reluctant to do the scripting because it involves Java and I really want to keep my current focus on Python and JavaScript.

I was therefore rather happy to discover the existence of the JythonInterpreter plugin, which makes it possible to write macros for jEdit in Python.
[more...]

Permalink     2 Comments     [, , , , ]    

Some Character Encoding Gotchas

10:31 16 Jul 2009

While scripting my reStructuredText to WordPress workflow, I ran into a bunch of character encoding problems.
[more...]

Permalink     Comment     [, , , ]    

Blog Workflow with reStructuredText

22:57 14 Jul 2009. Updated: 23:13 28 Jul 2009

I wrote about moving my writing over to reStructuredText on Sunday, and since then I’ve moved both my morning pages and my blog writing to it. The latter proved more complicated, primarily because I wanted to make the process almost as easy as writing pseudo-HTML (which is more or less WordPress’ native format, and kind of mine, too, for the last several years). With some hacky wrangling, I’ve managed to set that up.
[more...]

Permalink     4 Comments     [, , , , , , , ]    

Moving From Word Processors to reStructuredText

23:54 12 Jul 2009. Updated: 17:17 28 Dec 2009

I’ve written before about my wish for semantic word processing tools, and two years on I still haven’t found something that suits me. I think that WYMeditor has definite promise, but unfortunately the authors are aiming that at browser-to-server functionality, rather than in-browser standalone functionality. This isn’t such a major obstacle for me, but it is one of the reasons why I’m hesitant to move over to using a project that hasn’t reached version 0.5 yet.
[more...]

Permalink     4 Comments     [, , , , ]    

WordPress 2.8 Upgrade

17:44 14 Jun 2009

Today I upgraded this blog to WordPress 2.8, a relatively smooth process. I ran into completely unrelated problems (hitting the process limit for my shell account) that derailed things for a while, but the WordPress upgrade itself was smooth.

I use Subversion to upgrade, first using
svn export --force http://core.svn.wordpress.org/tags/2.8/ .
in my development environment, seeing if things look okay there, then checking in the 2.8 changes to my own repository (the only niggly part because I neglected to clean the dev environment of changes before the export, so I had to look through things to see what was part of the upgrade), backing up my live database, and then checking the changes out to the live environment. It all looks fine, and hopefully will continue to function normally.

Permalink     Comment     [, , , , , ]    

Pylons Via Apache Port Issues

16:42 12 Jun 2009

I’ve been using Pylons (and, more recently, the Pylons-based TurboGears 2.0) for various projects for a while, and a few weeks ago ran into an annoying and specific problem: using Pylons via Apache made Pylons occasionally think it was running on a different port.

There’s a relatively easy answer to this, but until I was reading through TurboGears documentation, I didn’t find it.
[more...]

Permalink     Comment     [, , , , , ]    

PyWebSF: Meetup for SF-Area Python Web Developers

22:07 09 Jun 2009. Updated: 19:42 11 Jun 2009

My brother is organizing what will hopefully become a regular web-centric Python meeting. The first meeting is planned for 18:00 Tue 23 Jun 2009 at the SF Public Library. I think a couple of speakers are lined up already, although I don’t have details on the talks. I’ll be there, and if you’re a Python developer with web interests, or a web developer into or curious about Python, you should attend too!

Permalink     Comment     [, , , , ]    

My Take on Twitter

15:45 08 May 2009

I’ve been using Twitter for about three months now. I was fairly skeptical about it, but decided to try it out, and while I don’t think it’s now a completely essential tool, I do find it useful.
[more...]

Permalink     1 Comment     [, , ]    

Email Service Interruption

23:33 07 May 2009. Updated: 01:35 08 May 2009

My email server was down earlier this evening, and when it came back up, it didn’t like something about my procmail setup. My brother noticed and shut off my procmail after a while, but for some period, emails to me were getting bounced.

So, if you happened to send me an email this evening, you should send it again.

Permalink     Comment     [, ]    

Version Control Recovery

23:40 04 May 2009

Last year, the server with my Subversion repository on it died suddenly. I’ve made several attempts to revive it, none of which have worked. I tried to get the data off of it, but had trouble doing this as well. Having been frustrated a number of times, I gradually got used to not having it… which is something I should have fought harder against.
[more...]

Permalink     Comment     [, , , , ]    

New York Strangers Help Cute Robots

12:19 12 Apr 2009

This is probably all over the net by now—I saw it via Sarah Milstein—but it’s too cool not to post about: Tweenbots.

Tweenbots are human-dependent robots that navigate the city with the help of pedestrians they encounter. Rolling at a constant speed, in a straight line, Tweenbots have a destination displayed on a flag, and rely on people they meet to read this flag and to aim them in the right direction to reach their goal.
—Kacie Kinzer, tweenbots.com, 2009

I think it’s a fascinating project, and love the fact that the tweenbots were largely helped to their destinations successfully by strangers. I immediately wanted to see experiments where different features on them, as well as different routes and different times, and possibly the presence of money on the tweenbots, would alter the results. I’d also love to see how the results would be altered by their becoming more common as a result of running tons of experiments with them…

Permalink     Comment     [, ]    

No Google Street View in Broughton

23:56 02 Apr 2009

The Guardian reports that residents of a village in Buckinghamshire phsyically prevented attempts to add street view images of their town to Google. Perhaps because I’m a sneering, post-ironic, San-Francisco-values, technocrat elitist, I find this extremely amusing. This line just makes it better:

Jacobs said there had been three burglaries in the last six weeks: “If our houses are plastered all over Google, it’s an invitation for more criminals to strike.”
—Maev Kennedy, “Coy village tells Google Street View ’spy’ to beat a retreat”, guardian.co.uk 3 April 2009

Permalink     Comment     [, , ]    

WP Plugins: Recent Commentary and Show Tags in RSS

19:38 23 Mar 2009

I finally got around to writing up docs for, and then packaging, the two WordPress plugins I’ve finished recently:

I’m currently looking at support for series in WordPress, and am considering either writing my own plugin or using/forking the Organize Series plugin.

Permalink     Comment     [, , , , , ]    

Some RSS Changes

19:44 19 Mar 2009

I’ve made some changes to my Related Posts by Tags plugin, so that it’s now possible to add the list of related posts to the RSS feed entries. As I was experimenting with this, I realized that I wanted the RSS entries to show the tags for a post as well, so I wrote a (very simple) plugin to do that, too.

As a result, those of you reading this via RSS will now see a list of tags at the end of posts, followed by links to related posts. Please let me know if this doesn’t work as intended, or if you have other comments on the change.

Permalink     5 Comments     [, , , , ]    

Yahoo!’s Website Performance Rules

16:32 12 Mar 2009. Updated: 02:38 15 Mar 2009

While I’m familiar with a lot of them, I’d never actually read Yahoo!’s performance recommendations. They’re clearly laid out, with lots of good information in there. I should have a look at changing some of my own stuff into CSS sprites, as well as some of the other suggestions—these rules make a difference to users even on sites like mine.

Except for those of you who read all this via RSS, of course.

Permalink     Comment     [, , ]    

AI and Games

18:14 26 Feb 2009

I recently came across this article about an AI program winning two Traveller competitions in the early 80s. (This was naval space combat simulation with Traveller rules, “Trillion Credit Squadron”, not roleplaying.)
[more...]

Permalink     Comment     [, , , ]    

New Blog Functionality: Recent Commentary

21:39 23 Feb 2009

I’ve had a Recent Comments section on the front-page sidebar of the site for quite some time, and decided it was time for an upgrade. The old version was straightforward: it displayed a list of the most recent comments and who made them. What I decided I wanted was, rather, a list of the posts with the most recent comments on them, how many comments there were, and a list of the people who made the comments in timestamp order.
[more...]

Permalink     Comment     [, , , , , ]    

Another Text Editor?

15:56 15 Feb 2009

Mozilla Labs recently introduced Bespin, a browser-based fully-featured text editor. I have mixed feelings about this, because I wonder if the time would be better spent working on other things (or improving other editors), but on the other hand I like the idea of a text editor written using languages that web developers can tweak, and being in the browser offers a tremendously rich framework for layout and presentation. I also wonder if it might lead to the kind of semantic “word processing” tool I’ve previously mentioned looking for.

Permalink     Comment     [, , , ]