skysight-inc/HackerNews huggingface dataset:
This is an interesting approach, but remark that the 2x2x2 cube can be simply brute-forced (which does not quite work well for 3x3x3) ...

E.g. using Java:

import java.util.*;

/* usage: javac R222.java && java R222 >db.txt */
public class R222 {
private final static String SOLVED = "RRRRYYYYBBBBOOOOWWWWGGGG";

private final static int op0[] = {1,3,0,2,21,20,6,7,4,5,10,11,12,13,14,15,9,8,18,19,16,17,22,23};
private final static int op1[] = {0,1,8,10,5,7,4,6,15,9,14,11,12,13,20,22,16,17,18,19,3,21,2,23};
private final static int op2[] = {0,19,2,17,4,1,6,3,9,11,8,10,12,7,14,5,16,13,18,15,20,21,22,23};

private static String update(String cfg, int op) {
char new_cfg[] = new char[24];
int targets[] = op == 0 ? op0 : (op == 1 ? op1 : op2);

for (int i=0; i<24; i++)
new_cfg[i] = cfg.charAt(targets[i]);

return new String(new_cfg);
}

private static void makeDB() {
Map<String, String> tree = new HashMap<String, String>();
Map<String, String> tmp_tree = new HashMap<String, String>();

tree.put(SOLVED, "");
tmp_tree.put(SOLVED, "");

while (tmp_tree.size() > 0) {
Map<String, String> new_tree = new HashMap<String, String>();

for (Map.Entry<String,String> entry : tmp_tree.entrySet()) {
String cfg = entry.getKey();
String ops = entry.getValue();

for (int op=0; op<3; op++) {
String new_cfg = update(cfg, op);
if (!tree.containsKey(new_cfg)) {
tree.put(new_cfg, ops + op);
new_tree.put(new_cfg, ops + op);
}
}
}

tmp_tree = new_tree;
}

for (Map.Entry<String,String> entry : tree.entrySet())
System.out.println(entry.getKey() + ": '" + entry.getValue() + "'");
}

public static void main(String[] args) {
makeDB();
}
}

We get 3674160 configurations and it takes just ~20 seconds (and most of the time is spent doing IO anyway).

$ java R222 | wc -l
3674160

This might be useful to evaluate the number of moves (remark that we do "half-turns" here and in the case of 2x2x2 there are just 3 operations).

//edit: TreeMap -> HashMap
The iPhone is more expensive in part because it includes a 25% sales tax...
What happened was a crime. What are we as a collective supposed to do? Routinely exterminate criminals? Develop pre-crime police units? Build a large well-monitored wall around protected areas? What is the big insight that we as as a collective are supposed to learn from the supposed collective guilt?

There's literally a very small amount of people responsible for this atrocity and I hope they serve adequate sentences in prison for their crimes.
People didn't start picking my phone up and trying to get into it until I set a pin. Back when I had an android there wasn't even a lock screen and no one ever touched it.
> city-regulated industry

That was the red flag right there
That's another cost. So on top of the thousand dollar phone I now have to buy ~$150+ in cases (which are dubiously effective) and insurance.

Instead I buy a ~$200 phone (which is just as good to me than a $1,000 phone) and when that one breaks I get another ~$200 phone.

I don't care about a broken screen though, if the screen cracks then I'll just use it until the phone isn't functional anymore.
Sorting also forms the bottleneck in several memory hard Proof-of-Work schemes. These differ from the general problem in two important ways:

1) the input data is generated from cryptographic hash functions, and can thus be considered random, leading to e.g. very even distribution of elements over buckets.

2) each round of sorting serves to identify groups of items that match on a subrange of their bits, and somehow transform these items.

There is a lot of cryptocurrency money to be made by developing the most optimized mining software and charging 1% or so "developer-fee" on the mining proceeds.
Has a Mysterious Medieval Code Really Been Solved? (Experts Say No.)
Discussion: https://news.ycombinator.com/item?id=14230112 (91 comments; April 2017)
A Hardware Privacy Monitor for iPhones
Within the first year of the Chromecast release I was using it without any issue outside the US. So I am assuming Google fixed this "quickly".
Stripe, Parse, Twilio, SendBird.

