skysight-inc/HackerNews huggingface dataset:
Really? This isn't even close to valid JS.

enum Color {
red = 1,
green = 2,
blue = 4
}

namespace Color {
export function mixColor(colorName: string) {
if (colorName == "yellow") {
return Color.red + Color.green;
}
else if (colorName == "white") {
return Color.red + Color.green + Color.blue;
}
else if (colorName == "magenta") {
return Color.red + Color.blue;
}
else if (colorName == "cyan") {
return Color.green + Color.blue;
}
}
}

* Edited with a better example.
By chance, do you know a good book for audio signal processing?
Perl cookbook by Nathan Torkington and Tom Christiansen. It taught me everything from Unix tricks to CGI to making my first website.

No fluff, just lots and lots of code useful practical code samples.
I wonder how long the battery will hold out displaying its own advertising page? On a mid-2012 MBP on Safari, the page is using 17% CPU just sitting in the background behind Activity Monitor. Switch tabs, its fine, but as soon as that tab gets focus...

That said, given that I don't hold out hope for Apple to build a laptop any time soon that I care to purchase, if it would indeed run Linux it looks like $2300 gets what could be the 32GB/1TB laptop of my dreams. Or at least something that I can live with happily that's not six years old.
> It still needs to set up and drive all the presentation that goes with it on top of the pure bookkeeping.

Yup, a lot of "game logic" is in fact bookkeeping, i.e. self-inflicted complexity. It's not necessary, but is what happens when you overdo it (though IMO it's more often a symptom of using more frameworks and libraries than less).
I would also add "ML for the working programmer", which is, perhaps surprisingly, more about functional programming than the particularities of ML. In any case, it is a great book.
Not being able to buy a necessity gets you in a scary and impotent situation.
I’ve seen that twice in my city, the first one was when an unusual cold winter arrived, temperatures went down to -25 Celsius, maybe that doesn’t sound as much for people who live in cold places, but for my city in Northern Mexico that was amazingly cold. Our infrastructure colapsed, electricity went down, internet and cellphone antennas went down with it, there was LP shortage, old trees died, few people had running water since a lot of pipes were broken. And since everyone was trying to fix their pipes at the same time there was a shortage of tubes and consumables, people spent days and weeks without water.

The second time in 2009 with H1N1’s outbreak, we ran out of masks in a couple of hours.

Situations like that made me realize how vulnerable our societies can be in big events.
How about we don't pass blatantly sexist laws in the first place instead?

What is the problem you're 'trying' to fix that doesn't apply to any other minority?
> The author of this article rants about the swarm of unity games, but some of those unity games are better than what the author made exactly because they took design seriously.

Did we read the same article?

Not only the total number of games, but the rate of their release seems to be geometrically increasing! Holy crap. And while many of them are Unity shovelware, etc., many are polished games that a lot of effort went into. A tiny percentage are hits, but most are forgotten in the deluge.

To me that reads as someone that's fully aware that some people are putting a lot of effort in and making good games (Unity or not), but is upset by the realization that quality doesn't seem to be nearly enough. The problem is not (just) that a lot of crap is being released, but that a lot of everything is being released, good and bad. So much so that even the good things can't make good money because supply has so far outstripped demand.

It's sort of like the Netflix queue problem. I'm continuously adding things to my Netflix queue that look interesting, but my time to actually watch them is such that my chance of getting through even a majority of the queue is almost nil.
Ask HN: Do you think MS will ever open source Windows?
It would be the ultimate olive branch to the open source world and would fully commit them to a managed windows / software as a service company I think. What they might gain is much faster codebase cleanup if they went this route and said: “Hey help is clean up our old win3.1 bloat and unneeded backwards compatibility or legacy code”. Or they could open source it in hopes to create some sort of windows Linux hybrid.
Parts of it are public API with the API specifying the look and even the size of the panels. It’s impossible to rewrite without breaking compatibility.
Economics killed coal, because of natural gas being so cheap, but now solar power and wind power and competitive. We shouldn't forget what the acid rain was doing before we started reducing sulfur emissions. Mercury is another thing we don't necessarily want more of. in you opinion, how should we approach controlling emissions of things like mercury that are known to be unhealthy in certain amounts. It's not like the obama admin invented this idea.
I’ve never understood why they don’t have options for this as well as the cover of the last read book. They haven’t even updated the screensavers since the earliest Kindles.
That seems a really weird move for a place where almost everybody has a car. It would be reasonable if the public transport system was well-developed, growing rapidly and meant to be the main means for the people to travel the city but isn't the USA (with exception of a small number of places) primarily a car country?
No, Heretrix doesn't really do any ranking as it crawls, it's all up to a cleverly chosen seed.

