Notes

The Amazing Taylor-Green Vortex

If you’ve worked in computational fluid dynamics, then you’re probably aware of the Taylor-Green vortex – at least the two-dimensional case. A simple google search will land you on this wikipedia page. The classic solution there is presented in the form \begin{equation} u = \cos x \sin y F(t);\quad v = -\sin x \cos y …

Uncategorized

Remove Indentation after LaTeX Subequations

LaTeX subequations produce a suprious space or indent immediately after. To get rid of this space, do one of two things Place your subequations label at the begining of the subequations environment, If you insist on placing the label at the end of the subequations environment, then place % sign after that.

Uncategorized

Update: Zotero Box Sync – Not syncing or no zotero folder

In a recent article, I discussed how to sync your zotero library with your box account. However, as many have informed me, there seems to be a problem in setting up the “initial” folder. In fact, I just encountered this same exact problem today on a new computer that I am setting up. Today I …

Notes

How to Modify Video Speed with ffmpeg?

For Faster video speeds use: ffmpeg -i input.mov -filter:v “setpts=0.5*PTS” output.mov For Slower video speeds use: ffmpeg -i input.mov -filter:v “setpts=2*PTS” output.mov Note the factor multiplying PTS. If that factor is less than 1, then you get a faster video. The opposite otherwise. Thanks to: Modify Video Speed with ffmpeg

Code, Notes

Jupyter Notebook doesn’t Automatically Open a Browser on OS X

This issue appears to have showed up on Sierra. Here’s a simple fix: Edit your bash profile (emacs ~/.bash_profile) Add export BROWSER=open Close your shell or source it (source ~/.bash_profile) Things should get back to normal now. Ref: https://github.com/conda/conda/issues/5408

Code, Notes

How to Highlight Code in Keynote

First install a utility called highlight. It is available through macports and homebrew. sudo port install highlight Now that highlight is installed, you can “apply” it to a file and pipe it to the clipboard: highlight -O rtf MyCode.cpp | pbcopy Now go to Kenote and simply paste from clipboard (or command + v). Highlight …