skysight-inc/HackerNews huggingface dataset:
No. `(a,b) => a => b` cannot produce a stable sort in all scenarios. Would theoretically work fine for integers since there's no difference between any two instances of the same number, but consider:

let arr = [
{number: 2, name: 'a'},
{number: 1, name: 'b'},
{number: 1, name: 'c'},
]

Now assume we want to sort arr with a compare function, and our sort function expects the compare function to return a boolean, not an integer.

let compare = (a,b) => a.number => b.number
compare(arr[0], arr[1]) //=> true, so the object named 'a' comes after 'b'
compare(arr[1], arr[2]) //=> true, so the object named 'b' comes after 'c'?

See the problem?
How to Measure Your Product - Startup School 2018 Week 3
TrueVault Is Hiring Senior Engineer (remote or SF) to Build Fort Knox for PII
And have all of the security issues that go along with it....

https://gkbrk.com/2017/05/android-dialer-packets/
I was worried Google Wave would take over the CRM industry.
"Snowden: FBI Saying It Can't Unlock iPhone is 'Bullsh'"

http://fortune.com/2016/03/09/snowden-fbi-apple-iphone/
How to Get Users and Grow – Startup School 2018 Week 3
And iOS doesn’t need that bandaid. App developers have been developing with the expectation that their apps could be denied permissions they request since day one.
Its possible, but not at all feasible. It’s also not really practical and the nature of it undercuts the usual “where are all of the intelligent species colonizing the galaxy?” arguments which tend to crop up.
"The existence of an exploit" is an argument in favor of defense-in-depth techniques, as an exploit in one layer does not result in full-system compromise.
Building Product – Startup School 2018 Week 2
Finding Product Market Fit – Startup School 2018 Week 2
Anthea Behm / Avi Alpert – If You Lived Here – 14×48 Project
Do you have an IPS display for your X220? It doesn't increase the resolution, but it does make it much better. (The X220 is pretty easy to swap the screen on too.)
The Polymath Project: A Few Principles for Intellectual Freedom
> Stainless I would argue belongs in material not in grade and class as these are different attributes. You can get grade 10.9 bolts in stainless, black, zinc plated and possibly in other materials and finishes. If it doesn't specify the type of stainless steel the safest thing to assume it's a low quality material which doesn't conform to any specific specification or at least lacks the appropriate accompanying paperwork.

I'd disagree there as stainless (at least in metric land) is categorized, in part, by strength e.g. A4-80 vs A4-70.

https://www.hi-tensilebolt.com.au/bolt-strength-grades-and-h...

http://home.jtan.com/~joe/KIAT/kiat_2.htm

> Honestly I think search in this area is actually extremely difficult due to all the inconsistent standards, specifications as well as random proprietary fasteners that exist.

It is difficult, yes, but not impossible. This is why some of the folks have commenting have held up McMaster-Carr's site as an example.
I can't get past level 3.
An Evening with Xu Bing – MoMa
2000 Free E-books to Celebrate the Success of Vetteblog.com
I moved from the UK to the US when I was 20 with no degree, just self taught. Have been working in senior engineering roles for ~8 years. I do feel as though I’ve struggled more with the academic side of CS but the practical side is what you’re measured on post-inverview. You can’t go wrong by going to school, but it is becoming decreasingly necessary
Single-point of failure. The biggest con of electronic voting that you forgot. Its a single-piece of software that can be manipulated or hacked to change the outcome of the entire election by a small group of people. Pretty much every month for the past few years there has been a major security hack that affects millions of people. The same will inevitably happen with an electronic voting system and may go undetected for months/years.

Second, usually in a paper voting system, the ballot box and the counting of the votes is always done in the presence of the election officer, and the representatives of at least two major political parties. All have conflicting aims, and to manipulate an election, you have to corrupt all three of them at many many polling stations.
The basic USB protocol does not allow for direct peripheral mastering of DMA (unlike IEEE 1394 or PCIe for example). So, barring a protocol exploit in the USB host controller, which is certainly a theoretical possibility given the enormous size of the specification, fencing off the USB host controller using the IOMMU is just an additional layer of protection, rather than a necessary boundary like it is for a PCIe or 1394 device which has access to memory natively.

