skysight-inc/HackerNews huggingface dataset:
I feel like it's a bit of an odd metric? It's like saying whether people want to use File Explorer. There's alternatives, but it doesn't enter the calculus of a lot of people.

It's not "do you want Edge on your phone", it's "do you want your desktop browser on your mobile" for a decent set of people, I think.
> prisons should be to rehabilitate

A lot of people, regardless of political persuasion, believe that the purpose of prisons is to punish those inside. No more, no less, and any "rehabilitation" is just something that happens alongside (and often in spite of) the real purpose.
Dependency Injection / IoC Container Npm Package for ES6+/Typescript Projects
This isn't a Microsoft product.
Gaming GPUs have different qualification targets anyway. They will error fairly frequently compared to e.g. your CPU; something that doesn't matter when most errors become invisible after about 16 ms, but not really something you want to see e.g. in a simulation.
I'm not sure I agree with you, but for what it's worth I do understand the point you are making. You are making a separation between types of pressure which are existential and those which are not. Norway could have accepted the lower exports on fish (less than 1% of their GDP) and continued on while snubbing China, but it was more beneficial to them economically to concede.

However, this isn't existential because even if China refuses to trade with Norway entirely, through the EEA the Norwegian people could continue receiving goods from China mediated through a different EEA country that has trade agreements.

At it's most dire what occurred simply wasn't an existential threat to Norway and the geographical distance meant that military reactions to trade disputes simply weren't going to occur. Thus the "force" here was mostly one of appearances, rather than reality.

That said, I'm not entirely sure I agree that this doesn't meet the definition of "forcing". Politics is squishy like that. Just because fishing is less than 1% of the GDP doesn't mean it has minimal impact on Norwegian society. The fishing industry has significant historical and cultural significance to Norway and abandoning support of that industry could very well be political suicide within Norway for the politicians that refused to play ball. You could say its simply spineless, but the optics of them snubbing China and at the same time snubbing their own fishing industry aren't especially good.
What are a few things you require for someone to be a "good applicant"
Just relax and continue reading hackernews. Maybe you'll find something interesting to talk about.
We give coding challenges to our intern applicants, and most fail. We give different challenges and expect different levels of competency for a senior role.

Code challenges at least have the capability of being very useful. We try and present the type of problems people will have to be solving in that position; if they struggle with it and someone else excels, they have done their job.
Scraping JS-only sites is also possible without a headless browser, but requires a bit more debugging of the internal structure of these sites.
Most of JS-only websites have API endpoints with JSON responses, which can make scraping more reliable than parsing custom (and sometimes invalid) HTML.
The drawback of headless browser based scraping is that it requires significant amount of cpu time and memory compared to "static" scraping frameworks.
Woman films her internet-connected camera whispering ‘Hola señorita’
For Startups: Vision and Phases of Business
Go definitely prefers modular fashion. But definitely no gratuitous files/packages structure like Java where a dozen packages each with 2-3 files having nothing more than 50 lines of code out of which 30 are comments and imports of another dozen packages.

Unlike Java, Go does not have limitation of having each public class in its own file. So public symbols of any type can be put together in same file if it makes sense. Go prefers arranging code what makes sense for application functionality instead of auto-generated scaffolding like 'handlers', 'utils', 'assets', 'entities' etc like I do in my Java code.
Ask HN: Self distributing money system with deteriorating coins
I have an idea for a coin that I'd like to refer to as Senescence Coin and seeing that there are a bunch of really smart people here, I'd like to hear your thoughts on my proposed monetary system.

Feature 1:

Senescence (biological term) being the condition or process of deterioration with age.
---------
The currency would have built in senescence that is reset to zero upon conducting a transaction. The rate of death would be dynamic based on potentially the weighting of current factors in the network/market. For example, in it's infancy there wouldn't be a lot of transactions taking place, so the rate of death would be incredibly slow.

This feature would prevent the hoarding of money.

Feature 2:

First law of thermodynamics - energy of a closed system must remain constant.
---------
Upon death of a coin, the coin would be transferred, either into a mining pool or spread across wallets in poorer geographical locations.

The total number of coins in the system should be constant, either in the mining pool or in wallets.

Other potential features to encourage buy-in:

Automatic taxation on every transaction, geographically linked. Could serve to eliminate all other forms of taxation and achieve government buy in. Additionally, it prevents the potential abuse of transferring money around wallets to bypass the feature of senescence.

Anti-fraud, a wallet rating, so users can transact with trusted entities.
In most previous generations all Core iX dice have had support for ECC, selectively disabled through fusing. Obviously, all internal busses and caches use error correction/detection independent of what the memory controller does.
The Java-TF binding is so shallow it is absurd, IMHO. Basically, you loose everything you have when coding TF in Python, but yes - you can import models and weights into your JVM and do inference there. If you want to create a graph, then you will have to code on a very low level - most of the abstractions and tools are gone.
Then his choice is $13,000 vs $1,000.

Money may not be an object, but choosing the first option seems a little stupid. Even rich people don't throw away money like that, because if they did, they probably wouldn't have gotten rich in the first place.
> Perhaps, but in many cases recognition that there should be "One China" also comes with the implication that Taiwan's government should be the one ruling the "One China".

Correct. All it is, is the acknowledgement that there aren't two countries called China, and if you want to do business with China, then the People's Republic of China is the only China you are allowed to officially recognise.

> Did you read the linked article?

Yes. Other countries do go that far too.
I took a hard, rational look at Ryzen for my latest workstation purchase. Ultimately I went with Intel due to all the reports of crashes under heavy SMT load on Linux.
Event-Driven Architecture
I am glad to hear it!
But there is no need for the whole mining thing if the only transparency is needed.

- publish all "transactions" (of any nature)

- hash (transaction | hash of previous transaction) and sign the hash

- publish signed hashes along the transactions

- give customers back signed hashes of their transactions

This way you have a system with proovable immutability and guaranteed inclusion into the transaction log. If anyone can come up with a signed hash of a transaction not in the log, it means the system isn't trustworthy and should be punished, through legal or market means.

By the way, we already have a system like this in place: Certificate Transparency. There is no way one can buy "tokens" in such model though, so there is no incentive to hype it ¯\_(ツ)_/¯
China was going to come around any time now, too.

Everybody expected that economic growth = growth of democracy = growth of free speech.
>A closed platform for open communities

This is a contradiction. What kind of open community would put their eggs in a proprietary basket? Surely not one with an understanding of the finite lifecycle of proprietary services.
Foods have more calories per serving than previously and people are less active than they used to be.
Never Let Me Go is a favorite of mine. I have read it twice, and I NEVER read novels twice.
Guide to Wooden Pencils
I'm afraid not :/ Windows is a whole new kettle of fish to get working - you need a device driver to emulate TUN/TAP.

That said, I'm using a library called Water for the low-level networking, and that library just added support for Windows. Implementing full windows support only requires you to implement a few network methods (such as helpers_linux.go) - PRs welcome :)
You could go through a list of <programming language> design patterns, just as reminder what, e.g. a factory is. Also I've seen that a session start with an empty text editor, do you know how to write a class with a single empty method without copy&pasting from existing code?

Otherwise I agree with davman, relax.
Look at the Ryzen 1700X. Its a full fledged 8 core and down to 299 (https://www.amazon.com/exec/obidos/ASIN/B06X3W9NGG/55467-20/...). Dont think Intel has something that comes close to that for compile times at that price point (If someone has a counter point on this I would love to be corrected).
Except Internet Explorer.

http://www.useragentstring.com/pages/useragentstring.php?nam...

IE version 6: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1)

IE version 10: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)

IE versi--wait, what (?!): Mozilla/1.22 (compatible; MSIE 10.0; Windows 3.1)

