skysight-inc/HackerNews huggingface dataset:
> Persistent progress indicators are known to cause performance degradation unless implemented carefully.

Are you referring to that npm progress bar thing a few months back? I'm pretty sure the reason for that can be summed up as "javascript, and web developers".

Anyway, he's not proposing progress bars by default, he's proposing a method by which you can query a process to see how far it's come. I think there's even a key combination to do this on FreeBSD.

Or, for example, you could write a small program that sends a USR1 signal every 5 seconds, splitting out the responsibility of managing a progress bar:

% progress cp bigfile /tmp/

And then the 'progress' program would draw you a text progress bar, or even pop up an X window with a progress bar.
Adderall and Vyvanse are basically the same thing, it's just that Vyvanse is the prodrug form that can't be insufflated for quicker delivery. It'll be the same as it is orally.

Methylphenidate is a different beast altogether and not neurotoxic like the amphetamines are even though in therapeutic doses amphetamines are also extremely safe. The difference is that amphetamines are both dopamine reuptake inhibitors and dopaminergic releasing agents while methylphenidate only inhibits dopamine reuptake alongside its effect as a CNS stimulant.
> Fukushima was a Level 7 disaster, on par with Chernobyl

This is disinformation. It's an arbitrary bureaucratic designation (Level 7 means "measures were taken to mitigate effects"), and the two events were incredibly different.

> that will result in large swaths of Japan being uninhabitable for lifetimes.

This is completely false. I've said before that if it were legal for me to do so, I'd pack up and move to the Fukushima site tomorrow. I would never say the same thing about Pripyat.
No, methamphetamine is a legal treatment for ADHD and available at local grocery stores in the US: https://m.goodrx.com/methamphetamine

Tens of millions of dollars of meth are sold by pharma companies in the US each year.
Like the sibling comment I would wonder about teaching things that are not tested. Poetry exploits some awesome features of language, cognition, music, speech etc. It might be possible to integrate it in a more meaningful way in a general education, than just "interpretation" for its own sake.
"Complete misrepresentation" of philosophers (and, well, everything else) is probably to be expected with Peikoff around. He has made his bones on Objectivism being a closed system, the incentives he's got necessitate doing a lot of rearranging of reality when he's doing his preaching. And "preaching" is chosen specifically; he is a megachurcher with a different bible.

I have no use for David Kelley, like I have no professional, personal, moral or ethical use for any Objectivist (if I dropped my wallet around an Objectivist I'd have to think about kicking one home before I bent down to get it, just to be safe), but that Peikoff tried to tell him and his adherents to leave the "Objectivist Movement" because they didn't think philosophy started and stopped with Ayn Rand, because they didn't think that you have to "revere" [Peikoff's word] Rand, because they didn't think it was impossible to consider as potentially valid or edifying other systems (be they Marxism or libertarianism) that had the temerity to not put Ayn Rand on an altar...well, it's telling.
Exactly the same experience for me. I remember we stayed inside for weeks.
For an alternative (and more widely accepted afaict) opinion, see http://www.2uo.de/myths-about-urandom/
As long as demand outstrips supply, I can't foresee that happening.
What you're saying is, it looks like Russia, so it wasn't Russia. But if it didn't look like Russia, then maybe it would have been Russia.
Ask HN: What's your cli version of trash folder?
Here is my version, alias rm to a script to moves to files to a different location (~/.trash)

https://snehesh.me/blog/undo-rm-with-a-trash-can/
"marijuana is not physically addictive"

As a lifetime medical patient, this is not entirely true. There are plenty of physical withdrawal effects. The primary one being headache and hypertension. Another one is lack of dreaming/REM sleep (as cannabis usage depletes your melatonin/serotonin levels, which effects your REM sleep.)

"THC doesn't have near the same capability to incapacitate people"

THC-Vivarin will hit you so hard I'd be surprised if you could remain standing despite the fact it only lasts for about 15 minutes.
Ancient Greek is stained by history - it was the only science taught in Universities for what? a thousand years. That's the catch - its revered beyond all reason due to history. Simultaneously its old-fashioned and outdated for the same reason. Hard to disentangle the two.

I read the Philosophers in College. But I cannot imagine I would ever again pick up a book of Ancient Greek Philosophy. There's just nowhere to go from that stuff. Informative as history, and as an intro to the subject. But I been there; done that.
It's important to contact the CC and declare fraud, because there often is a $15 chargeback in addition to reimbursement. If enough people could do that...
I already had modules on my TODO list, implemented it, didn't like it, took it back out, and converted to TS namespaces.

I have been waiting for React to emerge as a clear winner before using it. I only use libraries, APIs, languages, databases, etc. that I've concluded will still be around 10yrs into the future. I don't like Angular, and don't know Vue. If React doesn't replicate some future plans Google has for Polymer ecosystem i might try it.
Important excerpt from random.c:

* When random bytes are desired, they are obtained by taking the SHA
* hash of the contents of the "entropy pool". The SHA hash avoids
* exposing the internal state of the entropy pool. It is believed to
* be computationally infeasible to derive any useful information
* about the input of SHA from its output. Even if it is possible to
* analyze SHA in some clever way, as long as the amount of data
* returned from the generator is less than the inherent entropy in
* the pool, the output data is totally unpredictable. For this
* reason, the routine decreases its internal estimate of how many
* bits of "true randomness" are contained in the entropy pool as it
* outputs random numbers.
*
* If this estimate goes to zero, the routine can still generate
* random numbers; however, an attacker may (at least in theory) be
* able to infer the future output of the generator from prior
* outputs. This requires successful cryptanalysis of SHA, which is
* not believed to be feasible, but there is a remote possibility.
* Nonetheless, these numbers should be useful for the vast majority
* of purposes.

This is the same old story. /dev/urandom is what you should use, unless you believe that the hash function is broken
The headaches are caused by the brain not producing its own canabinoids due to the influx of outside cannabinoid sources.

Source - lifelong medical cannabis patient.
Are you agreeing with me here? I think so but can't tell for sure...
> So:

> cat foobar.img > /dev/sdi

> will stream the file rather than what dd does,

Sorry, that's not quite right. `cat` (and your shell, presumably bash) does the same fundamental thing as `dd`, ie, read block, write block. There's not really an underlying 'stream' primitive that `cat` (or `bash`, as you're using redirection to write the file) is using compared to `dd`

What `cat` does do, is it does a better job of trying to find an optimal blocksize than a naive `dd` call does. `dd` simply defaults to a 512-byte block size, which is just inherited from history when 512-bytes was the alignment for, well, everything.

There are numerous optimizations upon the fundamental read-block, write-block primitives to make it go faster (`cat` makes use of some of these). The linux kernel actually has a "stream file to socket" syscall to avoid the copy to user-land and back to "stream" a file out to the network, but that's not happening here, and there's still reading and writing of blocks in the kernel happening.

See also:
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f...
PhantomJS 2.5.0 beta
C's a shitty language, nothing new there, that doesn't make "strlen" any good it just means you get a historical baggage obsessed with nonsensically short names (hello creat(2), fcntl(2), fgetwln(3), wcsftime(3) or strpbrk(3)) and the additional constraints of a namespace-less language with no generics.
Yes, obviously, this case appears to be entirely justified. OP likely meant it as a warning to any reader who'd think it harmless to do to a kid with regular but stressful tantrums.
>Prescription opioid use is becoming a massive problem

One of the central points of the anti-drug-war argument is that the prescription opioid problem is a side effect of the drug war. You're making their argument for them here. Many people believe we would be better off medicating ourselves with naturally available alternatives to lab produced synthetic pharmaceuticals. This is why marijuana is touted so loudly as an alternative pain killer, and also why it is listed in the catch-22 schedule I category. Breaking the state's grip on pain relief would be disastrous for the gargantuan moneyed interests that benefit from it.
I bought in August an RX 480 8GB for 219€. At the same time, the GTX 1060 6GB was still above 300€.

That’s where they beat NVIDIA on performance per price.

Sure, with that card I won’t get any nice performance in training or running my models, but compared to running on CPU, it’ll still be noticeable (and the large VRAM helps, too).
First Thoughts with InVision's Craft Plug-In for Sketch
>maximize individual happiness

But even this goal falls apart at the abortion debate. When the argument is about whether or not you are killing a human, then there are very different paths to maximizing individual happiness depending on the conclusion.
I read them because I find there timeless truths.
Given the size and expansion rate of the Periodic Table, this makes sense.

Programs, on the other hand...
Renault POM – The world’s first open-source mass market vehicle platform
>A family member who is point-blank prescription opioid addict - and it's complicated because she gets debilitating migraines that few drugs can help her with, but the 'solution' is poison.

Paracetamol (is this tylenol in the US) is a pretty effective poison too. Many drugs are poisonous either in large doses or sustained use. It appears cannabis is not one of them btw. What is your solution?
Messenger Apps Take Over the World
> moral statements like "murder is wrong" are objectively true or false

That is an incredibly controversial statement... Moral relativism much?
Why the forgotten soviet internet was doomed from the start
I sleep fine. I know that I don't have complete control over my life (nobody does). I don't need to "go to the ends of the Earth" to defend myself. I'd rather just shrug it off and move on to what's next.

To each his or her own I guess.
the OP is a page from an ice cream fan site, not a journalism organization

http://www.cgl.uwaterloo.ca/smann/IceCream/
How so? Crudely generalising; wouldn't engineering types be more susceptible to conclude that there is only one sanctioned way interpreting some text rather than someone with a humanities background? (I happen to be both. Poetry to me seems almost by definition something that will evoke different responses and insights for each reader.)
Right. I didn't mean to imply it would always be useless, just explain why someone who works tech support might not follow their own troubleshooting steps to the letter in this case.
My budget – being a student, and having to finance it from money I’d usually spend for textbooks, etc – was basically 0, but I managed to carve out enough for about 200€, which was enough for an RX 480 8GB, but could not afford any performant NVIDIA card (at the time, the GTX 1060 6GB was still hovering over 300€, and the normal price in Germany is still over 300€)
Yet another blogger spreading an ancient myth.

"/dev/urandom gives lower quality randomness" - Simply. Not. True.
I'm curious without any snark, what is the reason people want an Alexa device? I can't find any reason in my life to want one, and see many reasons why I wouldn't
Ask HN: What are your favorite “code as art” projects?
This is sort of accidentally technically correct.

It's not always right to use /dev/urandom on Linux. During system startup, it does bad things if the entropy pool hasn't been initialized yet. So yeah. You shouldn't always use /dev/urandom, if you are writing code that's designed to run during system startup.

In every other case, you should use /dev/urandom.

It's a super-minor technicality preventing this article from being 100% wrong. Please don't follow its advice.
I co-wrote a thesis which touches this type of problems. The idea is that DNA is a very concentrated and massively parallel computing medium. However after all it's only kicking the can along the road. Citing myself:

«If we had a computer based on chemistry working a million times faster, then we could add twenty more variables to the SAT problem (the dual logarithm of a million is roughly 20). This is better, but not much better. If we want to add 100 more variables, we would run into problems. Suppose we need 2^100 water molecules with a molecular weight of around 18, then they would weigh 18·2^100/NA ≈ 38·10^6 grams or around 38 tons (NA being Avogadro’s number). With a few more variables we would need more water than there is available on the earth. This is the limitation of the memory for time tradeoff.»

PDF: https://goo.gl/J22sZP
Is this how Russian promote Trump to non us citizen
I think "Hm. Would I like to be murdered? Do I like to be happy?" And I answer. Its a simple question to a biological entity, easily answered. Maybe a survey, or even a lie-detector while taking a quiz, or hey! even murder a few people and see how they like it.
Article says it was a last resort option suggested and approved by medical professionals.
why "entropy" and not "length" ?
Fact or opinion? (2010)
Maybe sign up with a stored value card, instead of a credit card.
@macinjosh - That is an interesting hypothesis. I've posited that the fragmentation in the Javascript community may be related to the pace of improvements in Javascript itself. Let's face it. Javascript was quite excremental a decade ago. Now, it is becoming quite nice. So, I wonder if developers bail on old JS frameworks in order to write nifty new ones using the latest language features?

I'm trying to bring "nifty" back. What do you think? No?

@tracker1 - You're kind of speaking to my point. Most of the frameworks you mention basically do the exact same thing, or subsets thereof. Does the Javascript community really have to be this fragmented to be successful? Other communities aren't. Maybe it does. I don't know, which is why I wanted to discuss it.
If that's true, then market mechanisms are insufficient to curtail the existence of huge IoT botnets.

That's a strong motivator for regulatory intervention.

But also, the sorts of minimum safeguards that are being requested by the FTC don't actually cost these companies anything more to implement. Requiring credential changes on first login? That's maybe 100 LoC. A basic once-over to catch any super obvious command injections in a relatively simple web UI? Maybe a day or two of engineering effort. Not posting private keys on a public website? Properly train one set of people and make them gatekeepers -- a bit of overhead, but again, extremely minimal when measured against overall product lifecycle costs.

FTC isn't asking for formally verified secure kernels with locally sourced state-of-the-art crypto and in-depth end-user training by top psychologists. They're asking for very simple, easy to implement safeguards that a novice developer could implement in a few days. These companies surely spend more than the entire cost of compliance on executive retreats and office holiday parties...

Device manufacturers do have to hire one or maybe two engineers who are competent at security. But it's not like those people necessarily cost more than whoever they have on payroll ATM. And in fact, it's likely that those people already are on payroll at these companies -- in which case, all they have to do is start prioritizing and listening to security-minded voices already in their organization.
25% of MongoDB accessible to internet hit by ransomware attack (speculative)
It may not be a disk writing tool, but it works wonders for swapping from HDD to SDD without having windows freak out and decide you are stealing it.
+1 for using pv, available in the AUR

Another useful tip is `curl https://...iso | sudo dd of=/dev/sdb` if you don't have enough disk space to hold the ISO. And sometimes internet speeds are faster than disk speeds anyway.
Programs might expand (mostly by addition of parts), but not so much the individual parts (functions, classes, modules, etc) they're made of, which are the closing scope for most variables.
Point noted. And the fact that this blog doesn't point this out makes it OH so wrong.

Granted, many modern OS's retain entropy across reboots, eliminating even this problem.
It has them, but not with the same UX that Slack does.

You can create what would be a "group conversation" in slack, then add more people and rename it to whatever you want.
Tests aren't for students, they're for administrators.

When you process that view, educational systems make more sense, however tragic.
How about the 7 years of benefit? How about a child with a chance to grow up, who didn't have one before?

This was a desperate act, by a desperate parent who had been abandoned by a medical industry that's happy to lose a generation of sick children because hey! process.
Here are some strains that are high in CBD:

https://leafist.com/news/2016/12/19/which-cannabis-strains-h...
In addition to the excellent replies below, note that Nordland is actually pretty far south, if your goal is to live above the polar circle - you might want to also cast your eyes to Tromsø: https://en.wikipedia.org/wiki/Troms%C3%B8

Has a bit more infrastructure and job opportunities, if that's something that is relevant to you - and plenty of "alpine" mountains in the surrounding area.

That said, the Lofoten area is famous for its spectacular beauty - many graphical artists and painters have lived moved there over the years because of the unique landscape and light.

Further north than Tromsø, things get a bit flat as you move up towards Finnmark - and more remote. And then there's of course Svalbard, if you want to live in an area that's more like northern parts of Alaska...
This is all wrong.

I am not even sure what you mean by stream or how it would be any difference than "read", "write", "read", "write". Because that is literally what cat does, and so does dd.

Many people feel cat is faster than dd because dd's default block size is 512 bytes as you can see from a simple dd command.

strace dd if=10M of=junk

read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512

strace cat 10M > junk2

read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 131072) = 131072
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 131072) = 131072
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 131072) = 131072
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 131072) = 131072
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 131072) = 131072
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 131072) = 131072