A USB-C/USB3 physical port makes things a bit more complicated, as it also could be attached to a controller supporting Thunderbolt, which is PCIe.

The unsafe part of plugging in a USB device is probably at the OS level rather than the protocol level - in my opinion you're much more likely to be owned by something like connecting a device with a buggy or compromised driver, mounting a filesystem containing an FS exploit, or reading a file containing an application exploit than by a USB-level protocol exploit.
Meh, I ride the BART every day in California, and before that I rode the tube every day in London. The bigger size is just something you get used to, it doesn't prevent one-handed operation, you just use Reachability or do a little hand shimmy.

I get the elegance argument about 4/5/SE design, but the screen size thing is just the market speaking. A lot of people use their phone as primary computing device and a bigger screen is nice when it's your only device.
It's a dev dependency because they use it in unit tests but it's also a peer dependency, meaning that if you want to use the library you need to include moment.
> - no background tasks

Completely false - there are many types of background tasks an app can perform.

> OneDrive experience sucks

Obviously this is subjective, but OneDrive can integrate at the file system level and be treated as a first-party file provider. If MS makes that suck, that’s not on apple.

> - file system experience sucks, cannot save file in one app and open in another

Also completely false. The Files app/framework includes not only locally created and managed files and iCloud, but also incorporates third party file storage like Dropbox and OneDrive.

> - no alternative browsers

Also false

> - no apps like Termux, or other emulators

Plenty of apps to get you on an SSH or serial terminal - Prompt and GetConsole are my gotos, but there are tons.

It really sounds like you read a list of half-true iOS complaints from 2010 and regurgitated them here.
Apple's getting a LOT of business from China. It can't and won't afford to piss them off.
under what visa?

This would be hard to do today.
https://infrequently.org/2017/10/can-you-afford-it-real-worl...

https://infrequently.org/2018/09/the-developer-experience-ba...

https://medium.com/@addyosmani/the-cost-of-javascript-in-201...
> irrational fear of taxation

Curious when it becomes rational? Literally every federal income tax bracket is more than the taxes on "tea" before the revolutionary war.

Most of us making decent money in high-cost world city are paying 50% or damn near close to it in taxes.

What is left to tax? If you start taking much more from me I simply quit and move to the third world where I can retire today with my current savings.

This whole meme of "irrational fear of taxation" is ridiculous. Those that make money pay 50% or so in taxes, and we aren't seeing a whole lot of return for that money. I'd pay 7% more if I moved to the Netherlands today, and get a whole lot more than 7% in additional value.
:imap jj <Esc>
Not always. No, it just shows me build errors as well.

Behind the scenes the complete solution is copied to a temporary location and files that are open in an editor are replaced by the current editor state. And then it will effectively try to build and run tests at every keystroke.
For unlables rooted trees, there are also the matula numbers which naturally map between these trees and the natural numbers.

Also, if you want binary trees, another way to do that could be to take any bijection between positive natural numbers and pairs of natural numbers (including 0), and,
well, it is fairly straightforward.

Let 0 correspond to the tree of one vertex (no children), and then for any binary tree, associate it with the natural number corresponding to the pair of natural numbers which are associated with the two child subtrees.

The specific bijection used to pair them is up to you. This page seems to describe one example of this.
This is a very common pattern on Node.js... look into the package debug, it's structured to work as a dev help and can be enabled/disabled per part. So you only enable it for the bit you are debugging and unrelated info gets filtered out.
what's wrong with the article?
We have the same thing in France with some weird exception for Paris. I was really glad when I moved to paris and could finally found a shop open at a time when it suited actually employed people.

