Chúc các bạn tìm được những kiến thức bổ ích khi tình cờ ghé thăm blog này.

How Change the Windows 11 Taskbar Location?

How to move the taskbar in Windows 11?

Windows 11 currently does not have the option to change the taskbar location in the settings dialog.

To simplify changing this value, you can use the following PowerShell to modify registry setting:

  •  HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3

The valid values are the following.

    • Left: 00
    • Top: 01
    • Right: 02
    • Bottom: 03

How to dynamically choose the database and table based on input with SQLAlchemy?

 Python: How to dynamically choose the database and table based on input with SQLAlchemy?

If you want to dynamically choose the database URL and table based on input, you can use a more flexible approach by creating a factory function to handle this. This will involve dynamically creating the engine and session based on the input, and then dynamically loading the appropriate model.

Here's a step-by-step guide to achieve this:

1. Define a Model Registry

You can maintain a dictionary of model classes for each database. This way, you can dynamically choose the model based on the table name.

How to disable/enable network card on windows for specific time?

How to disable/enable network card on windows for specific time?

 Hôm nay có một vị phụ huynh than phiền rằng con anh ấy thức khuya quá.

Anh ấy nhờ giúp khóa mạng trên máy tính Windows cho laptop của con anh ấy theo giờ từ 00:00 đến 06:00 sáng.

Với yêu cầu : khóa mạng internet theo khung giờ, chúng ta có thể thực hiện dễ dàng mà không cần cài phần mềm gì cả.

TẠO CÁC ĐOẠN SCRIPTS CẦN THIẾT

Can't install upgrade to new Microsoft Teams

 App installation failed with error message: error 0x80070005: Opening the package from location MSTeams-x64.msix failed. (0x80070005)

App installation failed with error message: error 0x80070005: Opening the package from location MSTeams-x64.msix failed. (0x80070005)

Hôm nay, tôi gặp lỗi  khi cập nhật Microsoft Teams lên bản mới nên chia sẻ cho mọi người. 

Cập nhật Microsoft Teams từ Microsoft Store hoặc tải trực tiếp từ trang chủ:"new Microsoft Teams app for desktop" (MSTeams-x64.msix) để cài thì đều bị lỗi. 

Nguyên nhân:

Shell Script to install Python on Linux

Tạo một file lưu cấu hình tên là params.ini với nội dung là phiên bản Python muốn cài:

PY_VERSION='3.9.18'

Thật ra không cần dùng file 'param.ini' cũng được, nhưng tôi có thói quen đọc/sửa mọi thứ từ file cấu hình cho tiện, không muốn sau này phải sửa trực tiếp từ script. 

  Tiếp theo là script cài đặt Python và gói 'virtualenv' (rất cần thiết)
vim python3_install.sh 

Dán đoạn code sau vào:

Set up disaster recovery for Azure VMs

This tutorial shows you how to set up disaster recovery for Azure VMs using Azure Site Recovery

In this article, you learn how to:

  • Verify Azure settings and permissions
  • Prepare VMs you want to replicate
  • Create a Recovery Services vault
  • Enable VM replication

Set up disaster recovery using shared disk

 Bài viết này hướng dẫn thiết lập shared disk nhằm bảo vệ, giám sát, chuyển đổi dự phòng, và bảo vệ workloads đang chạy trên Windows Server Failover Clusters (WSFC) trên hệ thống máy ảo Azure.

Azure shared disks là một tính năng quản lý ổ đĩa cho phép đính kèm ổ đĩa vào nhiều máy ảo cùng lúc, việc này cho phép bạn triển khai ứng dụng cụm mới hoặc di chuyển ứng dụng cụm hiện có sang Azure.

Sử dụng tính năng share disks của Azure Site Recovery, chúng ta có thể:

  • Protect your clusters.
  • Create recovery points (App and Crash) that are consistent across all the virtual machines and disks of the cluster.
  • Monitor protection and health of the cluster and all its nodes from a single page.
  • Failover the cluster with a single click.
  • Change recovery point and reprotect the cluster after failover with a single click.
  • Failback the cluster to the primary region with minimal data loss and downtime.

Run a disaster recovery drill for Azure VMs

Learn how to run a disaster recovery drill to another Azure region, for Azure VMs replicating with Azure Site Recovery

In this article, you:

  • Verify prerequisites
  • Check VM settings before the drill
  • Run a test failover
  • Clean up after the drill

Elasticsearch-la-gi

 Elasticsearch là một cơ sở dữ liệu (NoSQL), là một công cụ tìm kiếm và phân tích dữ liệu lớn, có mã nguồn mở được xây dựng trên nền tảng Apache Lucene. Công nghệ cung cấp khả năng tìm kiếm nhanh chóng và phân tích dữ liệu phức tạp thông qua giao diện RESTful và JSON.

Elastic search là gì? Tổng hợp những khái niệm và tính ứng dụng cần biết về Elasticsearch

Đối tượng sử dụng Elasticsearch?

Hạ tầng siêu hội tụ HCI?

 Hyper-Converged Infrastructure (HCI)

HCI là hạ tầng với kiến trúc hệ thống lấy software làm trung tâm do vậy HCI được tích hợp chặt chẽ vào trong các Compute node, hệ thống lưu trữ - Storage, mạng lưới - Networking, nguồn tài nguyên ảo hoá và các công nghệ khác. Ngay từ đầu khâu chế tạo thiết bị phần cứng, tất cả đều được tích hợp và được hỗ trợ bởi một hãng sản xuất duy nhất.

HYPER CONVERGED INFRASTRUCTURE