What is BSC?

All you need is the following.

Step1 Install Metamask on your browser

Step 2 Add Custom RPC with the following information

Network name: BSC Mainnet
New RPC URL: https://bsc-dataseed1.binance.org/
Chain ID: 56 or 0x38
Symbol: BNB
Block Explorer URL: https://bscscan.com/

If every item is correct, you can see the following.


This post is about installing python 3.5, 3.6, and 3.7 since my previous post only supports python 3.8 and 3.9.
Also, I have gotten some questions on installing python 3.5 and 3.6.

In addition, I really need to install them on my BigSur lol.

If you just need to install python 3.8+, please check the following

Install python 3.8.0 via pyenv on BigSur

#macos #pyenv #python

precondition

  • Installed Homebrew

install packages with brew

brew install zlib
brew install sqlite
brew install bzip2
brew install libiconv
brew install libzip

Install python 3.4.10

$ LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" pyenv install --patch 3.4.10 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)

Install python 3.5.7

$ LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" pyenv install…

Here is how to install curl on macOS/Windows/Linux
https://help.ubidots.com/en/articles/2165289-learn-how-to-install-run-curl-on-windows-macosx-linux

get ipinfo

We can get an IP address with curl command easily.

$ curl ipinfo.io
{
"ip": "xxx.xxx.xxx.xxx",
"hostname": "cpe-xxx-xxx-xxx-xxx.xxs.sss.sss.com",
"city": "Brooklyn",
"region": "New York",
"country": "US",
"loc": "xx.aaaa,yy.bbbb",
"org": "TTTTT Inc",
"postal": "xxxxx",
"timezone": "America/New_York",
"readme": "https://ipinfo.io/missingauth"
}%

generate QR code

The following is a QR code to access my personal website.
/ you can put anything you want to show(string, number, and url).

$ curl qrenco.de/https://kojikoji.ga
█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ ██▀▄███ ██ ▄▄▄▄▄ ████
████ █ █ █▄▀█▄▀█▀▄██ █ █ ████
████ █▄▄▄█ ██▄▀▀ ▀▄ █ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █▄▀▄▀ ▀▄█▄▄▄▄▄▄▄████
████▄▄▄▀▄▄▄ ▄▀█▀ █▄▄…


I have used Google Drive for a long time because the school I graduated from allows me to keep using it lol.

Google Drive is easy to use and to share a file with people, however, there isn’t an easy way to check whom I shared files.
Actually, there are some services to do that like below.
I used to use google-drive-permission-search because at that time I used Ruby as the main language. But, I haven’t used it for a while 😂 and recently I use js/ts and python mainly. Also, my goal is to pass Google Drive’s permission check functionality to…


I saw the following article on dev.to and it very impressive to me.

Why I turned my homepage into a timeline

Then, I found a good library, react-chrono.

prabhuignoto / react-chrono

Looks good and also it’s super easy to use.

First, I tried react-chrono with create-react app.

Step1 Set up a react app

$ yarn create react-app mytimeline --template typescript
$ cd mytimeline
$ yarn add react-chrono

Step2 Add sample data

data.ts
I use this data from react-chrono's sample

const items = [
{
title: "May 1940",
cardTitle: "Dunkirk",
cardSubtitle:
"Men of the British Expeditionary Force (BEF) wade out to a destroyer during the evacuation from…


You can see the demo
https://www.impersonator.org/project_img/impersonator_plus_plus/demo_video/demo_1_512x512.mp4

Impersonator++

Liquid Warping GAN with Attention: A Unified Framework for Human Image Synthesis, including human motion imitation, appearance transfer, and novel view synthesis. Currently the paper is under review of IEEE TPAMI. It is an extension of our previous ICCV project impersonator, and it has a more powerful ability in generalization and produces higher-resolution results (512 x 512, 1024 x 1024) than the previous ICCV version.

Creator’s Google Colab
https://colab.research.google.com/drive/1bwUnj-9NnJA2EMr7eWO4I45UuBtKudg_?usp=sharing#scrollTo=hCqM2xQitKXj

Google Colab (Famous propeller dance in Japan)

requirements
source movie: mp4
source image: one image/two images(This GoogleColab is using two images)

The following is the…


Recently Oracle has released the new version of VirtualBox and I installed it on Bigsur. Finally, I could run VirtualBox on BigSur.

The following are what I got when I tried to install Ubuntu on VirtualBox.


BigSur Version 11.1 Beta
python
$ pip install matplotlib
Collecting matplotlib
Using cached matplotlib-3.3.3.tar.gz (37.9 MB)
ERROR: Command errored out with exit status 1:
command: /Users/koji/.pyenv/versions/3.8.0/bin/python3.8 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘“‘“‘/private/var/folders/gj/x6v5vwdx1v7741fdfcxwmr100000gn/T/pip-install-dwdwanvq/matplotlib/setup.py’”’”’; __file__=’”’”’/private/var/folders/gj/x6v5vwdx1v7741fdfcxwmr100000gn/T/pip-install-dwdwanvq/matplotlib/setup.py’”’”’;f=getattr(tokenize, ‘“‘“‘open’”’”’, open)(__file__);code=f.read().replace(‘“‘“‘\r\n’”’”’, ‘“‘“‘\n’”’”’);f.close();exec(compile(code, __file__, ‘“‘“‘exec’”’”’))’ egg_info — egg-base /private/var/folders/gj/x6v5vwdx1v7741fdfcxwmr100000gn/T/pip-pip-egg-info-kbc9eqzu
cwd: /private/var/folders/gj/x6v5vwdx1v7741fdfcxwmr100000gn/T/pip-install-dwdwanvq/matplotlib/
Complete output (62 lines):
Edit setup.cfg to change the build options; suppress output with — quiet.BUILDING MATPLOTLIB
matplotlib: yes [3.3.3]
python: yes [3.8.0 (default, Sep 3 2020, 23:19:59) [Clang 12.0.0
(clang-1200.0.31.1)]]
platform: yes [darwin]
sample_data: yes [installing]
tests: no [skipping due to configuration]
macosx: yes [installing]…

I have used BigSur for a couple of months and so far so good. There is one thing that I regret. It is that I cannot build openFrameworks on BigSur 😭

Then I have followed the one issue on GitHub.

Amazingly, this issue was solved by @ofTheo.

In the issue, he said he would work on a PR for this for the patch-release branch / 0.11.1.

However, some of you like me can’t wait 😝

The solution is very easy.

Step1. Replace your libfmodex.dylib with the latest one

If you use of 0.11.0, the file path is of_v0.11.0_osx/libs/fmodex/lib/osx/libfmodex.dylib

Step2. Modify…

koji_kanao

#CreativeCoding #Art #PhysicalComputing #IoT #MachineLearning #python #creativetech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store