Mac tricks, histo in Excell
valgrind
I got valgrind on a macbook pro (oeit edition) using the following commands:
sudo port sync
sudo port install wget
wget http://www.sealiesoftware.com/valgrind/valgrind-opensource-4.patch.gz
gunzip valgrind-opensource-4.patch.gz
svn co -r8180 svn://svn.valgrind.org/valgrind/trunk valgrind
svn update -r1854 valgrind/VEX
patch -p1 -d valgrind < valgrind-opensource-4.patch
cd valgrind
./autogen.sh
./configure
make # will fail but that's ok
ranlib VEX/libvex_x86_darwin.a # fix the 1st failure
make # keep going, will fail but that's ok
ranlib VEX/libvex_amd64_darwin.a # fix the 2nd failure
sudo make install
/usr/local/bin/valgrind --help
(more at http://www.sealiesoftware.com/valgrind)
Measure clock frequency:
cat /proc/cpuinfo
Open home directory for the group read:
chmod go+rx $HOME
Unix version: cat /proc/version
I would try to print the canvas in landscape mode:
c1->Print("myfile.ps", "Landscape");
However, if you want to do it from ps2pdf, it looks like
you may be able to use:
ps2pdf -c -c "<</Orientation 3>> setpagedevice"
http://pages.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm#Orientation
Find what shell is used:
[balewski@onl04 ~]$ echo $SHELL
/bin/tcsh
Copy local copy of root to onlNN machine:
- scp -rp $ROOTSYS newMachine_myDir
- add to .cshrc
- setenv ROOTSYS /ldaphome/balewski/myRoot/
- setenv PATH "${ROOTSYS}/bin:${PATH}"
- setenv LD_LIBRARY_PATH "${ROOTSYS}/lib"
All about mounting disks
List mounted disks:
/usr/sbin/showmount -a All mount points on trgscratch.starp.bnl.gov: *.s88.bnl.gov:/home/trg *.starp.bnl.gov:/data/scalerdata *.starp.bnl.gov:/data/trgdata *.trg.bnl.local:/data/scalerdata *.trg.bnl.local:/data/trgdata 130.199.162.136:/data/plots 130.199.60.100:*.starp.bnl.gov 130.199.60.101:*.starp.bnl.gov 130.199.60.102:*.starp.bnl.gov
Check history of recent mounts in the log file:
grep mount /var/log
Check IP of machine:
/sbin/ifconfig
From Hal:
1) I typed in the entries in g6->g12 by hand.
2) Click "Tools" -> "Data Analysis" -> "Histogram"
You may need some math package for Excel to be installed, I cannot remember. A box comes up.
3) Input range - first click in the box next to input range, then click on box c6 or d6, and then add/type ":c42" or ":d42" or whatever is the end of your list.
4) Bin range - first click in the box next to bin range, then click on g6, and then add/type ":g11" or ":g12".
5) Click "Output Range" and then click in the box next to output range, then click on where you want the graphic to be located, like h5, and finally add/type ":h12" or ":h13".
6) Click "Chart Output"
7) cross your fingers, and click "OK"
Excell histo example is in attachment A)
- balewski's blog
- Login or register to post comments