Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)
A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly.
In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers.
This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.
| import os | |
| import requests | |
| import time | |
| from pprint import pprint | |
| def poll_job(s, redash_url, job): | |
| # TODO: add timeout | |
| while job['status'] not in (3,4): | |
| response = s.get('{}/api/jobs/{}'.format(redash_url, job['id'])) |
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
| import difflib | |
| import wasabi | |
| def diff_strings(a, b): | |
| output = [] | |
| matcher = difflib.SequenceMatcher(None, a, b) | |
| for opcode, a0, a1, b0, b1 in matcher.get_opcodes(): | |
| if opcode == "equal": | |
| output.append(a[a0:a1]) | |
| elif opcode == "insert": |