skysight-inc/HackerNews huggingface dataset:
"When was the last time you looked at a PHP project and saw a list of all the third-party libraries and respective version numbers being used written in a single file?"

Huh? Any serious, modern PHP project uses Composer (http://getcomposer.org/).
It could be more readable if you use a placeholder variable

family, _ = socket.peeraddr

Which is more clear to me, but maybe not as much as just using .first
Maybe it's time EU, Latin America, and most of the Asian countries start banning US hardware, too - you know, just like US started banning Huawei, for the same reasons.
Yeah, I'm getting the feeling that the OP has no idea of PHP frameworks (or anything that has happened with PHP in the last 5+ years for that matter), and prefers to throw the baby out with the bathwater because of this.
5 Simple Marketing Tips
The method is significant. I don't really have any issue with NSA trying to MITM, hack phones and tap cables: as long as my endpoints are safe and I'm using encryption between them, they have to work for it, so only real baddies will be seriously targeted.

What we cannot defend from is the liberal use of NSLs to subvert endpoints controlled by Google, Facebook etc, which make it way too easy for them to mass-dragnet, leading straight to LOVEINT abuses and the like. Moving away from these services should help in this regard.

This said, moving away from these services does take some work, which is why OP deserves lots of kudos.
No, I'm just noticing that Sunday seems to be the weekly day of revelation. And that the news just keeps on coming. And I absolutely don't think any of this should be ignored, sorry for that impression.
higher education -- a period in which someone (you, the university and/or the state) spends a lot of money to enable your education -- is a huge luxury. It's a totally fair question to ask "what are you going to do with your philosophy degree?". If you're deeply passionate about your subject, then I think you can justify pursuing education purely for its own sake. But that simply does not apply to the vast majority of people studying philosophy/history/sociology etc.

I could already write and think before university and I had all the mathematical tools that most people ever use in real life. University taught me how to write an academic essay of adequate quality, but I don't think this is an essential life skill.
p1mrx is correct - creating plain SHA-1 collisions shouldn't break the CA system.

Even though it's believed that one can create an identical-prefix collision with that amount of work, after the MD5 Industries demo all CAs now inject at least 64 bits of randomness into the signed certificate. Thus the certificate that they actually sign isn't predictable and doesn't have an identical prefix.

Technically what one needs to break is the target-collision-resistance of SHA-1, and that's standing up much better.

For things like git, however, an identical-prefix SHA-1 collision would be a problem.
Dediserve is based in Ireland, and they are pretty good too.
As a fully employed Drupal developer who's currently spending every free minute working with Rails, it's vastly more about working with tools that I like working with, and PHP and Drupal do not currently give me that.

I can play a little piano, but I'm way better at the bass because it's more fun. I can get work done on a PC, but I get way more done on a Mac because it's easier for me to work with. I can cook with a dull knife, but it's never as much fun as using a good one.

I think it's okay for people who don't really like PHP to publicly admit that, but it often seems to be taken as a religious attack by those on the other end of the spectrum.
I'm curious to know why you advocated just selling Microsoft stock when Google and Amazon and IBM also have cloud computing/services businesses. Will they not be affected?
> I hate traveling. I love living in great parts of the world, though.

Good point. This is my view as well, though I've moved many times in order to try out new places...in order to find those great parts of the world. I'm on my 2nd country and I'm a lot closer to what would be ideal for me. The nomad life I live is, in reality, more of a nomadic mover than a nomadic traveler. The hard part is when the grass is always greener.
This is true, but there is also some reason to think that surveillance may be somewhat more difficult if outside the immediate operational reach of the US government. So yes they can listen. But if you make it as hard as you can, you make them spend more effort for less.

If we could make the internet run more secure encryption generally, then the NSA, forced to target specific end-points, would howl in frustration....
It will however have an economic impact on US, if you do that. Think of it as "voting with your wallet". You're voting with your wallet against US.

It's also a political stand. As a foreigner who can't vote against the current US government, or even as a US citizen, your action can have a political impact.
I never actually heard of FIG and have been using PHP for quite a few years. Are they new? I don't follow PHP news as close as I used to with having to use other languages more often so perhaps that is why. Only standards I was aware of for PHP are those that Zend[1] gives.

edit: Looking at the guidelines on FIG, they really should take some cues from PEP 8 and make the writing style look less hostile and less RFCish², if they want a majority of the community to willingly read it.

Discussing it with a fellow PHP developer looking over the FIG guides, he said it best (by quoting PEP 8):

"A Foolish Consistency is the Hobgoblin of Little Minds"

[1] http://framework.zend.com/manual/1.12/en/coding-standard.htm...

²Nothing against RFC and the format works for what they are trying to accomplish. It doesn't work so well for coding guidelines though.
I used bc. It's probably an issue of floor vs round....
I recently deleted my Google+ profile. I have to say that Google is among the nice ones out there. They have a no-nonsense process with tools in place to export the data and delete accounts. Facebook/Quora make it really difficult to delete your data.

It's ironic that it's easier to leave the good corporations than the bad ones.
You assume that energy that isn't used for the network would automagically go to "less fortunate" people. It wouldn't. Power lines don't appear out of thin air, neither do governments who provide a stable environment for them to be built in.
I wont be the best, I just want to get better. The best is something particular of that moment, you can't be the best because a minute after reaching it a new thing comes out or another problem will be face the earth and other people may figure it out better than you.

To me, it's more importante to focus on be better than you're now. You can measure this easily by seeing real world examples of what you want to achieve, then, force you into a method to improve your skills until you feel you're mastering. That could be more rewarding than feeling to be "the best".
Nope, we're on 1.9. We were briefly on 2.0 (last week) but had some minor performance regressions that we need to understand before we go back.
Strawman.

The parent isn't arguing that the new async constructs in the language don't make asynchronous programming easier.

He's questioning the need for using asynchronous programming models at all, for the common use case of ASP.NET applications.
Complete.ly - A JS library for autocompletion. For a wonderful user experience.
As much as I love Synology NAS, I wouldn't trust it for keeping what's essentially my entire life (email, photos, music, files, everything). The author has a backup system which involves two laptops, a workstation and a separate file drive. However, at the bottom he/she adds "I will probably add an extra external drive to the mix and try to keep that off site." My advice: do it. Now. Murphy's law states that a flood/power surge will hit your house as soon as pull the plug on your external storages.

I don't want the NSA to snoop through my email and family photos, but the fear of data loss easily trumps my fear of not having privacy. To me, that's the tradeoff for using public services like dropbox/Gmail: I get more redundancy at the cost of privacy.
Egypt Plans to Block Chatting Online in the Country
You can use pip for system packages. But either way, this means you don't get any of the advantages of virtualenv which were just described.
200,000 apply to Mars One to live out their lives on the red planet
Sad fact is MRI even with no matter how much effort we put in would never would be able to match GCs of battle tested VM like JVM.

so I am wondering, it makes sense to stop designing a VM & just focus on language. Perhaps, something like Truffle can be used to do the optimizations for you. Ruby on truffle is already 4-5x faster than MRI. And the ruby implementation was done by an intern in just 6months. All because power of JVM.

https://twitter.com/headius/status/362616159897534465
http://www.oracle.com/technetwork/java/jvmls2013wimmer-2014084.pdf

Something to keep in mind.
That's been the case ever since the PATRIOT Act was passed, back in 2001. So you were screwed even before Snowden came along ;)
But the B-1 allows you to consult with business associates according to the link you provided. For a salaried worker whose work can be easily considered to be nothing more than "consulting with business associates" (i.e. a CEO, CTO, and the like), it seems you can:

* Show up

* Attend meetings

* Tell people what they should do

* Conduct business

That's what a B-1 is for. Now, my question is why that suddenly applies differently for a director who may be offering such services without direct compensation other than travel expenses than it would, say, the CTO?

And if the government were to admit the director doesn't need anything more than a B1 to attend the directors' meetings, they had better be able to say what makes that different from the CEO other than pay.

Now, none of these address residency which is where I think you'd have to draw the line since there is no relocation involved. Now, I suppose you might say "should != must" but that ends up being really weird.

Here's my hypo. Suppose a US company ends up having a CEO in Canada. The Canadian CEO travels to the US once every year for the director's meeting and a meeting with top-level employees. My contention is that a B-1 (or VWP entry) would be sufficient.
Is it possible for anyone to use that reflector to calculate the earth-moon distance? What kind of laser is used for this? Do we know the precise location of the reflector?
Former NSA and CIA director says terrorists love using Gmail
Hey, did you switch to "Python 3" or "Python 2"?
In most cases I'll agree with you, money controls the us government. In this case thought, the nsa might have secret knowledge on politicians, it's job might be critical to national security or at least seem so, and I bet there's some support from the military industrial complex.

It would be quite hard for tech companies fight this fight.
Anathem (especially the last third of it) is an awesome reading. It's slow-building and the first two thirds took some will to get through, but it was really worth the struggle. Incredibly high-concept (for me at least).
probably a minor and tedious point, but it bugs me when journalists do this:

> (3) The universal force of gravity is very stable. Newton's gravitational constant G has changed less than 1 part in 100-billion since the laser experiments began.

technically worded correctly, but this language implies that we know it IS changing, by some small but non-zero amount.

actually, we haven't detected any change at all - so there's every chance it's NOT changing - but if it is, it's changed less than this small amount which our instruments won't measure more accurately than.

> No variation of the gravitational constant is discernible,
(dG/dt) / G = (0.0±1.1)x10–12 /yr

http://ilrs.gsfc.nasa.gov/docs/williams_lw13.pdf
Almost every free or open source code has the line "without a warranty" somewhere in the agreement.

For example:
GNU General Public License: http://www.gnu.org/licenses/gpl.html

Mentioned several times.
GIMP tito
free cloud services!=backup
pobox is US-based.
Rainbow's Edge read to me like an up to date, go-with-the-times version of Neuromancer. I'd should probably revisit it.
Light stopped completely for a full minute inside a crystal
dirvish is dead. Use obnam http://liw.fi/obnam/
I just use the readability bookmarklet, doesn't require an account:

http://www.readability.com/bookmarklets
i need hacr pliz i need boss hacr for hacr copone
But the statute is aimed at fraud right?

You can't accidently commit fraud.
Actually, your data is still in their building.

You've only removed the particular copy that you had access to.
It's the 1977 version. "EPISODE IV / A NEW HOPE" was added for a theatrical re-release in 1981.
Came to the comments looking for this exact explanation as the implication in the article struck me as strange. Thanks! :)
True. Plus Rio is thin and short while SP is wide and, well, just big. Rio-like living in this sense can be found in some of the smaller capital coastal cities of the northeast, but they'll have less activities to offer.

