skysight-inc/HackerNews huggingface dataset:
I've recently been looking into the same issue. I need a way to encrypt data before inserting it into a database in such a way that the person inserting the record can read it, their supervisor can read, but their colleague can't. It needs to survive a password reset and I don't want to store any keys on the server unencrypted.

This lead me to attribute based encryption and the libbswabe library. The idea is you generate a master keypair and from these you generate private keys for each of your users. Your user's private keys can only decrypt data that was encrypted with attributes that were also applied to their key.

For example, let's say we have 2 users Alice and Bob. Alice is a supervisor for the IT department. Her key was generated with the attributes "alice" (her username) and "itdepartment". Bob is a normal employee in the IT department, the only attribute applied to his private key was his username "bob"

Now lets say we use the master public key to encrypt each of the fields in the user table (Firstname, Lastname, Email, etc). If each field for a user record is encrypted with the attributes: [current_username] and "itdepartment", then Bob can decrypt his fields because they are tagged with "bob" and "bob" is an attribute in his key and Alice can decrypt her record through the same logic AND every record whose fields were encrypted with the attribute "itdeparment".

If users private keys are encrypted with their password and stored in the database, then the only way you can get Bob's key is to break his password. An attacker now has access to the data that Bob's key can decrypt, but importantly, not everything. If Bob forgets his password (and therefore can't access his private key) then a new one can be generated and all it needs to do is have the "bob" attribute in order for him to have access to all his old data.

Now this is by no means a complete description of a solution, you have to securely store the master private key (you only need this to generate private keys for your users though, not for every put/get request), there's issues around key revocation and lots of gaps in my description, but these issues are present for any crypto system. Attribute based encryption though seems to me like it overcomes a lot of the issues that plague other solutions, the biggest single one being that other solutions require the master private key to either be on disk, or in memory at all times, this solution doesn't need that.
99.9% of the rest of the players will still give it 5 stars so your 1 star means nothing.
At least they'd allow a jury to see things from the cops perspective and judge whether he acted appropriately. A double tap seems like a perfectly reasonable response to attack with a firearm... it boils down to whether the cop in question had reason to believe such an attack was happening.
People have mentioned the cost of MRI scans in the US.

How much would it cost to buy a bunch of scanners (full body, and bucket-type for arms and legs) and employ technicians to do the scanning and offer this as a service to hospitals?

You could have technicians working on shifts to have out-of-hours scanning.

The scans are provided in electronic format to the patient and to the doctors specified by the patient. The centre encrypts all the scans and stores them for X years to cover regulation and litigation.

There's a big capital investment cost, but you're not doing any actual medicine there (no interpretation of scans, for example) and so litigation risk is reduced. You can concentrate on churning people through the machines, you don't have to give way to emergency cases that need immediate scans.

And the price of a scan can be listed up front.

Is this a stupid idea? (Or is it already being done?)
And that is why there is more than 1 type of game- because there is more than 1 type of gamer.
Ask HN: Is there anyone with "controversial" karma?
Not just throw away accounts, but someone who posts regularly and makes both very high and very low karma posts?
Thanks for the awesome advice! Indeed, I have been planning to do that for a long time now, but writing a good blog post takes time and in most cases it is easier to write comments on threads such as these.
How-to recreate the Twitter search form for your website
Criticism is not hate. It is criticism. It can come from friends, enemies, or yourself.

Also, Chomsky has always been severely critical of authoritarian and violent regimes across the world; the reason he has focused disproportionally on American regimes is due to the moral principle I referenced above.
I'd say ("first time") setup is pretty easy (and has been for a while). The tricky part (as always) is managing the keys (the private key, and the (optional) revocation key) -- and managing trust.

Key management is tricky because if you have a truly secure pass-phrase (that is, one that contains >= 128 bits "worth" of entropy (or even >= 65 bits which might be enough), a pass-phrase that can be considered at least as secure as the symmetric session keys) -- then that is going to be awkward to type in (and remember). And if you don't -- then you need to be (extra) careful about where you store your secret key ring, where it is backed up, etc (you should be careful about this anyway).

And it is still tricky to carefully manage which keys you trust, and bootstrapping trust is hard. The latter can be alleviated somewhat by having a few "designated CAs" in a company -- eg: have the IT department set up GPG, and make sure that they verify and sign people's keys along with setting up accounts etc.
> Anyway, you're drawing the wrong conclusion - it's astounding how close the US mortality rate is to the Indian, which attests to how good the US system is at operating successfully on more complex, elderly patients. Of course, you could argue that the US has optimised the wrong thing, at great expense...

Is that connected to the extra funding that older people get?

What happens if we compare mortality in people under 65?
It also looks like using ansible + git. However, also gitflow is just a clever use of git branches, but having a standard way of doing things using simple existing tools (git + ssh here) defined by someone who has studied the problem is very valuable to other people who has similar issues, but didn't study the case yet.
Ubuntu forums attacked
I do believe the intelligent folk around here can handle a discussion on pragmatism vs. righteousness without needing a sugar coating of b.s. pop culture labelling it nedstarkism....
Does everything have to be racist nowadays?

I'm an "old white guy". I wasn't offended.
That particular daft idea was killed pretty quickly (by the sounds of it came from some official at the MOD) because that kind of arrogance is exactly what motivates a lot of people in Scotland to look seriously at independence.
It would just use a default palettization system.
How to stop YouTube sucking
I think the OP meant that when there is a job posting relevant to those [JVM] languages, it often means "yet another CRUD/Enterprise" stuff.

Although, Android did some diversification for Java programmers, right.
Git is a source version control system. Why does everybody keep trying to use it as a deployment tool?
The Vitamin Myth
I knew that the CGB allowed you to pick among the hardcoded 12 color palettes (by holding down various key combinations at the Nintendo logo boot screen), but after reading the article I was curious about this as well. I wonder why they decided not to make the CGB recognize the SGB palettes?
"Australia Tax" is real: Infrastructure and Communications report
That's great, I'm happy for you. However, implying that people of the same race look alike as to be indistinguishable from one another is offensive to a lot of people.
Youtube was almost unwatchable on my 50/30 FiOS till I did this http://mitchribar.com/2013/02/how-to-stop-youtube-sucking-wi.... This completely transformed my youtube experience to one that's fine compared to waiting 10 minutes for a 1 minute 240p video to buffer enough I could watch it all the way through.

Now the only problems I have are with the semi-broken new player, fast forwards and rewinds are often broken, full screen doesn't always full screen etc.
I find that this rather old video from OSCON 2007 by the incredible Simon Peyton Jones (of F# and GHC) is the most inspiring Haskell video there is. It uses the X window manager XMonad as the basis to explain many important concepts of Haskell and testing (QuickCheck). It is self contained and no previous knowledge of Haskell is needed:

http://blip.tv/oreilly-open-source-convention/oscon-2007-sim...
Unfortunately, my experience with corporate America aligns strongly with this post.
This will be a difficult fight to win if those they are working against happen to be intercepting phone calls and other communication. Here lies the whole problem with mass surveillance and could be a different way to help explain why the NSA and other agencies capabilities need to be curtailed.
"How should we make it attractive for them [young people] to spend 5,6,7 years in our field, be satisfied, learn about excitement, but finally be qualified to find other possibilities?" -- H. Schopper

This policy, which leaves the staff member in the unknown for almost five years concerning the possibility of obtaining an IC, ensures too great a flexibility to the Organization and imposes too much precariousness and insecurity on the staff. [...]
Unfortunately, and to our great regret, this situation will create even more anxiety and insecurity. This will be difficult for LD staff to cope with. Indeed, even while giving complete satisfaction, they have no forward vision about the possibility of pursuing a career at CERN.
'World's biggest online fraud': Suspect's phone had 'location' switched on
The slides are here: http://research.microsoft.com/en-us/um/people/simonpj/papers...
CssFx.js: css polyfill
WarGames: Google vs. Apple - Google Launches Operation GhostFruit
If your application doesn't need to connect to the business' other systems, then you can write it in whatever way you want. For any significant system, I'd recommend using an MVC or MVP pattern (see Martin Fowler's excellent articles - I prefer the "Passive View" for its testability).

If you're selling to large enterprises, the other thing you'll need to be is consistent. You can have short release cycles if you want, but the company's IT department may not upgrade each time you release. You'll need a very defined way of jumping several versions (e.g. Many companies completely skipped Windows Vista, staying with Windows XP longer than Microsoft would have liked and then upgrading to Windows 7).
>> A doctor trained in India is no less qualified than a doctor trained in the US.

This might be objectively true (which you could reasonably determine through some combination of standardize testing and surgery complications/outcomes), but if you ask 100 people on the street in US whether they would prefer to see a US MD or an Indian MD for their heart surgery, I bet 97 or higher would prefer the US MD. The tiny remainder would probably show no preference.

Their is a brand power of a US medical education, which is especially strong for US patients.
Ask HN: HN Political News Overload?
There has been a noticeable increase in political topics since I joined HN a few years back. The HN Guidelines lead off with the following:

"Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon."

Some of the stories posted are indeed of specific interest to community. Very few are evidence of some "interesting new phenomenon". Most are a rehashing of the same old topics.

One of the most admirable things about hackers is their ability to accomplish great things without - or in spite of government. The recent preoccupation is a bit sad. Great minds could be focused on better things.

Any thoughts on solutions to this concern? Yes - one would be to ignore political posts and move on to others of interest. But based upon comments I have seen by numerous respected HN members, I am not the only one seeing this. Any thoughts on how filter/tagging/flagging might apply?
Is the truth about the obesity "epidemic" this simple?
Ah - I'd never really thought of it like that. So when you meant "strange" you meant "nice strange", not "scary strange". If that is the case the I am standing down from my state of ranklement ;-)

[NB I believe the French (our occasional ancient allies) - had a saying along the lines of "As touchy as a Scotsman"!]
Tolerance is the word you need to look up. If this technical way to censure the internet is implemented in a society that boast to be free, this is just another way to control information. Which can very easily degenerate into intolerant views.

Just imagine that tomorrow the common view in the UK is that China and all its citizen are the spawn of the devil, and any message coming to contradict this is to be censored out of the british internet, because it goes against the official view .... Only the technical savy being able to see what are the views from of others outside the UK.

Imposing your view onto others is not the way forward.
I'm surprised that how many otherwise smart people gets tripped up by this. The only time you can deduce something from the exchange rate is if you compare the difference between the two rates over a longer period of time. Then it can roughly tell you things about difference in direction of inflation between the two countries, and the effect on wages and imports/exports. If the difference between the exchange rate between two countries doesn't change for a long time the prices of goods in both countries end up being roughly the same.
A bit of feedback:

* Nice and simple design

* I can't select the "Contains" or "Ends with" fields (this may be intentional)

* I'm pretty sure it should be Boys' and Girls' rather than Boy's and Girl's

* As Ecio78 mentioned: needs to be case-insensitive

* If I type too quickly in the "Begins with" field, it only matches the first one or two letters (e.g. Begins with bor returns Byson, Byrum, Byron...)

* I could eventually select the "Contains" and "Ends with" fields after messing around with it, but then couldn't sort by "Popularity" until reloading (at which point I couldn't select the text fields again)

