skysight-inc/HackerNews huggingface dataset:
As long as you know, what the costs(x) are, you can sell x for costs(x) + y and keep it. When somebody asks you how you do it, the typical answer is, that you work with a network of experts in their field.

As long as I still get the payment I myself ask for. I have no problem working for somebody, who does this and manages to get an additional slice of the pie. Because without him or her the pie could very well be nonexistent.
The transition from PHP3 to PHP4 and from PHP4 to PHP5 wasn't that painful. At the time, most PHP open source projects simply avoided OO concepts due to their slow implementation in PHP4 and to be downwards compatible with PHP3. It solved the transition as they only slowly adopted class based OO later in PHP5 era. Also the transition period of parallel version of PHP4 and 5 was between 2004 and 2008 - long enough so that most shared hosters were able to make the switch. PHP6 failed, and most planned features were backported to PHP5.3+. As several books were published in the months before the planned PHP6 release, the next PHP version will be named PHP7 to avoid any confusion. Nevertheless, PHP7 isn't a bigger change than let's say PHP 5.2 to 5.3. Overall I would say, PHP's developers and the community has done a great job. Modern PHP.net and HHVM are certainly better than their reputation. The same goes for MySQL and MariaDB.
Unnecessary medical care is harming patients physically and financially
Would passing around a "state" variable that included this cache be sufficient, or does one really need to implement a global variable?
The problem with the justification of the author for 15 years of Perl 6 development is, that Perl 6 will have issues, too. Are you going to change them all at once again and take another 15 years for Perl 7?

Learning from experience, one of the design goals of Perl6 was the ability gracefully evolve. Thus you get an object system with meta-object protcol, and you can extend the syntax through user-defined grammars. This probably also factored into the decision to have Rakudo support multiple backends.
Context from his speech:
http://www.pmo.gov.sg/mediacentre/transcript-speech-prime-mi...

Previously on HN:
https://news.ycombinator.com/item?id=9419035
'You're supposed to question what they're saying; you're supposed to look at logical implications to see if what they're saying is all consistent.' What you are doing here is saying - I will take my model of the world and check that their observations are consistent with what it predicts are physically possible. Then saying I found their observations to be inconsistent with how I expect the world to behave given my model. A natural follow on step from this is to conclude that they have missunderstood how their experiment is constructed - there is something about the way they are performing their experiment which is not accurately reflected in the model of their experiment. For instance there might in fact be conventional exhaust escaping from the device in a manner they had not anticipated. This is fine, this is also my interpretation. But where we differ is that I am very able to imagine a world where my model is innacurate and I appreciate that sometimes things that appear to require radically different models can in fact be produced by relatively minor ammendments. And that many people I meet seem to be very unwilling to question their own models and ammend them where necessary, upsets me. It upsets me because I believe in many instances it is born of the same kinds of irrationality that the whole enterprise of rational thought was designed to fix in the first place. At times, to me, it feels like it has become just another church for people to cling to. The rigid models I percieve within public discourse on these topics are a symptom of the very same creeping irrationality that they are purportedly defending against.
Chimps have culture. The question is why have the chimps with a culture of war been so successful?
PHP4->PHP5 required the gophp5 campaign in the end (domain now occupied by squatters) where several open source projects (iirc, Drupal, WordPress and phpBB among them) committed to dropping php4 support to pressure shared hosts into upgrading. And that wasn't even a backwards incompatible change (unless you were using things already deprecated and disabled by default at the end of php4, like register_globals)

Imagine if in 2-3 years, SQLAlchemy, Requests and SciPy for example dropped Python 2 which would be a similar Python attempt (not saying they would or should). That's some pretty forceful migration.
Mark Shuttleworth’s Pre-UOS Keynote and Q&A
> The other driver is business-driven. And this is where management demands 'AI experts', when what they really want is data-miners. And in many cases management prides themselves on 'AI algorithms', but we know that this is a term for anything that gets the results that management wants and may be far from intelligent and in most corporate cases a bunch of SQL scripts.

