Lee Maguire graded snobberies, bawdiness, hypocrisy

Posted
15 July 2005
14:32

Reading time
1 to 2 minutes

Browser word-wrap for text files

Occasionally I’ll be reading a text file in a browser window which hasn’t been formatted for a printer/terminal. But the text in Firefox doesn’t wrap, so as a result I’m sliding the horizontal scrollbar backwards and forwards to read paragraphs of text.

Is this only me? Am I the only one who deals with this? What do other people do? View text files in a tiny font in a full screen browser on a widescreen display?

My first reaction is usually to save the file and open it in a program I know supports auto word wrap. But, given wordwrapping is one of those fundamental features of HTML rendering engines, it seems like a stupid work around. Checking about:config, I’ve found an option for wordwrap inside view source (view_source.wrap_long_lines which is useful to know about) but nothing for the main browser.

I did locate a Bookmarklet: WrapLines (found here) which uses some CSS/DOM magic to force it to word wrap. And while this works, wouldn’t it be better to 1) have something like this built into the browser 2) allow it to be set as a default?


Posted
8 July 2005
12:01

Reading time
1 to 2 minutes

Tags

Stupid London is back

Hey, aren’t people in cities recently affected by acts of terrorism supposed to be super-nice to each other in the following days? Based on the interactions I witnessed on the way in to work, London appears to have skipped that.

Outside of the immediate areas effected, the only effect seems to have been security alerts and some travel disruption – i.e. London as usual. The only evidence that remains are the newspaper front pages. And for those who tuned into the saturation TV news yesterday, and those without injured friends and relatives these events may already seem distant, as if they happened in another time or city.

I was on the tube towards King’s Cross just before 9 yesterday. When they stopped the train at an earlier station and advised people to use buses or
other routes, I left the station thinking that nothing out of the ordinary was happening. I phoned the office (the cell phone network was still clear at this point) and told them what was up.

The continuing problems at King’s Cross this morning meant I made another call at the about the same time. The words were roughly the same, only the inflections had changed.

“There’s disruption on the tube this morning, I’ll be late in.”
(sarcastic tone) “Oh, has something happened?”
(sarcastic tone) “‘Power surge’.”


Posted
7 July 2005
10:30

Reading time
under a minute

Tags

Spending the day at home

The Northern Line was slightly more hellish than usual this morning. I’ve opted to spend the day at home.


Posted
24 May 2005
22:34

Reading time
4 to 6 minutes

Tags

US Government declares war on zombies

I overheard someone bitching about SPEWS blocking Telewest the other day, about how SPEWS had gone too far (seriously, are people really using SPEWS?) treating innocent users as spammers blah blah blah. The BBC story has quote from the ISP, Telewest, about why they’ve apparently been so slack about stemming the tide of spam coming from PCs infected with hidden spammer-controlled mail-engines:

“We are currently contacting affected customers to help them clean their PCs which, as you can imagine, is a time-consuming task,” it said.

Which, while it needs to be done, is exactly the wrong way to fix this. They may as well have added “and once we’ve contacted all 16,000 of the infected users we imagine nobody on our network will ever be infected with a virus or trojan ever again.”

The proper solution I’ve long supported is blocking outgoing port 25 from dynamically allocated addresses.

Now, in theory, all receiving servers could just refuse to accept mail from these addresses. Unfortunately there’s no simple way to do this. MAPS had an RBL for this purpose the dial-up user list, the “DUL”, I’ve no idea if this still publically usable, or if it’s still maintained. Regional IP registries don’t seem to record this information in a way that’s publically queryable. You might encode it into DNS in some way, but given the pathetic level of reverse DNS deployment by many providers I wouldn’t expect that to be done.

You have to stop the spam from leaving your network. You have to block it, not at the application layer – but at the network layer. Any solution that requires effort on the side of the receiver is already broken.

Today, it seems that blocking port 25 is what the US Federal Trade Commission is advising ISPs to do as part of Operation Spam Zombies.

  • block port 25 except for the outbound SMTP requirements of authenticated users of mail servers designed for client traffic. Explore implementing Authenticated SMTP on port 587 for clients who must operate outgoing mail servers.

However, the advice about port 587 seems a little confused to my mind.

The solution for “clients who must operate outgoing mail servers”, presumably those who need to send direct-to-MX mail (operators of mailing list servers, for example), is for those customers to be allocated static IP addresses, with correct and useful reverse DNS records. Just putting machines on static addresses doesn’t make them less susceptible to trojans, of course.
But it does allow for some level of “reputation” heuristics, if only to allow others to adjust their filters and back/whitelists.

