Switching from MathJax to KaTeX

Apr 7, 2018

For several years, I’ve used MathJax on this blog to typeset mathematical formulae in LaTeX notation. MathJax is fully compatible with LaTeX, and makes it simple to create beautifully typeset equations such as the following:

\[ \rho = \frac{1}{2} \left( \sqrt{2} \sqrt{\lambda+2} + \sqrt{2} \sqrt{ \frac{ -2 \lambda - \lambda^2 + \sqrt{2} \sqrt{\lambda+2}}{\lambda+2}} \right) \]

MathJax is sophisticated, but it’s large and has a lot of dependencies. It’s not slow, but KaTeX is a lightweight drop-in replacement that’s even faster. I’ve switched to use KaTeX on this blog for speed and simplicity.

How to Extract Content From a PDF

Apr 7, 2018

I’ve occasionally needed to extract text and/or images from a PDF. I’ve found a couple of easy, free ways to do this on MacOS.

Temporal Words Are Risky

Feb 21, 2018

I’ve come to see time-related words as potentially dangerous to use in writing, because they have ambiguities that are difficult to parse. I didn’t notice this until I started to work with many people for whom English is a second language. These people taught me that phrases I take for granted can be very confusing and illogical.

Here’s an example: “I avoid using these words, as they are confusing.”

Writing Kindly

Mar 4, 2017

It makes me a bit uncomfortable when people say I’m a good person, because sometimes I’m actually a jerk! Thankfully, I’ve found that gentleness is a skill I can learn if I care enough to try, and I’ve gotten better at it over time. I’ve also found that when I’m nice and I focus on the positive, I get better results. Here are some things I’ve learned about how to be a kinder person in my writing.

Forestry, a Static Site CMS

Nov 4, 2016

Forestry is a content management system that runs in your browser. On the backend, it integrates with a static site generator such as Hugo, letting you edit your static website in your browser just like any other content management system. I am writing this blog post with it on my iPad, using voice dictation.

The Ultimate Pen

Mar 7, 2015

In The Ultimate Notebook, I reviewed a large list of notebooks I bought in my quest for the perfect one for me. (I’m happy to say that I’ve been using the Quo Vadis Habana in Raspberry exclusively for a while). But what about the perfect pen? Ah, pens. As much a personal matter as notebooks are. I’ve tried a variety of pens. Here’s my review of some of them.

Making High Performance MySQL's New Website

Feb 7, 2015

I recently updated the High Performance MySQL website to modernize it. I am impressed at how easy it is these days to get a great little brochure site hosted. It used to be a lot more work. I used a variety of tools and services to do this and decided to share this for people who are interested. Hopefully you’ll add comments and point me towards more tools and tips to make these things even easier for me in the future!

The Ultimate Notebook

Jul 10, 2013

If you’re like me, you spend so much time typing on a computer that a good notebook or journal is one of life’s finer pleasures. I’ve kept a diary of my personal life for close to 30 years now, and I have a shelf full of journals. I’ve found a great many that I enjoy writing in, and choosing a different one each time is part of the fun.

TL;DR: The Apica Premium C.D. Notebook is everything. The Quo Vadis Habana is my previous pick, and I love them both.

You might also like:

Notebook

What's your opinion of High Performance MySQL?

Sep 5, 2012

The second edition of High Performance MySQL has 27 reviews on Amazon, but the third edition only has 5 so far. By this point I assume many of you have a copy and have read it cover to cover. I’d really appreciate your reviews – when purchasing, people look not only at the star rating but at the number of reviews. You can create a review here. And thanks!

High Performance MySQL 3rd edition now available

Mar 8, 2012

The third edition is now available in ePub, Mobi, and PDF formats. Print format should be available early next week.

What sets O'Reilly apart: attention to detail

Feb 16, 2012

O’Reilly isn’t the only excellent tech publisher, but they’re the one whose books most consistently give me pleasure to read. After going through the process of writing two books with them, one of the things that’s struck me is how much they invest into the thankless tasks such as indexing, proofreading, and copyediting their authors’ work. There are probably many steps in the production process – what happens after the author “finishes” the book – that I know nothing about.