I wonder if this is a case where managers end up believing their own bullshit. "AI driven" is basically the marketing-speak for "a bunch of SQL scripts".
> Most consumer electronics are lucky to get 300 or so at 100% discharge.

AppleCare on their laptops stops being valid after 1000 cycles. I don't know what DoD they use for their calculation though.
Which means the probability of generating a hash value of the form 0[eE][0-9]{30} is (1/128)(10/16)^30 or 5.9e-9.

It certainly reduces the strength of the hash (and MD5 shouldn't be used anymore in any case), but still a roughly 6 in a billion chance of someone choosing e.g. a password and it happening to be exploitable in this manner.
Show HN: UX review helps us both
It did back in 2011, at least on one Debian developer's computer:

http://www.braincells.com/debian/index.cgi/search/item=270
Hi,

I put my startup aside and getting into UX,
I know everyone needs feedback so let me give you one about the UX of your site, it would be a great help for me cause we could see if I have any usefull insights.

(just drop a link and I publish my insights, in order of submission)
Have a productive day!
A step in the right direction, but it seems a bit half hearted. I'm not really sure what services HTTP-only, no JavaScript and few images gets you, but it's going to be a tiny subset of what's possible for most people in countries where Internet.org is targeted. The best solution as far as I'm concerned would be to give x gigabytes of data a month away for free, regardless of the protocol or type of data being transmitted.
Related: We also need a new keyboard layout. The QWERTY arrangement is horrendously inefficient. It's going to happen very soon now, the gained efficiencies are significant!
I was denied a .net in the mid-90s because I didn't even claim to operate internet infrastructure. Was too honest to add "and local infrastructure" to the usage statement and re-apply.
> and yet people use them

People won't know the difference but we should. We need to find the root of the problem. So far, it seems the root of the problem is that developing nations do not have access to a fat enough pipe to the Internet backbone. Now, why do developing nations not have a fat enough pipe to the Internet backbone? What's the reason here? We should try to fix that at the same time as we try to improve connectivity.

Just because I'm doing something for free does not mean I can half-ass it. People see my commitment and motivation in all things I do. So far, Facebook seems to really be interested in growth for itself as well as an effective shield against an upstart from upsetting them in the developing world.

My apologies for being cynical but we really need to make the infrastructure issue a bigger priority.
It's probably time for a major rewrite anyway, seeing how Windows Vista introduced a new Crypto API and this library claims support only for 2000 and XP.
I think there are two options that play in your favour:

a) be honest, but when they ask (and they will) why you are leaving the current company, say you know they are paying their employees way below market rate. This allows you to tell the truth, but points out to the recruiter you will not take you current salary + 5%

b) redirect the question to "While I make X, I'm discussing the move with other companies and have offers for X+Y". This accomplishes two things, puts a premium on you (other companies are already interested you) and lets the recruiter know how much they will have to offer you to accept their offer.

Of course, you need to be ready for the conversation to fall through at this point, but you should always be ready for that anyway ;)
Launchpad adds Git support
A very quick glance suggests to me that the only thing C++ specific there is the filename extension (although a C compiler would do a more thorough check than I do; and faster, even!)
Typescript may serve as another showcase for Microsoft tactics to influence and steer a language (JavaScript/ES6 & 7). http://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish You know the Java vs. MS Java (later transformed to C#) - both MS Java/J++ and C# as well as Typescript were guided by Anders Hejlsberg (former Turbo Pascal fame).
my hands are full sorry. i could dedicate a few(3-5) hours a week
They want it unencrypted so they can snarf all of the data. You can tunnel SSL over HTTP though. App developers have no real worries, but regular content delivery via http isn't going to fly.
> pg_dump -s

I wholehartedly agree that the schema should be versioned. But the schema dump is imho unreadable. I edit it manually instead, which has its own drawbacks.