That last one made me wonder if someone was trolling an auto-collection system or if a zero somehow got added by a Network™. Offtopic but had to add it.
It’s odd to talk about “needs” like this. iPhones don’t “need” the Secure Enclave either, but never the less it’s great that they have it.

It’s some kind of snobbery to advocate that good technology should be held back until non-enterprise plebs demonstrate that they are deserving of it.

Just give everyone the good technology as much as is possible. Who’s it hurting if some subjectively underutilise it?
For my private keys, I export them into PEM format, convert that into a QR code, and print them out. This goes in my fire-resistant Fort Knox vault [1] for safe keeping. The vault is bolted to the cement floor and cannot be carted away.

I use intermediate certs for my internal CA and do keep those private keys online for quick and easy generation of new certs but the root cert private key only exists in physical form under my control. It's a bit of a pain to convert the root key back into digital form but I only have to do this every couple of years when the intermediate cert expires.

I got into a habit of writing shell scripts for every certificate related task to make it easier. I use the dialog(1) utility to prompt me for input when that's needed. If things are easy, you're more likely to do them.

[1] https://www.ftknox.com/vaults/legend-vault/
Try to list all Python dunders
I took that to mean that his skills were not diverse.
For someone running a bunch of sites on a single Postgres 9.2... what's the best guide for upgrading?
Google’s new Clips camera is invasive, creepy, and perfect for parents
Really love the builtin sharding and parallelism. Would wait a little before using it in a project.
But are they as commonplace?
My Project Euler prime sieving / counting code was

vector<uint8_t> is_prime(n, true);

// Sieve
for (uint64_t k = 3; k * k < n; k += 2)
if (is_prime[k])
for (uint64_t multiple = k * k; multiple < n; multiple += 2 * k)
is_prime[multiple] = false;

It only loops over odd numbers; it only crosses off odd multiples of prime numbers. Note the stop condition of the outer loop and starting point of the inner loop.

Note that this code is memory-bound. You can get nearly 10x speed up if you implement a segmented sieve (sieving [2,n] in intervals, keeping memory costs more or less fixed)
Agreed. I do think the tech is 'cool', though. I was recently in a location where nobody spoke English, outside of a few words like 'hello', etc. We communicated a lot nonverbally, quite easily. We laughed together, attempted to speak each others language(which led to more laughing), did things together, ate together, etc. Sure we couldn't sit around and discuss politics or philosophy, but I found that situation more endearing oddly.
The i5 is cheaper, and actually outperforms the 1600 in most productivity benchmarks as well.

