skysight-inc/HackerNews huggingface dataset:
Ask HN: HyperLogLog for User Authorization
Hi HN,

I'm always on the lookout for alternative ways to do things and today I was thinking about how user systems (authentication, authorization etc.) are designed.

My current understanding of how HyperLogLog works: It computes a hash code for a string that maps to a bit address in a large address space.

It dawned on me that using HyperLogLog could potentially be useful for storing user authorization type of information (e.g. roles or permissions) or even predefined or boolean type settings.

Instead of going the traditional route of defining a list of roles/permissions beforehand and then creating relationships between the user and roles, we could instead just craft an unique string to represent a global or specific role or permission.

E.g. in terms of a user

- Is in an administrator role? -> administrator

- Is granted the permission to add users? add_user

- Can grant permissions for a specific entity? entity_{id}_grant_permissions

I'm certain there are some limitations in using this approach, but workarounds should be adequate to overcome the limitations. Some limitations I foresee:

- Hashing is a 'one-way' function, as such it implies that you cannot go from HyperLogLog -> role/permission, instead you will have to check roles/permissions against the HyperLogLog.

- Some databases currently have built in or addon HyperLogLog implementations that might not necessarily be interoperable (e.g. Redis, Postgres)

What's your opinion on the matter? What other limitations do you foresee?
I agree that the system we have today is very bad. But it isn't socialized healthcare. We're still for the most part paying a number of private companies for our health insurance, which pretty much no other nation does.

Fully socialized health insurance makes a lot more sense than what we have now. I can't think of a single benefit of our "free market" system of insurance providers.
Yes, please! Many of us Mozilla devs read HN, but HN is not a bug tracker!
I agree. The use of the Norton Secured badge made me quickly leave the site.

A possible solution:

There's a "Login with Amazon" service that may be what the developer needs to be using: http://login.amazon.com/
Nope, works for me.
Rubycritic – Open source code quality reports for Ruby
Or, more likely, believe that any circumstance where being called fat or dorky is a serious threat to your well being will also be a circumstance where people musing about your rape and death will be a serious threat to your well being.

Especially as, for women, body shaming and rape threats often come hand in hand.
This had some great advice.

One specific thing I have seen is that someone from the design world is perfectly comfortable in the subjective world of how a particular product or design makes you 'feel'.

The disconnect I have seen is when a designer takes the feeling approach when talking to a business stakeholder saying things like "I just feel like..." or "It just doesn't feel right".

Granted, someone from the business world has their own way to describe subjective feelings with words like "That doesn't scale". So a designer learning how to speak about their subjective feelings in terms of a business stakeholder is a powerful tool that I have seen many designers use to gain their seat at the table!
Working for yourself is pretty high risk though especially with a special needs child.

Though his risk is offset by being able to find a job if need be rather quickly I would think (being an ex-microsoft engineer).
> I was the exact opposite of "alienated" by the trigger warning.

I don't doubt that it's a useful warning for some people, but that lingo in particular is generally used by people already sensitive to gender issues. It's also commonly used by extremists so outsiders will have trouble telling the difference immediately. A more traditional content warning would presumably have sufficed.

> Also, you want her to show examples, but if she leads with a strong one, she's writing "extremist hysteria"?

No, I don't want examples. I want trends and statistics. At the very least the article needs a proper introduction.
Why are they using RocksDB rather than LMDB?

If it's based on Raft, then it sacrifices availability if there aren't a quorum of nodes online.
This Tree Is Growing 40 Different Kinds Of Fruit At Once
Innermost thoughts of* Kim Jong-un North Korea (2012?)
I believe it's OK to bail out early if the lengths aren't equal, but otherwise yes, you'd want e.g. 1234 == 1345 to continue to the end even though it's obvious from the second character that they aren't equal.
BoardRounds Helps Hospitals Follow Up With Patients
But then you should read on why we use high voltage AC for transmission.

