Show/Hide:

I am a programmer at heart, and I write far more code than prose. This is a log of everything I write rather than just the occasional screed or missive on some inane topic. This, then, is a truer "web log", a brief history of what I've been writing lately. If you're not interested in the code, or the prose, or whatever, you can always filter that stuff out using the toggles in the left column.

  • 2 edits in bin/treequel

Merged 233:1d06d28159a6

  • 6 edits in /

Adding the beginnings of ActiveDirectory? support, treequel shell options, server introspection.
* Treequel shell:

  • Added a few initial command-line options for connection type, bind DN, etc.
  • Made colorization of encoded and URL attributes consistent with regular ones.
  • Downcase attribute names before using them in the 'cdn' command.

* Added more server-introspection support to Treequel::Directory; added more control OIDs,

and new methods for fetching supported extensions and features.

* Adding ActiveDirectory? support to Treequel::Schema:

  • Made alterations to the parser to support ActiveDirectory?-style non-standard schema entries (OIDs in quotes, descriptors in attributeType SYNTAX attributes, etc.).
  • Handle the case where the schema doesn't have syntaxes, matching rules, and/or matching rule use entries.
  • 27 edits
    13 adds
    1 delete in /

Committing some outstanding changes from an old svn checkout, starting conversion to RSpec

(posted about one week ago)
  • 2 edits in bin/treequel

Merged with 230:b994d8d9d608

(posted about one week ago)
  • 4 edits
    1 copy
    1 add in /

Initial (untested) implementation of the sorted results control.
* Added Treequel::SortedResultsControl?
* Added an experiment for testing the sorted results control.
* Re-sorted the OID constants to be in OID order

  • 1 edit in .hgsigs

Added signature for changeset 961801a5b88a

  • 1 edit in bin/treequel

Convert the option parsers to a class global instead of a constant

  • 1 edit in lib/bluecloth.rb

Bumping version to 2.0.7.

  • 2 edits in /

Backing out the m17n fix
* I'm backing the m17n fix from #63 out, as it causes Ruby to segfault

when the results of #to_html are inspected in some situations. I'll re-release
a fix for it later.

  • 1 add in .hgsigs

Added signature for changeset 0cc074237b75

  • 1 edit in Rakefile.local

Rakefile changes:
* set the binary gem version
* clean up empty binary lib directories

  • 1 edit in lib/bluecloth.rb

It helps if you require the right library...

  • 3 edits in /

Add version-specific extension-loading for native gems.

  • 11 edits in docs/manual

Various Manual fixes.

  • 1 edit in docs/manual/layouts/default.page

Changing the backticked rev to an expanded keyword

  • 5 edits
    2 adds
    2 deletes in /

Checkpointing manual work for Mahlon

  • 1 edit in lib/arrow/config.rb

Don't try to dup immediate objects

  • 73 moves in data/arrow

Moving data into an "arrow" subdirectory so Rubygems can find them

  • 1 edit in Rakefile.local

Fix the local Rakefile

  • 3 edits in /

Updated build system

  • 7 edits
    1 add in /

