hacker news with inline top comments    .. more ..    28 Jul 2013 News
home   ask   best   6 years ago   
My Doctor's Office Asked me to Lie (2011) stallman.org
95 points by brandonhsiao  2 hours ago   41 comments top 10
haldujai 43 minutes ago 1 reply      
IANAL but I'm responsible for HIPAA compliance in my startup:

Assuming this is a standard private practice, this office has several violations of 45 CFR 164.520(a)(b)(c), assuming that he was also not provided this privacy statement within 30 days with a reason for why it was not provided on the first visit.

This makes them liable for $50,000 in fines per failure to a max of $1.5 mm (this would be a clear cut case of reckless indifference.) The DHHS OCR is always looking for some head to serve on a platter to justify themselves as well.

His amendment to the form is damning evidence and that receptionist should be fired, there is no excuse for basic HIPAA noncompliance in 2011 (8 years after the fact).

Edit: What some people don't seem to understand is that signing the privacy practices notice (the form in question here) does not mean you agree to the terms and conditions outlined. You only sign that you have received them. Additionally, whether you sign the form or not it applies to you, and whatever that form stats HIPAA clearly outlines what powers the covered entity (the doctor in this case) has over your information.

antiterra 30 minutes ago 2 replies      
While I doubt the policy was anywhere near 3000 pages, this kind of thing is indeed ridiculous. Reading the document means very little in regards to understanding what it says, much less what it means in regards to court doctrine. I also insist on reading the privacy policy at doctors offices. Once, a receptionist gave me a great deal of grief, then finally handed me their only printed copy. It was just one two-sided page, but it was ragged, creased and stained. Classy.

What's less pointless and far more upsetting is the practice of pharmacies instructing customers to sign/check the "I do not wish to have a consultation" area on forms when buying prescription medicine. That has happened to me at a number of pharmacies in NYC. When I ignore their instructions and start signing the area that requests a consultation they sternly tell me I'm signing in the wrong place. Then there's a big sigh when I say I actually want to talk to the pharmacist. Inexcusable and disgusting.

zdw 1 hour ago 5 replies      
This is an example of engineering by lawyers.

To get rid of this, I recommend the follows - a mandatory "minimum reading period" given for any document, that prevents it from being turned in, calculated from the average HS graduate reading speed.

Also, before any meetings regarding revisions of said document, everyone involved in revising the document must A: be present, and B: serially, read a copy of the document, invoking the reading penalty multiple times over.

Optionally, to avoid this process, the document can be totally scrapped and replaced with an entirely new document, provided the new document is limited to 1/10th the reading length.

This would greatly reduce the amount of stupid long documents, and I see no downside.

skore 31 minutes ago 0 replies      
I suspect there is some kind of mathematical ratio concerning EULAs (in whatever form) that somebody figured out and that is just getting more and more absurd with each year that passes.

The basic idea is that the user wants something (in this case medical treatment, but it could also be music via iTunes) and that's all nice and well - BUT! - one last caveat, we need you to sign this thing here.

Now the ratio kicks in - if your desire for "the thing" is big enough, "the thing you need to sign" just needs to look both terribly unimportant ("yadda yadda, nobody reads this") but at the same time important enough to be understood as necessary ("oh everybody has legalese upfront these days, that's just the way things work, who cares"). Bonus points if the process you're going through happens very often to a lot of people ("everybody just clicks OK and chuckles about it").

Asking anybody to sign 3000 pages of legal statements without giving it too much thought is bonkers, but everybody just assumes "well, they probably can't do anything terrible, because our laws prevent that, right?". So we click through EULAs and sign agreements that are now just nuisances getting inbetween us and our desire for "the thing we want".

The people who make these agreements do them because they are required to have them, by law or circumstance (CYAs). Not having an agreement is not an option. The people who sign the agreements do that because they have already decided that they want "that thing" no matter what. Not having the thing is not an option.

What a profoundly weird situation. Through what I would guess were a couple of outlandish precedents, we now have established a custom that none of the involved parties cares about nor has anything to gain from, really. But we still do it.

It's like two sides playing soundwaves with opposite phases, cancelling eachother out. Everybody assumes that's ok, because it's quiet. But you could just as well simply stop playing the damn sounds.

8ig8 13 minutes ago 0 replies      
The whole song and dance bugs me. It's not practical. What patient is really going to read a 3,000 page document? How long would that even take? How much would a typical patient even understand?

Who benefits here? Lawyers? Insurance companies?

It's like that fine print on TV commercials. No human can read it given the size and the duration on screen, but that company covered their ass by having it there.

philwebster 1 hour ago 1 reply      
jonknee 25 minutes ago 0 replies      
I usually just do not sign without saying anything and have not had a problem returning doctors forms mostly empty (especially no SSN, that's asking for trouble). It's highly likely that no one at the office has any more insight into why the information is being asked than you do. If it's critical they won't leave it to a line on one of many forms.
gamerDude 46 minutes ago 1 reply      
I love how not only do you sign for something that you didn't read. But they can then change the privacy policy without sending you a new copy to agree to.

Seems a bit odd.

justgottasay 15 minutes ago 0 replies      
I have heard that these Privacy policy statements also make the doctor (or his assignee) a 'co-author' of anything that you may write about your experience in their office. This allows them to issue take-downs on bad reviews that end up online.
_ak 1 hour ago 5 replies      
Nobody reads Software License Agreements. Barely anyone reads (and is able to fully understand) the GPL (no matter which version). That's real life. Suck it up, Stallman.
SkyMall's SkyFall priceonomics.com
162 points by DavidChouinard  5 hours ago   45 comments top 12
aresant 3 hours ago 4 replies      
Here's what I think happened:

a) Xhibit has built a solid digital agency team on the back of nutraceutical affiliate marketing offers, and enough revenue to support a trailing $300 - 500m valuation. But they realize their business isn't sustainable, and want to unlock the value of their team & experience with a larger play. They have failed at doing this with their own projects.

b) Najafi Companies, that originally owned Skymall, recognizes that the continued move to digital will eventually, and probably quite rapidly, decimate what is effectively a print advertising business in Skymall. They need a forward looking strategy, and a team that can execute said strategy ASAP.

c) Given that both companies are in Phoenix, a fit is recognized, and Skymall's recently appointed CEO Kevin Weiss is named CEO of the merged organizations. They sign him to a 5-year agreement to develop the digital strategy for Skymall and, given his background at "Author Solutions" which shows his experience in transitioning print-to-digital, this makes sense.

d) They hatched this plan when Xhibit's CEO met Skymall's CEO standing in line to use the restroom at a Phoenix Sun's game (a team that Najafi Companies has an investment in).

(1) http://biz.yahoo.com/e/130621/xbtc8-k.html

rohin 4 hours ago 1 reply      
Author here. We published this about a month and a half ago so the stock price information in the post is out of date.

Since then, the stock price of the acquiring company (XBTC) has fallen roughly in half.


ErikAugust 4 hours ago 1 reply      
Xhibit's "Twityap": http://www.twityap.com/

What an insulting joke.

Looks like their Twitter account was suspended: https://twitter.com/TwitYap

Elancer from Punjab who put the app together has a couple screenshots: https://www.elance.com/samples/twityap-android/71857479/

Totally funny stuff...

draz 4 hours ago 4 replies      
I propose a 4th reason why they merged with Xhibit: the owners of SkyMall realized that with WiFi becoming more and more prominent on flights, bored traveler are less and less likely to flip through their magazines, but instead get online (where they'd have their own set of advertisements, shopping capabilities, etc). I think, therefore, it was the right move to cash out before companies themselves pull out of their agreements with SkyMall.
Afforess 4 hours ago 1 reply      
Seems like a fitting fate for Skymall. A company that profits by selling overpriced shiny garbage is bought by an overpriced and shiny company, that is garbage.
skybrian 3 hours ago 0 replies      
I think the most plausible scenario is that SkyMall wasn't a good investment to begin with, so their private investors dumped them.

We have no hard numbers. Magazine advertisers often don't pay list price for ads and their expenses are private deals with the airlines, who are likely to drive a hard bargain if they can. And I'd be skeptical about how many people actually read them regularly; a survey commissioned by the company could be exaggerated or flawed in some way.

jwheeler79 3 hours ago 1 reply      
From their 10-K: "We owe $375,000 at a fixed interest charge of ten percent (10%) regardless of the time of repayment to four shareholders due March 31, 2014"

That means they issued a 10% bond sale that four dumbshits, already holding common shares, bought into. A 10% bond!

When spain was on the verge of insolvency, they were issuing bonds at 7%

eksith 4 hours ago 0 replies      
Funny thing is, I've browsed through for some ideas for electronics projects (not to use as-is, mind you, just to fiddle with) and found parts at wholesalers. What can I say, they were a handy supply of barely usable, often unnecessary rubbish, but as a museum of oddities and bad ideas, it was rather inspiring.
toble 3 hours ago 0 replies      
Couldn't there be lots of other reasons? Like the current owners may have been forced to do it? From reading the article, I got the impression that this business was being passed around like a toy. Are the previous owners indirectly linked to investors in the airlines that carry the catalogue? Or members of the same club? I think I have watched too many detective shows, but there you go.
lifeisstillgood 2 hours ago 0 replies      
Isn't the simplest explanation the best? SkyMall was simply made an offer they couldn't refuse.

Don't sell horses heads in the magazine do they?

cpks 3 hours ago 0 replies      
Last time I saw something like this, threats from the Russian mafia to the selling party were involved. No kidding.
awongh 4 hours ago 0 replies      
twityap?!? you can't make this stuff up.

It's sad that this might work to get people to part with their money.

RubyWarrior - Bloc bloc.io
110 points by Dekku  5 hours ago   25 comments top 18
phoboslab 3 hours ago 1 reply      
Very cool! Proud to see that it's made with ImpactJS[1] (my game engine :))

[1] http://impactjs.com/

hcarvalhoalves 23 minutes ago 0 replies      
Had a lot of fun with my rusty Ruby on this game. Here's my solution to beat level 3 onwards:


hayksaakian 48 minutes ago 0 replies      
It would be cool if the game commited your code to a github repo every level.

This way you could see your own progress, and see what solutions other came up with without bugging them.

stormbrew 32 minutes ago 0 replies      
Feature request: After you've beaten it once let you go through all levels with the same code. Right now it doesn't let you use the features it hasn't told you about.
mmanfrin 1 hour ago 0 replies      
This is really great, but it would be even better if it showed where the error it's finding is located. I am getting some weird errors that I can't spot-find.
nonrecursive 23 minutes ago 0 replies      
Oh man, I love this!

I especially loved this: "warrior.feel.empty?". Allova sudden my RubyWarrior's getting all existential!

matthuggins 2 hours ago 2 replies      
Cool idea, but I don't think it makes sense for there to be both a Player class and a warrior object. They seem like they are/should be one in the same. At the very least, I think behind the scenes, the Player class should look more like this such that the warrior object is always available, and I don't need to pass it around from method to method that I define. e.g.:

    class Player      attr_reader :warrior      def initialize(warrior)        @warrior = warrior      end      def play_turn        # I can now access `warrior` here or in any other methods I write      end    end

marcamillion 3 hours ago 0 replies      
This is VERY, VERY awesome.

As a web-rubyist, this forces me to think in a different way than I normally would.

Thank you for making this.

DanielRibeiro 4 hours ago 0 replies      
joshuak 3 hours ago 0 replies      
Akkk... sound... must... turn... off!!!

Ok default sound way too loud, and at least on Safari the little speaker icon in the top left doesn't seem to do anything.

saebekassebil 3 hours ago 0 replies      
Had to implement a

    if not warrior      return nil    end
in the play_turn method, to workaround a bug. But other than that, this is great!

hardwaresofton 1 hour ago 0 replies      
First couple seconds was wondering where the hell the sound was coming from, rest of the seconds were in awe. Awesome job.
lostdog 1 hour ago 1 reply      
It would be great if either `print` or `puts` worked.
Stratego 3 hours ago 0 replies      
I really like how this manages to introduce some object-oriented principles stealthily while mostly focusing on linear logic. Great job!
joemclarke 3 hours ago 0 replies      
This is awesome, glad to see I can put my ruby skills to good use playing a game!
ulisesrmzroche 3 hours ago 1 reply      
How do you tell the character to stop on a space when walking? That monster keeps killing me.
gpxl 1 hour ago 0 replies      
This is a lot of fun. Well done! :)
Bluestrike2 3 hours ago 0 replies      
Ok, that's kind of fun :).
Why would useless MOV instructions speed up a tight loop in x86_64 assembly? github.com
33 points by nkurz  3 hours ago   11 comments top 3
rayiner 2 hours ago 1 reply      
This is Core 2, so it still has the P6's micro architectural limitation that it can only read two (or three?) values from the register files each cycle. But it's a 4-way processor, so it can potentially need up to 8 operands. If the other operands are on the bypass networks, it's fine. If not, then the CPU stalls. My guess would be that the MOV has the effect of keeping an operand on the bypass network long enough to avoid a stall. Totally guessing, though, but that might explain why it's so sensitive to instruction ordering.
incision 3 hours ago 1 reply      
Interesting, relevant paper mentioned in response to the linked SO question:

MAO - an Extensible Micro-Architectural Optimizer - http://static.googleusercontent.com/external_content/untrust...

conductor 1 hour ago 1 reply      
Sorry for the off topic discussion, but I would like to give some attention to FreePascal. In my opinion, it is a great piece of software, and is so underrated. If you find C/C++ too error-prone or hard to learn, Object Pascal is a very good alternative. FreePascal is a multi-platform, Delphi compatibe Object Pascal compiler, can generates pretty optimized native code for multiple architectures (including ARM) and has plenty of libraries. If you already hadn't, please give Lazarus[1] a try, it's a nice RAD IDE (very similar to Borland Delphi 7) shipped with the FreePascal compiler.

[1] - http://lazarus.freepascal.org

GPGMail 2 is finally here gpgtools.org
134 points by lukele  8 hours ago   58 comments top 13
joshuak 7 hours ago 3 replies      
My company's internal mail goes through gmail so I decided after recent news to setup GPGmail and s/mime.

I identified a couple of usability issues, which where fixed. I'd say all in all its very good.

Regardless if you believe or care about the NSA issues, simply the idea of routing clear text email through mail exchanges, and advertisers should give you enough reason to follow the few steps it requires to generate a key, and start encrypting and/or signing email. Except for post cards we don't do this with our regular mail, so why are you ok with it with you email (and your email is far more machine readable).

GPGMail is not quite Grandmother ready, and unlike s/mime it doesn't really have an incremental value[1], but it is far more secure, and very easy to use once setup. Plus the other tools in the toolkit are useful for general encryption.

s/mime is another option, here are some pros and cons:

s/mime pros

  integrated with many mail apps  usually plays nice with mailing lists (adding a footer doesn't invalidate a sig)  works on iOS devices (perhaps others?)  has an incremental value even before all your contacts are using it[1]
s/mime cons

  based on a certificate authority model  cost money depending on the cert you get  requires a 3rd 'trusted' party  does not seem to be secure in some respects:    (web cert generation, no rules regarding sigh/encrypt/sign[2],    does not make use of a certificate request so anyone who has    even momentary access to your email can generate a cert to    masquerade as you)  your identity is associate with your email address not you    (you will need certs for each email address)

GPGmail/tools pros

  Based on web of trust instead of CA (web of trust is not required)  You can revoke your key if it is compromised  Based on you not your email, so you can use the same sig with any email address  You can even associate your picture with your key  Optional Anonymity  Strong cryptography  Use the same keys for non email encryption  Free
GPGmail/tools cons

  Less widely integrated.  Does not work on devices yet.  May break email lists (adding footers may change the sig, I haven't tested though)  Can't help much until your have other people to use it with.
[1] With s/mime you can sign email documents even if your friends don't have s/mime that can still see your signature is validate.

[2] See the answer by Adam Liss (not the accepted answer) for the security issues http://stackoverflow.com/questions/13512026/how-to-check-if-...

[Edit: formatting]

gcv 6 hours ago 4 replies      
The last version of GPGTools I looked at had the irritating habit of always installing its own copy of GPG into /usr/local and not letting me use my own version (e.g., from Homebrew). Is this still the case in version 2?

It would be far cleaner if it was more self-contained (e.g., included GPG inside its installation bundle), and then let the user pick an alternative OpenPGP installation in the preferences.

Steuard 4 hours ago 1 reply      
Observations after installing on 10.6.8:

* GPG2 seems to be up and running very nicely, and it was an easy switch to get Enigmail set up to recognize it. (My previous MacGPG installation evidently installed GPG1. That seems to be orphaned now, I guess? Any suggestions for an ideal way to clean out its old stuff? I haven't seen it mentioned on your site.)

* This is the first GPG distribution that I can remember using that didn't provide hashes and a detached signature to verify the integrity of the downloaded file.

* It looks like the provided man pages were not symlinked into /usr/local/share/man/man1 (to match the way that the binaries were symlinked into /usr/local/bin).

* For reasons I've yet to track down, the GPGPreferences preference pane hangs whenever I try to open it. (I'll file a bug and/or ask for help on your forums eventually; just mentioning it here as part of the experience.)

northwest 7 hours ago 1 reply      
Email encryption is a good start!

Personally, I think, the user is best served with the "darknet" [0] approach.

It's unfortunate that term "darknet" leads a big chunk of the general public to believe it's something "dirty", "illegal" or otherwise undesirable or even dangerous, which doesn't help its cause. So help the Internet out and spread the word:

[0] http://en.wikipedia.org/wiki/Darknet_%28file_sharing%29

RetroShare [1] is one of them and has the advantage of being the all-in-one encryption solution (VOIP, chat, messages, file sharing), while encrypting everything. It also eliminates the meta data problem which encrypted email has.

[1] http://en.wikipedia.org/wiki/Retroshare

EDIT: Direct link - http://retroshare.sourceforge.net/

Patryk 6 hours ago 1 reply      
For those of us who have never heard of this software, it would be great if somewhere prominent on the webpage it said what GPGMail actually is. Instead the most prominent thing is how many bug fixes and sleepless nights this mystery software required.
sandis 6 hours ago 1 reply      
Mavericks is not yet supported it seems - "Incompatible Plug-ins Disabled [..] Contact the makers of these plug-ins for versions that are compatible with Mail 7.0 and Message 7.0."
gmac 4 hours ago 0 replies      
I currently use Mail.app's built-in signing and encrypting capability with a free StartCom S/MIME cert. Does this offer something more/different?
Osmium 7 hours ago 1 reply      
I thought they just announced a new version recently? Is this a new version again, or just a new website?
blakeperdue 7 hours ago 4 replies      
How does this work? I assume all encrypted emails require both parties use the software, right? So, all my friends, associates, coworkers have to have GPGMail to read my encrypted emails?
jessepollak 7 hours ago 0 replies      
That was far and away the easiest and fastest walk through from download -> sending an encrypted and signed email that I've ever seen. Obviously, it only covers one platform, but it's a great start.
zombio 7 hours ago 1 reply      
Huh, has Google said anything about the naming similarity between GPGMail and Gmail?

Edit: Sorry HN for not knowing something that you know and asking a question about it.

adsche 7 hours ago 1 reply      
I am a bit surprised by the use of the modified Apple Mail.app icon. Are they connected to Apple somehow?

edit: just curious, sorry :/

undoware 6 hours ago 3 replies      
This is just MacOS nonsense. It plays in the Valley and at the mall, and nowhere else. The only reason it is on the front page of Hacker News is that we can't see outside our own event horizon.

Poke me when a popular web email service implements GPG.

Antibiotic resistance: The last resort nature.com
94 points by dn2k  6 hours ago   70 comments top 14
timr 4 hours ago 3 replies      
Things like this make me increasingly sad for our priorities as a society.

I realize that not everyone can be a biochemist and do antibiotics research, but we've reached a place where our most technologically savvy people are frittering their talents on food delivery services and cat videos. I have an advanced degree in biochemistry, and it's still basically impossible to get work doing antibiotics development. There's no money in it. I work on websites, because that's where I need to be to earn a living. If I could get venture capital to do speculative work developing new classes of antibiotics, I'd do that in a heartbeat.

What's the point? I don't really know. Rome is burning, I guess. Bring on the bread and the circuses.

(Postscript: $200M is considered a big initiative in this space. We spend BILLIONS on niche diseases: http://online.wsj.com/article/SB1000142412788732397500457849...)

tmoertel 4 minutes ago 0 replies      
What seems surprisingly ignored by most of the medical community is that many microorganisms harmful to humans can thrive only in environments that have been artificially stripped of the normally dominant microorganisms that humans are mostly well adapted to. Instead of fighting an ever-escalating arms race against resistant microorganisms in some imaginary war on germs, maybe we ought to stop screwing with the normal microbial environment and start learning from it instead.

I mean, is it really so surprising that when you salt sliced cabbage and let it sit in a crock for a few weeks no preservatives, no antibiotics that what you end up with, after the ambient microorganisms have had their way, is not only perfectly preserved cabbage but also delicious? That fermented foods naturally arise when you let traditional foods go bad and that they taste so good ought to suggest something. Its almost as if millions of years of natural selection in an environment devoid of modern preservatives and antimicrobial agents has made humans well adapted to (and even crave) the microbiota that naturally dominate the places where humans have traditionally lived and the foods that humans have traditionally eaten.

Taking us out of those environments makes our bodies and foods and hospitals competiton-free zones for modern superbugs. Seems like a really bad idea.

fragsworth 6 hours ago 2 replies      
> Davies, the United Kingdom's chief medical officer, described CREs as a risk as serious as terrorism

This is a descriptive strategy people need to use more often to put things into perspective for the average person and taxpayer. Many diseases pose risks vastly more serious than terrorism, but receive far less attention.

However, if you're aware of the actual risk of terrorism, something that is "as serious" as terrorism is really not very threatening.

scythe 4 hours ago 1 reply      
>That means, say infectious-disease experts, that their best tools for defending patients remain those that depend on the performance of health personnel: handwashing, the use of gloves and gowns, and aggressive environmental cleaning. Yet even research that could improve best practices has been short-changed, says Eli Perencevich, an infectious-diseases physician and epidemiologist at the University of Iowa in Iowa City who studies how resistant bacteria move around hospitals. We haven't invested in research in how to optimize even standard infection-control practices. We just blame the health-care workers when they go wrong.

It seems that a possible positive outcome of this could be cleaner hospitals. No infection is better than a treatable infection. Even if CREs are controlled, even if new antibiotics are developed, these outbreaks will keep happening and resistance will keep developing. Developing effective yet practical hygiene procedures is the only way to solve the problem once and for all.

DanBC 5 hours ago 1 reply      
Something else that's scary is drug-resistant gonorrhea, which has been found in Japan. (http://www.reuters.com/article/2011/07/11/us-gonorrhoea-supe...)

I've posted this clip before, but in case you missed it:


Here's a short snippet from a BBC Television programme (Horizon - 'defeating the superbugs') (http://www.bbc.co.uk/programmes/b01ms5c6).

It shows E.Coli developing anti-biotic resistance. There's a tray of nutrient jelly. The jelly is divided into sections. It starts with no antibiotic. Then there's a normal dose. Then there's a 10x dose, followed by 100x dose, followed by 1000x dose. The limits of solubility are reached - they cannot dissolve any more antibiotic into the jelly.

Then they drop E.Coli onto the normal jelly, and use a time lapse camera to show the growth.

After just two weeks the bacteria is able to live on the 1000x dosed jelly.

It's pretty impressive demonstration.

(Apologies for the suboptimal hosting site. YouTube's contentID blocks this video worldwide.)

w1ntermute 6 hours ago 3 replies      
> Initially, most individuals carrying bacteria with the new resistance factor had some link to clinics in India

One big problem is that in India, lack (or poor enforcement) of regulations results in abuse of antibiotics, which leads to the development of resistance. People are also much more susceptible to infectious disease, due to poor public health policy (lack of clean water, etc.).

chestnut-tree 1 hour ago 1 reply      
Many years ago, I remember seeing a BBC documentary about phages that were (and are) used in Russia and former Soviet states in place of antibiotics.

What are phages? "Phages are naturally occurring viruses that kill bacteria. Once they get into bacterial cells the phages' DNA replicates until it kills the host.

Doctors in Georgia, and in other countries that were in the former USSR, have been using this therapy for 90 years. But medics and drug regulatory bodies in most places in the developed world have been reluctant to accept that it works."

From: http://www.bbc.co.uk/news/health-21799534

jivatmanx 6 hours ago 4 replies      
The lack of advancement in antibiotics is a stark contrast to the recent improvements in treatments for so many chronic diseases.

Whatever the reason the free-market pressures here are so weak, antibiotic development should consequently be a priority in government grants. I wonder if there could even be intergovernmental cooperation here?

zw123456 30 minutes ago 0 replies      
My Mom was I guess sort of a hippie ahead of her time but she used to always rail against anti-bacterial soaps and etc. She used to resist using the dishwasher and anything anti-bacterial, and would say that it was good for your immune system to be exposed to germs once in awhile. The joke in the family was that she just did not want to have to do too much housework, But actually, she may have been on to something.
joshuak 4 hours ago 4 replies      
Just out of curiosity does anyone know of research proving or disproving the viability of using 'safe' bacteria to defend against dangerous bacteria?

I've often wondered since we've selected for super bugs buy killing off the easy to kill ones with antibiotics, couldn't we intentionally reintroduce the easy to kill ones (or something similar but benign) so that the super bugs have no population advantage? Instead of being the only guys on the playing filed they'd have to compete with the benign bacteria which would, in my thinking, limit their growth potential.

jechmu 2 hours ago 0 replies      
Another reason (which I wish I had known) to treat antibiotics as a last resort is Clostridium difficile (C. diff). In addition to killing the bad bacteria in your body, antibiotics will also kill the good bacteria in your gut. This in combination with exposure to C. Diff (rampant in US hospitals) is a very bad thing.

When the good bacteria in your gut is killed, it frees up real estate giving any present C. diff an opportunity to overgrow and wreak havoc. If this happens, the road to recovery can be very long. And to add insult injury it takes bleach to kill any C. Diff you happen to spread to surfaces in your home and this often results in patients re-infecting themselves repeatedly.

emeerson 42 minutes ago 0 replies      
This looks like a viable research route? New pathway for eliminating bacteria thats viral instead of antibiotic (fungal?) based:


Can anyone speak to the validity or promise of such research?

plg 5 hours ago 0 replies      
As laypeople we seem to think about this issue much like programmers think about algorithmic efficiency ... who cares if my code is messy, slow and non-optimal, all I need to do is wait a few years for CPU speed to double and nobody will notice.

i.e. most people think, just wait a few years until the scientists develop a better antibiotic. Cat and mouse.

balsam 6 hours ago 1 reply      
I was relieved the map showed Israel as a hub instead of India (which was cited as the "source"). if you think Asiana scored it for "culturalism" then this here could win the whole game. First disclosure: not an Indian.Second disclosure: before clicking on the link I was expecting India or Africa. You know, some tropical third way place? Maybe I just have the wrong kind of paranoias. Bill Gates really needs to use his stature in India for this. If anything is hard object versus immovable force, this is it.
Scoping in CoffeeScript and JavaScript raganwald.com
12 points by waffle_ss  1 hour ago   3 comments top 2
WalterSear 1 minute ago 0 replies      
The addition of the Let statement to ES6 makes this discussion moot, while bypassing coffeescript's sketchy globality.
michaelwww 27 minutes ago 1 reply      
This article "CoffeeScript's Scoping is Madness[1]" and the reddit programming discussion thread[2] convinced me to scratch CoffeeScript off the list of languages to consider. Ain't nobody got time for that.

[1] http://donatstudios.com/CoffeeScript-Madness

[2] http://www.reddit.com/r/programming/comments/1j1cw7/coffeesc...

Show HN: This page will disappear in 10,000 views blinklink.me
78 points by teddynsnoopy  5 hours ago   53 comments top 19
richardv 5 hours ago 1 reply      
Kinda feel like a jerk on this one. Wasn't really expecting to be able to nuke it so easily.

    ab -c 30 -n 3000 http://www.blinklink.me/b/4XIxfoeF4C0    Concurrency Level:      30    Time taken for tests:   93.802 seconds    Complete requests:      3000    Failed requests:        2137     (Connect: 0, Receive: 0, Length: 2137, Exceptions: 0)    Write errors:           0    Requests per second:    31.98 [#/sec] (mean)    Time per request:       938.024 [ms] (mean)    Time per request:       31.267 [ms] (mean, across all     concurrent requests)    Transfer rate:          182.47 [Kbytes/sec] received    Connection Times (ms)                  min  mean[+/-sd] median   max    Connect:      116  165 165.9    122    1276    Processing:   137  771 624.6    625    6827    Waiting:      132  733 595.7    601    6823    Total:        254  936 644.7    789    7062
Perhaps should have "view" throttling per IP. Quite a few mechanisms could have solved my abuse.

ggreer 5 hours ago 2 replies      
I'm not sure if the submitter created BlinkLink, but I hope the author had fun making it. It's a neat idea, and it exploits human psychology in clever ways. I like how the reward for tweeting increases as the number of views remaining goes down. Also, people are driven to share the link with their friends immediately since they know views remaining are scarce.

That said, it's pretty easy to mirror content. In case the link is dead, http://i.imgur.com/KGo7oRH.jpg is what was on the page originally.

Oh, and I found a UI annoyance. On the front page (http://www.blinklink.me/), the blue "Make a BlinkLink" button at the top that says is just a link to blinklink.me. The bottom button (which is a less-noticeable white) actually posts the form. You should probably hide the top button on the front page.

biot 42 minutes ago 0 replies      
Kind of like a Zynga game. At a certain point, you can't continue unless you spam your friends.
jmtame 4 hours ago 1 reply      
This is like Snapchat for the web, except it's too easy to take a screenshot of the content which means there's not much of a point to the view limit.

You could make it difficult perhaps by requiring the user follow a path with their mouse, otherwise white noise appears. That way they cannot actually move their cursor to take a screenshot. Maybe do something else to occupy one of their other hands, such as pressing a series of keys. Of course someone else could be standing there ready to push the "print screen" button or use a camera, like you can with Snapchat. Don't forget a time limit.

zefi 5 hours ago 1 reply      
A variant of this, involving payment, could be the future of journalism.
hornbaker 4 hours ago 1 reply      
Why does the view count change wildly up and down as I refresh?

Otherwise, love it. Needs a favicon. Get ready for viral growth.

ArekDymalski 2 hours ago 0 replies      
This could become a bit more useful if you could add clickable links in the message. Or other files (like PDF) instead of an image. Or if it worked in the opposite direction - "tweet to decrease the number of available views". Why? To create some kind of scarcity, if the content is really valuable.
shmageggy 4 hours ago 0 replies      
Reminds me of this http://www.savetoby.com/
Bjoern 2 hours ago 0 replies      
Just saw it at <1000..


jjoe 4 hours ago 0 replies      
What a great innovation that now content disappears...unless you tweet...
yaddayadda 5 hours ago 0 replies      
It'd be great to publicize a dataset of hit-times from each ip and from twitter accounts.
farolino 3 hours ago 1 reply      
I disagree with other posters, I think this is a great concept. It would be fantastic for brands to share promotional offers and voucher codes as people would have to tweet to revive access to the code therefore spreading the promo further.
coherentpony 3 hours ago 0 replies      
Am I the only one that finds this 'feature' utterly pointless?
azth 5 hours ago 1 reply      
And it's gone :)
adamlj 5 hours ago 1 reply      
Seeing the hits/sec on the count down is pretty impressive
paul9290 4 hours ago 0 replies      
Snapchat for URLs
bestest 5 hours ago 2 replies      
please forgive my humble input, but wtf?
xkcd Time - at your own pace geekwagon.net
97 points by Jeremy1026  7 hours ago   23 comments top 11
riobard 29 minutes ago 0 replies      
I went through the comics and read the story plot on http://www.explainxkcd.com/wiki/index.php?title=1190 but I have to say as a non-native speaker, I don't think I get it. Could anyone explain in a few paragraphs what the story tries to tell us? In particular, why is the dialog of the woman in the big castle on the mountain all blurred but still somehow readable?
memset 5 hours ago 2 replies      
Part of my daily internet routine, for the past 4 months, has been to check up on Time. Well, I guess it's back to work now!

(I also feel like I've missed something in the story. The wikis say that the story takes place far into the future. How do they know? Are there other references I've missed? Is this... a larger allegory, or something, that I am missing out on?)

cecilpl 49 minutes ago 0 replies      
For detailed discussion of this comic, see the following 51000 comment thread on the XKCD fora:


clicks 6 hours ago 0 replies      
I think it would be appropriate if someone just made a short video clip out of that.
h1fra 6 hours ago 0 replies      
For people like me that wasn't aware of the story behind the comic http://www.explainxkcd.com/wiki/index.php?title=1190:_Time
Spidler 6 hours ago 1 reply      
Of Epic scale, more individual frames than all the xkcd comics to date.

A grand and world-changing story for a people. Not spanning years, which a traditional Epic would require, but still containing acts of heroism and tales of adventure.

jimmaswell 4 hours ago 3 replies      
I'd really rather just have a zip full of the images so I could look through them in my image viewer. This takes forever to load them if I go through them any faster than a snail's pace.Edit: Just saw the button to preload them all. That's better than the zip, then. Using the play button doesn't work without preloading everything for me. I wonder why that's not done by default.
zdw 5 hours ago 2 replies      
Has anyone decoded the "other language" that shows up around frame 2664?
gpvos 5 hours ago 1 reply      
How can I view the debate that apparently is being held about some frames on that site? (It may be that a browser plugin is blocking it for me, but I could not find out which or how.)
gus_massa 6 hours ago 0 replies      
ngoldbaum 6 hours ago 1 reply      
Except it's not the end, it's still updating...
Stereogram Tetris lutanho.net
30 points by mikemoka  4 hours ago   13 comments top 9
crazygringo 2 hours ago 0 replies      
Wow... I'm actually amazed I can play this without difficulty.

It takes about a second to figure out what each new piece is, though.

And I'm pretty sure my eyes would ache horribly if I played it for more than about two minutes.

But, fascinating just to see that it can be done.

patdennis 2 hours ago 1 reply      
I have never in my life been able to see one of these things correctly, and I've tried since about age 7 or so. One day!
EGreg 25 minutes ago 0 replies      
Whoa, trippy. I did it and played a game but now my head feels kind of weird
Zr40 2 hours ago 1 reply      
I can easily see stereographic images where you have to focus on a plane in front of the picture, but with this implementation you should focus behind the picture. That's hard for me to do, and this implementation doesn't allow this to be toggled.
ColinWright 2 hours ago 1 reply      
I've always hated tetris, but I've always been good at seeing stereograms, including animated ones, so I thought I'd give this a go.

Can't lock on, and gives me eye-ache within minutes.

So if you're having trouble, you're not the only one. It might be wonderful, but despite finding auto-stereograms easy, I can't see this at all.

Two9A 2 hours ago 0 replies      
Yeah, I had a little trouble locking on to the well at first; I kept seeing the sides as pieces, and trying to move them.

Ended up alright though; score of 2080, and that's only because I lost vision after sneezing. This is a fun little concept.

Myrth 2 hours ago 0 replies      
Had no problem with seeing pieces, got 1720 score, but also got nauseous really quick..
OmegaHN 2 hours ago 0 replies      
It would be much easier to play this if you could pause without blocking the image.
sinkasapa 3 hours ago 0 replies      
This is just wonderful.
FBI admits to flying drones over US without warrants rt.com
119 points by northwest  9 hours ago   92 comments top 9
jurassic 7 hours ago 6 replies      
Did any of you actually read the article? Despite the sensationalist title, they're only admitting to 10 incidents since 2006 including one where a young boy's life was possibly on the line. I'm as anti-spying as anybody, but ~1 incident per year seems like a reasonable rate to me if a serious threat is motivating it. This is a far cry from pervasive Big Brother in the sky.
lotso 6 hours ago 1 reply      
"Florida v. Riley, 488 U.S. 445 (1989), was a United States Supreme Court decision which held that police officials do not need a warrant to observe an individual's property from public airspace."


_delirium 6 hours ago 2 replies      
Is the unmanned aspect the main difference here? Police have long used both planes and helicopters, and warrants aren't typically required in those cases.
iandanforth 7 hours ago 1 reply      
Two questions:

1. If I'm in my backyard and I have a high fence (private). And an FBI target walks by my property (public), how can they claim to not be surveilling me as well?

2. Is it unconstitutional surveillance to use Google Earth to see if I was home on the specific day their imagery was collected?

darkxanthos 7 hours ago 6 replies      
This doesn't bother me. I get that it's being equivalated to living in a police state but I don't view it that way. Police or FBI patrolling more efficiently seems progressive and economical. When I'm in public I expect that I don't have privacy.

EDIT: typo

rayiner 3 hours ago 0 replies      
In other news, my wife showers without a drivers license.

A warrant is not required for anything you can see from public airspace.

woofyman 7 hours ago 2 replies      
I'm somewhere between meh and concerned about this. One one hand, this is nothing new. Police have used airplanes to catch speeders for a long long time. But the breathless, OMG we're in a police state pushes me, for some reason, to take the contrarian stand.
donpark 2 hours ago 0 replies      
What's disturbing is that we're replacing clear lines with trust.
northwest 5 hours ago 0 replies      
Here's 1 map by the EFF (click the red link at the end of the article for the map by Google):


Applied Cryptography Engineering sockpuppet.org
73 points by sdevlin  8 hours ago   15 comments top 5
aston 7 hours ago 2 replies      
Normally tptacek would be right here to shill for himself, but I don't see him around, so I'll say it for him:

If you're interested in learning about the ideas in this piece via practical attacks you perform yourself, you should definitely check out his company Matasano's Crypto Challenge:


I've gone through the whole thing, and I can report that it's incredibly fun and incredibly enlightening. And you won't have to read a book to figure out that what Thomas is talking about here is legit.

gambler 5 hours ago 0 replies      
Applied Cryptography taught me several new modes of thinking about software design (which is not directly related to crypto at all) and provided a good overview of things that someone probably solved or failed to solve with cryptography. Plus, it has a decent historic overview of some algorithms failing. What else could you ask for?

I mean, yeah, it's an optimistic book. It talks about possibilities. How can someone to treat is as a developer reference is beyond me.

B-Con 7 hours ago 0 replies      
> If youre reading this, youre probably a red-blooded American programmer with a simmering interest in cryptography. And my guess is your interest came from Bruce Schneiers Applied Cryptography.

Yep. I read it at... age 16? It was old by the time I got to it, since I'm relatively young, but I still loved it. It didn't give me a spark for crypto, I had the spark when I ordered the book, but it did a very good job of nurturing and kindling it.

> The biggest problem with Applied Cryptography isnt the technical content, but the tone. It cant decide whether to be a tour guide or a handbook.

That's a good summary. Personally, I've always thought of it as a hands-on encyclopedia.

lucb1e 5 hours ago 0 replies      
> If youre reading this, youre probably a red-blooded American programmer with a simmering interest in cryptography.

Well yes my blood is red, I'm a programmer and I have an interest in cryptography. What makes you think everyone's American?

RasJones 7 hours ago 2 replies      
>> If youre reading this, youre probably a red-blooded American programmer ....

Err right. I'm black, Nigerian and have an interest + background in crypto...what's up with that man! :)

Anyway great coverage.

Hey Look, Software Just Ate VC startupljackson.com
59 points by joshuaxls  7 hours ago   11 comments top 4
seldo 1 hour ago 0 replies      
Are these syndicates only now possible because of the crowdfunding provisions in last year's JOBS act, or is it just that nobody thought of doing things this way before?
wikiburner 1 hour ago 1 reply      
Holy shit was Syndicate good. Probably the best experience I had playing games as a kid (and my intro to Gibson, Stephenson, and Sterling), with the possible exception of Populous.

Bullfrog was genius.

If anyone with any say in the games industry is by chance reading this, I would easily pay $99+ for a "Shadowrun Returns" style remake of the game, instead of sequels to the mediocre, Syndicate in name only FPS they released last year:


bencollier49 42 minutes ago 0 replies      
Not sure I completely understand this - what's the position in the States, can incorporated entities advertise the sale of stock to the public?

In the UK that's basically the distinction between a limited company and public limited company (PLC).

Gods help anyone who tried to find a way to sell stock in a limited company to the general public. Prison would beckon, I suspect.

Asparagirl 2 hours ago 1 reply      
So the Syndicate guys are kinda like real estate brokers, and AngelList is the MLS?
Bootstrap 3 RC1 twitter.github.io
241 points by taspeotis  17 hours ago   104 comments top 36
davidw 14 hours ago 11 replies      
I love bootstrap, but I'm completely unconvinced about the flat trend.

My site, www.liberwriter.com is squarely aimed at non-technical people who are not really on top of the latest trends. I could very easily envision them having a higher cognitive load trying to figure out what is a button and what isn't and so on.

What do testing and studies show about this?

nileshtrivedi 9 hours ago 4 replies      
List of all cross-browser gotchas from the Bootstrap site:

- Striped tables are styled via the :nth-child CSS selector, which is not available in IE8.

- IE and Safari don't actually support the <disabled> attribute on a <fieldset>

- Avoid using <select> elements here as they cannot be fully styled in WebKit browsers.

- If you add the disabled attribute to a <button>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.

- Keep in mind that Internet Explorer 8 lacks support for rounded corners.

- Badges won't self collapse in Internet Explorer 8 because it lacks support for the :empty selector.

- Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.

- Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".

It would be nice to see if any progress is being made on these.

ereckers 12 minutes ago 0 replies      
I'm happy about the mobile first approach. Simple things like 100% button widths is great. This was a modification I had to make to every Bootstrap site I built. I like the idea of having a single CDN for it too. Nice work.

Oh, I owe it to the thread - flat buttons.

aaronbrethorst 17 hours ago 4 replies      
Cue a dozen comments about flat buttons.

This looks like a nice set of changes for Bootstrap. I'm not sure how I feel about the grid class name changes, but then again, I went all-in on Foundation a few months back, so it doesn't affect me one way or another.

I'm sure mdo and fat have excellent reasons for using Less instead of Sass, but I'm a Rails user and I like Sass better to boot. Anyway, no matter, I'm glad to see Bootstrap is continuing to push forward!

baddox 17 hours ago 1 reply      
It has all sorts of bugs in Safari on my iPad. Switching screen orientation and zooming out cause the left sidebar to cover up the body text, I can sometimes get it to stay zoomed out way too far, and if I try to zoom in Safari crashes every time. Looks very slick though.
buro9 10 hours ago 0 replies      
For those wanting to try out Bootstrap 3 against an existing Bootstrap 2 site... note that if you use anything other than 12 columns that it won't work yet.

Simply: The grid is hard-coded to be 12 columns.

If you want more or less, then you need to adjust less/grid.css manually and reflect that in column count within less/variables.css and use grunt to rebuild.

Aside from the generation of custom grids being broken, no complaints about the rest and we've been following the bleeding edge for several months now and it's been fine. Yeah a couple of things have broken, but every change has been an improvement and that's a good thing.

rushabh 16 hours ago 0 replies      
We have built the new version of our web app on BS3. The migration from BS2 to BS3 was not too difficult. There are some new elements too like List View and Panels. Love the flat UI too. Feels very modern and light. Here is a demo of our app: http://demo.erpnext.com/
pgsch 59 minutes ago 0 replies      
The main problem I'm having with the bootstrap flat design is how to difference between button and (e.g.) labels/badges.In the previous version (2.x..) it was pretty clear for the user that a button was a button...
arocks 10 hours ago 0 replies      
I think Flat design is good from one perspective - easier to win client acceptance. The original Bootstrap is so familiar to everyone.

Even non designers have a Deja Vu feeling - "Oh, this is a very cookie cutter look. Can we get something more distinctive?". Of course there are excellent sites [1] which help in tweaking the base design but takes a lot of work.

Flat designs can be much more easily customized and developers can spend more time focussing on the functionality than the design.

[1]: http://bootswatch.com/

taspeotis 17 hours ago 1 reply      
The documentation makes reference to an announcement on the blog, which doesn't seem to be available. If anybody wants to keep watch, be my guest: http://blog.getbootstrap.com.

I've been keeping an eye on the pull request (https://github.com/twitter/bootstrap/pull/6342) and the gh-pages branch (https://github.com/twitter/bootstrap/tree/gh-pages) for other Bootstrap 3 information.

http://twitter.github.io/bootstrap/customize strongly suggests there will be another RC after this one.

dreamdu5t 8 hours ago 2 replies      
The modal is still not responsive. I've been using http://jschr.github.io/bootstrap-modal/ and am kind of disappointed that the new version isn't improving existing widgets like this.
marizmelo 5 hours ago 0 replies      
Well just use xtyle instead: http://xtyle.xchema.com

It's smaller and uses CSS property names as class names. You know CSS you know how to use it.

Techasura 12 hours ago 0 replies      
Just remove the "-dist" from the url orhere is the download url: https://codeload.github.com/twbs/bootstrap/zip/v3.0.0-rc1
k-mcgrady 15 hours ago 1 reply      
I'm launching a site in a few weeks which uses Bootstrap 2. Should I upgrade to Bootstrap 3 now or wait until the final version of 3 is released?
lenkite 7 hours ago 0 replies      
The Bootstrap grid system now appears crazy complex to me. I really wish all browsers would now support modern CSS3 Flexbox.
killion 5 hours ago 0 replies      
I find it funny that their examples of grids don't line up on the right side.

It totally speaks to my experience with their grids.

jdorfman 11 hours ago 0 replies      
Now on BootstrapCDN for reals
timkeller 15 hours ago 0 replies      
Congratulations on reaching RC1 after more than seven months of intensive work.
joeblau 8 hours ago 0 replies      
Congrats guys, I've been following the RC1 branch for a few months now and this looks great.
gugol 13 hours ago 0 replies      
I love it! But it's not Bootstrap, it's something very different. They shoulded name it different or keep maintaining the older version...
rch 7 hours ago 0 replies      
Seems like navigation might be broken on the Nexus 7.
xSwag 16 hours ago 0 replies      
Didn't know advertisements were allowed on github pages, I guess the developers have to monetize somehow.
conradfr 13 hours ago 0 replies      
Side menu (links) doesn't work for me in FF or IE, only with Chrome.
pseudobry 9 hours ago 0 replies      
http://getbootstrap.com/ looks like it got its design from Heroku's new website.
natch 16 hours ago 0 replies      
I get "Not Found" upon clicking the big main call to action, the Download Bootstrap link.
ing33k 7 hours ago 0 replies      
just tried replacing the css files with the new ones , navigation and many things broke ..but any how I like it, I will integrate it after checking out docs ..
jonaldomo 17 hours ago 0 replies      
I've been waiting for the dropdown events that were added. I started a project in Zurb Foundation today due to Zurb having the upper hand in responsive, time to reevaluate it looks like...
zekenie 12 hours ago 0 replies      
I kind of love the new form markup. It makes more sense to me than BS2.
thomasfoster96 11 hours ago 0 replies      
Flattest thing I've seen today.
hemezh 16 hours ago 1 reply      
Finally bootstrap with flat UI. Loved it. Looking forward to use it in my next project. Does that mean twitter might also launch a flat UI soon?
tednash 13 hours ago 0 replies      
Bootstrap is utterly brilliant in terms of validating an idea and indeed scaling one.
gcatalfamo 11 hours ago 0 replies      
is it just me or it feels somewhat sluggish on mobile? (nexus 4)
mangaprincess 16 hours ago 3 replies      
so0o0 do we have a gem yet
alixr 10 hours ago 0 replies      
I've never been a fan of bootstrap, namely because nobody modifies it and all websites end up looking the same.

But I will say its nice that they're going Flat. Much easier on the eyes, and much simpler to creative a responsive layout for multiple screen sizes.

emn13 14 hours ago 6 replies      
So what exactly is the point of bootstrap? It includes an entirely pointless (and poorly made) grid system; an excessive (and unnecessary) css reset; complex & slow selectors, and lots of default styling you're probably going to replace anyhow.

If it were a bunch of separate modules you could individually include and use as a template for your own style, you could actually use the parts you need: as it is, I really don't understand the hype.

The Science of Winning Poker wsj.com
49 points by bonchibuji  7 hours ago   18 comments top 5
tedsanders 7 hours ago 3 replies      
>A few years ago, a young pro named Phil Galfond published a crucial refinement to Mr. Sklansky's point. He showed that the right way to analyze a poker decision is to consider your opponent's "range"that is, the full set of different hands that he could plausibly have, given all the actions that he has thus far taken.

I find it impossible to believe that concept of a "range" was (a) invented a few years ago and (b) invented by Phil Galfond. This article is disappointing.

Edit: In fairness, the article's sentence is literally correct. But I cringe at its implication.

MichaelApproved 6 hours ago 2 replies      
For those interested in more poker discussions http://www.reddit.com/r/poker
tedsanders 7 hours ago 2 replies      
>Bluffing still matters, but the best players now depend on math theory

This is a silly byline. If anything, the best and most mathematical players bluff more than the older generation of typically more conservative players. Bluffing and math are NOT opposed principles.

jackschultz 6 hours ago 1 reply      
There's another element in there. The one about relative skill. Let's say that you're a much better player than the other person, and that you would win 90% of the time heads up (one on one, which we are going to assume at this point for simplicity). If this were the case, you would need to have a greater than 90% chance to win the hand all in for it to be a correct move.

This is also easy to understand if you, a novice, are heads up against one of the pros. It's a much better move for you to go all in on any decent hand and just try to get lucky to win, since if you try to play their game, you're going to lose.

newernpguy 2 hours ago 0 replies      
There are some references that could be interesting:


Go-based freegeoip.net now supports SSL for its API freegeoip.net
59 points by fiorix  8 hours ago   29 comments top 13
kyberias 8 hours ago 4 replies      
Why is it important what programming language was used in implementing a given web service+
emptystacks 7 hours ago 3 replies      
For those unfamiliar, this free usage limit is much more relaxed than Google's Geocoder, which limits you to 2,500 free requests per day.


realrocker 7 hours ago 1 reply      
Well written code except around //Check Quota . Scope for better readability there. Thanks!
karolisd 1 hour ago 1 reply      
Thanks, I've been looking for a Geo-IP API that supports both JSONP and SSL. Perfect.
nodesocket 3 hours ago 0 replies      
GitHub issues as their best.


Thanks guys for implementing it.

polvi 6 hours ago 0 replies      
These guys might consider allowing people to pay for more requests. Even with the source, it would be easier for some people to just pay you, and you can still keep everything open source.
manishsharan 4 hours ago 1 reply      
Is this a REST API over Maxmind db ?
disclosure 2 hours ago 0 replies      
See also https://dazzlepod.com/ip/ w/o hard limit; replace with any IP.
stock_toaster 4 hours ago 1 reply      
fiorix, I am curious why you are using sqlite/redis as a store for the geoip data, instead of using cgo in conjunction with libGeoIP.

Was it to enable updates to the geoip data if you get corrections (crowdsourced or otherwise)?

hgfischer 4 hours ago 1 reply      
Nice job!! The source code is very well written!
ivanbrussik 6 hours ago 0 replies      
NICE! I've been looking for something like this to interface with Piwik
supergrilo 7 hours ago 1 reply      
Great job!Finally a perfect geoip database with api application. :)
tlercher 6 hours ago 2 replies      
No IPv6 support?
Toybox, a Busybox alternative with a BSD license landley.net
77 points by networked  10 hours ago   34 comments top 6
cliffbean 6 hours ago 1 reply      
I am sympathetic to people who prefer BSD-style licenses for many reasons, including simplicity, GPLv3 overreach avoidance, and even just declining to give attention to a certain obnoxious man (regardless of what you think of the politics).

However, the individualist in me really likes being able to install my own software on my own hardware. The GPL license, specifically in the areas of a system needed to boot and minimally run, has successfully helped me do this several times in the past, by pushing vendors to deliver source for something that they probably wouldn't have otherwise. It doesn't always work, and it isn't perfect, but it has worked in some cases where seemingly nothing else would have.

As long as this continues to be the case, I won't celebrate the replacement of busybox for licensing purposes.

RexRollman 8 hours ago 4 replies      
Maybe I missed it, but why recreate Busybox? It it just about the license?

Nevermind, found it here:http://landley.net/talks/celf-2013.txt

mschuster91 8 hours ago 2 replies      
If I may ask,why all the effort of reinventing the wheel as there already exists the gnu userland/coreutils and busybox? Just because of the license?!
jimktrains2 8 hours ago 0 replies      
There use to be a little DOS GUI program called ToyBox. My dad installed it to allow easier access to stuff installed on our computer for my siblings and I.
ausjke 45 minutes ago 0 replies      
worked with Robert closely in the past, who is a real geek and a kind and nice person to work with, I'm so happy to see this coming along.
hoverbear 9 hours ago 0 replies      
I got to know Landley fairly well on IRC over a course of a few months, he was a really clever fellow. At the time Toybox was just in it's infancy, glad to see it maturing.
Tough Copyright Laws Chill Innovation, Tech Companies Warn Lawmakers torrentfreak.com
18 points by Lightning  4 hours ago   2 comments top
codex 3 hours ago 1 reply      
TL;DR: lobbyist group for special-interest industry A wants to change laws favored by lobbyist group for special-interest industry B. Both industry A and B are motivated by nothing other than self-interest; specifically, tech. companies that allow users to post content online are annoyed with requirements to police that content, and the more copyrighted content contributed online by users, the better their own business models become.
The Humble Programmer (1972) utexas.edu
115 points by tareqak  14 hours ago   46 comments top 10
stiff 8 hours ago 3 replies      
Has anyone here actually learnt what Dijkstra advocates in almost all EWDs and used it to any benefit? Basically almost all his essays in one way or another end up being about the need to prove programs correct using formal logic and specifically a particular approach to correctness proofs he devised. In fact he even advocates starting from a formal logical specification of a problem and then deriving the program using purely syntactical transformations.

I tried to read the "Discipline of programming" where he explains his approach, but it was barely understandable and it takes 300 pages for him to get to the point of developing simple algorithms of the type you meet in the first chapter of an algorithm textbook. It could have been the translation (didn't read the English original), but I doubt it, because I have never read anything technical from him that would actually be interesting. I am afraid his essays are liked because of the general sentiment for "more rigour" in programming, whatever it would mean, and not because of any understanding of what precisely he advocates and the merits of his techniques. The living proof is some comment in this thread how Dijkstra sheds insight into the value of TDD...

So, if you upvote his articles, what precisely have you learned from Dijkstra?

ColinWright 13 hours ago 6 replies      
An old friend, so many postings, so little discussion. Given the usual high standard of discussion here on HN, it's a shame that there's been so little about this popular submission. FWIW, I've upvoted this, because I really do want to see a balanced discussion about it from an up-to-date viewpoint.

It was the Turing Award Lecture in 1972 - it's over 40 years old. Printed in "Classics in Software Engineering" by Yourdon Press, 1979, ISBN 0917072146.

HTML: http://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340....

PDF: http://www.cs.utexas.edu/~EWD/ewd03xx/EWD340.PDF

Here are some of the previous submissions here on HN:










https://news.ycombinator.com/item?id=1799296 <- 3 comments

https://news.ycombinator.com/item?id=1894784 <- 8 comments





https://news.ycombinator.com/item?id=6112467 This item)

killahpriest 10 hours ago 2 replies      
tl;dr Programming has been ignored because hardware has a much more visible payoff. The impact of computers and the innovation in hardware will "be but a ripple on the surface of our culture, compared with the much more profound influence they will have in their capacity of intellectual challenge without precedent in the cultural history of mankind." That is, the intellectual impact of programming is more significant than the impact made innovation on the hardware side. At least thats what I think what Dijkstra is saying.

Some gems:

Test driven development, 1972.

Today a usual technique is to make a program and then to test it. But: program testing can be a very effective way to show the presence of bugs, but is hopelessly inadequate for showing their absence. The only effective way to raise the confidence level of a program significantly is to give a convincing proof of its correctness. But one should not first make the program and then prove its correctness, because then the requirement of providing the proof would only increase the poor programmers burden. On the contrary: the programmer should let correctness proof and program grow hand in hand.

For loops have brain damaged us.

Another lesson we should have learned from the recent past is that the development of richer or more powerful programming languages was a mistake in the sense that these baroque monstrosities, these conglomerations of idiosyncrasies, are really unmanageable, both mechanically and mentally. I see a great future for very systematic and very modest programming languages. When I say modest, I mean that, for instance, not only ALGOL 60s for clause, but even FORTRANs DO loop may find themselves thrown out as being too baroque. I have run a a little programming experiment with really experienced volunteers, but something quite unintended and quite unexpected turned up. None of my volunteers found the obvious and most elegant solution. Upon closer analysis this turned out to have a common source: their notion of repetition was so tightly connected to the idea of an associated controlled variable to be stepped up, that they were mentally blocked from seeing the obvious. Their solutions were less efficient, needlessly hard to understand, and it took them a very long time to find them.

andrewflnr 7 hours ago 3 replies      
I find his point about the "economic need" for programming to be more efficient interesting: at the time, software was about as expensive as hardware, and hardware was about the get drastically less expensive, and so

  If software development were to continue to be the same clumsy and  expensive process as it is now, things would get completely out of  balance. You cannot expect society to accept this, and therefore we  must learn to program an order of magnitude more effectively.
And yet, society has accepted it. It's now a truism that programmers cost more than hardware. Then again, it doesn't seem like his hoped-for revolution has occurred, either, so I guess he hasn't really been disproven and is merely guilty of being too optimistic.

virtualwhys 5 hours ago 0 replies      
Enlightening, thanks for posting.

"[LISP] has assisted a number of our most gifted fellow humans in thinking previously impossible thoughts.", that's pretty profound ;-)

michaelwww 6 hours ago 0 replies      
"[The speaker] managed to ask for the addition of about fifty new features, little supposing that the main source of his problems could very well be that it contained already far too many features. The speaker displayed all the depressing symptoms of addiction, reduced as he was to the state of mental stagnation in which he could only ask for more, more, more... "


kostyakow 8 hours ago 0 replies      
This article feels like it's from a completely different era -- an early age of computers with wild discoveries and unexplored frontiers.

But in reality it wasn't that long ago and a lot of the early computer pioneers are still alive. Computing is still a really young field!

k4rtik 10 hours ago 0 replies      
One of my professors, Prof. Vineeth K Paleri, at NIT Calicut (http://cse.nitc.ac.in) asks the students to read this article by Djikstra in their first class with him. Was an interesting read indeed.
Ashuu 10 hours ago 0 replies      
A really interesting read! I am glad I read this very long article. Worth the time!
karangoeluw 13 hours ago 4 replies      
A tldr version please?
Canceling the free trial of Google Apps now disables email service productforums.google.com
26 points by antichaos  1 hour ago   4 comments top 3
kbar13 12 minutes ago 1 reply      
Can someone explain why this is an issue? To me, this sounds like:

"I cancelled x, why am I still not getting x service?"

dannyr 11 minutes ago 0 replies      
Trial ends. You don't want to pay. But the service should still continue?

And this is one of the top stories of Hackers News?

MWil 19 minutes ago 0 replies      
I'm pretty sure this was discovered back in December
Google Engineer Wins NSA Award, Then Says NSA Should Be Abolished tikkun.org
110 points by SingleFounderCo  7 hours ago   28 comments top 9
pixie_ 5 hours ago 4 replies      
Is World War II so far away that everyone forgets how fucked up the entire world can become - and it doesn't take long for it all to go to hell either. The NSA has to get their shit together, but we still need real strategical/tactical intelligence inside and outside of the US. So when it does happen (and it will eventually happen) we're prepared not to lose our country, or even the world to the super nuclear powered genetically modified nazi cyborgs.
ihsw 5 hours ago 3 replies      
How do you abolish something that the entirety of the federal and state governments rely upon? Intelligence resources are being pooled to the NSA, and cyber-intelligence reports are being sourced wholly from the NSA. They're the single most powerful intelligence agency in the US, and there's absolutely no sign of it slowing down.

If there's anything that Obama shall be remembered for, it's that under his administration there was an astronomical consolidation of power. The DHS has progressively been getting more and more involved in pulling the strings of all levels of law enforcement.

bgentry 1 hour ago 0 replies      
tikkun.org seems to be down. Here's the Google cache: http://webcache.googleusercontent.com/search?q=cache:http://...

Here's the blog post from the Google Engineer (Joseph Bonneau) about accepting the award: http://www.lightbluetouchpaper.org/2013/07/19/nsa-award-for-...

dobbsbob 1 hour ago 0 replies      
Is this guy a google engineer because he thanks the people at Yahoo in his blog. Not that it matters, just happy he told them to go fuck themselves while accepting the award
znowi 4 hours ago 2 replies      
This guy has the balls. Kudos, Mr Bonneau.

I'm curious if he will get a private reprimand from Google execs for unpleasant commentary on their partner :)

ChrisAntaki 3 hours ago 0 replies      
>> Like many in the community of cryptographers and security engineers, Im sad that we havent better informed the public about the inherent dangers and questionable utility of mass surveillance.

Thought provoking.

Daniel_Newby 1 hour ago 0 replies      
This is silly coming from a company whose trusted computing base was nearly eaten by China. If any company needs the tightest possible OODA loop w.r.t. cyber-threats, it is Google.

There has been a lot of utter horseshit about how the NSA's activities will make Europeans distrust American cloud computing. Well the NSA is nothing compared to the Communist Party espionage organizations.

agilebyte 5 hours ago 0 replies      
northwest 4 hours ago 0 replies      
> Google Engineer Wins NSA Award, Then Says NSA Should Be Abolished

That's one thing. Now make these 2 events happen in the opposite order.


Byte magazine archives archive.org
32 points by ohjeez  8 hours ago   8 comments top 8
marshray 1 hour ago 0 replies      

But this isn't going to stop me from taking 200 pounds of physical Byte with me to every new home I move.

Gormo 4 hours ago 0 replies      
Archive.org has a lot of collections of periodicals, and there's a lot of interesting stuff in there, especially stuff relating to computer history. They've got the full archives of the old Computer Chronicles TV show on there as well.

But their UI for browsing these collections is unusable. I haven't been able to find any way of exploring these collections chronologically, or searching within the content ofa specific collection or issue and sorting/filtering the results to identify what I'm looking for.

Compare this to the way Google organizes similar collections: here's their archive of InfoWorld, going back to 1975: http://books.google.com/books?id=tDcEAAAAMBAJ

jim02672 4 hours ago 0 replies      
There is also a torrent ( http://thepiratebay.sx/torrent/7978965/ ) which has the ones at archive.org and more, with some replaced with higher quality scans. And ftp://helpedia.com/pub/archive/temp/Byte/ has some that aren't in either the torrent or archive.org yet.

http://atariage.com/forums/topic/167235-byte-magazine/ is where people doing the scanning are/were hanging out. Scanning seems to have kinda stalled recently. :(

hga 5 hours ago 0 replies      
Cool. Here's the fall 1979 Lisp issue: http://archive.org/details/byte-magazine-1979-08
evaneykelen 5 hours ago 0 replies      
I remember reading Jerry Pournelle "Chaos Manor" every month, as a 14 year old. English is not my first language and I'm sure reading Byte has taught me a lot of English. Fond memories.
kar1181 4 hours ago 0 replies      
This is brilliant, thanks for linking this up.

Here is the famous Smalltalk issue Aug 1981. http://archive.org/details/byte-magazine-1981-08

analog31 4 hours ago 0 replies      
In the early 80's, my mom got a subscription to Byte, and I eagerly awaited every issue. My drug of choice was "Ciarcia's Circuit Cellar," which forged a connection for me, between my nascent interests in electronics and programming.
Porting dl.google.com from C++ to Go golang.org
375 points by swah  1 day ago   103 comments top 17
STRML 13 hours ago 1 reply      
Maybe I'm showing my allegiance to my platform of choice, but the subtle dig on nodejs wasn't warranted on slide 25 (http://talks.golang.org/2013/oscon-dl.slide#25). As everyone's pal `substack` will tell you, use streams! Instead of explicit buffering, handling backpressure, etc., it's as simple as:


Additionally the link to `http-proxy` on slide 30 is misleading; 60% of that file is comments, and about 50% of what's left is websocket support, with the rest being header parsing & redirect parsing. The actual proxying bit is very simple and straightforward, and if you don't need every feature `http-proxy` offers you can do it yourself with streams in < 10 lines.

skriticos2 1 day ago 6 replies      
So what I take from this is that the previous implementation sustained a huge amount of code rot and new code got layered over it with a staple instead of proper re factoring.

So he put the whole mess in a bin and re-done it cleanly with Go. Now it's much nicer. Some of Go's attributes helped along the way.

Did I miss something?

packetslave 1 day ago 1 reply      
See also https://github.com/golang/groupcache for the peer-to-peer memcached replacement mentioned in the slides.
JulianMorrison 1 day ago 1 reply      
What this actually means: groupcache is awesome. You just act as if the cache is full, and if it isn't, it will be. Where did the data come from? That's pluggable. And no concern of the part that just serves it up. Very subtle, very nice.
joebo 1 day ago 5 replies      
I don't understand the need for the payload server from the slides. That makes me wonder - why not just use a HTTP server to serve the static files (e.g. nginx)? I'm sure I'm missing the obvious, but I'm probably not the only person wondering it.
fizx 1 day ago 1 reply      
How does groupcache handle consensus?

Edit: Scanned the source, looks a like a best-effort distributed lock, rather than any sort of consensus protocol. This works for a cache setting, where e.g. having a split-brain scenario and duplicating the work is no big deal.

hosay123 1 day ago 3 replies      
Either I'm having deja vu, or despite the date on the presentation, this is at least a year or two old
azth 22 hours ago 1 reply      
Pretty disingenuous on slide 58 to attempt to make the Go code look shorter than it actually is. Note how he left out all the verbose error checking code.
e98cuenc 1 day ago 2 replies      
These slides are practically unreadable in an iPhone. They are split in half and it's impossible to get a full page on the screen (I can only see the right half of the previous slide and the left half of the next slide).

Anybody has an alternative to read these slides? The content itself seems quite interesting

YZF 1 day ago 2 replies      
Interesting story. Is this a "port" or a "rewrite from scratch"? It's kind of hard to tell.
__Joker 11 hours ago 0 replies      
I still don't understand why google does not give option to download via torrent ? Downloading android studio from dl.google.com last week over a slow connection was a horrible experience. I had to retry three times before I managed to get a successful download.
_random_ 13 hours ago 1 reply      
It seems that Go is a good replacement for Python as well?
codereflection 1 day ago 0 replies      
I don't remember where I saw this, but somewhere, someone from Google said that all of their code changes every 5 to 6 months (or some reasonably short amount of time). That clearly sounded... optimistic at best. It's nice to see that even companies like Google have 5 year old old that is legacy and causing problems.
godbolev 22 hours ago 0 replies      
Does anyone have a link to the video?
c0rtex 1 day ago 1 reply      
Aside: Does anyone know how these slides are generated?
CoryG89 1 day ago 2 replies      
too long... ?
IzzyMurad 1 day ago 3 replies      
Too many Google employees in Hacker News trying to advocate Go...
Samsung overtakes Apple as world's most profitable mobile phone maker guardian.co.uk
87 points by Fortaymedia  13 hours ago   142 comments top 14
RyanZAG 11 hours ago 11 replies      
I'm having a good laugh over this headline for a very simple reason.

A few years back when the iPhone was selling more than all Android devices combined, people were quick to say that Android would never be able to compete since it's 'too geeky'.

Awhile later when Android took off a bit and all of the Android devices together sold more than the iPhone, people were quick to say how it's just one supplier (Apple) vs many suppliers producing Android phones.

Bit later, Samsung is doing really well with their Galaxy range, and suddenly Samsung alone is selling more devices than Apple. People then say how Samsung sells tons of different devices while Apple only sells one.

Again, a bit later, a quarter arrives where a single Samsung device (I believe it was the S3?) outsold the iPhone. People were then very quick to point out how profits are important, and Apple makes more profits than anybody making Android.

Well, look at the news now. Samsung now overtakes Apple in profits as well. I'm sure we'll have some new goalposts shortly that we can wait for.

These issues (profitability, marketshare, etc) are not ends to themselves - they are only symptoms or indicators of the real market forces behind them. The real issue is that Google/Android are out competing Apple in features, price and 'freedom'. 'Freedom' in this case being a nebulous concept that translates on-the-ground into something like 'able to load up porn apps on your phone if you want to'.

glasshead969 6 hours ago 1 reply      
IMO, you can't compare quarters of 2 companies with different product cycles. Samsung just released S4 while Apple's last product launch was 9 months ago.
lotides 1 hour ago 0 replies      
(Haven't used this account in a while, not sure if it's shadowbanned. Hope you can see this.)

No matter what you think of Apple, or Google, and their respective ecosystems, I'm curious what people think of Samsungs popularity. They're a massive South Korean company that until recently was well known mostly for ripping off other companies products and out-marketing them (I'm not making this up, these accusations go back decades now covering a variety of consumer products, go ahead and Google it). Some people, myself included, don't really believe this practice ever ended. Say something were to happen to Apple and Samsung truly pulled away as the technology leader in the future. Are you as a consumer happy putting your eggs in that basket, so to speak? Do you think Samsung is going to embrace a culture of innovation, vision and design? I honestly don't see it. As a designer, I've stayed clear of Samsung products because they just come off as cheap (or expensive) imitations. As a market leader, you have the privilege to introduce consumers to exciting new technologies, UI innovations and ideas. Samsung isn't built for that. Their idea of great design is hiring 1,000 good designers and taking a little bit from each one. That's not how design works. You have to have a unified vision with a great idea behind it. Consistency is so important. I don't care if Apple is the leader for the next decade but I'd rather a more creative company took the reins.

bsaul 11 hours ago 6 replies      
I think there's a lesson here in comparing apple ipod to iphone strategy. How come no one managed to beat apple's ipod and samsung beat the iphone.

I have a couple of ideas (price tag on the iphone was too high, market size is bigger and attracts more competitors, technology is more difficult because it deals with both hardware and software, etc), but no definitive answer. That's something that will be discussed in business schools for a long time.

itg 11 hours ago 1 reply      
Must be nice being a chaebol and having the complete backing of your government.
terabytest 11 hours ago 7 replies      
Doesn't Samsung produce a much vaster chain of models, which also contain very cheap versions which are obviously more affordable than Apple's? If that's the case, I think this statistic might be a little skewed, because it's pretty obvious that you'll end up with a bigger market share if you sell 10 different flavors of the same thing compared to a company which only sells one.
mcintyre1994 11 hours ago 1 reply      
Can somebody explain why Samsung didn't have this title in Q2 2012?

From the article:

"The California company made an estimated $3.2bn (2.1bn) profit from iPhone sales in the second quarter of the year, according to the research firm Strategy Analytics, a marked drop from $4.6bn a year ago"So, Apple 2012 Q2 : $4.6bn

"The same trend has squeezed Samsung's handset profits, which are down from an estimated $5.6bn in the second quarter of 2012"Samsung 2012 Q2 : $5.6bn

Interesting figures anyway, Apple's drop of over $1bn is interesting, they've dropped over 3x as much as Samsung did.

RealGeek 11 hours ago 2 replies      
Dj vu, it's Windows all over again.
codeflo 12 hours ago 2 replies      
Are the smartphone divisions of Motorola, LG and Sony still operating at a loss? I wonder how long these companies will continue to throw money at a market they seemingly can't compete in.
aet 11 hours ago 0 replies      
Why not compare the companies based on their overall strategies/profits? Do people actually make investment decisions based on a single line of business?
saejox 12 hours ago 4 replies      
Apple devices are ridiculously expensive. iPhone5 is $900 here.
marincounty 6 hours ago 0 replies      
I don't think Job's would have allowed this to happen?
pearjuice 12 hours ago 2 replies      
It is over, Apple is finished.
10dpd 12 hours ago 0 replies      
Anyone who follows The Guardian's tech coverage in the UK would not be surprised to learn that the reporter for this article is not a certain Apple fanboy..
Down the VR rabbit hole: Fixing judder valvesoftware.com
65 points by albertzeyer  12 hours ago   9 comments top 5
albertzeyer 10 hours ago 0 replies      
Stumbled upon this by a comment from John Carmack: https://twitter.com/ID_AA_Carmack/status/360947704223907842

"I was initially skeptical of the importance of low persistence, preferring a push for 120hz, but it is a BIG DEAL."

samatman 4 hours ago 1 reply      
Laser pixels can conceivably deliver low persistence and a multiplied 'frame rate' by splitting each burst of light into, e.g. four fibers, and looping three of them to provide physical delay. So the eye would be hit four times per frame, giving a strobe rate of say 240 hz on a 60 hz display.

Such a display would be made of pure cash, of course. Can't have everything.

DanI-S 9 hours ago 3 replies      
Could these problems also be addressed by using a regular, full persistence display reflected in a moving mirror that tracks the eye as it saccades?

Aside, this stuff is really fascinating, and it's great to see the field of human-computer interaction pushing up against formerly unknown biological phenomena.

nitrogen 3 hours ago 0 replies      
I wonder if anyone has ever constructed a real-world replica of a Tron-like grid to see if the visual instability mentioned ~60% down the page isn't caused by being in a very dark environment with very bright lines running across it, rather than an artifact of the display.
Qantourisc 7 hours ago 0 replies      
give me my 300fps LCD :
Show HN: Easy-to-configure Web Server in Go github.com
91 points by oakaz  15 hours ago   47 comments top 9
laumars 12 hours ago 5 replies      
A word of warning guys, I've had a look through the code and unless I've missed the obvious, there's nothing in there to change user ID; which means this would either need to be run as root, or would need to listen on a port > 1024.

In the case of the former, that's a huge step backwards in terms of security.

In the case of the latter, that would mean you'd need another reverse proxy hooked up - which would negate the need for this web server to begin with.

This can easily be fixed within Go though:

    import (    "log""syscall"    )        const (    user_id  int = 1000    group_id int = 1000    )        func secureDaemon() {    // set group id first as you need to be root to change group    err := syscall.Setgid(group_id)    if err != nil {    log.Fatalln(err)    }        err = syscall.Setuid(user_id)    if err != nil {    log.Fatalln(err)    }    }
You can also add chroot to your code if you want to be ultra paranoid:

    import ("os"    )        const (    chroot_dir string = "/opt/go-webserver"    )        func chrootDaemon() {    err := os.Chdir(chroot_dir)    if err != nil {    log.Fatalln(err)    }    err = syscall.Chroot(chroot_dir)    if err != nil {    log.Fatalln(err)    }    }
This will need to be done before you change your user ID (as you need root permissions to chroot) and you may need to compile the Go without CGO because some of the standard Go libraries will have SO dependencies (I found this to be the case with domain name lookups).

(the above code is adapted from my own Go web framework that I'm in the processes of building)

justinsb 10 hours ago 2 replies      
I remain not-entirely-convinced (1) by Go, but things like this are turning the tide. If it is indeed slower than nginx, it is not dramatically so. Considering the amount of time that went in to writing each, the Go version clearly "wins" from the point of view of anyone thinking of writing new code.

(1) I find error handling just too tedious to get right (Edit: "I find error handling _in Go_ just too tedious...")

stevekemp 9 hours ago 1 reply      
So it's a reverse HTTP proxy, which can also serve files locally? That's an interesting thing, no doubt, but it doesn't feel like a web-server.

I wrote a flexible reverse proxy[0] using node.js, a year or so ago, and haven't missed the ability to serve static files directly - so I'm wondering what the use-case for that is? I guess proxying to rails, or similar?

0- http://steve.org.uk/Software/node-reverse-proxy/

simonw 4 hours ago 0 replies      
The custom 404 page example in the readme looked incomplete - how do you ensure those pages are served with the correct HTTP status code?
Uchikoma 14 hours ago 2 replies      
I always wonder with this kind of posts, is it minimalistic or is it an alternative?
pandeiro 11 hours ago 2 replies      
Code organization question: is this a common convention in Go, to nest the main package in a subdirectory and put all of the 'modules' in different files but with the same package name?

(I'm more used to the Clojure namespace/filesystem symmetry, so this is somewhat new to me. I like the more shallow project tree but it's not immediately apparent where things are defined.)

alexchamberlain 14 hours ago 0 replies      
Nice to see an alternative on the cards. Of course, we need some independent security reviews before this can be used seriously.
JoeAcchino 9 hours ago 1 reply      
I'm very interested in this because this is the kind of web server I was planning to write for my work, but from a quick glance I didn't find HTTPS support.

Is HTTPS supported or planned?

tszming 10 hours ago 0 replies      
json format is too limited for a web server configuration if you want to be the nginx alternative. Think about how you would represent conditional statements, how to include and reuse external configurations and how to have comments in json.
Ubuntu: One OS, one interface, all devices zdnet.com
44 points by tanglesome  6 hours ago   44 comments top 14
rodolphoarruda 1 hour ago 1 reply      
I hate the 1-single device idea. I will resist to the last day to adopt it.

I live in a city where cell phones are stolen at the same rate as bananas are picked by monkeys in Congo. No matter if you are poor or rich, owns a cutting edge smartphone or a $15 one you bought at a newsstand, someday you will get it stolen. My legal manager got so many phones stolen in the past years that she lost count them. Her wild guess is they were more than 20. All cheap ones, because after you loose the first couple of good ones you are forced to adapt.

As the storage capacity of those phone increase, I think we will be motivated to keep more things in it. In case you have it stolen, damage is done.

Yes, you can still sync it to some other backup desktop PC, to your media center in your living room, or even to the "cloud". But imagine effort involved to restore those GBs of data every time you lose your phone. It is not only material damage, but time/effort damage as well.

I currently use Prey on my Android, so at least I could block the phone and force the other guy to hard reset it. I'm protecting my privacy but not relieving the time/effort issue, nor the material one.

What I REALLY would like to see on a new "built-from-bottom-to-top" device is a "brick token", a string of characters I could dictate to the carrier agent on the phone 1 minute after my phone was stolen and that alone would turn the device into a brick for good. Something at the lowest architectural level... like spilling acid on top of the main board. That would really change robbers crime lives, and bring tranquility to us consumers. Until something like this is in place, I'll be glad to have my PC and phone being two different things.

slacka 53 minutes ago 0 replies      
First of all, the UI is not the same when in phone mode and desktop mode. In desktop mode it runs traditional Unity and in mobile mode it runs Ubuntu Touch, a gesture based UI that only looks similar to Unity. I spent some time on a BlackBerry 10, and I loved it. Gesture based UIs are the future for smartphones.

I'm willing to cut Ubuntu some slack on Unity and Mir. Despite all the haters, the latest Unity is actually turning out to be a decent UI. For those of us on 16:9 monitors, a vertical taskbar was the right choice. Vertical taskbars were broken for over 10 years GNOME[1], so I can understand Shuttleworths frustration. I also love the search bar lense UI.

The mistake they made was shipping Unity half-baked. Yes, it can get unresponsive on low-end hardware. But much of this comes from poor 3D driver support under Linux, and bloated, slow, and outdated X[2] and compiz. The sooner those two die, the sooner we can have a responsive modern 3D accelerated compositing window managers under Linux.



Gormo 5 hours ago 4 replies      
What is this obsession with trying to stick the same UI on lots of completely different things?

Every time I hear someone advocating this kind of "convergence", I imagine the dashboard of a Toyota Corolla installed in the cockpit of a 747, or the control panel from a blender transplanted onto an air conditioner.

Why do devices that do different things in different ways need to be interacted with in the same manner?

harrytuttle 6 hours ago 3 replies      
Seriously, Microsoft have already fucked this one up.

One of the things I've learned is to learn from other peoples mistakes

(for reference to make sure I'm not written off as a Linux shill, I was MCSD cert for the best part of a decade, own an Xbox 360 and a Lumia. Metro just doesn't work on the desktop for me).

daker 1 hour ago 0 replies      
This is what we call Unity Next, the One & responsive UI https://www.youtube.com/watch?v=R4gXaf08GTI
bch 2 hours ago 0 replies      
On one hand (one X to rule them all): Have we learned nothing from the mistakes of the past yet?

On the other: As a huge fan of NetBSD (which is portable across nearly 60 architectures), if Ubuntu can learn lessons (and share them) from this work and apply to it whatever they think their core competency is, more power to them.

pasbesoin 3 hours ago 1 reply      
I want to know how far down the turtles go, and when/where/how I run into a proprietary and/or black box. Speaking generally as well as specifically, can I really trust the device -- at least to not be originally subverted.


P.S. I mean this as a real question, not just or particularly to sound snarky. With other Canonical-hosting devices, I recall reading about Android kernels and the like. I don't know enough, myself, to determine the answer to my question.

hardwaresofton 1 hour ago 0 replies      
I wonder if Microsoft will ever get any credit for being the (relative) first company to serious push this form of design.

Probably not

keithpeter 6 hours ago 2 replies      
Yes, Unity is fine if you use it for a few weeks on the desktop/laptop. I really enjoyed Ubuntu 12.04 with huge repositories of applications and an interface that used the 'extra' width of a cheap 1080p monitor.

I have not yet had the opportunity to explore other form factors, although fat fingering most GTK3+ apps would not be fun I imagine.

I am currently 'on the bench' regarding Unity after 12.04 until bug 739184 [1] is addressed. This makes keyboard oriented use of LibreOffice impossible, ironic given the keyboard orientation of Unity.

I hope 14.04 addresses this issue and also supports nvidia proprietary drivers (or runs nouveau at a reasonable speed) [2].

[1] https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/7...

[2] http://fridge.ubuntu.com/2013/06/27/mir-plans-in-13-10/

tjdetwiler 3 hours ago 3 replies      
What is the value add of using 1 device everywhere vs multiple devices with all my data synchronized? Aside from needing a cloud solution to sync the data I don't see the upside to putting everything into a single device.
northwest 6 hours ago 1 reply      
> The ultimate question, of course, is will you buy into this?

I definitely will:

This is probably the best open mobile OS alternative, right after FirefoxOS.

codex 5 hours ago 2 replies      
Mac OS X/iOS: One OS, one interface, all devices

ChromeOS/Android: One OS, one interface, all devices

Windows: One OS, one interface, all devices

All three of the above companies have been moving in this direction for quite some time. Everybody wants to do it. Canonical is always two to five years late with any trend.

charlesray 5 hours ago 0 replies      
Unity is passably good. It is usable. It is a step forward from where Linux interfaces were years ago. But it is awful compared to just about anything other than TouchWiz.
nilved 5 hours ago 1 reply      
Because it worked so well for Microsoft, yeah? At least it's pretty easy to switch to Arch Linux.
NSA Award for Best Scientific Cybersecurity Paper lightbluetouchpaper.org
19 points by grey-area  3 hours ago   discuss
The Hardest Logic Puzzles conceptispuzzles.com
87 points by ColinWright  16 hours ago   48 comments top 10
DanielRibeiro 16 hours ago 3 replies      
What about making Conway's Game of Life in Conway's Game of Life?


jbri 13 hours ago 0 replies      
So I just got sucked into that Killer Sudoku puzzle - and ugh, now I have a burning desire to print it out on a big A2 spread to work on it.

After the first couple of "gimme" squares, the interface is completely worthless for tracking the information you actually need to remember. There's no good way to express "This square is three more than that square, and also can only be one of these possibilities", which makes it a pain to correlate that with similar information about other squares, but at the same time (at least at this, admittedly early stage) it still feels like you can always make another logical step to another piece of information.

I don't even want to look at the others until I've either finished or given up on this one.

gweinberg 7 hours ago 0 replies      
#2 is really only difficult because it's easy to misinterpret the rules. Random doesn't randomly answer yes or know, he randomly decides whether to answer truthfully or falsely. So for example if you ask the recursive question "are you answering this current question truthfully" he will answer yes either way.Or rather, his word for yes. Once that rule is clear, the puzzle is pretty straightforward.
marknadal 11 hours ago 5 replies      
#2 is easy, by using double negatives and asking the same question to each god (asking different questions does you no good):

"Is the other non-random god capable of lying?"

The truth telling god will always answer: "yes" (da || ja)

The false telling god will always answer: "yes" (da || ja) [the truthful answer is 'no', but this god tells only lies, therefore the answer is 'yes']

The random god will answer: "yes || no" ((da || ja) || (ja || da))

This means, you will always only get the following combination of answers, no matter what A,B,C order you ask:

da, da, da; ja, ja, ja;

da, da, ja; ja, ja, da;

ja, ja, da; da, da, ja;

da, ja, da; ja, da, ja;

ja, da, ja; da, ja, da;

'Yes' will always have 2 or 3 of the same values.'No' can only have 1 or 0 values.Now that you have the cipher, you can decode everything.

(edit: formatting)

theon144 4 hours ago 1 reply      
How about xkcd's Blue Eyes puzzle?


gweinberg 7 hours ago 1 reply      
The Martin Gardner doesn't really seem to fit, since it is trivial to solve using brute force. Even if using a computer is considered cheating, there are shortcuts to use to keep from having to try everything. For example, having a "1" digit gets you nowhere, a "0" kills you, and a "5" and any even digit also kills you (and the 5 will persist at the end if you don't have an even digit, so it will probably kill you next round).

This led me to wonder, does persistence ever max out? It seems likely to me that it does.

impendia 11 hours ago 4 replies      
What makes a difficult sudoku problem difficult?

Is it possible that a brilliant, experienced solver would find the right "tricks" to solve the puzzle? Or is the sudoku such that it can be only solved by some flavor of exhaustive search on the space of potential solutions?

joachim_b 7 hours ago 0 replies      
COMBIN3! - (visual logic puzzles) - Online demo: http://combin3.com/demo/
asgard1024 7 hours ago 2 replies      
Hardest? Are you kidding me? A computer can solve these quite easily.

If you want really hard logic puzzles, get puzzle books from Peter Winkler (such as Mind Benders or Connoiseur's Collection). These sometimes even contain unsolved puzzles as well.

iRedMail Free, Open Source Email Server Solution iredmail.org
7 points by silsha  3 hours ago   discuss
       cached 28 July 2013 01:02:01 GMT