-
[QGIS Basic] How to Download and Install the latest QGIS software
[QGIS Basic] How to Download and Install the latest QGIS software Hello everyone, today I will guide you to download and install QGIS software in the most methodical way DOWNLOAD QGIS SOFTWARE To have the software, first we need to download it to the computer. The fastest way when we don't know what to do, there is nothing better than searching Google. We go to Google and search for the keyword download QGIS Google will return the page results that allow downloading software from qgis.org itself. We access that page (It is the main page, not afraid of fake softwares or malicious codes inserted) For those of you who are…
-
Fix OGR2OGR Import – invalid byte sequence for encoding UTF8
Fix OGR2OGR Import - invalid byte sequence for encoding UTF8 Error showing When I use OGR2OGR to import Shapeilfe to PostgreSQL, I got error like this: invalid byte sequence for encoding "UTF8": 0xe2 0x6e 0x20 How to fix invalid byte sequence for encoding UTF8 I run this command first SET PGCLIENTENCODING=LATIN1 My full command to import Shapefile to PostgreSQL set path=C:/OSGeo4W/bin/ SET PGCLIENTENCODING=LATIN1 ogr2ogr -f "PostgreSQL" PG:"host=localhost user=postgres dbname=**** password=**** port=**** schemas=import_data" D:\WebData\nongnghiepvungtau\file_system\map_upload\soi1301202235231pm_t3.shp -skipfailures -overwrite -nln import_data.map_upload -lco ENCODING=UTF-8
-
Javascript Date to ISO String +7
Javascript Date to ISO String +7 Mục đích để chuyển từ định dạng 2020-01-19 17:00:00 sang định dạng 2020-01-19T17:00:00.000Z var d = new Date('2020-01-19 17:00:00'); d.setHours(d.getHours() + 7); d.toISOString();
-
[QGIS cơ bản] Hướng dẫn Tải và Cài đặt phần mềm QGIS
[QGIS cơ bản] Hướng dẫn Tải và Cài đặt phần mềm QGIS Xin chào các bạn, hôm nay mình sẽ hướng dẫn các bạn tải và cài đặt phần mềm QGIS một cách bài bản nhất =)) TẢI PHẦN MỀM QGIS Muốn có phần mềm thì đầu tiên chúng ta cần tải nó về máy đã (nói chuyện cũng như không :') ). Để nhanh nhất khi mà ta không biết làm sao thì còn gì bằng là search Google. Chúng ta vào Google search từ khóa download QGIS Lúc này Google sẽ trả về kết quả trang cho phép tải phần mềm từ chính qgis.org. Chúng ta truy cập…
-
[GEE Basic] Add an Image collection in Google Earth Engine
Bài viết tiếng Việt ở đây. Introduction In a web browser, go to the Google Earth Engine homepage: https://earthengine.google.com/ Click on Datasets in the upper right corner.. In GEE's data catalog we have many types of data, today we will work with Landsat data. Clicking on the symbol at the end of this line of code will take us to the sample script in https://code.earthengine.google.com/, written in Javascript language. If you are not logged in, we will have to log in with a Google account. Explanation of code The first line of code: use the 'var' keyword to create a variable called 'dataset', This variable will contain the Landsat 8…
-
[GEE Cơ bản] Hướng dẫn thêm một tập ảnh trong Google Earth Engine
[GEE Cơ bản] Hướng dẫn thêm một tập ảnh trong Google Earth Engine English version here. Mở đầu Trong trình duyệt web, vào trang chủ Google Earth Engine: https://earthengine.google.com/ Click vào Datasets ở góc trên bên phải. Trong data catalog của GEE chúng ta có rất nhiều loại dữ liệu, hôm nay chúng ta sẽ làm việc với dữ liệu Landsat. Click vào ký hiệu cuối dòng code này sẽ dẫn chúng ta tới script mẫu trong https://code.earthengine.google.com/, được viết bằng ngôn ngữ Javascript: Nếu bạn chưa đăng nhập, chúng ta sẽ phải đăng nhập bằng tài khoản google. Giải thích các dòng code Dòng code đầu tiên: sử dụng…
-
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