Skip to main content

· 2 min read

For when you want move your branch's commits to the tip of master.

One-liner

Run this while on your feature branch:

git pull --rebase origin master

Alternate commands

Does the same thing in 2 lines:

git fetch origin master
git rebase origin master

Does the same thing in 4 lines, but it also updates your master branch for the next time you create a new branch

git checkout master
git pull origin master
git checkout -
git rebase master

· 12 min read

This tutorial will walk through building a demo which uses Elasticsearch to do word-by-word completion. The demo is a single-dependency Go app with a minimal UI. If you mostly care about the Elasticsearch usage, see the "overview" and "backend - next word search" sections. The final code is available at this Github repo

This is a pretty detailed tutorial, probably oriented towards Elasticsearch and Go beginners, with full working code blocks. It's also my first tutorial-like blog post -- if you have any feedback, feel free to open an issue on the repo!

What is "autocomplete word-by-word"?

Normal autocomplete (i.e. Google search) usually completes the full phrase like this, which may have results with the same first few words:

prefix search demo

While word-by-word autocomplete (i.e. smartphone keyboards) trades off having to click/type more, but deduplicates common words in the beginning:

next-word search demo

· 3 min read

This is kind of like a "Top 10 libraries java developers should know" blog post, but more focused specifically on features (not just libraries) that could apply to any Java codebase. I find myself using these things in tiny personal Java projects as well as large, shared codebases. I primarily work in Java 8 and use IntelliJ. The credit for some of these go to my teammates. If you're a teammate and see this and would like credit, let me know!

· 2 min read

Sometimes helm template error output isn't very helpful. Here are some error cases and solutions I've found in my own Helm usage.