PGP Public Key

If you want to send me an encrypted email, you can use the following public key:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org

mQENBFZBLrEBCADXIF61cvFaq0shYc8rYS4YKGlZjB3UYnaWPBXOz3bbxUQ9AVDp
+9/ff2whkYV77kDIAtEgxNUiAn0v4+MIwhUoWLbZCuTb+mLqezJz0t91v7Vvsbys
+x/zY0qdjJ8PI6Tj0OLJmJkcFpguGgDavJPGkUBUQYcpqQuvU5skLXmqsoDacYPD
wAKNsJaK2vQR9d845rzHr+XoKzaFH7sJnTIIfi2U+zlFBqt44l6f73NhUAkry238
ObvW/fCOvJ6/HshUKT3tj4Aowsilcidd790mxJ2Z3SaRM8MCHuPcL48BjmjD2CRb
wECudbUa42uekkHk+/u2WPBNmdn59OXDMMofABEBAAG0Jk1hdHQgQnVydG9uLUtl
bGx5IDxiZWRyb2Nrc0BnbWFpbC5jb20+iQE9BBMBCgAnBQJWQS6xAhsjBQkJZgGA
BQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJEJ1B2I+k7J46xkUH/22khpEMJyVe
P9zYprEwaLGKln+JUSmR4oaK1G08OiHpErZZ90HLPg6EP62lp+o8vCFAEGZQATSw
ajEtHCdzZ1qaSD6tisUAVBp833GJpWCgL+ESnv1ZUTZiEWt+HHucG9IVhBTys1KZ
q1AIOleAvUWBiKjnUHAE5hlqsa1shE2LhxeFqgX6KBs2gzsh9s+D2CHPGFfuThDe
ODaLDjLhcMAyzkq07WiWuODeFE44Yf196OsMTE1sCH20JsiGNcfCZVYADjMCgujy
ZeoHyvrQ4u93eqvp9JS0pgfDlLaWp5HvwczPIrf6+QAvpO9tPvNo24OIqYG7E+e9
+S+Dmg8tzTq5AQ0EVkEusQEIAMyZTwpMBiK2qmPMTm6ixmy0+q+kt7NhnWmG9iFg
BcpzRpYCWmi2udOFxVGr/Addd1ypyaa6AngKwQryUxlLpT4hPVgFDXmM7LpXREHV
4aXdevsvkyRc/WkBlnphCfkqDrOBypD5Wwrg0XB8Sbc/bSTxzQfgIxLTj2T7ERNj
6D7sXEzAJNwPvydI/dcNzvJ2bzLtRKpuz98KWsGjqFMvHP8V2i8FogKlexWHrL/M
IicHx3rlIW33CceiahxE3dTkHTmllq9wFU1MxXegYSWRTtAi4IFWov29r0JJmuuS
oB7fsm3BbDhYpBRpbtpjhm2uPPPFtw1uItgFgRSwYRk58y8AEQEAAYkBJQQYAQoA
DwUCVkEusQIbDAUJCWYBgAAKCRCdQdiPpOyeOkuCCACzQUnnNE58Pds/ukaOrgoB
xuSVUcjQ4/rYUht/suIzIbYTsZjixaE80RUFhRSfPx9b/aXJYJV2sAvwGb78Vv3j
mFV1WDUC7J/myLxv8S8ppdqk6RqTnuj+jilWOhcNyE6359jmMMxA3q/Z3J7bQB8P
FMpS6PQY5HOTCzLztC87aRWKJGJ6GlB1QAlHaMD7156h+t57IsWrhS944ArzJ5zY
GcuOwpHSFxOsbWL0MivOqx8bWhFdJVMu5lZGK+kJe0Xes4EmKVCAgt6LXH+5qOm1
2eDdUe5CI3jWiQxSMhTty382S53XwLzUb+zxcB/V84pHYFPPGfeQVbxgGmFPgPKS
=HOc2
-----END PGP PUBLIC KEY BLOCK-----

Comics

My main regret about not producing a webcomic* is that I don’t have a reason to provide timely updates about what is going on in my life.

*I don’t produce a webcomic because although it would be cool, I think other people already do a much, much better job of it.  Sort of like working for NASA.

Find PDFs that are not OCRed (Windows grep)

 
Works reasonably well, although some files may have font properties without the word “Font” (capitalization matters).
 
Open CMD prompt
dir Desktop (or whatever target directory)
grep -L Font *.pdf > list_of_files.txt
 
-L = only return file names that do not match
-r = Recursive

Apple Mail Rules Broken in Yosemite (OS X 10.10)

This has been bothering me since I upgraded to Yosemite earlier this summer.  I finally found an answer: turn on iCloud syncing for email.  I did not need do any if the file copying mentioned in the linked solution.

In case you’re wondering: No, I am not a rules fanatic, but one IMAP email account through my hosting company has an issue with spam.  I turned on Spam Assassin, which tags the junk, and then I use a rule to put those messages in the junk folder, just in case there was a false positive.

 

Add Factors to a Momocs Coo Object

This wasn’t documented anywhere (maybe it’s obvious?), but here is a short example using the included ‘bot’ dataset.

data(bot);
# Look at the existing factors, stored in bot@fac
a<-bot@fac;
# Add another arbitrary factor
a[2]<-a;
a[2]<-c(1:40);
names(a)[2]<-“number”;
# Put your new factors back into the object
a->bot@fac;
# Look at your data based on the new factor
panel(bot,cols=col.india(40)[bot@fac[,”number”]]);

 

 

PetroMod Simulation Log Location

Simulation logs (one per processor used during simulation) are located in the out folder of your model, with the name(s) log.pma, log1.pma, log2.pma, etc.

Possible use for this information: Write a script that automatically copies log files to another location for later review if needed (watch folder in Python?).  Bonus points if you are timestamping your notes so you can identify the right file to look at.