omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. lyubomyr83
    3. Posts

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 18
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by lyubomyr83

    • this version of pandas is incompatible with numpy 1.13.3

      I install last version pandas over stash
      Then i test with some code:

      import pandas as pd
      df = pd.DataFrame({'id':range(15), 'chars': ['ab']*15})
      print(df)

      After run i receive
      this version of pandas is incompatible with numpy 1.13.3

      How to fix, maybe, anybody know?

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Pythonista sale (50% off) for Pi Day

      +1..........

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Function for recognize quantity of unique combinations

      @cvp thank's a lot. It working for '+', '-' and '+-':

      def uniques_col(operators, max):
          col = 0
          if operators == '+':
              for i in range(1,max):
                  for j in range(1,max-i+1):
                      col += 1
          elif operators == '-':
              for i in range(1,max+1):
                  for j in range(1,i+1):
                      col += 1
          elif operators == '+-':
                  col = max**2
          
          return col
          
      
      while True:
          op = input('operator\n')
          max = int(input('max\n'))
          print(uniques_col(op,max))
      
      And maybe you know uniques col for:
      +-×
      +-/
      +-×/
      /×
      

      ??? Thank's in advance!!!

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @cvp in iOS settings/speech i hear sound when i change speed (Turtle)

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Function for recognize quantity of unique combinations

      @cvp, thank you all for help!!!
      With your function i receive right col for '-', but not for '+':

      def uniques_col(operators, max):
      n = 0
      if operators == '+':
      for i in range(1,max):
      for j in range(i,max-i+1):
      n += 1
      print(i,operators,j,'=',i+j)
      elif operators == '-':
      for i in range(1,max+1):
      for j in range(1,i+1):
      n += 1
      print(i,operators,j,'=',i-j)
      return n

      while True:
      op = input('operator\n')
      max = int(input('max\n'))
      print(uniques_col(op,max))

      What i receive:
      operator-
      max4
      1 - 1 = 0
      2 - 1 = 1
      2 - 2 = 0
      3 - 1 = 2
      3 - 2 = 1
      3 - 3 = 0
      4 - 1 = 3
      4 - 2 = 2
      4 - 3 = 1
      4 - 4 = 0
      10
      operator+
      max4
      1 + 1 = 2
      1 + 2 = 3
      1 + 3 = 4
      2 + 2 = 4
      4

      Where is 1+3 and 2+1, so for '+' i need receive 6 unique examples.

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @JonB i have two same 3rd generation ipads, run the same program and have voice in one of them and not in another one. Yes, voice is on ))) in settings. And i have not errors.

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Function for recognize quantity of unique combinations

      @mikael
      Max - variable count to, for example 100.
      So i need count quantity uniques examples for some mathematic operator, in my case '+' or '-'
      I can't have example 98+10 or 25-50
      Max example result must be under 100 or equal
      Minimum example result must be under 0

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • Function for recognize quantity of unique combinations

      Hello pythonista community. Can someone adwise me formula for recognize quantity of unique combinations when you count to some max digit with sign "-" (minus)? Answer can't be under zero.

      Example1:
      sign = '-'
      max = 2
      2-2
      2-1
      1-1

      • we have only three unique combinations.

      Example2:
      answer can't be upper max:
      max = 2
      1+1

      • we have only one unique example.

      I already have formula for two signs "+-": unic_col=max**2

      But i need formula for '+' and '-'
      And maybe someone know for:
      +-×
      +-/
      +-×/
      /×

      So, i need function like that:

      def uniques_col(operators, max):
      if operators == '+-':
      return max**2
      elif operators == '+':
      return .....
      elif operators == '-':
      return .....
      elif operators == '+-×':
      return .....
      ......

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @cvp
      get an error module 'speech' (built-in)> is a built-in module

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @sulcud fresh install doesn't helped. I was delete speech module before over stash(((. Now i can't recover.

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @sulcud
      I was remove speech module in my iOS. How to recover???

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @sulcud
      Maybe you know how to change default voice from female to male?
      And how can i print all availible voices?

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @sulcud
      Thank's again. Setting "ru-RU" working good in iOS13.

      def say(text):

      settings = read_settings()
      
      if settings["sound"] == 'yes':
      	# windows
      	if os.name == 'nt':
      		engine = pyttsx3.init()
      
      		en_voice_id = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0"
      		ru_voice_id = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_RU-RU_IRINA_11.0"
      
      		# use russian sound
      		engine.setProperty('voice', ru_voice_id)
      		engine.say(text)
      		engine.runAndWait()
      	# iOS, Android
      	elif os.name == 'posix':
      		speech.say(text, "ru-RU")
      	else:
      		pass
      
      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @sulcud
      In iOS 12 russian language work well. But in iOS 13 russian words pronounce terrible with english mix. What's wrong in iOS13?

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • Can't install pyttsx3 module

      I install stash, and after in stash console try:
      pip install pyttsx3

      I receive
      ........
      ........
      Running setup file ...
      PermissionError(1, 'Operation not permitted')
      Failed to run setup.py
      Fall back to directory guessing ...
      Error: Cannot locate packages. Manual installation required.

      When installed wikipedia all was ok.
      Please help solve.

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Cancel button and github support

      Thank's a lot!

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • Cancel button and github support

      Add cancel button, like ctrl+z in windows for cancel last operations. Also please add github support (not only gist). Thank's so much!!!

      posted in Pythonista
      lyubomyr83
      lyubomyr83