Books update

Hi guys, it’s been a long time since I updated the blog. Part of the reason for this is that I’ve been a bit busy with my books.

First, an update on Domain Specific Languages in R. It is currently set to be released on August 14th, but I should get the proofs next week, and last I heard, they will try to get the book out already in June. I will update you when I know more. If you want to make sure you get it as soon as possible, you can already pre-order it now.

Then there is The Joys of Hashing. I am working on the last two chapters, but I have gotten an offer on it from Apress, so I might only include one of those in the self-published versions and leave the last chapter for the Apress version. I don’t know exactly when I will pull the book from the self-publishing sites yet—it will be shortly after I agree with the contract for selling it, but I haven’t done that, and I don’t want to have a deadline for delivering it before I’m done with the actual writing. It will be some time over the summer, though. So if you want the book, you might as well get it now. You can download it for free, but I’d appreciate any donation. You can get it several places:

Speaking of “several” places, The Beginner’s Guide to Todoist is no longer fixed to Kindle Select, so it isn’t tied to Amazon. You can get it—again, for free or any price you wish to pay—on several sites:

Since this book is actually completed, you can also get it on iTunes.

My two other “Beginner’s Guides” will be out of Kindle Select over the summer, and you can preorder them now on the sites that allow me to put them up without also releasing them. I have made new covers for them, that I hope you like.

These, I have set a minimum price for. I need to recoup enough on my writing to pay for software subscriptions I use for my writing.

The Beginner’s Guide to GitHub:

The Beginner’s Guide to Markdown and Pandoc

Writing progress template

I haven’t written here in a while. I have blogged a bit on my R blog, but not really a lot there recently either. For various reasons, not least that I haven’t had much to write about.

I have finished my Domain Specific Languages in R book a little while ago and am still waiting for the proofs. I don’t know the correct release date yet, but it is usually shortly after I have gotten the proofs. I’ll let you know when I know more myself.

Besides that, I’ve had a few programming projects I’ve played around with, and I have been writing on a book about hash tables, The Joys of Hashing. A draft is available on Gumroad and Payhip. The latter is something I’m trying out.

I will move some of my other books there as well; those that do not belong to Apress. I just have to wait for the Kindle Select terms to finish. You can preorder them there, though, if you want. I will also put them up on iTunes when I can. They are already uploaded, so should be available for preorder soon. Payhip doesn’t support preorders, so that has to wait a bit.

Speaking of writing, though, and those update figures shown above, people often ask me where I get those. If I have a fancy editor that keeps track of progress. I don’t. I think the next version if iA Writer might have some progress measurement, but I’m not sure. I simply use a spreadsheet.

I have made a Numbers template for it, and you can download it here. Feel free to use it any way you like, you just have to update the cover image, chapter names, and goals, and you should be good to go.

I don’t have Excel, so I can’t make a template for that. If you can port the template, it would be great if you could send it to me, and I can update this post with it.

Who we are and how we got here

If you are, at all, interestd in human pre-history, then you should read this book. David Reich, Who we are and how we got here.

(Full disclosure, David is a friend of mine and I did a sabbatical in his lab a few years ago, but I am not just recommending it because of that — or because I’m mentioned in it, which I am :) — no, it really is amazingly good).

If you are worried about catching racism from reading it, don’t be. The only racism you can read into what David writes is stuff you bring yourself. He is very careful about distinguishing between classical racism and what we in genetics could call ancestry. He has a whole chapter on it. And he writes, and I agree completely:

“The right way to deal with the inevitable discovery of substantial differences across populations is to realize that their existence should not affect the way we conduct ourselves. As a society we should commit to according everyone equal rights despite the differences that exist among individuals”

No, no racism in this text — and if you know David you would know that. What is in there is a very exciting description of what ancient DNA has told us over the last decade about human prehistory. So you should read it. Really. Now.

(If you are still in doubt, check some highlights I made while reading it here).

Lots of Function Transformations

The last couple of days I’ve been doing a lot of experimenting with a package for function rewriting: foolbox. I am doing some function transformations in both pmatch and tailr and they look very much alike, so I figured I should collect the shared functionality in a separate package. After that, I found a work-around for the need for function rewriting in pmatch, so it isn’t that necessary any longer, but playing around with foolbox has been fun and taught me a lot of tricks for metaprogramming that I hadn’t thought about before.

I have written documentation on foolbox’s homepage so I won’t repeat it here but refer you to

I am pretty sure that you can implement the function transformations with invariants and pre- and post-conditions. I also think that some static type checking should be possible (for a subset of functions, of course, R is way too dynamic a language to try to handle all cases).

I was thinking of making a release later this week or sometime next week and then return to working on pmatch and tailr. I might play around it a bit more first, though. In any case, I would love if anyone else would take it for a spin and help me debug it.

Writing tools

As you know, I have explored several different writing tools and setups for books and blogs.

My current setup is iA Writer for writing — it used to be Ulysses or Sublime. Ulysses changed to a subscription form and in any case was hard to combine with my other pipeline, so those two issues combined moved me away from Ulysses. Sublime is a great editor for both coding and writing, but for some reason the keybindings on my laptop are different from the bindings on my desktop — and I haven’t figured out how to change that — and that annoyed me sufficiently to not use that editor for writing. So iA Writer it is.

For posting on this blog, I can send text and images directly from iA Writer to WordPress. For my books, I write Markdown files that I process with Pandoc and, for R books, knitr. I have a setup with Makefiles to handle that, and that works well. For my new R blog, I haven’t figured out the right workflow yet. I’m writing in RMarkdown, so some combination of iA Writer and knitr combined with Hugo is likely to be the solution. If I can get Blogdown to work, that would be great, but Makefiles usually work well for me if I don’t manage that.

Anyway, I am always interested in learning about new tools and new pipelines, and now Ferry Vermeulen from INSTRKTIV has sent me this list of resources. I haven’t explored it fully yet, but when I have a quiet moment I will see if there are tools there I absolutely have to try out.

What are your preferred writing tools? For blogging, papers or books?