Readit News logoReadit News
rawnlq commented on What It Felt Like in Hawaii When Warning of an In-Bound Missile Arrived   newyorker.com/news/as-tol... · Posted by u/mathgenius
rawnlq · 8 years ago
AskReddit is really good for these kind of questions. There's a large thread going on right now: https://www.reddit.com/r/AskReddit/comments/7q6gys/reddit_me...
rawnlq commented on 2017 JavaScript Rising Stars   risingstars.js.org/2017/e... · Posted by u/doener
allover · 8 years ago
First I'd heard of dva [1] (#6 in the frameworks section), interesting that it eases use of redux-saga as well as the usual abstractions over redux. redux-saga has been something I've avoided after initial evaluation (I also avoid redux unless absolutely necessary), but might take a second look with this. Hope the project gets some more English translations!

https://github.com/dvajs/dva/issues/1#issuecomment-334334184

rawnlq · 8 years ago
Ditto with Ant Design (#14 on most popular projects) where most of their community is Chinese: https://github.com/ant-design/ant-design/issues. Their UI framework is the most comprehensive I have seen.

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?

rawnlq commented on Understanding the state of Artificial Intelligence academic research (2016)   blog.ai-academy.com/six-g... · Posted by u/sytelus
rawnlq · 8 years ago
The author is obsessed with fitting things with a logistic function and drawing wild conclusions even when it directly contradicts itself.

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.

rawnlq commented on WDMyCloud Multiple Vulnerabilities   gulftech.org/advisories/W... · Posted by u/ronnier
_Codemonkeyism · 8 years ago
Interesting, how do you think bitrot affects a NAS with ECC/ZFS/RAID10 ?
rawnlq · 8 years ago
All your bits will rot if your house burns down. You will need something cross region (maybe your whole city gets nuked) but then you'll be exposed to the internet again. Snail mail your drives I guess?
rawnlq commented on Dubsmash: Scaling to 200M Users with 3 Engineers   stackshare.io/dubsmash/du... · Posted by u/yarapavan
ryanworl · 8 years ago
You would use two buckets in this case. Input bucket gets consumed by worker processes to do the transcoding (and validation) and then they upload into the output bucket. The output bucket is what you serve to clients (hopefully with a CDN in front).
rawnlq · 8 years ago
Thanks! This is a great solution but none of the tutorials/blogs I read on pre-signed uploads mentions it.

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).

rawnlq commented on Dubsmash: Scaling to 200M Users with 3 Engineers   stackshare.io/dubsmash/du... · Posted by u/yarapavan
bambax · 8 years ago
> We since have moved to a multi-way handshake-like upload process that uses signed URLs vendored to the clients upon request so they can upload the files directly to S3.

How does this work in practice / where can one learn more about this?

rawnlq · 8 years ago
I want to make sure that I understand the security aspect of this.

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-...

rawnlq commented on How I went from programming to consulting (2012)   training.kalzumeus.com/ne... · Posted by u/putnam
patio11 · 8 years ago
My modal engagement was with a SaaS company with $20 million a year sales, a few dozen employees, and 1~3 very strapped people wearing the marketing hat.

“How much email do you send?” “We have a newsletter.” “What else?” “Welcome to free trial email. “What else?” “Nothing.”

I write proposal.

You should:

1) Have a pre-sales drip campaign positioned as a “free course about X delivered over email” w/ 8 emails arriving over the course of a month. This will push people at purchasing the product in 2 of the emails.

2) You should email people 4 times during the trial depending on their level of engagement with it. Here’s a decision tree.

3) You should email people within 80% of their monthly quota offering a discount to move to the next higher plan.

4) You should email your entire userbase and upgrade as many as possible to annual billing for a 10% discount to the cost of their current plan.

You can tell your engineering team to do this for you, but there is 0% chance they schedule this because it is boring scutwork and they’d rather do those features you have scheduled this quarter. Or you can have me just do it. I need a commit bit and probably two weeks. It will cost you $30k per week.

Probabalistically this makes you $2 million in next 12 months but your results are your results; you keep all the upside and my invoice is due regardless.

rawnlq · 8 years ago
Making the company money is the not the only factor is it? Any engineer at google/facebook/etc are probabilistically making the company multiple millions per year too (terrible estimate from revenue divided by headcount). But probably only a handful of them would ever be able to demand the rate you charge because they are replaceable.

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?

rawnlq commented on Distributed count distinct vs. HyperLogLog in Postgres   citusdata.com/blog/2017/1... · Posted by u/craigkerstiens
potle · 8 years ago
any good step by step derivation for this out there?

I read the wikipedia article and still not sure why this works.

rawnlq · 8 years ago
A more layman version:

- 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.

rawnlq commented on Making Millions by Distributing Pirated Movies   thehftguy.com/2017/12/20/... · Posted by u/user5994461
jedberg · 8 years ago
As someone who ran a fairly large, mostly reputable website (reddit), I agree that you are off by an order or magnitude or more. There is no way they get close to $1 CPM. They'd be lucky to get 10 cents, probably closer to 1 or 2 cents.

They most likely barely break even after paying themselves a modest salary.

rawnlq · 8 years ago
I forgot where I heard this from but I thought the reason reddit didn't monetize well was because the users were either using adblock or were too tech savvy to click on ads?

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.

u/rawnlq

KarmaCake day1209October 9, 2014View Original