Website Evangelism: Mobilizing Mozilla

Mozilla has recently (re)launched Firefox for Android, and is soon to launch Firefox OS. The success of these two products is key to our mission of keeping the web open.

However, both products are mobile products, and the mobile web is currently a WebKit-focussed semi-proprietary ecosystem.

It is vital to our success that the mobile web works well on Gecko. Much research has been done into how to do this. We control only half the experience. We can alter how we render the content we are sent, but not what content we are sent. So, we can make things a bit better by unprefixing CSS and DOM properties, fixing Gecko and User Agent string spoofing, but none of them is a silver bullet. Sometimes, the problem cannot be fixed on our side. The code uses too many WebKit-isms, or assumes it’s running on an iPhone. Just like we had to in 2000, we have to make the web better by helping developers to fix it.

We have some advantages over last time round. Not everyone has a mobile-specific website. Changing User Agent sniffing code is much easier than “rewrite your site to use neither document.layers nor document.all”. We have large desktop market share, a significant brand presence, and an enormous amount of goodwill from web developers who agree with our mission. And our community is much, much bigger.

However, we need to mobilize a significant tech evangelism effort. Currently, there are a few employees working part time on this problem. They have had some significant successes already – Google, Facebook, Twitter, Youtube, Instagram – indicating that we can make a difference this way. We have tools and metrics so we can be encouraged by progress. But the web is big, the problem is very large and we need an army. My assertion is this: unless you are directly involved in the development of Firefox OS or Firefox for Android, or have managed to get a device to test it on,

Website evangelism is the most effective way you can contribute to the Mozilla mission between now and March 2013.

(Yes, tweet that.) If you have control over your own time, and you believe in the Mozilla mission, ask yourself whether what you are doing now will have as much long-term impact as time spent doing this. Then, get involved. Geeks and non-geeks alike can make a difference here. Any questions? Lawrence Mandel is your man.

How To Be A Mozillian: How To Work In Community (Again)

At the Mozilla All Hands in 2011, I did a talk: “How To Be A Mozillian: How To Work In Community“. The first part of the talk was about how to deal with the cognitive dissonance of being hired into an open source project and so having an appointed role but yet no community reputation. It was aimed at new MoCo employees. The talk was recorded at my request, and the recording is available at the above link.

Through no fault of the video team, the recording was not very high quality, and yet several people said it was a useful resource. So in June this year, I re-recorded the first part of the talk as a voiceover and set it to the slides using OpenShot.

However, on re-listening, I felt the tone of voice was a bit wrong so I wanted to rerecord it. But, here we are, five months later and I’ve not got around to it. So, in the spirit of not letting the best be the enemy of the good, and recognising that it still has flaws, here it is. It’s only 17 minutes (unlike the original, which is 1 hour). I hope new MoCo and MoFo employees find it useful.

This video is made available under CC-BY-SA 3.0.

Upcoming Nephrectomy

On November 1st, I’ll be having my left kidney removed (background), because there is a 10cm diameter metastasis attached to it. I’d love to show you some pictures, but I don’t currently have a CD of recent scans. I hope to get one in the next few days. The operation will be done at the excellent Royal Marsden hospital in London, so our family is moving down there for a week or so. They hope to do it laparoscopically (keyhole), but scars from previous operations might mean that’s not possible. My surgeon says it’s 50/50. If they have to do open surgery, recovery time will be a bit longer.

Fortunately, God gave me two kidneys, so I don’t anticipate this producing any long-term problems. However, I will be less involved in Mozilla things for a few days.

Upcoming UA String Change: Gecko/<date> -> Gecko/<version>

Bug 588909 is now in Firefox Beta. This replaces the 20100101 date in the Firefox UA string with a version number. The date has been frozen for a long time and doesn’t give any useful information. Gecko versions and Firefox versions are now aligned, so it makes sense to have the UA string reflect that (and match what we are doing with Firefox on Android and B2G).

However, despite the date not telling people anything, some sites do seem to be detecting it (see my previous blog post). We have already deferred this change a few times as we found and evangelised sites. We can contact broken sites to get them to fix it (it should be an easy fix) and, if contacting them fails, we do have a UA string override mechanism.

If you see any sites starting to reject Firefox Beta (i.e. 17) as an unknown browser, please file evangelism bugs and then follow them up by contacting the site. You can use User Agent Switcher to check whether the problem outlined here is, in fact, what’s wrong. Thanks :-)

Calling Bank Customers

If you are a customer of one of the following banks:

  • bank.barclays.co.uk
  • becu.org
  • becuonlinebanking.org
  • bfsfcu.org
  • cenfedcu.org
  • coastal24.com
  • deutsche-bank.de
  • mtb.com
  • mandtbank.com
  • nab.com.au
  • natweststockbrokers.co.uk
  • natweststockbrokers.com
  • pnc.com
  • raiffeisen.hu