Props on the portmanteau/compound username. I suppose your name as an action would become malandrewgem, then.
Here is the article that got me onto the way of go: http://areyoufuckingcoding.me/2012/07/25/object-desoriented-...
The memes are a bit much but the content is solid.
"The loss of GMail conversation view was initially really REALLY painful."

I recently experienced the same pain with Thunderbird after moving away from the new Gmail compose interface however I've since moved on to Airmail [1] which deals with conversations (and other Gmail behaviours (shortcuts etc) in a very similar way to Gmail and am extremely happy with the move.

[1] http://airmailapp.com
She's doing the 'Learn to Program: The Fundamentals' course run by U of T. I'm glad she did as it's forcing me to use Python 3 :)
>clean code doesn't matter so much at the end of the day unless you're a code purist

Or you're unlucky enough to have to build a theme/site around wordpress
"characters" is an unfortunately common shortcut for "code points" as that's what unicode-based "char" types tend to mean.

And my comment was an explanation of an other user's, nothing more.
A Note About Git Commit Messages [2008]
The only "sacrifice" for me is the small Backspace, and the backslash/vertical is just left to it. Both Shifts are big.

I have yet to find a mechanical keyboard with such a layout. And I think I can deal with smaller Right Shift.
Thanks for the tip!

I use Linux on all my laptops and workstation, so unfortunately I can't use airmail or postbox (windows + osx) for this.
Hardware programming is THE area where you need static types always on.

