Django Optimistic Locking (樂觀鎖定)
current in process record the version will be update += 1, so when in the same time another one do same thing will updated_rows == 0.
Technical sharing by programmers
current in process record the version will be update += 1, so when in the same time another one do same thing will updated_rows == 0.
when select task by id, the database lock the record. if other one to do same time the second one will get the “Task is already claimed or completed” We …
^: indicating the begin $: indicateing the last [0-9]{4}: 4 characters and each character is 0~9. (?P<by_date>…….), will pass the value as by_date parameter to the view. r preceding the …
cd ~ mkdir practice_folder #create a virtualenv python -m venv .venv .venv\scripts\activate.bat pip install django~=4.0.0 psycopg2-binary~=2.9.9 django-admin startproject django_project . python manage.py runserver 0.0.0.0:8000 pip freeze > requirements.txt create a …
if you have pyenv Dockerfile, you can use docker built -t django:latest . to build a docker image. command: docker run –rm -p 8000:8000 -p 3000:3000 -v c:\Users\Fluber\Project\Docker\django\book_django_beginners\:/home/fluber/code -it django:latest …
FROM ubuntu:20.04 ENV TZ = Asia\Taipei ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \apt-get install -y \build-essential \libssl-dev \zlib1g-dev \libbz2-dev \libreadline-dev \libsqlite3-dev \wget \curl \llvm \libncurses5-dev \libncursesw5-dev \xz-utils \tk-dev \libffi-dev \liblzma-dev …
使用xode打開 ios > project.xcworkspace,如下圖所示新建資料夾Fonts。再將node_modules > react-native-vector-icons > Fonts >Ionicons.ttf 檔案拖拉到xcode專案中的Fonts資料夾下。 在下圖XCode專案中的Info中,新建Fonts provided by application類別,並在此類別下新增一個Item 0值為Ionicons.ttf 下方Tab的圖示就可以正常顯示。
執行指令∶ curl -s “https://get.sdkman.io” | bash 下列Statement將會加入~/.zshrc中 查詢可安裝的Java版本 安裝Java sdk install java Identifier (上表最後一欄的值) 切換Java版本 sdk use java Identifier
作業環境∶ OSX,Homebew 安裝指令∶brew install nvm 執行指令:nvm -h, 瞭解nvm 命令功能 執行指令:nvm ls-remote –lts, 查詢官網長期維護版本 執行指令∶ nvm install v16.20.2 執行指令:nvm ls, 查詢目前電腦系統上所安裝的版本清單及正在使用的是那個版本 執行指令:nvm use, 指定所要使用的版本