Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajanuary
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
271.
▲
by
ajanuary
12y ago
Absolutely. I wasn't really clear. I didn't mean it needs an explanation of hashing. I meant there needs to be some short answer to the question of "if they can't pull out my password, how do the check it?" I don&#x
272.
▲
by
ajanuary
12y ago
That's a pretty technical explanation. I think something like this would suffice: > If the website can pull out your password to show it to you, an attacker can pull out the password to steal it. As ever, the issue is explaining has
273.
▲
by
ajanuary
12y ago
I agree; this point shouldn't be about password reset emails being more secure, it should be about the fact you don't need to be able to email them their password to have a successful account recovery process. That said, it can be
274.
▲
by
ajanuary
12y ago
Swap to use a slightly faster function someone else already wrote, or rewrite your code. Seems like the latter is more guilty of premature optimisation if this library is fast enough for the particular use.
275.
▲
by
ajanuary
12y ago
I'm assuming the context of the question is "People say they see it replacing C++ all the time". People actively want a C++ replacement, and a lot of the features of Rust specifically target the pain points of C++. The pain p
276.
▲
by
ajanuary
12y ago
From TFA: native functions often have to cover complicated edge cases from the ECMAScript specification [...] By optimising for the 99% use case, fast.js methods can be up to 5x faster than their native equivalents.
277.
▲
by
ajanuary
12y ago
It would be nice to have an endpoint to get a list of teams, though I guess that data is pretty static.
278.
▲
by
ajanuary
12y ago
The preview dialog is useful, but the default option for the delimiter could be guessed and the preview dialog used to confirm it.
279.
▲
by
ajanuary
12y ago
There is RFC4180, but that came way after people were using it in lots or ways incompatible with the spec, so it isn't a huge help when paraing arbitrary files. I'd recommend following it if you're generating files though.
280.
▲
by
ajanuary
12y ago
Most of the speed comes from only parsing a frequently used subset of ISO8601. For a core library, you probably want a more complete implementation.
281.
▲
by
ajanuary
12y ago
I'm not much of a regex wizard, but I tried to add all the features listed other than parsing the result and creating the datetime object. iso_regex = re.compile('([0-9]{4})-?([0-9]{1,2})(?:-?([0-9]{1,2})(?:[T ]([0-9]{1,2})(
282.
▲
by
ajanuary
12y ago
RFC3339 makes most of the fields mandatory, while this library leaves them optional, so it is more accurately a subset of ISO8601 than an implementation of RFC3339. That said, you could describe it as an extension of RFC3339.
283.
▲
by
ajanuary
12y ago
The library has the following features your regex is missing: * Every part from month onwards is optional * Separator characters are optional * Date/time separator can be a space as well as T * Timezone information * Parsing the string
284.
▲
by
ajanuary
12y ago
Before ARC they used manual reference counting. At runtime each object has a count of how many things have declared they have a reference to it. You can increment that count by doing [obj retain] whenever you know you're keeping a refe
285.
▲
by
ajanuary
12y ago
Talking from a practical standpoint, to try and have GET requests with large parameters you could put the data in the message body, and then a hash of the message in the URL to avoid caching issues.
286.
▲
by
ajanuary
12y ago
For new developers, or for developers coming from other languages? I think a lot of the trouble people have with starting to develop apps for Apple platforms actually comes from trying to figure out the APIs and style, while at the same tim
287.
▲
by
ajanuary
12y ago
That's always been the intuition. If swift maintains a distinct Objective-C style but with more approachable syntax, then that suggests the intuition is true.
288.
▲
by
ajanuary
12y ago
Games make easy examples because you can do a simple render loop and input. Most people understand the concept of sprites and basic animation. Apple's UI frameworks are all MVC based, which means multiple classes and apple specific UI
289.
▲
by
ajanuary
12y ago
This being the only code sample of swift I've seen, my overriding takeaway is that for the basic stuff it's remarkably similar to Objective-C with a lick of paint. If people really take to swift, it'll be interesting to see i
290.
▲
by
ajanuary
12y ago
I was around here a good long while with shadowdead visible and saw his comments before I read anyone talk about him. Which is to say that as much of a part of the community and it's history as he is, I would expect most of his posts w
291.
▲
by
ajanuary
12y ago
The context of this sub-thread is on the iPhone you can just double tap the top of the screen to scroll to the top quickly. Which is all about browser chrome.
292.
▲
by
ajanuary
12y ago
I said tap the _bottom_ of the screen, not the top.
293.
▲
by
ajanuary
12y ago
It's a rap genius annotation. If you click it with javascript enabled, an annotation will pop up on the right hand side. Looks like on the main site it's designed to degrade gracefully so it just navigates back to the article itse
294.
▲
by
ajanuary
12y ago
What then? You tap the bottom of the screen to bring up the chrome instead.
295.
▲
by
ajanuary
12y ago
There's already a precedent for this on HN with scribd for pdf links.
296.
▲
by
ajanuary
12y ago
You can jump to the top of most native iOS scrollable content, including web content in Mobile Safari, by tapping the system bar at the top of the screen
297.
▲
by
ajanuary
12y ago
Also tapping the bottom of the screen reveals the chrome, which is really useful for not losing your place.
298.
▲
by
ajanuary
12y ago
So what if I have to repeat the navigation markup 8 separate times? It’s not that hard. We used to do it for much larger sites! I would still be tempted to use a static site generator for it. You can always hand over the compiled
299.
▲
by
ajanuary
12y ago
Server sends 'so' Receiver receives 'sho' Receiver sends back 'sho' Sender receives 'sho', compares it to the 'so' it thought it sent, and correctly deduces something went wrong in the commu
300.
▲
by
ajanuary
12y ago
If the drunk transformation is 's' -> 'sh' Sender sends 's' Receiver receives 'sh' Receiver sends back 'sh' Sender receives 'shh', compares it to the 's' it thought it
More ›