HNHacker News
TopNewBestAskShowJobs

xjay

424 karma · joined October 24, 2015

submissionscomments
xjay··on You Don't Need HTML
Can also try saving the file with a UTF-8 BOM. [1]

BOM > HTTP charset > HTML meta charset

[1] https://www.w3.org/International/questions/qa-html-encoding-...

xjay··on You Don't Need HTML
A byte-order mark (BOM) would have the highest priority. [1]

BOM > HTTP charset > HTML meta charset

Also works for local files (not served over HTTP).

> You could skip the meta encoding declaration if you have a BOM, but we recommend that you keep it, since it helps people looking at the source code to ascertain what the encoding of the page is. [1]

[1] https://www.w3.org/International/questions/qa-html-encoding-...

xjay··on Location history data in Google Maps will soon be stored on user devices
See also data sent to supl.google.com (Android default).

> SUPL is used as part of the A-GPS (Assisted GPS) system to get a faster Time to First Fix. The problem is that Android's implementation automatically sends the IMSI (ID of the SIM card) to the SUPL provider for no apparent reason. And because Google is the default provider it's a big breach of privacy. [1]

[1] https://github.com/Magisk-Modules-Alt-Repo/supl-replacer

xjay··on Invisible Bunnies That Power World of Warcraft (2017)
The battleground, Strand of the Ancients, was originally started using two invisible NPCs that were hostile to each other; one on each faction's boat and dock. The first boat/NPC to reach the dock would trigger a spell/script when in proximity, starting the first round. [1]

[1] BlizzCon 2016 - WoW Engineering Panel https://www.youtube.com/watch?v=W1y2fdDeSbU&t=227s

xjay··on We investigated France's mass profiling machine
Related: The AI Incident Database [1]

> The AI Incident Database is dedicated to indexing the collective history of harms or near harms realized in the real world by the deployment of artificial intelligence systems. Like similar databases in aviation and computer security, the AI Incident Database aims to learn from experience so we can prevent or mitigate bad outcomes.

[1] https://incidentdatabase.ai/

xjay··on We investigated France's mass profiling machine
Indirection is the root of all manipulation.
xjay··on Retinal cells that help stabilize our world view
Speaking of world view/perception, after exclusively using a curved monitor for a couple of months, I switched back to a flat monitor, and it appeared curved for a week or so.
xjay··on How to Shuffle Songs? (2014)
Rob Pardo (Blizzard, World of Warcraft (2004)) said they decided to model randomness after how players thought it worked.

> ..at least once a week, a developer would come to my office, and say "the random number generator is broken, we need to look at it."--It's because they hit a streak. [1]

[1] https://www.youtube.com/watch?v=FhC0NaB6ock&t=2343s

He shares more details about game design choices in the video.

xjay··on U.S. FCC says new rules will curb SIM swapping
They'll get a government-issued ankle monitor/smartphone..
xjay··on Double-Checking Dawkins (2007)
Related to The Blind Watchmaker: Richard Dawkins wasn't happy with Apple Writer, so he spent close to a year writing his own word processor [in assembly], called "Scrivener", which he then used to write that book.

https://www.youtube.com/watch?v=9DEe4QEuOSw&t=1074s

He said he would have written 20 books if he hadn't taken up computer programming:

https://www.youtube.com/watch?v=gQp1QaW_onk

xjay··on Why Is It So Difficult to Map the Ocean?
Somewhat related: Earth Gravity Map, GOCE, European Space Agency (ESA)

Visualized: https://www.youtube.com/watch?v=d4E5T9PSbo0

> ESA's Earth Explorer GOCE mission was dedicated to map Earth's gravity with unrivalled precision and provided the most accurate model of the 'geoid' ever produced to further our understanding of how Earth works. After more than four years in orbit, the mission came to a natural end on 11 November 2013, but the wealth of data from GOCE continues to be exploited to improve our understanding of ocean circulation, sea level, ice dynamics, Earth’s interior and climate change.

