• gregr

    Here are similar scripts to start/stop instances on EC2 - I use them for the same purposes, to start/stop a development instance.

    http://www.rassoc.com/gregr/weblog/2016/02/10/pythonista-scripts-for-ec2/

    posted in Pythonista read more
  • gregr

    @ProfSpaceCadet nice. Although rather than doing

        while result == None:
            pass
    

    while you're waiting for a result (which will likely burn CPU), would probably be better to add a threading.Event, and wait on that event instead of looping.

    posted in Pythonista read more
  • gregr

    I've recently been doing a lot of web development using an iPad Pro, using a remote VPS as a development server. I wrote some Pythonista scripts to create and destroy VPS's from saved images, so I can tap a button on my iPad, and the VPS is up and running in about a minute. And since no one wants to keep paying $0.015/hr :-), another tap tears down the VPS.

    Right now the scripts are for Linode, and I have some similar ones for AWS/EC2 I'll upload when I get a chance.

    Anyway, the scripts are here, including some commentary on how to customize them for your own use:

    http://www.rassoc.com/gregr/weblog/2016/01/25/web-development-with-ipad-pro/

    Or go right to the code if you'd rather:

    https://gist.github.com/greinacker/0a4f2b0a64b7c5b13a48

    Hopefully this is useful for someone!

    posted in Pythonista read more
  • gregr

    To the original question - it would be cool if there was a way to open a file from a document provider in another app. Sort of as described in this blog post, where 1Writer is using the document provider from Working Copy to open a file in-place (i.e. without making a new copy):

    http://www.rassoc.com/gregr/weblog/2016/01/15/using-working-copy-with-1writer-on-ipad-pro/

    posted in Pythonista read more
  • gregr

    I'd love to see the ability to restrict keychain access with a passcode or Touch ID.

    posted in Pythonista read more
  • gregr

    Just for another opinion - I absolutely love the smart keyboard. The angle seems good for me, and I like how thin and light it is, when folded up.

    I thought I was going to hate it, and go to a bluetooth keyboard - but now you'd have to pry it from my hands. :)

    posted in Pythonista read more
  • gregr

    Well, I do secure the whole device with Touch ID. What makes me nervous, though, is if you hand your unlocked iPad to someone you do trust (family member, etc), and they accidentally tap something they shouldn't.

    For example, I have some scripts that do somewhat destructive things, like remove production servers from load balancers. I'd rather not have to type my password every time to run the script - but if I store the password in the keychain, then someone borrowing my iPad could do it by accident.

    That said - I understand I could probably work around the "accident" case by adding my own Touch ID check in the script, as suggested earlier. But I'd feel better if there was a system-level thing...

    Seems like the ideal thing (for me, anyway!) might be to bring back the master password, but be able to use Touch ID instead of that master password.

    posted in Pythonista read more
  • gregr

    I saw that; however, a sophisticated user could always remove the python code that performs the check, unless I'm misunderstanding.

    What I was after was a application-level thing where the keychain could be optionally secured by Touch ID.

    posted in Pythonista read more
  • gregr

    Is there any way to restrict access to the keychain with Touch ID? I know this was mentioned a while back, but I didn't see anything definitive as to whether there's a way to enable this now...

    posted in Pythonista read more
  • gregr

    I updated from the 1.5 app store release...everything seemed to go fine. The only thing I noticed was that the keychain seemed to reset, and I had to re-enter the stuff I had stored there.

    Loving this new release - thanks!

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!