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.

‘Do Not Track’ and the Role of Government

Following Mitchell’s recent comments on DNT, here’s a riff from me.

There are currently two views of how Do Not Track, the standard for a browser to signal to a website that its user does not want behavioural tracking, should be enabled.

My position (and that, as far as I can tell, of the standardization group, and of many within Mozilla) is that Do Not Track is “no preference” by default (i.e. no header is sent), and must be explicitly enabled or disabled (without specifying an exact user experience). While it may change in the future, Microsoft’s current position is that users will be asked about “Do Not Track” during installation or upgrade, and the checkbox to turn it on (visible only in the non-speedy install) will be checked, and so the feature will be enabled, by default.

This made me think that the two views of “Do Not Track” correspond to some degree to two views of the role of government in innovation and user empowerment.

If you are in favour of market-driven solutions, then the power of Do Not Track comes from the fact that everyone who has it turned on has made a conscious decision to do so. This action speaks with a powerful voice in the market, and is hard to argue against. The idea is that any advertiser which refuses to respect a specific user request will suffer from a poor reputation, and loss of business. Hence, consumer pressure leads to positive change without regulation. But for this to work, it requires that the default be “off” (or “no preference”, which amounts to the same thing).

If you are in favour of regulated solutions, then the power of Do Not Track comes when governments force advertising companies to respect it. So how it gets turned on or not is a secondary question, and your goal is simply to get it enabled on the computers of as many people as possible, and get a law passed that makes website owners pay attention to it. After all, once it’s a government mandate, the advertiser has to respect it, whether the user made a choice to enable it or not. And so having it on by default allows you to make the claim that you are “protecting more users”.

I suggest that history shows us that government regulation of technology is usually written by those who don’t understand it, arrives late, and demonstrates inflexibility in the face of future innovation. The EU cookie law, as implemented in the UK, is a case in point – its net effect is that most UK websites how have to have a click-through dialog before you can continue to use them as before. I doubt that many people’s privacy has been meaningfully enhanced, and website usability has suffered.

Government-mandated DNT would not nearly be as flexible and open to further innovation as market-driven DNT. I hope we get the market-driven sort.

3D Printer: Power and Electronics

Holiday and MozCamp have delayed the project a little, and I’m a touch behind on the blogging…

Every RepRap needs power and control. There are various electronics packages available for running a RepRap, designed by different people and optimized for different things. The electronics package I have is a RAMPS v1.4, bought ready-built off eBay from China. (In order to finish this project in 2012, I decided not to solder it myself from scratch…) Amazingly, it arrived before several parts sourced at the same time from the UK! It’s based on an Arduino, with a shield to contain the specialist electronics for running the motors etc. This means that it uses standard Arduino tools, and I can probably learn how to hack the firmware without too much trouble.

The PSU is a standard modern ATX PC PSU, modded as explained on the RepRap wiki. It turns out that PC power supplies are required, presumably for legacy reasons, to provide 3.3V, 5V, -12V and +12V power and, on some, -5V as well. Fortunately, all the wire colours are standardized. RAMPS just needs 12V.

The Mendel90 design had holes for a different electronics package and also had no mounting holes for the PSU, because they aren’t standard. So I had to plan and drill all these holes myself. I ended up mounting the PSU below, and the electronics above – with the power input cord and on switch on the bottom side, but the power wires coming out near the electronics. I needed to leave room at one end of the electronics to add the optional SD card reader without it sticking out in a way that means it could get knocked or damaged.

You can see from this internal view of the PSU that I have:

  • Added a power resistor (bolted to fan holes, lower left) to the 5V bus (red) to create a small load (some PSUs won’t start without it)
  • Wired the brown 3.3V sense wire to the 3.3V bus (orange; lower right)
  • Cut away most of the remaining wires (top right, behind the yellow and black ones; a standard PC power supply seems to have 40-50 wires coming out of it with various connectors)
  • Left behind 3 12V wires (yellow), 2 on one of the 12V buses (for the heated bed) and one on the other (for everything else), plus matching ground wires
  • The green wire is apparently some auto-on switch; it has to be connected to ground. Until I figure that out, I kept it full length and wired it into a ground terminal

Investment Spam?

Today I received the following (company name changed to protect the guilty):

Hi Robert [sic],

Yoyodyne Partners is a technology buy-out fund managed by an experienced team of investors and entrepreneurs. Through committed capital and a network of strategic resources and investor relationships, Yoyodyne has the capability to build long-term value and growth for acquired businesses, thereby providing attractive exit opportunities for software company founders, shareholders and divestitures.

