Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mpetrov
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Huerainbo – turn your Hue lights into a rainbow from a web app
(github.com)
4 points
by
mpetrov
10y ago
|
0 comments
2.
▲
by
mpetrov
12y ago
Also just putting a space in front of https:// works, the script tag handles the leading space just fine.
3.
▲
by
mpetrov
12y ago
Wouldn't Soylent eventually add some flavouring to make it less utilitarian/boring? It's still the first version of the product and it seems that the author doesn't even consider the possibility that there would be varia
4.
▲
by
mpetrov
12y ago
This: https://map.couple.me We kept the design simple, otherwise a "batching" mechanism could be introduced that would replay a single batch of 50 messages but that would make everything a second delayed. However, part
5.
▲
by
mpetrov
12y ago
I tried using faye and it died very quickly under load with the redis backend. For every message that you send it queues it up into a redis list for each faye server in the cluster to read which doesn't scale very well in their very ch
6.
▲
by
mpetrov
12y ago
Sticky load balancing was a deal breaker for us when we built the https://map.couple.me visualization with socket.io. At the last minute I just pulled older browser support and left it with raw websockets instead of socket.io be
7.
▲
by
mpetrov
12y ago
Good catch! There is a small variation depending on the server that you hit but the variation should never be more than 1,000 messages. It's just a side effect of how we're scaling the system.
8.
▲
by
mpetrov
12y ago
It's the geographic center of Canada, that's the coordinate that the geo-ip database gives us back when no specific city is available. Works well for smaller countries, but in Canada it's quite visibly "off" :)
9.
▲
by
mpetrov
12y ago
Those data points appear as circular flashes without a line, there are quite a few of them there. The app appeals to a lot of long distance Couples so the map is somewhat biased towards long distance communication. Also if you look at big c
10.
▲
by
mpetrov
12y ago
That's pretty much exactly what's happening with some locations. We do our best to get an accurate location based on a few sources, but ultimately Maxmind is the database we fall back to for pure IP based location if that's a
11.
▲
by
mpetrov
12y ago
We're planning to do a larger tech focused write-up on this infographic soon. On the backend it's powered by Node and Redis and runs within an EC2 auto scaling group. Let me know if I can elaborate on any of the tech behind this v
12.
▲
by
mpetrov
12y ago
We're planning to do a larger tech focused write-up on this infographic soon. On the backend it's powered by Node and Redis and runs within an EC2 auto scaling group.
13.
▲
Show HN: live map infographic of activity in Couple using Canvas and WebSockets
(map.couple.me)
7 points
by
mpetrov
12y ago
|
1 comments
14.
▲
by
mpetrov
12y ago
Keep in mind that you have to run this with OpenSSL v1.0.1 and above. Running it on a stock OS X Mavericks install will not detect the extension because v0.9.8 of OpenSSL is installed.
15.
▲
by
mpetrov
13y ago
The commentary on last example from Tarsnap seems wrong. The error was that the nonce stopped being incremented (see the linked Tarsnap blog post), but the author suggests the issue there is the unbraced if. The unbraced if is still not gre
16.
▲
by
mpetrov
13y ago
This will be awesome for terminating SSL closer to the user and should make a big impact on latency in mobile apps on high-latency connections. Combine that with a custom SSL certificate at all the edge nodes ($600/month) and this is a
17.
▲
by
mpetrov
13y ago
Nah, it was something between a lucky hunch and laziness. The backup plan was to test it an hour later when leaving the office for lunch but the restart worked. I actually realized it had to do with significant location changes early on sin
18.
▲
by
mpetrov
13y ago
I agree, the whole point of the logout bug is that the keychain is locked, and that happens for a reason. I came up with a different solution that worked great for us: Just pause the startup process of the app (in a non-blocking way) if acc
19.
▲
by
mpetrov
13y ago
At Couple, we found a much simpler solution to debug this exact same bug two days ago, and there was no driving needed: 1. Add lock code to your phone 2. Open the app without a debugger attached and start monitoring for significant location
20.
▲
by
mpetrov
13y ago
I also used Protocol Buffers in multiple projects and languages. One huge advantage was that I could serialize data in Objective-C on the iPad, stream it to a C++ server on a desktop, and then forward some of it to a Ruby plugin in a differ
21.
▲
by
mpetrov
13y ago
It would be great if this was supported along with key based authentication. Using the PAM method outlined here works only with password based authentication and the TFA is completely bypassed when a key is used. I researched this a few mon
22.
▲
by
mpetrov
14y ago
Sounds like it might be reserving space for the top status bar in a different orientation. Either this is a weird device specific bug or perhaps the author of the post launched Safari in a different orientation on one of the devices and the
23.
▲
by
mpetrov
14y ago
Exactly, there is just generally no need for it. It can be ok for prototyping because of the easy autolayout flags but at the end it just made sense to do the cells programmatically.
24.
▲
by
mpetrov
14y ago
All the cool stuff is fully programmatic. I think right now it's just the onboarding screens that are still using interface builder - they're simple and mostly remain static. One lesson though: do not use interface builder for table view ce
25.
▲
by
mpetrov
14y ago
We do it with a lot of custom code that responds to keyboard events, input text changes, etc. The underlying timeline is mostly UIViewController based but also does a lot of listening and responding to events all around it. We did try to us
26.
▲
by
mpetrov
14y ago
It was definitely not meant to be sarcastic :) we actually do have Android very close to being done and soon Pair will be cross platform! Sorry for any confusion :)
27.
▲
by
mpetrov
14y ago
We're working furiously fast to have Android ready ASAP. It's only a few weeks behind and is almost done. This is right now our #1 request, cross-platform relationships are in these days!
28.
▲
Pair (YC W12) is a Path for the Two of Us
(techcrunch.com)
212 points
by
mpetrov
14y ago
|
75 comments
29.
▲
by
mpetrov
15y ago
I actually have a 100% reliable solution that exploits the executable stack on level 04. No need to guess the address of the stack using one side effect that I found in this specific case: https://gist.github.com/807e81ad64c4e84a7770 (SPO
30.
▲
by
mpetrov
15y ago
For level 06, I came up with a completely different solution. After hitting my head against the wall all day trying to fight with blocking/non-blocking IO, I resorted to a timing attack on the system call which worked really well. Check it
More ›