Good to see that he tells it like it is — you won’t hear any mention of this stuff from the administration at Tulane, you’ll just hear a pile of euphemisms, but we (who were or are there) know it to be true:
Author Archives: Brock Tice
FSM Hat
Hearty Friday – Biohazard

Day 11 of 365 (Thursday)
Originally uploaded by brandylee
So, this is a bit more risqué than I’d normally post for Hearty Friday, but I loved the mix of the heart with the biohazard symbol.
Comments from ‘file’ (and ‘tar’)
Occasionally when using Linux (or Mac OS X) I’ll notice a tongue-in-cheek output message from a utility. Today, it was ‘file‘, a program that uses magic numbers and other tricks to tell you about the contents of a file:
[brock@stilgar][Darwin]-(~/Workspace/RvPacing/bridge/flma2memfem)-> file bridge_w_surf.flma
bridge_w_surf.flma: ASCII text, with very long lines
[brock@stilgar][Darwin]-(~/Workspace/RvPacing/bridge/flma2memfem)->
Emphasis mine. Thanks for the commentary, file.
ADDENDUM: Just now, tar gave me this little message because I forgot to provide some source data:
[brock@stilgar][Darwin]-(~/models)-> tar cfjv bridge_iso.tar.bz2
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
That one, I’ve seen before.
Finding Duplicates with sort and uniq
Imagine this: You have two text files full of information, with one data entry on each line. You want to find out which lines occur in both files. Now, if the files are mostly the same, it’s probably best to use a program called diff. However, if the files are mostly different, you can use this little incantation:
cat file1.txt file2.txt | sort -n | uniq -d
This will join file1 and file2, sort the joined data -numerically, and display only the lines that are not unique (uniq -d).
This came in handy for manipulating electrode files today. Our electrode files just contain lists of node numbers. The simulator gets unhappy when you try to do things with overlapping electrodes, so in this way we were able to remove the offending overlap without too much trouble.

