int a = 5;
a += a++ + a++;
I do remember that this particular code snippet (with a = 5, even) used to be popular as an interview question. I found such questions quite annoying because most interviewers who posed them seemed to believe that whatever output they saw with their compiler version was the correct answer. If you tried explaining that the code has undefined behaviour, the reactions generally ranged from mild disagreement to serious confusion. Most of them neither cared about nor understood 'undefined behaviour' or 'sequence points'. i = i + 1
How could that be a valid equation? How could i ever equal i + 1? He mentioned that he had asked the teacher about it and from what I could gather, my teacher and my father were talking past each other. The teacher probably tried explaining that it was not an equation but an instruction instead, whereas my father continued to interpret i = i + 1 as an equation due to the algebra he was so familiar with. It sort of held up the class for a while. javascript:(()=>{const u=new URL(location.href);[...u.searchParams.keys()].forEach(k=>{if(!['p','q'].includes(k)){u.searchParams.delete(k)}});navigator.clipboard.writeText(u.href)})();
Tested with the following URL: https://duckduckgo.com/?ia=web&origin=funnel_home_website&t=h_&q=hello+world&chip-select=search
The bookmarklet copies this cleaned version of the URL: https://duckduckgo.com/?q=hello+world https://example.com/?p=20&utm_source=spam
to: https://example.com/
when in fact we want the following: https://example.com/?p=20
A possible improvement can be: javascript:(()=>{const u=new URL(location.href);[...u.searchParams.keys()].forEach(k=>{if(k.startsWith('utm_')){u.searchParams.delete(k)}});navigator.clipboard.writeText(u.href)})(); $ curl -s 'https://httpbingo.org/get?' | jq .url
"https://httpbingo.org/get"
But on macOS + Bash/Zsh + curl 8.7.1: $ curl -s 'https://httpbingo.org/get?' | jq .url
"https://httpbingo.org/get?"
I see some related changes here: https://github.com/curl/curl/commit/3eac21d P(HT) = P(H)P(T) = p(1 - p)
But the question I am addressing is not just "what is the probability of HT?" It is "given that the two flips are different, what is the probability that the order was HT rather than TH?" P(HT | HT or TH) V(X) = the set of all URLs that point to Wander Consoles
and the set of directed edges is: E(X) = {(u, v) in V(X) : u declares v as its neighbour}
The traversal between consoles is not strictly a random walk. If I could call it something, I would call it randomised graph exploration with frontier expansion. On each click of the 'Wander' button, the tool picks one console at random from the set of discovered consoles and visits that console. It then fetches the neighbours declared by that console and adds any newly discovered consoles to the set. P(H) = p,
P(T) = 1 - p.
Then P(HH) = p^2,
P(HT) = p(1 - p),
P(TH) = (1 - p)p,
P(TT) = (1 - p)^2.
Therefore P(HT or TH) = 2p(1 - p).
Now calculate P(HT | HT or TH) = p(1 - p) / (2p(1 - p)) = 1/2,
P(TH | HT or TH) = (1 - p)p / (2p(1 - p)) = 1/2.
https://blogroll.org/
https://blogs.hn/ (by @surprisetalk)
https://hnpwd.github.io/ (I am one of the maintainers)
https://iii.social/ (by @freshman_dev)
https://indieblog.page/ (by @splitbrain)
https://kagi.com/smallweb/ (by @freediver)
https://marginalia-search.com/ (by @marginalia_nu)
https://minifeed.net/ (by @freetonik)
https://susam.net/wander/ (I developed this)
https://text.blogosphere.app/ (by @ramkarthikk)
https://wiby.me/
A clarification: The Wander link above (which I developed) is not something where you list your website. It is a tool you host on your website to become part of a decentralised network of personal websites (much like in a webring, except that the network is shaped like a graph rather than a ring): https://susam.codeberg.page/wcn/. More details here: https://codeberg.org/susam/wander