It also has an iGPU and if you are buying a 180$ CPU it actually counts.
That is if you ban guns.
Well ECC memory uses eight extra bits on the data bus, backed by a extra chip(s) (depending on the module's organisation); ECC memory modules effectively store one extra eighth of redundant data.

However, in many applications we find that using (forward) error correction almost always increases data density (for storage) or bandwidth (for transmission), simply because a FEC stream does not require a nearly-perfect channel any more. This is the way hard disks, SSDs, WiFi, LTE, DSL, ..., satellite communications, ...[, ...][, ...] are able to cram incredible amounts of data into very noisy channels. Thus, ECC significantly lowers cost in many dimensions (be it frequency spectra, storage prices, not having to re-cable entire countries...).

(And if you don't use the extra noise margin to increase density/bandwidth, then you can use it to increase reliability, like we usually do with ECC memory)

Thinking about it for a few minutes, the memory bus will most likely be the only bus in your computer that has no error correction/detection. USB, SATA, PCIe, all of them require it. The main memory will also most likely be the only storage that doesn't use it (apart from firmware flash chips and the like, but these often use a checksum at least).
Congrats to the team! Cant wait to take the performance improvements and hash indexes for a spin.
Repository Boilerplate
In chess, the pawns go first
That doesn't seem physically possible without amphetamines
I think it's real value will take off when amateur pornographers figure out that they can make money on the site.
Wrt your question about production-ready manner: I don't know.

However, there are many libraries which make functional programming in Python seem viable. See eg: https://pypi.python.org/pypi/PyMonad/
TL;DR: it's NOT using its own engine on Android. It uses Blink there.

"On iOS, we are using the WebKit engine, as provided by iOS in the WKWebView control. That means that from a compatibility perspective, Microsoft Edge for iOS should match the version of Safari that is currently available for iOS."

"On Android, we are using the Blink rendering engine from the Chromium browser project."

Source: https://news.ycombinator.com/item?id=15408882 -> https://blogs.windows.com/msedgedev/2017/10/05/microsoft-edg...
Honestly, I read stories or articles that help me feel more confident before an interview. Everyone has something unique to help them, but for me, I'll read some new update on R or python or read a few online threads about cool things. Then, in the interview, I casually bring up something I read about. That makes me sound smart too!
I don't have access to Google's internal issue tracker... I don't think anyone on HN who doesn't work at Google has access.
How JQuery Selectors Work with Document.append() – JQuery to Vanilla JS
As mentioned, Puppeteer was used in this project, which is Chrome based.

I've also used Selenium (via Python -- I used BeautifulSoup to parse the resulting HTML) in the past for precisely for the reasons you stated. Selenium uses "web drivers", which lets you start other headless browsers as well (Firefox, Opera, IE, etc.).

http://www.seleniumhq.org/

http://selenium-python.readthedocs.io/

All it took was a couple of lines of Python code...
It's always possible to write the non-generic version of a generic method and still get it right. I mean, there are mistakes that the formality will help you avoid (e.g. if you violate associativity, even in a seemingly trivial way, it will always come to bite you at the worst possible time), but it's possible to just not make those mistakes. The advantages of the generic formalism over reimplementing it specifically every time are, just like for any other use of generics, saving code and being able to reuse existing library methods (e.g. traverse, mfix, the various recursion-schemes traversal operators).
Maybe stop the outer loop as soon as i * i > n then as well.

Also, where's the check whether `i` is actually prime before you start crossing off multiples? You don't need to cross off multiples of composite numbers.
My concern is that 'built on modern crypto' and 'reviewed by cryptographers' amounts to 'rolled our own crypto'. IMHO history has shown us time and time again that this is a bad idea - we should use the protocols and ciphers that have stood the test of time. Building subnet using TLS was an architectural choice to avoid playing the role of cryptographer and inevitably getting it wrong.
On the contrary. This is a core project team member saying that in the event a dedicated agent IS sufficiently motivated and DOES manage to compromise a Colony, "well, the answer is simply ¯\_(ツ)_/¯"

The many sentences that come before the shrug do nothing to address the very realistic scenario of a breach. The "sarcastic closing comment" was in fact the final truth of it.
Hive.co (YCS14) | Full-Stack Software Engineers & Designers | Kitchener/Waterloo, ON, Canada | FULL TIME ONSITE | http://www.hive.co

Hive is a Y-Combinator backed smart email platform that helps thousands of brands personalize and automate their marketing campaigns. Our technology helps brands sell more stuff, while keeping their customers happy, engaged, and spending money.

Our tight-knit team is a bunch of hackers and hustlers, and we split our time between offices in Waterloo and Los Angeles. You’ll be engineer #3 or designer #1 on our product & engineering team in Kitchener.

Required Skills:

- Passionate about building things. You've got side projects you're proud of and you probably read Product Hunt, Twitter, or Hacker News more than is healthy.
- When it comes to design and development, you're comfortable owning, designing, building, and shipping your own features/products
- You love thoughtful, clean design with an emphasis on usability and our users’ needs
- You thrive or want to thrive in a startup environment
- Brands, e-commerce, large amounts data and innovative marketing campaigns get you excited
- You've built things with our stack before (or can google and learn how to quickly):
- Python/Django (MySQL/Redis) web app, jQuery and CSS (LESS) on the front end
- Celery (RabbitMQ) for billions of asynchronous data-processing tasks
- MongoDB/Elasticsearch for big-ish data
- AWS Stack (RDS, EC2, ELB, S3, Lambda, Redshift, Elasticache)
- Git (Github) for source control and code reviews, whatever code editor you like
- You might have a great CS or Engineering degree, or something else, or you dropped out, or you didn't even go to school! Our team is made up of all kinds of smart people.

Bottom line... We're looking for fast learners who are passionate about what we're building. You'll be well taken care of: meaningful equity, salary, and the benefits you need to be happy & healthy.

Finally (and most important), culture is important to us. After a few days of busy work, you've got to know how to let loose - our team loves everything from concerts and music festivals, to ski trips and tech talks - and of course, whatever you’re in to!

Here's our open positions: http://www.hive.co/jobs

If you want to talk directly or have any questions: patrick [at] [our domain] (no recruiters, please!)
could you elaborate on that?. They are the most popular languages for scientific computing.
Can you afford any down time?
The sieve of Eratosthenes can be adapted to build tables of other number properties: smallest prime factor, totient function, number of unique prime factors (omega), product of unique prime factors (radical).

Contains code in Python and other languages: https://www.nayuki.io/page/the-versatile-sieve-of-eratosthen...
Are most of the people here who say they do this frequently just staying up until dawn and then crashing for the rest of the day? Or are you working through the night plus the next full workday?
This assumes there are Linux users that actually want to use the Edge browser though
Slashdot Celebrates Its 20th Anniversary
The author is clearly not white
The coffee vending machine in the math department at the University of Maryland had a sticker on it with a medallion that proclaimed that it won some prestigious award for great coffee.

My friend and I would meet for coffee and to laugh at and admire it, as if there's some competition between vending machines for best coffee, and it was a hard-won legitimate award like a boxing title, with judges and urine tests, that our coffee vending machine successfully defended every year.

But I'll be damed if it wasn't really great coffee! We kept coming back for more.

Are there really awards for great coffee vending machines? Are they for brands, or individual machines? Or was it just effective advertising and the placebo effect? It it possible to buy fake award stickers to affix to vending machines that subjectively improve the taste of their products? Or maybe there was some addictive mind altering ingredient in the coffee it dispensed.
>How comes companies making the same tests as for recruiting for real jobs ?

1) Because desirable internships have more candidate applications than available slots. E.g. Google has 40,000 students wanting an internship but only 1500 slots.[1] With that supply & demand ratio, Google can be selective via difficult coding tests.

2) Even though internships are unpaid, companies evaluate interns to potentially offer permanent employment. If so, a company like Google would want to fill those 1500 slots with "the best" rather than randomly pull from 40000 candidates.

That's how it is at the hot tech companies. Maybe other internship programs outside of tech sectors such as Peace Corps think of interns differently.

[1] https://www.fastcompany.com/1683136/how-to-actually-land-an-...
chicken and egg problem. Why would I as an individual want to use the coin at first. Without some kind of ponzi scheme component for early adopters it would be hard to get off the ground.
An Objective Observation of Our State of Affairs
Would this work?

c := colly.NewCollector()

// this functions create a goroutine and returns a channel
ch := c.HTML("a")
e := <- ch
link := e.Attr("href")
// ...

I'm a bit rusty (ah!) with go, so bear with me if the above contains errors.
Its good technology-wise, but out of all the browsers I've touched, its the one that I feel like I have the least control over
How does one die of natural causes at 25?
If you care about integrated graphics. Most desktops will probably have a dedicated GPU, as well though. Which makes the integration graphics completely useless.

I would like to see the benchmarks that show the i5 outperforming the Ryzen 5 1600X in a multi-core setting.
Can you expand on this? Memory already includes controller logic and adding ECC logic does not need a seperate process. All you need is more silicon real estate because of the extra bits needed for the ECC. Silicon is cheap.