Port 587, specified in RFC2476 (back in 1998), concerns how clients submit to an authenticated relay. Not necessarily operating a outgoing mail server from within the ISP’s ranges (which I take to mean a machine that performs direct-to-MX SMTP delivery).

The concept has two major benefits – firstly by separating submission and relay/delivery it should simplify the configurations and operation of mail servers and also firewall configurations. At the client end it allows you to configure the mail software on a network roaming laptop to use the same outgoing mail server without having to worry about port 25 blocking.

And note that in some circumstances it is a requirement that people relay mail though a specific, external, mail server. Some regulations require that all business mail be auditable, and usually this means using the mail server to store a copy.

If you’re already running a mail server that requires SMTP Authentication then you should make it available on port 587 as well as (or instead of) port 25. So in terms of advice – it’s not the network providing ISPs that need to be talked to – it’s the third party providers of mail relaying services, it’s the providers of mail server software, and it’s the providers of mail client software.

The second group isn’t too much of a problem. Sendmail certainly supports port 587 though its MSA (Mail Submission Agent). And, since the only real difference in protocol terms between port 25 and port 587 is that port 587 traffic must require SMTP Auth, you can get away with running another server on the other port (if that’s possible) or, as a hack, just redirect port 587 traffic to port 25 on the same address.

It’s the client software that I’d expect to be problematic. Despite being a Standards Track RFC for six-and-a-half years, I’ve never really encountered much support in mail clients.

