skysight-inc/HackerNews huggingface dataset:
Drawing lines in WebGL is pretty hard. Here's my Schrödinger wavefunction visualizer (http://ridiculousfish.com/wavefiz/) where I learned too much about it.

Note these lines are in actual 3d space: you can rotate the scene using the circle control towards the bottom.

WebGL supports lines natively, but Windows Chrome ignores the thickness (https://bugs.chromium.org/p/chromium/issues/detail?id=60124) so I had to find a different approach on Chrome.

The approach I used is per Matt Deslauriers (https://mattdesl.svbtle.com/drawing-lines-is-hard) . The essential idea is to construct a zero-width line, then use a vertex shader to push each vertex along the line's normal in screen space (not model space). Now represent each vertex twice, and push each one in opposite directions, and you get a nice width.

A fragment shader is used to soften the edges.

Here's my vertex shader, which is the meat of the drawing: https://github.com/ridiculousfish/wavefiz/blob/master/ts/pol...
> Tel Aviv is the internationally accepted capital of Israel, not Jerusalem.

Can we please not post that nonsense here? I expect it in some of the stupider social networks (which tend to draw a certain kind of poster), but seeing that here is surprising.

Other countries do not get to tell a county where its capital is.

What exactly makes Tel Aviv the capital anyway? There's no seat of government there, nothing. Did they just randomly pick a large city?
Thanks. It wasn't clear in your comment. Working with your doctor is the right way. Your original comment made it seem to me that you weren't.
I also don't get why they said he should move to them. instead another police officer could've just came from the back and searched him for potential weapons. but well the video shows that the police basically was harmful.
Because this idiot in some other situation can be seating in some other country. So to take out some high value US target say someone from US intelligence the only thing they have to do is to make a believable sounding call over VOIP line and they are golden especially considering the target would likely have a gun on him which will make it that much easier.
> requires more structured accounting (GAAP vs cash accounting), and invites external scrutiny and pressure.

aren't all these good things? Prevents both scamming, as well as ensuring that the founders take a careful look at their business, and that it isn't purely fueled by stock/investment, but is generating profit?
CEO fraud. Some companies have lost millions that way, including Ubiquiti.
Ugh I fell for this off argument...

Meditation predates Christianity. Buddhism any one? I don’t recall anybody meditating and then become ing a suicide bomber.
Sorry, are you saying that Facebook can't see the content that's stored on their servers? That when my mom posts a picture of some roses, that nobody between me and her can see what the image is of?
Even assuming (optimistically) that an exceptionally good hair stylist could somehow... uh, I don't know, be so good that they can hire more stylists? Assuming there's space?... it's pretty rare to have, say, multiple heads of the same department.
Great idea, added, thanks!
That's why they don't sit in the car and try to have a chat with the "hostage taker".

I dunno, it seems to work pretty well in a lot of other contexts. Interestingly enough, in a context where they're very sure about the danger/loss of life, police are just as likely to slow things down. When a terrorist shot up the Pulse Nightclub in Florida and killed a bunch of people police showed up and exchanged fire with him, but then when SWAT arrived they turned it into a hostage situation and spent >3 hours and carried on 3 phone calls with the guy, along with a number of failed entry attempts. Realistically several of the ~50 victims probably died while waiting on the police (I'd have to check all the autopsy reports to be sure, but it'd be pretty unlikely for them all to have died instantly at the time they were shot).

https://en.wikipedia.org/wiki/Orlando_nightclub_shooting
> As obvious as this rule may seem, there are fields in which it is seldom observed.

Indeed. Many -- perhaps even a majority of -- startup landing pages break this rule.
It's irrelevant how long the lookup table took to create: P = NP if such an algorithm exists, regardless of how difficult it is for humans to find the algorithm.
For me exercise, weightlifting, bike riding and basketball are great. I love playing basketball, no Facebook, Twitter, code, news feeds, fake news, just chase the damn ball.

After physical exercise I feel it’s easier to concentrate.
Per this discussion https://news.ycombinator.com/item?id=13040084

"FBA vendors appear to have control [...]
But I still don't think the amazon customer can see if an fba vendor allows commingling"
I wouldn't blame the mountain. It isn't dangerous anymore, not like it once was. Modern climbing is extraordinarily safe. We now have gear that we can actually trust. Ropes are now basically magic. But more importantly, modern communications and weather forecasting mean climbers no longer need step into the void. Dangers that were once total unknowns are now calculable. It is much easier to be bold when you know what you are about to face. So I'd say the mountain is exactly as dangerous as those climbing it want it to make it. We are just now realizing that well-informed and equipped people often take risks that previous less-informed generations would never consider. Soloing everest was once crazy, but I wouldn't be surprised if some idiot out there is planning the first free-solo on-sight.
It's called being a "Public Servant" for a reason.

Meanwhile, the rest of us don't get any cushy pensions or any of forms of guaranteed stable government benefits like police do.

Not trying to say they should consider themselves "less-than", more that they should be fucking servants.

Police aren't the point! They are a necessary fixture to enable the real point- SAFE, LIVE CITIZENS.
They're even targeting kids here in Britain. Gangs post pictures on social media of huge wads of cash, then tell the kids that all they need to do is move a bank transfer.

And suddenly you've duped a dopey 14-year-old into money laundering.
I think the Burj Khalifa disagrees with you.
After some hesitation about buying this game, I'm super glad that I did. The puzzles are well balanced with increasing difficulty, and I find them relaxing and fun
Increase public spending on what? NY MTA workers making $400/hour? On teachers (who, by virtue of being college educated, are by definition better off than most of the population)? On healthcare (i.e. to doctors and drug companies)? Heck, even if you give cash directly to poor people, it'll go immediately back into the hands of the well-off in the form of rent in overpriced cities.
Zero-width characters and other text fingerprinting methods
I've heard SF described as a Brooklyn without a Manhattan.

Which generally checks out in numbers. Brooklyn's density is ~14,700/km^2, SF's is ~18,500/km^2.

By comparison, Manhattan is 27,800/km^2.
Somehow, somewhere Lenny has gotten connected to Lenny, detecting mutual silences and muttering at each other for years.
What was the best CS, SE or Math video you watched in 2017?
After capkutay's and anonfunction's comments, I disagree with me too, haha
Just posted for clarity - I remember people getting the wrong end of the stick when it first became popular.
Oh wow, it really gave them the runaround there. I love the link to the forever-loading page, I forgot I had added that.
Reduce the number of guns in the US.

People should still be able to own guns, but they should need a valid reason (such as hunting or farming). Shooting people (this includes self defence) should not qualify as a valid reason.

This is how it works in most developed nations with sometimes quite high rates of gun ownership (0.2+ per capita) but without the endemic gun violence of the US. It's worth noting that these sorts of restrictions effectively rule out ownership of handguns - and concealed handguns (real or imagined) seem to play a major role in most police shootings of innocent people in the US.
So I was initially bearish on it, but I tried out Diaspora today. It's actually quite nice! I have started the laborous process of getting my family on it. I'm pitching it to them as Facebook like it was in the mid/late-2000's, but has no ads, isn't run for profit, no creepy big brother vibes, and there are only people on it (no stupid pages, brands, etc).
You don’t need Euclidean space to exist to define reals but you need reals numbers for distance to exist.
Cixl – a minimal scripting language based on Forth and Lisp
The video leaked online. He is not even trying to reach for his pajamas or something. A cop asks him to move towards them and the next second you hear the shot. It's crazy.
That's silly. If Apple ran a more efficient market, users would buy more apps, developers would make more apps, and Apple would make more money.

Large companies don't always do a good job of simple things, for all sorts of banal reasons related to specific people in management, organisational politics, etc.
>the nordics are not on the euro, which is for now better than the pound.

You have no idea what you are talking about. Finland uses the euro. Denmark is pegged to the euro, a peg which cannot be broken like Switzerland's because it is 100% politically controlled. Norway is not in the EU so why would it use the euro? Iceland is also not in the EU.

Besides being completely wrong, why does the nordics being on the euro even matter for this discussion?
Ha https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...
Poll: higher Bitcoin price, less believe it's a bubble, more believe undervalued
Plummeting temperatures could send the world into a 'mini ice age' in 2030
True enough. It's just not common usage to use "its" as an absolute possessive like that. Whereas other possessives lend themselves to that usage.

In other words it's typically used as a possessive determiner in this construction.

It's somewhat similar to the following:

-Have you eaten?

-Yes, I've.
A Brainstorm About How Game Loops Can Avoid Battery Drain
Really fun read, and awesome to see how the scaling and path traversal problems were solved.
Yeah, but when you have enough money, why not take the Pfizer model and let someone else do the hard work/risk/etc?

Ten-to-one a company like Amazon buys them in a year or three. Assuming that they don't pivot to the 'extortion' business model instead.
It's actually a folding table.

There's two laptops, a monitor, mousepad, fluorescent desk lamp, supermarket receipt, mouse, MP3/CD player, flashlight, waterproof Walkman (currently charging), a large mug of tea, two Sharpie markers, some opened envelopes, a few watches, tape measure, slide rule, notebook, miscellaneous detached legal pad paper, a pencil sharpener that's not plugged in, a couple of books, a mechanical pencil, stapler, old broken headphones, a hard drive, some batteries, and a small bicycle front point-light.
Special cases make bad rules. Seat belts make you safer... but not if your car gets crushed between two semis. That doesn't mean seat belts are pointless, just that they don't work in that case.

Moving deliberately and keeping your hands visible around police, particularly if they seem to think you're dangerous, is a good way to stay as safe as you can, and will put them less on edge in the encounter. You want that. In a dangerous situation, you want everyone as calm as possible.

Will it always work? Of course not. Maybe you're drunk or high. Maybe you're insane. Maybe you panicked in spite of yourself. Whatever. Hopefully in that situation one of the other protections will work for you.

Wear ya damn seatbelt. Not because it always works, but because sometimes it's the only thing that saves your life.

Safety is about tradeoffs and incremental improvements, not perfect solutions. If there really is a murderer in the house, we want police to be aggressive. If it's a hoax, we want them to be cautious. But expecting them to magically know which situation it is isn't a practical solution. Making it really obvious that you aren't a tactical threat is a practical way to make the situation safer. ER!

Obviously the whole situation is super dangerous and the blame rests almost entirely with the hoaxer.

But with that said, I think it is practical and reasonable to talk about the best way to surrender safely and avoid a misunderstanding in a situation like that. It won't work in every case, but it should generally work and could improve the situation.
I never thought of mental toughness as something that can be learned from a book. Has anyone had a transformative change from reading a book on the subject?

I learned mental toughness from physically grueling experiences (wrestling, digging holes, mixing cement). Experiences where I put myself in a mindset where I didn't have a choice but to persevere. After doing that for years, dealing with most mental/emotional struggles are manageable.
There is no reasoning with people about specific issues when they are tied up in identity politics. That is true whether they are a liberal or a conservative.
Like all Zachtronics games it a lot of fun, but near the end it gets HARD. If you like that you might try Shenzhen I/O next. You do a little assembly programming but you also make electric circuits using pre-to find parts to make things that customers request.
Not really. The article is utterly unconvincing there.

The writer obviously chose a conclusion and tried to make it fit. It’s a very weak piece if you don’t come into it with the same conclusions
> Cops act like thugs because the overwhelming majority of people they arrest/hassle/shoot are guilty. Period.

You realize that judging acts is not within their domain and sphere of interest, right?

Also, I’d love to see your reference citation(s) to back up this statement.
Pick someone else's existing work, try to reproduce it, or decide how you would do it differently and try doing that. You'll probably find this leads to more ideas. If not, start again.

On another tangent, there's some good advice in this video:

How To Design Deep Games with Jonathan Blow (Braid, The Witness)
https://www.youtube.com/watch?v=d0m0jIzJfiQ

Not just for games developers, worth watching in spite of the terrible audio.
In USA, the measure "number of mass shootings per year" doesn't have real outliers, it has a reasonable number every year. In Norway, it's different, you get a streak of zeroes, followed by a 1.
Show HN: Ben, your benchmarking assistant, written in Go
Capitalism won't be obsolete until we've cured death and colonized two other star systems. Then we've got to prepare for the threat of alien conquest.
I haven't been on Facebook in over a decade; I didn't see that it had any positive effect on my life (quite the contrary), and I'm definitely not impressed by their lack of social conscience. Despite the excessive pay and "pedigree" that working for them would offer, I'd never do it. I hope that a growing number of people from my and future generations will think the same.
I think that the majority of the population considers that these types of events are very unlikely to impact their own lives and they therefore don't give it much thought. Maybe if a law was passed that required all adults in the county to serve 16 hours of jury duty for every instance of a police shooting and killing an unarmed person then that would be enough of an inconvenience to force a change in attitude.
The Anti-Agency
To Serve Man, with Software
> Why aren't they concerned about the integrity of their community?

Because consumers aren't imposing sufficient costs on them for not being concerned to change that attitude. Amazon is interested in making money as efficiently as possible, period.
Maybe the author lives in a state where this is fine? Not all places have the same laws.

The author made a cool thing and did everyone the service of documenting the process. Why is everyone so quick to crap on his project?
If this is actually NIMBYs' core claim, I'm overjoyed, because it can plausibly be worked with.

Building literal greenfield subdivisions is a little different from infill/intensification in a city. Where one developer is building all the homes, of course he needs to provide all the infrastructure and amenities between them, or no one will want to live there.

Urban intensification is one site at a time. I hope no single developer is doing so much of the construction that it also makes sense to make him responsible for schools and transit. The whole angle of YIMBYism is to reduce landlords' pricing power through competition. So if ten different developers are operating simultaneously, who pays for what?

If only there were some sort of institution for solving these coordination problems. We could call it... municipal government. If only there were some sort of mechanism for it to skim off of real estate value and use the money for public goods. We could call it... property taxes.

Maybe "our side" isn't campaigning loudly enough for increasing public investements in public goods, but the support is there. What you're probably seeing pushback for is arguments like, "well, I don't see a school in this proposal for 20 condos, so get lost" and other stuff that looks like a rhetorical strategy for a decision you already made, rather than your actual objection.

Road capacity is an interesting one, because people who live in dense walkable environments close to their offices need less transportation. Killing projects in SF based on their traffic/transit impacts sends their potential residents out to Walnut Creek. That's not better.

EDIT: I will also add that huge multi-buildings sites developed all at once have a tendency to feel fake. There's a very real risk of uncanny valley when a developer is trying to bootstrap a neighborhood all at once. Organic, incremental growth is something we should celebrate and encourage.
Addendum: For what it's worth, it seems some people aren't fond of Diehard any more. To quote Chris Doty-Humphrey, the author of PractRand:

> In empirical testing, a classic is the Diehard program by Marsaglia. That program is badly outdated today and should not be used anymore, but it was, so far as I know, the first real standardized battery of such tests.

More information is available on their website: http://pracrand.sourceforge.net/PractRand.txt.
It's important to not equate sending SWAT "into a shots fired / hostage / bodies on the ground situation" and a situation where it's been claimed by an anonymous phone call that something like that might be the case.

It's not the same. It's reasonable to respond with lethal force after shots have been fired by the opponent, it's totally not reasonable to do so when you suspect that it might be the case that they might get fired with no good evidence that it actually is so.
Insulated socks.
I think it is true that police carry the bulk of the burden for training and the bulk of the responsibility for making things proceed safely. But I think it is unrealistic and ineffective to give them the entire job.

Sort of like, car drivers do have the ultimate responsibility to not hit people, but it sure is a lot safer if we also tell people to generally stay on the sidewalks.

Policemen are generally going to try to do the right thing, but it's a whole lot easier for them to get it right if, in addition to being innocent, you also act safe.
How did those actions affect sales of the game, the short term stock price, and long term prospects of the company?
Controlling your environment makes you happy
I think a machine learning assisted scene assessment could be more accurate in this scenario.

Considering AI is better at image processing than humans, finding whether the subject in the view point is carrying a weapon should be able to give the officers a second opinion when needed under these circumstances.
1) Public Option for Healthcare

2) National Healthcare Standards that end the balkanization of the healthcare market.