This is a good overview of the different things that make up great docs: https://zapier.com/engineering/great-documentation-examples/

I think a great developer docs experience is a really tough thing to do well. You need to have great design, great writing, and great tech. The existing docs platforms out there (like Readme.io) all suck (especially for anything beyond REST API docs), so you really need to roll your own.

I've done some consulting in this area for clients who wanted amazing docs experiences, so ping me if you want some more ideas / feedback.
Your comment reminded me of Midgar in Final Fantasy VII. It wasn't a particularly nice place to live for the dwellers underneath if memory serves.

That being said in this case I don't think the people build underneath the big roof, it's "just" a big hall for the ceremonies. I assume the city is built around it.
If this encourages everyone to drive at a similar speed then it will improve traffic throughput overall. hard braking by someone speeding can have a wave effect miles down the road.
OK, so then include a percentage of price for reinvestment and eliminate all other profit? Or put all of this profit into a socialised pool? Also for-profit competitors would be effectively shut out of the network by agreement. The vision would be vertical integration with minimal profit at each step, thus opportunities for concentration of wealth are minimised. Interestingly this seems to be happening to a degree with Amazon, where profits are arbitraged out of the system (though to varying degrees between participants).
iPhone 7+ currently in Hungary is 1174.6378 US Dollar

27% VAT <3

#wordlclass
Please feel free to contribute.
I'll fix that thanks.
Hugely excited about the price point - though obviously still has the issues of intermittency and dependability - but at this price, even the losses from storage become less of an issue, so I hope it can kick start more wholesale power storage initiatives.
Pretty sure this is just a reprint of the same rumors reported in Caixin last week.
They would need to publish it with names, I think everyone already knows their SSN isn't secret.
Does this "be warned" flag on someone actually damage them in any way?
I'll fix that thanks.
Effective Code Reviews – Hacker Noon
Please feel free to contribute.
But unlike a PC - though they’re getting there - phones and the ecosystems on them are becoming more fine-tuned to extract more money from you. App suggestions, Apple Pay, IAPs and who knows what they will come up with in the next few years.

You may look at spending $$$ on a keyboard or chair that you use a lot as a similar purchase, but they are far less likely to dangle carrots in-front of you to take more of your money and give you questionable value in return.
Which hackathon was this?
I was just thinking about Opa the other day - it looked nice but I never used it. People were worried about debugging through the layers of abstraction. Is it still "alive"? You write in the past tense...
> at the same time we have parts of the city where Doctors without Borders opened a station because the situation is catastrophic

I can't find any reference to this station online (neither operated nor planned) and have never heard of anything remotely close (I work in the field). On the contrary, currently capacity is being reduced in the region due to permanently vacant hospital beds.

There are some stations for people without health insurance (usually undocumented people that fear detection). The nearest one should be in Duisburg operated by Malteser. Note that those are not because of low capacity but due to documentation requirements at regular hospitals.

> They are very good at removing many from the stats.

This is done by each and every single country, Germany is nothing special here. Very detailed numbers of all those groups usually "excluded" from the main headline statistic are published along with it. There is nothing being hidden. There are also ILO unemployment statistics calculated with the same methodology worldwide, they too look very good (and improving).
If you have money you can buy content. Quality content costs more money, of course.
Everywhere else had it more expensive, but everywhere else IPhone are... well not niche, but definitely way less pervasive
Break Up the Tech Giants? No, Just Level the Field
Bunnie Huang’s “Hardware Hacker” book is in print
You've made a bad choice in selecting which phone to buy, then.

My Moto X Play is still as fast as ever, the only app I ever experience any slowdown in is Google Maps, and it's always been like that.

Everything else is latency from logging in, fetching resources and so on.
I'm not sure about music, but what's wrong with the default Photos or Contacts apps? Contacts works fine for me, and Photos works very well considering I have nearly 9000 photos. Syncing over iCloud is also fine, between my phone and my laptop.
There has to be some technology to justify the price or we revert to the old Nokia model of adding some RAM, upping the megapixels and releasing a new model and we know how that ended for Nokia. Brand can only take you so far. Nobody thought a company as entrenched as Nokia could suddenly disappear, and they did.

