• @dakadagm7 If you want to use Pythonista reminders module for other attributes and methods, you can add this kind of code to only use Objective-c for setting priority

    from objc_util import * import reminders def test(): # EKEventStore = calendar database store = ObjCClass('EKEventStore').alloc().init() def_cal = store.defaultCalendarForNewReminders() tit = 'added via Pythonista' # Get unique identifiers of all existing reminders with this title predicate = store.predicateForRemindersWithTitle_calendars_(tit,[def_cal]) EKReminders = store.remindersMatchingPredicate_(predicate) existing_uids = [] for EKReminder in EKReminders: existing_uids.append(str(EKReminder.uniqueIdentifier())) print(existing_uids) r = reminders.Reminder() r.title = tit r.save() # Get all existing reminders with this title predicate = store.predicateForRemindersWithTitle_calendars_(tit,[def_cal]) EKReminders = store.remindersMatchingPredicate_(predicate) for EKReminder in EKReminders: if str(EKReminder.uniqueIdentifier()) not in existing_uids: # this reminder is the just added one EKReminder.priority = 3 # store modified reminder in calendar store.saveReminder_commit_error_(EKReminder,True,None) break test()
  • Yes I have looked at the documentation, though the example only works for the stock application. Also the function I eluded to is not a class method, but a function. I’m looking into ctypes, but I dont know how to pass a dispatch queue or a completion block to it, As I’m not too familiar with ctypes.

  • you have a few problems. The first one is, your calculateFitness runction has an error, which is being hidden because you are using try-except instead of catching a specific exception (i think you misplaced your colon, then forgot what you wanted to do in case of divide by zero)

    Next, you have to remember that lists are objects. So

    >>> a=[1,2,3] >>> b=a >>> b.append(4) >>> a [1, 2, 3, 4]

    so, when you copy moves to the new entities, you are copying the object, thus mutations all happen on the same copy. assign moves.copy() instead, or [m for m in moves]

    finally, I'd suggest you add a shapenode representing the selected parent, so you can see what is happening. Also you might want to label the fitness of each node. your fitness computation should pribably depend on screen size... as is, on my ipad, half the time the fitness is just under 1 ror all entities, meaning that nobody gets a preference!

    finally, as an aside,

    abs(entitity.position - target.position) is a convienece method to get distance.

  • A gist would be helpful...

    What is happening during touch_moved?

  • The Dropbox SDK will only manage files when connected, correct? So just to clarify, there is no workflow or other offline equivalent to either swiping left on a file to delete, or using the in-editor feature to rename a file.?

  • Never mind, I understand my problem!

    At first I thought it was because the module is in cache but I restarted Pythonista and the problème was still there. However, it gave me a hint: how about the cache. That is when I realized the I am loading that very same module within pythonista_startup, which happens before I use my current directory.

    Problem solved! Probably the fastest resolution on the forum... my bad! LOL!! :o))

  • Iirc you can, in a pythonista-startup script, modify sys.path to point to your iCloud folder.

    I forget the details, but sys.path is somewhat reset when globals are reset, but I think there was also a way around that.. possibly with site module or .pth files.

  • Turns out that the person who posted this code did not have a Tello to test and the address he coded is wrong. It should be 192.168.10.1, 8889.

  • https://gist.github.com/b732076dc521c3c130a865924b6731d5

    This is what I mean. You would add your processing to the callback. but basically there are always two files recording, and one processing, so words will never be cut off.

    In other words file 1 might cut off "App", but file 2 started a little later, so would get the whole "Apple".

    obviously there would have to be other logic that switches to continuous record once the wake phrase is discovered.

  • The Selenium IDE (Integrated Development Environment) is an open source record-and-playback tool for generating Selenium scripts, which is integrated with the Firefox web browser as an extension. It is a renovated web-based UI test automation tool that extracts any kind of locator from the web page. The locators can be either attribute-based or structure-based and include ID, name, link, XPath, CBS, and DOM. The IDE has the entire Selenium Core, which allows the users to record, playback, edit, and debug tests manually in a browser. The user actions in the web page can be recorded and exported in any of the most popular languages, such as Java, C++, Ruby, and Python.
    Selenium Builder is an alternative open source tool for the Selenium IDE to record and playback web applications. It is an extension of the Firefox web browser, which is similar to the Selenium IDE, but, it has some unique features that the Selenium IDE doesn’t support. Selenium Builder is a standard tool from Sauce labs that runs tests on Sauce Cloud from the Selenium Bader interface itself.
    Selenium IDE’s record and playback abilities
    Selenium IDE functions
    Selenium IDE Data Driven tests
    Selenium IDE JavaScript functions
    Selenium Builder record and playback
    Selenium Builder Data Driven tests
    Selenium Builder on cloud
    Selenium is a suite of tools to automate web app testing across many platforms. Selenium…runs in many browsers and operating systems. Can be controlled by many programming languages and testing frameworks.
    Create by developers at ThoughtWorks
    Released publically as an Open Source project on OpenQA
    Selenium is a test tool for web applications.
    Selenium tests run directly in a browser.
    Runs on Windows, Linux, and Macintosh.
    Runs in Internet Explorer, Mozilla and Firefox.
    Enables Browser Compatibility Testing.
    Enables System Functional Testing.

  • Thank you!

  • Thank you, i’m gonna try it out soon

  • I did some further research... obviously the non printable escape sequences are filtert by ios keyboard driver.
    When I scan directly into an Raspberry-Shell the escape sequences are displayed but when I opened a shell via ios (for example "shelly") non printable characters are filtert.
    So its not a problem of pythonista! Should I delete the threat?

  • @cvp

    Dear.cvp
    I'm sorry, I'm late.

    I wrote a very wonderful code.

    I want to try it after I finish work.

  • Selenium is the most widely used web automation tool. It has been used to perform an automated test on Windows, Linux, and Unix system. It supports most of the browsers like Internet Explorer, Google Chrome, Safari, Mozilla Firefox, Opera etc.

    On the other hand, Live Online Training recording takes place for Selenium with Python Video Tutorials at a scheduled event or time. The Instructor plays an important role throughout the learning process.

  • @mikael Done. But the reader has some 18+ sites. Be careful. https://github.com/yjqiang/yj_ebook_reader Execute eimg_reader.py or ebook_reader.py.

  • +1 on this. Editorial is the only app keeping Dropbox on my Mac.

Internal error.

Oops! Looks like something went wrong!