skysight-inc/HackerNews huggingface dataset:
Spot on, while I see problems with many of the latest technologies myself, not EVERYTHING is hype and I am getting tired of people labeling it as such just because they don't want to learn it/make the switch but want to mask it like they would if it wasn't just hype.

I've seen this very recently personally, where I was accused of adopting hype for switching to Swift for a major rewrite of my app, where I'd pretty much start over in Objective-c anyways so I may just as well do it in a safer, much nicer language that's going to be the future of the platform eventually anyway...

It turns out that you don't have to switch - if your current stack works well for you stick with it.
It doesn't make you "less cool".
But it also doesn't mean that somebody else doesn't have a legitimate reason to adopt the new technology, and this is a pretty textbook example of what I'd call a justified switch.
Also, JakeVDP did xkcd-style plots [0] in 2012 (and I think now they're bundled as part of the IPython/Jupyter/Matplotlib/Anaconda package).

[0] https://jakevdp.github.io/blog/2012/10/07/xkcd-style-plots-i...
Are we talking about web-based technologies, or programming via the web with on-line tools?
One of the other reasons is DNA survives best at low temperature. Unfortunately there are not many places in Africa where the temperature is low enough to have DNA survive 10,000s of years.
For the pretty limited usecase of a "record only" dashcam, you might consider recording in chunks.

Create an ephemeral key for a symmetric encryption in advance, encrypt this ephemeral key with the public-key method of your choice and store somewhere. Then encrypt one minute of recording using this ephemeral key. I don't know if gnupg is performing good enough on all architectures, but in principle it can handle everything in one go, and it works exactly as described just above.

~ dd if=/dev/zero bs=1M count=50 | gpg -e -r 0x6AC3E4EC >encrypted.dat
50+0 records in
50+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 0.486881 s, 108 MB/s

(Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz)

If you use mpeg transport streams, you can even cut at arbitrary positions (to make, say, each file exactly 50 MiB large). When you play back, decoders will catch up as soon as they find the proper markers. So your encryption pipeline doesn't even have to know much about video...
I've read through almost this entire thread and was wondering if anyone has advice for someone whose is trying to support a loved one through a fairly significant depressive episode?

While I imagine that the major benefit comes from personal will within the depressed individual, does anyone have any positive experience where a loved one or friend was able to provide support in a meaningful and beneficial way?
"What dashcam, Officer? Oh, that? It hasn't worked for weeks."
Yes, the root cause analysis feels off. (Though the cause might be as simple as the cost of walking through the message queue.)

Something is definitely blocking or resource constrained and causing "thrashing": the (uncontrolled) number of requests allowed to spin up at a time (which creates resource contention) combined with the fan out (1 request = 100+ S3 requests/callbacks) seem like a likely causal factor. As you said, a worker approach (with limits on the number of concurrent requests) is going to be similar to the golang approach used.

The golang approach makes the average execution time of a given request more consistent but the overall wait time may still increase (dramatically) if the arrival rate grows too high. (Classic problem).

Say "easily" fixable by adding servers? Partly true. What happens if the S3 calls slows down dramatically?
If the police is on the scene they don't even need a subpoena they can search the car and confiscate the memory card.

If you destroy the contents of the card it doesn't look good, that fact can be brought up against you (tampering with a car that was involved in an accident especially one with casualties could potentially be a crime on it's own).

If you present only the snippets that support your case the other party will petition the court to for you to present the unedited video if you cannot the entire thing will most likely be thrown out (the other side might be able to present the fact that you have attempted to present an edited video and have discarded the raw footage which will likely not fair well with a jury).

Not to mention that having the video it self could put you at risk of perjury or being found in contempt if you try to do anything after the fact.
> Certainly it reduces security vulnerabilities.

So does the power button. You can't get away with justifying breaking arbitrary functionality in the name of security.
They're called "consultants"
The point of the law is not to physically preclude violations. The law is to declare what is a violation and enforce it through, ultimately, violence. The "good kind" of violence, tautologically.
Lying to a police officer is a crime in most jurisdictions, it's called making a false statement.
Simit: A Language for Physical Simulation [pdf]
> Most programs do not need to deal with memory exhaustion.

