Wednesday, July 16, 2014

Using GitStat to Generate Commit Statistics for Git Repositories

You will nee python and a working installation of gnuplot.
  1. cd ~/pkg/
  2. git clone git://
  3. cd gitstats
  4. ./gitstats path-to-repository path-to-html-output
Here's what I do for my code
  1. cd ~/pkg/
  2. git clone git://
  3. cd gitstats
  4. ./gitstats -c start_date=1/1/2014  ~/development/uintah-work/src ~/uintah-stats-2014/
For more information on the options provided by gitstat, use
./gitstats --help
Note that you will always need to use -c flag to change the gitstats configuration.

Cite as:
Saad, T. "Using GitStat to Generate Commit Statistics for Git Repositories". Weblog entry from Please Make A Note.

Tuesday, June 24, 2014

Maximum Entropy PDF Reconstruction Code

Many of you have asked me to share my Maximum Entropy Method code for the reconstruction of density distributions. Unfortunately, I am unable to do that at the moment. In an effort to stop the email campaign that is asking me for the code, I decided to create a cgi interface for it and put it online. So here it goes...

Here is a summary of the maximum entropy method. You can access my code through the interface below. At the bottom of this page, you will find a example moments from known distributions. Use those to experiment with the code.
  • Known Moments: The set of all known moments for the unknown distribution. Enter one moment per line in the textarea below. Moments are assumed to be integer moments and are given as m0, m1, m2, etc...
  • Number of Moments: Specify how many moments you wish to use (from the set of known moments) to reconstruct the distribution
  • Lower Bound: Specify the lower bound on the reconstructed distribution
  • Upper Bound: Specify the upper bound on the reconstructed distribution
  • Number of Integration Points: Has to do with the numerical quadrature algorithm. Defaults to 80,000
  • Maximum number of Iterations: specifies the number of internal iterations of the nonlinear solver
  • Tolerance: Specifies the nonlinear solver tolerance
  • Finite Difference Jacobian: Use finite difference to compute the Jacobian matrix
  • Discrete Distribution: Use to reconstruct Discrete distribution. NOTE: Make sure you use a realistic number of integration points!

Known Moments
Number of Moments
Lower Bound
Upper Bound
# of Integration Points
Maximum # of Iterations
Finite Difference Jacobian
Discrete Distribution

Cite as:
Saad, T. "Maximum Entropy PDF Reconstruction Code". Weblog entry from Please Make A Note.

Tuesday, July 23, 2013

how to move keynote from one mac to another

I basically moved the following files:

  • Macintosh
  • Macintosh 
  •  Macintosh HD:Library:Application Support:Keynote
  • Macintosh HD:Library:Application Support:iWork ’09
  • Macintosh HD:Applications:iWork ’09

Cite as:
Saad, T. "how to move keynote from one mac to another". Weblog entry from Please Make A Note.

Saturday, July 6, 2013

My New Project: Show Me the Math

Please join me in celebrating the launch of my new project "Show Me the Math", a journal purely dedicated to mathematical derivations of physical and numerical stuff. I will no longer post derivations on pleasemakeanote as those will go to showmethemath. I will start porting and improving the current derivations to the new blog as time goes by.

Thank you all for your support,

Cite as:
Saad, T. "My New Project: Show Me the Math". Weblog entry from Please Make A Note.

latex2html Underline Equations and Formulas

I recently tried to use latex2html to export a few of my tex documents to html. I simply used
latex2html main.tex
but I ended up with a bunch of unsavory lines under all of my equations. Upon googling things a bit, I found the following solution that worked for me:
On my mac, here's what I did:

  1. search for the file (on my Mac, I opened the folder /usr and searched for it there. the file was located under: /usr/local/texlive/2012/texmf/dvips/config/
  2. edit the file as suggested by the link above. i.e., replace
    gsave newpath   /ruleY X /ruleX X
    gsave newpath
    transform round exch round exch itransform
    /ruleY X /ruleX X
and Voila!

Cite as:
Saad, T. "latex2html Underline Equations and Formulas". Weblog entry from Please Make A Note.