Re: Python decorators

2014-08-19 Thread Joshua Elliott
On Tue, Aug 19, 2014 at 9:05 PM, Daniel wrote: > I have a flask application I am writing. I need to know how to pass a > variable to the decorator of a function. The decorator will determine if a > user is authorized to view a page. The variable I would use would have the > user id and role. Can

Re: It's alive! Well sorta.

2013-12-07 Thread Joshua Elliott
I've used monit for something like this before. It can restart the daemon when it crashes, or when it uses too much memory/cpu. On Sat, Dec 7, 2013 at 2:18 AM, S. Dale Morrey wrote: > I've got a system I'm in charge of that uses a standard init script. i.e. > /etc/init

Home storage solution

2013-04-07 Thread Joshua Elliott
ine with raid 1... unless somebody convinces me that I need more than that. So what would be the best (economical, durable, expandable) way to get that? Roll my own? Pre-built? Cloud? Thanks for your wise words (even the off-topic ones), Joshua Elliott /* PLUG: http://plug.org, #utah on i

Re: [OT] Josh's secret

2012-07-13 Thread Joshua Elliott
Thanks guys. I feel better about my linux skills now. On Fri, Jul 13, 2012 at 1:01 PM, Thomas S Hatch wrote: > I only learned a few years ago about CTRL-\ that's awesome sauce > > On Fri, Jul 13, 2012 at 12:59 PM, justin > wrote: > > > Related: A while back I taught a former boss — who started