You keep making this assertion, but it doesn't appear to be true. There are several examples are on this subthread. I don't think you're justified in treating memory and disk space separately. The concerns that apply to one apply to the other. I know you cite relative frequency of failure as a reason to distinguish, but I don't buy it, because it's not a qualitative difference. Resource exhaustion is resource exhaustion.
If by 'incredible' you mean 'unbelievable' I agree. Neutral metrics like electricty usage suggest growth is a few points under the official numbers.

I don't agree that suppression of speech is a strategy for increasing growth. It's 100% about suppressing dissent for the 'lifestyles of the rich and famous' that the top CPC officials are living.

The iranians tried suppressing political activity in the 70s and it went sideways -- the ultra-religious were the only people left with the ability to hold political meetings because they overlapped with their prayer sessions, and so the radical clerics took over.

In china, there's probably a group that is under less supervision but not fully sharing the wealth -- maybe the police, maybe the army, maybe the lower tiers of the party. Watch for revolution from this corner.
Yes, laws are unphysical and totally notional. When people talk about the law as if it were a physical real thing, that is just abuse of language. Law is convention. Defrauding the government is what the government says is defrauding the government. Try to convince a Judge and Jury that this wasn't fraud.
Belief in God involves suppressing analytical part of brain and boosting empathy
Amen. The drones in this thread calling only for professional help and accepting no other comments are mind numbing and pedantic.

Depression can be deadly but it isn't the same as cancer. Good friends and family support and understanding don't make cancer any better. They may not always help with depression either but it is possible.

So, there is no problem calling for people to propose professional help first. But in a thread where that is mentioned a hundred times, to demand that every commenter preface their feedback with this line seems so pedantic to me.
An extra 2% cashback means you need $5000 a year to justify it. However, both Discover and Chase Freedom occasionally have a 5% quarter for Amazon (freedom had 10% last 4Q for a few weeks), limit $5000, so you really need to be spending more to justify it.

Edit: also, anyone using a credit card should have autopayments set up. Unless you're extremely organized and have a good reason to do otherwise.
Silicon Valley Tales (cartoon)
That's the record for static apnea on regular air. After breathing up with pure o2, you can push the limits quite a bit more: https://en.wikipedia.org/wiki/Static_apnea
> Also, the new "gluten-free" diet fad scares me, and I hope this does not become yet another thing they use to fuel their illusion of health.

Too late...
Or I could get someone else's DNA tested without their permission.
> exploiting the people’s unfamiliarity with probability

You have to give "the people" a little more credit than that, I'm sure most people know that they aren't actually going to win the lottery, but are doing it for the thrill.

Edit: Do the downvoters believe that a significant portition of lottery players expect to win?
My introduction to the diving reflex was pretty stressful.

Our daughter was born a few weeks early. Her lungs weren't mature enough yet, so she was in the NICU for a while. One day we were changing her diaper right before her evening feed, around 8 p.m. She was already fussy because she was hungry, and then she got really upset because she pooped halfway through the diaper change, so we had to start over. She was really mad, screaming at the top of her little lungs.

In the middle of all of this, I looked over at the monitor (babies are always on monitors at the NICU) and noticed that her heart rate had jumped from ~160 bpm (typical for a newborn) to ~320 bpm. I asked the nurse about it and she said it was a little high, but that it was probably just because she was upset. After we wrapped things up, our daughter started eating and quickly calmed down. Strangely, though, the monitor hadn't budged: still ~320 bpm.

I asked the nurse if the monitor was correct, and apparently it was, because things quickly turned serious. Double-check with a stethoscope. EKG ordered. Doctors we'd never met appeared out of nowhere. Pediatric cardiologist called. Another IV started. 10 people crowded around our tiny daughter.

The neonatologist texted the EKG printout to the cardiologist (at a hockey game with her daughter, we later learned), and she and diagnosed a supraventricular tachycardia. Untreated, it would result in organ failure within hours.