AOPIC looks to me like it's roughly the same as Yahoo's iterative pagerank algorithm, but I didn't look at it that carefully.
Apparently anything can - and most often will - attract downvotes here. Not only controversial or negatively framed or opinionated or poorly stated or patently incorrect comments, but plain, simple, incontrovertible statements of fact as my Algolia one above.

To the extent that I sometimes wonder if someone out there is going a bit too systematically about it.
Democrats use state rights to protect scientifically and economically sound policies when there is an obvious bad faith actions on the part of the Federal Government.
We are running the OSS version of Consul, Nomad, and Vault. While the enterprise versions provide some items that could be interesting, they are not necessary given our workflow, and I'd bet that the majority of development shops out there wouldn't need them either (though I am certainly more than happy to play with them!).
I especially don’t get the ide support bit, because Visual Studio Code already does that for regular JS.

I think typescript is s mistake that most people will regret because it adds so much complexity to the process for so few advantages gained. I mean, we were predominantly a C# house, if anyone should be using Typescript it should be us, but we found it to be much less productive than JS exactly because stuff like prototypes becomes more complex and typesafety kind of gets in the way of the process when you’re not exactly sure what you’re making.

I don’t think it’s exactly coffeescript though, I mean, I just ranted about typescript, but it doesn’t get in the way like coffescript. Since it integrates sort of decent into JS, it’s not a horrible thing, we just found it unnecessary.
beorg is great if you use a single directory for files. Unfortunately it’s proprietary and missing a few features.

But it’s pretty slick. It’s now the app I turn to (not my calendar) when I’m wondering what I’m supposed to be doing today.
Previous discussion from 5 days ago: https://news.ycombinator.com/item?id=18070116 (37 comments)
> I wouldn't be surprised if most of the people who object to this are sexists.

What? You point out the problems with how dumb this law is and then turn around and accuse anyone of objecting to it being a sexist?
Here's the archive itself - apparently including all public GitHub repos:

https://archive.softwareheritage.org/
You still need liability capital for a GmbH (e.g. LLC) which most start-ups just don't have. They start off single or as a GbR with a second or more partners, and then eventually change the company liability type to GmbH, when they generated the capital needed. A real start-up doesn't have to be a GmbH at all. In fact about 2/3 are single start-ups in Germany with maximum personal risk, not even GbR which is only 8%. The rest are GmbH with 30% which also counts start-ups with a bigger company as backer.

That paper is a bit dated, and in German, but still the general assumption that most start-ups are poor remains true for Europe, not only Germany.
https://www.destatis.de/DE/Publikationen/WirtschaftStatistik...

What is true though, a UG (e.g. Ltd), is an alternative to GmbH in terms of liability and capital. The 1 euro capital is a joke, imho. Because no sane credit institute would lend you money when they see your tiny liability investment. However, it is possible to make your business legal and profitable, and then borrow some money. But, honestly, starting with literally nothing is like starting a new game at maximum difficulty and perma-death, and who does that in RL?
It's been studied quite a few times since credit cards arrived, finding that spending cash means you spend least. It explains some of the push for cards, app stores, more recently cashless, and alternative game currencies. Perhaps explained as simply as paying over notes "hurts more" psychologically than invisibly debiting 50 to a card or account.

