Author: Tony Saad


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 …


How to Modify Video Speed with ffmpeg?

For Faster video speeds use: ffmpeg -i -filter:v “setpts=0.5*PTS” For Slower video speeds use: ffmpeg -i -filter:v “setpts=2*PTS” 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:

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 …


Add to Calendar for Google Inbox

For those who have adopted inbox for their workflow, here’s how to add an event to your calendar. Your must be using google calendar & Chrom Download the google calendar extension and add it to Chrome. You will need to authorize your calendar. Back to inbox, select the text corresponding to your event (e.g. Thursday February 2, …

Code, Notes

Convert Movie or Animation to Animated Gif

mkdir frames ffmpeg -i input -vf scale=320:-1:flags=lanczos,fps=10 frames/ffout%03d.png convert -loop 0 frames/ffout*.png -fuzz 20% -layers OptimizePlus output.gif Thanks to:


Unbounded Kinetic Energy in Forward-Euler Inviscid Flows

Observation When using a forward-Euler method for the time integration of the momentum equation for an inviscid-flow, it appears that the kinetic energy of the flow grows unbounded in time, regardless of the timestep size. Problem Statement Estimate the change in total kinetic energy when using forward-Euler to integrate the Euler momentum equations in a periodic box. Approach To …