Bài đăng

Đang hiển thị bài đăng từ Tháng 3, 2026

🚐🚢Logistic tracking Project✈️Week1

Tôi làm cho anh  “Tuần 1: Tracking core chạy thật”  theo đúng kiểu  copy → paste → chạy được ngay  ⚙️🚀 👉 Scope tuần 1: DB: shipments + shipment_events + locations Migration Laravel Model + relationships API  /api/tracking/{code} ⚙️ 1. MIGRATIONS (Laravel) 📍 locations Schema::create('locations', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('type')->nullable(); // port, city $table->string('country'); $table->string('code')->nullable(); // UN/LOCODE $table->decimal('latitude', 10, 7)->nullable(); $table->decimal('longitude', 10, 7)->nullable(); $table->timestamps(); }); 🚚 shipments Schema::create('shipments', function (Blueprint $table) { $table->id(); $table->string('tracking_code')->unique(); $table->enum('type', ['air', 'sea', 'land']); $table-...

🚐🚢Logistic tracking Project✈️Week0

OK — đã xác định làm  real system (Laravel + MariaDB)  thì tôi vẽ cho anh  schema chuẩn bài, đủ để scale lên SaaS logistics luôn  🚀 Tôi sẽ thiết kế theo hướng: 👉  Modular + mở rộng + chuẩn B2B logistics quốc tế (Canada ↔ Việt Nam) 🧠 1. Tổng quan kiến trúc DB Core modules: 👤 Users / Roles 🚚 Shipments (tracking) 📦 Containers / Cargo 📍 Locations (ports, cities) 📊 Events timeline 💰 RFQ (báo giá) 📚 Resources (lead gen) 🌍 Multi-language 🏢 Customers (B2B) 🧱 2. DATABASE SCHEMA (FULL) 👤 USERS & AUTH users - id (PK) - name - email (unique) - password - role_id - company_id (nullable) - created_at - updated_at roles - id - name (admin, staff, customer) companies - id - name - country - city - address - tax_code - created_at 🚚 SHIPMENTS (CORE TRACKING) shipments - id (PK) - tracking_code (unique) - type (air, sea, land) - status (pending, in_transit, delivered) - origin_id (FK locations) - destination_id (FK locations) - etd (datetime) - eta (datetime) ...

🚐🚢Logistic tracking Project✈️intro

Dạo trên diễn đàn freelancer thấy dự án logistics này hay...làm chơi coi tới đâu. p/S: mình có viết 01 app nhỏ  check số container đúng/sai  ở đây. Yêu cầu project: Xây dựng Website Logistics kết nối Canada & Việt Nam (Châu Á) • Thiết kế giao diện B2B chuyên nghiệp, hiện đại, uy tín (Corporate Style). • Tối ưu hóa hiển thị trên Mobile (đặc biệt là phần tra cứu mã vận đơn). • Hệ thống đa ngôn ngữ: Tiếng Anh (Chính) và Tiếng Việt. • Nhúng công cụ tra cứu giá cước đường biển (White-label) vào trang con chuyên biệt. • Hệ thống Form RFQ: Xây dựng Form yêu cầu báo giá thông minh (Request for Quote) phân loại theo phương thức vận chuyển (Air/Sea/Land). • Resource Center: Trang tải tài liệu (PDF) có yêu cầu để lại thông tin (Lead Generation). • Tối ưu hóa từ khóa tập trung vào các Hub Logistics tại thành phố lớn tại Canada • Tối ưu hóa từ khóa đầu Việt Nam: TP.HCM, Hà Nội, Hải Phòng, Cần Thơ, Đà nẵng • Cài đặt đầy đủ Meta Tags, Alt Text, Schema cho ngành Logistics. p/S: chủ trả...

🚀CSS Animation trong 1h⏱️

T rong 1 giờ → đủ để làm 80% animation CSS thực chiến (ngắn gọn, trọng tâm, có ví dụ dùng ngay). 🚀 🧠 LỘ TRÌNH 1 GIỜ – CSS ANIMATION ⏱️ 0–10 phút: Hiểu bản chất 🎯 Có 2 loại animation Loại Dùng khi nào transition hover, click @keyframes chạy tự động ✨ 1. TRANSITION (cơ bản nhất) .box { transition: all 0.3s ease; } .box:hover { transform: scale(1.2); } 👉 Khi hover → nó chuyển động mượt 🧠 4 thuộc tính chính: transition: property duration easing delay; Ví dụ: transition: transform 0.5s ease 0.2s; 🔥 2. KEYFRAMES (quan trọng nhất) @keyframes move { 0% { transform: translateX(0); } 100% { transform: translateX(200px); } } Áp dụng: .box { animation: move 2s linear infinite; } 🧩 Cấu trúc animation animation: name duration timing iteration direction fill-mode; Ví dụ: animation: move 3s ease-in-out infinite alternate; 🎯 10–30 phút: Hiệu ứng quan trọng nhất 🌟 1. Fade (mờ dần) @keyframes fade { from { opacity: 0; } to { opacity: 1; } } 🚀 2. Scale (phóng to) transform: s...

🐹Golang first step🐹

Chỉ cần 3 bước là chạy được chương trình Hello bằng Go (programming language) trên Windows. ⚙️ Bước 1: Cài Golang Tải tại trang chính thức: 👉 https://go.dev/dl/ Chọn bản Windows: go1.xx.x.windows-amd64.msi Cài xong mở Command Prompt kiểm tra: go version Nếu thấy: go version go1.xx windows/amd64 ✔️ nghĩa là đã cài thành công. 📄 Bước 2: Tạo file chương trình Tạo file: hello.go Nội dung: package main import "fmt" func main() { fmt.Println("Hello") } Ví dụ thư mục: D:\golang\hello.go ▶️ Bước 3: Chạy chương trình Mở Terminal / Command Prompt cd D:\golang Chạy: go run hello.go Kết quả: Hello ⚡ Cách chuyên nghiệp hơn (compile) Golang thường compile thành file exe . Chạy: go build hello.go Sẽ tạo file: hello.exe Chạy: hello.exe Output: Hello 📊 So sánh hai cách Cách Lệnh Ý nghĩa Chạy nhanh go run hello.go compile tạm rồi chạy Build go build hello.go tạo file exe thật 💡 Mẹo hay File exe của Golang: không cần runtime không cần cài Go copy sang máy khác chạy luôn ...

🚨Lỗi Windows 11 không đồng bộ được giờ⏰

📌Đổi server google (mặc định là server windows) Tiêu chí time.windows.com time.google.com Độ chính xác Rất tốt Rất tốt Độ ổn định VN Trung bình Rất ổn định Route quốc tế Không tối ưu Tối ưu mạnh Leap second handling Chuẩn Smear (mượt hơn) w32tm /config /manualpeerlist:"time.google.com,0x8" /syncfromflags:manual /update net stop w32time net start w32time w32tm /resync /force