• PKHG222

    Thanks for repairing the code, will try to remember ;-)

    posted in Pythonista read more
  • PKHG222

    Grr forgotten to include code in this forum, so sorry

    I got from github a file for sounds ...
    starting with : from ctypes import c_void_p, c_char_p and some more ...

    My pythonista contains wel eg. numpy (new sinds?) but not ctypes ..

    So either say, no not yet, otherwise how to get it inluded ;-)

    Please,

    I saw, that so much has been done with Pythonista

    My last problem was to set a date onto a number of images ..
    using this

    import photos as ph
    from PIL import Image as im
    n = ph.get_count()
    print 'size is',n
    #aanname datum photo is laatste!!!
    todolijst = [el for el in range(n-5, n-1)]
    print todolijst
    def doimg(n):
            img = ph.get_image(n)
            return img
    i15 = doimg(todolijst[-4])
    print i15.size
    #import Sketch
    #print (ph.get_count())
    nrim = ph.get_count()
    dateImg = ph.get_image(-1) #laatste moet het date plaatje zijn met Sketch te maken
    dimgsize = dateImg.size
    print 'imgsiz',dimgsize
    i15 = i15.resize(dimgsize)
    print i15.size
    res = im.blend(i15,dateImg,0.2)
    res.show()
    ph.save_image(res)
    '''
    import photos as ph
    from PIL import Image as im
    m_plaatjes =  4 #ij changeME
    #Aanname: laatste plaatje bevat datum van Sketch gemaakt
    #Daarvoor m_plaatjes om met datum te blenden!
    n = ph.get_count()
    print 'size is',n
    
    #todolijst = [el for el in range(n-5, n-1)]
    
    #print todolijst
    
    def getImg(nr):
                  img = ph.get_image(nr)
                  return img
    #i15 = doimg(todolijst[-4])
    def blendAllImageMetDatum(m_plaatjes,n):
        dateImg = getImg(n-1)
        dimgsize = dateImg.size
        welke = n - 2
        for i in range(m_plaatjes):
            tmp = getImg(welke)
            tmp = tmp.resize(dimgsize)
            res = im.blend(tmp, dateImg,0.1)
            res.show()
            ph.save_image(res)
            welke -= 1
    
    blendAllImageMetDatum(m_plaatjes,n)
    
    def overlay2img(n):
    
        t1 = getImg(n-1)
        t2  = getImg(n-2)
        res = im.blend(t1,t2,0.5)
        res.show()
        ph.save_image(res)
    
    #overlay2img(n)
    

    and the gift to make a date picture: Sketch.py

    posted in Pythonista read more
  • PKHG222

    Will pythonista still work, if I upgrade my Ipad to IOS7?
    Greets Peter

    posted in Pythonista read more
  • PKHG222

    Thanks, will try ...(later)

    posted in Pythonista read more
  • PKHG222

    isn't it that 'shellista' does what you want?
    (a gist is found here ..., to lazy to find it here back for you, sorry)

    posted in Pythonista read more
  • PKHG222

    If time is a problem, in the foregoing century I replaced divisions by multiplications ...
    Will check the difference on an Ipad 2 ;-)

    Does tmp = tmp + 1 be as efficient as tmp += 1 ???

    And I will look at the most inner loop for ...

    EDIT:
    nothing changed I get 'white' vertical lines 'moving' from left to right,
    how could that be avoided (repaired?)

    posted in Pythonista read more
  • PKHG222

    Maybe have a look here: http://www.daniweb.com/software-development/python/threads/277522/gui-scientific-calculator-homework

    Maybe something nice to build with Pythonista?
    Ideas of which classes one needs ... and then and building it 'testdriven' with unittest
    (http://docs.python.org/2/library/unittest.html) ?!

    posted in Pythonista read more
  • PKHG222

    Hi now an more or less working source can be found:
    https://gist.github.com/4245408

    See a picture first?

    http://petergragert.info/pythonista_by_pkhg/uploads/Peter/RPN_pythonista.jpg

    Comments and found errors are welcome ;-)

    posted in Pythonista read more
  • PKHG222

    Thanks, will have a look ;-)

    posted in Pythonista read more
  • PKHG222

    What is an app_key ( for to set in the source) ?

    posted in Pythonista read more
  • PKHG222

    Yesterday there was my "Oma and Opa"-day, I think one will need MATRIX - stuff
    See you later ...

    EDIT:
    Started: at http://petergragert.info/pythonista_by_pkhg/pmwiki.php/Roger/NumpyThings

    posted in Pythonista read more
  • PKHG222

    Nice idea ... maybe you can persuade me to make more functions
    available ;-).

    Remark, I do not know how important the last parameter retstep of linspace (in real numpy for Py2.7) is. Should be easily a added ...

    Question: If someone (me e.g.) joins this (YOUR) numpy-pythonista-project, how to talk and share code?
    Talk here could be possible but better probably in IRC channel #pythonista?
    Other suggestion, if one is not afraid to learn some small wiki commands, could be 'my' wiki for pythonista (readable for anonymous, or not, editable by members of 'your' project?)

    Peter = PKHG

    EDIT:
    Is it correct, that you used 'spaces' to indent in place of 'tab'?
    I could easily change to the array.py using 'tab' s ;-)

    posted in Pythonista read more
  • PKHG222

    Update: inverse sin (asin) etc. and 'deg <-> rad' computations

    Next idea: make it so (Peter!), that programming will be possible ;-)

    posted in Pythonista read more
  • PKHG222

    Nice, tried cd, ls, mv and rm , works on Documents nicely
    cd .. several time is not allowed (the Pythonista app dir e.g.)

    posted in Pythonista read more
  • PKHG222

    On my way, but without unittest,
    Have a look here
    http://petergragert.info/pythonista_by_pkhg/pmwiki.php/Peter/RPNCalculator

    Picture of to be done Calc added and info how to get the code added.
    Will go to github, if updated ..

    Why my wiki? If someone is interested, he/she could get a password to
    edit that page ...(or related ones if needed). On git I do not know how to make that possible ... otherwise git would be as nice ...

    posted in Pythonista read more
  • PKHG222

    Sharing: try Dropbox

    posted in Pythonista read more
  • PKHG222

    Finally understood the gist(pull) script, works , happy Peter

    posted in Pythonista read more
  • PKHG222

    Indeed, I changed my copy ;-)

    posted in Pythonista read more
  • PKHG222

    Yes, edit the link, remove your suggestion, then I got no problem;-)
    EDIT:
    Wow,read (a lot ) of yor workflow, what a bloody beginner I am, seeing your examples of using Pythonista in so many different ways!!

    Result: I at least need a lot of explanations, e.g. the Application stuff possible in Pythonista and a lot more.
    @kingtut, willtry to dowload some of your examples on a PC, did not try downloading on my Ipad (imposible I think)

    Greets
    Peter

    posted in Pythonista read more
  • PKHG222

    The website of your link is desatrous to my Ipad, it closes it after some seconds, so please repair or delete the link???

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!