skysight-inc/HackerNews huggingface dataset:
The curly braces are the syntax for lambdas, one of the basic types `(T) -> R?`. There are plenty of examples for using that, but in the respective chapters: https://kotlinlang.org/docs/reference/lambdas.html#higher-or... or in this bunch of examples: https://kotlinlang.org/docs/reference/idioms.html#filtering-...

The docs are arranged in a way that one reads them in the order they are written (at least the first half). I supposed that would take more than half an hour given at the competition.

I don't think Kotlin is the best choice for programming challenges like codeforces - they really don't let him shine (although I use it whenever I can). But if this is a valid case, we can collaborate and write a short tutorial for C/C++ to Kotlin programmers.
You can't buy a GC instance in Singapore though? Not quite a fair comparison in that case!
F.ree Top 50 Niches Report and Market Feeder Software,  18-Page Traffic Blueprint
The future of learning at work: Integration vs. Innovation
They have built a lot of momentum in terms of their commitment to 'enterprise' cloud offerings. Obviously that's not going to happen overnight, but they have some amazing technology underlying and are moving in the right direction.
Motu Patlu in Pyramid – Motu Patlu in Hindi
Wondering What to Watch on Netflix?
I get the point, I just think that the idea that total privacy would "lose our security" to be completely unconvincing. Encrypt everything would only be a real problem for mass surveillance technologies.

I guess the difference is that I see mass surveillance and any movement towards a panopticon as much more dangerous than terrorism or espionage have ever been. There is no rolling back a panopticon as that's very close to complete and unlimited political power.
Actually, go has supported ranging over code points of a string since Go 1 [0], and has unicode/utf8.DecodeRuneInString which produces the same iteration sequence as range.

[0]: https://blog.golang.org/strings
None of those things define socialism any more than forcing the poor to work 16-hour days in deadly factories defines capitalism.
It's Taiwan[1]. Close enough for me - actually better, because I'm mostly talking to servers in Hong Kong.

1. https://cloud.google.com/compute/docs/regions-zones/regions-...
QUIT  Your  JOB  AND  TRAVEL
We already do have it, except nobody bothered to package it: DWARF4 debugging information. It's nicely structured, well-documented, easily accessed throught libdwarf; the only remaining thing to do is to package it nicely and submit to boost. It contains complete information about data layout, etc. (otherwise the debugger wouldn't know how to display your data and locate variables).

The downside is that shipping DWARF debugging info alongside of your program is not far from delivering the source code too. I guess it can be post-processed so that it only contains relevant data structures and nothing more.

Similarly, there's a COM component to access PDBs on Windows.
I take anti-depressant to treat OCD. For me, it was a life saver. There were literally weeks I sat in the office and couldn't work.
I couldn't sleep, workout etc. either.

Today I'm taking 150mg effexor and got my life back. (never had an OCD outbreak since started taking the medicine)
Having said all that, the most irritating aspect of it for me is weight gain. I used to be pretty lean and after almost a year on effexor I gained 13 pounds..
Unfortunately not. It's easy to process UTF-8 such that you mishandle certain ill-formed sequences that you are unlikely to encounter accidentally. IIS was hit [1], Apache Tomcat was hit [2], PHP was hit twice [3] [4].

UTF-16 has its own warts, but invalid code units and non-shortest forms are exclusive to UTF-8.

[1] http://www.sans.org/security-resources/malwarefaq/wnt-unicod...

[2] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2938

[3] https://www.cvedetails.com/cve/CVE-2009-5016/

[4] https://www.cvedetails.com/cve/CVE-2010-3870/
You have got to love America. The prison industry fleeces the inmates and their families as it is!

This prison union sounds more like organised crime, and what a big crime 'family', surely deserved of some RICO trial?
I suspect some perception bias. There weren't that many artists and musicians around to have significant effect on the middle class whole (and artists and such weren't especially middle class).
I don't think he/she is discounting the warnings, but simply that Reddit cannot be used to support the 'Almost all of them eventually (or immediately) hate the side effects' arguement and he/she is wondering if there is any data on that.
I think it's just about network effects. Everyone is on Facebook because everyone is on Facebook.

