skysight-inc/HackerNews huggingface dataset:
http://3v4l.org/GIn4Kt

The above code shows php silently converting numeric string keys into integer keys. This ends up breaking the concept of a dictionary and prevents it to be used as a proper dictionary.

Now if you want to use it as a set. This wont work http://3v4l.org/NZYsj

Also, These are the following are the functions that are supposed to be used when you want to use an array as a set.

array_​diff_​assoc

array_​diff_​key

array_​diff_​uassoc

array_​diff_​ukey

array_​diff

array_​intersect_​assoc

array_​intersect_​key

array_​intersect_​uassoc

array_​intersect_​ukey

array_​intersect

Consider the fact that arrays can have mixed numeric and string keys, and consider the fact that php converts numeric string keys into integer keys, and consider php weak comparison rules (2=='2'), and how do you feel about using the above functions for set operations?

You see, the php philosophy is to compensate a lack of depth with a whole lot of breadth. Instead of demanding the user to understand different data structures in depth, it provides one data structure that requires very little understanding to get started, and cover the drawbacks of with a number of functions, edge case rules, and undocumented weird behaviors (resulting from different combinations of documented, but unintuitive behaviors).

So the end result is you got away with only having to learn one simple data structure. But if you want to use it reliably, with the provided library functions, you need to keep an encyclopedic knowledge of the aforementioned edge cases gotchas. This is true with a lot of aspects of PHP. PHP is like a cheap-shitty-dangerous car that you can acquire with very little down payment on a loan with a huge interest.

>Javascript work similarly with one combined array/dict type.

Javascript have combined array/dict? How come?

>Also the PHP SPL exists..

It does not matter, People starting with php won't be aware of these pitfalls to go looking into SPL objects.
Spain Finds Don Quixote Writer Cervantes' Tomb in Madrid
I love that article.
AeroMobil Planning to Launch Super Flying Car in 2017, Mass-Produced Autonomous”
No, name it. Why should known bad players go unnamed? They're the ones which will ramp up the cost of doing business because they get defrauded, and you can bet it's not coming off their yacht bills.
If they'll run unknown code without checking it first that's something you'd want to know about.
Well, according to (also unsourced, so no clue what the "real" story is) comments on the sister submisson [1] it is because LibreSSL doesn't want to take part in the embargo on reported vulnerabilities.

[1] https://news.ycombinator.com/item?id=9216815
Sending structured data from JavaScript to PHP is much easier via json and in PHP its as easy as calling json_decode() to get back and object or array depending on your preference.
Geodesic Asteroids: Classic arcade game gets correct physics
Labels is the one lock-in that stops me from migrating off Gmail/Google Apps. It is now what I insist on in a mail solution. Folders is just to inflexible for me these days as I auto label across multiple folders too much.

Haven't really found alternatives for labels in other solutions. IMAP keywords is too restrictive etc.
Interesting point. It turns out that introvert personalities are more commonly seen on suicidal forums. Closer inspection reveals that introvert intuitive (IN) type of personalities rank by far highest in suicidal thoughts by this measure, with the exception of INFJ types [1]

[1] http://intjforum.com/showthread.php?t=74782
This is a cry for attention. Why doesn't Theo get more love?
I always wonder what people do with their email address to receive that much spam. I have a Fastmail account with a catch-all that receives all mail sent to a domain, and I rarely receive spam. I'm not exactly careful spreading my email address around either.