The bigger issue is at the moment its just taking productive income from the economy that could drive real economic activity and job growth and dumping it in Apple's already inflated bank balance which they don't know what to do with.
Re, chaotic behaviour: I don't think there is any simple similarity. Chaotic systems are computable in that you could in principle keep throwing more bytes and CPU cycles at it to get the error down to any bound you like.

Regarding the first question, I am only repeating pop-science here.

I've read (In something by Roger Penrose, presumably The Emperors New Mind, but maybe in The Road to Reality) that the Maxwell Equations are uncomputable only if the initial conditions are functions that don't have Fourier transforms.

So really it is the field dynamics that are non-computable. I might have been talking nonsense when I the fields themselves were non-computable. But then again, the kinds of functions that don't have a Fourier transforms are also very rough, jaggedy things that probably can't be approximated by any algorithm.

And speaking of rough jaggedy functions, that's what you get if you evolve a chatoic system to infinity. So maybe there is some connection after all, but it is well beyond my understanding.
The Mathematics of Sudoku [pdf]
I thought the rumor-mill had Apple introducing two phones tomorrow - the 7 replacement AND the expensive phone. The naming conjecture has muddled the discussion a but, I think.
> Bad example

I work with the material I get given.
Thanks, but I knew that already and didn't like it. So I thought an OctoCat would send the same message as "Fork me on Github" :) That's why it does not have any text.
> optimisation for javascript is just a short term fad

WebAssembly should offer the best of both worlds...optimized for performance and with at least an answer to the view source complaint. And, perhaps the best benefit, the ability to write in a language other than JavaScript. These compilers have turned a (semi-)human-readable programming language into what is essentially a textual binary format. It makes sense to just embrace that reality with a fully-binary format.
Services like Uber can generally only exist in places with deficient public transport networks, hence why they never thrived in Copenhagen.
Ok, Mr. Evidence. Prove me wrong. List the books on sexism that you've read, with brief summaries. Show me your college transcript with the courses you took.

I'll add that I have evidence for my assumption that dudes are biased when evaluating material about sexism. Aside from my 20 years of experience talking with dudes in tech about tech's gender bias, there's also a study showing this effect: https://www.wired.com/story/why-men-dont-believe-the-data-on...

So let's see your data.
Based on what objective measurement?

Happiness does not change much as long you can meet the basic needs for food / water / safety. So, the general assumption that people are about as happy works across a huge range of lifestyles.

On the other hand primitive lifestyles have significantly shorter lifespans which is objectively an issue.
What’s So Bad About Posix I/O?
Kotlin vs. Java – Why Kotlin on Android Is Here to Stay
You reply:

>

Yeah, that's what I thought you'd say.
If money is that tight then a brand new $1000 iPhone might not be a wise choice.
Is there a compiler for server side code?
Producing DDL sql-code, views, templates etc from a more abstracted meta model?
Regardless of whether the story is accurate or not the savagery of American native tribes is well-documented. Tribal warfare and cannibalism is commonplace.
Git Out and Contribute: Why Open Source Is Awesome
Yes it looks good with the animation... If I knew about this one I probably would not have wrote OctoCSS... Thanks anyway... :)
All of what you said are pretty reasonable concerns.

Basically React Native makes a lot of sense if you have a React web team.

In this scenario it works well if you want to spin up an app from scratch or for growth related stuff within a brownfield application.

It makes no sense for a native only shop.

“But there is no use of native controls, so you're at the mercy of whatever crappy controls someone has created. Quality is seriously lacking for most of those. Essentially zero adherence to the greater platform standards or settings. Feels exactly like Java applets or Flash sites from the 90s. Blank canvas, roll your own everything. I guess the drawing of whatever you want is fast, but that doesn't make it "native".”

This isn’t entirely true. You can wrap any uiview and embed it in the React Native view hierarchy. So you have a lot more flexibility than say Cordova (I.e where your ui is a big web view)

Even if you do full native, you run into the same problems. I,e you are going to either use something from cocoapods or roll your own. I’ve seen plenty of half baked third party native libraries.