https://www.psychologytoday.com/gb/blog/the-science-behind-b... Lots of other research and links to find about this.
I actually wish there were a whole [laptop] computer and an OS designed around an e-ink display so it wouldn't be a pain to use in bright direct sunlight.
(1) It's sexist in an attempt to solve sexism in the same way that affirmative action is racist in an attempt to solve racism. Sometimes, the ends justify the means. Unless you believe that only old white men are capable of being on the board you should ask yourself why only old white men are on the board. What is it about society, or the system, that has gotten us to where we are? What if we tried this and see what happens? If it doesn't work maybe let's roll it back? I do know for sure doing nothing won't change anything, at least based on the trendline.

It's really easy to sit there and say this law is sexist if you stand to benefit from the status quo. I'm not sure you do, I know nothing about you - this is an observation in general.

(2) We can have two problems. That doesn't mean we shouldn't try to solve one. This is akin to the argument that California should be dealing with the homeless instead of banning straws. It should be, and is, doing both. We can have two problems. We can work on multiple problems simultaneously. And having two problems isn't a license to sit on your hands and do nothing until you have a way to solve both at the same time. Further, if this works remarkably well in some way maybe it'll be a good template for future change? Or a lesson as to why we shouldn't do it this way.
Me and my HiDPI monitor disagree.
piano:
Bach's Well Tempered Clavier
the sonatas of Haydn, Mozart, Beethoven
I live there now, can confirm.
> highly funded startup that is trying to build something completely revolutionary and hasn't quite gotten there yet

That's exactly what Theranos was, until it wasn't.
Not to be rude, but it seems fairly likely the changes you observed from your change in diet are a result of placebo.

The levels of rosemary and sage found in most foods probably aren't going to have much effect one way or another, let alone being an extremely potent anxiolytic. Beef and potatoes probably aren't going to reliably treat bipolar swings and suicidal ideation. Vitamin C probably isn't going to stop spontaneous rage, and oranges are even less likely to since they only contain 70 - 120mg of vitamin C. Diet is certainly important to physical and mental health, and anything's possible, but I'm skeptical that there's a direct cause and effect between those specific foods and relief from those specific symptoms.
How does this compare with Connexion?

Uses Swagger/OpenAPI that then uses convention (or fully defined) packages, and methods for REST. Runs on top of Flask, and does a lot of all of the validation all from the yaml file. Plumbing taken care for you, etc. so you can focus on business logic?
> all political parties cater to special interests but otherwise accurate

Your statement is so broad as to be effectively meaningless. Sun rises in the east. So what?

The difference is that the GP is beholden completely to its corporate masters and does not hesitate in engaging in lies, false propaganda and bad faith politics to achieve its goals. All of which are corrupt and very anti-democratic.
So why is free speech important anyway?
To me it reads as someone who disregards unity games, while praising well made indie games in general. And in the light of the rest of the article, the author seem to favor people who did good programming, but the truth is that you don’t need to be a good programmer to make good games.

I think supply is an issue, but I also think the author added to the problem by releasing a game that doesn’t have appealing graphics, gameplay or sound. Where as many much of the unity “shovelware” is exactly the opposite.
Basic algorithms: Algorithms by Sedgewick.
I think you can quibble about the author's bias, but Magic Leap has so far failed to deliver on the promise that its early videos promised: the ability to seamlessly blend the real world with a computer-generated one.

Other systems in the same space (like Hololens, the Rift and the Vive) didn’t put such simulated imagery front-and-centre in their marketing materials.
Your impression may be biased because you're more familiar with bad programming habits than bad writing habits.
I’m not sure if it’s true but it seems to me like they replaced their own client with an alternative one they bought from another company, which has parts written in Qt.
Sure, but so far Magic Leap hasn't done anything illegal or unethical or immoral... they've just been a bit behind schedule.

They also aren't in the medical space. Nobody is going to die because of them.
Why would an e-ink device even need a screensaver or to turn the display off? Isn't just leaving a displayed picture as it is the most energy-efficient and display-saving solution on e-ink?
Pretty much. I use IR lights and a pair of space heaters in an enclosed space. The IR lights do most of the job.