The top priority became getting the heart rate back to normal. I assumed they would use drugs or some kind of electrical stimulation, but they told me about their preferred treatment, and it seemed almost like quackery: sticking ice packs on our daughter's face and forehead.

They got their bags of ice water ready, applied them simultaneously, waited precisely 6 seconds, and removed them. A few seconds later, still ~320 bpm. It hadn't worked.

They planned to try once more, and then try with drugs through the IV. Ice packs ready. Applied. 6 seconds. Again, nothing. Disappointment, anxiety, fear, worry.

And then it happened: five or six seconds after they removed the ice packs, our daughter's heart rate instantly dropped back to ~160 bpm. There was no gradual decline: it was a step function. It almost seemed like magic. The quackery wasn't so quackish after all.

That was my introduction to the diving reflex.

(Postscript: our daughter has been on medication since that day, but she's getting old enough that they're starting to taper it off, and soon she'll be medication-free. The idea is that if she has a reoccurrence, she'll notice and tell us. Then, guess what the prescribed treatment is? Yep: stick her face in a bowl of ice water.)

Further reading:

http://www.ncbi.nlm.nih.gov/pubmed/22389355
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1544966/
http://www.webmd.com/heart-disease/tc/supraventricular-tachy...
Another thing to know about rust concurrency is that it supports safe "scoped" threads, or threads which have plain references to their parent threads stack.

This makes it very easy to write, for instance, a concurrent in-place quicksort (this example uses the scoped-pool crate, which provides a thread pool supporting scoped threads):

extern crate scoped_pool; // scoped threads
extern crate itertools; // generic in-place partition
extern crate rand; // for choosing a random pivot

use rand::Rng;
use scoped_pool::{Pool, Scope};

pub fn quicksort<T: Send + Sync + Ord>(pool: &Pool, data: &mut [T]) {
pool.scoped(move |scoped| do_quicksort(scoped, data))
}

fn do_quicksort<'a, T: Send + Sync + Ord>(scope: &Scope<'a>, data: &'a mut [T]) {
scope.recurse(move |scope| {
if data.len() > 1 {
// Choose a random pivot.
let mut rng = rand::thread_rng();
let len = data.len();
let pivot_index = rng.gen_range(0, len); // Choose a random pivot

// Swap the pivot to the end.
data.swap(pivot_index, len - 1);

let split = {
// Retrieve the pivot.
let mut iter = data.into_iter();
let pivot = iter.next_back().unwrap();

// In-place partition the array.
itertools::partition(iter, |val| &*val <= &pivot)
};

// Swap the pivot back in at the split point by putting
// the element currently there are at the end of the slice.
data.swap(split, len - 1);

// Sort both halves (in-place!).
let (left, right) = data.split_at_mut(split);
do_quicksort(scope, left);
do_quicksort(scope, &mut right[1..]);
}
})
}

In this example, quicksort will block until the array is fully sorted, then return.
Do they still keep a database of all previous customers? If only 1% request a deletion it would leave a fairly small group of people who requested the deletion. Then via genetic markers you could probably match them back up fairly easily with the right data.
Sweet.js hits 1.0
I've read a lot worse on that score. At least the author didn't parrot a bunch of memes, or throw animated gifs everywhere.
Dashcams in Russia are used because there is a huge problem with insurance fraud people would just either get hit intentionally or even jump on the hood of standing cars and claim they were hit.

The police and the legal system in Russia wouldn't care about your dashcam if you want to get out a of a jam a bribe would work just fine (I've been pulled over in plenty of places where I had to pay dues, mostly Asia - Thailand, Philippines, Burma but it's not that uncommon in Russia and some Balkan states either), insurance companies on the other hand do like them very much.
I would much rather have an affordable public transit system built than another airport.
I haven't met a single person who doesn't go above the speed limit (to a reasonable amount) or misses a give way or stop sign once in a while.
I'll repost my comment from a few days ago in the smartwatch thread -

"""It's amazing how bad, fragmented or non-existent Todo and Memo applications are on the platforms (compared to palm).
Instead of evolving from there it seems like they were largely just dropped or ignored by the modern platforms.
/me uses org-mode"""

