Shame on me... I should have uploaded this video a long time ago. I wanted to edit this video to remove pauses, add some in-band indications on who and what it is, and stuff... But after a month, I have not yet got around to do it.
On April 23, I invited C sar Y ez to present a talk on virtual memory management to my students (for the Operating Systems class). As always (this is the third time I invite him The previous iteration was on process scheduling, and is on my site as well), he gave a great class.
I still have some pending videos to upload from the other guests we had this semester, they should come shortly.
Today I released version 0.25 of my console mail client, which is a release focussed upon portability (DragonFly BSD, and MacOSX specifically).
Over the past couple of weeks I've written a fair bit of code, wondering if I want to make the jump to a graphical email client, but the conclusion for the moment has to be no.
With the scripting support built into my client, and even before then using the hooks/hacks that mutt supported, I just process mail so much more quickly than via a GUI system.
I also benefit from reading the mail on the host to which it is delivered - mail gets filtered by something like procmail, and I read it in-situa. IMAP is available if I travel, but I rarely do so.
Having a GUI client might be fun, but it would mean I'd read mail on my desktop - pretty much the only system I don't backup (except for images, videos, and local media). It would also involve running imapsync, or similar, to pull the mail in, and relaying through the remote server to avoid my ISPs poor IP-reputation.
In short I believe if I use a GUI client I'll get slower, and I'll still need the remote host regardless.
It was this time last year when I thought it was functional, but now it is functional, battle-tested, and reliable.
So I guess I'm done with email for the next few years. Maybe in that time somebody will write something better - console based for preference, GUI as a last resort, and certainly not another webmail client.
In other news ..
I had a fun interview on Monday, it went well until they admitted they couldn't afford me - so their goal is to pay a junior member a small salary and hope to get somebody senior to work part-time for a similarly minimal salary. Might work for somebody else, but it wouldn't for me right now, so on that basis I declined.
The most annoying thing about interviewing is the waiting, between the early flirting about duties and expectations, to scheduling meetings, and then awaiting decisions.
On that note I'm half-way through building a new desk which is a nice physical job I can really concentrate upon. I'm currently waiting for the stain to dry on the legs, and then I'll get the damn thing finished. It probably looks more "rustic" than "modern", but it smells nice, so that's the main thing ;)
Expect pictures when it is finished.
Oracle won their appeal regarding whether APIs are copyrightable. There'll be ongoing argument about whether Google's use of those APIs is fair use or not, and perhaps an appeal to the Supreme Court, but that's the new status quo. This will doubtless result in arguments over whether Oracle's implementation of Linux APIs in Solaris 10 was a violation of copyright or not (and presumably Google are currently checking whether they own any code that Oracle reimplemented), but that's not what I'm going to talk about today.
Oracle own some code called DTrace (Wikipedia has a good overview here - what it actually does isn't especially relevant) that was originally written as part of Solaris. When Solaris was released under the CDDL, so was DTrace. The CDDL is a file-level copyleft license with some restrictions not present in the GPL - as a result, combining GPLed code with CDDLed code will (in the absence of additional permission grants) result in a work that is under an inconsistent license and cannot legally be distributed.
Oracle wanted to make DTrace available for Linux as part of their Unbreakable Linux product. Integrating it directly into the kernel would obviously cause legal issues, so instead they implemented it as a kernel module. The copyright status of kernel modules is somewhat unclear. The GPL covers derivative works, but the definition of derivative works is a function of copyright law and judges. Making use of explicitly exported API may not be sufficient to constitute a derivative work - on the other hand, it might. This is largely untested in court. Oracle appear to believe that they're legitimate, and so have added just enough in-kernel code (and GPLed) to support DTrace, while keeping the CDDLed core of DTrace separate.
The kernel actually has two levels of exposed (non-userspace) API - those exported via EXPORT_SYMBOL() and those exported via EXPORT_SYMBOL_GPL(). Symbols exported via EXPORT_SYMBOL_GPL() may only be used by modules that claim to be GPLed, with the kernel refusing to load them otherwise. There is no technical limitation on the use of symbols exported via EXPORT_SYMBOL().
(Aside: this should not be interpreted as meaning that modules that only use symbols exported via EXPORT_SYMBOL() will not be considered derivative works. Anything exported via EXPORT_SYMBOL_GPL() is considered by the author to be so fundamental to the kernel that using it would be impossible without creating a derivative work. Using something exported via EXPORT_SYMBOL() may result in the creation of a derivative work. Consult lawyers before attempting to release a non-GPLed Linux kernel module)
DTrace integrates very tightly with the host kernel, and one of the things it needs access to is a high-resolution timer that is guaranteed to monotonically increase. Linux provides one in the form of ktime_get(). Unfortunately for Oracle, ktime_get() is only exported via EXPORT_SYMBOL_GPL(). Attempting to call it directly from the DTrace module would fail.
Oracle work around this in their (GPLed) kernel abstraction code. A function called dtrace_gethrtimer() simply returns the value of ktime_get(). dtrace_gethrtimer() is exported via EXPORT_SYMBOL() and therefore can be called from the DTrace module.
So, in the face of a technical mechanism designed to enforce the author's beliefs about the copyright status of callers of this function, Oracle deliberately circumvent that technical mechanism by simply re-exporting the same function under a new name. It should be emphasised that calling an EXPORT_SYMBOL_GPL() function does not inherently cause the caller to become a derivative work of the kernel - it only represents the original author's opinion of whether it would. You'd still need a court case to find out for sure. But if it turns out that the use of ktime_get() does cause a work to become derivative, Oracle would find it fairly difficult to argue that their infringement was accidental.
Of course, as copyright holders of DTrace, Oracle could solve the problem by dual-licensing DTrace under the GPL as well as the CDDL. The fact that they haven't implies that they think there's enough value in keeping it under an incompatible license to risk losing a copyright infringement suit. This might be just the kind of recklessness that Oracle accused Google of back in their last case.
As promised, today I would like to write a bit about the making of
The Hacker's Guide to Python. It has
been a very interesting experimentation, and I think it is worth sharing it
with you.
The inspiration
All started out at the beginning of August 2013. I was spending my summer,
as the rest of the year, hacking on OpenStack.
As years passed, I got more and more deeply involved in the various tools
that we either built or contributed to within the OpenStack community. And I
somehow got the feeling that my experience with Python, the way we used it
inside OpenStack and other applications during these last years was worth
sharing. Worth writing something bigger than a few blog posts.
The OpenStack project is doing code reviews, and therefore so did I for
almost two years. That inspired a lot of topics, like
the definitive guide to method decorators
that I wrote at the time I started the hacker's guide. Stumbling upon the
same mistakes or misunderstanding over and over is, somehow, inspiring.
I also stumbled upon Nathan Barry's blog and book
Authority which were very helpful to
get started and some sort of guideline.
All of that brought me enough ideas to start writing a book about Python
software development for people already familiar with the language.
The writing
The first thing I started to do is to list all the topics I wanted to write
about. The list turned out to have subjects that had no direct interest for
a practical guide. For example, on one hand, very few developers know in
details how metaclasses work, but on the other hand, I never had to write a
metaclass during these last years. That's the kind of subject I decided not
to write about, dropped all subjects that I felt were not going to help my
reader to be more productive. Even if they could be technically interesting.
Then, I gathered all problems I saw during the code reviews I did during
these last two years. Some of them I only recalled in the days following the
beginning of that project. But I kept adding them to the table of contents,
reorganizing stuff as needed.
After a couple of weeks, I had a pretty good overview of the contents that
there I will write about. All I had to do was to fill in the blank (that
sounds so simple now).
The entire writing of the took hundred hours spread from August to November,
during my spare time. I had to stop all my other side projects for that.
The interviews
While writing the book, I tried to parallelize every thing I could. That
included asking people for interviews to be included in the book. I already
had a pretty good list of the people I wanted to feature in the book, so I
took some time as soon as possible to ask them, and send them detailed
questions.
I discovered two categories of interviewees. Some of them were very fast to
answer ( 1 week), and others were much, much slower. A couple of them even
set up Git repositories to answer the questions, because that probably
looked like an entire project to them. :-) So I had to not lose sight and
kindly ask from time to time if everything was alright, and at some point
started to kindly set some deadline.
In the end, the quality of the answers was awesome, and I like to think that
was because I picked the right people!
The proof-reading
Once the book was finished, I somehow needed to have people proof-reading
it. This was probably the hardest part of this experiment. I needed two
different types of reviews: technical reviews, to check that the content was
correct and interesting, and language review. That one is even more
important since English is not my native language.
Finding technical reviewers seemed easy at first, as I had ton of contacts
that I identified as being able to review the book. I started by asking a
few people if they would be comfortable reading a simple chapter and giving
me feedbacks. I started to do that in September: having the writing and the
reviews done in parallel was important to me in order to minimize latency
and the book's release delay.
All people I contacted answered positively that they would be interested in
doing a technical review of a chapter. So I started to send chapters to
them. But in the end, only 20% replied back. And even after that, a large
portion stopped reviewing after a couple of chapters.
Don't get me wrong: you can't be mad at people not wanting to spend their
spare time in book edition like you do.
However, from the few people that gave their time to review a few chapters,
I got tremendous feedback, at all level. That's something that was very
important and that helped a lot getting confident. Writing a book alone for
months without having anyone taking a look upon your shoulder can make you
doubt that you are creating something worth it.
As far as English proof-reading, I went ahead and used
ODesk to recruit a professional proof-reader. I looked
for people with the right skills: a good English level (being a native
English speaker at least), be able to understand what the book was about,
and being able to work with correct delays. I had mixed results from the
people I hired, but I guess that's normal. The only error I made was not to
parallelize those reviews enough, so I probably lost a couple of months on
that.
The toolchain
While writing the book, I did a few breaks to build a toolchain. What I call
a toolchain is set of tools used to render the final PDF, EPUB and MOBI
files of the guide.
After some research, I decided to settle on
AsciiDoc, using the
DocBook output, which is then being transformed to
LaTeX, and then to PDF, or either to EPUB directly. I realy on
Calibre to convert the EPUB file to MOBI. It
took me a few hours to do what I wanted, using some magic LaTeX tricks to
have a proper render, but it was worth it and I'm particularly happy with
the result.
For the cover design, I asked my talented friend
Nicolas to do something for me, and he
designed the wonderful cover and its little snake!
The publishing
Publishing in an interesting topic people kept asking me about. This is what
I had to answer a few dozens of time:
"Who is your editor?"
"Me."
I never had any plan for asking an editor to publish this book. Nowadays,
asking an editor to publish a book feels to me like asking a major company
to publish a CD. It feels awkward.
However, don't get me wrong: there can be a few upsides of having an editor.
They will find reviewers and review your book for you. Having the book
review handled for you is probably a very good thing, considering how it was
hard to me to get that in place. It can be especially important for a
technical book.
Also, your book may end up in brick and mortar stores and be part of a
collection, both improving visibility. That may improve your book's selling,
though the editor and all the intermediaries are going to keep the largest
amount of the money anyway.
"Oh, you will publish it yourself, great. So you will print it and sell it
to people?"
"Not really."
I've heard good stories about people using Gumroad to
sell electronic contents, so after looking for competitors in that market, I
picked them. I also had the idea to sell the book with Bitcoins, so I
settled on Coinbase, because they have a nice API to
do that.
Setting up everything was quite straight-forward, especially with Gumroad.
It only took me a few hours to do so. Writing the Coinbase application took
a few hours too.
"Oh, you will sell it only as an ebook? That's too bad. You need a paper
version. Many people will want a paper version."
My initial plan was to only sell online an electronic version. On the other
hand, since I kept hearing that a printed version should exist, I decided to
give it a try. I chose to work with Lulu because I knew
people using it, and it was pretty simple to set up.
The launch
Once I had everything ready, I built the selling page and connected
everything between Mailchimp, Gumroad, Coinbase, Google Analytics, etc.
Writing the launch email was really exciting. I used Mailchimp feature to
send the launch mail in several batches, just to have some margin in case of
a sudden last minute problem. But everything went fine. Hurrah!
I distributed around 200 copies of the ebook in the first 48 hours, for
about $5000. That covered all the cost I had from the writing the book, and
even more, so I was already pretty happy with the launch.
Retrospective
In retrospect, something that I didn't do the best way possible is probably
to build a solid mailing list of people interested, and to build an
important anticipation and incentive to buy the book at launch date. My
mailing list counted around 1500 people subscribed because they were
interested in the launch of the book subscribed; in the end, probably only
10-15% of them bought the book during the launch, which is probably a bit
lower than what I could expect.
But more than a month later, I distributed in total almost 500 copies of the
book (including physical units) for more than $10000, so I tend to think
that this was a success. I still sell a few copies of the book each weeks,
but the number are small compared to the launch.
I sold less than 10 copies of the ebook using Bitcoins, and I admit I'm a
bit disappointed and surprised about that.
Physical copies represent 10% of the book distribution. It's probably a lot
lower than most people that pushed me to do it thought it would be. But it
is still higher of what I thought it would be. So I still would advise to
have a paperback version of your book. At least because it's nice to have it
in your library.
I only got positive feedbacks, a few typo notices, and absolutely no refund
demand, which I really find amazing.
The good news is also that I've been contacted with a couple of Korean and
Chinese editors to get the book translated and published in those countries.
If everything goes well, the book should be translated in the upcoming
months and be available on these markets in 2015!
If you didn't get a copy,
it's still time to do so!
British taxpayers are paying for extra support for Windows XP due to a lack of planning by the UK government [1]. While the cost of this is trivial compared to other government stupidity (such as starting wars of aggression) this sort of thing should be stopped.
The best way to solve such problems is for governments to only use free software. If the UK government used Red Hat Enterprise Linux then when Red Hat dropped support for old versions they would have the option of providing their own support for old versions, hiring any other company to support old versions, or paying Red Hat for supporting it. In that case the Red Hat offer would probably be quite reasonable as competition drives the prices down.
It doesn t seem likely that the UK government will start using only free software in the near future. It s not impossible to do so, there are organisations dedicated to this task such as Free-gov.org which aims to develop e-government software that is under GPL licenses [2]. The Wikipedia page List of Linux Adopters [3] has a large section on government use, while not all entries are positive (some have reverted) it shows that it s possible to use Linux for all areas of government. But governments often move slowly and in the case of wealthy countries such as the UK it can be easier to just tax the citizens a little more than to go to the effort of saving money.
But when governments use proprietary software they shouldn t be restricted in support. It seems that the only way to ensure that the government can do what it needs is to have a source escrow system. Then if the company that owned the software ceased supporting it anyone who wanted to offer support would be able to do so. This would probably require that software which is out of support be released to the public domain so that anyone who wanted to tender for such support work could first inspect the code to determine if they were capable of doing the work.
People who believe the myths about secret source software claim that allowing the source code to be released would damage the company that owns it. This has been proved incorrect by the occasions when source code for software such as MS-Windows has been released on the Internet with no apparent harm. Also Microsoft have a long history of licensing their source code to universities, governments, and other companies for various purposes (including porting Windows to other CPUs). It s most likely that some part of the UK government already has the full source code to Windows XP, and it s also quite likely that computer criminals have obtained copies of the source by now for the purpose of exploiting security flaws. Also they stop supporting software when they can t make money from providing the usual support, so by definition the value to a company of the copyright is approaching zero by the time they decide to cease support.
Given the lack of success experienced by companies that specialise in security (for example the attack on RSA to steal the SecurID data [4]) it doesn t seem plausible that Microsoft has had much success in keeping the source to Windows XP (or any other widely used product) secret over the course of 12 years.
In summary source code to major proprietary software products is probably available to criminals long before support expires and is of little value to the copyright owners. But access to it can provide value to governments and other users of the software.
The only possible down-side to the software vendor is if the new version doesn t provide any benefits to the user. This could be a problem for Microsoft who seem to have the users hate every second version of Windows enough to pay extra for the old version. The solution is to just develop quality software that satisfies the needs of the users. Providing a legal incentive for this would be a good idea.
I hate the days when I wake up at odd hours for no good reason. This morning I
woke up at 4:30am briefly, with no idea why. It makes me wonder if there was
some sort of external noise, and that's what woke Zoe up yesterday morning.
I got myself going at a reasonable hour this morning, and decided to walk to
the Bulimba post office to collect a package that was waiting for me. It was a
nice enough morning for a walk, and I'm glad I decided to do it.
Along the way, I observed multiple grandmothers walking their grandchildren to
school. I've been thinking a lot about next year lately. I feel very strongly
about Zoe not having to go into after school care. It seems that one of the new
societal norms is the grandparents have to step in with the school
transportation and after school care. That's not going to be particularly
practical in our situation though, so I'm currently leaning towards seeking
some sort of flexible employment next year that will allow me to be able to be
available after Zoe finishes school.
I was fairly motivated to get stuck into my to do list after my walk. A long
standing item was to cancel one of my remaining US credit cards, and the time
difference worked out well to do that, so I finally took care of that. I then
realised it was a good time for the US East Coast, so I did a Hangout with one
of my best friends in New York. It was great to have a catch up.
After that, I finished off my US tax return, and also sorted out some other
stuff that needed finishing off. I had to go to the Valley to find a FedEx
location, so I drove over there, and on the way back stopped off in Bulimba to
get some Mother's Day cards. By that stage it was about time to pick up Zoe
from Kindergarten, so I quickly grabbed some lunch and then drove over to pick
her up.
She didn't nap again today, so that made our departure from Kindergarten nice
and easy. I'd booked both of us in for haircuts at 3pm, so we got home with
enough time for Zoe to ride her scooter to the hairdresser. We had our haircuts
and Zoe had a bit of a play in the play corner, and we headed back home.
I'd bought a venus fly trap from Bunnings last week while we were picking up
other bits and pieces. I wanted to show Zoe how they worked, so we watched a
few YouTube videos. This
one was particularly good. After that, we went down to the rubbish skip
with our fly trap to see if we could catch any flies in it, but Zoe quickly
lost interest. So we headed back upstairs, and triggered one with a toothpick.
I probably could have done this on a Friday and called it a Science Friday
activity with a botany bent.
After that, we just watched some TV together on the couch until Sarah arrived
to pick her up.
About a month ago, on 20th of March, GNU Screen had its 27th
anniversary.
A few days ago, Amadeusz S awi ski, GNU Screen s new
primary upstream maintainer, released the status quo of Screen development as version 4.2.0
(probably to distinguish it from all those 4.1.0 labeled development
snapshots floating around in most Linux distributions nowadays).
I did something similar and uploaded the status quo of Debian s
screen package in
git as 4.1.0~20120320gitdb59704-10 to Debian Sid shortly afterwards.
That upload should hit Jessie soon, too, resolving the following two
issues also in Testing:
#740301: proper systemd support Thanks Josh Triplett
for his help!
#735554: fix for multiuser usage Thanks Martin von
Wittich for spotting this issue!
That way I could decouple these packaging fixes/features from the new
upstream release which I uploaded to Debian Experimental for now. Testers for the 4.2.0-1
package are very welcome!
Oh, and by the way, that upstream comment (or ArchLinux s according announcement) about broken backwards
compatibility with attaching to running sessions started with older
Screen releases doesn t affected Debian since that has been fixed in Debian
already with the package which is in Wheezy. (Thanks again Julien
Cristau for the patch back then!)
While there are bigger long-term plans at upstream, Amadeusz is
already working on the next 4.x release (probably named 4.2.1) which
will likely incorporate some of the patches floating around in the
Linux distributions packages. At least SuSE and Debian offered their
patches explicitly for upstream inclusion.
So far already two patches found in the Debian packages have been
obsoleted by upstream git commits after the 4.2.0 release. Yay!
We're excited to announce that 19 students have been selected
to work with Debian during the Google Summer of Code this year!
Here is the list of accepted students and projects:
As always, you will be able to follow their progress on the SoC coordination mailing-list
Congratulations to all the students and let's make sure we all have an amazing summer!
We're excited to announce that 19 students have been selected
to work with Debian during the Google Summer of Code this year!
Here is the list of accepted students and projects:
As always, you will be able to follow their progress on the SoC coordination mailing-list
Congratulations to all the students and let's make sure we all have an amazing summer!
Zoe slept until 7:45am this morning, which is absolutely unheard of in our
house. She did wake up at about 5:15am yelling out for me because she'd kicked
her doona off and lost Cowie, but went back to sleep once I sorted that out.
She was super grumpy when she woke up, which I mostly attributed to being
hungry, so I got breakfast into her as quickly as possible and she perked up
afterwards.
Today there was a free magic show at the Bulimba Library at 10:30am, so we
biked down there. I really need to work on curbing Zoe's procrastination. We
started trying to leave the house at 10am, and as it was, we only got there
with 2 minutes to spare before the show started.
Magic Glen put on a really good
show. He was part comedian, part sleight of hand magician, and he did a very
entertaining show. There were plenty of gags in it for the adults. Zoe started
out sitting in my lap, but part way through just got up and moved closer to the
front to sit with the other kids. I think she enjoyed herself. I'd have no
hesitation hiring this guy for a future birthday party.
Zoe had left her two stuffed toys from the car at Megan's house on Tuesday
after our Port of Brisbane tour, and so after the magic show we biked to her
place to retrieve them. It was close to lunch by this stage, so we stayed for
lunch, and the girls had a bit of a play in the back yard while Megan's little
sister napped.
It was getting close to time to leave for our flu shots, so I decided to just
bike directly to the doctor from Megan's place. I realised after we left that
we'd still left the stuffed toys behind, but the plan was to drive back after
our flu shots and have another swim their neighbour's pool, so it was all good.
We got to the doctor, and waited for Sarah to arrive. Sarah and I weren't
existing patients at Zoe's doctor, but we'd decided to get the flu shot as a
family to try and ease the experience for Zoe. We both had to do new patient
intake stuff before we had a consult with Zoe's doctor and got prescriptions
for the flu shot.
I popped next door to the adjacent pharmacy get the prescriptions filled, and
then the nurse gave us the shots.
For the last round of vaccinations that Zoe received, she needed three, and she
screamed the building down at the first jab. The poor nurse was very shaken, so
we've been working to try and get her to feel more at ease about this one.
Zoe went first, and she took a deep breath, and she was winding up to freak out
when she had her shot, but then it was all over, and she let the breath go, and
looked around with a kind of "is that it?" reaction. She didn't even cry. I was
so proud of her.
I got my shot, and then Sarah got hers, and we had to sit in the waiting room
for 10 minutes to make sure we didn't turn into pumpkins, and we were on our
way.
We biked home, I grabbed our swim gear, and we drove back to Megan's place.
The pool ended up being quite cold. Megan didn't want to get in, and Zoe didn't
last long either. Megan's Mum was working back late, so I invited Megan, her
Dad and her sister over for dinner, and we headed home so I could prepare it.
One of Zoe's stuffed toys had been located.
We had a nice dinner of deviled
sausages made in the Thermomix, and for a change I didn't have a ton of
leftovers. Jason had found the other stuffed toy in his truck, so we'd finally
tracked them both down.
After Megan and family went home, I got Zoe to bed without much fuss, and
pretty much on time. I think she should sleep well tonight.
PyCon 2014 happened. (Sprints are still happening.)
This was my 3rd PyCon, but my first year as a serious contributor to the
event, which led to an incredibly different feel. I also came as a
person running a company building a complex system in Python, and I
loved having the overarching mission of what I'm building driving my
approach to what I chose to do. PyCon is one of the few conferences
I go to where the feeling of acceptance and at-homeness mitigates the
introvert overwhelm at nonstop social interaction. It's truly a special
event and community.
Here are some highlights:
I gave a tutorial about
search,
which was recorded in its entirety... if you watch this video, I
highly recommend skipping the hands-on parts where I'm just walking
around helping people out.
I gave a talk! It's called Subprocess to FFI, and you can find the
video
here.
Through three full iterations of dry runs with feedback, I had a ton of fun
preparing this talk. I'd like to give more like it in the future as I
continue to level up my speaking skills.
Allen Downey came to my talk and found me
later to say hi. Omg amazing, made my day.
Aux Vivres and Dieu du
Ciel, amazing eats and drink with great
new and old friends. Special shout out to old Debian friends Micah
Anderson, Matt Zimmerman, and Antoine Beaupr for a good time at Dieu
du Ciel.
The Geek Feminism open space was a great place to chill out and always
find other women to hang with, much thanks to Liz Henry for organizing
it.
Talking to the community from the Inbox
booth on Startup Row in the Expo hall on Friday. Special thanks for
Don Sheu and Yannick Gingras for making this happen, it was awesome!
The PyLadies lunch. Wow, was that amazing. Not only did I get to meet
Julia Evans (who also liked meeting
me!), but there was an amazing
lineup of amazing women telling everyone about what they're doing.
This and Noami Ceder's
touching talk
about openly transitioning while being a member of the Python
community really show how the community walks the walk when it comes
to diversity and is always improving.
Catching up with old friends like Biella Coleman, Selena Deckelmann,
Deb Nicholson, Paul Tagliamonte, Jessica McKellar, Adam Fletcher, and
even friends from the bay area who I don't see often. It was hard to
walk places without getting too distracted running into people I knew,
I got really good at waving and continuing on my way.
I didn't get to go to a lot of talks in person this year since my
personal schedule was so full, but the PyCon video team is amazing as
usual, so I'm looking forward to checking out the
archive. It really is a
gift to get the videos up while energy from the conference is still so
high and people want to check out things they missed and share the talks
they loved.
Thanks to everyone, hugs, peace out, et cetera!
I had entered this race in 2013 and found it was effective for focusing winter training. As triathlons do not typically start until May in the UK, scheduling earlier races can be motivating in the colder winter months.
I didn't have any clear goals for the race except to blow out the cobwebs and improve on my 2013 time. I couldn't set reasonable or reliable target times after considerable "long & slow" training in the off-season but I did want to test some new equipment and stategies, especially race pacing with a power meter, but also a new wheelset, crankset and helmet.
Preparation was both accidentally and deliberately compromised: I did very little race-specific training as my season is based around an entirely different intensity of race, but compounding this I was confined to bed the weekend before.
Sleep was acceptable in the preceding days and I felt moderately fresh on race morning. Nutrition-wise, I had porridge and bread with jam for breakfast, a PowerGel before the race, 750ml of PowerBar Perform on the bike along with a "Hydro" PowerGel with caffeine at approximately 30km.
Run 1 (7.5km)
A few minutes before the start my race number belt the only truly untested equipment that day refused to tighten. However, I decided that once the race began I would either ignore it or even discard it, risking disqualification.
Despite letting everyone go up the road, my first km was still too fast so I dialed down the effort, settling into a "10k" pace and began overtaking other runners. The Fen winds and drag-strip uphill from 3km provided a bit of pacing challenge for someone used to shelter and shorter hills but I kept a metered effort through into transition.
Time
33:01 (4:24/km, T1: 00:47) Last year: 37:47 (5:02/km)
Bike (40km)
Although my 2014 bike setup features a power meter, I had not yet had the chance to perform an FTP test outdoors. I was thus was not able to calculate a definitive target power for the bike leg. However, data from my road bike suggested I set a power ceiling of 250W on the longer hills.
This was extremely effective in avoiding going "into the red" and compromising the second run. This lends yet more weight to the idea that a power meter in multisport events is "almost like cheating".
I was not entirely comfortable with my bike position: not only were my thin sunglasses making me raise my head more than I needed to, I found myself creeping forward onto the nose of my saddle. This is sub-optimal, even if only considering that I am not training in that position.
Overall, the bike was uneventful with the only memorable moment provided by a wasp that got stuck between my head and a helmet vent. Coming into transition I didn't feel like I had really pushed myself that hard probably a good sign but the time difference from last year's bike leg (1:16:11) was a little underwhelming.
Time
1:10:45 (T2: 00:58)
Run 2 (7.5km)
After leaving transition, my legs were extremely uncooperative and I had great difficulty in pacing myself in the first kilometer. Concentrating hard on reducing my cadence as well as using my rehearsed mental cue, I managed to settle down.
The following 4 kilometers were a mental struggle rather than a physical one, modulo having to force a few burps to ease some discomfort, possibly from drinking too much or too fast on the bike.
I had planned to "unload" as soon as I reached 6km but I didn't really have it in me. Whilst I am physiologically faster compared to last year, I suspect the lack of threshold-level running over the winter meant the mental component required for digging deep will require some coaxing to return.
However, it is said that you have successfully paced a duathlon if the second run faster than the first. On this criterion, this was a success, but it would have been a bonus to have really felt completely completely drained at the end of the day, if only from a neo-Calvinist perspective.
Time
32:46 (4:22/km) / Last year: 38:10 (5:05/km)
Overall
Total time
2:18:19
A race that goes almost entirely to plan is a bit of a paradox there's certainly satisfaction in setting goals and hitting them without issue, but this is a gratification of slow-burning fire rather than the jubilation of a fireworks display.
However, it was nice to learn that I managed to finish 5th in my age group despite this race attracting an extremely strong field: as an indicator, the age-group athlete finishing immediately before me was seven minutes faster and the overall winner finished in 1:54:53 (!).
The race identified the following areas to work on:
Perform an outdoors FTP on my time-trial bike outdoors to develop an optimum power plan.
Do a few more brick runs, at least to re-acclimatise the feeling.
Schedule another bike fit.
Although not strictly race-related, I also need to find techniques to ensure transporting a bike on public transport is less stressful. (Full results & full 2014 race schedule)
Wow. 3G delta. I haven t booted this laptop for a while I think I m finally ready to make the move from gnome2 to gnome3. There are bits that still annoy me, but I think it s off to a good start. Upgrading perl from 5.10 to 5.14.
Swim 2.4 miles! Bike 112 miles! Run 26.2 miles! Brag for the rest of your life...
In 2013, my training efforts were based around a "70.3"-distance race. In my second year in triathlon I will be targetting my first Ironman-distance event.
After some deliberation I decided on the Ironman event in Klagenfurt, Austria (pictured) not only because the location lends a certain tone to the occasion but because the course is suited to my relative strengths within the three disciplines.
I've made the following conscious changes to my race scheduling and selection this year:
Fewer races overall to allow for generous spacing between events, allowing more training, recovery and life.
No sprint-distance events as they do not provide enough enjoyment or appropriate training for the IM distance given their logistical outlay.
Prefering cycling over running time trials: performance in triathlon paradoxically including your run performance is primarily based around bike fitness.
Prefering smaller events over "mass-participation" ones.
Readers may observe that despite my primary race finishing with a marathon-distance run, I am not racing a standalone marathon in preparation. This is common practice, justified by the run-specific training leading up to a marathon and the recovery period afterwards compromising training overall.
For similar reasons, I have also chosen not to race a "70.3" distance event in 2014. Whether to do so is a more contentious issue than whether to run a marathon, but it resolved itself once I could not find an event that was suitably scheduled and I could convince myself that most of the benefits could be achieved through other means.
Swim 2.4 miles! Bike 112 miles! Run 26.2 miles! Brag for the rest of your life...
Whilst 2013 was based around a "70.3"-distance race, in my second year in triathlon I will be targetting training solely around my first Ironman-distance event.
I chose the Ironman event in Klagenfurt, Austria not only because the location lends a certain tone to the occasion but because the course is suited to my relative strengths within the three disciplines.
Compared to 2013 I've made the following conscious changes to my race scheduling and selection:
Fewer races in general to allow for more generous spacing between events, resulting in more training, recovery and life.
No sprint-distance triathlons as they do not provide enough enjoyment or suitable training for the IM distance given their logistical outlay.
Prefering cycling over running time trials: general performance in triathlon paradoxically including your run performance is primarily based around bike fitness.
Prefering smaller events over "mass-participation" ones.
Readers unfamiliar with triathlon training may observe that despite my primary race finishing with a marathon-distance run, I am not racing a standalone marathon in preparation. This is a common practice, justified by the run-specific training leading up to the event as well as the long recovery period afterwards compromising your training overall.
For similar reasons, I have also chosen not to race the "70.3" distance event in 2014. Whether to do so is a more contentious issue than whether to run a marathon, but it resolved itself once I could not find an event that was scheduled suitably and I could convince myself that most of the benefits could be achieved through other means.
Today, I decided to set my X230 back to UEFI-only boot, after having changed that for a bios upgrade recently (to fix a resume bug). I then choose to save the settings and received several error messages telling me that the system ran out of resources (probably storage space for UEFI variables).
I rebooted my machine, and saw no logo appearing. Just something like an underscore on a text console. The system appears to boot normally otherwise, and once the i915 module is loaded (and we re switching away from UEFI s Graphical Output Protocol [GOP]) the screen works correctly.
So it seems the GOP broke.
What should I do next? Filed under: General
When I started to write the landing page for
The Hacker's Guide to Python, I wanted
to try new things at the same time. I read about A/B testing a while ago,
and I figured it was a good opportunity to test it out.
A/B testing
If you do not know what A/B testing is about, take a quick look at the
Wikipedia page on that subject.
Long story short, the idea is to serve two different version of a page to
your visitors and check which one is getting the most success. When you
found which version is better, you can definitely switch to it.
In the case of my book, I used that technique on the pre-launch page where
people were able to subscribe to the newsletter. I didn't have a lot of
things I wanted to test out on that page, so I just used that approach on
the subtitle, being either "Learn everything you need to build a successful
Python project" or "It's time you make the most out of Python".
Statistically, each version would be served half of the time, so both would
get the same number of view. I then would build statistics about which page
was attracting the most subscribers. With the results I would be able to
switch definitively to that version of the landing page.
Technical design
My Web site, this Web site, is entirely static and served by
Apache httpd. I didn't want to use any dynamic
page, language or whatever. Mainly because I didn't want to have something
else to install and maintain just for that on my server.
It turns out that Apache httpd is powerful enough to implement such a
feature. There are different ways to build it, and I'm going to describe my
choices here.
The first thing to pick is a way to balance the display of the page. You
need to find a way so that if you get 100 visitors, around 50 will see the
version A of your page, and around 50 will see the version B of the page.
You could use a random number generator, pick a random number for each
visitor, and decides which page he's going to see. But it turns out that I
didn't find a way to do that with Apache httpd at first sight.
My second thought was to pick the client IP address. But it's not such a
good idea, because if you got visitors from, for example, people behind a
company firewall, they are all going to be served the same page, so that
kind of kills the statistics.
Finally, I picked time based balancing: if you visit the page on a second
that is even, you get version A of the page, and if you visit the page on a
second that is odd, you get version B. Simple, and so far nothing proves
there are more visitors on even than odd seconds, or vice-versa.
The next thing is to always serve the same page to a returning visitor. I
mean that if the visitor comes back later and get a different version,
that's cheating. I decided the system should always serve the same page once
a visitor "picked" a version. To do that, it's simple enough, you just have
to use cookies to store the page the visitor has been attributed, and then
use that cookie if he comes back.
Implementation
To do that in Apache httpd, I used the powerful
mod_rewrite
that is shipped with it. I put 2 files in the books directory, named either
"the-hacker-guide-to-python-a.html" and "the-hacker-guide-to-python-b.html"
that got served when you requested "/books/the-hacker-guide-to-python".
RewriteEngineOn RewriteBase/books
# If there's a cookie called thgtp-pre-version set, # use its value and serve the page RewriteCond%HTTP_COOKIEthgtp-pre-version=([^;]) RewriteRule^the-hacker-guide-to-python$%REQUEST_FILENAME-%1.html[L]
# No cookie yet and RewriteCond%HTTP_COOKIE!thgtp-pre-version=([^;]+) # the number of seconds of the time right now is even RewriteCond%TIME_SEC[02468]$ # Then serve the page A and store "a" in a cookie RewriteRule^the-hacker-guide-to-python$%REQUEST_FILENAME-a.html[cookie=thgtp-pre-version:a:julien.danjou.info,L]
# No cookie yet and RewriteCond%HTTP_COOKIE!thgtp-pre-version=([^;]+) # the number of seconds of the time right now is odd RewriteCond%TIME_SEC[13579]$ # Then serve the page B and store "b" in a cookie RewriteRule^the-hacker-guide-to-python$%REQUEST_FILENAME-b.html[cookie=thgtp-pre-version:b:julien.danjou.info,L]
With that few lines, it worked flawlessly.
Results
The results were very good, as it worked perfectly. Combined with Google
Analytics, I was able to follow the score of each page. It turns out that
testing this particular little piece of content of the page was, as
expected, really useless. The final score didn't allow to pick any winner.
Which also kind of proves that the system worked perfectly.
But it still was an interesting challenge!
Zoe slept through last night, which was lovely. We had nothing really
planned for today.
The Bulimba Library has a story time thing at 10:30am on a Friday. I've
never bothered to take Zoe because it would have been too much of a hustle
to get her there after her Brazilian Jiu-Jitsu class, particularly by bike.
Since today we didn't have a BJJ class, it made getting to story time much
easier.
So we had a nice lazy start to the day, and then Zoe just wanted to
procrastinate anyway, so since we were in no particular rush, I let her play
in her room for a bit and I read for a while. We eventually had teeth and
hair brushed and biked over to the library.
Not having been to the story time thing before, I assumed it was in the kids
area, but it turned out it was downstairs in the general purpose room, which
we only discovered after story time had started. I'm certainly glad I never
busted a gut to get to the library in time for it, because it wasn't
anything particularly exciting. They did give all the kids a colouring sheet
and there was some colouring and a couple of songs, but really it was
nothing to phone home about.
I did run into Jacob and his mum Laura from Kindergarten. They live locally,
and so I invited them over for lunch and a play date. They had some grocery
shopping to do, and I had to go to the pharmacy to get a prescription
filled, so we agreed to meet at our place in about an hour.
We biked to the pharmacy to get my prescription filled and some more
sunscreen for Zoe, and the pharmacist gave her a free Chupa Chups
We biked home, and grabbed some balloons from the convenience store next
door for our Science Friday activity. I was slightly more organised today,
and figured out what I wanted to do in the morning while Zoe was watching
TV. We did yeast and sugar and warm water in a bottle with a balloon on top
and watched it inflate itself with all the carbon dioxide produced by the
yeast eating the sugar.
The only problem was the balloons we bought were total rubbish. They'd been
on the shelf for too long and they'd all stuck to themselves and either
popped when I tried to blow them up or had holes in them. So we marched back
to the corner store in our lab coats to get some more, and the store keeper
gave Zoe one of the little flashlights she keeps playing with in the bowl at
the check out.
It was a good day for freebies.
We were able to complete our Science Friday activity before Laura and
Jacob and his baby brother Ethan came over for lunch. Zoe didn't have a
particularly good lunch, I think it was the distraction of having Jacob
there as well.
After lunch, they couldn't really agree on anything to play. Laura said
Jacob just plays out in the yard at Kindergarten the whole day. The one
thing they both managed to agree on briefly was bubbles.
Ethan was getting tired and needed a nap by about 2pm, so they left. Zoe
wanted to ride her scooter, but I had to clean up from lunch and the
aftermath of the play date on the balcony first, so she went and played some
games on her Nexus 7 while I did that, and then we headed out on the
scooter.
It was about 2:30pm by this point, and the Hawthorne Markets, which have now
moved to a Friday "twilight" thing, were due to start at 4pm, so I figured
we could just kill time on the scooter.
It's funny how the scooter is now the in thing as of Tuesday. It's sat
unused on the balcony for most of the year, but I'm glad she wants to use it
now because it guarantees she moves faster than if she were to walk and want
to be picked up every 5 minutes.
We scootered around to the playground and she played there until about
3:45pm, when we headed around to the markets.
We ran into Nicky Noo from the Ooniverse Family Cafe, who we'd met on
Tuesday, and she made Zoe another dog balloon and she got her face painted.
After that, it was the obligatory jumping castle for a while. It was getting
time to get home for Sarah to pick her up, when I dropped the dog balloon on
the ground and it popped. That made Zoe very sad. Then the lack of a decent
lunch kicked in. Zoe wanted some poffertjes, but they would have taken too
long, so I gave her a few of the free samples to tide her over, and we
headed home.
Sarah was waiting for her when we got home, so we parted ways at that point.
I like how the days that have nothing planned often end up as full if not
fuller than the days when I do have something planned.
Zoe slept pretty well last night. She only woke up briefly at 4am because
Cowie had fallen out of bed and she couldn't find her.
Today was the last Playgroup of the term. Megan, her little sister and her Dad
came as well to check it out, which was nice, because Zoe then had someone to
actively play with in addition to me.
After Playgroup, we went to the adjacent Bulimba Memorial Park with Megan, and
then had some lunch at Grill'd. Megan's Dad wanted to do some work on their
house while Megan's little sister napped, so I offered to give Megan a play
date at our place.
The plan was to watch a movie and chill out. The girls picked
Ratatouille and I made a batch of popcorn for them. Unfortunately
Megan seemed to be less of a square eyes than Zoe, and she lost interest after
a bit, so we stopped watching the movie and moved out to the balcony to do some
craft.
Zoe had been wanting to make a crown for Mummy's boss for a while, so we made a
couple of crowns with the hot glue gun. I had bought this bag of mixed craft
"jewels" and it's probably the best single craft thing I've bought. Zoe
loves gluing them onto everything.
After that, Zoe pulled out the bag of coloured foil confetti. If the gems were
the best thing I've bought, this would have to be the worst. So far, all it's
done is leak in the drawer it's been stored in, and I've been avoiding using it
because it was going to be messy.
Today, Zoe wanted to glue it onto the outside of her cardboard box, so I
decided to give in and embrace the mess, and boy, did we make a mess.
It probably ended up being the longest bit of cooperative play the girls did.
They'd alternate between handing each other a fistful of confetti while I
applied globs of glue where directed. Probably about 10 percent of each handful
ended up stuck to the rocket, so the balcony looked like quite a mess by the
end of it all, but at least it was a dry mess, so I could just vacuum it all
up. I suspect I'll be encountering dregs for quite a while, because I doubt
it's stuck to the cardboard particularly well.
After that, the girls played indoors for a bit, and watched a bit more of the
movie, but Megan seemed to be scared of Anton Ego, so I think that was why
it wasn't holding her attention.
The other activity that the girls seemed to thoroughly enjoy was tearing around
the living room squealing while they took turns at throwing a grapefruit-sized
beach ball at me, and I threw it back at them.
Jason came back to pick up Megan, and I started dinner. Not that long after
Megan left, Sarah arrived to watch Zoe for me so I could go visit my cousin in
hospital. I had dinner on the table pretty much as soon as she walked in the
door, and headed out.
I m currently working on a wiki converter allowing me to transfer old TWiki wikis (hosted on picoforge) to MediaWikis hosted on FusionForge.
Unlike existing tools that I ve found that more or less target the same needs, mine will address two peculiarities :
using MediaWiki s API to perform the import, where many tools seemed to use SQL requests: this should allow non-administrator users to do the job,
importing to wikis of projects hosted on FusionForge instances, even when the project is not public, which means that the API calls need to authenticate to FusionForge first.
The tool is written in Python, and will include my own crappy wiki syntax converter in Python, instead of spawning existing Perl scripts, as others did.
It may happen to work for FosWiki too, but I don t intend to use it beyond our old TWiki installations, for a start.
Stay tuned for more progress updates.
Edit: I ve now released a first version.