HNHacker News
TopNewBestAskShowJobs

yuubi

654 karma · joined September 1, 2013

submissionscomments
yuubi··on Vim Anti-Patterns (2012)
It seems to be more a function of the vi-like in use. Old-school vi behaved that way, but (at least some) vim interprets ESC [ A close together as a movement command.
yuubi··on Intel to Discontinue Itanium 9700 ‘Kittson’ Processor, the Last of the Itaniums
Not emacs (it means kill-region there, which deletes the text between the cursor and the mark and saves it in a holding area, fairly close to what windows does when you hit ^x, except the holding area is fancier).

This readline behavior follows a Unix tty driver. I'm not sure off the top of my head which one introduced it. I don't think it was on xenix but am pretty sure some 4.x bsd had it.

yuubi··on USB Type-C to Become More Secure with Authentication Standard
A real problem for some is that standardizing power adapters interferes with the sale of original manufacturers' adapters. The authentication mechanism looks to be designed to fix this revenue leak.
yuubi··on What Closing a Government Radio Station Would Mean for Clocks
You can see only about half the sky that way, which means usually getting almost as good a fix as with a roof mount antenna. For best results, you want the satellites to be as far apart as possible in the sky (measured by angle from your position, not miles between them). See https://en.wikipedia.org/wiki/Dilution_of_precision_(navigat... .

If you mainly care about time and can tolerate a few microseconds of error, usually being able to see 4 satellites might well be enough.

I remember seeing a gps receiver designed just for time that could maintain sync using only one satellite (it assumed that it was bolted to an immovable object, and it might have needed to see 4 satellites at once at some point).

yuubi··on C Portability Lessons from Weird Machines
I think we're talking past each other. I'm responding to the comment about the heuristic where for the most part trap (somewhere) means UB.

Maybe it's UB only because implementation-specified is too onerous and it didn't seem to be worth defining a bounded "unpredictable result" behavior.

yuubi··on C Portability Lessons from Weird Machines
It is an exception to the apparent pattern in which behaviors that trap on one of the early C targets were later declared undefined.

Given the standard, it's obvious why i=i++ is undefined: it modifies i twice between sequence points. The question is why it was "undefined" (in which the implementation is allowed to make demons fly out your nose) and not something like, say, the "unpredictable" that occurs in many architecture specs (in which the program behaves as if i had been set to something in particular, but with no requirement on which value it is: unchanged is ok, incremented is ok, 12345 is ok if i is wide enough to hold it, but silently failing to generate any code for statements that occur after the i=i++ isn't).

yuubi··on A future for fork(2)
Copy on write is for fork. Threads share memory, so you specifically don't want to CoW.
yuubi··on Introducing the Windows Pseudo Console (ConPty)
UTF-16 has a limit on the size of a code point because a code point is either a single normal code unit or a pair of surrogate code units, each encoding 10 bits of the code point (I think I used the right terminology). UTF-8 has a natural extension path to up to 7-byte encodings with all the usual UTF-8 properties (first code unit indicates how many remain, other code units are recognizable as not the first).
yuubi··on NSA posters from the 50s and 60s [pdf]
It looks like the sixth bit is used as rubout (even though per wikipedia, the 0x1f code, letter-shift, was normally used for that purpose).
yuubi··on Be careful what you copy: Invisibly inserting usernames into text
Arabic? I think the are cases where letters are joined or not by default, but sometimes need to be forced to the other state, depending on meaning that the text layout engine isn't expected to be able to figure out.
yuubi··on Danish numbers
Also, man doesn't work the same way as the lower powers of 10.

The lower powers 10–1000 take a prefix of 2–9 to multiply them, and omitting the prefix means one.

1 ichi

2 ni

10 juu (not ichi juu)

20 ni juu, literally two ten

100 hyaku

200 ni hyaku

