ImportError Tensorflow 2.7.0 on M1

## Error Message >>> import tensorflow as tf Traceback (most recent call last): File "/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/__init__.py", line 22, in <module> from . import multiarray File "/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in <module> from . import overrides File "/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in <module> from numpy.core._multiarray_umath import ( ImportError: dlopen(/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libcblas.3.dylib Referenced from: /Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so Reason: tried: '/Users/sungmin/miniforge3/envs/tf/lib/libcblas.3.dylib' (no such f

Using Tensorflow GPUs on M1

## Install Xcode xcode-select --install   ## Install miniforge wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh chmod +x Miniforge3-MacOSX-arm64.sh sh Miniforge3-MacOSX-arm64.sh source ~/miniforge3/bin/activate ## Create Env conda create -n tf python==3.9 -y conda activate tf ## Install Tensorflow  conda install -c apple tensorflow-deps pip install tensorflow-macos pip install tensorflow-metal ## Check >>> import tensorflow as tf >>> tf.__version__ '2.6.0' >>> tf.config.list_physical_devices() [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

What is Difference between async and async* in Dart?

## What is Difference between async and async* in Dart? async async keyword to a function that does some work that might take a long time. It returns the result wrapped in the Future. Future<int> doSomeLongTask() async { await Future.delayed(const Duration(seconds: 1)); return 42; } You can get that result by awaiting the Future:</int> main() async { int result = await doSomeLongTask(); print(result); // prints '42' after waiting 1 second } async* async* keyword to make a function that returns a bunch of future values one at a time. The results are wrapped in a Stream. Stream<int> countForOneMinute() async* { for (int i = 1; i <= 60; i++) { await Future.delayed(const Duration(seconds: 1)); yield i; } } You can use await to wait for each value emitted by the Stream.</int> main() async { await for (int i in countForOneMinute()) { print(i); // prints 1 to 60, one integer per second } }

How to install NodeJS offline without internet

## prepare python 3 [root@localhost ~]# wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz --2021-12-14 15:06:13-- https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz Resolving www.python.org (www.python.org)... 146.75.48.223, 2a04:4e42:7c::223 Connecting to www.python.org (www.python.org)|146.75.48.223|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 23017663 (22M) [application/octet-stream] Saving to: ‘Python-3.7.4.tgz’ 100%[======================================================================================================================================================================>] 23,017,663 104MB/s in 0.2s 2021-12-14 15:06:13 (104 MB/s) - ‘Python-3.7.4.tgz’ saved [23017663/23017663] [root@localhost ~]# tar -xzvf Python-3.7.4.tgz && cd Python-3.7.4 Python-3.7.4/ Python-3.7.4/Doc/ Python-3.7.4/Doc/c-api/ Python-3.7.4/Doc/c-api/sys.rst Python-3.7.4/Doc/c-api/conversion.rst Python-3.7.4/Doc/c-api/marshal.rst Python-3.

install elasticsearch & kibana

## download elasticsearch & kibana [root@superset min]# wget https://artifacts.elastic.co/downloads/kibana/kibana-7.16.0-x86_64.rpm --2021-12-13 13:42:14-- https://artifacts.elastic.co/downloads/kibana/kibana-7.16.0-x86_64.rpm Resolving artifacts.elastic.co (artifacts.elastic.co)... 34.120.127.130, 2600:1901:0:1d7:: Connecting to artifacts.elastic.co (artifacts.elastic.co)|34.120.127.130|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 286976720 (274M) [binary/octet-stream] Saving to: ‘kibana-7.16.0-x86_64.rpm’ 26% [================> ] 77,127,104 91.8MB/s ^C [root@superset min]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.0-x86_64.rpm --2021-12-13 13:42:39-- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.0-x86_64.rpm Resolving artifacts.elastic.co (artifacts.elastic.co)... 34.120.127.130, 2600:1901:0:1d7:: Connecting to artifacts.elas

This system is not registered with an entitlement server. You can use subscription-manager to register. rhel7.9

## check cdrom  [root@localhost ~]# blkid /dev/mapper/rhel-root: UUID="c8959d98-4669-4520-a9f4-c99120c2219f" TYPE="xfs" /dev/sda2: UUID="dV5G8l-8D8L-9pl2-BQSr-izZh-CAc9-NPt2RP" TYPE="LVM2_member" /dev/sda1: UUID="b4e21b2c-2833-4dd3-aea0-8e9e11f95b4c" TYPE="xfs" /dev/sr0: UUID="2020-09-17-19-35-15-00" LABEL="RHEL-7.9 Server.x86_64" TYPE="iso9660" PTTYPE="dos" /dev/mapper/rhel-swap: UUID="74935535-3548-4e3a-9a78-acdf8d1f8d65" TYPE="swap" /dev/mapper/rhel-home: UUID="44377496-bac4-4af1-8a53-11045bcd7f84" TYPE="xfs"     ## mount cdrom  [root@localhost ~]# mount /dev/sr0 /dvd mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# ## mount cdrom  [root@localhost ~]# mount /dev/sr0 /dvd mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mount

centos 6.x yum update problem making ssl connection

이미지
## yum update [root@localhost ~]# yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile https://vault.centos.org/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] problem making ssl connection Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again ## fix repo [root@localhost ~]# cd /etc/yum yum/ yum.conf yum.repos.d/ [root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost ~]# yum clean all Loaded plugins: fastestmirror Cleaning repos: base update Cleaning up Everything Cleaning up list of fastest mirrors ## fix repo [root@localhost yum.repos.d]# vi CentOS-Base.repo [base] name= CentOS-6 - Base baseurl= http://mirror.nsc.liu.se/centos-store/6.6/os/x86_64/ gpgcheck=0 priority=1 protect=1 [update] name=CentOS-6 - Updates baseurl=https://archive.kernel.org/centos-vault/6.6/updates/x86_64/ gpgcheck=0 priority=1 protect=1