Basically, you have to write everything in goto statements, no while's or for's. You also have to check that size always match, otherwise you will have errors. You also have to check that you do not accidentally drive one input from two outputs, otherwise you will also get errors.

As you discover errors through very slow simulation (small circuit takes about 4 days of simulation for measly 2 seconds and it stays about 60% of time idle, e.g., not doing much), you really need to face any possible errors ASAP.

Another option is code generation from some high level model, but then you can miss something important like critical path delay or latency (in clock ticks) and you have to bring that information into the model. While this can be done in Clojure or Python or something alike, it is not a panacea, not even close to that.
In short, De Speld is the Dutch Onion
The small project i'm developing for my Phd, "Symbolic Exploit Assistant" [1] (SEA) is using it.

[1] https://github.com/neuromancer/sea
Raising the Wreck of the Costa Concordia Live Video
Fifteen days after (a not so great) launch : What we learned
If we had detected some non-zero change in G, that would be big news.
I don't know much about rsync.net or if you guys provide a quick client-side encrypted storage method (though a quick glance at your FAQ seems to suggest otherwise).

But the reason Gmail is not being trusted is that there is some possibility the NSA has backend access to their servers via various kinds of legal arm-twisting they are not allowed to talk about. I don't encrypt the mails I send via Gmail before they hit Gmail's servers. You can't "trust the math" unless you do said math and encrypt content before you send it out. As soon as there is any unencrypted data on an external service, you've (theoretically) lost it to the grubby paws of said flunkies.

