Archive for January, 2011
This has been bugging me for awhile. Recent versions of Emacs save _flymake files “inplace”, meaning in the same directory as the source file. Problem is, Flymake has a tendency to crash, leaving behind the corpses of various _flymake files, which in turn cause version control annoyances, automated build issues, unusual problems with caching in web frameworks, etc.
There’s an obscure FlymakeRuby entry on the EmacsWiki with a suggested fix, repeated here:
(defun flymake-create-temp-intemp (file-name prefix)
"Return file name in temporary directory for checking FILE-NAME.
This is a replacement for `flymake-create-temp-inplace'. The
difference is that it gives a file name in
`temporary-file-directory' instead of the same directory as
For the use of PREFIX see that function.
Note that not making the temporary file in another directory
\(like here) will not if the file you are checking depends on
relative paths to other files \(for the type of checks flymake
(unless (stringp file-name)
(error "Invalid file-name"))
(setq prefix "flymake"))
(let* ((name (concat
(ext (concat "." (file-name-extension file-name)))
(temp-name (make-temp-file name nil ext))
(flymake-log 3 "create-temp-intemp: file=%s temp=%s" file-name temp-name)
Add this to lisp/progmodes/flymake.el in your Emacs distro, and then call it from the init method corresponding to your target language. PHP, for example:
;;;; php-specific init-cleanup routines
(defun flymake-php-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
(list "php" (list "-f" local-file "-l"))))
'flymake-create-temp-inplace has been replaced with
'flymake-create-temp-intemp. Be sure to remove or recompile the corresponding flymake.elc file.
Now _flymake junk will be saved to where you have defined temporary-file-directory in .emacs. In my case:
(setq temporary-file-directory "~/.emacs.d/tmp/")
Yay. Much less annoying.
Very interesting interview with Jim Rickards yesterday over at King World News. After glossing over the four-year-old news of Alan Greenspan supporting a gold standard, etc., etc., Jim chimes in on the World Economic Forum’s recent proposal that what the world needs, really, is just another hundred trillion dollars of debt. Digging into the bowsels of the 80+ page document, Jim translates the discussion of “credit” inflation and “enforced accountability” for what it really is: global debt creation, coercive monitoring, and global governance. Should make for some lively seminars at Davos.
Contributors to the proposal, reading like a roll call from the School of Conspiracy, include such upstanding organizations as J.P. Morgan, Shell Oil, Deutschbank, Rothschild and Co., Yale University Bank for International Settlements, The International Monetary Fund, and so on.
On the upside, I suspect we the world can just ask Zimbabwe to spot us.
We’re good for it.
Here’s some good news: A clinical trial led by Mitsuyoshi Urashima and conducted by the Division of Molecular Epidemiology in the the Department of Pediatrics at the Jikei University School of Medicine Minato-ku, Tokyo found that vitamin D was extremely effective at halting influenza infections in children. The report, published in the American Journal of Clinical Nutrition, follows up on a hypothesis posed over three years ago that deficiencies in the “sunshine vitamin” may leave those deficient susceptible to infections, and this includes the flu.
Ironically, most people in the developed world are chronically deficient. Which isn’t surprising given lifestyle and constant fear marketing about how the sun is out to get us.
So forget about the big pharma vaccines, get some sun and drink your milk, raw if you’ve got it. And remember, when it comes to flu vaccines and “herd immunity,” really it’s a herd of lemmings that big pharma is after..