your online banking might break in Firefox 17. Please help us by contacting your bank and asking them to make a simple fix to their site. Look for the appropriate dependent bug of this bug which relates to your bank, find their contact point, send them a copy of this letter, and then comment in the bug that you’ve done so. Thank you :-)

OpenDyslexic in Firefox

Recently, Abelardo Gonzalez produced a font called OpenDyslexic, which is designed to be more readable for people who suffer from dyslexia. It’s free-as-in-freedom, so it’s OK to just download it and use it in any way you want.

It’s possible to set this font (or any font) as your default font for reading web pages in Firefox, and even to override the font choices websites make so that things always display in the font you choose.

If you would like to do that, you need to install the font in your operating system by downloading this ZIP file and double-clicking on each “.otf” file in it. This will, I hope, bring up some sort of font installation program in your operating system. Follow the instructions it gives you.

Once you’ve done that, you can set it as Firefox’s default using the lovely instructions provided on our excellent Support website.

I’m not dyslexic so I can’t give an endorsement or guarantee the results, but it seems that it helps at least some people.

Bugzilla 800,000 Bug Sweepstake Results

Milestone bugzilla.mozilla.org bug 800,000 was filed on 2012-10-10 at 09:11 ZST by Gregory Szorc. The title of the bug was initially “Buy Firefox developers some beer”, but has since been changed to “Buy the Mozilla community some beer.” This may seem a little familiar; that’s because it’s a clone of bug 700,000, which had a very similar title.

The winner of the sweepstake to guess the date and time is Josh Matthews, who guessed 2012-10-10 18:51:17 – only 9 hours and 40 minutes out. This is an improvement even on last year’s margin, which was over 20 hours. As it happens, Josh’s entry was precisely in the middle of the list of submissions, ordered by date. However, that’s including two entries which guessed dates which were already in the past at the time of the competition…

Josh writes:

I’m a Canadian, a recent university graduate, and I’ve been involved in the project for more than three years. Half my time is taken up writing code for Firefox and Servo (the prototype browser in Rust), while the rest is spent leading our efforts to make more effective use of our coding community and being more deliberate about getting new contributors involved. You might know me as the author of tools such as whatcanidoformozilla.org and Bugs Ahoy!. Outside of Mozilla, I sing in a barbershop quartet, tap dance, and take harp lessons.

The two runners-up are Scott Johnson (2d 13h 34m out) and Gordon P. Helmsley (3d 17h 16m out). Scott writes:

My name is Scott Johnson. I’m a developer for the layout team at mozilla. I haven’t been developing for mozilla for that long – only a little over a year. In that time, though, I’ve learned so much from the brilliant developers working on Firefox. My hope is that I can contribute as much as I’ve learned, since I have a real passion for free software (and mozilla software specifically, of course). The free web is important to me, because I believe that creativity is limited by the tools one has on hand. If we can take away the limitations of expensive and proprietary tools, and make it so that everyone can mold their tools to the way they create, our world will become brighter and better for everyone.

Gordon writes:

Greetings, Mozillians!

My name is Gordon P. Hemsley, but you might know me better as GPHemsley. I’ve been a user of the Mozilla codebase since the Netscape 4 days, and I filed my first bug (against ChatZilla) in 2004. I was involved in the Bespin project during its formative years, and I later helped out with Mozilla.org web development. More recently, I’ve been spearheading the effort to improve BCP 47 support in Firefox, which will help level the playing field for endangered and minority languages on the Web. In addition, I like to spend my time being an all-around bug wrangler, closing or otherwise following up on neglected and forgotten bugs.

I believe in the Mozilla mission to promote the Open Web, and I look forward to bug 900000.

All three winners will get some Mozilla swag just as soon as gear.mozilla.org is back up and running.

3D Printer: Success!

And here it is – my first print! :-)

I’m sure you will all recognise the character. The print quality is pretty good for a first attempt, although nothing like some of the pieces I’ve seen. This was achieved on Sunday evening, 30th September. I started this project on 21st of June, so it’s taken 3 1/3 months.

Of course, there is much to do from here. Lots of optimizations and tweaks and improvements to print quality. While I probably won’t be blogging about it in as much detail as I did about the build, I may write about particularly interesting things I discover…

3D Printer: Software and Calibration

As noted, the printer uses RAMPS electronics. There are a number of compatible firmwares to drive it; I chose Marlin. It’s at this point that the Mendel90 Build Manual starts getting a lot more perfunctory and vague, and I’ve been having to feel my way quite a lot more. I had a couple of days false start when I assumed that the electronics would already be loaded with firmware; it turns out they were, but only a simple testing program, which gave enough response to confuse me but not enough to make any sense! Once I’d asked the vendor and they’d clued me in, I was doing much better.

It turns out nop head (the creator of the Mendel90) has his own fork of Marlin, so using that was a start. Fortunately, I’d already stumbled across this GitHub bug warning me I’d need to use a standard baud rate rather than the default non-standard but ultra-fast one. So I tweaked a few parameters and managed to get it to load. (Side note: the Arduino IDE is, frankly, some of the worst software I have come across in many years. If any devs are reading, email me and I’ll provide more constructive feedback.) However, a few things didn’t seem to work right so I ended up porting his changes to the latest Marlin.

It’s at this testing stage that I discovered a few problems. The first was that I had taped my thermistor to my heated bed with aluminium heatproof tape. Unfortunately, the thermistor wires are uninsulated and the shiny side of this tape is conductive. This was causing intermittent shorts. I had to remove the tape, remove the heatshrink around the joints and unsolder the thermistor, and then fully insulate the thermistor wires with heatshrink before taping it back to the bed.

The second was that X and Y were homing fine, but Z wouldn’t. In the end, this was a tangle involving some missing Nophead changes, and a mistake by me in disabling the max endstops I thought I wasn’t using. I had to stick a load of echo statements in to work out what was wrong here. (Why is it that debugging with echo is always a bit easier than working out how to use whatever debugger your platform has?)

Next, the machine was not moving 10mm when told to move 10mm. This required setting the correct magic values for STEPS_PER_MM, which depends on various things like the size of your pulleys and the pitch of your leadscrews. Fortunately, I got 30 seconds of time from nop head at the Mendel90 Build Event this weekend, and he told me them out of his head :-)

Then, I had to level the bed. I managed to half-rip the screw hole out of the corner of my heated bed by adjusting the hex pillar it was standing on without loosening its bolt. :-| However, it still just about works. Unfortunately, I can’t level it in the normal way because the base into which the pillars go wasn’t tapped with a screw thread. Fortunately, an M3 washer happened to be just the right height for the needed adjustment, and so I inserted one of those into one corner and my bed was level. (Bed micro-levelling sounds to me like the sort of thing which should be fixed in software…)

Then, I had to correctly set the “0” for the Z axis. This is a number in the firmware, and it took a few tweaks to get right. For a while I had the Z height slightly too high. This meant that the first layer was being printed too close to the glass. This, in turn, meant that there was too much back pressure in the extruder, and the hobbed bolt was tearing into the filament and stopping the drive. So I got a too-thin first layer, and nothing for the further layers!

Once all of that was sorted out, I managed to get multiple layers, but they were all randomly offset from each other in the X direction! Messy. A FAQ on reprap.org saved me here; the max acceleration values for the X and Y axes were set too high. Halving those fixed that.

So here it is, finished and ready to go…

3D Printer: Wiring It Up

Various motors, switches, sensors and heaters around the machine have wires which are brought through various holes to the electronics bay and connected to the RAMPS. The moveable bed starts by using a ribbon cable, constrained by a plastic strip; once the connection is made to the frame, it changes to a couple of wires for the thermistor and another couple of higher-rated wires for the bed heater (which can draw as much as 10A). The extruder and the X motor and limit switch also use ribbon cable to connect their moving parts to static parts. They actually share a single cable, with some wires terminating at the motor and some continuing through cable grips to a D-plug which plugs into the extruder. This picture tries to show both cables:

The X/extruder cable runs from the extruder connector across the foreground, via the X motor, then down and back up vertically (to deal with Z axis movement) before going over the top to connect to the electronics. The Y cable can be seen on the base emerging from under the Y carriage, terminating at a cable clamp and being transformed into pairs of heater and thermistor wires.

So the following wires arrive in the electronics bay:

  • Power supply (yellow and black; 6 wires)
  • PSU enable (green: 1 wire)
  • Heated bed heater (blue and brown; 2 wires)
  • Heated bed thermistor (black; 2 wires)
  • X/extruder ribbon cable, carrying:
    • Extruder stepper motor (4 wires)
    • Extruder tip heater (2 wires; short red and black extensions)
    • Extruder tip thermistor (2 wires)
    • X limit switch (2 wires)
    • X stepper motor (4 wires)
  • Z limit switch (red; 2 wires)
  • Z stepper motors (multicoloured; 8 wires, because there are 2 motors)
  • Y limit switch (green; 2 wires)
  • Y stepper motor (multicoloured; 4 wires)

You can see them all connected:

The extruder heater wires had to be extended as I cut the ribbon cable a little short. The loose black wire is a guard loop to reduce interference in the ribbon cable; it needs connecting to ground when I can work out somewhere better to connect it than screwing it into the power connector.

I had a bit of a hiccup when I realised that the Molex connectors I had bought to connect the wires to the pins were fine for a single row of isolated pins, but when pins are in groups, they don’t fit because they are 2 or 3 pins wide. Fortunately, a bit of cunning wiring, the removal of some extraneous pins and the filing down of some of the connectors made it so I could squeeze everything in.