Install Conda Install correct version of pytouch and cudatoolkit
Author: haonheo
mass mkdir
Ví dụ muốn tạo thư mục theo năm/ tháng/ ngày từ 2022 tới 2100
Chạy script python3 khi khởi động bằng crontab
Tự động restart server ubuntu hàng đêm
crontab -e và thêm dòng dưới vào reload lại cronjob
Tự động update DNS cloudflare bằng cronjob + bash
Bạn có máy chủ ở nhà, muốn domain của mình luôn trỏ về nhà dù ở nhà ip động ? … More
Set authentication cho Elasticsearch
Nhầm các method khác sang GET khi dùng Postman
Bật setting sau lên
Tự động thêm thời gian tạo bản ghi Elasticsearch
Chạy lệnh sau để mỗi khi dùng pipeline timestamp thì tự động có thể thông tin created date Sau đó … More
Could not find method compile() for arguments [com.facebook.react:react-native:0.20.+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Sửa file như sau
toLocaleString không hoạt động với android
In December 2012, ECMA International published the first edition of Standard ECMA-402, better known as the ECMAScript Internationalization API. This specification … More
Lỗi currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
Sửa file sau “\node_modules\react-navigation\src\navigators\createKeyboardAwareNavigator.js” Replace như sau
[Unhandled promise rejection: TypeError: undefined is not an object (evaluating ‘_expo.Permissions.askAsync’)]
Trong code sửa Thành
TypeError: TaskQueue: Error with task : undefined is not an object (evaluating ‘_this.view._component.measureInWindow’)
/node_modules/react-native-safe-area-view/index.js update: from: to:
Lấy secret key cho apple oauth
Cài gem jwt cho ruby Chạy file ruby như sau
Config websocket khi dùng nginx làm proxy
Giả sử muốn connect websocket vào localhost:8000/wss qua nginx làm proxy Thêm vào block http của /etc/nginx/nginx.conf Thêm vào block … More
Lỗi /.gem/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’))
Lỗi You may have encountered a bug in the Ruby interpreter or extension libraries.
Sửa bằng cách chạy lệnh sau
Sửa lỗi The application**** can’t be open khi xuất app cho MacOS từ Unity
Xử lý như hướng dẫn ở 2 ảnh sau
Lỗi FBSDK Unity yêu cầu client token
Vào App FB ở trang developer.facebook.com. Vào mục Setting -> Advanced. Copy Client token ở mục Client Token Vào Unity … More
Lỗi Could not load type of field ‘Google.IOSResolver:settings’
Khi import Facebook SDK thì gặp lỗi làm crash Unity liên tục. If you haven’t added resolver as a dependency … More