サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
darkcoding.net
At the start of the year, I highlighted how crucial `epoll` is for modern applications, particularly when structured around an event loop or async engines like Go or Rust's Tokio. With `epoll`, you can manage various file descriptors, including network sockets, timers, signals, filesystem events, child processes, and terminal I/O. For inter-thread communication, options include POSIX message queue
Continuing our dive into the Internet Protocol Suite from Go (See part 1 Raw sockets in Go: IP layer), we are going to the link layer, so we can see the IP headers. This will also allow us to craft our own IP headers, or handle address families outside IP. We’ll send ping packets (ICMP echo request) and watch the kernel’s response. Receive This isn’t wrapped in Go, so we need a syscall. Otherwise
In the Internet protocol suite we usually work at the transport layer, with TCP or UDP. Go (golang) has good support for working with lower layers. This post is about working one layer down, at the IP layer. If you want to use protocols other than TCP or UDP, or craft your own packets, you need to connect at the IP layer. Receive Let’s read the first ICMP packet on localhost: package main import (
tl;dr: It looks like Facebook is getting the textbook results of ignoring code quality. Update: More examples, and insights from ex-employees in the reddit discussion Facebook has a software quality problem. I’m going to try to convince you with three examples. This is important because it demonstrates the time-honored principle that quality matters. In demonstrates it, as Facebook engineers like
To run a real-time project efficiently, using Socket.io on Node.js and Django on Nginx/Gunicorn on the same port with SSL, follow these steps on Ubuntu: Start by generating a self-signed SSL certificate. Use Stunnel to decrypt SSL traffic, supporting both HTTPS to HTTP and WSS (WebSocket Secure) to WS. Employ HAProxy to route WebSocket traffic to Node.js and web traffic to Nginx since Nginx doesn'
During my paternity leave, I built an in-memory hashmap in Go, Python, and C to explore implementing an alternative to memcached and to challenge my programming skills across these languages. Each version supports the essential `get` and `set` commands from the memcached protocol, allowing it to work with a memcached client. The code is available on GitHub as Key-Value-Polyglot, and I've actively
Credit card numbers that conform to the Luhn formula (MOD 10 check). Usefull for testing e-commerce sites (because they should get past any pre-validation you do, and be declined at the card processor or bank stage). In testing situations any expiry date within the next 3 years should work Feedback forces me to clarify this: These are NOT valid credit card numbers. You can’t buy anything with thes
このページを最初にブックマークしてみませんか?
『darkcoding.net』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く