Hint: the resistance losses are ~ amperage squared.
I can't do steady and consistent, and I can't not question everything. I've been lied to and misled too many times to take anyone's word for anything any more - only deductive logic based in objective fact and primary sources will do. Steady and consistent I can't do because there's FAR too much in this world to do and see to just... exist.

I rather wish there were a stupid pill I could take. I always envied Charlie in Algernon.
Does TC39 interact with the community on module syntax? AFAK everyone in node land has no intention of using ES6 modules.
According to one of the founders, "Login with Amazon" doesn't grant access to a user's Amazon account.[1] If they were using it, there would be no need to ask for users' passwords.

1: https://news.ycombinator.com/item?id=8070310
And people have talked about that, or just having some sort of dual track with an inverter/UPS for the entire house and some sort of switch between solar and outside electric.

One problem is that we would have to create a whole new standard of how to connect DC appliances. Now I know on a smaller RV level that exists but we need something that can take more juice if I remember the conversation correctly.
Do you think this might solve some of the stability (memory) issues so many people have been seeing since the last release?
You're talking about typing, not really about schemas. With JSON, you can know whether a value is a number as opposed to a string, but you can't know whether it's supposed to be a number.
Great question. IPFS doesn't make any guarantees regarding durability, because ultimately this depends on people caring about the file, either because it's valuable to them, or they're deriving indirect value (being paid to care).

People that care about the data's presence will pin objects locally:

- I pin + seed my own files, or files I'm interested in keeping alive.

- I can hire a service (or multiple) to pin + seed my files for me.

- I can use things like http://filecoin.io to incentivize large groups of people to seed files for me. (this is why Filecoin + IPFS are sister protocols)
but how do you try out the python code - say in a REPL - in an iPhone app? wouldn't you need a computer anyway?
Ask HN: Creating full websites using WebGL?
I was amazed by many webGL online examples and demos and it made me wonder why webGL isn't being used everywhere to create complete websites already.

Am I missing something here? Is webGL too hard to use (even with libraries like three.js), or is it browser compatibility issues? Why is it that I'm not seeing webGL implemented everywhere online already? Isn't it better in most aspects visually speaking?
People often say this without thinking about all of the details here. The largest power loads in your house (and in the world, period) are motors which are normally AC so you may not have as much of a benefit as you think.

Also, there are other small details to consider such as the safety of switches and plugs. When you disconnect AC it will arc and then self extinguish when it crosses 0V. DC will keep arcing longer than AC will making it a bit less safe. Just keep a lot of that stuff in mind.
My view of how these things happen:
Game studio is developing a game revolving around Battle of Nanking. Two teams compete on how many civilians they can rape and kill in five minutes.

Presumtive buyers are drooling with excitement over this great game.

A woman joins the company and start arguing that the game is bad for our youth. It promotes rape culture. The game should instead revolve around a secret romance between two homosexuals in the army.

The people at the studio start thinking that, you know maybe she is sort of right, and post that on their blog.

Those who have been longing for the game get extremely upset. They feel that an outsider is destroying "their" game.

The craziest few of them threaten the woman.
If you count that than so can C/C++/Objective C (via pointers/references). But I like to use tuples and destructuring of tuples more (syntax wise).
Ditto: 3D virtual try-on
Oh, I also disliked implicit conversions a lot. I considered them a wart at some point. Made everything hard to read and reason about.

Almost every other way of "extending" a type would have worked better in practice eg. Xtend’s Extension Methods.
...and JavaScript. And HTML.
Because in so doing, you're just getting into a shouting match saying "My handouts aren't really handouts. They're important." Which is precisely what everyone who is looking for government money does.

Rather than taking part in the K Street circus of perverse incentives, why not just spend the money on research?
>This is all really just an expansion of "they're worried about some sort of liability." In any case that's by far the likelier of the two; I can't imagine you could sell IP related to this.