“Also, I really dislike Javascript. Why would you prefer to write code in JS instead of Swift? The entire npm / dependency / build situation also felt incredibly brittle. Felt like if I came back to this app in 6 months and touched anything, there was basically 0% chance it'd still work without a ton of fiddling with dependencies, etc”

To avoid having to deal with writing an Android app from scratch ;)

I’m a native iOS developer, I mainly got into React Native last year because of all the issues around swift leading up to 2016 wwdc. This years it’s much better and I’ll probanly spend some more time learning it now that it seems stable. However I think it’s unfair to pretend that the last few years of swift have been a smooth ride.

Modern JavaScript is a lot better than it was 4 years ago. However I totally understand why you would not be into it.
For larger Rubik's cubes, a naive A* won't cut it, as it still has exponential growth. Iterative deepening A* built atop a pattern database has worked well though. This paper from 1997 also discusses heuristics -

https://www.cs.princeton.edu/courses/archive/fall06/cos402/p...

And since I'm pulling from Udacity's AI course anyway, might as well provide this; the 3x3 has been fully solved. Depending on the metric -

http://www.cube20.org/
or
http://www.cube20.org/qtm
A portable and clean replacement for a small gasoline/diesel generator in luggage form would be nice. So your idea is not too unrealistic.
Not necessarily true - if you have the know how or know someone who does, you can run a custom rom on your Android device, Lineage is updated weekly for many devices and will easily provide many more years of life. Once it's set up it's pretty hands off too, so just knowing one person who can do it for you once is pretty much enough.

The official situation is slated to improve now with Android 8 separating the HAL and the rest of the OS more clearly it likely means that in a generation or two this won't even be a concern.
I really wonder if that will result in a bunch of companies that own parts of your house the way they do your iPhone.

Otherwise I would totally agree with that.
Machine Learning Consulting Companies
Gee mister, I sure hope that I can be as smart as you one day!
Yeah I really like the feel of it, but my "n" key has stopped working twice already (within a month of purchase!) - I've "massaged" it back to life both times with firm pressing. That reminds me I need to order compressed air from Amazon. Can I bill that to Apple I wonder
I stopped watching the video when they put a sexy lady dipping a finger in the liquid.

Seriously it's 2017, you're trying to sell technology and you still objectify women.
Seaborn Cheat Sheet
Facebook will have a lobby that carves out an exception for itself while simultaneously shutting down any threat to its monopoly through this legislation.
Not so many YC startups do this. It's great to see Paystack make their YC application available to the public.
This is nothing but good news. Yes, it's not the same type of generation, we can't be 100% wind etc., etc., but the cost of wind & solar is dropping quickly and the two combined regularly contribute 40%+ of our energy needs.

I doubt there will be another nuclear agreement after Hinkley C, and we should be thinking more about how we can starting creating storage and/or redesigning the grid to take account of a highly-renewable production system.
> From the iPhone’s introduction a decade ago, Apple has always priced it as a premium product — a more refined and polished alternative to the legions of cheaper smartphones available in the market.

And not only is it priced that way, thats actually what it is which is why in all likelihood I'm buying one tomorrow.

Every Android I've ever used has felt like cheap shit in my hands, and works like crap after 10 months or so. My current iPhone is knocking on 3 years old and works as well as the day I took it out of the box.
Wikipedia is not the sum of our collective knowledge. It's little more than the preface.
I will take my cheaper iPhone and pay for my own health care. It costs me way less to pay for my own healthcare, rather than surrendering my private property (paying higher taxes) to the government. It is immoral to force me to pay for the healthcare of other freeloaders. In case you haven't noticed, in Sweden your welfare state is already crumbling. It is unsustainable over a long run, not to mention, immoral.
I think the trend at MIT is not just about dorms. It's about groups that are too independent, too strong-willed, or just too different getting hammered down or spit out, in favor of corporate-friendly programs and people that are more willing to toe the administration's line and/or promote its designated priorities.

The quirky but long-lived program I took part in recently had its leader of 10+ years dismissed, with the program merged into another new group. This was a huge loss, as this person (himself a graduate of the program) carried a great deal of institutional knowledge. Because there is no shared classes or overlap between graduates from different years, he was key to enabling cultural continuity. He is not being replaced.