I have noticed that almost all spam I do receive is sent to an address I posted here on HN, so perhaps I just haven't posted any addresses on other sites that are crawled by spammers a lot?
Haha, no. I'm genuinely new and my account is 18 days old. But I can see why many people wouldn't want to be identified as 'deniers' if that's what you mean?
There's probably much less friction for someone who say works as a waiter to start stealing cards by snapping photos with their iPhone vs buying a card skimmer, learning to use it, etc.
While I generally agree that this should be done, I'd also like to point out that many (most?) security fixes in LibreSSL are really "side effects" from trowing away lots of code, or cleaning it up.
Why do we need to duplicate the effort that people (some very smart people, btw!) have put into Hack (http://hacklang.org/), a sane strictly typed PHP successor with many other good stuff added?!

(imho, not only good, but awesome stuff, like XHP https://www.facebook.com/notes/facebook-engineering/xhp-a-ne... and async/await http://docs.hhvm.com/manual/en/hack.async.php)

And as a bonus, both HHVM.PHP and Hack and are well optimized to run at Facebook's scale... seriously, let's just leave Zend.PHP rot away in the trashcan of history and move the f on!
> Also, since Google Code hosting project is closing down, you can expect more projects being driven to it.

Well, Google Code was never used for private repositories, so that argument is irrelevant for the intended free private repository introduction.
ThingStudio: user interfaces for the Internet of Things
MIT classes are individually quite hard, but I also find many MIT undergrads simply try to do way too much. Students frequently sign up for twice as many classes as one should, volunteer in two or three labs at once, or volunteer in three or more organizations. Success during high school and college admissions is largely based on quantity over depth, which is poor preparation for actual college and life.

P.S. I don't mean to blame the students for the consequences of these choices. I think the administration could help by providing a clear picture of success, and providing better services. I just think this is a source of stress outside of individual class difficulties.
Show HN: OpenGL Capable Linux desktop in the cloud for games or graphics
That's my impression too, that they threw away a lot and replaced a few functions with the "good-practice in OpenSSL" ones, but otherwise haven't changed too much, so the code base can be easier to maintain but is not necessary "the" solution some believe it is.
Secure data processing, filestorage and broadcasting services. Bitcoin in space!
In which case and assuming that is accurate then

> Why? Well, they just don't. That's the whole story.

Could have been

> Why? Well, we'd have liked to but they don't embargo reported bugs and we do.

Clearer for everyone.

Assuming it's true.
What I would look for in a junior developer
You are right we should properly define our terms. And of course as you pointed out it is very hard. Maybe if we defined them in a sort of reverse order it would be easier.

Consider humans as biological automatons. Our brains are some sort of neural networked computer and the architecture of the neurons makes for, from a programmers point of view, some very advanced sort of "artificial" intelligence. From here there seems to be two possibilities: 1) That is it. Nothing else and their is no "being" experiencing what the brain processes or 2) something else, I think this idea is what we call...

Consciousness would be the idea that their is some sort of unifying sort of connectedness that allows the soul, ghost, being, etc to experience what is happening and in some people's viewpoints have an affect on what is happening (freewill in other words).

To me this definition seems terribly biased towards my point of view but I don't really know of any other way to define this.
Software development: winning the F1 with a Trabant
Nice to see some work being done on the Windows port!
Clickable http://itemzapp.com
Yeah, but based on the work of the LibreSSL team http://opensslrampage.org/ I wouldn't use OpenSSL for anything else if possible
The historical social stigma against homosexuality, and the consequent high risk of losing your job or social position, probably kept many homosexuals in the closet who would have been open in a more permissive time.

Nowadays, since nobody is fired (at least in the West) for homosexual activities or relationships, the economic penalty is eliminated.
Show HN: Awesome rating widget
Y Combinator partners tell MIT students to steer clear of big-name companies
In Pieces
That is true. OpenBSD/Theo refuses to take part in embargos, which means they don't get a heads up. Don't have a citation right now, but Theo said that publicly when Hardbleed or so happened.
Some pre-code buildings are grandfathered. Minimum parking was mostly phased in between the 1930s and 1960s. You can't build a new restaurant without parking except in a very, very small fraction of American urban areas.
It's a "sharp", hence why #! is often called a "shebang". Tho' I call ! a "pling".
Stats: Facebook likes purge in the music industry
surely unit tests don't get compiled in?
Totally agree. And actually, I find HTML in itself too verbose to begin with. Why require those close tags? So that one can see what tag is being closed? That is stupid, because in most cases, we're using just a few tags (DIV, SPAN) anyway, so this gives very little information. I'd rather use real open and close braces like most data-structures in modern programming languages.
This seems like a non sequitor to me? Why would not blaming people for falling for scams* require that you make laws stopping people from scamming?