I more or less agree that liability seems more likely, but I have no idea what the nature of the attack is, so it's always possible it's an offshoot of some other research they are doing which can be patentable. Alternatively, it could be that CMU procedure is to require approval for all talks for brand and IP protection reasons and he just hasn't gone through the proper procedure, so in the meantime they pulled it (rather than pulling it in response to an actual analysis of the talk). This last one seems unlikely, though, as you'd imagine there was no rush to pull the abstract (which contained no details).
The simple login prompt for a different site is terrifying. Even if you can be trusted today, are you sure you won't hire an employee tomorrow who will sell all those passwords for fun and profit?
To clarify - I am saying that DRM shares core ideas with police state methods. Some of them. I explained that above: https://news.ycombinator.com/item?id=8070304
A Comparison of MongoDB and RethinkDB with Patent Data
Don't we have Obamacare these days? why COBRA is still mentioned here? is it still relevant as it used to be?

I thought OBAMACARE is beneficial for those who got laid-off, as low income got a huge discount, is it?
8 Things You Need To Know About Resume Scanners (Applicant Tracking Systems)
Never heard anyone say Dart's package system is better than NPM.

Latency makes Eclipse unusable on every machine I've tried, including a current Haswell MBA with 8GB RAM and a half terabyte SSD.

Also: how many web developers do you know that use Eclipse?
Not necessarily. Having a "brand name" on your resume tends to really impress the small-to-medium sized companies. I think there's plenty of places that'll roll out the red carpet for "the guy from Microsoft", so to speak and look past the fact that he was laid off.
An Adventure in the Low Status of Software Engineers
For localized solar, it's not a problem. If your solar is on top of your house, then the transmission losses aren't the problem.

Now, I think (as mentioned above) if you have the inverter for the whole house and some sort of UPS at the feed, it becomes an easier problem.
What should you do?

- Think about how you act around the women in your life, the women you interact with as public figures, your female coworkers, etc. Critically self-examine. Do you treat them like fully formed human beings? When someone asks you to name the "top X in your field" do you automatically always think of a man? Things like that. The answers can end up entirely being "Yes, I do treat women like human beings" - no one was ever harmed by a little self-reflection.

- Similarly, think about that behavior in others. Stand up when someone says something sexist - toe-curling awful, or just subtle. Take your female coworkers at their word when they talk about their experiences.
Shame...
Exactly what out of this story helped us? The intrigue is interesting, but it doesn't live up to the hype of the headline. This event happened in 1967? Even if they found some amazing advantage in the Soviet hardware, would it have been in production in time for the first moon landing?
Wow ... good call on the logs ... curious to hear whether they plan to change from GET to POST. Still wouldn't be comfortable, but seems like something they should do, like right now
Exploring No Man’s Sky, A Computer Game Forged by Algorithms
I wonder why Daneen didn't first try the most direct route which is to talk to her neighbor about her concerns and ask that they be respectful of "quiet hours".
Germans get more benefits provided by the government than Americans because Germans pay more taxes. The trade off is Americans get more take home pay and get to decide what benefits they wish to buy on their own, in the private market.

At least in theory, anyway...
It's just a overhyped implementation of the Reactor pattern + some package management.
Why is grunt needed? Is it because he's using Rails::API?

Most setups I've seen just let Rails serve the templates.
Netflix Profits Double to $71m
Sourcegraph: a search engine for code
Hashcash.IO Project Update
Support isn't great...

http://caniuse.com/webgl
Hugo lacks a couple of features that are present in Octopress or Jekyll but is much more performant.

Hosting Hugo blog on GitHub Pages ~
http://hugo.spf13.com/tutorials/github_pages_blog
There's a lot (a lot) to be said for universal healthcare, but to answer you question in the general case (why americans don't want to be more like Europe), this might give a good hint:

http://www.economist.com/blogs/graphicdetail/2013/05/daily-c...

