dolinsky

Joined 17 years ago

Karma
854
Submissions
210
Member since
May 8
I like to create things I want to use. NYC.

[email protected] twitter.com/dolinsky www.decantr.com

View on Hacker News

Recent submissions

Comment · 3 years ago
Comment · 7 years ago
Comment · 8 years ago
"It depends"

As someone who has gone through this for some 20 yrs, it's usually a faster commute to travel from Hoboken to pretty much anywhere along/south of the PATH line during peak hours (so 34th down to the southern tip of Manhattan) versus a starting point of the UES/UWS (which is where the comparable housing exists).

My commute from Hoboken to various startup locations in NYC was consistently ~45 minutes door to door, versus an hour for my friends on the UES/UWS.

Comment · 8 years ago
forgiveness > permission
Comment · 10 years ago
What's common isn't necessarily a good practice to follow - https://google.github.io/styleguide/pyguide.html#Imports

By importing a function and assigning a 1 char alias to it, the readability of the code is impacted.

Comment · 12 years ago
An A for effort considering it's an April Fools joke.
Comment · 12 years ago
If that were the case then wouldn't a more appropriate solution be to lock commenting altogether after a particular time since thread creation (or an expiry after falling off of the front page?).
Comment · 12 years ago
Fall back - spring ahead
Comment · 13 years ago
> Tags point to branches, but they don't get updated.

Did you mean to say tags point to a commit?

Comment · 13 years ago
remote branches can also be achieved with one flag by using `-r` ( git branch -r ). Neat note about the reasoning behind stash.
Comment · 13 years ago
I assume you're referring to the use of the different flags?

For the latter two, no disagreement there. For the former two, there is a difference between returning a verbose response within the context queried and expanding the inclusive parameters of the query. 'git remote -a' makes no sense as all remotes are equivalent (there is no such thing as a local remote).

Comment · 14 years ago
To clarify (and answer @sureshv), Varnish allocates one worker-thread per session (active connection), but those threads are pooled by the managed thread pool @sureshv referred to. It's recommended to leave the thread_pool value at 2 and scale the thread_pool_min and _max values to suit your traffic.

As for the handling of the websockets, setting the pipe_timeout variable in the vcl file would release any persistent, yet silent, connections.

Comment · 14 years ago
Overall I enjoyed reading the article and the specific tradeoffs you had to consider when comparing Riak to Mongo for your specific use cases. I'm curious if you had any problems w/r/t the 3 items you highlighted above when using Mongo, as none of those were mentioned in the linked article.

(these points are for MongoDB 2.0+)

1. Adding a new shard in Mongo will cause the data to be automatically rebalanced in the background. No application-level intervention required.

2. Node failure (primary in a RS) is handled without intervention by the rest of the nodes in the cluster. Network partitions can be handled depending on what the value set for 'w' is (in practice it's not an isolated problem with a specific solution).

3. Using mongos abstracts the need to know what node any data is on as each mongos keeps an updated hash of the shard keys. Queries will be sent directly to the node with the requested data.

Comment · 14 years ago
Indeed it does.

curl -I http://oink-prod.s3.amazonaws.com/cristina-export.zip

    HTTP/1.1 200 OK
    x-amz-id-2: gIfqnrhzuVR2HJIhT8Msk37Pp96qabi6Amtq6ZG9makBlT/d5z+bYivF27tac16v
    x-amz-request-id: 9A1C02D63152317A
    Date: Fri, 16 Mar 2012 17:47:27 GMT
    Last-Modified: Fri, 16 Mar 2012 06:09:58 GMT
    ETag: "6326a2bc6724b1566530f34f5d96bf26"
    Accept-Ranges: bytes
    Content-Type: application/zip
    Content-Length: 212717
    Server: AmazonS3
Wouldn't take much for someone to whip up a script to parse the search results to build a list of usernames to bounce off of. There's also a fair amount of item-specific data too.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton