Better HN
topnewbestaskshowjobs
Log inSign up

rawnlq

1,209 karma · joined Oct 9, 2014 (12y ago) · 333 submissions

Submissions

comment 8y ago · link · parent

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

comment 8y ago · link · parent

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?

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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?

comment 8y ago · link · parent

There's also a new Age of Empires coming out soon. You can thank Bill Gates for it:

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

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

comment 8y ago · link · parent

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

comment 8y ago · link · parent

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?

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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

comment 8y ago · link · parent

Try searching for your username on https://namechk.com/ https://www.namecheckr.com/ http://checkusernames.com/ or https://pipl.com. I am sure these name checkers can't be built if they have to spam the sign up forms just to check availability (at least not for free if they have to pay for manual recaptchas).

The privacy is worth it.

comment 8y ago · link · parent

That reddit link was incredibly informative and worth reading. It finally explains why /r/bitcoin looks like such a meme-driven asylum. All the propaganda, censorship, astroturfing and fake news reminds me of how /r/The_Donald gained support.

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

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.

comment 8y ago · link · parent

I am really worried about this unintended consequence of self-segregation. This is us going backwards.

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

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?

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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)

comment 8y ago · link · parent

For a compromise, there are now 32" 4k monitors meant for computer use for around $300 if you look for the black friday and cyber monday deals: https://www.reddit.com/r/buildapcsales/comments/7ehzic/monit...

40" is roughly 1.5625 times in area of a than 32" though...

comment 9y ago · link · parent

> combine temporally adjacent frames for greater resolution

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

This would make a very good http://knowyourmeme.com/memes/almost-politically-correct-red...

comment 9y ago · link · parent

I am currently starting a project using heroku (node.js/postgres). Is there any reason to try out app engine with cloud sql instead?

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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

comment 9y ago · link · parent

It's pretty interesting when companies implode in a way that's clearly visible on a graph.

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

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

comment 9y ago · link · parent

Basically any supermarket meat then? https://top5ofanything.com/list/535cb238/Most-Common-Types-o... (actually a little surprised to see sheep/duck ahead of pig)
12345
12