Wednesday, August 29, 2018

The *actual* way of getting CUPSD to share printers

Although modern cupsd documentation describes a couple of simple steps that should theoretically enable sharing of printers on your system, one critical component is missing.

Documentation on cups.org suggests using cupsctl and lpadmin to enable sharing of a printer; this is all fine and good:
cupsctl --share-printers
lpadmin -p printer -o printer-is-shared=true

Inside of the default cupsd.conf there is a section

  Allow @LOCAL
  Order deny,allow
You need to add the Allow @LOCAL line in order to enable sharing from local subnets, which is probably the most common user case.

Afterward, restart the cups daemon.

Thursday, August 2, 2018

A better formatted version of the clinically useful depression outcome scale (CUDOS)

During the past week, including today... Never 1-2 days 3-4 days 5-6 days Every Day 1. I felt sad or depressed 2. I was not as interested in my usual activities 3. My appetite was poor and I didn't feel like eating 4. My appetite was much greater than usual 5. I had difficulty sleeping 6. I was sleeping too much 7. I felt very fidgety, making it difficult to sit still 8. I felt physically slowed down, like my body was stuck in mud 9. My energy level was low 10. I felt guilty 11. I thought I was a failure 12. I had problems concentrating 13. I had more difficulties making decisions than usual 14. I wished I was dead 15. I thought about killing myself 16. I thought that the future looked hopeless 0 1 2 3 4 17. Overall, how much have symptoms of depression interfered with or caused difficulties in your life during the past week? 0) not at all 1) a little bit 2) a moderate amount 3) quite a bit 4) extremely 18. How would you rate your overall quality of life during the past week? 0) very good, my life could hardly be better 1) pretty good, most things are going well 2) the good and bad parts are about equal 3) pretty bad, most things are going poorly 4) very bad, my life could hardly be worse