TCP/IP packets and datagrams

You are getting caught up in the details … packet and datagram are not exactly well defined terms. I also think that you are also looking at things backwards. In a conventional network: the link layer (e.g., 802.3 “Ethernet” or 802.11 “Wi-Fi”) presents frames to the network layer (e.g., IP, ICMP) The network layer assembles the frames into packets which are passed on to the next layer … Read more

Java: Not a statement

Java restricts the types of expressions that are allowed in so-called “expression statements”. Only meaningful expressions that have potential side effects are allowed. It disallows semantically meaningless statements like 0; or a + b;. They’re simply excluded from the language grammar. A function call like foo() can, and usually does, have side effects, so it is not a meaningless statement. … Read more

When should one use a ‘www’ subdomain?

There are a ton of good reasons to include it, the best of which is here: Yahoo Performance Best Practices Due to the dot rule with cookies, if you don’t have the ‘www.’ then you can’t set two-dot cookies or cross-subdomain cookies a la *.example.com. There are two pertinent impacts. First it means that any user … Read more

Why am I getting “Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute”?

you are getting this because you are using a resource from another site and that server is attempting to set a “cookie” but, it does not have the SameSite attribute set, which is being reported in newer versions of browsers. this (may) also be shown if you are trying to access the server page from local computer … Read more

In the Fibonacci sequence, is fib(0) 0 or 1 ?

You’re correct. The Fibonacci sequence is formally defined with seed values fib(0) = 0 and fib(1) = 1. This is a requirement for the rest of the sequence to be right (and not offset by one or anything). In mathematics, the Fibonacci numbers, commonly denoted F_n, form a sequence, called the Fibonacci sequence, such that each number is the sum … Read more

Systrace for Windows

WinDbg’s Logger.exe is the closest to strace: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/logger-and-logviewer EDIT: There’s also windbg’s wt: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/wt–trace-and-watch-data-

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)