omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. NoBetterName

    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 15
    • Posts 58
    • Best 4
    • Controversial 0
    • Groups 0

    NoBetterName

    @NoBetterName

    5
    Reputation
    1710
    Profile views
    58
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    NoBetterName Unfollow Follow

    Best posts made by NoBetterName

    • RE: Pipeline Of Stages In Pythonista

      I would use a dictionary to call your functions. Do what @ccc said and under

          def execute_command(command, state):
              d = {'someCommand':someCommand,
                     'command2':command2}
              for key in d.keys():
                  if command in key:
                      func = d[key]
                      tokens = key.split()
                      tokens.remove(tokens[0]) #get rid of function name
                      func(state, *tokens)
      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Display gif

      No, I tried downloading it in two ways...

      1. Copy the image. Use the clipboard module to save the copied file. It displays the gif animation on Safari, but not in Pythonista.
      2. Save the image to Camera Roll, the use photos module to import it into Pythonista. Same results.

      The file exists in Pythonista, but the animation is not there.

      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Making chess, any tips?

      For me, at least, I think it would be more organized to take this approach:

      class King(ChessPiece):
        def availableMoves(self):
          returns place to move to
      
      #Do this with all the chess pieces:
      class Queen
      class Bishop
      class Knight
      class Rook
      class Pawn
      

      All would inherit from a single class, ChessPiece, so that they could all have the common features while still retaining what makes them different, like available moves. Then, you could create a nested list for your pieces.

      R1, R2 = Rook(), Rook()
      B1, B2 = Bishop(), Bishop()
      K1, K2 = Knight(), Knight()
      QQ = Queen()
      KK = King()
      P1, P2, P3, P4, P5, P6, P7, P8 = Pawn(), Pawn(), Pawn(), Pawn(), Pawn(), Pawn(), Pawn(), Pawn()
      NN= 0
      
      Board = [[R1, K1, B1, QQ, KK, B2, K2, R2],
                      [P1, P2, ...
                      [NN, NN, ...
      

      Continue on like that. That could eliminate your chessboard module.

      posted in Pythonista
      NoBetterName
      NoBetterName
    • Taking video and stripping audio

      I want to take a video and strip audio from it. I want to then glue the audio back on to the video.

      1: How do I take a video? I assume this is somewhere in the new objc-util module, because I couldn't find it in the photos module.

      2: How do I separate audio from video? I want to warp the audio here, got that covered.

      3: How do I glue the audio back onto the video? Assuming it is possible to separate them in the first place.

      posted in Pythonista
      NoBetterName
      NoBetterName

    Latest posts made by NoBetterName

    • RE: Peer to Peer Chat

      I'm trying to make a peer to peer messaging program, as the title suggests. I need a program that directly sends messages to other devices. Thanks for your help guys.

      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Peer to Peer Chat

      I don't really understand socket or HTTPlib or anything like that, but I'm looking for something that I can send and receive all inside Pythonista. I hope this makes sense. I like Workflow, but it isn't what I was looking for. SMTP and SMS are great, but you can only send them through Pythonista, not receive them. I guess my very broad question could be narrowed down to this:

      Is there any Apple-based or Pythonista-based system that I could take advantage of to send and receive messages through Pythonista?

      posted in Pythonista
      NoBetterName
      NoBetterName
    • Phone Call

      Can Pythonista make a phone call? I prefer to do this in my app, not loading the phone app.

      posted in Pythonista
      NoBetterName
      NoBetterName
    • Peer to Peer Chat

      None of the online server and client programs for peer to peer chat rooms work on iOS. I'm not quite sure why. I'm not even sure that socket is the right path for me. Is there any way to use my Pythonista app as a client and directly send messages? I'm thinking of a custom SMS or even SMTP sender/receiver. Can iOS and Pythonista do something like this?

      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Combine gifs

      So... I tried the first one. I have about 450 pictures that I put into 45 gifs because Pythonista crashed when I tried to make them longer. Simple solution for me, was to split it into 10 frames per gif, then combine them. It seemed simple to me, but I guess it's not. Oh well. I'll use an online program for this; I just wanted to see if I could hone my coding skills with this project. Thanks for the help, @abcabc

      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Combine gifs

      I was looking at the photos module documentation... and I found this by the way.
      Am I seeing double?

      There are two add_assets under AssetCollection!

      posted in Pythonista
      NoBetterName
      NoBetterName
    • Combine gifs

      Can I combine several gifs together? I have about 43 of them... and I would like to do it programmatically.

      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Video or gif from still images

      Thanks everybody for your quick answers. I have another question, but I'll ask it in another thread.

      posted in Pythonista
      NoBetterName
      NoBetterName
    • Video or gif from still images

      I have about 300 images that I want to combine together into a gif or video. I know there is a way to extract still images from a video in the camera roll, but is there a way to construct a video purely using still images? my ultimate goal is a .gif, but I can turn a video into a gif with an online tool. Any suggestions?

      posted in Pythonista
      NoBetterName
      NoBetterName
    • RE: Save video from camera roll

      Thanks everybody for your quick replies. I need a way to add anything selected from the pick_asset function to a folder in my app. I can't have it ever fail, because I intend to release this app. @omz said that that function won't work for time lapse videos. Is there a completed function out there that somebody made that I can modify to what I need? I don't even know where to start with modifying that to allow storing time lapse videos. Could anybody at least get me started in the right direction?

      posted in Pythonista
      NoBetterName
      NoBetterName