GOCE: https://www.esa.int/Applications/Observing_the_Earth/FutureE...

xjay··on Anything longer ago than yesterday should just say the actual date
If they used absolute <time> the browser could format it to our preference (which varies).

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...

xjay··on The great American eye-exam scam (2019)
Another view of what a utopia/golden age might look like:

> "1893. When a series of suicides were vigorously discussed in United Kingdom newspapers, critic William Archer suggested that in the golden age* there would be penny-in-the-slot machines by which a man could kill himself." [1]

*"'Golden Age' denotes a period of primordial peace, harmony, stability, and prosperity." [2]

[1] https://en.wikipedia.org/wiki/Euthanasia_device#Suicide_boot...

[2] https://en.wikipedia.org/wiki/Golden_age

xjay··on C and C++ prioritize performance over correctness
C = Control

I think in the world of C, the compiler assumes the author knows what they're doing, and historically, you were probably supposed to use a separate tool, a linter [1] (static analysis tool), to help catch mistakes.

HN's hard disks were a recent (2022-07) victim of a firmware developer's lack of understanding of integer overflow exceptions. [2] The firmware was likely written in C, or "C++ C". A fix was released in 2020. Another reminder to update the firmware of these disks. [3]

++crash;

[1] https://en.wikipedia.org/wiki/Lint_(software)

[2] https://en.wikipedia.org/wiki/Integer_overflow

[3] https://www.thestack.technology/ssd-death-bug-40000-hours-sa...

xjay··on Learning produces a hippocampal cognitive map in the form of a state machine
2020-12: Some research done with human subjects regarding how the brain reacts when we're reading code.

> The researchers saw little to no response to code in the language regions of the brain. Instead, they found that the coding task mainly activated the so-called multiple demand network. This network, whose activity is spread throughout the frontal and parietal lobes of the brain, is typically recruited for tasks that require holding many pieces of information in mind at once, and is responsible for our ability to perform a wide variety of mental tasks. [1]

[1] https://news.mit.edu/2020/brain-reading-computer-code-1215

xjay··on Tracing the roots of the 8086 instruction set to the Datapoint 2200 minicomputer
In the context of a CPU's memory model, I wouldn't call it style because a byte--as an abstract term for the smallest addressable unit--is subdivided into nibbles (digits), where the size of a nibble dictates what base makes sense.

A 9-bit byte is subdivided into three 3-bit nibbles/digits (2^3=base-8) [000, 777].

An 8-bit byte (octet) is evenly subdivided into two 4-bit nibbles/digits (2^4=base-16) [00, FF].

In documentation--given that the majority of computers use 8-bit bytes--the base we choose to represent 3-bit fields is a separate topic, and could be called style.

xjay··on A new attack can unmask anonymous users on any major browser (2022)
Disable automatic updates in this case (Windows).

When an update is applied between the first and second profile process, any new tab won't do anything in any of the instances. Firefox likely still doesn't detect this state.

Edit: That is, if you use Firefox with two or more profiles, and may start one profile later (after a new update was published).

xjay··on Local License Key Verification
One issue with showing the name today, are customers who start their (legally licensed) software live on stream, (unintentionally) displaying their real (full) name, serial number, etc.
xjay··on Brains speed up perception by guessing what's next (2019)
There is something similar in Daniel Kahneman's book Thinking, Fast and Slow.

In my words, 1) The sender asks "how many X are there" (assuming that the recipient also knows that the answer is a large quantity). The recipient's mind indirectly loads and caches the concept of a large quantity. 2) The sender changes the "discussion point" to something different that also involves a quantity, however, because the original impression of the first quantity lingers, their perception may now be skewed.

Link to one such example: Studying Machine Intelligence with Been Kim - #571

https://www.youtube.com/watch?v=C8SuqeH_Mg0&t=755s

xjay··on Decreasing the number of memory accesses
Other optimization awareness resources:

