List trong SwiftUI là container hiển thị các hàng dữ liệu xếp chồng, cho phép chọn, thêm hoặc xóa mục. Các init hỗ trợ dữ liệu Identifiable, keyPath ID và binding selection. Ví dụ đơn giản: 3 Text trong List. #SwiftUI #iOS #LậpTrình #Tech #Programming #Development #Vietnam
List trong SwiftUI là container hiển thị các hàng dữ liệu xếp chồng, cho phép chọn, thêm hoặc xóa mục. Các init hỗ trợ dữ liệu Identifiable, keyPath ID và binding selection. Ví dụ đơn giản: 3 Text trong List. #SwiftUI #iOS #LậpTrình #Tech #Programming #Development #Vietnam
SwiftUI LazyVGrid & LazyHGrid cho phép bố trí nhiều mục trong một hàng hoặc cột. GridItem định dạng kích thước (.fixed, .flexible, .adaptive) và khoảng cách giữa các mục. Ví dụ: 4 hàng với chiều cao cố định hoặc dùng .flexible/.adaptive để tự động mở rộng, tạo lưới ngang/đọc trong ScrollView. #SwiftUI #LazyGrid #iOS #LậpTrình #Programming
SwiftUI LazyVGrid & LazyHGrid cho phép bố trí nhiều mục trong một hàng hoặc cột. GridItem định dạng kích thước (.fixed, .flexible, .adaptive) và khoảng cách giữa các mục. Ví dụ: 4 hàng với chiều cao cố định hoặc dùng .flexible/.adaptive để tự động mở rộng, tạo lưới ngang/đọc trong ScrollView. #SwiftUI #LazyGrid #iOS #LậpTrình #Programming
A very persistent LLM scraper just gave my website a free stress test: 10k+ requests to a non-existent endpoint in under 24 hours
The result? Zero downtime. Zero performance degradation. And if i did not check the analytics I wouldhave missed it.
This is why I advocate for modern stacks like Traefik paired with FrankenPHP. The ability to handle high concurrency with minimal resource usage is a game changer for #PHP applications.
#developer #programming #technology #business
We need legislation on sideloading ASAP. Yesterday, I learned the hard way that I’m not allowed to use my own personal, paid developer certificate to sign IPAs I want to install on my own personal device. Wow. 😬
RE: https://procursus.social/@alfie/115939146144459671
“A computer that can't develop and deploy its own software isn't a computer, it's an appliance.”
We need legislation on sideloading ASAP. Yesterday, I learned the hard way that I’m not allowed to use my own personal, paid developer certificate to sign IPAs I want to install on my own personal device. Wow. 😬
RE: https://procursus.social/@alfie/115939146144459671
“A computer that can't develop and deploy its own software isn't a computer, it's an appliance.”
https://linuxiac.com/skip-makes-its-mobile-development-tools-free-and-open-source/
Swift is a Cross-platform mobile Development tool, and they have just dropped all paid subscriptions and gone completely free AND open-source!!
#FOSS #OpenSource #Development #Android #IOS #iPhone #Programming
https://linuxiac.com/skip-makes-its-mobile-development-tools-free-and-open-source/
Swift is a Cross-platform mobile Development tool, and they have just dropped all paid subscriptions and gone completely free AND open-source!!
#FOSS #OpenSource #Development #Android #IOS #iPhone #Programming
Swift Task không tự dừng khi gọi cancel(); cần kiểm tra trạng thái bằng Task.checkCancellation() hoặc Task.isCancelled. Khi hủy một “super‑task”, mọi “sub‑task” cũng nhận tín hiệu và phải tự kiểm tra. Trong SwiftUI, có thể lưu tham chiếu Task và hủy trong onDisappear, hoặc dùng modifier .task để tự động hủy khi view biến mất. #Swift #iOS #Concurrency #Task #SwiftUI #LậpTrình #Programming #AsyncAwait
https://dev.to/david_goyes_a488f58a17a53/sc-8-cancelando-un-task-179m
Copy‑on‑write (COW) là kỹ thuật quan trọng giúp Swift thực hiện semantics giá trị một cách hiệu quả, giảm sao chép dữ liệu không cần thiết và tối ưu bộ nhớ. Bài viết phân tích sâu cách COW được áp dụng trong Swift internals, từ cấu trúc dữ liệu tới quản lý bộ nhớ, hữu ích cho lập trình viên muốn hiểu cơ chế hoạt động bên trong ngôn ngữ. #Swift #Programming #CopyOnWrite #LậpTrình #SwiftInternals #iOS
https://www.reddit.com/r/programming/comments/1qh97lb/copyonwrite_teaches_you_everything_about_s
As a side project, I am working on a deep redesign of the C standard library and am contemplating blogging about it to give myself some motivation, as well as hopefully getting helpful feedback from interested enthusiasts or experienced programmers. Feel free to share this thread and ask questions, I'll be happy to answer them in my next blog post if this gets enough traction (I will post the link here on mastodon).
#programming #c #libc #c23 #c2y #clang #gcc #unix #windows #macos #plan9 #blog
I think I have a new favorite setup for self-hosting websites. I used to configure #Nginx and Let's Encrypt (with Certbot) manually on my #Linux servers, and then I also tried out a #Docker Compose setup with an Nginx and a Certbot container. Now I have a hybrid approach: setting up Nginx as a container in my Docker Compose file and configuring SSL through my hosting provider. No more manual Nginx/Certbot configuration!
I think I have a new favorite setup for self-hosting websites. I used to configure #Nginx and Let's Encrypt (with Certbot) manually on my #Linux servers, and then I also tried out a #Docker Compose setup with an Nginx and a Certbot container. Now I have a hybrid approach: setting up Nginx as a container in my Docker Compose file and configuring SSL through my hosting provider. No more manual Nginx/Certbot configuration!