Rodar este docker-compose.yml no servidor:
version: '3.1'
services:
dremio:
image: dremio/dremio-oss:<tag>
container_name: dremio
Instale o pacote ffmpeg e rode, na pasta onde estão os videos *.mkv:
for f in *.mkv; do ffmpeg -i "$f" -c copy -map 0 -c:s mov_text "${f%.mkv}.mp4"; done
| def wait_for_download_and_rename(filename: str): | |
| # function to wait for all chrome downloads to finish | |
| def chrome_downloads(drv): | |
| if not "chrome://downloads" in drv.current_url: # if 'chrome downloads' is not current tab | |
| drv.execute_script("window.open('');") # open a new tab | |
| drv.switch_to.window(driver.window_handles[1]) # switch to the new tab | |
| drv.get("chrome://downloads/") # navigate to chrome downloads | |
| return drv.execute_script(""" | |
| return document.querySelector('downloads-manager') | |
| .shadowRoot.querySelector('#downloadsList') |
Quando você organiza seus models em uma pasta models e coloca os modelos como arquivos,
o Django não os detecta automaticamente, mesmo colocando no settings.py.
Assim, você precisa ir no arquivo <seu_app>/models/__init__.py e mandar importar as classes 1 a 1, como
por exemplo:
from cadastro.models.grupo_resposta import GrupoResposta
from cadastro.models.ponto import Ponto
from cadastro.models.resposta import Resposta
Go to File -> Settings -> Tools -> Terminal.
Replace the value in Shell path with cmd.exe "/K" C:\path\to\Anaconda3\Scripts\activate.bat your_environment_name.
def series_to_supervised(data, n_in=1, n_out=1, dropnan=True):
"""
Frame a time series as a supervised learning dataset.
Arguments:
data: Sequence of observations as a list or NumPy array.
n_in: Number of lag observations as input (X).
n_out: Number of observations as output (y).
dropnan: Boolean whether or not to drop rows with NaN values.
Returns:
Faça isso
File -> Invalidate Caches / Restart... -> Invalidate and restart
Caso não funcione faça: make sure in the definition of your SDK, the vm.jar file is included (File > Project Structure > Platform Settings > SDKs)
$PATH_TO_SDK/jre/bin/default/jclSC180/vm.jar