I don't particularly think of this is as an opportunity for a smart hacker.

I think it's a profound warning about allowing others to choose and own your personal tools.
Holoportation: virtual 3D teleportation in real-time (Microsoft Research)
Simple proxy for Nodejs Microservices
5 Levels of Leadership
It's better to not get into a car wreck, but I still wear my seatbelt.
This isn't quite true, although you need some sort of guarantee on the arithmetic to ensure that each pointer is bounded within an object.

C, in theory, allows this restriction, since computing a pointer to another object and dereferencing it is undefined behavior, but most implementations seem to relax this restriction.
this is fascinating! Thank you so much! I had no idea that the logic for Coq was more expressive, I can understand quite clearly how that can lead to breakdowns. I'm just slowly returning to this stuff through haskell.

Heady stuff, that second mailing list post.
Well, if you're at fault, then fess up. If your are more responsible than most, then statistically, a dash cam will be on your side. And judging from this thread, that shouldn't be too hard.
>Yes they are here but not nearly as common as content delivered in ancient formats from over a decade ago. For example go on a wallpapers subreddit, the vast majority is still in 8-bit 1920x1080 JPEG. Video is still mostly 1080. The leading music services still deliver in 2-channel lossy formats. And this is 2016.

Ever experienced YouTube buffering on an average connection? And that's for the metropolitan US -- consider the developing world, or even rural US, the mobile internet caps, etc.

Not to mention that even if you have enough speed, still you don't get much benefit from 4K video for 99% of stuff out there. Diminishing returns. I should know, I have projected good 1080p video to movie theaters, and nobody would call it bad or inadequate. On an average 15-27" monitor? It's not even an issue...
These were people placed into a position of trust that they abused. It wasn't Joe Sixpack figuring out that 1 was more likely to be drawn than 2 and making his Lotto pics accordingly. It was machine operators who took advantage of a timing problem to rollback unfavorable transactions.
I don't think you have to force rights, wrongs and emotions down on your audience. You don't have to prove that what Hamlet did or thought was right or convenient. It's enough to tell the story - and then listeners will have their own interpretation.

Indeed, this makes any story much more believable.