Since I referr to the schema a lot, I think it is worth optimizing for readability.
Belgium has decent public transit and is below the point where cars have issues with scaling. It's really more an issue with sprawling mega city's where the suburbs can only expand in one direction. So ocean / mountains on one side, north and south huge city's so everyone is coming from one direction.
Also, SMSs can easily be rerouted with only a modicum of social engineering.
Running Nagios as a System Service on RancherOS
You move to Europe? ;)
> It would be easy to exceed its DB load with an application that serves unique content to each user, is write-heavy, etc.

Just curious: did YOU ever reach that point? I mean where a well optimized db engine reached it's limit? Can I ask you on what website?
I wasn't criticizing India's development, just the plan of installing a DSL line for each village.

I am not sure about DSL lines, but BSNL (Indian public telecom operator) has faced this exact issue 10 years back when telephones (landlines) were becoming commonplace in India. We got a personal phone somewhere in '98 I believe. It only took a few more years before the telephone lines had reached Dangoli (which is my remote native village).

No doubt, yet there's a reason why your country has less than 28M landline subscribers, while it has 930M+ cellphones. Passing cable is expensive and inflexible (e.g. harder to upgrade). Mobile Internet access is a much more sensible solution for the current situation, in my opinion.
And which perhaps even detrimental?
And then they start making paperclips.
Yes, and in the mean time: Go, Rust, Dart, Julia... maybe someone someday will get the sweet spot of performant code that is just plain fun to write. I guess that was the idea with PyPy, but after 15 (?) years that goal is still a ways away.
"Looking inwards I have observed that what is considered important is not as much as it should be functions that are related with the end product or service such as programming or design, or generally what’s happening at the assembly line."
What?
Whoa, that was a good read! Thanks, going to buy some books by Stross :-)

[when I said "reminds me of Traveling Salesman (2012)" I just meant examining the consequences if P=NP; that was before I followed your link and was reminded how good sci-fi _should_ be — it absolutely pales in comparison to Antibodies.]
so anybody can read my email unencrypted or even send email as me

For webmail login it'd be a problem, but email is almost always sent over the Internet in plaintext; those who want encryption and authentication will be using something like PGP.
FWIW, I'm not arguing about should or shouldn't - I'm just strengthening the original argument.

That said, I don't think small bounded latency is a good thing to encode in a typesystem, much as I don't think runtimes should be encoded in a typesystem. It gives too much inflexibility for too little gain.
He's using integers as sets of (small) integers,