The powers of 10000 seem to take an obligatory prefix 1–9999, formed the usual way (I've never heard just "man" for 10k, always "ichi man", and 12340000 would be literally translated to "thousand two hundred three ten four ten-thousand", while none of the smaller powers seem to ever take a prefix > 9.)

The above is based on not living in Japan, though, so the sample of numbers I've seen might well be missing some things that occur in actual native speech by someone not teaching a first-year class.

yuubi··on On the pleasures of stumbling upon books in the wrong places
Some libraries supposedly collect statistics on books used in the building, measured by counting books in the to-be-reshelved area, for use when lobbying for funding.
yuubi··on Companies are once again storing data on tape, just in case
A standard tape horror story is that the old drive ended up out of alignment and later died, then the replacement, same type, was aligned properly (or just differently) and couldn't read the existing tapes.
yuubi··on How Eve Players Pulled Off the Biggest Betrayal in Its History
Anything left in space will likely be destroyed or stolen. Anything in stations (ships, parts, materials, etc) and your cash will still be where you left them. If that's a player-owned station that changed hands while you were out, or you get kicked from corp for inactivity, you won't be able to dock to get at them, but you can try to firesale them (post a contract offer to sell the lot cheap), and likely someone with access to the station will buy.

Often people who are leaving will either have their assets moved somewhere they'll certainly have access to later or just liquidate (generally on better than firesale terms).

Citadels (like the keepstar that changed hands) work differently: you can get everything in a citadel moved to the nearest suitable npc station at the cost of 15% of its value and a 20-day wait, worst case (google "eve asset safety" for the full details).

yuubi··on The qmail security guarantee
I seem to remember that the installation directions included something to limit memory size, and trying to install without reading the directions would fail well before opening a listener port.
yuubi··on Falklands minefields: de facto nature reserves for penguins
I think a capybara's size is unusual for a rodent, but YMMV.
yuubi··on They Used To Last 50 Years
Refining iron or aluminum from ore takes significant energy because you're basically un-rusting it, and that reaction naturally runs the other way; recycled metal gets to reuse that energy investment.

I thought the glass process was basically melting sand and adding some trace additives, rather than forcing any chemical reactions uphill. Recycled glass also needs melted (if it doesn't, that's called a reusable bottle, not recycling).

yuubi··on R Passes SAS, but Python Leaves Them Both Behind
> unaccountably

Maybe because in ASCII-63 the _ codepoint meant left-arrow (which was preserved in at least smalltalk systems much past the 60s)?

yuubi··on GitHub for Lawyers (2013)
That reminds me of "Common Draft", a collection of contract language apparently meant to be included by reference in a doc that specifies parameters.

An example usage: http://www.commondraft.org/#ConfKExpress

(I'm not sure how the reference is meant to work because I'm pretty sure commondraft.org has been edited since I saw it some years ago; maybe it's meant to copy whole sections and then include the specific details in a page like the one linked above?)

Note that the CC license mentioned in the header isn't actually useful except to lawyers: it contains the noncommercial restriction with separate special permission for most uses by licensed attorneys (looks intended to prevent non-attorneys from actually using anything there in transactions).

yuubi··on Some DNS lookups causing 5xx errors due to leap second bug
CDMA system time is already defined as free of leap seconds.

---

3GPP2 C.S0002-A section 1.3 "CDMA System Time":

All base station digital transmissions are referenced to a common CDMA system-wide time scale that uses the Global Positioning System (GPS) time scale, which is traceable to, and synchronous with, Universal Coordinated Time (UTC). GPS and UTC differ by an integer number of seconds, specifically the number of leap second corrections added to UTC since January 6, 1980. The start of CDMA System Time is January 6, 1980 00:00:00 UTC, which coincides with the start of GPS time.

System Time keeps track of leap second corrections to UTC but does not use these corrections for physical adjustments to the System Time clocks.

---

I'm pretty sure the only use of leap seconds in CDMA is for converting system time to customary local time, along with the daylight-time indicator and time-zone offset also contained in the sync channel message.

Edit: C.S0005-E section 2.6.1.3 says the mobile station shall store most of the fields of the sync channel message; it may store leap second count, local time offset, and daylight time indicator. This suggests that these fields aren't really that important for talking CDMA.

yuubi··on Update on Multi-Process Firefox
If the cert is revoked, the revocation notice only needs to be published until the expiration date instead of forever.
yuubi··on Millennials Are Fine Without Fabric Softener; P&G Looks to Fix That
Under 50.

Used "Terro Ant Killer II", which is syrup that contains borax and works about as well as the original formula that contained arsenic.

yuubi··on Intel x86 documentation has more pages than the 6502 has transistors
Sounds like someone meant to use CR1 after CR0, but someone bit-swapped the CR-number bus so you have to encode 4 in the instruction to get 1 where it needs to go.
yuubi··on Oh right, about those LEDs
> "What do you mean? You can have any bin mentioned on the spec sheet."

Reminds me of the ancient story of the electronics manufacturer that sourced some resistors or whatever from Japan for the first time. The spec called for max 1% bad parts or whatever. When the parts arrived, the box contained a packet with a note that said something like "Thanks for your order. We are unsure why you want 1% defective parts, but for your convenience, we have packaged them separately."

yuubi··on Hammercoin – A Bitcoin-fueled game
Think of it from the player's point of view. If you send someone not-quite-trusted or of fallible security $10 worth of btc, then the worst that can happen is you never see it again. If you give them your cc (or worse, debit card) number, then there's a chance of unauthorized charges to deal with later.
yuubi··on Don’t Mess with The Google
At the time, before browsers were standard equipment, ftp was a normal way to obtain software. There were gui ftp clients available at the time, but I have no idea how people usually got those (whether dialup bbs, downloading with the bundled default ftp utility, passed on a disk by a friend, or bought on a disk).
yuubi··on Don’t Mess with The Google

    ftp ftp.netscape.com
yuubi··on Safer to Puff, E-Cigarettes Can’t Shake Their Reputation as a Menace
In practice, there's often no useful difference between a thin cloud of vile-smelling smoke and a thick cloud of fruity-smelling vape: many people would prefer to avoid both. (Also, the vape cloud leaves much more residue than smoke did, just much less foul). Best policy seems to be to use the things only where actual smoking is allowed to try to avoid annoying bystanders.
yuubi··on Safer to Puff, E-Cigarettes Can’t Shake Their Reputation as a Menace
And the one person I know who had tried various ways to quit over the years got a vape set, tapered down gradually to no cigarettes over about 6 weeks (I think on day 1 she only had half a pack instead of her usual ≥ 1 pack habit), and hasn't had an actual cigarette in over 2 years. Different people seem to respond better to different approaches.
yuubi··on Total Nightmare: USB-C and Thunderbolt 3
The default condition of cables is that they can conduct much more current than is safe, and it takes extra effort to limit this. (Yes, there's a limit to what you can put through a wire, but it's enough to melt the metal, and you wasn't too avoid softening the plastic around it.) If you put twice the rated current through a cable, the conductors will handle it just fine. However, the resistance of the wires will dissipate 4× the power the insulation is designed for (twice the current times twice the voltage drop), and the inside of the isolation will get somewhat warmer. How much of a problem this is in real life depends on the ambient temperature, the thermal conductivity of the insulation, jacket, and wire, the temp the plastics can withstand, etc.

The safe thing is to use wire from a vendor that rates it honestly to conservatively, and start within the ratings.

← PreviousPage 3 of 8Next →