Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
agf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
agf
10y ago
Then you should update your post to say that, rather than saying 2to3 didn't do anything to your code.
122.
▲
by
agf
10y ago
In addition to what you've pointed out, he claims that 2to3 didn't do anything to his code, and yet he had to fix print statements. 2to3 definitely fixes print statements; he likely didn't read the usage or docs at all. By de
123.
▲
by
agf
10y ago
True -- but assuming these passwords aren't stored the same (very, very wrong) way on another site, and they're no longer useful on Yahoo, what's important is finding the real password, not just a password that happens to mat
124.
▲
by
agf
10y ago
If it's a password so long and complex it wouldn't be in any rainbow table computable in reasonable time. While MD5 can be computed quickly, there is still a limit to how many you can compute -- and there are an infinite number of
125.
▲
by
agf
10y ago
I doubt it's a wage problem per se, it's that these are temporary, seasonal positions and it's not worth it for these employees to find a low-cost place for just a month, given the hours they'll likely be working.
126.
▲
by
agf
10y ago
I agree with what you're saying about "low ethical standards" -- many large companies fall into that bucket -- but you responded to a comment asking for more evidence with a reference to a "series of revelations" bu
127.
▲
by
agf
10y ago
I still get virus / malware emails from the AOL account of an IP lawyer I worked with in 2011 / 2012. Also a blast from the past every time.
128.
▲
by
agf
10y ago
I appreciate the lesson trying to be taught here -- don't be intimidated by what you don't know, develop a plan, and practice -- but I don't think the author chose good examples. For the LCM example, the second solution doesn
129.
▲
by
agf
10y ago
Like many similar articles, it seems to be missing the very important `next`. I understand it didn't actually gain underscores until Python 3, but it's still been part of one of the most important protocols in Python for many year
130.
▲
by
agf
10y ago
Do you have a good writeup of this problem? I've seen only scattered, anecdotal info about it.
131.
▲
by
agf
10y ago
If each person just guesses a random number you succeed the same amount of the time. You have a 99% chance of guessing wrong. The chance of 100 people guessing wrong is 0.99 ^ 100. So the chance of at least 1 person guessing right is 1 - 0.
132.
▲
by
agf
10y ago
Two points -- one, that's outside of the problem statement, so no, you can't use cryptography. Two, public-key cryptography uses an exact analogy of the physical-world method, so if you have access to a cryptographic solution you&
133.
▲
by
agf
10y ago
There isn't really an analogy here, it just seems like it. The apparent similarity between these two is due to there being multiple trips in both -- across the river in one, and through the mail in the other. But the reason for the mul
134.
▲
by
agf
10y ago
I think you're referring to this puzzle: http://datagenetics.com/blog/december12014/index.html The version you gave is missing information and so can't be solved as stated.
135.
▲
by
agf
10y ago
Re-read your scenario -- you have both box A and box C containing name B, but the problem statement says each name appears only once. So you can't get into cycles like this.
136.
▲
by
agf
10y ago
There are only two roads and one village, and the problem is to find out which of the roads lead to the village. Forget about "guarding" and the "truth village". If you ignore the random answerer for a second, then you a
137.
▲
by
agf
10y ago
Openly revealing how to factor large numbers without at least months of notice would definitely lead to many people getting stolen from. I'd bet it would also lead to people being killed, but possibly would save more lives than it co
138.
▲
by
agf
10y ago
I would send Bruce Schneier (or some other security expert) and encrypted message containing a good part of their private key, to convince them I was for real, then have them decide what to do. Just because I've figured out the math of
139.
▲
by
agf
10y ago
Yeah, we definitely need the full backtraces as we've significantly customized rails so seeing the full call stack is important. It's not seeing a long backtrace that bothers me, it's the callstack being that deep to begin wi
140.
▲
by
agf
10y ago
I can't post the actual backtrace, but looking at the most recent error email I received from a Rails app, the backtrace is over 300 calls deep. 50 New Relic, 50 ActiveRecord, 100 ActiveSupport, 50 misc Rails / Rack, and 50 everyt
141.
▲
by
agf
10y ago
The article: http://www.physics.nyu.edu/faculty/sokal/transgress_v2/trans... Sokal announcing the hoax: http://www.physics.nyu.edu/faculty/sokal/lingua_franca_v4/li... The resp
142.
▲
by
agf
10y ago
If your ORM doesn't know about transactions, that doesn't necessarily prevent you from wrapping your test runs in transactions. I was in a situation where I needed to start / rollback a transaction without ActiveRecord knowin
143.
▲
by
agf
10y ago
Thanks, I'm plenty good at math. The point of a graph is to display information visually -- minimal math should be required. If what you want is the numbers, then a graph doesn't help you -- use a table instead.
144.
▲
by
agf
10y ago
The primary purpose of the graph is to show relative timings, so I think it's important to make that clear. A logarithmic Y-Axis makes that really hard to judge. If you wanted to show absolute timings, then I would say a separate gra
145.
▲
by
agf
10y ago
This is an interesting article, and a "devector" is something I've never heard of or considered before, so I'll leave critique of the data structure itself to others. But I have some constructive criticism of how the dat
146.
▲
by
agf
10y ago
I found Childhood's End an extremely unpleasant read, and so that comparison makes it hard for me to even think about reading Seveneves. It was just so depressing, taking the concept of isolation to such an extreme it felt abusive. Or
147.
▲
by
agf
10y ago
That's given early in the article, but requires arbitrary precision arithmetic: Another method is to find a closed form for the solution of the recurrence relation. This leads to the real-valued formula: Fib(n)=(ϕn+1−ψn+1)/5‾√) wh
148.
▲
by
agf
11y ago
I'm not sure I understand this. If I were to observe the pattern before I reach the agent, it would be easy enough to let someone go ahead of me while pretending to finish a phone call or something. It doesn't require the cooperat
149.
▲
by
agf
11y ago
Of course. The point was just that this doesn't put it out of the range where a car would be "mass-produced".
150.
▲
by
agf
11y ago
I'm aware of that. My point was it's in a range in which a very large number of cars are sold; claiming this price range means it's not going to be "mass-produced" is stretching it.
More ›