-
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)…
-
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…
-
Code quản lý Sinh viên dùng Struct – danh sách liên kết đơn
Code quản lý Sinh viên dùng Struct – danh sách liên kết đơn: Tạo 1 struct Thêm đầu/cuối danh sách Tìm theo tên và chèn 1 SV vào sau tên đó Xóa SV đầu danh sách Đếm số SV trong danh sách Tìm SV trong khoảng điểm Sắp xếp theo mã số Cách 1: /*…