I strongly believe that people's work times should be as desynchronised as possible which would not only make it easier for everybody to handle administrative stuff without having to take off-time from work, but would also help reducing congestion.
That’s simply not correct. Do an example. What graph do you draw? That’s the underlying graph that has to be acyclic. Where is this supposed tree structure coming from? Try a dense graph, like with n=5, and every actor having at least 3 contacts.
UK layouts are so rare on ergo keyboards these days
Video of parliamentary debate and voting in the various (parliamentary system) countries I've lived in and visited just make me shake my head.

What it looks to mostly be about is "being the winner", regardless of what facts say are right. That, and keeping the gravy train going in regards to the daily expenses (300+ euro a day last I checked), big wages, and of course those wonderful pensions.

I've had very little hope since I first started voting 30 years ago. Nothing has improved in my opinion in global politics since then (wars, arms deals, greed, censorship etc....), including the never ending stream of - what eventually turn out to be -self serving politicians.

And given the political mind set, global economies and war are only going to get worse before, if we're lucky, it gets better.
Ask HN: How to extract location data while traveling
I travel fairly frequently for work and family and recently decided I'd like to pull out location data from somewhere on a regular, automated basis. I started looking into Google Maps, but as far as I can tell I'd have to jack my own cookies to automate the KML extraction, which isn't ideal. Are there any GPS devices on the market they sync with the cloud and have open APIs? Or are there any apps (maybe in the Strava family) that don't focus on exercise but just on walking (and also have API accessible data).

Just figured it was worth a shot to ask in case anyone has some experience in this space.

Thanks!
To find something funny, you "get it". The getter is superior to the got. If someone got you, they are superior.

Ask any kid who gets laughed at if he feels good about it. Some kids run out of insults and only need to laugh to torment.

Life is not absurd - "wildly unreasonable, illogical, or inappropriate." Life is such an appropriate choice that most people choose to keep living every day. It's logical, at least the kind of logic that arises out of chaos- civilization out of nature. In chaos lies death. Like the chaos of war. We spend our days organizing nature to promote a more just and productive society, to make life easier. Life is not unreasonable, it provides you much time for reason. Death is unreasonable, in that it can't be bargained with. People need a reason to truly live, a purpose, IE life and reason are very similar. So life is basically the opposite of absurd.
They probably mean it costs less than $175 to make and they sell it for $349.
وظائف مندوبين مبيعات 2018
Robigalia – Rust on top of seL4
Useless anecdote incoming, but after always reading the many hastily posted defenses posted after anyone claims that teachers get to take summer off, I asked a friend who started teaching a few years ago. He said that you do indeed get most of the summer off. Few conferences you might have to attend, some teachers take second jobs, etc. Granted, he's a really smart guy and probably has less difficulty than others making lesson plans, but seems like a good gig if you have decent time management skills and enjoy the privilege of teaching the next generation.

I'm sure it depends heavily on the district, but the "teachers are the hardest workers!" tagline always seemed like an easy story to tell to (justifiably) ask for wage increases.

"gasp They have to grade homework at home!". Well, yeah, I have to take office work home as well as the United States has no labor laws preventing that.
Why should Bezos pay them better if he can get the state to compensate the workers?

A new study found that 700 Amazon employees in Ohio are on food stamps: https://www.businessinsider.in/A-new-study-found-that-700-Am...
Oh wait I'm so sorry, did someone change the original post? When I click the title now an article I never read pops up. I was ranting about this article: http://blogs.discovermagazine.com/d-brief/2015/01/30/scienti...
It's just very poor quality and sensational.
I don't think that cuts one direction. Electronic doesn't have to have a single point of failure, that's a design decision.

And paper ballots often have moments where they have single points of failure, like the examples I cited of missing ballot boxes. There weren't three corrupt parties involved in those.
There are few if any specific directions about health in the new testament.. unless you count "don't worry" as a health directive. The new testament is said to be "a better contract", not contradicting, but replacing the old testament.