> This series of five manuals describes everything you need to know about optimizing code for x86 and x86-64 family microprocessors, including optimization advices for C++ and assembly language, details about the microarchitecture and instruction timings of most Intel, AMD and VIA processors, and details about different compilers and calling conventions.

> Operating systems covered: DOS, Windows, Linux, BSD, Mac OS X Intel based, 32 and 64 bits.

https://agner.org/optimize/#manuals

xjay··on The Cornell University Witchcraft Collection
..and the consequences: "Witchcraft beliefs around the world: An exploratory analysis [2022-11]"

> Country-level variation in the prevalence of witchcraft beliefs is systematically linked to a number of cultural, institutional, psychological, and socioeconomic characteristics.

> Among the documented potential costs of witchcraft beliefs are; disrupted social relations, high levels of anxiety, pessimistic worldview, lack of entrepreneurial culture and innovative activity.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9683553/

xjay··on Show HN: Counter – Simple and free web analytics
This is a never-ending problem with web applications that use so-called "routing" (where the client is made to make connections to a variety of URLs, which gets blocked if the URL contains "ad" or similar).
xjay··on “Clean Code, Horrible Performance” Discussion
Hardware may perform more operations per second, but inefficient software remains inefficient, and it's still wasting roughly the same amount of energy as it did on slower hardware, and waste only accumulates, skewing the performance of the rest of the system. That inefficiency gets multiplied by millions or billions of units worldwide that run this software.
xjay··on “Clean Code, Horrible Performance” Discussion
I know that the original "MVC guy" and "Bob's nemesis" :^) have been looking into making human comprehension the main goal of a new programming language, "trygve", named after Trygve Reenskaug (MVC).

https://en.wikipedia.org/wiki/Data,_context_and_interaction

xjay··on I spent a week without IPv4 to understand IPv6 transition mechanisms
The sad part to me is that the original IP header included variable-length addresses up to 128 bits, using two 4-bit fields called Source Address Length (SAL), and Destination Address Length (DAL). [1]

Early hardware implementations could have settled on 32-bit, but 48-bit would make more sense to be in line with EUI-48/MAC-48 (ethernet frame). The world could then gradually upgrade hardware over the decade to handle a larger address.

[1] https://www.rfc-editor.org/ien/ien28.pdf

xjay··on All you may need is HTML
I noticed the web site has a downloadable font, which is fine as long as it's optional, the problem is that many web sites have the bad practice of using the private unicode range for icons. Now the web site has become an accessibility problem. Downloadable fonts are optional, and there is no fallback mechanism like we have with img and alt text.

I'll happily lump JavaScript in as a major accessibility concern. JS is most often used where it shouldn't (most recent in memory is the Unreal Engine docs). Using JS for such simple presentations is like building a 5000-story building to print a sheet of paper, when all you needed was the pre-printed sheet of paper (HTML, CSS).

xjay··on Null References: The Billion Dollar Mistake (2009) [video]
Not to forget that classic increment of a signed integer waiting to overflow and trigger an exception on some critical (unpatched) hard disk drive controller out there..

  ++countdown;
xjay··on Unicode 15.0 Slide Show
The private unicode range is often used for icons on many web sites, but downloadable fonts are considered optional on the web, so we're left with unintelligible hex codes instead, at which point we've regressed to a pre-accessibility era when images typically didn't come with alt text, but at least there was a fallback mechanism.
xjay··on Is artificial light poisoning the planet?
A safety reflector or other high-visibility clothing is a passive method for sending light back at the driver.

https://en.wikipedia.org/wiki/Safety_reflector

xjay··on Is artificial light poisoning the planet?
These days we'd tap into the cell phone network/radio waves to track pedestrians. It's the modern safety reflector or high-visibility clothing.

Are you not carrying your phone with you? Well, "it would be a shame if something happened to you."

← PreviousPage 2 of 5Next →