npm update -g updates all global packages and their dependencies, see npm/npm#6247.
- Either use the shell script or windows batch here instead.
| $!/usr/bin/env bash | |
| poetry add --dry-run tensorflow tensorflow-serving-api tensorboard \ | |
| tensorflow-datasets tensorflow-hub tensorflow-probability \ | |
| tensorflow-addons \ | |
| jupyterlab \ | |
| imageio \ | |
| Pillow \ | |
| scikit-image \ | |
| graphviz \ |
| Sys.setenv(R_INSTALL_STAGED = FALSE) |
| import importlib | |
| module = importlib.import_module('my_package.my_module') | |
| my_class = getattr(module, 'MyClass') | |
| my_instance = my_class() |
npm update -g updates all global packages and their dependencies, see npm/npm#6247.
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| error with tf hdinsight | |
| azurerm_hdinsight_hadoop_cluster.hdpcluster: Still destroying... [id=/subscriptions/b00a4572-2115-4d17-a2e5-....HDInsight/clusters/scicoriahdicluster, 40s elapsed] | |
| azurerm_hdinsight_hadoop_cluster.hdpcluster: Still destroying... [id=/subscriptions/b00a4572-2115-4d17-a2e5-....HDInsight/clusters/scicoriahdicluster, 50s elapsed] | |
| azurerm_hdinsight_hadoop_cluster.hdpcluster: Still destroying... [id=/subscriptions/b00a4572-2115-4d17-a2e5-....HDInsight/clusters/scicoriahdicluster, 1m0s elapsed] | |
| azurerm_hdinsight_hadoop_cluster.hdpcluster: Destruction complete after 1m2s | |
| Destroy complete! Resources: 1 destroyed. | |
| data.azurerm_resource_group.hdpcluster: Refreshing state... |
| package com.test; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class MergeSort<T extends Comparable<T>> { | |
| public void sort(List<T> values){ | |
| mergeSort(0, values.size() - 1, values, new ArrayList<T>(values)); | |
| } |
| const { createServer } = require('http'); | |
| createServer((req, res) => { | |
| res.writeHead(200, { | |
| Connection: 'Transfer-Encoding', | |
| 'Content-Type': 'text/html; charset=utf-8', | |
| 'Transfer-Encoding': 'chunked' | |
| }); | |
| res.write(` |
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
| $pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null |