<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7888468902622135760</id><updated>2011-11-17T14:58:33.259-08:00</updated><category term='pyroot'/><category term='fireworks'/><category term='typography'/><category term='tex'/><category term='root'/><category term='fwlite'/><category term='event display'/><category term='latex'/><category term='mac'/><title type='text'>Jeff's Work Journal</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7888468902622135760.post-5125111734191191630</id><published>2011-01-26T15:08:00.000-08:00</published><updated>2011-01-27T06:03:39.660-08:00</updated><title type='text'>Building a New Culture of Teaching and Learning</title><content type='html'>Dr. Tae, physicist, gives a minimalist presentation on the culture of teaching and learning, particularly depersonalization.&lt;br /&gt;&lt;br /&gt;http://vimeo.com/5513063&lt;br /&gt;&lt;br /&gt;Found from http://www.presentationzen.com/&lt;br /&gt;&lt;br /&gt;Also, Brene Brown on imperfection as something that's okay:&lt;br /&gt;http://www.ted.com/talks/view/id/1042&lt;br /&gt;&lt;br /&gt;And Branford Marsalis talking smack about the mindset of students:&lt;br /&gt;http://youtu.be/5rz2jRHA9fo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888468902622135760-5125111734191191630?l=jklukas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/5125111734191191630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jklukas.blogspot.com/2011/01/building-new-culture-of-teaching-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/5125111734191191630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/5125111734191191630'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/2011/01/building-new-culture-of-teaching-and.html' title='Building a New Culture of Teaching and Learning'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888468902622135760.post-6984821259527660204</id><published>2010-05-25T07:18:00.000-07:00</published><updated>2011-04-12T08:23:48.210-07:00</updated><title type='text'>Some Tools a Physicist Might Set Up on a Mac</title><content type='html'>This post is intended to remind myself of the tools I would want to set up on a new Mac, and also to serve as a resource for others who might be interested.  A great resource that touches on many of these topics is &lt;a href="http://fliptomato.wordpress.com/2008/06/30/os-x-leopard-for-physicists/"&gt;"OS X Leopard for Physicists"&lt;/a&gt;, which I will reference below.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Firefox&lt;/h2&gt;&lt;br /&gt;My browser of choice, primarily thanks to one particular plug-in.  &lt;a href="http://www.zotero.org/"&gt;Zotero&lt;/a&gt; is a citation manager that sits inside Firefox.  Most any source you navigate to on the web, be it a news article, a journal article, an abstract, an arXiv document, etc. will trigger an icon in the address bar, and you just need to click on it to import all the vital info into Zotero.  It can save a snapshot of the page, or hold onto the full pdf document.  It's made it much easier to keep track of the literature I've read.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;emacs&lt;/h2&gt;&lt;br /&gt;Along with vi, this is one of the two heavy-hitter text editors that have been around for the long haul.  There is a Carbon Emacs package available, but you can now easily install from source on OS X, getting the most up-to-date version, which I'd recommend.  Instructions are available for &lt;a href="http://www.dansanderson.com/blog/2009/01/installing-emacs-23-on-mac-os.html"&gt;Installing Emacs 23 on Mac OS X&lt;/a&gt;.  It's a steep learning curve with simple things like opening files, saving, copying, etc. involving new key combinations you haven't used before, but I've found the end result is much more efficient editing.  You can learn most everything you need to know about emacs by firing it up and spending some time running through the tutorial (press ctrl-h, then t).&lt;br /&gt;&lt;br /&gt;As a random aside, Emacs installed this way doesn't inherit settings from your shell (or something like that), which means certain packages like AucTeX (for writing LaTeX documents) can't run terminal applications the way they'd like.  To fix this, you have to create a ~/.MacOSX/environment.plist:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;defaults write ${HOME}/.MacOSX/environment PATH "${HOME}/bin:/usr/bin:/bin:/usr/local/bin:/usr/texbin"&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;OpenAFS&lt;/h2&gt;&lt;br /&gt;In particle physics, AFS (Andrew File System) is the go-to standard for setting up computing systems for users.  You can access all your files on AFS from your Mac by installing &lt;a href="http://www.openafs.org/macos.html"&gt;OpenAFS&lt;/a&gt;.  This will mount /afs as a drive on your Mac.  Further, you can create tokens that allow you direct write access to your home directories on AFS.&lt;br /&gt;&lt;br /&gt;To access your Wisconsin HEP account, you'll need to make a few changes in /var/db/openafs/etc (you'll need administrative privileges, so preface any command with 'sudo'):&lt;br /&gt;&lt;br /&gt;In ThisCell, add:&lt;br /&gt;&lt;pre&gt;hep.wisc.edu&lt;br /&gt;grand.central.org&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In CellServDB, add any of these that don't exist:&lt;br /&gt;&lt;pre&gt;&amp;gt;hep.wisc.edu           #University of Wisconsin -- High Energy Physics&lt;br /&gt;128.104.28.219                  #anise.hep.wisc.edu&lt;br /&gt;144.92.180.7                    #rosemary.hep.wisc.edu&lt;br /&gt;144.92.180.30                   #fennel.hep.wisc.edu&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;CMS Stuff&lt;/h2&gt;&lt;br /&gt;For those working on CMS, you can get the &lt;a href="https://twiki.cern.ch/twiki/bin/viewauth/CMS/WorkBookFireworks"&gt;Fireworks event display software&lt;/a&gt;, which is a cinch to install and includes root along with the libraries needed to run FWLite analysis.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Enthought Python Distribution&lt;/h2&gt;&lt;br /&gt;The &lt;a href="http://www.enthought.com/products/edudownload.php"&gt;Enthough python distribution (academic)&lt;/a&gt; includes a modern version of python along with matplotlib (a fantastic plotting library) and a variety of other scientific tools for python.  Comes packaged in an easy installer.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;rootplot&lt;/h2&gt;&lt;br /&gt;If you've setup the Enthought distribution to give yourself matplotlib, you can get it to interface nicely with root through &lt;a href="http://packages.python.org/rootplot/"&gt;&lt;/a&gt;&lt;a href="http://packages.python.org/rootplot/"&gt;&lt;span style="text-decoration: underline;"&gt;rootplot&lt;/span&gt;&lt;/a&gt;.  The documentation page points to instructions for installing on OS X (requires building root).&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;LaTeX&lt;/h2&gt;&lt;br /&gt;You can start from an easy installation of &lt;a href="http://www.blogger.com/www.tug.org/mactex/"&gt;MacTex&lt;/a&gt;, which will install LaTeX along with a bunch of fun tools like LaTeXiT, where you can write LaTeX snippets and drop the pdf or png image into a presentation (in Keynote, you can even drag it back out to LaTeXiT and it will remember the source!).&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;JaxoDraw&lt;/h2&gt;&lt;br /&gt;&lt;a href="http://jaxodraw.sourceforge.net/"&gt;JaxoDraw&lt;/a&gt; is a Java application which provides a graphical interface for drawing Feynman diagrams based on the axodraw LaTeX module.  &lt;a href="http://fliptomato.wordpress.com/2008/06/30/os-x-leopard-for-physicists/"&gt;"OS X Leopard for Physicists"&lt;/a&gt; provides some good advice for setting it up to work correctly in OS X, particularly the paths to dvips and LaTeX and choosing "open" for text editor and Postscript viewer.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;VirtualBox&lt;/h2&gt;&lt;br /&gt;On occasion, I have found a few tasks where I wish I were working a native Linux environment.  For this, I found it astonishingly easy to set up a virtual Ubuntu machine through &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt;.  Once VirtualBox is installed, all you need is an Ubuntu disk image, and it will walk you through the steps to create your new virtual machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888468902622135760-6984821259527660204?l=jklukas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/6984821259527660204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jklukas.blogspot.com/2010/05/some-tools-physicist-might-set-up-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6984821259527660204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6984821259527660204'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/2010/05/some-tools-physicist-might-set-up-on.html' title='Some Tools a Physicist Might Set Up on a Mac'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888468902622135760.post-6885104763604008209</id><published>2010-02-17T16:17:00.000-08:00</published><updated>2010-02-17T16:20:05.286-08:00</updated><title type='text'>Random Setup Things for Mac</title><content type='html'>From &lt;a href="http://www.dansanderson.com/blog/2007/10/ctrlleft-and-ctrlright-for-mac.html"&gt;BrainLog&lt;/a&gt;, instructions for getting Ctrl-left and Ctrl-right working like you expect in the terminal:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;From the Terminal menu, select Window Settings..., then select "Keyboard" from the dropdown menu.&lt;br /&gt;&lt;li&gt;Click on "control cursor left" from the menu, then click the Edit button.&lt;br /&gt;&lt;li&gt;Click the little "delete" button until the text box is empty. Now press ESC, then "b"; the box should now contain "\033b". Click OK.&lt;br /&gt;&lt;li&gt;Do the same for "control cursor right," using ESC then "f" as the character sequence.&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888468902622135760-6885104763604008209?l=jklukas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/6885104763604008209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jklukas.blogspot.com/2010/02/random-setup-things-for-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6885104763604008209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6885104763604008209'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/2010/02/random-setup-things-for-mac.html' title='Random Setup Things for Mac'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888468902622135760.post-6862716651797809169</id><published>2010-02-15T18:18:00.000-08:00</published><updated>2010-02-15T18:32:49.361-08:00</updated><title type='text'>Changing Fonts in a PDF File</title><content type='html'>I tried an experiment this evening to see if a PDF can be successfully edited as a text-file, and the results are fairly promising.  I wanted to achieve plots with all text in Minion Pro so they would match the body text in a LaTeX document I am preparing.  I took the brute-force approach of performing replacing every instance of "Helvetica-Bold" with "MinionPro-Bold"; "Helvetica-BoldOblique" with "MinionPro-BoldItalic"; "Helvetica" with "MinionPro-Regular", etc.  And it worked!&lt;br /&gt;&lt;br /&gt;The only real problem with this method is that a PDF has the characters individually placed, so character spacing looks a little funky with the new font.  Some characters take up more or less space between the two fonts.  Even so, I thought this was a pretty neat trick.&lt;br /&gt;&lt;br /&gt;On a related note, I was able to get ROOT to use an arbitrary font for internal display of plots.  The program is supposed to be limited to the 14 fonts included in the font table (which is not modifiable), but you can game the system by simply replacing the font file with a different one.  For example, you can navigate to &lt;code&gt;$ROOTSYS/fonts/&lt;/code&gt; and copy &lt;code&gt;comic.ttf&lt;/code&gt; over all the &lt;code&gt;arial*.ttf&lt;/code&gt; files.  Now, whenever ROOT wants to use Arial (which is the default), it actually loads Comic Sans.&lt;br /&gt;&lt;br /&gt;Now, the ideal would be for ROOT to magically gain the ability to export LaTeX files the way that some other programs like Matlab and gnuplot can, so that all the text is directly rendered by the pdflatex engine, giving the correct size and identical rendering.  But I don't have my fingers crossed on that one.  I think I can hack something pretty reasonable out of what I've found so far.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888468902622135760-6862716651797809169?l=jklukas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/6862716651797809169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jklukas.blogspot.com/2010/02/changing-fonts-in-pdf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6862716651797809169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6862716651797809169'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/2010/02/changing-fonts-in-pdf-file.html' title='Changing Fonts in a PDF File'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888468902622135760.post-150891397936287896</id><published>2010-02-10T04:29:00.001-08:00</published><updated>2010-03-15T14:05:40.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='typography'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='tex'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Installing the MinionPro Tex Package</title><content type='html'>I have recently gone through the somewhat difficult process of installing the MinionPro package for use with TeX / LaTeX on my Mac, but now it works.  I followed the nice instructions on the nice instructions available through this blog:&lt;br&gt;&lt;br /&gt;&lt;a href="http://carlo-hamalainen.net/blog/?p=8&lt;br /&gt;"&gt;http://carlo-hamalainen.net/blog/?p=8&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But I found I needed a little fiddling.  Here's what I did:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;verbatim&gt;&lt;br /&gt;cd ~/Desktop&lt;br /&gt;&lt;br /&gt;texmf_folder=~/Library/texmf/&lt;br /&gt;&lt;br /&gt;curl http://mirror.ctan.org/fonts/mnsymbol.zip &gt; mnsymbol.zip&lt;br /&gt;&lt;br /&gt;unzip mnsymbol.zip&lt;br /&gt;cd mnsymbol/tex&lt;br /&gt;latex MnSymbol.ins&lt;br /&gt;mkdir -p $texmf_folder/tex/latex/MnSymbol/&lt;br /&gt;mkdir -p $texmf_folder/fonts/source/public/MnSymbol/&lt;br /&gt;mkdir -p $texmf_folder/doc/latex/MnSymbol/&lt;br /&gt;cp MnSymbol.sty $texmf_folder/tex/latex/MnSymbol/MnSymbol.sty&lt;br /&gt;cd ..&lt;br /&gt;cp source/* $texmf_folder/fonts/source/public/MnSymbol/&lt;br /&gt;cp MnSymbol.pdf README $texmf_folder/doc/latex/MnSymbol/&lt;br /&gt;mkdir -p $texmf_folder/fonts/map/dvips/MnSymbol&lt;br /&gt;mkdir -p $texmf_folder/fonts/enc/dvips/MnSymbol&lt;br /&gt;mkdir -p $texmf_folder/fonts/type1/public/MnSymbol&lt;br /&gt;mkdir -p $texmf_folder/fonts/tfm/public/MnSymbol&lt;br /&gt;cp enc/MnSymbol.map $texmf_folder/fonts/map/dvips/MnSymbol/&lt;br /&gt;cp enc/*.enc $texmf_folder/fonts/enc/dvips/MnSymbol/&lt;br /&gt;cp pfb/*.pfb $texmf_folder/fonts/type1/public/MnSymbol/&lt;br /&gt;cp tfm/* $texmf_folder/fonts/tfm/public/MnSymbol/&lt;br /&gt;&lt;br /&gt;sudo mktexlsr&lt;br /&gt;sudo updmap-sys --enable MixedMap MnSymbol.map&lt;br /&gt;&lt;br /&gt;curl http://mirror.ctan.org/fonts/minionpro/scripts.zip &gt; scripts.zip&lt;br /&gt;mkdir minionpro-scripts&lt;br /&gt;cd minionpro-scripts&lt;br /&gt;unzip ../scripts.zip&lt;br /&gt;&lt;br /&gt;find /Library/Fonts/ -iname '*minion*pro*otf' -exec cp -v '{}' otf/ ';'&lt;br /&gt;sudo apt-get install lcdf-typetools&lt;br /&gt;./convert.sh&lt;br /&gt;&lt;br /&gt;mkdir -p $texmf_folder/fonts/type1/adobe/MinionPro/&lt;br /&gt;cp pfb/*.pfb $texmf_folder/fonts/type1/adobe/MinionPro/&lt;br /&gt;&lt;br /&gt;# It turned out to be very important to get this 2.030 version; a mismatch gives missing characters!&lt;br /&gt;curl https://lists.berlios.de/pipermail/minionpro-devel/attachments/20090814/4e956ea2/attachment.zip &gt; enc-2.030-beta.zip&lt;br /&gt;curl http://mirror.ctan.org/fonts/minionpro/metrics-full.zip &gt; metrics-full.zip&lt;br /&gt;curl http://mirror.ctan.org/fonts/minionpro/metrics-base.zip &gt; metrics-base.zip&lt;br /&gt;curl http://mirror.ctan.org/fonts/minionpro/metrics-opticals.zip &gt; metrics-opticals.zip&lt;br /&gt;&lt;br /&gt;cd $texmf_folder&lt;br /&gt;unzip ~/Desktop/metrics-base.zip&lt;br /&gt;unzip ~/Desktop/metrics-full.zip&lt;br /&gt;unzip ~/Desktop/enc-2.030-beta.zip&lt;br /&gt;&lt;br /&gt;sudo mktexlsr&lt;br /&gt;sudo updmap-sys --enable MixedMap MnSymbol.map&lt;br /&gt;&lt;/verbatim&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888468902622135760-150891397936287896?l=jklukas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/150891397936287896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jklukas.blogspot.com/2010/02/installing-minionpro-tex-package.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/150891397936287896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/150891397936287896'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/2010/02/installing-minionpro-tex-package.html' title='Installing the MinionPro Tex Package'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888468902622135760.post-6124944898659652592</id><published>2010-01-31T13:06:00.000-08:00</published><updated>2010-02-01T00:33:03.746-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fireworks'/><category scheme='http://www.blogger.com/atom/ns#' term='pyroot'/><category scheme='http://www.blogger.com/atom/ns#' term='fwlite'/><category scheme='http://www.blogger.com/atom/ns#' term='event display'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><title type='text'>Setting Up CMS Tools on My Mac</title><content type='html'>I finally decided to install some CMS tools on my Mac today, and was surprised at how easy it was.  With one download of the &lt;a href="https://twiki.cern.ch/twiki/bin/viewauth/CMS/WorkBookFireworks"&gt;Fireworks event display package&lt;/a&gt;, you get not only Fireworks, but also ROOT and FWLite.  An informal page on the TWiki gives instructions for &lt;a href="https://twiki.cern.ch/twiki/bin/viewauth/CMS/FireworksFWLiteMacOsX"&gt;setting up your Mac for FWLite&lt;/a&gt; using this Fireworks installation.  What I did was to include the basic content of the &lt;code&gt;root.sh&lt;/code&gt; script he creates in my &lt;code&gt;.bashrc&lt;/code&gt; on my Mac:&lt;br /&gt;&lt;code&gt;&lt;verbatim&gt;&lt;br /&gt;export CMSSW_BASE=/Users/jeff/Work/cmsShow34&lt;br /&gt;export ROOTSYS=$CMSSW_BASE/external/root&lt;br /&gt;export LD_LIBRARY_PATH=${CMSSW_BASE}:${CMSSW_BASE}/external/lib:${ROOTSYS}/lib&lt;br /&gt;export DYLD_LIBRARY_PATH=${CMSSW_BASE}:${CMSSW_BASE}/external/lib:${ROOTSYS}/lib&lt;br /&gt;export PATH=${ROOTSYS}/bin:$PATH&lt;br /&gt;&lt;/verbatim&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Next, I wanted to get PyROOT (the Python interface to ROOT) working.  Looking through &lt;a href="http://root.cern.ch/root/HowtoPyROOT.html"&gt;the documentation on PyROOT&lt;/a&gt;, I was able to get the basic information needed, but it took a little fiddling.  I added the necessary lines to my &lt;code&gt;.bashrc&lt;/code&gt;,&lt;br /&gt;&lt;code&gt;&lt;verbatim&gt;&lt;br /&gt;export LD_LIBRARY_PATH=$(addto $LD_LIBRARY_PATH $ROOTSYS/lib)&lt;br /&gt;export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH&lt;br /&gt;&lt;/verbatim&gt;&lt;/code&gt;&lt;br /&gt;but there was a mismatch of Python versions that gave me an error message.   The solution was to force the use of Python 2.5.x by calling &lt;code&gt;python2.5&lt;/code&gt; rather than &lt;code&gt;python&lt;/code&gt;, which can even be specified in the "shebang" of a script: &lt;code&gt;#!/usr/bin/env python2.5&lt;/code&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888468902622135760-6124944898659652592?l=jklukas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jklukas.blogspot.com/feeds/6124944898659652592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jklukas.blogspot.com/2010/01/setting-up-cms-tools-on-my-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6124944898659652592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888468902622135760/posts/default/6124944898659652592'/><link rel='alternate' type='text/html' href='http://jklukas.blogspot.com/2010/01/setting-up-cms-tools-on-my-mac.html' title='Setting Up CMS Tools on My Mac'/><author><name>Jeff</name><uri>http://www.blogger.com/profile/00587599482110494674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