Going to a sauna with a thermometer would probably be the easiest route for many who want to try this. It was easier for me to buy a bunch of lights on amazon and do it at home. Cheaper, too.
I use the decorator (“@Prop”). If that doesn’t emit the appropriate types I would be very surprised, but then again the class style syntax has always seemed to be a bit of an afterthought, so perhaps I wouldn’t be too surprised.

But regardless are those not purely runtime checks? I was of the impression that Vue would just print something to console if you messed up there, not issue an error at build time. (And playing around with an existing project it looks like it indeed does not error at build time. That or the “@Prop” decorator doesn’t do what I’d expect it to)
They crawl the web non-stop yes, but how often an individual site is crawled varies.

> Our crawl process is algorithmic: computer programs determine how often we should crawl each site. If you post new articles on your site throughout the day, you should be able to see them appear on Google News fairly quickly.

> [...]

> From the moment we discover a new article, we'll keep re-crawling it looking for changes. Since we noticed that most changes to articles occur just after they're published, we revisit articles most frequently in the first day after we've found them. After that, we visit them less often.

https://support.google.com/news/publisher-center/answer/4039...
Very good for philosophy101 students, or examen philosoficum as we call it.
Show HN: A React port of Sketch's grid system
Some people use mistakes as a launch pad to learn a better way. Not always, and not always immediately, but sometimes it takes dealing with the negative consequences to make the better solution obvious when finally encountered.

Sometimes convincing someone to spend the extra 10-20% of time or effort to do something "the hard way" is nigh impossible until they've spend time doing the alternative and know the extended pain that sometimes results.

It's sort of like seat belts. When they were first required in all vehicles, many people still didn't bother with them. Even before cultural indoctrination took over, a lot of people eventually started too. It took some close calls for people or their friends and family for them to finally make the effort, and such a small effort it was. I saw exactly this play out with my own parents and their siblings.
What did you and the client do then ?
> Learning enough about audio production to create the set of SFX and music you already know you need from the top-down design of the clone-game you already know you're aiming for is effectively "just" grunt work. (...) Stardew Valley's creator didn't need to develop the skills to be an amazing artist or musician, they just needed—like the actor—to develop the skills to create a particular pastiche of existing pieces of art and music.

Would almost agree but you had to bring up this :). I actually talked with SDV developer about his music skills[0]. Turns out, music was his hobby prior to becoming a developer, so he has a lot of experience. So in this case I wouldn't say it's "just', and it definitely wasn't a skill developed for this game.

--

[0] -- https://www.reddit.com/r/StardewValley/comments/4acds9/how_d...
On top Scala programming books see:
http://www.aioptify.com/top-scala-books.php

On Erlang programming books see the following list:
http://www.aioptify.com/top-erlang-programming-books.php
Not really a textbook, but the National Confidential Inquiry into Suicide and Homicide by MH Patients releases an annual report which is very good: https://sites.manchester.ac.uk/ncish/

And the Office for National Statistics releases detailed data on suicide in the UK: https://www.ons.gov.uk/peoplepopulationandcommunity/birthsde...
In econometrics / empirical social science:

- Mostly Harmless Econometrics by Joshua Angrist and Jorn Steffan Piscke

- Causal Inference for Statistics, Social, and Biomedical Sciences by Guido Imbens and Donald Rubin

- Data Analysis using Regression and Multilevel Models by Andrew Gelman and Jennifer Hill
"Corruption" is word with multiple definitions. It can mean underhanded. In that case it's a sort of shorthand for "moral corruption". It indicates the person or system is far from a moral ideal.

But, generally speaking, corruption can just indicate something that has deviated from its original use. A corrupted file on a computer does not meet its intended purpose, at least not fully. A corrupt organization, likewise, could be 100% honest in all its dealings (1) and fail to meet its intended purpose.