Or at least that's what I think (crypto experts of HN, feel free to correct and/or chastise me).
Lunar Ranging Retro Reflector:

http://physics.ucsd.edu/~tmurphy/apollo/lrrr.html

Retro Reflector coordinates:

http://nssdc.gsfc.nasa.gov/planetary/lunar/apollo_tables.htm...

Experiment:

http://physics.ucsd.edu/~tmurphy/apollo/basics.html

http://www.physics.ucsd.edu/~tmurphy/apollo/doc/Bender.pdf
7 cutting-edge programming experiments worth trying
Live from Costa Concordia's €600M Rescue Operation
No, you're absolutely right. And I didn't state they are, nor that they are free.
For backup purposes, I use my NAS, an external hard drive that I use off site, and Amazon Glacier for when things go really bad. (With Glacier, you pay mere pennies for storing gigabytes, but you pay a lot if you ever need the files).

What I meant is that the author is so focused on privacy issues that he/she forgets about redundancy.
I stand corrected. Maybe there should be a test to weed people out early then. Dunno - there are a few too many people on the forums who don't know the 'cd' command.

I was referring to this little quiz [1] which I thought should be posted directly in the description to scare people off.

[1] http://wiki.quantsoftware.org/index.php?title=Compinvesti-pr...
Was your data actually deleted, or does Google still have it?
Python encourages you to write clean code.
Along this line of thinking I was wondering how much energy it would take to reach the height of one of the lagrangian points? And once we get there would it be possible to stay there and resist the pull of earth?

If so that would be cheap space access right there.
Link failed to load for me; removing the paramaters on the end works:

http://blog.celingest.com/en/2013/09/10/highly-available-wor...
Operation to Raise Stricken Cruise Liner Starts in Italy
What Uses More Electricity: Liberia, or Cowboys Stadium on Game Day?
After enabing and relaunching chrome the text now works for me.
(31.0.1612.0), what does chrome://gpu/ tell you?
Fu**ed up by Google docs offline
So for a reason I lost my internet connection for a couple of days. I had the chrome google drive app and offline enabled, and felt good to be able to work on my google docs even when offline.
I thought (and as google told) all my offline changes will be synched when I get online again. And after two days work, the day came of hte mighty internet.
And guess what, google wiped away my 2 days of hard work because another author made a minor edit.
I literally threw my system out. Can't trust google services ever again. They suck!
To a tech naive eye, this CSS looks and sounds much better than the 486 version. If I had to show my granny my first pc (a ~20 kilos 486) playing the game intro and a retina ipad rendering this css effect, she'd probably be amazed by tech progress in these last 20 years. Further, I can't see how the next 20 years may produce a greater improvement in this render than the past 20s. It's probably just that we can't fully appreciate progress from within..
FIG (http://www.php-fig.org/), of which Zend is a member, has been around for 2-3 years, but only really gained traction in the last 18 months or so.

No one cares about Zend coding standards anymore.
Thanks I looked it up on wikipedia and they have a nice simulation there.

http://en.wikipedia.org/wiki/Newton%27s_cannonball

I didn't understand the elliptical orbit at first and was writing a supplementary question here but as i did so the following explanation occurred to me.

As it spirals outward it's no longer travelling at right angles to the force of gravity so now gravity exerts some force parallel and opposite to its direction of travel and starts to slow it down.

It slows down at a rate greater than the required orbital speed does and eventually it's travelling at less than orbital speed and starts to travelling closer to earth again and now gravity starts to act to increase its speed because the ball is again not travelling perpendicular to the force of gravity but this time gravity's pull increases its speed.

Now the ball's speed increases faster than the required orbital speed does until it exceeds orbital speed again.

And so ad infinatum!
... from a company working for the NSA. (;
The energy required to obtain gold from the earth, when you compare it to bitcoin, makes your comment farcical
How I got into YC S13
www.greenqloud.com in Iceland
It's certainly a great idea and would be excellent for getting a leg up on opportunities near where you happen to be living at the moment. The difficulty in it is the chicken and egg dilemma and the initial non-concentrated userbase.

I only know of various expat community forums and sites which anyone can find with a Google search and a few subreddits (like /IWantOut).

Edit: I found this via Google http://www.digitalnomadcommunity.net/
I'm a happy user of https://www.transip.eu/ (no other affiliation). Cheap and has a fast connection.

Look out for the prices, though: the discount showed is not permanent, just a first month promotion.
VR Jam – Oculus VR
When you say that a background task should be made into a RESTful API call, I assume you mean that instead of spinning up a local thread to do the work you should defer it to another service. Certainly you can do that, but async/await is still relevant in that case.

The key question is: while said REST call is happening, what is the caller doing? Normally, he's sitting there and blocking his thread until the call finishes (i.e. consuming one thread from the connection thread pool). With async/await, the thread is released back into the thread pool until the result is ready, then it picks up where it left off.

So anything where you might want to deal with background operations that take a long time (including network / db / filesystem access, i.e. most applications that aren't pure functions) in a connection-oriented system can greatly benefit from async/await. Even if it's just a regular desktop app, it appears to be a useful mechanism for coordinating different background tasks.
And again... That article has nothing todo with PHP vs Python, its just about choosing the right framework and methodologies.
All of the pro python arguments can be had for PHP as well if you dont work in a spaghetti codebase.
Ask HN: domain price data?
Services like sedo have domain auctions and make some recent data available. Is there somewhere public data of domain auctions / prices? Quiz.com is supposedly worth 900k$ and I wanted to investigate this further. Whom could I talk to in the domain business? I want to understand more about it.
"Make it so good that people will tell each other."

- Yup that was the primary reason for revamp. It's too early to tell if this is working or not but yes I hear what you say.

And yes tracking is something we are very powerful at thanks to our partners who are fantastic sales people.
Weber - new MVC web framework for Elixir
And how does your browsing HN help the less fortunate? Where is the limit between "good reading" and waste of time?
LRRR/CTD: Lunar Ranging Retro Reflector/Conspiracy Theory Demolisher