int Possibles = Block[BlockIndex] & Row[RowIndex] & Col[ColIndex];
while (Possibles) {
int valbit = Possibles & (-Possibles); // Lowest 1 bit in Possibles
Possibles &= ~valbit;
Entry[Square] = valbit;
Block[BlockIndex] &= ~valbit;
Row[RowIndex] &= ~valbit;
Col[ColIndex] &= ~valbit;

is more generally:

set<int> possibles = block[block_index].intersect(row[row_index]).intersect(col[col_index]);
while (!possibles.is_empty())
{
int value = possibles.pop();
entry[square] = value;
block[block_index].remove(value);
row[row_index].remove(value);
col[col_index].remove(value);
My girlfriend took me to a club in her hometown in Urumqi, Xinjiang.
Multiple times random people came over to shake my hand and congratulating me for - basically - being a foreigner. One guy told me "I will kill you", but then he told my girlfriend "Thats the only sentence I know in english and I don't know what does it mean".
Work with PDF, Excel Spreadsheets and Barcode Using Aspose Cloud SDK for Ruby
Isn't the author basically saying, an iterative process (process as in procedure-semantics; like the word is used in SICP) is better than a recursive process?
I imagine this would be a similar problem if C++ tried to get rid of all the crap that's been layered onto it over the last decade.
I wonder, can one (such "international rented person") make a living out of such business?
That's only if you don't count the IO itself as a side-effect.

Does a language like Haskell give you the choice? If so,would it be idiomatic?
Yahoo is the Kodak of the 21st century. No matter the struggle and no matter the quality of leadership there is only one possible outcome. I would rather put my money into Twitter as there is at least the chance of a different outcome with Twitter.

As an aside Kodak knew what was coming from the 1970s and they still could not stop what happened - it is almost enough to make one think Marx was onto something with historical materialism [1].

1. http://en.m.wikipedia.org/wiki/Historical_materialism
The Without Hot Air site seems to have got its sums wrong. It continually makes the point that we'd need to cover the whole UK in renewable energy generation, and that still wouldn't be enough.

However, we already generate 7.5% of our energy from renewables and clearly 7.5% of the country isn't covered in windfarms/solar/biofuels. Therefore he must have made a mistake somewhere: if reality disagrees with theory, the theory must be wrong.
n.b. most laptop / phone / tablet batteries have fairly sophisticated controllers built into them and the % charge you see on the device may not be the exact % charge in the cells. So running your laptop to 0% may still not be the full discharge (presumably to prevent this exact problem).

That said, I did own a Sony laptop that had a battery saver option where it would limit the charge to 80% in order to prolong battery life. I can't remember if this actually meant "displayed charge = real charge - 20" or was capping the charge to 80%
http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/#o...
Unfortunately the utilities' profit model is completely at odds with distributed generation, so they will fight it tooth and nail.

Other countries might manage smarter grids but it's not (yet) politically feasible in the US.
Tips on Accelerating Student Learning with a Digital Curriculum
Hard to read articles with autoplay views at workplace
I laugh I your General direction: http://en.m.wikipedia.org/wiki/Waterbear note there is a lot of surface area on the planet. A 1MT nuke per sqare mile would come fairly close but not quite get to where you suggest and we don't have close to that many nukes.
While I find the code to be interesting, I wouldn't exactly claim to want this person as my PM.

Great, he used to program and displayed a handful of positive character qualities in doing so. A lot more than that is required to be an effective leader of a country.
So what is different about the Ruby approach to language evolution? The community has moved forward relatively painlessly from 1.8.x to 1.9.x to 2.x, all of which had breaking changes. Why has change been such an issue for e.g. Python?
Cool PM to have :)
Worthy

Care to say why?

If you have electricity for a base station and charging phones, you also have for pbx and copper wire.

I pointed that out not because there wouldn't be electricity to run the DSL system, but to show how difficult it has been to run electricity supply cables. DSL would have the same problems. And it would be obsolete the day it got installed.

I just don't see ADSL being anything than a more expensive and less flexible alternative to mobile Internet for their current situation.
Good lord, I love CS paper titles.
What are the two closest airports to each other in the world?
picking out one of many mentioned in documentary goes along these lines:

moon is a remnant of young earth colliding with its twin planet, part of it was absorbed into earth (that's why we have so much iron & melted dynamic core, which btw generates strong magnetic shield protecting us from sun's solar winds). Rest formed moon over time, which is unusually big compared to its parent planet and unusually close (all those stabilizing influences + tides). If we haven't had moon, earth would be "wobbling" on its path around sun frequently, causing very frequent glacial ages.

Necessary for life itself? Never said that. Stromatolites and similar single cell organism can survive about anything short of earth being consumed by black hole. Necessary for evolution of complex life and its explosion in variety that we see today, and more importantly our society? I personally do believe so. Just watch the document and then we can discuss.
Maybe I am splitting hairs then. I still hold that the translation is fairly simple. On the other hand, the operational steps that the machine code goes through can be mind bending, and I still have trouble figuring it out myself. Perhaps that's what
raverbashing meant all along.
They should source their lithium from solar-powered contractors. Maybe even sell them some panels for a good price.
(I realize the brine is already evaporated in the sun, but there's electrical separation after that.)
I was angry at a great deal of posts like yours over a range of topics. Perhaps in this instance the anger was missplaced. In a previous post I have worked out how to articulate my concerns: A lot of the time posts with an overtly negative tone that claim to come from a place of rationality, are in fact reactionary. They claim to be defending a core of rationality from encroaching confusion, when in fact they are a symptom of irrationality, a result of the innapropriate application of emotional reasoning to areas of life where it has no explicative power. I believe that the rigidity of the models to be found within the minds of certain kinds of folks has less to do with the defense of rationality and more to do with the defense of identity. I find it extremely irritating to deal with people who are irrationally certain in an uncertain world - especially when they justify themselves by claiming they are just being more reasoned than the next man. Having said that I can hardly claim my post was anything but an emotional outburst.
There are a couple of things we have learnt in our collective 50+ years of software engineering:

1. Code is not English: Nice try COBOL, and someone had to try, but a failed experiment. Bizarre holdouts: SQL

2. People are not idiots, and will not collapse into a gibbering heap if their programming language insists that 0 and "0" are different things and must be managed accordingly. Bizarre holdouts: PHP, Javascript. Honourable mention: Excel (no Excel, that is not a f&@cking date, I will tell you if I want a date).
Certainly a lot more is required. But this demonstrates that he's not some high-level politician that's completely out of touch with today's reality. It shows he's capable of logical thought. Two qualities I'd prioritize over all others in my leading politicians.
I'd be happy to see it in the person in charge of my country.

Would you be equally happy to see Herman Cain as President of the US? He also has Masters in CS and spent the early parts of his career as a programmer.
Getting Started with TypeScript and Sublime Text
> They were put in so that things would behave the way a novice expects them to (3 == '3')

It's a very wrong approach. It may look like newbie-friendly, but in fact it makes it much harder to learn and use. Any novice will be constantly attempting to form a mental model of what's going on and how the language interprets concepts. Refusing to do things like 3 == '3' is simple and makes sense. Assuming a programmer is an idiot and trying to outguess his mistakes makes the language so complicated, that the novice will not be able to form a coherent model and will most likely assume that "this thing is magic".
Just reboot your systems on a regular basis, and time-interleaved.
>without any excuses...

Oh yea? How about this,

http://www.reddit.com/r/PHP/comments/2zhg6z/how_true_is_this...
Gene therapy's 'temporary benefits' for retina disease
I think the distinction the grandparent made was they would be happy to see the trait in the leader of the country, not that seeing the trait makes a good leader.
> 2. People are not idiots, and will not collapse into a gibbering heap if their programming language insists that 0 and "0" are different things and must be managed accordingly.

This. People are not idiots, they're learning. By making your language assume programmer is an idiot you're making it more difficult for said programmer to form a coherent mental model of what's going on.
AltSchool, an Experiment in Education, Raises $100M
> a superior device (eg a tp-link

My experience with TP-Link has not been that great. I have three TP-Link devices (wireless router, Gig-E switch, and wireless AP) and I've had stability issues with all three since I got them. I regularly have to reboot each device, as each one will inevitably lock up after being powered on for a few days. I've also tried open-source firmware on the router, and it ran terribly no matter which flavor I tried; my 25Mbps WAN connection was reduced to about 5Mbps across the board. It runs at the correct speed with the stock firmware.

I'm seriously considering a build like the one in the article, however I'll probably go with a dual NIC Atom based nano-ITX board instead. Not only will it be cheaper, it will be easy to repurpose as a full fledged PC if I upgrade routers again in the future. A good example is this complete machine for $250, case and all: http://www.amazon.com/dp/B008KB5YCK
This post made me move to Python 3.
I replaced all print statements, in the code I am currently working on, with print functions, and yum-installed python3 versions of the libraries.

The code ran correctly on first try. Guess I was lucky, should have made the shift earlier!
I personally wouldn't care, and I think a lot of others would agree, that if they'd just called it something other than "Internet.org" - FacebookNet, FBnet, FaceLAN, Kwangmyong, whatever other name that does not suggest this is actually the real Internet; there wouldn't be so much opposition.

Instead they chose to acquire the internet.org domain (wouldn't the IETF be a better owner of that name?) and are calling it "Internet"; it's like a bait-and-switch. Maybe there should be regulations on what the phrase "Internet access" can be used to advertise, or the word "Internet" itself?
Meanwhile, in the U.S. a president barely has the ability to access a computer due to the ridiculous regulations surrounding them.
Yeah, documentation is for pussies.