If government agencies partnering with private contractors cannot reasonably build the project all of them exist to build, then there is some sort of corruption going on. It's possible there is graft or underhandedness, but it's also possible that there is emergent dysfunction inhibiting their ability to execute. That is also corruption.

(1) That is, the organization is not morally or ethically corrupt.
Ha, at first I thought it's about functional programming. :-)
Think of it as a game of monopoly.
Microsoft got lucky and bought the pink and the orange street, got hotels over it. It was enjoying a good revenue.
But then few people(the open source community - chiefly Linus) bought the brown street and the blue street, which aren't much costly. But it affected the monopoly of Microsoft. So, Microsoft is breaking the hotels now. But still has a lot of houses on its land.
For Microsoft to loosen up, either we need some big projects coming up(a substitute for Microsoft) - consider this the green and the dark blue street. These projects, as their street names suggest, need to be heavily ambitious. Or we need a bad phase for Microsoft.
What I want to say is, Microsoft won't be making Windows open source until it has Monopoly.
With all of their secrecy, you have no idea if they're being unethical or not. Their marketing materials are certainly nothing near reality.
Python introduced the 'typing' module in the standard library in 3.5, and declared that henceforth the annotation syntax was for type hints.

Python introduced the annotation syntax (for everything except variables/attributes) in 3.0. The annotation syntax for variables/attributes was introduced in 3.6.
Rosetta: large scale system for text detection and recognition in images
My favorite books contain vividly detailed descriptions of primate biology but unfortunately, none of them are safe for work.

I would also like to know if there is a good book that covers primate biology. I had no idea it was possible to write a _good_ book about an entire order of creatures.
SDV is another example; the author himself admitted on numerous occasions that the code is, well, not stellar, and in the community we also had some fun reading through decompilations of the parts of the game.

Yet another proof would be surprising number of very games made in tools like GameMaker - think Nuclear Throne, or Cook Serve Delicious. I actually took a peek at the sources of the latter (they were distributed with some Humble Bundle once), and it's... reinforcing this point.
Parking/car space is also part of why houses are so spread out, too.
Urban roads are a natural monopoly, you're not gonna build multiple parallel sets of roads going along each block.
> And Democrats argue states’ rights when it suits them.

No, they don't, and the ones that were once prone to had all become Republicans in the realignment beginning in 1964 that was largely complete by the 1990s.

Democrats might argue Constitutional limits on the power of the federal government, but “state’s rights” has been attached to a very specific ideology since before the Civil War.
Yes trying with a fresh, TS-free, default setup of Vue, the props are still verified only at run time.
How to find the right Jekyll Themes
I'm trying to find some minimal jekyll themes for my academic blog. I'm currently using https://jekyllthemes.org and https://jekyll-themes.com
The latter has a good search option but not a great collection.
Is there any other place where I can find good Jekyll themes?
Google has hidden a text adventure game in Chrome
Crystallography: Structure of Materials: An Introduction to Crystallography, Diffraction and Symmetry by Marc DeGraef

Metallurgy: Physical Metallurgy Principles by Robert Reed-Hill
> Where as many much of the unity “shovelware” is exactly the opposite.

I think the difference of interpretation we're having is that I think you are interpreting "Unity shovelware" to mean "If it's Unity it's crap", which nobody who follows that space could easily defend (a lot of high quality well known games and publishers use Unity). But a lot of shovelware uses Unity, because it's easy to get assets for and publish with.

It's sort of like saying "Java enterprise crap-ware". I wouldn't assume that means all Java programs are crap, or that all enterprise software is crap, but that of the crappy software targeted towards the enterprise, a lot uses Java. That's not an indictment of Java, and might actually be the opposite, given that it has qualities that cover up other poor choices.
vimwiki is great, but $DEITY forgive me I started using OneNote so I can paste in screenshots and now I can't give it up. Too bad it doesn't support vim keybinds.

I tried spacemacs/org/gtd for a while but there was too much yakshaving, sync was hard and still no embedded images.
I’m curious about the arrest. Was he still making use of it? Isn’t there a statute of limitations? Especially concidering he was a minor at the time?