skysight-inc/HackerNews huggingface dataset:
You wouldn't typically use one.
Why in the world would I write a parser in bash or awk, regardless of the format? I certainly have better things to do. It doesn't matter how sensible a format is, those tools are simply not appropriate to write a parser in.

I have, however, written a JSON parser before at a previous company in C++ (they didn't want to pull in a library). It wasn't particularly hard.

And yes, like any other parser, it accepted additional non-JSON constructs. This was simply because it was take additional work to error out on those constructs, which would be a waste of time.
FYI here's a variant that eliminates the `impossible` function and instead uses an assignment to the same effect:

https://www.typescriptlang.org/play/#src=const%20enum%20Scre...

This is what uglify makes of that:

var needsCancelButton = function (e) {
switch (e) {
case 0:
case 1:
return!0;
case 2:
return!1
}
return e
};

EDIT: Just using `return screen` without the reassignment also works because the return type of the function and the type of the argument are incompatible, but that seems a lot more error prone and less widely applicable that explicitly reassigning to a `never` variable and returning that.
What are Spam reports?
Developer tools are code like any other. Of course they should reuse existing code rather than reinventing the wheel.

Avoiding malicious postinstall scripts is a separate problem that needs to be solved whether you use dependencies for developer tools or not.
Last time I checked, their markup was pretty much nightmare fuel, but it should work fine with IE5, I'm sure :)
As the Diaspora* community learned the hard way years ago, the first rule of Replace FB Club is; don't talk about replacing FB. FB is different things to different people, some of which can be replaced, and some of which can't (and probably shouldn't be anyway).
You definitely shouldn't write a parser for anything in bash.

If you want to deal with JSON, I'd recommend jq as an easy manipulation tool.
This is utopia, with software virgins, all collaborating, sharing and reusing. Please don't destroy this paradise.
It's too bad, really, because as you say Boise is quite beautiful. But yeah, there was no plan for handling population growth. Too many people wanted to leave out by Eagle / Nampa, but work in downtown or at Micron. And of course there is absolutely no way to get anywhere except by car.
Hmm, I think it's not relevant because those constraints apply on the cell level, and Tesla battery packs are just thousands of small cells.

Well I suppose it depends if you leave x% of cells unused (prolonging their life, and ready to swap in when other cells lose capacity, much like SSDs do) or distribute across all cells, lowering the charging level X%. Either way I suspect you're hitting the "full cycle" that diminishes the cells life, so probably better to use the former strategy, leaving you with some healthy cells in the future.

Curious to hear if someone suspects otherwise though.
The Best Questions
Qries ( Next Generation Knowledge Management System ) - One of the fastest growing Question and Answer platforms for asking questions, editing questions, giving answers, editing answers, correcting answers, multiple answers, fast answers, on different topics, such as questions on religion, politics, lifestyle, health, medicine, fashion, cinema, style tips, grooming, etiquette, job skills, general knowledge, writing, literature, sports, music, entertainment, life, hotels, weather, shopping, cars, celebrities, news, relationships, romance, dress, zodiac, horoscope, magazines, gossip, images, travel, tourism, scandals, consipracies, agenda, funds, policies, weddings, occasions, clothes, wines, dining, cheeses, games, songs, movies
yeah, I was.

I understand the appeal of having html/css hyperdynamism everywhere.

And at the same time I don't want to pay the price to the point that I prefer living in lotech linux land. I value frugal over potential flexibility these days.

I told that often, but the other day I booted win9x (on a pentium 3 or less, some MB of ram, maybe 64) and ran an old copy of turbo pascal 7 (dos). That thing was flying. It had 80% of what I wanted (including, hear this, ascii shadowed floating editing windows.. talk about overfancy) and used zero resources.

Today to have that kind of interactions you'd need a somehow recent quad core and 4GB+ of ram. All that mostly for a bit of eye candy (css may be of some use to decorate tokens/entities to give additional info, but I rarely see that).
As the major other php wiki implementor, phpwiki, I can add my input to this.

I've implemented such an ajax page preview and also a page inliner (for expanding page trees via ajax) about 10 years ago. It was major work, because you essentially send a stripped down page in xml, so it needed some architectural changes to separate the various page templates properly.
In the end it needed 2 months work. phpwiki has a proper template design and its plugins cannot ever destroy a page layout or harm security.

mediawiki on the other side is horribly undesigned spaghetti code, with no proper templating and plugin integration, so it needed a few years more. It's like parsing html with regexp.
This probably may not help, but I'm just putting it here so that anyone reading this may benefit from it. If you use Firefox, there's an extension called Stylish [1] that lets you change the look of any site (Stylish is to CSS what GreaseMonkey is to JavaScript). The site userstyles.org has community contributed styles for many sites. Here's the list for all the themes available to style DDG. [2] There are even styles for a multi-column result page.

This can only change the look of the site by using the content on the page, but cannot provide missing features. Whether that's a UX improvement or not will depend on the style and the user.

[1]: https://addons.mozilla.org/en-US/firefox/addon/stylish/

[2]: https://userstyles.org/styles/browse?search_terms=duckduckgo
New eHealth solution to fight cancer-related fatigue
Well web based uis are subpar IMO, especially accounting for resource cost.

/me goes back to emacs
From my experience racism is more subtle in those european countries. E.g. you only get disadvantaged in more anonymous situations, but never actively excluded or attacked in person.

I live in Switzerland and noticed that especially when looking for jobs. When I was in middle school we had to look for apprenticeships to do after we finished school. In my class 5 of 20 were foreigners, and only I found a place (after a long struggle).

It wasn't based on grades since we all had equal or better grades than native students, and neither was it based on personality since we didn't even get invited to inverviews at all...

There are people that even legally changed their surname so it doesn't sound too foreign. There is especially strong bias against people from the Balkan region.
This thing is not exactly customizable.

I couldn't care less for the huge image in the popup layer, scrollability and extra content would be much nicer.
Isn't the main feature still Git-hosting? I think the name is fine.
They did, as Chris himself then points out in the next tweet. It was however cased in that fluffy language that those communications always are.

> Terms of Service: We reorganized our Terms of Service to make them easier to read. Some changes include: new provisions regarding the recording of events, modifications to the arbitration provision, additional rules governing refunds, and incorporation of a Data Processing Addendum for Organizers.
Probably not, but it depends on your program. I've been suprised how well it worked in some places just loading the parts of a program and working with that shimming between them, but as is stated elsewhere it's not really about debugging but more about code exploration.
> Objective-C is a wonderful language

I agree with you there

> In my opinion, Swift is not a great language. I would even say that it's not good. It's OK.

That's where I'll have to disagree. I really think Swift is a great language, though it's great in a different way than Objective-C is (though, who knows? Maybe one day it will gain enough reflection facilities to match Objective-C).

> The vast majority of people that used Objective-C were drawn to the success of iOS. They were developers, used to languages like Javascript, Java or C++. Coming to Objective-C, their immediate reaction was "WUTT??? Brackets!" Instead of properly learning the idioms, they fought the language on a daily basis and cursed Apple for forcing them to use a language unlike the one they were used to, in order to jump on the iOS bandwagon. These people, once Swift was released, jumped boat immediately because they never really understood Objective-C and Swift is familiar.

I used to be a Java programmer, and I started iOS development when Swift came out because it looked familiar. Sure, at first I really thought Objective-C was ugly and outdated, but once I really got its design I really came to enjoy it. I'm not saying that it's perfect, or that it does everything right, but there is a certain charm in its model.

> Another group of people actively dislike Swift, and really enjoy Objective-C. These are considered dinosaurs and have to either hide their opinion or face hiring difficulties, or even dismissal from companies where they are currently employed.

Sure, to each their own, but I really think that a lot of these developers just haven't spent enough time with Swift to really get its benefits. It's the same issue that you've mentioned with Swift developers, but in reverse.

> messaging to nil is a FEATURE

The Swift language designers hear you; that's why there's the optional chaining operator.

> In Objective-C you can drop to C at any given time and have access to all the insanely fast libs. You can also write such insanely fast code yourself.

You can do both in Swift.

> Complex as in C++ complex, but without the speed.

Swift is complex, and it's still a bit slower than C++ for certain things, but this doesn't mean this won't always be the case.

> Have something you wrote 2 years ago? Good luck with that.

Swift is still a new language, and it's in active development. However, you do have the guarantee that your code from today will continue to compile in the future.

> Swift is safe and everything. Right. Except developers with deadlines will just ! all the optionals when they get in the way.

I don't think you quite understand the safety that Swift offers. In Swift, an optional unwrap is designed to deterministically fail. The same is not true in the C family of languages, where it would be undefined behavior.

> Now, Swift does have some cool things, but so could a new version of Objective-C

There are some things that would be rather difficult to shoehorn into Objective-C at this point, even assuming that Apple is interested in adding these in. For example, Swift's generic functionality is far ahead of what Objective-C offers.
>Secondly, if we throw an exception we irrevocably destroy the data we read. It becomes impossible to access. This means that situations where the user might want to ‘muddle through’, taking as much of the data as they were able to read and keeping hold of it, becomes a little bit harder.

This is an awful justification. They should do this by raising an exception and attaching the response data to it, so the user who wants to "muddle through" can catch the exception and "muddle through" explicitly.

Regardless, this is a clear violation of https://en.wikipedia.org/wiki/Fail-fast and disappointing behavior from a package that prides itself on clear, obvious API behavior.
If that's what you know about Marxian economics then you know so little about economics that it's no wonder that you think these are somehow new ideas.

You wrote "You criticized Americans for seeing Marxism as evil."

Please quote whatever it is you think where I said that. Because you are seriously misreading what I wrote. Instead, you appear to be viewing everything through libertarian glasses, and rejecting any evidence counter to your beliefs.

I never talked about Marxism as a political doctrine. Quoting again from the Wikipedia page for Marxian economics (emphasis mine):

> Marxian economics, particularly in academia, is distinguished from Marxism as a political ideology as well as the normative aspects of Marxist thought, with the view that Marx's original approach to understanding economics and economic development is intellectually independent from Marx's own advocacy of revolutionary socialism.[2][3] Marxian economists do not lean entirely upon the works of Marx and other widely known Marxists, but draw from a range of Marxist and non-Marxist sources.[4]

You write that I "criticized Americans for seeing Marxism as evil.".

I did not. This is another example of you seeing things which aren't there.

I wrote: It's interesting that you use the phrase "promoting Marxism", which in the US is tainted by decades of deliberate negative propaganda.

The term "promoting Marxism" in the US is used as a slur against any idea which is, broadly speaking, "socialist", not just the revolutionary socialism of Marx.

For example, if you promote single-payer health care in the US, you might be tarred with the brush "promoting Marxism", even though socialized medicine in every other industrialized country is not seen as being part of Marxism.

You wrote: "How could you say that a model that considers the value of an employee's labor to be equal to their wage plus profit is useful?"

I again quote from the Wikipedia page on Marxian economics (emphasis mine):

> Although the Marxian school is considered heterodox, ideas that have come out of Marxian economics have contributed to mainstream understanding of the global economy; certain concepts of Marxian economics, especially those related to capital accumulation and the business cycle, such as creative destruction, have been fitted for use in capitalist systems.

Why don't you ask mainstream economists why they found Marxian economics to be useful?

Since it's one of the "most impartial academic fields" according to you, that must mean that some parts of Marxian economics are useful.
> how little you should trust your own numbers. Forget one small factor and the whole picture shifts a lot.

Though you should at least try run the numbers. Maybe you will forget an important detail but if you just go with your gut or an insufficiently specific recommendation from elsewhere you will likely miss many more important details.

The trick is to do some research first, and if possible have someone else look over your thoughts to see if they can spot an important omission. Be particularly careful if the sums add up in a way that closely confirms your original idea - your analysis might be unintentionally biased by subconscious filtering.

> or numbers from strangers on the internet

That is definitely something to be wary of. Too many people base decisions on simple advice without checking that the advice is even relevant to their specific situation. I've seen people in the UK dump figures into US targeted calculators with the thought that "the $<->£ is the same for every figure so it will all work out OK" without thinking that our tax regimes and other factors are quite different in ways that can have a large impact.
Lithium Extraction Techniques (2016)
So it's more or less impossible to completely avoid Google products, especially for developers.

Personal life I've cut out what I can.

- I use DuckDuckGo for search.
- I use ProtonMail for email.
- I've hardly ever used my smart phone for anything, remains the same now. It's essentially a test device with no account associated with it. Not having a cell phone is amazing.
Wow. Had just read that and then saw the feature first time while browsing over a list page. Was moving my curser down the list and when ever I wanted to click a link, the above link hat popped up the layer, highjacking my click and leading me to the wrong page.

What a great way of destroying the user experience with a beautifully over-engineered feature that is utterly crap while actually trying to use the underlying page.

Thanks an awful lot for breaking the ability to use the site as I am used to and making it impossible to scan with the curser as anchor for my eyes.
They don't have cell-level control, so it's definitely the latter. The cells are wired in strings, then paralleled.

http://qnovo.blogspot.co.uk/2014/11/31.html

(although apparently they do have individual fuses!)
I like to Keep it simple - and it's very painfull to do that in C++. Yes, you can write simple code, but it's lot easier to do it in other languages.
this is a fantastic piece you've linked, i'm impressed how well it holds up after 20 years, and it admits on multiple occasions that it's been all known 30 years before it's been written. amazing.
Wikipedia's markup is just terrible for trying to do any sort of scraping or analysis. I once tried to write a script that pulled the latest version of macOS from the sidebar of this article[1] and I gave up because it was difficult and brittle in a way that made it nearly impossible. I'd probably have better results parsing the HTML with a regex. Likewise, I know a friend who literally had to scrap an entire project because Wikipedia made it so difficult to get the text of an article without non-word entities in it.

[1] https://en.wikipedia.org/wiki/MacOS
Transmitting GSM using VGA
Angular 5 CanActivate only if user Object returned?
Isn't machine learning a concept, whereas sql or anything else is more about how you implement. I have in past seen a well season sql developer implementing collaborative filtering like algorithms.
Here's the standards:
https://www.openbanking.org.uk/open-data-apis/
> drop a bunch of autoreleases

And add a bunch of allocs, which I find less useful because they don't really communicate intent, whereas the autoreleases usually do. Also, in my code-base, autoreleases are less than 0.5% of the total code, and that includes a lot of legacy code.

In fact, after creating a macro for creating class-side convenience creation methods along with initializers in one go, I could probably drop the use to nearly zero. (The convenience creation methods are always +fooXYZ { return [[[self alloc] initXYZ] autorelease]; } so very automatable).

> undefined behavior

Yes, that's the excuse. It's a bad excuse.

> focusing on performance

Well, performance is my specialty. It also has the advantage of more likely giving you actual data, rather than vague feelings.

> that one time you double free and SIGSEGV

I've not found ARC code to crash less, and if you remember the article, it is about code that cannot possible crash actually crashing due to ARC.
You have never mentioned what those standards might be, or how they might be used in this case.

Instead, your comments have implicitly assumed that those standards fit your view of the world.

As I have demonstrated multiple times, you do not have a good understanding of unions and economics.

As for your last line, I can only shrug and say "takes one to know one."
Ready for Takeoff: Some last-minute info regarding the EU-Startups Summit 2018
Wow, that's really cheap. I've been pretty happy with Brown Paper Tickets for a number of years. An important feature for me, that Lil Regie doesn't seem to have, is the ability to place ticket orders by phone. A lot of my customers aren't web savvy.
Lithium extraction is already done from brine, effectively from "fossil seas".
Where did you get that 50M number? That sounds more like the total number of tourists altogether, only a fraction of whom are Americans.
That's what has been said for a while about Electron: it'll be optimized and less heavy. Most applications use Electron are just as heavy as they always has been, and where there are exceptions, it's more due to moving away from the Electron-stack and putting functionality in lower-level languages, or things like this where it uses only a few elements and defers to other rendering techniques.
All-electric BMW iX3 teased ahead of launch
> This in turn is relevant because your mobility becomes relevant.

you don't need to sell, just rent out the apartment when you move.

With the rental income, you can pay for a similarly priced location in the new place. Then, when the market fits, make the sale, and you've lost very little (if anything), except upkeep costs due to rental damage, etc.
99.9999% means only 1 in a 1,000,000 care, where's it's more like to be 1 in 10 or maybe 1 in 20. If you'd said 90% or 80% you'd be closer.

It's stupid to make such a wild proclamation, that, for example, only 70 odd people in the whole of the UK care.

For Google it's millions or 10s of millions of their consumers.
At least you seem to be able to disable them, click the cog in the corner of the card :)
You can get a similar effect by hitting Wikipedia for its extract. For example: https://en.wikipedia.org/w/api.php?action=query&prop=extract...
>I'm not sure how to fix this.

I don't think it's possible.

Maybe you can build more amenities close to where people live, and stop people using cars as much as they do. Maybe you can build public transport services more in low income areas where car ownership is lower, and people will have some way of moving around. But having lived and travelled in Europe my entire life and visiting America for the first time last year, I was honestly shocked at how car-centric every single thing was. I spent more time in my rental car than I did out of it. I couldn't find a tenth of the businesses I'm used to having within walking distance of every flat I've rented in London and every hotel I've stayed at in Europe.

And the biggest problem with the car-centric focus on city planning is that the majority of every city just seems dead. Las Vegas for me just died the second you stepped off the strip. Los Angeles died the second you walk a block away from the touristy bits. European cities which aren't built around cars have people walking around in almost every suburb, taking the car out for grocery shopping or going to the bank puts you in the minority in a lot of places.

I really don't think it's fixable in America within a generation, the automobile lobby has decisively won.
The train is expensive cause no one bothered to land bank for it, ditto for the freeways running through people's backyards. The lack of planning I saw when I visited Austin was astounding, but it is cultural at this point.

Just look at transit in Austin, its nearly a mile to get to a damn bus stop from the Apple campus, and even at peak service is spotty and extremely slow. Busses need to have priority, and be set up to feed your rail system (which is extremely small and needs serious expansion). The current system in Austin will never approach 70% ridership like Seattle or anywhere near it without major changes.
The way they changed the standard deduction and personal exemptions for 2018, for most people the tax deduction from their mortgage won't be worth it. It will be better to take the standard deduction instead of itemize. I had to adjust my tax withholding this year otherwise I would have owed a few thousand next year (compared to the few thousand return I received this year).

The whole tax benefit for owning a home is gone. Not only is there no benefit, you are now penalized.
A bit unrelated but requiring login to just read a forum thread is not good. :( I don't want to login to google again on this device therefore I haven't seen the thread.
What is use of header() function in php?