Get a free copy of High Performance MySQL 3rd Edition!

Feb 15, 2012

Want a free copy of High Performance MySQL, Third Edition? If you register before the early-bird pricing expires for the MySQL Conference in April, and use the discount code PL-Book, you’ll get to take a free copy home from the conference! VividCortex is the startup I founded in 2012. It’s the easiest way to monitor what your servers are doing in production. It does TCP network traffic analysis. VividCortex offers MySQL performance monitoring and PostgreSQL performance management among many other features.

High Performance MySQL Third Edition pre-order available

Jan 13, 2012

You can pre-order the new edition of High Performance MySQL now on Amazon or via O’Reilly’s website. Eric Bergen called the second edition “the best MySQL book on the planet”. What will the third edition be called? The best in the solar system? This reminds me of a joke, supposed to be a true story: three pizza restaurants next to each other had signs saying “best pizza in town,” “best pizza in the world,” and “best pizza on this block.

Status update on High Performance MySQL

Nov 21, 2011

The third edition is nearly done. I’ve committed first drafts of all chapters, and all but one appendix. I need to do the last appendix and then rewrite the preface, which is a few days of work at my current pace. After that, it’s the usual tech review, copyediting, updates to figures, etc – and then it’s off to production. I’m really pleased with this edition. I was planning on it just being a refresh of the second edition to reflect what’s new in MySQL-land, but it’s almost a complete rewrite.

Progress on High Performance MySQL 3rd Edition

Oct 12, 2011

A few people have asked me how it’s going, so I thought I’d just share it with everyone. Things are going great. I’m writing much more quickly than I thought I would be, and as a result I’m finding I have time to do more changes than I thought I could, which makes me happy. I should be finished drafting the chapters by the end of the year. In particular, the faster than expected pace is giving me a chance to address one of the big weaknesses of the second edition.

High Performance MySQL, Third Edition

Sep 14, 2011

I have just signed the contract for High Performance MySQL, Third Edition. The third edition will include major updates and new content in these areas: Recent performance and reliability advances, particularly in MySQL 5.5 and the InnoDB storage engine. A new chapter on using MySQL in cloud computing environments. Updates on modern hardware, including many CPUs, large memory, and solid-state storage. Improvements in clustering and high availability, including middleware and third-party solutions.

High Performance MySQL in your language

Dec 8, 2008

O’Reilly tells me that translation rights for our book, High Performance MySQL Second Edition have been purchased in the following languages: Korean Russian Portuguese Polish Spanish Czech Some of them were sold quite a while ago, and some are more recent. Portuguese was the first. I’m looking forward to learning all these languages (except for Spanish, which I already sort of know) so I can read the book in them… in my copious spare time!

Update on High Performance MySQL, 2nd Edition

Oct 4, 2008

I just thought I’d drop a line about our book. Sales appear to be doing well still: the book is still at Amazon sales rank 3,213 and seems to hold pretty steady there. A lot of people have discovered it and are recommending it – including members of MySQL’s professional services team. There are several positive reviews on Amazon (though if you like the book, a few more wouldn’t hurt either).

High Performance MySQL is going to press, again

Jul 15, 2008

Apparently High Performance MySQL, 2nd Edition is selling quite well – I’m not sure exactly how well – because we’re preparing for a second printing. This makes me very happy. I don’t think they anticipated going back to the press for quite some time. The book fluctuates between sales rank 1000 and 2000 on Amazon during the day, and has reached as high as 600 or so. This is just phenomenal.

What if you find errors in High Performance MySQL?

Jun 28, 2008

The book is done now, right? What’s next? Don’t tell my wife this, but a book is never done. Right now I’m proofreading the printed copy. I proofread PDF after PDF during production, but some problems will always slip through and make it to paper. I’m finding quite a few little mistakes. For example, at one point we refer to TPC as TCP three times in a row. Oops. These problems will be corrected in the next printing.