Joey Hess: weekend
Out at the yurt. Spent a rather rainy day finishing the floor and
hauling furnishings in up the slippery hillside. I've also spent some time
caught in the yurt trap, it's very easy to be in it and think for ages.
Out at the yurt. Spent a rather rainy day finishing the floor and
hauling furnishings in up the slippery hillside. I've also spent some time
caught in the yurt trap, it's very easy to be in it and think for ages.
Users of Debian derivatives sometimes report bugs that are not reported in the
As I've mentioned before, one of the major problems facing reliable suspend/resume is graphics reinitialisation. Modern AMD and Nvidia chipsets contain a set of bytecode scripts making up information on how to program a specific card. At boot time the BIOS executes a small native interpreter that runs these. After boot, the driver can execute the scripts itself. This removes the need to have the driver make BIOS calls, and also means that the driver can filter out commands that it feels are undesirable at the time.
Another point release
of Postr which should
fix Flickr authentication for good this time. Also the file size limit has
been increased to 20Mb to match the new Flickr limits.
The tarball is
here, and packages for Debian are being worked on next.
So, I m glad to announce the beginning of (my) 2nd openoffice.org bug triage. This triage targets 285 bugs out of 330 open oo.org bugs. The selected bug are ones which were reported against versions lower the 2.3.1 or have no version information at all.At first, the triage advanced quickly with 21% of the bugs processed during the first 24 hours and 40% during the first 10 days. This left a long trail of bugs to handle manually. The triage began for version 2.3.1, but was delayed to let version 2.4.0 to propagate into Lenny, as that was Rene’s preferable version to release with. When the triage resumed in late April, I had a 2.4.0 available in all of our repositories (sid, testing and backprots). Which meant that everyone could verify their bugs against the same oo.org version. Bug triaging heaven (: Two thirds (66%) of the bugs were closed in this triage, most of them after a check from the submitter or myself and a few after the submitter was unresponsive and I couldn’t verify the bug myself. Verifying the bugs myself is the most demanding part of the triage. Reading each report and understanding the problem takes a lot of time. Reproducing the problem usually takes less time than understand it. That’s way have test cases attached to bug reports are so important. In several cases the instructions were so simple I could just open the file, check something and verify the bug. That was done in a robotic manner or in a monkey like one. These kind of attachments enables a lot of people to help with triaging, even if the lake the technical background of the program in subject. So after closing 200 bugs and verifying around 100+, the oo.org bug count is set to 140 outstanding bugs, and 70 bug being forwarded to upstream. Except from about 10 bugs, all of the remaining 130 bugs are relevant for version 2.4.0. No need to wonder if the bug still occurs before reading the report…

postfwd 1.10pre7c-1 has been accepted and did hit experimental yesterday.#!/usr/bin/python import xml.dom.minidom from xml.dom.minidom import Node import sys def get_text(node): res = "" for n in node.childNodes: if n.nodeType == Node.TEXT_NODE: res += n.data return res.strip() def get_val(node, name): for n in node.childNodes: if n.nodeName == name: return get_text(n) return None doc = xml.dom.minidom.parse(sys.argv[1]) # Scan the document looking for duplicate timestamps wpt = [] last_ts = None for node in doc.getElementsByTagName("trkpt"): ts = get_val(node, "time") if last_ts != None and last_ts == ts: wpt.append(node) last_ts = ts # Add the nodes with duplicate timestamps as waypoints if len(wpt) > 0: for i in wpt: node = doc.createElement("wpt") for a in i.attributes.values(): node.setAttribute(a.name, a.value) for n in i.childNodes: node.appendChild(n.cloneNode(True)) doc.documentElement.appendChild(node) doc.writexml(sys.stdout)

Yes, me too.
I actually booked a while ago, but never got around to blogging about
it. Oh well. In case you care, my flights:
BRUSSELS IB 3207 L 02AUG 0755 LHPX2MBE 23AUG 2PC OK MADRID BARAJAS ARRIVAL TIME: 1010 TERMINAL:4 MADRID BARAJAS IB 6845 L 02AUG 1225 LHPX2MBE 23AUG 2PC OK TERMINAL:4S BUENOS AIRES EZ ARRIVAL TIME: 1940 BUENOS AIRES EZ IB 6844 N 18AUG 2145 NPRO21BE 09AUG 23AUG 2PC OK MADRID BARAJAS ARRIVAL TIME: 1430 TERMINAL:4S MADRID BARAJAS IB 3214 N 19AUG 1620 NPRO21BE 09AUG 23AUG 2PC OK TERMINAL:4 BRUSSELS ARRIVAL TIME: 1835Now most people will be taking the bus from Buenos Aires to Mar del Plata, where Debconf8 will be. However after looking at a map of Argentina, and remembering what happened when I flew to Australia with the flute choir back in 2001, when we had to do a bus ride after landing, I decided against doing the bus thing this time around. So:
BUENOS AIRES AE AR 1626 V 03AUG 2000 VVD 15K OK MAR DEL PLATA ARRIVAL TIME: 2055 MAR DEL PLATA AR 1627 V 17AUG 2120 VVD 15K OK BUENOS AIRES AE ARRIVAL TIME: 2215Which means I'll have a night in Buenos Aires in both cases, to rest and to avoid having to do the bus trip. And perhaps to see the city, too. All that's left now is not to forget about the passport thing. I'm sure I'll manage.
time bzr search socket inet_pton (about 30 hits, first one up in 1 second)... real 0m2.957s user 0m2.768s sys 0m0.180sThe index run takes some time (as you might expect, though like I noted - it hasn't been optimised as such). Once indexed, a branch will be kept up to date automatically on push/pull/commit operations. I realise search is a long slope to get good results on, but hey - I'm not trying to compete with Google :). I wanted something that had the following key characteristics: * Worked when offline * Simple to use * Easy to install Which I've achieved - I'm extremely happy with this plugin. Whats really cool though, is that other developers have picked it up and already integrated it into loggerhead and bzr-eclipse. I don't have a screen shot for loggerhead yet, but heres an old one. This old one does not show the path of a hit, nor the content summaries, which current bzr-search versions create.
“Thou shalt not whine” was written under his desk. I just discovered him recently and was presently surprised by his directness in questioning politicians and challenging them to explain things that they have said before. Like a Howard Stern of politics. Not shy to respectfully question the existing assumptions, but (unlike Howard) still remaining neutral and not drawing conclusions himself. He will be missed.
P.S. I do however feel the NBC could have included some other news in the Nightly News of the day as well. Dropping everything and just covering one man seams a bit excessive to me.
caches_pages is placed in application.rb:
class CacheFileName
include ActionController::Caching::Pages
include ActionController::Caching::Pages::ClassMethods
def cachedname(path)
page_cache_file(path)
end
end
def caches_pages()
return unless perform_caching
after_filter do c
res = c.cache_page
cfn = CacheFileName.new
cf = Cachedfile.new :filename => cfn.cachedname(c.request.path)
cf.save!
end
end
It simply caches everything. To be able to easily clear out the cache if there are any changes to the site, we record the changes in the Cachedfile model, which is defined like this:
create_table "cachedfiles", :force => true do t
t.string "filename"
t.datetime "created_at"
t.datetime "updated_at"
end
with this model:
class Cachedfile < ActiveRecord::Base
def Cachedfile.clean_cache
Cachedfile.find(:all).each do cf
begin
fn = ActionController::Base.page_cache_directory + cf.filename
File.delete fn
rescue => e
logger.error "Error deleting # fn : # e.inspect "
ensure
cf.destroy
end
end
end
end
which has a class method to go through and clean out all the cached files. I call it manually from ./script/clean_cache:
#!/usr/bin/env ruby
ENV['RAILS_ENV'] = ARGV.first ENV['RAILS_ENV'] 'development'
require File.dirname(__FILE__) + '/../config/boot'
require "# RAILS_ROOT /config/environment"
require 'console_app'
Cachedfile.clean_cache
It's not a beautiful system, but it gets the job done.
Just released emdebian-tools 1.1.5 to Emdebian. Next step is 1.2.0 for Debian unstable - one more Debian release may be needed before Lenny.... implements a large subset of Tcl and adds new features like references with garbage collection, closures, built-in Object Oriented Programming system, Functional Programming commands, First class arrays. All this with a binary size of about 85kb (that can be reduced further excluding some non-vital commands, and commands not available in Tcl itself).which has made it popular with people who need a small scripting language for things like embedded systems. Unfortunately, Salvatore hasn't had as much time to work on it as he might like, being busy with money making web things (it's tough to make money on programming languages), so it's good to see that he has added yvind Harboe as a maintainer to the project in order for it to move forward. Good luck!
This week I spent some time upgrading
PyBlosxom to version 1.4.3.
I was still using 1.2, which probably was insecure and buggy. This is the
first step in a bigger plan to replace Apache2 with
nginx in this server, but that will come
later.
I was lucky to find PyBlosxom's author,
Will, on IRC at the right time,
who kindly answered a few questions and helped solve a few issues with
the comments plugin and flavours. So, after a while, I had fixed a few subtle,
4 year old bugs in my XHTML templates and more notably, fixed lots of small
bits in the rss feed, which finally makes Liferea and
Advogato like my entries.
But, the biggest achievement was getting a brand new
comments.py plugin from Will, which allows to close comments
on entries after an expiration date. So, even if I was happily using
Mako's Akismet plugin, I still was getting 5 or 6
spams each day on very old entries (favourites being one about
Alonso visiting Val ncia
and one remembering the
70th anniversary of the Spanish Civil War).
Well, not any longer.
My dear spammers, you can now go pester someone else, or pick new entries
pretty quickly before they get closed down. It's been a nice fight, but it's
a good time to wish you go away and fuck off. With love, Jordi.
Thank you, Will!
Russ Nelson announces that the newer version of Gnash has been released. I’ve already created newer packages for it, but I cannot upload them to Debian yet, as they’re blocked for the poppler, c-ares and ffmpeg transitions. I hope to have them uploaded soon. In any case, I’ve put them here, if someone wants to try them. As the backends for the rendering, widgets and media must be decided on compile time, there’s not much to do if you want to use the most uncommon ones. The most stable and conservative option is agg and GStreamer, but I’ve also added the possibility of using OpenGL, which would be better for hardware-accelerated machines. Versions for both GTK and KDE widget systems are compiled. In a week or so they will probably be in Debian, in time for Lenny.
Improvements since 0.8.2 release are:
respawn line of every file in /etc/event.d/* is a syntax
error (?!) and, even if that's fixed, doesn't actually spawn a getty
(at least on a serial console). The implication is that you can't
Ctrl-C at the end of the build and work on the system before
rebooting, which makes diagnosing problems very difficult. I tried a
bunch of different possibilities for an event.d file (and wow is that
ever either underdocumented or obscurely documented —
I've still never found a man page or other document clearly explaining
the possible configuration options) before giving up. The Ubuntu FAI
package forces installation of sysvinit in the NFS root, and that
works fine (with the normal inittab tweaking to spawn a getty on the
serial console). upstart works fine on the newly built system,
including serial console, so I'm not sure why the NFS root is broken.
boot=live on the PXE kernel
options, including live-initramfs in the NFS root, copying the kernel and
initrd out of the NFS root into the tftp area instead of using
fai-kernels, and adding initrd to the PXE kernel options). I'm now
successfully building etch and hardy systems using our FAI setup and will
probably upgrade the production service next week.
There is one other fairly serious Ubuntu design misfeature that is only
tangentially related but that cost me a lot of time. Ubuntu has modified
update-grub to make it use ucf, which breaks the traditional update-grub
semantics in extremely strange and confusing ways that took hours for me
to diagnose.
For those who aren't familiar with the details of how update-grub works,
it uses comments in /boot/grub/menu.lst as a template to generate the
kernel list at the end of menu.lst. It's not the best design, since it
uses the same file as both a template and the active configuration file,
but it works, and has worked the same way for many years. It's simple and
reliable: you only change the defaults in the comments and then
update-grub adds in the kernel-specific information and generates the
active menu for you. If you want to edit the kernel list yourself for
some reason, don't use update-grub; it's completely optional.
To see how using ucf breaks this, remember that ucf's goal is to preserve
local changes to a configuration file, but its notion of local changes is
fundamentally contrary to how menu.lst works. Suppose that you're a large
organization with a lot of systems with a variety of kernel revisions, for
one reason or another, but with a desire to have uniform kernel parameters
like console speed and timeouts. With update-grub, you can just copy your
menu.lst template to all of your systems and run update-grub afterwards,
and update-grub will apply your new defaults and generate a new kernel
list using them. However, with Ubuntu's update-grub, it generates the
initial menu.lst and kernel list, and then when you replace that with a
fresh template, ucf sees that you've removed the kernel list. It thinks
that's a local modification, and when update-grub generates a new kernel
list, it "preserves" your modification and leaves the kernel list out of
the new menu.lst. Tada, instant unbootable system.
Even worse, this bug is sticky: you can re-run update-grub all you want,
it succeeds without errors, and it keeps generating an empty menu.lst.
This is a completely mystifying error until you dig into the details of
what's going on. To recover, you have to run ucf --purge
/var/run/grub/menu.lst (and that path, or for that matter any of the ucf
stuff, is completely undocumented in the update-grub man page) and then
re-run update-grub, at which point ucf will display a debconf prompt
(which doesn't support debconf preseeding, but that's another problem).
If you then select three-way merge (not the default) from that prompt, you
get a correct menu.lst.
I'm not sure why Ubuntu made this change, but as near as I can tell, it's
fundamentally architecturally broken. The specific problem I had was that
we were copying our template over and re-running update-grub in a
post-install script, resulting in a system that always had an empty kernel
menu and wouldn't boot. Once I finally figured out what's going on, I
worked around it by being very careful to put our template in place before
the initial system bootstrap and then never changing menu.lst afterwards,
but this is a bad limitation for a large site that scales system
administrators by automating configuration file updates. But maybe I'm
missing some subtlety. I'll go file a Launchpad bug shortly after posting
this and we'll see what happens.
Next.