Although network effects work the other way as well, when people start leaving social networks they collapse exponentially just like they grew exponentially.
It has absolutely nothing whatsoever to do with it. Anybody who tries to talk you into believing that bunch of hogwash is a conman.
Scandinavia seems to be doing all right, so that's Denmark, Finland, Norway, Iceland and Sweden for starters.
I once read that Steve Jobs told Drew Houston that file sync was "a feature not a product". Obvi SJ was wrong but it's an interesting distinction to make.

He might have actually been correct if Apple could make iCloud work properly. As it is you'd be crazy to trust your data to it and Dropbox is a no-brainer product.
I think it is because society tolerates alcohol abuse more, and the delineator between alcoholic and non-alcoholic is biased.

See my other comments in this thread. People openly admit to their peers being hungover when showing up to work, or bragging about their crazy, drunk weekend. There's a lot of denial about alcohol's impact on society, and what constitutes an alcoholic when it is legal, and widely accepted. Just substitute heroin or meth for some of the things people say about their alcoholic adventures, and you will see this very clearly.
You're talking about serialization, and I agree that using reflection for that is both an overkill and somewhat hacky (you still have to define the serialization format).

Reflection on the other hand is immensely useful if you want to, for example, automatically generate type-safe bindings for, say, Python or .NET or Java, from your C++ classes.
I've never met a women who didn't have any side effects from birth control. They just lived with them because it was better than the alternative.
Flic Button Quick Unboxing and LIFX Control
Statistical Review of World Energy
On the whole I like the idea, but for the edge case of those of us that are on-call, it's one more nail in the coffin of social life.
Which is why we have languages like Go where we can put those types of developers. Incidentally Go use UTF-8. Higher level languages like Go, Python, etc were designed so newbie and/or ignorant programers could do less damage.

When I was working on a project before Unicode we would switch our dev PCs to the other languages we supported. What a pain that was. Only issues we had was when a translated string was much longer than the screen space allocated to it. I belive Swedish was the main culprit. No problems with simplified and traditional Chinese as those were more compact. I have no sympathy for dev shops that can't get internationalization right. As with everything else in the corporate dev world management doesn't seem to want to hire/retain the more experienced programmers.

I think you have a gripe with my argument because you may be missing my point. If a high level language chooses to let a programmer index into a UTF-8 string at the byte level (for performance and other reasons) it's very easy for it to prevent the the programmer from slicing in the middle of a code unit.

The reason being is that the language function to slice a unicode string would either throw an exception or just advance to the next valid index. There wouldn't be a way for the programmer to slice a unicode string in the middle of a code unit.
OT: Rather interesting title for what the piece is about. Why not call it "Musicians use pouches to lock up phones" or something? I suppose maybe that's just the growing trend of clickbait titles.
360VPlayer-360 degree video player written in three.js
What works well for face detection in low light images?
That would be the language, Go, on the OS, Debian, used to manage Debian packages.
Google paid $500,000 Bounty for hackers
Google Photos actually makes a reasonable estimation of your photo's location based on the content of the image (and the context of the photo, if it was available.)

For example, if I shoot with my non-GPS-enabled DSLR, those images are uploaded to Google Photos, which will reconcile my location history to apply a location to those shots. It'll also do that if it sees DSLR shots in between geotagged cameraphone shots.