* It turns out that I can only select all the buttons and text fields if the browser is maximised. Looks like div#myModal is covering a number of interactive elements and preventing clicks at a certain screen height and below

* Popularity graphs are a nice touch and make it far more interesting to play around with, but I didn't realise I could view them for quite a while (thought I could only see the tooltip)

* Disappointed with the lack of "Bort"
And the other 10% are told by psychologist that they have a Self-esteem problem.

Society as a whole is to blame for the 90% believing they are part of the 10% best. If society had its way it would be a 100% of people believing they are part of the 10%.

And the spark that created this was created by psychologist. Which are also responsible for the high percentage of narcissist (compared to previous generations) that our society have.

Before: you had to actually do something to prove you are an alpha.

Now: people believe by default that they are alphas while the rest are betas.

This is terrible, because those who would could actually become alphas would not do it, because they believe they are already alphas, so they do not work as hard.

Because of this society as a whole is getting worse, not better.
Amazon CloudFront & Route 53 Expand to India
Ultra-thin e-skin could lead to advances in medicine, cool wearable computing
For reference, the underlying cause is that IPython is written assuming that there will only be one instance of it in a process. Fixing that assumption is on our radar, but to be honest, it's quite low down the list of priorities.
This guy theorizes that people had one or more of these three factors in their life in the past:

