Skip to content

Instantly share code, notes, and snippets.

View Ununnilium's full-sized avatar

Fabian Heller Ununnilium

View GitHub Profile

Parallise Code in Python with Fork

To parallelise code, either multiple processes or multiple threads can be created from the main process.

Threads advantages:

  • A bit faster to start up
  • They can access all memory from all other threads, therefore sharing data is easy
  • Lower memory consumption

Threads disadvantages:

Test a web site with Selenium on a virtual iOS device

  1. Install Xcode (AppStore)
  2. Open Xcode settings download there an iOS image >= 9.3 (older versions need an other setup which is not described here)
  3. Install brew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. Execute sudo xcode-select --switch /Applications/Xcode.app
  5. (sudo DevToolsSecurity -enable [probably not necessary])
  6. brew install node carthage
  7. npm install -g appium appium-doctor
  8. (Install Appium desktop version (appium-desktop-x.x.x.dmg) from https://github.com/appium/appium-desktop/releases/tag/v1.4.1 [probably not necessary])
  9. Check if appium works with appium-doctor --ios