Becoming Germany, Britain or Sweden would probably be a tolerable tradeoff, but a lot of factors go into that, it's not something that happens as a result of a single policy or two. Do note that in Portugal the rich are worse off than the poor in the US, and Italy and even France aren't far off.
The times I was on COBRA in California, it's been around 3x what I would have paid if I'd been eligible for an individual plan.

Is it possible you've had individual coverage in a state where such coverage is guaranteed-issue? That would account for a lack of distinction between group and individual rates.
I have basic auth protecting login and no plugins installed because I know they are usually the source of vulnerabilities.
thanks for the information. looking into this right now (and preemptively deleted the logs)
Strangely enough it may be ____________ will permit us to understand what mental disorders are all about.

( ) Hypnotism
( ) Psychoactive drugs
( ) Functional programming
( ) Meditation
( ) Phrenology
Agreed. And in this case, I think it's significant that the family member affected has controlled his illness long ago. The point of this donation is to help other people for whom such control is not yet possible.
We don't actually want to live like that.

We just have such distrust in our government that we don't want them running the health care system. Witness, for example, the recent VA Hospital scandals. Our government is dysfunctional. And it's already incredibly intrusive, too, and some of us don't want the feds knowing all of our health problems (even though they probably already do).

I would love government health care, just not from this government. The free market doesn't work for health care.
Better Code Navigation on GitHub
Now have the bot automate payroll, and have it post bounties for provisioning new hardware & links to ISPs
Absolutely. It would crush the market.
Have you ever asked the people who might be targeted by those jokes (women, minorities, etc.) if they feel comfortable with them?

Keep in mind a joke about someone "like you" is easy to read as a comment about you.
Depending on whether by "platform" you mean the actual software package or not, I will throw http://tech.pro into the mix. (Full disclosure: I am the founder)

Tech.pro is a blogging platform / professional network catered only to the tech world (primarily software development).

Our editor is markdown-based and handles code snippets etc. quite well in addition to having support for embedded frame sites such as jsfiddle/codepen/sqlfiddle/etc.

Although you're writing on the TP platform, you still retain full ownership of your data. You can even download a neatly organized archive of all your blogs (and revisions) in both Markdown and html format at any time.

My Blog: http://tech.pro/leland/blog
My Profile: http://tech.pro/leland
This would be ideal, we just need some brave people. Then add XAML support, and we can finally have <grid> instead of a <table-bootstrap-crap class="are-you-serious">.
No plugins right now and I believe I have it set up to auto-update the core.
I don't think you are, but if you were doing something scammy, would you _really_ admit to it?
Hello, Fast Forward Labs
Thanks, I didn't realize this. I'll give it another whirl.
This.