Again, though, the stories should be taken with salt. They thought the earth was flat, but human brains were largely the same. If situations were occurring then, and they still occur today, you can learn a bit about the inner workings of the mind, society, and such.
I moatly use mobile web, and maybe 2 screens of common apps. The SE works great for me. Every now and then something is a bit off, but I’ll just ditch the rare site/app that doesn’t work right. There’s plenty to do in this life.
I've definitely made my peace with it. Think of it this way: how much better is a bunch of imports than the slew of stackexchange copy-pasta you'd find in an old PHP app?
Did you read the linked material?

Looking at instruction encoding through an octal lens makes a lot of sense.

We should allow some license here. A discussion of, say the ALU, may likely yield a different statement.

"Machine", viewed theou various lenses, bit depth, ALU, clock, instructions, registers or lack of, works best in context.

Just a thought. :D
Has to be, right?

Artifact of modern execute and cache schemes.
I get there mostly with a pinned terminal and 'dotnet watch test' in my tests directory
Observation: The way JS handles "holes" in sparse arrays is similar to how Lua resolves non-existent table entries to nil. This can be interesting when people don't know the difference between pairs, ipairs and for 1, #tbl iterations, when the table contains a nil value and the table indexing (index or key) may be unknown.
It’s because the mobile free alternatives are so much better.
Hah. Context for others: http://bash.org/?244321
Why do you consider annualized return more meaningful than alpha or Sharpe ratio?
He doesn't have a legal responsibility either. This is a myth. CEOs have broad discretion to act in ways that are beneficial to a company.

Costco is not acting illegally, or even against their own interests, by paying workers higher wages. They can make the very true argument that paying higher wages results in happier employees that reduces turnover (and therefore training costs), increases sales (since employees are more knowledgeable about products), and results in happier customers that increases repeat visits/member retention.

If the shareholders disagree with the way that the CEO is maximizing company value, then the correct response is to replace the board through a vote, who will replace the CEO.

There's no legal or ethical argument here. Costco doesn't exist in a hypothetical world where everything stays the same, but wages get reduced to minimum wage. Taking that action has costs for Costco, and the end result may or may not result in an increase or decrease of company value. Hypotheticals aren't valid legal cases.
well, it's also meant to eliminate the issue of recounts, can be better audited as a process, and minimizes human error in what is a very manual and repetitive task. tbh if computers should be used anywhere, its in something like this. It's literally counting, and a lot of it

but alas
Firefox -> Preferences -> Content -> Fonts & Colors -> Advanced -> Minimum font size

And the problem is cleared right up.
If Americans are so keen to pay people better they should vote to elect leaders who will decrease inflation. But they don't. So it does seem that the majority of voters don't care enough to decrease inflation.

If Americans would like people to have proper access to healthcare, they would not make it dependent on having a job and make it a universal benefit funded by the government, but they don't.

I actually am an advocate for lower prices for all goods, and some government programs for healthcare, education, and access to daycare / pre-school;...etc.
The irony is that when the Android phablets came out, Jony Ive got on camera and said unequivocally: “we tested it and the iPhone 5 form factor is the right size for single handed use.”

I wish he would just explain his thinking on this. It’s such a fundamental design decision.
Ask HN: Basic privacy related security measures to be done in a smartphone
Hi HN,

What are the basic measures one should take to ensure user privacy to a reasonable extent in smartphones.

I understand the value of privacy, but I am not an expert on security to suggest the measures to be taken.

Lot of non tech savvy people in my family/friends are using all sorts of apps without knowing the risks. I would like to help them understand and ask them to implement the suggestions from this thread.

Please provide your suggestions for ios/android smartphones.

Thanks.
Filed https://github.com/xonsh/xonsh/issues/2815

$ yes test | tee /tmp/xonsh.log

$ wc -l /tmp/xonsh.log

208076 /tmp/xonsh.log

