| Interesting links: Sites I visit daily: |
email
|
helpful commands for myself:
print out column 3, a tab, then column 1:
cat somefile.txt | awk '{print $3 "\t" $1}'
assume column 2 has numbers, to sum up that column:
cat somefile.txt | awk 'BEGIN {s=0} {s=s+$2} END {print s}'
add numbers in column 1 & 2, and separately column 2:
cat somefile.txt | awk 'BEGIN {s=0; t=0} {s=s+$1+$2; t=t+$2} END {print s "\t" t}
in-file substitution using perl:
perl -i -pe 's/from/to/g;' somefile.txt
my preferred source indentation formatting (Allman or ANSI/ISO C++ style with indentation size 3)
indent -i3 -bls -bli0 -bbo -bfda -cbi0 -cli3 -cd3 -sc -nut -lp -npsl -npcs -di7 somefile.txt
simple C strtok example
char *tok;
tok = strtok(szString, "\t");
while (tok != NULL)
{
printf("do something with this token '%s'\n", tok);
tok = strtok(NULL, "\t");
}
![]() |
My dog We have a female Norwich Terrier named Dyna. Dyna is short for Dynamite as her registered name from the breeder was "Ji-Ro's TNT". |
20 gallon long tank
05/23/2008: Tank current has 6 peacock gudeons, 4 otocinclus, single raphael spotted catfish (who's greater than 10 years old now), and some red cherry shrimp.
Here's a 5GB .wmv video of my Kribensis pair and their new fry (August 2005).
08/31/2006: added Endlers to this tank thanks to Betty (from NOAA via GSAS mailing list); these will eventually need to be split across my tanks.
08/2006: pair of Kribensis (new male, female was spawned in this tank), 3 baby Kribensis, and a raphael spotted catfish who's been with me since 1999 or earlier!
10/2005: inhabitants included pair of Kribensis (prolific spawners, in video above), another female Kribensis spawned in the tank, Siamese algae eater, and a raphael spotted catfish.
Outside deck pond
05/23/2008: pond current contains just a single sarasas and the black comet
Here's a 4GB video of my pond circa 07/2006.
08/2006: the water lily bloomed for the 2nd time this year! Send me an email if you know the name of my lily (see pic above).
07/2006: various goldfish (a feeder that Jordan brought home from school, a nice big shubunkin, couple of sarasas, a mystery black goldfish spawned in the pond); papyrus, arrowhead, hyancinths, anacharis, and some mystery water lily that flowers once a year for me.
12 gallon JBJ nanocube
05/23/2008: this gorgeous little tank was being neglected by me so I passed it onto a friend earlier this year to take better care of it.
08/2006: pair of blue rams (did the spawn dance once but now sadly male just chases/nips at female), one mystery freshwater shrimp, one baby 1/2" cacatuoides female that was spawned in the tank, one surviving mystery freshwater (Amano?) shrimp.
10/2005: current inhabitants are a pair of Apistogramma cacatuoides "orange flash". These fish spawned once for me and then daddy eventually passed away; sadly since I'm writing this retrospectively I can't remember what happened to mommy.
2.5 gallon @ work
05/23/2008: after I left the Hutch, this tank has been sitting empty in my garage
08/31/2006: got about a dozen cherry red shrimp from Betty (from NOAA via GSAS mailing list) that I put my 2.5 gallon glass aquarium at work. Tank is composed of Eco Complete for substrate, a piece of wood, java moss, and pistia (also from Betty). Thanks Betty! 18W flourescent office lamp over the tank; no heater or filter. Hope this little tank does half as well as Betty's shrimp tank.