I had the same experience (contacted RH about a specific job only to find out it didn't really exist), and continue to get spam emails and calls.

I've told them sure, I'm interested in hearing about what they have but it will have to be better than my current position.

It never, ever is.
COBRA is not only for health insurance. It also includes other insurance such as dental and vision. ACA only covers health insurance.

COBRA is still relevant for health insurance if you employer offers to cover part of health insurance premium for certain duration after being laid off. In this situation, you will come out ahead with COBRA than ACA. Also, ACA doesn't cover vision and dental for which you will need to go through COBRA to get decent coverage with too much restrictions.
Randomly Order Your Team Members
Not sure, but some Googling reveals that these three are commonly excluded from contests of all sort. They probably either prohibit all forms of contests and sweepstakes, impose taxes, or regulate them so tightly that it's better to just not bother.

Also note that it may not just be a function of the law, but also of the benefit gained by offering a contest in a given jurisdiction. I'm seeing some indications, for example, that Japan and Brazil have some similar sweepstakes regulations, but it may be more worth the organizers' time to comply with Japanese law than Brazilian. Just a guess.

Some clues:

http://www.slideshare.net/Promosfera/sweepstakes-and-contest... (E.g., server receiving registrations must be located in Italy, steep fines for only brief downtime)

http://en.wikipedia.org/wiki/Sweepstakes ("There are similar laws in Brazil, where sweepstakes must include a "cultural contest", often giveaway questions like 'which brand gives you a house?'")

http://www.theglobeandmail.com/report-on-business/small-busi... (In Quebec "contest runners have to pay tax on the value of the prize. For another thing, contests with prizes over $2,000 have to register their rules with a government agency, the Régie des alcools des courses et des jeux . . . . To top it off, contests with prizes worth more than $5,000 actually have to deposit an amount as a security with the Régie, as a means of protecting consumers should the contest runner fold or renege.")
Absolutely, agree.

Of course, the engine in the Model S is clearly a high performance engine too.

It's worth noting a replacement stock 3.6 VVT engine for the Wrangler is exactly the same price.
No, I get it. Tri-phase is name of the game in the old transmission model. But that model is long overdue for a rebuild. Remember the 2003 blackout? Managing and synchronizing grids is more than a full time job, and this contest seems to promote a bandaid.

Anyhow, my point is that in the localized-power game (say solar cells, fuel cells, etc) it's all DC already, and it's all right near where it needs to go. Fuel cells are near cars, and solar panels are right next to what they need to power: TVs, etc.

Complications are airconditioners and big appliances, except those things are already massive enough that it makes sense to install an inverter next to each one.
Will you be funding the study to collect those trends and statistics?
Except the healthcare MSFT has is probably way better than anything you will get on the individual market. So you aren't in the terrible position you were before ACA, but you are still in a less good position.
from my understanding is the actual owner is never there, just rents it out all the time, and its a constant thing with different people using the space. they tried contacting airbnb, to get ahold of the owner - but to no results.
Sorry if this is a tangent, but for those of you that use Steam, try using this: www.enhancedsteam.com
NEW INFOGRAPHIC: What You Should Know About Your Customers
Was shocked for a second there Kord... :)
Show HN: Kickstarter for Smoking Cessation iOS app and Research
Dumb question: why doesn't the value being a number tell us it's suppose to be a number?
Having gone to a few different doctors over the last year, follow-up care was almost always the most frustrating part of the experience. Either they lost my chart and paperwork, didn't follow up, didn't explain what care I needed or I dropped the ball on it (and never heard back from them). Healthcare as a whole could use some big changes but this seems like an easy place to start.
I thought that Good Old Games primarily focused on good old games.
> Ads targeted at you do not benefit you in any way unless you work for an advertising firm.

They mean I don't have to pay every website that generates content in order to have them...you know...exist.
As a mid-45 male with a wife and kid, my cobra 5 years ago was $1200/month, and I was glad to pay it. 14,000 a year is nothing compared to one major incident involving a hospital.
The most common objection I have heard in past six months during my job search. Another two objections that I have heard are "too much experience" and "your past salary was too much, we don't want to offer less but can't afford to pay you what you deserve."
Being laid off is different from being fired. It doesn't necessarily imply anything about you. I think anybody who really wonders that probably hasn't witnessed a large-scale corporate layoff before.

It can still be devastating, though. It depends heavily on how general your skills are. Being laid off is much worse for someone whose knowledge and skills were mostly institutional.
Yeah I've actually had several wordpress sites I've been involved with in years past get hacked before. One was the guy I built the site for refusing to keep it updated (this was before auto-update). The other if I recall correctly wasn't the fault of our site but some other site got compromised on the shared server and the attacker was able to hit all the sites on the server. You can see why I'm always a bit wary of WP even if it is irrational.
Chorus.js an API Orchestration Engine which runs on Raspberry Pi
Hi there! I'm in the early stages of building a blogging platform just for programmers. My main criteria was ease-of-use and that it support code-highlighting out of the box. You can check out what I have so far at www.progblog.io. I must warn you, that it is NOT a mature app at all, and I wouldn't even call it alpha. I will be releasing (and announcing) something here on HN in about 2 or 3 weeks, with a much nicer design (similar to Medium in its simplicity) and a more natural workflow than what exists today.