I don't believe this is an isolated incident. I've seen it happen recently in another non-academic unit at MIT, where a high-profile leader was abruptly shown the door. This person was doing really wonderful things in many areas that (in my opinion) greatly benefited the institute. I doubt his replacement will have the same mandate.

Then there's talk of Walker Memorial being transformed (what will happen to WMBR or The Muddy?), the news at Senior House, and collaboration with the Skolkovo project, a startup hub established by Russian pols and an allied oligarch and "co-managed" by MIT in return for a reported $300 million (0).

Finally, let's not forget MIT's poor treatment over the years of risk-taking researchers, activists, and students such as Andrew "bunnie" Huang (1), Star Simpson (2), and Aaron Swartz (3).

Of course, there are still fantastic people and groups thriving at MIT and doing great things. But I see many signs that the institute continues to drift toward a more corporate/legalistic environment that emphasizes established measures of excellence (rankings, acceptance rates, numbers of graduates, published papers, alumni donations, corporate partnerships, etc.) while sidelining or shutting down quirky departments, campus groups, and personalities.

0. https://techcrunch.com/2013/05/31/russia-hopes-the-skolkovo-...

1. https://boingboing.net/2017/03/09/making-and-breaking-hardwa...

2. http://people.csail.mit.edu/phw/star.html

3. "... e-mails illustrate how MIT energetically assisted authorities in capturing him and gathering evidence — even prodding JSTOR to get answers for prosecutors more quickly — before a subpoena had been issued." https://www.bostonglobe.com/metro/2014/03/29/the-inside-stor...
iPage Offer Upto 75% Off as Best Offer on Shared
This Week in Programming: Python Heats Up the Language Horse Race
Even if you do full native, you run into the same problems. I,e you are going to either use something from cocoapods or roll your own. I’ve seen plenty of half baked third party native libraries.

This is true, but: a) you have a base set of excellent native controls provided by Apple, and b) you have a much more mature community providing third party controls.
This presents an interesting parallel with many pre-modern and certain modern human societies, in which political and religious power is concentrated in the hands of divinized kings and/or religious bureaucracies.

I can't help but wonder if this kind of religious city is the "most workable" form of political organization in the absence of a modern functioning nation-state.

Are the any anthropologists here who can shed light on this?
That, sir, is truly <em>THE</em> minimalistic, easy, and with cross-browser compatibility approach I have ever seen.
Thanks :)
There are plenty of cities with diminishing population who could use a renovation

But of course they never heard of avocado toasts so big companies avoid moving there
I was just looking for a DSL for instruction set selection and load/store optimization.
Oh sure you can hack these things. That's why the woman in the article dyed her hair brown and got glasses.

It's depressing that it's necessary. If two people present something to me I should be evaluating the something, not the shoulder girth of the people presenting it. But inside my head there is a monkey that doesn't know what geological epoch this is.
Are there any game engines that actually do the sorting? I thought they just render them in random order and hope for the best.
The Citroën C6 and the current generation C5 with hydropneumatic suspension senses the bump with the front wheels and sets up the rear suspension to absorb the bump almost completely.

Slightly more low-tech, but it works amazingly well in practice.
It is the minimalistic approach. :D
Time well spent: app ratings
FAQs on DevOps – Product Engineering Blog – IoT Blog – EInfochips
I'm genuinely curious if credit card companies get involved with warranty-related actions, or really anything beyond the fitness and accurate representation at the time of purchase. As far as I can tell, thigs like AppleCare and EU VAT protections cover an almost entirely exclusive set of concerns, namely, the fitness of the product after initial purchase.
my hero! 91k of free monies (minus operation costs)
How cryptocurrencies will unlock a replacement of Capitalism
I find it amazing that CNN has been able to remain dominant in television news broadcasting. They're a vicious clique of bloodthirsty warmongering propagandists. You'd think people would have grown disgusted at some point in the last 30 years and tuned out.
How to accurately measure nanosecond scale networks
Wait until you get cancer. Then see how affordable healthcare is.
Also MailChimp becomes crazy expensive after 3000 sign-ups.
Use Emacs for mass renaming of files
What I Wish Recruiters Would Do
Easily run tests in the browser with mocha-puppeteer