-
Web Assembly (Wasm) và những triển vọng
Ngày 5/12/2019, Wasm đã được W3C thông báo Wasm là tiêu chuẩn chính thức cho web, một ngôn ngữ mạnh mẽ tiếp theo cho web. Wasm là hợp ngữ, high-level languages like C/C++/Rust, định nghĩa "portable binary-code" và đi kèm text format tương ứng như các interfaces để các chương trình giao tiếp với host…
-
bashscript – Restart explorer without losing open windows
When we have to restart explorer.exe, usually we have many folders opened, which get closed in the process. There is a way to re-open these folders automatically after restarting explorer using bat script: @echo off setlocal enabledelayedexpansion powershell @^(^(New-Object -com shell.application^).Windows^(^)^).Document.Folder.Self.Path >> openedpaths.txt taskkill /im explorer.exe /f start explorer.exe FOR /F "tokens=*" %%f IN (%~dp0openedpaths.txt)…
-
Webpack 5 devServer proxy config and pathRewrite for context matching, CORS policy
In web front-end development, with the devServer proxy in Webpack, we have some useful configs. CORS policy devServer.proxy We can use this config devServer proxy for the SPA calling the API without CORS policy "The browser console will present an error like "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at…
-
SPA get 404 error when refreshing the page or access directly and SEO?
When developing and deploying SPA app, eg: Reactjs, the navigation between pages works perfectly by clicking through several routes and everything seemed fine. Somehow the URL looks like: http://abc.com/job/431 …until we refreshed the page or tried to access a route directly. We got a 404 error. One of working around solution: Use HashRouter instead of…
-
Resolved React refresh webpack plugin throws $RefreshSig$ is not defined
While using Babel transform and the webpack hot reload middleware approach, and after build the project in PROD mode, an uncaught ReferenceError: $RefreshSig$ is not defined error thrown in console. Per react-refresh-webpack-plugin docs : Ensure both the Babel transform (react-refresh/babel) and this plugin are enabled only in development mode! and the packages: "@pmmmwh/react-refresh-webpack-plugin": "^0.5.4", "react-refresh":…
-
How to fix ORA-12541: TNS:no listener?
ORA-12541: TNS:no listener I get the ORA-12541 error message when I try to connect through sqldeveloper/Navicat. I’ve started the listener also. I’ve checked the listener.ora and tnsnames.ora files and everything seems okay. There is a root Cause: Listener for the source repository has not been started. Action: Start the Listener on the machine where the…
-
Recover a reset or deleted commit in Git with git reflog
In previous post, we know how to reset (delete) a commit that’s pushed to the remote repository server using git reset –hard and git push origin -f. This post show you how to recover a reset or deleted commit with git reflog. We can find the commit that we want to be on in that…
-
Reset a commit on the remote repository server with git reset
Imaging that we commit and push the wrong code and we want to reset completely. So we can use git reset with –hard and then push back to the remote repository with git push Case study We want to reset commit add deployed on IIS to the previous commit Update sdk + lib + packages…
-
XAMPP Error: InnoDB/MySQL shutdown unexpectedly won’t start again
You will get the error message when starting the XAMPP in a beautiful day: 1:37:52 AM [mysql] Error: MySQL shutdown unexpectedly. 1:37:52 AM [mysql] This may be due to a blocked port, missing dependencies, 1:37:52 AM [mysql] improper privileges, a crash, or a shutdown by another method. 1:37:52 AM [mysql] Press the Logs button to…
-
pip install vi_spacy and en-core-web-sm incompatible
vi_spacy is a Vietnamese language models pretrained word vectors, tok2vec, tagger, parser on 18 GB of Vietnamese news, 270K unique vectors (300 dimensions) for Spacy.io. The gitlab is here. Sometimes, You will get the error when trying to install the vi_spacy via pip: pip install https://gitlab.com/trungtv/vi_spacy/-/raw/master/vi_core_news_lg/dist/vi_core_news_lg-0.0.1.tar.gz And the error: ERROR: pip’s dependency resolver does not…
-
GCP Cloud SQL
Cloud SQL/ Create SQL instance gcloud sql instances create [INSTANCE_NAME] –database-version=SQLSERVER_2017_STANDARD –cpu=[NUMBER_CPUS] –memory=[MEMORY_SIZE] –root-password=[INSERT-PASSWORD-HERE] Connect to your instance Private IP: Requires additional APIs and permissions, which may require your system admin. visit the Networking page to change. Public IP: Authorize a network or use Cloud SQL Proxy to connect. Cloud SQL/ Cloud SQL Auth proxy Cloud…