-
Download Sentinel-2 10-Meter Land Use – Land Cover
Download Sentinel-2 10-Meter Land Use - Land Cover Land use changes rapidly. So should our maps. Detailed. Timely. Accurate. An annual 10-meter resolution map of Earth's land surface from 2017-2021 High-resolution, open, accurate, comparable, and timely land use maps are critical for decision-makers in many industry sectors and developing nations. These maps improve understanding of important topics such as food security, land use planning, surface water, and resource management planning. In addition, national government resource agencies use land use/land cover as a basis for understanding trends in the country's natural capital, which helps define land planning priorities and is the basis of budget allocations. Mapping with AI Existing artificial intelligence…
-
Fix curl unable to establish ssl connection
Fix curl unable to establish ssl connection Sửa lỗi unable to establish ssl connection khi wget hay curl Fix unable to establish ssl connection Để sửa lỗi này thì chạy lệnh sau: /usr/sbin/update-ca-certificates --fresh Tham khảo https://www.linuxquestions.org/questions/slackware-14/wget-unable-to-establish-ssl-connection-while-downloading-libreoffice-from-slackbuild-4175642143/
-
Python Fix Object of type ‘date’ is not JSON serializable
Python Fix Object of type 'date' is not JSON serializable My quick & dirty JSON dump that eats dates and everything: json.dumps(my_dictionary, indent=4, sort_keys=True, default=str) default is a function applied to objects that aren't serializable.\ In this case it's str, so it just converts everything it doesn't know to strings. Which is great for serialization but not so great when deserializing (hence the "quick & dirty") as anything might have been string-ified without warning, e.g. a function or numpy array. https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable
-
[Easy way] Turn Your WordPress Site into a Progressive Web App (PWA)
[Easy way] Turn Your WordPress Site into a Progressive Web App (PWA) Chuyển website wordpress của bạn thành mobile app thông qua kỹ thuật Progressive Web App (PWA) Giới thiệu Super Progressive Web Apps https://wordpress.org/plugins/super-progressive-web-apps/ Progressive Web Apps (PWA) is a new technology that combines the best of mobile web and the best of mobile apps to create a superior mobile web experience. They are installed on the phone like a normal app (web app) and can be accessed from the home screen. Thực hiện
-
How to clear the contents of a file from the command line?
How to clear the contents of a file from the command line? You can use the user command : truncate truncate -s 0 test.txt ("-s 0" to specify the size) http://www.commandlinefu.com/commands/view/12/empty-a-file https://superuser.com/questions/90008/how-to-clear-the-contents-of-a-file-from-the-command-line
-
Các loại chuẩn hóa cơ sở dữ liệu quan hệ
Các loại chuẩn hóa cơ sở dữ liệu quan hệ Vừa rồi mình được một người bạn nhờ làm bài tập về thiết kế cơ sở dữ liệu theo chuẩn 3NF, thú thực đây là những kiến thức học hồi đại học và cho đến giờ mình đã quên sạch 😄. Bởi vậy mình quyết định viết một bài để note lại những gì mình đã đọc và để làm tài liệu tham khảo sau này. Mở đầu Hầu hết các ứng dụng web đều cần phải có cơ sở dữ liệu để lưu trữ dữ liệu, xử lý thông tin, kết xuất đưa ra báo cáo thống kê, hỗ trợ…
-
Thêm quảng cáo vào app android – ionic add Admob to my app
Thêm quảng cáo vào app android - ionic add Admob to my app Đăng ký tài khoản https://admob.google.com/home/ https://apps.admob.com/signup/create-account Bị lỗi An error occurred. Please try again later. https://support.google.com/admob/thread/106753835/can-t-signup-into-account-for-admob-i-am-getting-an-error-occurred-please-try-again-later?hl=en Đổi sang trình duyệt Edge là Ok, lưu ý phải tắt Adblock nữa Giao diện Admob Đăng ký ID quảng cáo Admob https://apps.admob.com/v2/apps/9537187511/overview Tạo đơn vị quảng cáo ca-app-pub-3654642326317030~9537187511 ca-app-pub-3654642326317030/1927781499 https://apps.admob.com/v2/apps/9537187511/adunits/create Preferences https://www.freakyjolly.com/ionic-admob-free-native-tutorial/ https://apps.admob.com/v2/apps/9537187511/overview Thêm quảng cáo vào app App ID ca-app-pub-3654642326317030~9537187511 banner ca-app-pub-3654642326317030/1927781499 ionic cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID="ca-app-pub-3654642326317030~9537187511" npm install @ionic-native/admob-free ionic g service services/admob https://apps.admob.com/v2/apps/9537187511/settings https://apps.admob.com/v2/apps/9537187511/adunits/list Fix Lỗi không hiện quảng cáo trong app Khi app được release thì tự động hiện được quảng cáo Không…
-
FastAPI (gunicorn) bị lỗi Mixed Content HTTPS vs HTTP
FastAPI (gunicorn) bị lỗi Mixed Content HTTPS vs HTTP Nhận dạng lỗi Mixed Content: The page at 'https://aaaa' was loaded over HTTPS, but requested an insecure stylesheet 'http://aaaa/static/dist/css/bootstrap.min.css'. This request has been blocked; the content must be served over HTTPS. Cách sửa FastAPI (gunicorn) bị lỗi Mixed Content HTTPS vs HTTP Bổ sung thẻ <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> vào file template html của bạn Another workaround is to add: <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> to index.html file in frontend. It will upgrade all requests from http to https (also when run locally, so it may not be the best workaround) Tham khảo https://stackoverflow.com/questions/63511413/fastapi-redirection-for-trailing-slash-returns-non-ssl-link
-
[Funny] Chải lông cho boss
Được cái lần chải lông cho 3 con boss mà đc kết quả như này đây hazzzz Cre: Trọng Huân/Group Ở nhà vui thấy bà! Nguồn: https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Floveanimals.vn%2Fposts%2F3000805780168975
-
Cloudflare bị lỗi Error 525 SSL handshake failed
Cloudflare bị lỗi Error 525 SSL handshake failed https://blog.hostvn.net/chia-se/huong-dan-sua-loi-ssl-handshake-failed-khi-dung-cloudflare.html Lỗi 525 chỉ ra rằng việc xác thực SSL giữa Cloudflare và máy chủ web của bạn không thành công. Lỗi này chỉ xảy ra khi bạn đang sử dụng chế độ SSL Cloudflare Full hoặc Full (Strict). Điều này thường xảy ra do cấu hình trong máy chủ web của bạn, khi lỗi xảy ra, bạn sẽ thấy thông báo Error 525: SSL handshake failed. Các nguyên nhân phổ biến nhất của lỗi này là: Chứng chỉ SSL hợp lệ được cài đặt trên trang web không hợp lệ Cổng 443 trên máy chủ web của bạn bị đóng. SNI không được trang web…
-
Fix The repository … no longer has a Release file
Fix The repository ... no longer has a Release file? Run follow command apt-get dist-upgrade
-
Quy tắc vẽ Sơ đồ khối
Quy tắc vẽ Sơ đồ khối https://thanhmo.com/flowchart-la-gi/
-
Fix PowerShell Installing NuGet, says unable to access internet
Fix PowerShell Installing NuGet, says unable to access internet About err PowerShell Installing NuGet, says unable to access internet Fix PowerShell Installing NuGet, says unable to access internet Chạy lệnh này trước [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 References https://stackoverflow.com/questions/55826791/powershell-installing-nuget-says-unable-to-access-internet-but-i-actually-can
-
Cài SSH Server và fix lỗi SSH Permission denied, please try again
Cài SSH Server và fix lỗi SSH Permission denied, please try again. Cài SSH Client và SSH Server Cài SSH Client sudo apt-get update sudo apt-get upgrade sudo apt-get install openssh-client Cài SSH Server sudo apt-get update sudo apt-get upgrade sudo apt install openssh-server Start SSH Server Theo hướng dẫn của người ta thì là vầy Open your terminal application Install the openssh-server package on Ubuntu, run: **sudo apt install openssh-server** Enable ssh server on Ubuntu, run: **sudo systemctl enable ssh** By default, firewall will block ssh access. Therefore, you must enable ufw and open ssh port Open ssh tcp port 22 using ufw firewall, run: **sudo ufw allow ssh** Congratulations. Now you have SSH…
-
[Sưu tầm] Auto Start LAMPP (XAMPP) at Startup in Ubuntu Linux
Hướng dẫn chỉnh tự động bật LAMPP khi khởi động Server Linux Creating a script to start XAMPP automatically in Ubuntu 18.04 or later Tạo file services để khởi động LAMPP, ở đây tui dùng vim để edit, bạn có thể dùng nano hay gì tùy sở thích của bạn =)) vim /etc/systemd/system/xampp.service Chép nội dung sau vào [Unit] Description=XAMPP [Service] ExecStart=/opt/lampp/lampp start ExecStop=/opt/lampp/lampp stop Type=forking [Install] WantedBy=multi-user.target Xong thì lưu lại và thoát thôi Instruct Ubuntu to execute LAMPP service at the startup systemctl enable xampp.service Sau khi xong thì khởi động lại máy thử, trong trường hợp của mình thì khởi động lại vẫn không được :') Mình…