Problem with compiling Bayesian Belief Networks in Python Tutorial

Problem

In OS X, when trying to compile the tutorial of Bayesian Belief Networks in Python (https://github.com/eBay/bayesian-belief-networks), using Sphinx (http://www.sphinx-doc.org/en/stable/contents.html) you get the following error:

Extension error:

sphinx.ext.mathjax: other math package is already loaded
make: *** [html] Error 1

Solution

Modify the file conf.py, by removing ‘sphinx.ext.pngmath’ from the extensions  as follows:

#extensions = [‘sphinx.ext.pngmath’, ‘sphinx.ext.mathjax’, ‘sphinx.ext.viewcode’]
extensions = [‘sphinx.ext.mathjax’, ‘sphinx.ext.viewcode’]

Other questions that could be solved by this solution

  • How can I compile a Python documentation using Sphinx in Mac OS X?
  • How to solve an Extension error in compiling using Sphinx?
Advertisements

How to have proper video size with iMovie for MAC

Problem

You wish to edit a video with iMovie, by mixing different video sources. You see that, in the mixed video, the size of the original videos is cropped, and appears smaller than the original. You do not like this.

Solution

  1. From the bottom panel with the source videos, select the video that appears cropped
  2. Press ‘C’ or the ‘crop’ icon close to the ‘microphone’ icon
  3. Select ‘Fit’ on the right-top panel
  4. Select ‘Done’ on the right-top panel
  5. Now, drag-and-drop your selected video to the Project panel on top and it should not appear cropped anymore

Notes

Tried on:

Mac OS X 10.8.4
iMovie 9.0.8

Other questions that could be solved by this solution

  • How to forbid iMovie to crop videos?
  • Why iMovie cut my videos?
  • How to have video-shot of the original size with iMovie?