Thanks for repairing the code, will try to remember ;-)
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by PKHG222
-
RE: ctypes really usable?
-
ctypes really usable?
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 thisimport 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
-
Ipad 3 and IOS7
Will pythonista still work, if I upgrade my Ipad to IOS7?
Greets Peter -
RE: Mandelista, a Mandelbrot set explorer for Pythonista
Thanks, will try ...(later)
-
RE: Folder support?
isn't it that 'shellista' does what you want?
(a gist is found here ..., to lazy to find it here back for you, sorry) -
RE: Mandelista, a Mandelbrot set explorer for Pythonista
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?) -
Scientific calculator
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) ?! -
RE: Scientific calculator
Hi now an more or less working source can be found:
https://gist.github.com/4245408See a picture first?
http://petergragert.info/pythonista_by_pkhg/uploads/Peter/RPN_pythonista.jpg
Comments and found errors are welcome ;-)
-
RE: Simple 1D array library for numerical work (think NumPy, but slow)
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 -
RE: Simple 1D array library for numerical work (think NumPy, but slow)
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 ;-) -
RE: Scientific calculator
Update: inverse sin (asin) etc. and 'deg <-> rad' computations
Next idea: make it so (Peter!), that programming will be possible ;-)
-
RE: Advanced shell - shellista
Nice, tried cd, ls, mv and rm , works on Documents nicely
cd .. several time is not allowed (the Pythonista app dir e.g.) -
RE: Scientific calculator
On my way, but without unittest,
Have a look here
http://petergragert.info/pythonista_by_pkhg/pmwiki.php/Peter/RPNCalculatorPicture 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 ... -
RE: Sharing Code on GitHub
Finally understood the gist(pull) script, works , happy Peter
-
RE: Automating iOS: How Pythonista Changed My Workflow
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 -
RE: Automating iOS: How Pythonista Changed My Workflow
The website of your link is desatrous to my Ipad, it closes it after some seconds, so please repair or delete the link???