Tolkien knew it in his Silmarillion; you don't have to agree with e.g. Túrin Turambar on everything he does.
I really wonder how far my heart rate would drop, since I'm in the low 40s at resting.
They represented the government in this instance, so no, your premise is incorrect.
Ah, you're right. Should have caught that.
I don't know that I agree with your suggestion, but here's an upvote for contributing an unpopular but non-trollish idea.
(The article was written about python3 so I'll nitpick about this)

There is no xrange function in python 3. Now range has the functionality of xrange.
>I've finally come to terms with the idea that, if there is an omniscient, omnipotent, omnipresent power, it's the universe as a whole, but since you can't take any part of existence and remove the part that isn't divine (that is, you can't identify the part that is divine, and by exclusion, you can't differentiate the part that isn't divine), then God in the normal sense doesn't "exist".

>So is there a God? I don't think so, but if there IS a God, its existence can't be proven one way or another, so for all intents and purposes, it can be assumed to not exist.

Would't the same reasoning apply to conscience?
Speed, okay... and sometimes it's safer going faster than the posted limit (IE with the flow of traffic). However, if you're missing stop signs, you're definitely doing something wrong - either driving too fast or not paying attention.
That's a mistake, clarified: https://github.com/rust-lang/rust/pull/32538
I completely agree ... my wife is indeed my partner and I can't imagine life without her. Picking the right partner makes a big difference too!

WRT my site(s) ... I lost a server to hackers due to a RoR exploit (I was only running Redmine). As patio11 advises, don't use RoR unless you're willing to dedicate yourself to understanding how to keep it secure. I'm in the process of converting the content to markdown to be processed with a static code generator. I've got some old writing on CodeSnipers (Keith Casey's mid-2000s experiment) - http://codesnipers.com/?q=blog/steve-moyer
YouTube's been fine in Firefox on my i5 6600 / r9 380, maybe you just need to start a new profile without old settings / extensions
Updated re-print of Star Traders board game on KickStarter
Is the problem a lack of budget or how those resources are spent ?

Giving more money to a failing organisation without oversight will not get better results.

The failures need a spotlight, questions must be asked and answered.

Secrecy has failed us; Public oversight is needed.

Could this have been carried out without phones ?

The terrorists planned this in close physical contact, they excecuted it in close contact - not having phones would have made little difference - synchronising watches, etc.

Our 'homeland' security apparatus was created by Neoconservatives, has it been reformed since ?

The phones issue is a red-herring to distract from the real and continued failures of our security services - this endangers us all.
Some people keep records because they honestly believe they are doing things properly and want to be able to prove it.
oh god I hope their legal defense is 'we thought this was a feature not a bug'.

computer law will get so much clearer if we stop blaming people for using systems as they're built.
You are right, f2p games are a lot like web - they sell service, not software. Interestingly, these companies look a lot like web firms - thousands of people working on the product, which barely changes and, I've heard, using the same programming practices. This is not what people mean when talk about games industry.
Oh right; I forgot about the touchpad ;)
This is a deep misunderstanding of interchange - you don't get anywhere close to 2.9% + $0.30 a transaction. First of all, only the online processors even charge that, in person it's usually 1.9% ish. Second of all, a cut goes to a bunch of people in the chain.

The money for rewards comes from interest on debt. Capital One made ~10x more on debt than interchange for instance.
Actually, we spend quite a bit on education. From The National Center for Education Statistics:

> In 2011, the United States spent $11,841 per full-time-equivalent (FTE) student on elementary and secondary education, an amount 35 percent higher than the OECD average of $8,789. At the postsecondary level, U.S. expenditures per FTE student were $26,021, almost twice as high as the OECD average of $13,619. (see [1])

[1] http://nces.ed.gov/programs/coe/indicator_cmd.asp
CA city cuts homicide rate in half by paying ex-convicts $1k/month
American Psychological Association to Classify Belief in God as a Mental Illness
X-ray scanners, CCTV cams, hefty machinery  let's play: VNC Roulette
Costco did accept MC/Visa-branded debit cards.
I worked in VFX - so we were delivered the edited scenes and the artists would render on top of them ... theres very little post-processing done, what comes off the farm is fit for the client.

Although the farm schedules individual frames, they are combined into scenes (short clips from 2 - 30 seconds) and the artists get the scenes back. The scene file format is proprietary (and viewed with proprietary software), but I had a sneaky look inside and it seems to be losslessly compressed TGA frames. Scenes are usually short 2-6 seconds, and filesize would be 2-3 GB
That totally works for me, but it doesn't solve the city of Palo Alto's problem, which is that their public servants, like firefighters, can only afford to live hours away.
Great writing.

I wonder if a ForkJoinPool [1] would be helpful here as it does work-stealing giving better utilisation.

Although I've read admonitions that they should not be used when doing I/O. [2] That article seems a little ranty and overblown though, so I'd like opinions on that.

1. https://docs.oracle.com/javase/8/docs/api/java/util/concurre...
2. http://coopsoft.com/ar/CalamityArticle.html
> I'm not using "software QA" in the very broad way you describe in the first sentence.

I took this description from your earlier comment "I call it "poor software QA" because 1) and 2)" so yes, you are using it that way at least sometimes :)

Anyhow we obviously see things differently on the root cause side (and both of us are on the outside so there's a lot we don't know). That said I certainly agree that it's a defect, and that it's an attack that could reasonably have been anticipated.
WOW. this is pretty shocking and it's totally in contrast to their seemingly friendly, do good all, morally correct image.

Unbelievable. I don't think I can ever look at Hubspot the same light again.
Can you point to an example of such a "correct C++ program" that is larger than some sample code or a toy program demonstrating this technique?

I'm just wondering if this argument is all hypothetical, or if there are any teams of C++ programmers who are actually disciplined enough to be able to handle this case in practice, in large scale software. I know that in most code that I've seen, the only use of std::bad_alloc has been to log the error and abort.
For 1) how do other systems handle data being stored and passed between processes?