- A low-carb morning;

- A low-calorie evening;

- They drank lots of low-calorie fluids.

He suggests that "bad foods" wiped out most of these three experiences for most people, and/or that they made bodies more susceptible to obesity.

But mainly, he says that by doing simple things to add these three factors back that everyone he's shared this diet with has succeeded in easily losing weight without changing other factors, like exercise.

However, he's a personal coach, and so all his clients have also had his support in trying this. Has anyone else tried it? Any comment on his theories?

The diet is:

1. Drink as much water as you can stand when you get up (water bottle by bed suggested).

2. For breakfast, only eggs, as many as you want.

3. Drink lots of water before an early dinner.

4. Snack on low calorie foods in the evening. Most of his clients use air-popped popcorn with butter-flavored spray and shake-on low-calorie seasoning.

Otherwise, eat and exercise however you like.
FogBugz Project Dashboard v 1.0
A better solution is length-encoded lists (often called Vectors):

data Vector length a where
Empty :: Vector 0 a
Cons :: a -> Vector n a -> Vector (1 + n) a

But Haskell isn't very good at such encodings. Type-level computation is often not worth it.

That said, even NonEmptyList is sometimes useful. For example, some Prelude functions could use it:

group :: [a] -> [NonEmptyList a]

Making common idioms like:

map head . group ...

Safe again.

Not sure what you mean by:

> How could you get the last element from your NonEmptyList? How could you tell how many elements in it?) Exactly two.

import Data.Monoid
import Data.Maybe

lastNel :: NonEmptyList a -> a
lastNel (NEL x xs) = fromMaybe x . getLast $ mconcat $ map (Last . Just) xs