Encoding bugfix for Ruby 1.9.1.
* Modified experiments/benchmark.rb to run under 1.9.1.
* HTML results now have the same encoding as the source Markdown text (fixes #63).

  • 1 edit in bin/treequel

Make treequel shell's 'cat' command error for non-existant entries

  • 1 edit in bin/treequel

Fix the 'grep' command in the Treequel shell.

  • 7 edits
    1 add in /

Operational attributes propagation and treequel shell fixes.
* Fix propagation of Treequel::Branch#include_operational_attrs flag through search.
* Made short-form 'ls' output show entries with subordinates appear with a '/'.
* Removed some old copied cruft from the treequel shell.
* Added content-sync control experiment.
* Got a little closer to content-sync control functioning.

(posted 4 weeks ago)
  • 2 edits in bin/treequel

Merged with d77a0bf26034

  • 1 edit in Rakefile

Updated build system

  • 4 edits in /

Improvements to the treequel shell, fixes for 1.9.1.
* Fixes for 1.9.1:

  • Handle the change in the URI::REGEXP namespace under 1.9.1
  • Eliminated most of the shadowed variable warnings
  • Fixed the compact 'ls' display

* Got the 'create' treequel shell command working reasonably well
* Made Treequel::Branch#object_classes raise an exception if one of the specified additional_classes

  • 2 edits in /

Eliminate duplicates when smushing RDN attributes on a Treequel::Directory#create

  • 3 edits in /

Enable native/cross-compilation, add pending Markdown-Extra table specs.

posted by Michael Granger 8 months ago in the ruby category.

I’ve been playing around with the Webkit-based HTML view that TextMate provides for HTML command output, especially to see if I could use its fancier features to make an RSpec runner that was a little shinier and had some features I find myself monkeypatching into the default TextMate runner for every project.

I’m in love with the ‘Resources’ view that bleeding-edge WebKit’s Web Inspector includes, so I set out to adapt the progress-bar half of the page to reflect the status of examples, and ended up with something I’m pretty happy with.

posted by Michael Granger 10 months ago in the ruby category.

After many weeks of pointless tweaking and perfectionist procrastination I released BlueCloth 2 yesterday, but the announcement seems to have been swallowed by the ruby-talk list server (I tried to post it twice). I’ve posted it here if anyone’s curious.

posted by Michael Granger 11 months ago in the ruby category.
posted by Michael Granger 11 months ago in the rdf category.

I’ve been working for the last 7 months or so on an RDF library for Ruby based on the Redland C library. I tried to use the bindings for it that are distributed under the redland-bindings package, but like with most SWIG-based bindings to C libraries, I found it brought me out of thinking in Ruby whenever I had to call into it. It’s not the author’s fault — a custom binding for any language takes time and a sense for its idioms — but I felt like RDF and Ruby could mesh better than the functional interface could express. I felt like scratching the itch I was feeling would not only help me learn more about Redland and RDF, but it would make the barrier to entry lower for other people interested in using Ruby together with RDF.

So I started Redleaf, and it’s pretty much at the point I wanted it to be for a 1.0 release. There’s still a few features that Redland has that aren’t accessible from Redleaf (graph contexts and transactions are the big ones), and I haven’t even tried it under 1.9 yet. I’m also pretty sure my string translation back and forth from Redland’s unsigned char *s to Ruby’s char *s will cause problems down the road (with UTF8 data, maybe?). Ruby 1.9’s strings-with-encoding are looking pretty good for that, but I have a lot of code to port before I can make the leap to 1.9.

Mostly what’s left to do is documentation work. The API docs are pretty solid, but the manual is only about 20% done. While I think I can probably release without having it done, I’d at least like it to cover the library well enough that people can start using it without too much experimentation.

So I’m off to write some more docs. Hopefully I’ll be far enough along by March that I can release it then.

posted by Michael Granger 1 years ago in the ruby category.

We recently decided to ditch ActiveRecord for our domain classes at work for Sequel. We’ve already been using Sequel for a great deal of the database work we’ve been doing lately with our usage and trending analysis tool for our NetApp GX and our render farm, and it’s really a solid piece of work that makes interacting with a database a breeze. It’s nice to be working with datasets for this kind of stuff instead of having to pull out tons of objects just to grab a sample of a single column and throw them away again. Sequel lets you use all the features of your database, but the easy stuff is just as easy.

We’ve been feeling the pain of trying to track ActiveRecord updates, and it keeps making moves further away from being a useful library in environments other than Rails. I’ve been using Sequel::Model for this site’s back end, and the ORM parts of it are just as clean and powerful as the core. We’ve already done conversions of our most-complex and most-connected classes, and we’ve spiked out all the stuff we weren’t sure of and in every case the code shrank, things got a lot less magical, and the functionality stayed the same or improved.

A salute to Jeremy Evans, Sharon Rosner, and all the other people that made Sequel so great. It’s going to be a lot of work, but I’m looking forward to it.

The last two years has given me renewed respect for PostgreSQL, too. It’s performing like a champ under a steadily-increasing load (~ 8M inserts/day), and its partitioning, tablespacing, and triggers make doing data-warehousing stuff relatively painless. It’s in big part due to the genius of our DBA that set stuff up for us initially, but it was partly his enthusiasm for it that made me motivated to dive in and start learning more.

Hopefully I can convince Mahlon to write up the work he’s been doing with partitioning and tablespaces at LAIKA.