HN user

rawnlq

1,209 karma
Posts6
Comments306
View on HN

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?

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.

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?

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

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

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?

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.

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.

We’ve been big fans of the Postgres HyperLogLog extension for many years and are excited to be taking on responsibility to maintain HyperLogLog going forward.

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.

Was totally expecting this to be a plug for firebase (google's realtime database) but it actually comes with a koa server using websockets. Seems to be built with redux under the hood. No fancy conflict resolution and does syncing by serializing entire app state and sending it to each client after each move.

Dumb question, but can someone give me a summary of how you can implement this in webgl?

I thought there are only vertex/fragment shaders and compute shaders aren't supported yet? Do you just pretend everything is pixel data?

I have many relatives who work in a nail salons with a mix of both northern/southern vietnamese. Northern vietnamese gets teased over liking dog meat and having an accent. But I don't think there's any actual hate and more of a cultural and language difference. Kind of how city folks don't get along with hillbillies/rednecks? They will still get together to talk shit about anyone not vietnamese.

The most famous one is probably the google employee who lived in a truck: http://www.businessinsider.com/google-employee-lives-in-truc...

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)

There's a demo I wrote using jQuery UI Draggable that used to work with touch on mobile (using jquery ui touch punch) that no longer works.

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.

Rather than changing express's syntax, I would much rather have a better express boilerplate generator with an opinionated stack with good documentation/justification.

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

Due to the language barrier, there is a lot of interesting work that we will never "see".

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

I have plenty of younger friends who I mentor in terms of basic life/career coaching and I don't really expect anything in return.

Even if it's free (and so far it seems like it's not and mostly freelancers looking for clients), I think it's a great idea to have something like this to help the next Hardy/Ramanujan find each other.