lengthNel :: NonEmptyList a -> Int
lengthNel (NEL x xs) = 1 + length xs
Yeah - A lot of them are very vague.
Dan Shapiro has written a good post on this: http://www.danshapiro.com/blog/2010/09/how-to-read-a-patent-...

To summarize, he says:

1. Skip the title

2. Skip the drawings

3. Skip the abstract

4. Skip the specification

5. Find the independent claims, and read them

6. Back to skipping – toss the dependent claims (any claim that starts with “The _____ of claim _____” is essentially a refinement or detail of the parent claim).
Because you will find it is the best tool for many programming jobs.
What you describe sounds a lot like the problems the developed when supplying to government in general, whether it be IT, military, transport, etc. That said to me the US system sounds like it's so rigged that it has developed many of the same problems you encounter with government inflicted monopolies.
Not sure what you're trying to say here. You seem to be trying to defend the cost of a $100,000 operation by making a snarky comparison with outsourcing an IT project.

Is that actually what you meant?
I can't defend the US cost entirely. It certainly seems exorbitant. That said, I think there are some things baked into the US cost that most patients probably want. A certain degree of post-operative care that maximizes comfort under the circumstances, for example. Possibly also factors that affect the success of the surgery. Heart surgery isn't necessarily over once they close you up. It's great that surgery is being made so much more accessible, of course, but these procedures are probably not comparable.
> Right now I'm picturing the eye-rolls at Porsche when product and marketing announced the idea for the Panamara.

The sad thing is that the Panamera (in stark contrast to any rational thought and sense of aesthetics) is not a complete commercial failure. People with too much money are weird.
I think it's a great idea too, definitely need to work on beerend 2.0.

Couple of suggestions though:
Shipping: if you can analyse where backers are coming from, why not try to cut a deal with stores or brew shops/brew pubs which you could strategically locate where your biggest clusters of customers are. That way you could ship in bulk to single locations, and mail out certificates for backers to go and pick up their beerend. Explain why you're doing this to the backers, and for the stores, send extra they can sell, but they have to hold the reserve amount for backers. Plus you would be sending people to their stores that take their beer storage seriously, so they may turn out to be good customers.

Marketing:
Bottle end: maybe change the marketing focus of the product, as you said it can be used for wine bottles, cans whatever. Go all out, dev the 2.0 for glass shelves versions, patent it and sell it to fridge makers

Good luck!
I don't know, but it's a very annoying trend.

I appreciate the work that has gone into this code, but if you want to deploy using source control then you should really be looking into continuous integration and deployment.
EU, China resolve solar dispute
Medical equipment has to meet more rigorous standards. This reminds me of the news story where breast implants were being sold with low grade silicone in Europe:

http://www.bbc.co.uk/news/health-16391522

I realise that suppliers are probably taking advantage due to limited competition, but at the same time, I hope the regulation helps to protect us from sub-standard products.
It's still going to be problematic. There is a hidden selection bias that you can't get around. Eg in India there are still a lot of people that can't afford the CABG no matter how much it costs. Are those people less or more likely to die after surgery than the people that do get operated on? The answer invariably would be yes.

Do centres that do more surgery have better outcomes? The answer to this is already a resounding yes. There isn't any doubt about that, it's been shown over and over again for multiple different surgeries within developed countries. Surgeons knows this, and so do health insurance companies. But of course this has to be asymptotic. Doing 1000000 CABGs doesn't make you 1000 times better than the surgeon that does 1000. So I doubt there is any real difference between the surgical skill in Shetty's centre and top institutions in the US. It's an untestable question in any case. The important point is that the care overall seems grossly non-inferior to the US, not that the US is inferior.
While the results of the studies are true in that study (that those fake patients were misdiagnosed), the assessment that why they were misdiagnosed is (may be?) not directly related to their competency.

As a Indian (who comes from relatively simple background), I don't need a study to tell me that general/govt. hospitals that provide PHC are overcrowded, lack necessary support staff, lack necessary equipment.

What the bloomberg article is talking about is, another class of hospitals and medical staff. Narayan Hridayala, Fortis etc employ pretty good doctors.

I doubt that, any general statement can be made about - "doctors trained in India are less qualified than US", because it depends on lot of factors.

EDIT: Added "may be?"
Fatal Call 2012, Watch Movies Online Free, Full Download
Does it still have the `.git` folder? If so, I'll stick to writing regular build scripts, as nice as this seems. I also want to push a snapshot of a build artifact (sort of, it's PHP after all) - not sending a few folders, sending commands to the remote server to execute, etc.

Anyone have a better way of achieving what I want that doesn't require my hacked together `build.php --deploy` script?
If you do your bachelors in non-science field, you cannot get admitted without doing a post-baccalaureate, which can take 1-2 years additional. There are a lot of science requirements to even apply to medical school, that someone with a computer science degree, for instance, would not meet and would have to take those courses (i.e. biology, chemistry, biochemistry, organic chemistry etc.)