But more to your use case, GPhotos will actually recognize landmarks and other information to tag photos, I believe, with a rough location (such that it'll match a location like "Paris" or "Eiffel Tower," but perhaps not lat/long... yet.)

Even more impressive, they're very nearly able to do exactly what you're describing, though my understanding is that it isn't in use in GPhotos yet: https://www.technologyreview.com/s/600889/google-unveils-neu...
Saleae looking for creative investment options
I don't share your optimism. It'll be a while before we can produce useful, grid sized batteries for this kind of use.

The hybrid approach you describe would require twice the surface area and probably wouldn't double the output.

I think I prefer the idea of having large plants like these, with 'night'-time capabilities and a relatively steady output. That sounds like it would work pretty well in combination with decentralized roof top solar + smallish home batteries.
Electricity wouldn't be free during the day if you wasted 50% of it.
Definitely, but I look at it from the direction of "No one has pulled in the good UX/UI people to do open source work" and that's simply a social/culture problem.

I also think it's completely fixable, because all the reasons to do open source programming work apply to UI/UX work. Getting your work in front of a lot of people, gaining experience and notoriety, getting to scratch your own itch.

There just was no Linux for design people to jump start that culture. And Mac's always had such nice design that they didn't have as many itches to scratch.
Here's the thing: everybody needs this sort of data integrity.

Literally nobody wants their files to be silently corrupted. ZFS made it much easier for (nerds like us) to attain very high levels of data integrity.

APFS was (and maybe still is?) a chance to make that the default for regular people.
I've done also some tests, and so far in most of cases SQLite3 has been fastest option and it's also trivial to manage compared to other options. SQLite3 is absolutely awesome. Until you'll need concurrent writes. It's also important to notice that configuration options will make a big performance difference.
http://www.sami-lehtinen.net/blog/sqlite3-performance-python...
http://www.sami-lehtinen.net/blog/database-performance-tests...
http://www.sami-lehtinen.net/blog/sqlite3-performance-testin...
I know internet comments are pointless, but this isn't the truth. Google knew it had to take things seriously, and as a result hired her.

New hires, even at the exec level, usually don't have the social capital to make huge changes. So they usually tie in to an existing sentiment.
I still carry an old style pager while oncall, in addition to using my phone. We would all agree single points of failure are bad in software and system design, I figure same thing applies when doing oncall.
The problem is that I'm not sure anyone has a way for you to get reliability, privacy and not having to deal with centralized bullshit without caring about that implementation detail.

Because if you leave it up to someone else, they can make a lot of money by removing all but reliability from what you want. So they do.
Regardless of whether this is a good idea or not: wow, this one pulls out all the propaganda stops. Especially this quote, early on in the article, in a separate paragraph, stands out:

"If you had told me you were going to put it in a locker, I’d have been pissed off," Kevin Schmidt, 37, tells the bouncer. "This is okay."

Shaping your opinion up front and early: "this is OK, other people like yourself say so."
I think a few people misunderstand socialism in LatAm. In LatAm socialism pretty much means businesses are American puppets, Americans are bad, being a puppet is bad so let's redistribute business and industry to the people and let the people run it. The professional class are bad (with the exception for physicians who are expected to live like other poor people) and farmworkers and laborers are the ultimate ideal (there is a terrible feudal-agrarian mindset which permeates)
Journaling mode and sync modes etc, also make a big difference: http://www.sami-lehtinen.net/blog/sqlite3-performance-testin...
JS is a mess. Even though there are standards they are implemented in such a way that it is virtually impossible to keep up with for a non-seasoned dev. The tools we use change quicker than ever, major changes all the time breaking everything that came before, tutorials out of date the week after they are written, new syntax that is widely used but not official meaning we have to transpile everything. Everything mentioned is just another obstacle in the way for a new dev to get started coding. By the time they've setup their dev environment most will have lost all their enthusiasm.
>26 points

I guess this is an unpopular opinion, but I really think my electronics are an extension of my body. I wouldn't go out without a phone in my pocket the same way I wouldn't want to lose a couple of digits.
The dot, rod, plate, rod, dot progression is probably a dimensional scaling of the stable state. 0D, 1D, 2D, 1D, 0D.

I'm a physicist, and the term 'nuclear waffle' had me laughing out loud. Well played.
This guy has packaged it: https://github.com/stephenrkell/liballocs/
> the way battery storage prices are going,

And we didn't even start playing with Sodium as a replacement for Lithium in those batteries.

Batteries have two things going for improvements in the batteries themselves and more energy efficient homes and appliances. PC won't replace utilities in densely inhabited regions, but batteries may help evening out variable sources.
Heroin is an opiate, and opiates do almost zero damage to the body. I know meth and heroin have culturally maintained their status as horrific amoungst young people despite the drug war's campaign of misinformation, and opiate addiction is a horrific thing, but clearly these drugs are not what you think they are.
https://news.ycombinator.com/item?id=3442172
Well off people become bankrupt because of impulse buying decisions. Sounds like marketers are pretty smart people, not stupid as the video at the end of the article implies.
You think those things didn't exist before 1848 or so?
Don't understand why it needs to make the phone unusable. Surely something that covers the cameras and microphones, but still lets you see and interact with the screen wouldn't be infeasible?
Why do you say that? http://megaface.cs.washington.edu/results/ shows that Google has one of the best Face Detection models.
To my knowledge, only code paths that are used are generated through templates. For example if you don't use std::list<int>, you won't get std::list<int> generated. So why does the author say:

>>Template meta-programming approaches suffer from increased compile-times and along with code generation, result in larger than necessary executables.

?
Jail is pre-conviction, prison post. (As a general rule, there are always exceptions)
Depends from your disk system and data set size ... It can also mean 2-5 hours or days versus subsecond query. Try having 6 TB database with integer column. Then select just one row from it. Either it's indexed or not. You don't need to explain that, if query ends up taking forever it wasn't indexed.
In principle I'd agree with you, but the response from most people learning a language that treats strings like that is likely to be "You can't iterate over strings? And it doesn't even have a character type!" I'm not saying people are stupid: I had never really thought about the difference between a code point and grapheme until relatively recently when I had to do some low-level text layout stuff and it became important.

My point is that I don't think throwing people into the deep end and expecting them to grok the codepoint/grapheme division before they get to use the language is likely to be productive. Defaulting to graphemes carries the advantage that if a programmer who doesn't know much about languages that require more Unicode finesse uses it purely intuitively, they'll get things right in a lot of cases. Using codepoints, on the other hand, makes it easy to put text through a grinder while doing relatively innocent things.

Unfortunately while we're discussing the finer points of using graphemes and codepoints in APIs a million supplementary characters were brutally eviscerated by code running on languages that haven't quite gotten past UCS-2 XD
Its great these things are coming online, they have issues when the mirrors get out of alignment. From lighting the lower parts of the tower on fire [1] to blinding pilots flying nearby [2].

[1] http://www.latimes.com/local/lanow/la-me-ln-solar-plant-fire...

[2] http://www.geek.com/news/worlds-largest-solar-power-plant-is...
That's more an argument for automated recovery systems and avoiding single points of failure (both in infrastructure and people). Even if someone is on-call, you should be able to do without them for the length of a concert.

I'm getting to the point where I just don't believe in the concept of requiring particular employees to be quickly reachable 24/7, even for limited periods of time. I know there are business realities that occasionally make this impossible (especially for new, small companies, or larger companies unwilling to properly staff their technical departments), but it's an unsustainable practice, and I believe we as technical staff owe it to ourselves to oppose it and find something better.

(And for the record, yes, my company does have on-call rotations, but I do everything in my power to make myself redundant and unnecessary even when I am on-call.)
Yes, that's pretty much it. http://www.diffen.com/difference/Jail_vs_Prison
The universal line ending character is \n. (Except in Microsoft's universe, but that's never been compatible with the rest.)
This is made worse by tech I think. Got an Xbox, now I'd like to upgrade the TV so it looks better with fast moving games.

Got a new laptop for work, but now my home desktop feels a bit slow by comparison...
The summer solstice is Monday:7 things to know about the longest day of the year
I know others have asked, but I'd also be interested in that ASR analysis. I'm working on something for my masters involving crowd sourced transcribers and we have access to Watson's ASR, which the (non CS) administration likes, but I've suspected its crap and would be cool to have some data.
Sweden, Norway and Finland are more Socialist than the USSR, Cuba, China have ever been. So yes there are some successful socialist countries.
The message here is that what matters most in healthcare and improvements in health as measured by live expectancy and quality of life aren't the high-cost, intensive interventions of advanced medicine, but the basics:

Ms. Currie can’t be sure what precise factors have led to the reductions in death rates for poor young Americans, but she has some theories. Public health insurance, through the Medicaid and Children’s Health Insurance programs, expanded to cover more children and pregnant women throughout the 1980s and 1990s. Research has shown measurable benefits to the children with access to the program: There was less infant mortality; they were hospitalized less often as they grew older; they were more likely to finish high school and attend college; and they earned more money in early adulthood. Those studies all suggest a real health benefit from the insurance program.

what matters?

Access to healthcare.

Access to healthcare during pregnancy.

Access to healthcare at childbirth.

Reductions in environmental contamination. Smoking. Lead. Pollution.

This is consistent with the data of the past 150 years: the greatest improvements in health come not from medicine, per se, but from public health and sanitation measures.

Clean water.

Municipal sanitation. (Getting rid of horses, and their offal and carcases, helped a lot as well.)

Food quality.

Refrigeration.

For all the commotion made about vaccines in the past few years, and yes, vaccines are absolutely a good thing and you and your children should have them, there were vast improvements in life expectency long before vaccines became available.

As there were long before antibiotics became available.

And much of the improvement in health among adults since 1950 is attributable to similar causes:

Less smoking.

Less alcohol consumption.

Better access to healthcare. Among those who had little to no access initially: the poor and minorities.

Vaccinations.

Better nutrition.

Fewer environmental contaminants. Especially leaded gasoline and paint.

It's a sobering message for those who are looking to high-tech, high-intervention methods for healthcare miracles. Evidence strongly suggests you'll be disappointed.

Though your doctor may appreciate the billing potential.
>...Trumps and ISIS....

I know election season can make us all a little crazy towards the 'other team', but are you seriously putting Trump in the same camp as ISIS?

Hitler, Nazis, etc. have been used so often in the past 50 years by all sides that it is easy to brush it off as empty rhetoric. But if the left has become so blind in their hatred towards Trump, that these comparisons can be made without a second thought, it is hard to take anything you say seriously.

I do agree with your comments up to that point, and apologize if I misinterpreted the point of the last paragraph.
(Haskell) Async exceptions, STM, and deadlocks
It does mean improved life expectancy, measured at birth.

It also probably means longer lives, as health in the first few years is predictive of this. Largely as indicated by discrepencies in mortality by wealth and race:

http://www.childtrends.org/?indicators=life-expectancy
A lot of the discussion I've seen around this is people arguing that simply the act of displaying your LED screen at a darkened concert is interfering with others enjoyment of the show. Obviously that's not the problem they are purporting to solve, but I assume it was part of the background of the design.
It's embarrassing that QuakeWorld on a 166 MHZ Pentium with a 200ms ping is more playable than some modern FPS games on multi GHZ, multi-core, broadband equipped machines.

I can't fathom the amount of suboptimal bullshit going on in today's netcode to achieve that.
As I said elsewhere, Scandinavia seems to be doing all right, so that's Denmark, Finland, Norway, Iceland and Sweden for starters.

(This is of course social democracy rather than "pure" socialism. But since most social democratic policies, e.g. health care and social safety nets, are called "socialism" by those who wish to demonize them, I think it's fair to put social democracy's triumphs under the same label.)
"Put your phone in this pouch."

-- I don't have a phone.

"Put it in or you can't come in."

-- I don't have a phone.

"Last time I'm asking you nicely."

-- I don't have a phone.

"Ok, whatever, just go inside."

-- Takes out my phone and records Alicia Keys
socialism != big government, what you are referring to is authoritarianism

see libertarian socialism: https://en.wikipedia.org/wiki/Libertarian_socialism
Thanks for the detailed response. This looks like a performance problem, big lookup tables trash the cashes.

I with mtviewdave that more complexity means this should really be in the std lib. Java's charAt(int i) is misleading at best.