At best, I’ve seen clients that allow you to change the port number from a default of 25 – but nothing that acknowledges the “official” status of 587. Just as a test I’ve checked the configuration of Evolution, and it makes no reference to using alternative ports at all (although you can apparently suffix “:587″ to the host name for the same effect.

Ultimately, I guess you could set up some thing locally that listens on localhost port 25 and relays on to the remote server with SMTP Auth.

If blocking port 25 is going to work on a larger scale, people need to be submitting bug reports for the software that they’re using right now.


Posted
20 May 2005
00:52

Reading time
2 to 4 minutes

Tags

Sound Juicer

Ah. One of the joys of tracking Debian unstable is that, because upgrading
is trivially easy, it’s genuinely surprising when your software noticeably changes.

Take today for example – I fire up Sound Juicer and begin the process of ripping a CD. When it’s done I plug in my iPod, launch gtkpod and try to import the new tracks. Except I can’t. The tracks have been ripped into .ogg files (that the iPod doesn’t like).

Curious… they were ripping as mp3 before. I open up the preferences dialog and find it’s been… simplified. The menu for output format consists of a drop-down with “CD Quality, Lossless / CD Quality, Lossy / Voice”. No mention of bit-rates or codecs. What’s going on?

For one of the first times ever in a Gnome app, I actually hit the “Help” button:

If you need to store tracks in the MP3 format (for example, because your portable music player only supports MP3 and not Ogg Vorbis), you will need to create a new profile. To do this, run gnome-audio-profiles-properties, press New and name it MP3. Then press Edit and set GStreamer Pipeline to audio/x-raw-int,rate=44100,channels=2 ! lame name=enc, the File Extension to mp3, and check Active. Then start Sound Juicer and select the MP3 format.

I tried it, the MP3 profile is added to the gconf database for my user (rather than the system), and it becomes available for selection in Sound Juicer (and presubaly any other app coded to use the Audio Profile). The media profile model is quite similar to the approach used in Windows Media Producer where you can define custom encoding profiles.

With previous versions of Sound Juicer the user was presented with a list of radio checkboxes “ogg”,”mp3″,”wav” etc. This had several problems – firstly the ethical pollution of having dirty semi-proprietary codecs hardcoded into your interface, some of which wouldn’t work without the inclusion of libraries that Debian doesn’t distribute itself (due to patent issues). Secondly, the user wasn’t given any ability to tweak those settings (channels, bit-rates). And thirdly the application would need to be updated every time a new codec (such as AAC) was required.

Presumably the plan is for future packages of the gstreamer libs to drop default profiles into the gconf database (they’re just XML files) on installation, meaning that people won’t have to manually add in new profiles.

Despite my initial annoyance and confusion I actually think Audio Profiles are an elegant compromise between the user-friendly configuration of Gnome apps (and Juicer is probably the perfect example of this), and the arcane command based pipeline juju of GStreamer.  I guess there are some useful possibilities (e.g. AAC encoding, creating a profile tweak the gain for European iPods, etc).

It’s a shame I didn’t know about it until after I started ripping. Oh well, as the saying goes “foo is only free if your time is worthless”. But, hey, I’m happy to spend it beta-testing the future.


Posted
15 May 2005
01:15

Reading time
about 2 minutes

Like living in a Kevin Smith movie

I brought a copy of The Sun on Saturday to get the Star Wars episode III promo DVD. My flatmate was flicking through the paper and found an advert for those Star Wars branded lottery scratchcards – with the slogan “What would you do with £40k?”.

The ad features a photo of R2-D2 in a jacuzzi-type whirlpool flanked by two washing machines (accompanied by some lubricant “on ice”, a plunger, and an “orb of love”). I can’t find an image of it online at the moment, but I found a similar one for C-3PO.

Flatmate: Well that’s sexist.

Me: Huh?

Flatmate: They’ve chosen to illustrate the women with domestic technology – washing machines. Re-enforcing the idea that house
hold chores are intrinsically female.

Me: Ahhhh. But how do you know they’re supposed to be female? R2-D2 could be gay. Those could be male washing machines. By assuming them to be female you’ve just exposed your own prejudices. Ah hah!

Flatmate: He doesn’t seem gay, though.

Me: What, because he’s short and fat?

Flatmate: Well… you know. Now, Threepio – I’d agree with you. But Artoo?

Me: Is what? His hetero life-partner?

Flatmate: It’s so difficult to tell these days isn’t it – the sexuality of non-verbal, non-humanoid fictional robots.

Me: Or household appliances.


Posted
15 May 2005
00:30

Reading time
about 2 minutes

XBox 360: Something for the ladies

Edge magazine has a big article about the XBOX 360 this month (the one in the gold Zelda box). I felt I had to share this part with you:

Allard takes Tony Hawk as a starting point and suggests different ways for non-gamers to get involved. A girl watching her brother play might be affronted by his avatar’s poor choice of clothes and use her laptop to access the Tony Hawk website’s clothing design tool. A few experimental efforts later, and she can upload a new T-shirt for him in the game. He wears it with pride, and his friends online like the look of it. And now the sister can go into business, selling her design via Live’s peer-to-peer micropayments system (previously announced at GDC). “Is she playing the game?” asks Allard. ”I don’t know, but she’s having fun.” Mum can get in on the act too. Not much of a gamer, but she’s keen to watch her son compete in one of these pro-gaming tournaments. Using a photo of herself taken with the 360′s camera, she can use a Sims 2-like system to create a recognisable avatar of herself, and get in position in the crowd, ready to cheer as her son comes in for his run.

This fits, I imagine, Microsoft’s profile of the kind of gamer the new XBox will be targetting. “Yeah, so I’m wearing clothes my little sister designed and I have a virtual representation of my mother to accompany me. Who’s up for a deathmatch?”


Posted
8 May 2005
21:42

Reading time
2 to 3 minutes

Tags

Shuffle redux

And talking of Linux hardware – much of the (minimal) fussing about getting the iPod shuffle working under Linux that I mentioned back in March is now unnecessary. The version of gtkpod in Debian/unstable now has shuffle support – and the automount process can be simplified by a simple xml file I modified from development files and dropped into /etc/hal/fdi/local-ipod.fdi. So I guess that for later distros you won’t even have to do that.

The following allows shuffle to be automounted (based on its USB id) under /media/ipod (where both gtkpod and rhythmbox look for it). (updated 2005-11-23)

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<!-- iPod Shuffle -->
<deviceinfo version="0.2">
  <device>
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
        <match key="@block.storage_device:@storage.physical_device:usb.vendor_id" int="0x05ac">
          <match key="@block.storage_device:@storage.physical_device:usb.product_id" int="0x1300">
            <merge key="volume.policy.desired_mount_point" type="string">ipod</merge>
            <merge key="volume.label" type="string">iPod: </merge>
            <append key="volume.label" type="copy_property">info.product</append>
            <merge key="volume.policy.mount_option.check=r" type="bool">true</merge>
            <merge key="volume.policy.mount_option.utf8" type="bool">false</merge>
            <append key="info.capabilities" type="string"> portable_audio_player</append>
            <merge key="portable_audio_player.access_method" type="string">storage</merge>
            <merge key="portable_audio_player.type" type="string">ipod</merge>
            <merge key="portable_audio_player.storage_device" type="copy_property">info.udi</merge>
            <merge key="portable_audio_player.output_formats" type="strlist">audio/mpeg audio/x-mp3 audio/aac</merge>
            <merge key="storage.requires_eject" type="bool">true</merge>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

← Older Newer →