bummer
ctrl+c does eventually work several seconds later (about 10x slower) which is still a deal breaker as it could be disastrous when you need to abort a mistyped command or for scripts that give you a few seconds to abort before it does something the destructive step...
Those are interesting articles, however they don't directly address my point nor do they provide practical alternatives.
Mathematically, it is actually rational for a religion to require wearing spaghetti strainers or turning off your phone on weekends. This was pointed out in an introductory game theory book I recently read.

There are benefits to being a member of a religious group, such as participating in the group's organized social events. People in groups will often favor others from the same groups, so for example if you are in the same church as the plumber you call to fix your broken toilet he might not try to run up the costs as much as he would if you were totally unfamiliar to him.

People who do not actually believe the religion might pretend in order to get those benefits. The book had a nice illustration showing a man eating a hamburger at a church picnic and his thought balloon said "I can pretend to love Jesus for a free burger!".

Religious rituals like wearing a ridiculous spaghetti strainer or not using a phone on weekends impose a cost on membership.

For the person who actually believes the religion and follows it they believe their reward for membership will be eternal life in heaven or avoidance of eternal damnation in hell or something big like that along with the earthly membership benefits like free burgers at church social events and only getting mildly ripped off when they need a toilet fixed. The benefits still greatly outweigh the cost of the silly, stupid, or annoying rituals.

For the non-believer who believes that membership benefits will only be a few more social events to attend with occasional free burgers and the milder toilet fixing rip off it not be worth wearing the stupid hat or foregoing using their phone.
to me the news is: intel has competitive modems that use intel instructions
Using Rust for Game Development by Catherine West
Yes, I’m using date-fns and bits of this pull request [1]. It works very well and uses the Intl browser API to support time zones.

Also worth noting that the mutable nature of moment can make things very confusing where as date fns is immutable and consistent.

Remember that unless building a calendaring system, all dates should be stored in UTC and only converted into a specific Timezone for presentation.

[1] https://github.com/date-fns/date-fns/pull/707
Chinese Soup
Knorr, a best Chinese Soup now in India. We have handpicked the best quality ingredients and mixed it with spices to give you delicious soups without adding any preservatives! Browse us online.
> have to spend from their own salary so other people’s kids to have access to learning activities and materials.

I can not describe in words how much I hate this utter false narrative.

Stop giving money for this bullshit and it instantly stops within 24 months. Period.

It only continues because of wording like "have to" in these sort of posts. No, they don't have no. If they didn't, schools would pick up the insanely trivial cost of these items. This is not a source of school funding issues. 99% of parents can figure out where to get an extra $50 over the course of a school year if they care even a tiny little bit.

The 80/20 rule you describe holds true almost everywhere in life. 20% of the people on the planet do 80% of the work, that's how it always has been and always will be. Unfortunately compensation will never properly align.

> Smart and capable people that might be interested in teaching the next generation if the pay didn’t suc

This has almost nothing to do with the pay, and everything to do with how shitty the job is. I'd educate smart motivated kids with parents who would kick their ass at home for a very marginal salary - it's fulfilling and interesting. Public school in the US as it's practiced today? I'm not sure you could offer me enough money to do such a thing. I'd rather retire today than take such a job at 4x my current pay.

Perhaps solve that last paragraph of mine and we could actually fix education in this country.

Edit: tldr; we agree for the most part but I'm much more militant in nature :)
In my opinion, Thinkpads have always held the #1 spot in the keyboard category, over Apple and others. Apple does have arguably the best trackpad, but the Trackpoint wins out for me. I wouldn't want a laptop without one.
That depends on the nature of the program. We use error and critical for server software. If there is a protocol violation on a particular connection, log an error and drop the connection, but otherwise continues. If the `accept` system call fails that's critical and the program shuts down. Depending on what we're doing there may be other critical operations, but some software doesn't have any.
I think the intent (and this blog in general) is more for fun rather than an academic exercise.
Xiaomi mocks Apple with three bundles XR, XS and XS Max with same pricing