3) Infrastructure maintenance deficits (we've fallen really far behind on that).

4) Basic Research in basically every field.

5) NASA.

6) Breaking oligopolies/monopolies

7) Public Affordable Housing. (i.e. High Density housing projects that otherwise charge market rates to cover costs.)

I'm not even sure why the idea of doing the first 6 things are even "political issues" that require discussion, to be frank. There is something seriously wrong when basic maintenance and balancing the scales of power to something below "lol rent seeking" qualifies as "increased public spending" because basically nothing is done in those areas.
yet we often celebrate the very wealthy buying up strategic properties and setting them aside as nature preserves

just recently a chunk of California coast was preserved in such a way by the founders of map company Esri.

we also set aside vast acreage as monuments. this land is also permanently "off the market"
Fundamentally there's a set of facts you're going to need in memory while you're working on a request, and those data structures should have a similar footprint in any reasonable language. Java is only worse for people who have ignored NIO and are still making blocking calls from huge thread pools (I admit there are a lot of bad client libraries that are not async-first), or people whose workload is so tiny that they don't want to spend code space to gain speed (which the JIT tries hard to do).

Edit: and a deployment this strapped for cash should probably be hot-reloading the services within a single JVM rather than paying for lots of network marshalling across machine boundaries. Their platform has single instances 30x as powerful as they've chosen.
This isn't exactly the first time this has happened, is it? We already have many review processes in train and it doesn't seem to be making a whole lot of difference, which is why people are outraged.

Here's the problem: you want to draft even more procedures and guidelines and checks and balances (even though we're already neck-deep in bureaucracy), while SWAT teams are guided by a philosophy of 'move fast and break things.'

Here's some actionable suggestions we can use right off the bat:

* ban police unions
* automatic trials for all homicides
* police shooters are isolate din protective custody
* SWAT team leaders are automatically retired from active duty whenever an innocent person is injured or killed

Really I think it's a bit insulting to innocent victims to be 'let's all calm down and have a review process' as if we haven't been through these questions hundreds o times already.
Gotta hand it to this guy. He hustled for his money.
Here's another great article about a fake security app that was making ~$80,000/month. After selecting "Free trial", the app signed you up for a $99/month subscription. For a while, it was ranked #33 in Top Grossing for Business apps. Apple has since removed it, but there's plenty of apps like this still out there. As someone who has had apps rejected for fairly trivial reasons, stuff like this always frustrating.

https://medium.com/@johnnylin/how-to-make-80-000-per-month-o...