skysight-inc/HackerNews huggingface dataset:
Warn HN: Resize of Digital Ocean instance corrupted filesystem beyond repair
Careful with resizing on Digital Ocean...

A recent resize of a Digital Ocean instance corrupted the filesystem beyond repair. Support have offered me a $80 credit and offered to restore from a backup.

You should probably snapshot your instances before resizing, or migrate to a new instance manually.

(Thankfully I've built a replacement box from Ansible in the meantime.)

The upgrade process appears to have involved copying to different hardware across the network, since the resize operation took over 15 minutes. That copy seems to be incomplete, which led to a completely unrecoverable filesystem.

On coming back up, the system displayed "DOROOT does not exist after resize". Running a filesystem check scrolled tens of thousands of e2fsck "fixes" for a period of 12 minutes.

As expected, the end result of that is that all "files" on the filesystem were in /mnt/lost+found with random names, and the data in them no doubt corrupt too.

Digital Ocean support does not appear to be able to re-copy or review the previous block device to determine the source of the problem. They also don't appear to have logs of the resize operation.

Sure - it's always possible the filesystem was irretrievably corrupted before reboot - but I think it's pretty unlikely. Given that I've not been doing things like 'dd if=/dev/urandom of=/dev/vda1' on there, that would probably indicate a hardware fault on their side anyway.

It's worth noting that I rebooted the box successfully a few minutes before the resize, so a (journaled) e2fsck ran at that point. The filesystem was at least useable a few minutes before the resize.

(Ticket #633210 in case anyone from Digital Ocean wants to investigate.)
On the first point, what I'm looking for is flexibility and speed of deployment.

On the second point, I guess that they'll end up doing that too. When they launched they made a point of running your containers on your instances as a security thing. Over time I think they'll trust Docker enough to ignore it.
"No...more...pie."
> although you do need one to get a more manageable user interface
I know this get mentioned every time there's a discussion on Firefox UI and extension, but Tree Style Tabs [ https://addons.mozilla.org/en-US/firefox/addon/tree-style-ta... ] is one excellent example of such extension.
I think the idea still stands. PHP is a fake high level language in my opinion.

A high level language should reduce boilerplate and 'force' you to write concise and predictable code.

PHP does none of that especially in the context of error/exception handling.
Macsyma/Maxima is a computer algebra system written in Lisp, full 20 years older than Mathematica. It implements similar evaluation capabilities.

The book Paradigms of AI Programming by Peter Norvig shows how to implement these evaluation strategies in efficient Common Lisp.
This is what things like Mechanical Turk _can_ help with (https://www.mturk.com/mturk/welcome) point them to a few local restaurants and let the turker's vote on what they feel to be the best option. Human computing power is a thing.
And Yosef Kreinin. Not arguing for or against the FQA, but its mere existence catalyzed (not fed) my journey of critical thinking towards C++.
I can learn complex stuff, but with C++ I don't C the point :) Honestly, I don't see what I'd buy with all that complexity.
I don't know about America but here in Europe most gas caps are locked with either a key or a mechanism where it's only possible to open if the front door on the side of the vehicle where the gas cap is located is opened. How are you dealing with that?
>At the platform level there is an element of implicit lock in because nobody else offers this exact service.

That's kinda what I meant (although there seem to be some similar variants with totally different APIs).

Anything similar will use a different API, as well. Even if you could move to an almost-identical service, there will be not-insignificant switching costs as you reconfigure everything with a different API and reimplement the glue code.

>So IMHO there is no lock in in the traditional sense

Lock-in doesn't mean that it's impossible to move to a different platform, it just means that there's a high cost. To me, it seems like the cost of moving this to some other platform is quite a bit higher than the cost of moving something from, say, EC2.

Actually, it seems like this is Amazon's real business strategy with things like this. They want you to use all of their different services like this, SQS, SES, Elastic beanstalk, their hosted database thing. Individually the costs of moving away from all of them is not that high, but add them all together and it becomes immense.
A good article that echos some things I've read here and there already.

I recently started walking 3x a day and avoiding carbohydrates whenever possible; I always knew that the exercise wasn't for the weight loss, but I was surprised to read it did not impact metabolic rates.

It is pretty crazy, the amount of crap food we get presented with; both ones considered "healthy snacks" and the blatant unhealthy ones. Even crazier when you trace back the parent companies and there's only really a handfull of them behind the scenes of most brands out there.

Feels like prime material for a last week tonight episode
Assistive touch is also useful if one of your real buttons gets broken. I borrowed a friend's iPhone to dev on it, but the power/sleep button was broken. AT solves this by providing an on screen version.
Maybe, though I'm pretty sure it's also about reducing cognitive load for the user.
I currently have 2014 tabs in my session (almost all unloaded, using around 2GB of ram that I wouldn't use otherwise). I had 1600 tabs a few days ago. They are links I clicked on in other apps or browsed to over the past few months.

When I get a chance to plow through a few dozen/hundred of these tabs I can read/view them and close them very quickly. Notice all the UI stuff I don't have to do: I never had to perform the the actions of saving a bookmark, opening a list of bookmarks, opening a specific bookmark, or deleting a bookmark.

I clicked a link once upon a time, and I will close the tab some time in the future.

When I switch to and close ten tabs, all I have to do from a UI perspective is type q ten times.
For Chrome, there is this great extension called "Tabs Outliner". Gets work done really great! Pity that after so much time there is no FF equivalent...
> I didn't miss C++, it just seems a worse alternative than C.

This is such a retarded opinion. A person expressing it probably doesn't know shit about C++ or just plainly an idiot.
Reading about what assistive touch does on the iPhone, i find myself thinking about faucet design.

These days you find this dual direction (lift to open, left and right to adjust temperature mix) type everywhere. But as best i can tell it was originally designed with handicapped users in mind.
Daniel Murphy (computer scientist)
Agreed, John Oliver would have a field day with this.
Its growing because of China and India large populations of primarily young people whoh every 6 months add tens of millions of internet users who become of age for middle class parents to buy them a computer, or in other cases scrape enough money to purchase the cheapest clone (the very machine which would have a pirated os and ie8).
It is bad that you can insert an integer and then if you try to read the value back as a string, it'll happily interpret the integer value as a char *.
I found that in addition to avoiding certain foods, gaining muscles is a pretty effective way to increase your energy consumption in idle mode and thus lose weight quicker. Unfortunately, the article seems to target cardio exercises, which in my experience is a waste of time. I've always lost fat when I gained muscles without changing my diet that much. Anyone with similar findings?
And still today cut uses -d for deliminator and awk uses -F (and they better not change this otherwise many of my scripts will break)...

Is there a logic behind how unix utilities' options work? Other than backwards compatibility.
Damn, I had this issue a while ago but I was not able to figure out the cause. I posted to stackoverflow but nobody pointed me in this direction. now I went back and answered my own question :)
thanks! @jonchang
OK this looks awesome. Will try out zsh now!
I think this blog is copied from reddit thread

http://www.reddit.com/r/movies/comments/365f9b/secret_code_i...
I wondered if it was originally a capture-and-return mission but had to revert to locate-and-kill once the helicopter was lost.

With less airlift, and presumably an emphasis on extracting documents and computers, there may not have been capacity to bring captives.
Meizu MX4 Ubuntu Edition Now Available
Compatible Time Sharing System
The Marking of Adaptive Software Memories
That's a nice feature, but it should definitely be turned on as a default rather than hidden behind an option.
money has to come from somewhere, and it has to go somewhere.

just like water, money disappears forever once used.

water flows from the mountain into the sea, and one day the river will run dry.

the government is like Niagara falls, a huge waste of money/water.

Universal Basic Income would accelerate this flow of moneywater, and is so obviously a bad idea that its opposite,
Universal Basic Outgo is a good idea.

UBO would reverse the flow of moneywater by taking the same monthly sum of money from every citizen and pumping it uphill.

this would motivate everybody to work harder, resulting in a happier society with enormous moneywater reserves in the mountains.
I run the moviecode tumblr linked. Someone submitted it to my tumblr. No idea if it's the person who wrote that on reddit but I've updated the tumblr to link back there.
You seem to have a very low standard regarding "proofs". The article you cited derives broad macro-economic conclusions from storified anecdotes. In the particular case of a "masseuse course" the agency just doesn't see it as a valuable and accredited program. Such courses prefer taking money from participants directly rather than trying to make bureaucracies believe in them.

And yes, then the participants have to pay to attend. They might even have illusions on their employment prospects. If they were to attend an actual physiotherapy course, things may be different. The problem with these types of programs in Germany is that they are mostly privately funded. That is a problem yet to be addressed.

People tend to attribute the "being stuck" in welfare to the welfare system itself. That may happen, I just don't see it as a significant factor. The subsidizing of low-skilled labor is a different problem, and is partly addressed by the recent minimum wage.

The US is an entirely different place. Lower unemployment, but there, even many employed workers have a much harder life and live in poorer conditions than jobless Germans. Full Healthcare, and mostly free education, for starters.
I am (or at least used to be, at some point) fluent in C++ and have built large applications with it. But I'd still rather write C, because its infamous simplicity is of a lot of use to me -- whereas I found that much of C++'s complexity tends to solve a lot of problems UML designers think we have, and very few problems that we actually have.
>The U.N. is closer to what I was imagining, but regardless, what I'd like to see is a strong push for North Korea to open it's borders in exchange for a lightening of sanctions.

That wouldn't fly with them. Their entire governmental ideology is based upon something called "Juche" which means 'self reliance'. It would kinda be like asking the US to give up the first amendment in exchange for some trade goodies. Just not gonna happen.

>The NK leadership's power is retained almost entirely through keeping people in the dark.

This isn't true. People are not in the dark as much as you might think. They are vaguely aware of what goes on outside the country's borders. It would be impossible for them not to be. This is partly why a year ago the NK government released a list of "best places in the world to live". China was #1 because North Koreans are able to watch the Chinese get rich and the government couldn't deny it.

The leadership's power is predicated mostly upon two things :

A) Propaganda that makes the citizens afraid of the outside world - US and Japan mostly. Unfortunately, when the US does shit like invade Iraq, saber rattle Iran, and sticks nukes on the 38th parallel (did you not wonder why NK developed nukes? THAT'S why), it's not that hard to convince North Koreans that they are under mortal threat. The strong censorship helps a lot with this, but the propaganda would probably still hold pretty well without it.

B) A gift economy. The leader showers his underlings with maseratis. He showers his underlings with jewellery. He showers his underlings with alcohol. Etcetera. All the way down. The hierarchy is very well cemented in by strong ties of loyalty. Chop off the head and all of that remains.

>On a wackier, cantankerous note, I also envision a scheme of dropping solar-charged epaper tablets and blasting the entire country with free WiFi to make locking down knowledge about the outside world impossible.

This type of thing has been going on for a long time (hell, we've had short wave radios for how long?). It doesn't really seem to be working.

Yes, the North Koreans get this stuff sometimes, but seeing a DVD of Friends doesn't immediately inspire them to overthrow their government and the smart ones are rightfully terrified of owning such contraband.

I'd be more optimistic about this strategy, too, if propaganda didn't work so well on American citizens, who have all of those things and yet still believe absurd lies fed to them by their leaders.
/usr? Stands for unix system resources doesn't it?

cp was named in another time when terminals were a lot slower.
A lot of tech started with disabled people in mind: telephone, remote control, even typewriter iirc.
My impression has mostly been that on weird embedded platforms you'll just have some bad C compiler available, and that's the reason. Is it more than that?
Avoiding carbohydrates? How about vegetables and pulses? Plenty of carbs in them.

Okay, sans snark.... avoiding refined carbohydrates perhaps?
The exietence of C makes perfect sense thanks, it's a relatively small and simple language with masses of flexibility.

C++ adds masses of complexity and implicit behaviour. While development in C++ can be quicker and might be 'safer' it can also produce all sorts of unexpected problems.

It also encourages all sorts of nested template types that can make existing codebases incredibly hard to read.

Further, in embedded situations, you may not have space for its standard library.
I wouldn't say that's a big concern. Because you control the binaries that run on AWS Lambda, it wouldn't be too hard to move the event-based logic of invoking a function to your own custom task queue.

Other AWS services are a bigger concern for lock-in, like the DB stuff, EBS and so on.
As far as I understand it, Firefox already have separate JS heaps since a few years back via the compartments model¹.

1: https://blog.mozilla.org/nnethercote/category/compartments/

Edit:

A quick, 100% scientific™ test:

Content processes: 50
Sum: 1858.6
Max: 42.72
Average: 37.172

Content processes: 10
Sum: 791.96
Max: 88.96
Average: 79.196

Content processes: 5
Sum: 624.1100000000001
Max: 137.68
Average: 124.82200000000003

Content processes: 1
Sum: 453.89
Max: 453.89
Average: 453.89

Based on running the following script on a freshly generated about:memory profile:

var max = 0;
var sum = 0;
var vals = $$('span[id^="Web Content"][id$="explicit"] span.mrValue');
for (let vi = 0; vi < vals.length; vi++) {
let v = parseFloat(vals[vi].textContent);
sum += v;
max = Math.max(max, v);
}
console.log('Content processes:', vals.length);
console.log('Sum:', sum);
console.log('Max:', max);
console.log('Average:', sum/vals.length);

This is with ~400 tabs opened but in "unloaded" state. Only 5 pages were actually fully loaded.

50 processes caused stuttering when scrolling in the tab bar.
10 & 5 processes felt smooth and allowed tab titles of background tabs to load in quickly during startup.
1 process took forever to actually load in the tab titles of background tabs on startup.

Setting changed via: about:config?filter=dom.ipc.processCount
Not really. If you don't know if you're dealing with integers or strings, you shouldn't be writing C anyway.
the Bi Laden family have many connections with the Sauidi royal family, but Ossama Bin Laden was completely ideologically opposed to the current Saudi government and Al Qaeda advocates overthrowing it. The relationship is not simple. There are some powerful Saudis who covertly support Al Qaeda and some of them have government connections, but to say that Ossama Bin Kaden had connections to the Saudi Royal Family is so vague and missleading that it just obscures the whole situation.
Is this true? Why would that be the case? That's like saying that HackerNews blocks one of the few accurate news sources out there. Which is worrying.
They are still referring to documentation then, just now it is in-lined with the knobs they are operating. As such, still failing (in the absolutist sense) the idea of not having to check documentation.

And i see much the same working on CLI, via tab completion etc. Using the Linux ip command in the zsh shell can be interesting in that regard.
Why an iron fish can make you stronger
> Employees at the center referred her to the online system. Uncomfortable with the technology, she asked for help with the online forms and was refused.

Seems like it was humans that failed her. I'm not sure what algorithms have to do with this.
GCHQ lit up in rainbow colours
Yes and no.

I use OS X for my main machine, and can happily deploy something to a server running 'not OS X' and be confident that all libraries and dependencies are exactly the same in production as what I was using in development.

Sure Docker is running through a stripped down VM on the Mac, and so technically it's "the same OS my server uses", except it's abstracted away so that for all intents and purposes I'm using OS X for development (and email, browsing, and other things) and deploying hassle free to Linux.
> Why use C instead of D, Rust, Go, C#, Java, Perl, Python, Ruby, Scala, Clojure, Erlang, Elixir, Haskell, Swift, OCaml, Objective-C...?

Because C runs pretty much anywhere? There are plenty of platforms where C is available where I doubt you'd find any of the others above (e.g. C64; yes there are C compilers for them; yes, I'm mentioning it tongue in cheek)

Because you can generate small, compact static executables? E.g. I used to write network monitoring software and an accompanying SNMP server for a system with 4MB RAM and 4MB flash, the latter of which had to include the Linux kernel and a shell on top of the application in question. The system was so limited we did not run a normal init, and couldn't fit bash - instead we ended up running ash as the init...

There are plenty of use-cases where "web application" == "user interface for a tiny embedded platform".
I'm only passingly familiar with PowerShell but really, it's Microsoft, in the bloody documentation, that literally states precisely that cmdlets are instances of .NET Framework classes:

"Cmdlets differ from commands in other command-shell environments in the following ways:

Cmdlets are instances of .NET Framework classes; they are not stand-alone executables.

https://msdn.microsoft.com/en-us/library/ms714395%28v=vs.85%...

We can have an ontological debate about how an instance of an-object-as-a-concept is different from an instance of an-object-as-memory-content but I think that's best left to amateur philosophers.
For usr that's not what the article suggests (p3), but I am no authority on this question.
I know. It still seems very time consuming and intense even for two founders until you raise money. You need a few fellows that help you out answering requests even if you start only with like 100 people (with the rest on a queue).

Can someone share his experience in such a kind of startup?
Minor nitpick - Docker runs great on OS X, but it doesn't run natively, it runs on a minimal Linux VM - Boot2Docker.

I agree that the reality of the situation is that it's abstracted away enough that the distinction isn't really all that meaningful.
> The result of `cat a b > a` couldn't possibly be the result that the user intends

The result of cat a b > a is precisely the result that the user intends, provided that the user has actually read the documentation.
The thing is, I'd say there's a difference between seeing the arguments of both sides, and actively 'promoting' a side (by creating a game). And I think your answer doesn't really address that original question: how do you feel about being actively involved in this, especially in light of 'not disagreeing all that much'?

I understand if you don't feel comfortable answering in public though.

(and to be clear: while I have strong personal feelings about whether I would or should create gambling apps, I'm truly not writing this as an excuse to judge you. Doing so would be hypocritical, as there's plenty behavior in my life currently that doesn't fit my convictions.)

EDIT: just noticed you've already gone into this further down in the conversation.
If you're not running on POSIX.1-2001, you're not likely to have pthreads or GCC builtin functions.
from their FAQ...

> For vehicles that require the driver to disengage the gas cap, we ask that you leave your gas cap slightly ajar to allow us in.

> Leaving my gas cap open? Is that safe?

> Yes, open caps are not noticeable. If you are concerned, you can request our driver ping you when they are being dispatched to your vehicle and you can open it just before your car is Filld.
I installed it, - my hn nick at gmail

My feedback is

- Hard to trust any app for btc that isn't open source

- Requiring a photo is pretty severe, scale factor is wrong mode in the uiimageview

- The security is pretty crazy, unlock pattern + password - make it easy to get started

- Seed value should require repeating back to the app

- Multisig looks complicated, I'd like it to work with Electrum

- Seed should give me some idea of its standard, can I restore it with another app

- It's missing press states on a lot of stuff

- Would be cool to integrate with trustedcoin api

The gold standard is breadwallet, have to beat that. I like the multisig angle, but it has to be done correctly
Hidden oceanic gateway may be melting Totten Glacier
We've already seen how well this works, actually. The Bitcoin community had a neat reputation tracking system. Remember pirateat40, the guy who ran a massive, really unsubtle ponzi scheme? He was one of the top-rated people on there. He actually used this to help encourage people to invest in his scheme.
Cloudflare.com is 37% faster than maxcdn.com
You are no longer testing the same code under the real execution conditions, thus missing out possible leaks on the original code path.

Although you can add that better test that than nothing, assuming that the respective OS vendor doesn't offer tooling similar to Valgrind, which I fully agree.

EDIT: added some clarifications.
Go would solve the problems you mentioned (cross compilation and HTTPS support), and would also offer first-level support to many web concepts and protocols that you need to implement from scratch in C++ as the ecosystem is not there. Of course if it's just for fun, then anything goes :)
Apparently the graffiti was a portrait of a particular police officer.
Simulated Worlds Will Soon Be Indistinguishable from Reality
Mmm, it can be difficult to take advantage from C exploits (in the context of a webserver). On a well written C system, you might expect most bugs to lead to crashes.

PHP bugs tend to be more exploitable, because you're doing something supported by the language.
Oh, gods help us if we every replace OSs with democracy!!
What vegetables, besides starchy ones like rice and potatos, contain "plenty of carbs"?