So when benchmarking dd vs cat make sure you are comparing apples to apples.

The beauty of dd is you don't have to tinker with things like vm-.dirty_bytes and vm.dirty_background_bytes before using a command. Those should not be messed with on most systems and should definitely not be messed with for the sake of running a single command. When you use cat, it makes some decisions for you. Most of the time makes good choices but it happens to make not so optimal choices for working with large files being written to other devices or file systems.

To avoid the pitfalls of using cat to copy image files (and not have to change global system settings) you use dd. With dd you can use O_DIRECT to bypass the VFS caching layer so your vm.dirty_* settings are ignored in general. You can also specify the block size optimal for the device you are writing to and even reading from.

While dd may not stand for disk or drive or its name have anything to do with disk it is a powerful tool that is the appropriate tool to use when working with large files, precise movement or data and yes copying image files to devices.
Though I am quite unlikely to become a pop star at 50.

You're unlikely to become a pop star at any age, and you won't fit into the typical teeny-bopper star at age 50, but.....for example, Seth McFarlane is doing rather well with his record sales, even though he's old and chubby and doesn't fit the 'typical' mold. Also, the Gorillaz. So it's something that can be done.
Top resources for learning data analysis with pandas in python
Regarding the abortion point: I agree that science cannot answer the question regarding morality of abortion, but can philosophy answer it? In my view, philosophy can at best provide certainty of the kind "If you hold these moral values as correct, then option Y is not compatible with these values", but how can you "prove" scientifically that a certain value is correct?
Yes, as long as the back end for the container supports it, RO sections of shared libraries will be shared and pulled from the same cache when available. The functionality that enables shared memory (and L* cache access in general) is implemented in silicon in the MMU so as long as the backend properly updates the page tables, you can share pages across any container or VM (except when prohibited by other virtualization hardware).

It's not something that happens automatically though because each kernel is responsible for telling the MMU how it should map memory for its child processes only. Any cross container page sharing has to be implemented at the host level where the kernel has unrestricted access to all guest memory.
Such a ridiculously gorgeous city. And besides, it's not even legal in Amsterdam anyways...
Are we still talking about drugs? Or obesity? Or internet addiction? We're talking billions by now. An no war was ever waged on those things.

The 'war on drugs' has not been shown responsible for addiction, addiction-related crime and related social ills.
Those are questions that we need to ask of every service and vendor, especially free and low priced ones. If google has helped people recognize this then it's for the best.
You're sort of attacking a straw man here - just because someone is against the war on drugs doesn't mean they are for indiscriminate legalization. The biggest criticisms of the war on drugs in this thread are that it A) attacks people who are no threat to anyone else or themselves (e.g., cannibas and psychedelic users, "responsible" users in general) because of public misconceptions of these drugs pushed by the powers that be, and that B) it attacks people who are very much in need of help, such as addicts of more dangerous/addictive drugs, by punishing them for what is effectively a disease.

Opinions of HN users may vary on how exactly to fix these problems, but I think it's safe to say that neither the system we have now (villainizing and condemning users) nor complete and total deregulation are solutions.