Saturday, July 16, 2016

TIL: Geany and Shellcheck

I've been using Geany for a while. When I selected it, I was looking for a cross-platform text editor with convenience features for writing code because all of the IDEs I had tried were cumbersome. I wanted syntax highlighting and code folding. I was happy that Geany also includes auto-completion, project support, vertical selection (when that's useful, nothing else will work as quickly), and plugin extensibility.

More recently, I ran across Shellcheck and was impressed with what it detects. Of course I could use it online or on the command line, but wouldn't it be nice to have it integrated with Geany also? Sure it would! So I proceeded to look for a Shellcheck plugin for Geany, in a case of retrospectively-humorous linear thinking.

The punchline is that Geany doesn't need a plugin; it has a far simpler approach. When I open one of my bash scripts in Geany, the first menu item under the Build menu is Lint. Guess what lint on a shell script runs? Of course it runs shellcheck! So today I learned that the feature I wanted in Geany was already there in the most appropriate place ... once I broke out of the linear thinking.

Saturday, July 9, 2016

Stay Well!

A friend of mine was in the hospital two weeks ago due to a condition triggered by a reduced immune system. That got me thinking ...

Immune System Stressors

  • emotional stress
  • physical stress
    • inadequate sleep
    • athletic overtraining
  • smoking
  • diet
    • high fat consumption
    • alcohol consumption
    • high refined sugar consumption
    • inadequate protein consumption
    • inadequate calorie consumption
    • inadequate vitamin consumption, including inadequate Vitamin B12
    • inadequate mineral consumption, including inadequate iron and/or zinc
    • inadequate water intake
    • food allergies, mostly if not avoided
    • food intolerances, mostly if not avoided
  • UV (sunburn!) and other types of radiation
  • chemical sensitivities
  • environmental and occupational chemical exposure
  • any immunodeficiency or autoimmune condition
  • common viral or bacterial infections
  • cirrhosis of the liver
  • certain drug therapies, including prednisone
  • blood transfusions and surgery
  • over age 40

[1] accessed 2016-07-09

How to Help Your Immune System

  • wash your hands frequently to avoid infection
  • get adequate sleep: 8 to 10 hours a night
  • exercise regularly, but do not over-exercise
  • maintain a healthy weight
  • do not smoke
  • do not drink alcohol, or only in moderation
  • drink plenty of fluids, especially water
  • reduce in your diet: saturated fat, refined sugar
  • adequate amounts in your balanced diet: protein, calories, vitamins, minerals, and essential fatty acids
  • eat a diet high in fruits, vegetables, and whole grains
  • cook meats thoroughly to avoid infection
  • do not over-eat
  • to counter stress, try massage, mindfulness relaxation techniques, and spend time with good friends who make you laugh
  • avoid false friends who tell you how to feel, and who your friends are/should be
  • avoid allergies and food intolerances
  • avoid sunburn
  • avoid exposure to radiation and unhealthy chemicals
  • control your blood pressure
  • get regular medical screening

[2] accessed 2016-07-09