(back)
Useful GNU software
(Roughly in increasing order of obscurity.)
Stuff I like
Hacker-esque things which I always forget
- Network traffic: To capture network traffic, wave your hands and chant
/usr/sbin/tcpdump -c 3000 -i eth1 dst port 2049 | cut -d' ' -f3 | sort | uniq -c.
- LaTex: If using the macports tetex installation, put style files in /opt/local/share/texmf-dist/tex/latex/.
Run mktexlsr to re-build the directory listing after putting it there.
- Leopard: Leopard's X11 installation is reportedly problematic (I've had problems!). See this page to rollback to the Tiger version.
- dia: Installing dia requires pango, etc. That needs libXdmcp.la and libXau.la. These don't seem to come with Leopard X11.
I installed xorg-libXau and xorg-libXdmcp from macports and then created the necessary symlinks as sudo ln -s /opt/local/lib/{libXau.la,libXdmcp.la} /usr/X11/lib/{libXau.la,libXdmcp.la}.
It was annoying.
- emacs: To use emacs to change between DOS/UNIX/etc. newline encoding, do Meta+x set-buffer-file-coding-system (Ctrl-x RET f). Select mac, dos, unix, etc. as appropriate.
- emacs and ESS: To interact with Quartz devices in ESS, get CarbonEL.
- CPU info: To get CPU info from a Linux system, look at /proc/cpuinfo.
- Mac bundles: Check whether the "bundle bit" is set with GetFileInfo, e.g., GetFileInfo -aB. Set or unset the bundle bit with SetFile.
- R colors: Click here.
- Compiling IT++ into a 64-bit executable:
Run ./configure as
- CXXFLAGS="-arch x86_64" ./configure --without-zdotu --without-fft
Edit itpp/Makefile by hand so that libtool uses $(CXXFLAGS_OPT) as well as $(CXXFLAGS):
- libitpp_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)
- $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS)
- $(CXXFLAGS) $(CXXFLAGS_OPT) $(libitpp_la_LDFLAGS) $(LDFLAGS) -o $@
(edit the appropriate lines in the Makefile to match the ones above)