1,209 karma · joined Oct 9, 2014 (12y ago) · 333 submissions
comment 8y ago · link · parent
comment 8y ago · link · parent
I am sure english will remain the dominant language for a while but I wonder if it makes sense to start learning new (human) languages just to open up the number of communities you can learn from?
comment 8y ago · link · parent
You can't have the rate of publication be a logistic function and the cumulative publication be a logistic function. The derivative(i.e., rate) of the logistic function should be 0 at both tails which isn't S-shaped anymore.
comment 8y ago · link · parent
https://www.reddit.com/r/IAmA/comments/49jkhn/im_bill_gates_...
https://www.reddit.com/r/IAmA/comments/5whpqs/im_bill_gates_...
comment 8y ago · link · parent
Do you have links (or just keywords) to learn more? Will I need to add something like Cloud Pub/Sub to my stack? https://cloud.google.com/solutions/using-cloud-pub-sub-long-...
This is more complicated than I imagined so I am not sure the cost saving will still work out (factoring in development time and extra code maintenance cost).
comment 8y ago · link · parent
You can argue that the user can upload anything using the original api anyway. But in the original case you can do server-side validation before the upload is proxied. I am thinking stuff that are domain specific like only allowing videos that are 6 seconds long or something.
You can move the validation to the client but the client can be easily modified. An actual user might not do this but someone trying steal your storage space (for serving malware or something) might?
These signed urls also seem to expire based on time so you can potentially save the url and upload again later if you allow generous expiration. (again, not really something I see being a huge problem)
But I guess these aren't really serious issues compared to the cost savings. Am I missing other ways this can be exploited?
I am looking into the GCS version, not S3, if that matters: https://cloud.google.com/storage/docs/access-control/signed-...
comment 8y ago · link · parent
How do you make sure the company won't just take your advice and hire a guy to do this for 90k/yr instead of letting you work on it for three weeks?
comment 8y ago · link · parent
- Each value generates a sequence of coin flips
- Count the number of consecutive heads until you hit your first tail
- Take the longest streak amongst all your values, call it n
- Report 2^n as your estimate
This works because if you only have a few people flipping, you won't get a lot of long streaks.
But if you had lets say 1024 flippers, you expect to see one person flip 10 consecutive heads.
Coins flips here are just the bits generated by hashing the value so each coin flip sequence will be the same for each value.
comment 8y ago · link · parent
I have been using reddit for probably a decade now but don't remember ever clicking an ad. OTOH I typically misclick on a few links before I get my download when visiting pirate sites even with adblock on.
comment 8y ago · link · parent
Conceptually hyperloglog should be really simple (count leading zeroes) so I wasn't sure what there was to "maintain".
Looking at the citus repo it seems like they made a lot of interesting improvements to the original algorithm: https://github.com/citusdata/postgresql-hll
Interesting how fitting a simple theory work to the real world takes 3.3k lines of code.
comment 8y ago · link · parent
The privacy is worth it.
comment 8y ago · link · parent
EDIT: And theymos's reply with the other side of the story https://np.reddit.com/r/BitcoinMarkets/comments/6rxw7k/infor...
comment 8y ago · link · parent
comment 8y ago · link · parent
https://www.nytimes.com/2017/10/09/upshot/as-sexual-harassme...
https://www.nytimes.com/2017/07/01/upshot/members-of-the-opp...
comment 8y ago · link · parent
comment 8y ago · link · parent
There are actually a lot of other software engineers / freelancers on https://www.reddit.com/r/vandwellers/top/?sort=top&t=all. Like this engineer from Tesla: http://www.businessinsider.com/tesla-employee-lived-out-of-v...
I find the modding be really cool. But the stories of people getting killed/robbed at night like this Palo Alto tech worker scares me: https://www.reviewjournal.com/local/local-las-vegas/man-kill...
(Google campus would be a pretty ideal place to do this though)
comment 8y ago · link · parent
40" is roughly 1.5625 times in area of a than 32" though...
comment 9y ago · link · parent
Even just combining multiple still photos to produce a higher resolution photo is itself a hard problem in the field of super-resolution imaging. Google has a consumer product for it (mostly for removing glare): https://www.youtube.com/watch?v=MEyDt0DNjWU&feature=youtu.be....
comment 9y ago · link · parent
comment 9y ago · link · parent
I actually had no idea what could've broke it until I saw this submission. It's still not going to be fixed though since I don't remember the code. I assume a lot of people are in a similar position.
comment 9y ago · link · parent
I recently started learning express/node and wasted weeks googling for blog posts for each dependency to figure out how to configure them. I guess this is somewhat valuable for end-to-end understanding but not for productivity.
There are a bunch dependencies I am now kind of decided on (not for technical reasons, but because they are clear popularity contest winners) and figured out how use:
body-parser
compression
serve-favicon
express-session
csurf
helmet
cors
dotenv
moment
selfsigned
chalk
debug
But still a bunch that I haven't gotten to googling and still need to decide on what to choose: logging (morgan vs winston)
validation (express-validator, joi)
auth (passport jwt, local, social)
session storage (redis vs keeping it in database?)
database (mongo/mongoose vs pg/knex/bookshelf/sequelize, graphql)
storage (s3 vs gcs)
ajax requests (request vs axios)
mail (mailgun, sendgrid, mailchimp)
error handlers
rate limiting
geo ip
I would be so happy if someone took away my power to choose and just forced me to use something that will "just work".comment 9y ago · link · parent
The Digg traffic stats look similar in summer of 2010 after their controversial redesign where you can clearly see their users leaving for reddit: https://trends.google.com/trends/explore?date=2005-06-01%202...
comment 9y ago · link · parent
For example I was randomly looking through text recognition competition results and found out Tencent has an AI lab that took first place: http://rrc.cvc.uab.es/?ch=1&com=evaluation&task=4.
But I was unable to find any information about them. They have github repos with thousands of stars but the community is entirely in chinese: https://github.com/Tencent/ncnn/issues
comment 9y ago · link · parent