When it’s convenient for you, I would like to learn more about Mozilla Corporation. Please give me a call or send me an email to set it up.

Thank you,

Fred Flintstone, Partner
Yoyodyne Partners
Tech investors and Entrepreneurs
BigCity|AnotherBigCity|AThirdBigCityButStillNotSanFrancisco
555-123-1234
fflintstone@yoyodyne.com
www.yoyodyne.com

Are investors really so desperate to find companies that they’ve resorted to research-less spam? 5 minutes of research would be enough to understand why Mozilla Corporation is not available for sale…

What New Mozillians Need To Know

At MozCampEU 2012 (which was awesome), we had a “Governance Town Hall” to discuss various governance issues. For one of them, the assembled company split into groups of 6 or so to discuss the question (from memory): “What does a new Mozillian need to know to be effective and happy in their first 90 days?”

The collected feedback from the groups is now available on the Mozilla Etherpad, and has been passed to the team working on “Red Carpet”, the ‘onboarding’ (<sigh>… verbing weirds language) tool which is being developed to help all new Mozillians. If someone feels like analysing the feedback from the different groups looking for common threads, that would be super.

If you have additional answers to that question which are not represented in those lists, please send them to Mihca Degele at mlastname@mozilla.com.

A Small Minority

In any mailing list discussion, it’s easy for a small minority to give the impression that there is a great deal of dissent, by flooding the list with numerous lengthy emails. It’s a bit like a filibuster, except that the illusion of widespread dissent is even more powerful, because it’s divided across an arbitrary number of discrete posts and most people won’t bother to keep track of who said what, when. They’ll just have an instinctive impression that the topic is very controversial, and wait for the fuss to die down.

The best way to counteract this effect is to point it out very clearly and provide supporting evidence showing how small the actual number of dissenters is, compared to those in agreement.

— Karl Fogel, Producing Open Source Software

Bank Details Secrecy?

In order for someone to make a direct bank transfer into your account (an increasingly common way of moving money around, even between individuals), you need to give them your account number and sort code. This information is also printed at the bottom of cheques (I write less than 5 a year these days) and on debit cards.

Question: is there anything a person of evil intent can ‘usefully’ do with just your bank account number and sort code?

Bugzilla 800,000 Bug Sweepstake

It’s that time again! :-) The bugzilla.mozilla.org bug database will soon hit another major milestone and again, as is traditional, I’m running a sweepstake on exactly when that will be. Although you should enter just FTW, we are also giving Mozilla gear as prizes. The swag situation is a bit up in the air right now, but I’ll do my best to sort out something awesome. At least a t-shirt :-)

So please email me using this link, filling in the date and time you think bug 800,000 will be filed. As the link suggests, your entry should be on the first line of your email, and formatted as follows:

2010-09-08 06:54:32 bugzilla-id@example.com

All times are in ZST (‘Zilla Standard Time, a.k.a. Pacific Time, as displayed in Bugzilla timestamps unless you’ve changed a pref), and the email address must be your Bugzilla ID. If you prefer to be contacted on a different address, add that as well, on the end of the same line in brackets. We have ample graphs and charts (requires editbugs) to help you with your assessment. But if you can’t be bothered to do any research and analysis, just guess optimistically and hope!

This is a Mozilla community event. To keep it that way, winners must have a Bugzilla account on bugzilla.mozilla.org created before the end of July 2012, and which has done something useful in the past six months. I’ll check those who are closest, and keep discarding entries until I find one which meets these criteria. Therefore, there’s no point posting this to Slashdot or any other non-Mozilla-focussed news source. But please do post it in Mozilla news sources!

The judge’s decision is final, and any funny business regarding the filing of bugs on or around the 800,000 mark will be frowned upon. The closing date for entries is midday ZST on Wednesday 5th September 2012.

Absences

I will not be available significantly, or at all, to deal with Mozilla things during the following dates over the next month:

  • Wed 29th August – Sun 9th September
  • Mon 17th September – Fri 28th September

And the time in between those sections may well be spent dealing with whatever ultra-urgent things have cropped up. So if you send me an email and don’t get a reply, that’s why :-) Normal service will be resumed after that date.

Mini Markham II

I’d like to introduce you to Dui (a temporary name – it’s Bengali for “two”), the latest addition to our family :-) We had our 12-week scan on Friday, and are happy to report that, as far as we know, God seems to be knitting him or her together perfectly. William, who continues to be a delight and a joy to look after, has yet to comment on his new role as a big brother, but we are sure he will take to it admirably.

The due date is 13th March 2013.