*Using scams here as catchall for various kinds of deceit.
Do LibreSSL and OpenSSL have the same goals? Do they both want to support the same features/hardware/etc.? If LibreSSL remove something because it's not needed for what LibreSSL wants to support, but OpenSSL does want to support it, then what should happen? Should it be removed? Or not?

Different projects can have different goals.
We're looking at making this easier, but you can already set up a separate login token for the individual SaaS products - just create a regular password alternative login with something from pwgen or your favourite line noise source.

https://www.fastmail.com/help/account/alternatelogin.html

You can then revoke the individual token.

Per-folder permissions isn't something on our radar yet. You could hack it up with a family/business and separate accounts with folder sharing, but it costs money and is a right pain to administrate.
Can confirm that this is indeed very creepy. I'm currently making a WiFi probe visualizer (for fun, with GPS, maps and stuff like this).

The amount of data you can gain from WiFi probes is extremely high.

I can imagine market researchers using this to measure phone brand usage in places, travel statistics (Airport WiFi), coffee shops.

Some phones (many) even add extended attributes that directly identify the phone model.

For example, take this guy (actual data from Postgres aggregation Query):

{bwin_ICE,"City Hotel","_Heathrow Wi-Fi",hhonors-public,HolidayInn_Guest,HotelCityNewFloor_1,HP_WL_01,Kramola456,Mani_Chrisi,"O2 Wifi",OEBBfree,OpenNet,"Sofia A
irport Public","The Diner",WirelessViennaAirport,wonderland,NULL}

I know he was in London, at the Airport in Vienna, in a German Train, in Sofia, in a specific hotel.
Not really, I think. It was exactly as I expected.

I once attended a mini-conference where he did a talk about PHP history. After the talk, someone asked a question about strict typing. Rasmus really hold on to the web not having types (just passing strings, as have been pointed out in other comments here). I remember him saying something like "when the web have strict types, PHP will have it too".
Hack Facebook
Jump Consistent Hash Algorithm in Go
Won't that only be supported in gnu89 or gnu90 mode?
A good portion of LibreSSL's patches are in the form of removing code for dead platforms like VAX/VMS and OS/2, problematic wrappers like openssl_malloc() or patching the everything-on-by-default approach that OpenSSL takes. The OpenSSL team actively refuses any such patches, which is why LibreSSL was forked in the first place.
The LibreSSL version scheme corresponds to OpenBSD version numbers:

2.0.x -> OpenBSD 5.6,
2.1.x -> OpenBSD 5.7,
2.2.x -> OpenBSD 5.8,

Development slowed approaching the end of 2.1.x as the OpenBSD tree went in release mode lockdown. It is interesting to see the development coordination that stops and restarts the tree activity.

Things in the pipeline for 2.2.x include AIX, Cygwin, Visual Studio support, and wider support for optimizations (currently only ELF/OS X x64 is supported). In general, expect libtls to expand in features and improve usability, more code to be pruned and simplified.

There were not many SSL patches for OpenBSD 5.6, and there were not any LibreSSL 2.0.x releases after 2.1.x began. However, we are looking at possibly releasing further 2.1.x updates if there is interest. They would correspond to OpenBSD 5.7 errata.
Wouldn't that be "they embargo reported bugs and we don't"? (Or at least, I suspect LibreSSL wants to keep to its own embargo schedule.)
Strategies, tools and tactice for mobile growth
Common Questions About Hybrid Email Marketing
Cartography, essentially.

In other words, it's likely that the cables are laid all within a few feet of each other in some places, or bundled together. To show this as it appears would make the map look confusing and would not convey what it wants to show.

This is more of an infographic, or a network diagram.
Great display of one of the reasons why GCHQ and the NSA can intercept so much.
Jeff Hawkins wrote absolutely the same thing in his "On Intelligence" book (2004), and came to that conclusion from his brain model.
Where I live-in owners get 150,000$ off their property value for taxs purposes. So it can be done.
You don't even need an active sim card to activate a phone. As long as there's a sim card in the tray, the iPhone will activate.
Thanks for this contribution. It is much better than standard ui.bootstrap.rating.
It says that "Probe" is disabled by default on Linux. Anyone know what the default state is on Windows and OSX?
Interesting. But if the universe is all consciousness, then one can ask what it is conscious about, and why this consciousness is forced to follow the laws of physics.

On the other hand, I find it surprising that science does not deal with "experience of awareness", for clearly it is part of reality (since we are talking about it) and hence of physics (there is only one way out of this, which is to say that we are all zombies just making up that our awareness is influencing reality).

By the way, anyone know of a more concise term for "experience of awareness"? I have been looking for it, and I'm sure it must exist, but no luck so far. How do philosophers address this concept?
In Search of European Unicorns
Google will eventually open the Google Now API to app developers
OP Here – Would love any feedback from people who are either;

* Junior folk themselves

* Hire junior folk
That's a great explanation.
Why does the author consistently capitalize "visa" as "VISA"? "Visa" is neither an acronym nor an initialism -- it is derived from the Latin "charta visa," meaning "a paper that has been seen."

The financial-services firm Visa, provider of credit and debit cards, also doesn't capitalize its name. So I'm wondering how the author (ostensibly a native English speaker) has been led to consistently write "visa" in all caps.
Yik Yak and online anonymity are good for college students
Atom doesn't use React any longer for their editor component

> React is a great tool for many cases, for our particular needs in this particular case I decided it would be easier to just do things for ourselves.

https://github.com/atom/atom/pull/5624
A Better Approach to Enterprise Email Marketing
Why the hybrid approach just makes sense for data-driven marketers.
This is exactly the point. He was a socialist who was able to call out other socialists. Most socialists of the time (and even today) were/are not prepared to do this (why I don't know - and I suspect some Russian control on elements of the British socialist mainstream at the time may have played a role). This one of the reasons that people on the right of the political spectrum think that socialism is a dirty word.

The reality is that socialism itself is not bad but that the implementation as seen in the USSR was terrible. The principle needs to be separated from the poor implementation.

HOWEVER, how to implement socialism well? Any implementation would have to account for people's inherent selfishness etc. I don't have an ideas for how to overcome this and I don't think anyone ever has yet. Therefore I prefer that we stay with market driven capitalism (which deliberately uses people's selfishness and in a pure from has very simple implementation) for the foreseeable future.
"Y Combinator usually invests $120 thousand in its startups, but Altman revealed during the Q-and-A that they have plans for helping startups requiring more money. “We have some news coming on that,"

different type(s) of startups being funded?
>I see hate for the licensing model they chose. But think of it this way: who is their target audience?

People willing to pay for a commercial license.

Many companies which want to sell software release a GPL-ed version as a kind of demo (and being able to add the "open source" buzz word to the description of their product does not hurt either).

That the (A)GPL makes this library unusable for most people is the reason why they chose that license; not because of Free Software idealism but because of commercial interests.
Special starcraft keyboard QQ
Yeah I drink a thing called 'barley cup' its grand!
Also, does awareness of the presence of a disc equate to consciousness? That seems rather tenuous.
The code is very easy to read, so I think this would be great for those who want to learn how one might go about implementing a C compiler.
It is! I will take your advice and do it. Almost every time I talk to potential customers I'm surprised over the amount of valuable info I get from the chat.
Show HN: What Happened Last Week – Weekly News Digest
Show HN: Send Telegram notifications with one line of JavaScript
> Excuse me please, I see you are emotional about the issue […] Asking for the source for the claim is OK, this however...

Uh what? I was just providing a relatively recent issue which IIRC libressl was also affected by as a possible candidate (turns out the issue in question is much older and not a "named vulnerability")
Online and phone transactions require shipping a product. Being able to walk out with the stolen products is much more practical.
> > Why? Well, they just don't. That's the whole story.

It's not the whole story. Here's the whole story:

http://lwn.net/Articles/601958/

"As it turns out, de Raadt had been asked if he wanted to join the distros list back in early May."

"[de Raadt:] So I'll decline."
Fufox – 100% free and unlimited online storage for everyone
Case Study: Type-Safe Domain Modeling in F#
The sharp sign (♯) [1] is actually a different symbol than the number sign (#) [2].

[1] https://en.wikipedia.org/wiki/Sharp_%28music%29

[2] https://en.wikipedia.org/wiki/Number_sign
My state, Indiana, just made it legal specifically to fire or demote people because of their LGBTQ preference. That was in challenge to the recent Supreme court case regarding Hobby Lobby.
iPhone 7 to Use Intel Mobile Chip – Similar to the New Macbook
This is actually quite revealing. Some people think that PHP is just used for the same small web pages it was used for 15 years ago.

Other people would like to use PHP more as a general computing language.

Having optional types takes nothing away from using PHP for simple web pages, but does make it easier to right analyzably correct programs.

The fact that the founder of a language doesn't want to see it grow is quite depressing.
Something that you might find interesting:

There are two basic lines of thought here, the hard-electron AI school of thought that pushes the emergent hypothesis and the "Consciousness is not Computation" school of thought that accepts that Mind is Computation but states that Consciousness is something else.

Tip: the AI hypothesis does NOT explain nor predicts the thing that a Paramesium can do.

https://www.singularityweblog.com/stuart-hameroff-quantum-co...
Apple to launch online TV service
Story, with sources, at: http://lwn.net/Articles/601958/

They were asked to join the distros list, and they declined.
This might not help a lot, but at least Google does not map if your SSID is ending with "_nomap". By using this, you will at least not give away your home location. You will of course not be able to add this to every public network you're using.
Not directly about installation process - but about integration with external tools. Looks like you're focused on the SaaS tools, rather than selfhosted ones. Integration with application like Kandan [1], rather than locking with HipChat would be awesome too. And/or Jabber integration also could help a lot. Thank you for the awesome work you're doing by developing GitLab!

[1] https://github.com/kandanapp/kandan/
[2] http://feedback.gitlab.com/forums/176466-general/suggestions...
It is similar to K-means, but with exactly the crucial difference that clusters are not random, but picked by a guided subdivision algorithm.
Aren't they protected under disability protection laws?
You can also do this - cell tower location based WiFi enabling/disabling (and a lot of other stuff) - with the free Llama app: https://play.google.com/store/apps/details?id=com.kebab.Llam...
Margins are irrelevant without sales.

Also http://www.investopedia.com/terms/b/bookvalue.asp

Can't really understand why I'm downvoted for this, since all I did was state a fact.
One possible concept could be meta-attention. http://www.tandfonline.com/doi/abs/10.1080/00221309.1982.971...
For bonus points (or not, depending on the recipient's sense of humour) construct a resume that would be suitable for the underhanded C contest (http://www.underhanded-c.org/).
The parent commenter's concern was that the pricing is difficult to understand. But you said one of the reasons you selected your pricing structure is so that users now exactly what they will be charged for. I agree that it's much easier to estimate sales then the number of API calls that will be used.

Another point to consider is that users have a monetary incentive not to use any new features you may come up with in the future. (Unless of course, they have strong reason to believe that implementing these features will provide a significant boost in sales.)
Your comment makes sense, but it implies Netflix does not have a great team, or that it has other considerations than pure financial ones?
The only consistent thing about PHP is its inconsistency ;)

Well, at least you know what you're getting into. It's not like they promise otherwise anywhere.
"When we monger hate, we inspire these guys. These guys are all kinds of trouble, even if they aren't outright malicious. We can spread spread harm through them."

You are doing the we vs. them thing, not just in this sentence, but throughout the text. It's never the right approach. There's some us and some them in all of us. I see this often in writing on social issues in tech; a strong tendency to categorize and polarize, even when intentions are good. Regardless, I find the article well written and on point.
Yes. Isn't there no evidence in favour of taking vitamin supplement? And recently mounting evidence that in fact it may be harmful if anything?
Yep, found it just a few minutes ago and added it as an edit to the original comment. Thanks a lot.
> Students were also encouraged to steer clear of large companies.

Maybe because it's cheaper for Sam's YC companies to poach talent from Acme Co. rather than Google or Apple.
To anyone visiting the UK who finds this sort of thing interesting, I recommend Porthcurno Telegraph Museum. http://www.porthcurno.org.uk
Kickstarting single-use unlubricated monocles
The sad state of browser matrix transforms
You can't because it's not BC.