Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eridius
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
80 ms
·
841.
▲
by
eridius
8y ago
Actually quite well. The fact that it's drag & drop is pretty irrelevant, except in that it's not something the interviewee has likely done before because it's not a very common thing to interrupt. What's more import
842.
▲
by
eridius
8y ago
Admittedly you do lose the convenience methods from UIPanGestureRecognizer (sure would be nice if Apple would add them to UILongPressGestureRecognizer too), but you can recover translation just by grabbing the location of the recognizer in
843.
▲
by
eridius
8y ago
Doesn't Multipath TCP already exist as a solution for this?
844.
▲
by
eridius
8y ago
You don't need to ban alcohol in order to punish someone for being visibly drunken or pawing at employees.
845.
▲
by
eridius
8y ago
Every previous instance of this particular scam I've seen mentioned before used a password that the recipient recognized. I personally received this exact email just the other day, containing a password that I confirmed I actually used
846.
▲
by
eridius
8y ago
Note how this email includes a password. This particular form of scam relies on taking weak passwords acquired from database dumps and sending the scam email to the password owner, in the hopes that they'll recognize the password and t
847.
▲
by
eridius
8y ago
FWIW I just filed a bug report with Apple requesting that Files support USB mass storage drives (rdar://problem/45899522). If you want to see this supported, I suggest you file your own report requesting this.
848.
▲
by
eridius
8y ago
The fact that iOS does not have support for generic storage devices has nothing to do with MFi. I do not understand why you think it does. It has everything to do with the fact that iOS simply never implemented support for them. Prior to th
849.
▲
by
eridius
8y ago
Maybe it's trying to be funny, but this article is the stupidest take on this issue that I've seen.
850.
▲
by
eridius
8y ago
Apple's SD card reader is a Lightning accessory. Of course it has MFi. But you can plug a generic USB SD card reader in to your iPad using Apple's Lightning to USB 3 Camera Adapter and that works just fine, even though the generic
851.
▲
by
eridius
8y ago
Agreed. About the only thing I do on top of it is add some operators for setting up AutoLayout, so I can write code like NSLayoutConstraint.activate([ label.topAnchor ≈ view.topAnchor, label.leadingAnchor ≈ view.leadingAncho
852.
▲
by
eridius
8y ago
This is not an issue with the split implementation. Split is behaving correctly (according to the defined semantics of String). You'd get the exact same issue if you said str.index(of: ",") instead; in both cases, the ",
853.
▲
by
eridius
8y ago
This is why I said "without quotes". The same issue happens if you write a parsing routine that handles quotes too of course, it was just a lot simpler to demonstrate it with a single split() line than a whole parsing loop.
854.
▲
by
eridius
8y ago
CSV is a machine-readable format. I've never heard of a machine-readable format that treats combining characters as significant when parsing syntax. Certainly the CSV format doesn't. Trivial proof: If it did, then it would be lite
855.
▲
by
eridius
8y ago
Unfortunately, since Swift's String implementation operates on grapheme clusters by default, a lot of parsing code people write is actually subtly broken in the presence of combining characters. As a trivial example, let's say the
856.
▲
by
eridius
8y ago
No it doesn't. await doesn't make asynchronous functions synchronous. It just changes how you write the code, not how the code itself works. Notably, await can only be used from inside an async function.
857.
▲
by
eridius
8y ago
MFi covers Apple's proprietary connectors, as well as certain Apple wireless protocols. It does not cover generic USB. If you want more proof, every since the iPad came out Apple has actually sold a USB-A port for the iPad, called a &q
858.
▲
by
eridius
8y ago
"they're likely locking down non MFI certified accessories" is not a fact. It's speculation. And the list of MFi licensed technologies does not include USB. So unless you're tunneling one of the existing MFi license
859.
▲
by
eridius
8y ago
As risky as ones that don't update automatically either. Just because a plugin doesn't update automatically doesn't mean it doesn't still have the capability of doing network access. Unless you're actually sandboxin
860.
▲
by
eridius
8y ago
Xcode has handled this for years. In Xcode, when autocompletion is presented, hitting Tab will complete the longest unique prefixed subword for the currently-selected tab item. If this results in only having one completion option left, then
861.
▲
by
eridius
8y ago
Zoning regulations are over a century old.
862.
▲
by
eridius
8y ago
Oops you're right, I completely screwed that up. Just shows how often I think about L-levels.
863.
▲
by
eridius
8y ago
So it sounds like the role worked primarily with Java? I guess I can see why IT for 6 years plus 3 years as a JS dev wouldn't really prepare you for that and why, as a result, you would get slotted into an SDE1 role (hopefully with the
864.
▲
by
eridius
8y ago
~~Correct, L4 is the same thing as SDE2.~~ EDIT: I completely screwed that up. L4–L6 map to SDE1–SDE3.
865.
▲
by
eridius
8y ago
This code has a significant and common flaw: If the token is cached, it invokes the handler synchronously. You should never design a function with a completion handler that sometimes invokes it synchronously and sometimes asynchronously. Th
866.
▲
by
eridius
8y ago
Most of what you describe sounds like applications that don't bother to use unicode-aware string manipulation routines, period, rather than applications that use buggy unicode handling.
867.
▲
by
eridius
8y ago
FWIW the C++ standard actually prohibits CoW strings, and any C++ standard library that implements CoW strings is doing so in defiance of the standard. AIUI this prohibition was completely accidental, and I believe it's due to the rule
868.
▲
by
eridius
8y ago
The unicode encoding formats are relatively simple and quite elegant (UTF-8 in particular manages to get an impressive set of capabilities with a relatively simple format). > I suspect that very few pieces of software that 'support
869.
▲
by
eridius
8y ago
It's rather dehumanizing to refer to woman as "females". Please don't do that.
870.
▲
by
eridius
8y ago
> it shows me where there's a public park I might visit Google's map shows a relatively tiny bit of land that it labels as the regional park. Apple Maps, meanwhile, highlights a much larger area that it gives the same label.
More ›