skysight-inc/HackerNews huggingface dataset:
Neurotransmitter reductionism is not a useful framework for thinking about motivation. By your definition, every human behavior is a chemical state. That's not a helpful distinction.

> You can induce motivation generically through dopamine reuptake inhibitors.

This is dangerous advice, implied or otherwise. You cannot use dopaminergic drugs to modulate motivation in the long-term due to rapid tolerance to the motivational effects of stimulants. Yes, an acute dose of Adderall will provide a burst of energy, but it won't magically motivate you to channel that energy into building a new startup instead of intensely focusing on a video game for the next 6 hours.

Stimulants are not a long-term solution to motivation problems for the same reasons that opioids are not a solution to depression. Motivation, happiness, and contentment are all very complex phenomena that cannot be reduced to singular chemicals in the brain. It's true that you can temporarily induce feelings with certain drugs, such as a burst of euphoria from a dose of opioids, but the brain rapidly adjusts to those chemical modulators.

Opioids have their place in chronic pain treatment, of course, just as Adderall has its place in chronic ADHD treatment. But we must be clear that the mood and motivation boosting effects of these drugs are a temporary side effect, not a sustainable feature.

Motivation is a much more complex phenomenon that is deeply intertwined with human psychology. Dismissing those complexities as simple chemical states that are well-understand from rodent studies is missing the point.
My comment was in response to a question whether PG can do TF/IDF or BM25 and fuzzy search (handle misspelling) simultaneously. And as far as I am aware, PG cannot do it. My comment had nothing to do with your blog post.
Eleganttips.css: Provide elegant and configurable tooltip on the DOM. (pure CSS)
I hated the PC keyboard repeat rates until I started using X-Windows and found 'xset r rate 160 80'. Warning: don't typo those numbers or you might have a fun time restoring a sane default :-)
Patched Desktop PC: Meltdown and Spectre Benchmarked
>"> If you already know the answer, don't just blurt it out! They will suspect that you already knew the answer and didn't tell them you've seen the question before. At least pretend to be thinking though the problem before you give the answer!"

This to me epitomizes the absurdity of this whole "leet code, cracking the algorithm" mania that has blighted the tech interview process. The only way to pass these types of tests is to spend time studying them. But then if you have studied and therefore know the tricks(use two pointers etc.) its seen as unacceptable enough that you should either lie or tell your interviewer "I know the trick" to solving this so ask me something else." The whole thing has become a scripted charade.

I get it that these types of tests and interviews work for Google but it's absurd when small startups still building a product adopt these tests simply because Google and FB do it.

There's a sad corporate uniformity to it that feels very much at odds with the hacker ethos.
Surface Phone: Modular Design Confirmed for New Windows Phone
Following the link from Yann LeCun's comment in the parent post one can find this neat library:
DiffSharp http://diffsharp.github.io/DiffSharp/
Just to nitpick your nitpick, that Netflix had little in common with the current Netflix. In fact, it supports my story because Netflix was a DVD rental service at the time.

Eg IMO it's fair to say that Motorola phones were there before Nokia. It's a true statement unless you mean Nokia, the well known Finnish manufacturer of bike tyres, rubber boots and television sets.
A Drug Meant for Alzheimer’s Treatment Regrows Human Teeth
I was thinking armed revolution. As far as political revolution, I think TR of the late 1800s would be a better start. FDR took a dramatic event (depression). We would probably need to have one of those. I think if 2008 was allowed to play out like some of the GOP was suggesting (let the market fix it), we would have gotten some FDR like programs.

Really the problem is congress. They have the power to make laws. Anything a president can do independently can be undone by the next office holder.
What I Learned Running Startup Programs Around the World
Somewhat similar, but when I first started programming when I was 14, I couldn't listen to music at the same time, it just felt like I couldn't process something "creative" while thinking systematically. Now, I can and I feel like the music occupies the right brain and the hacking/analyzing occupies the left side, basically stimulating both sides of my brain.

There are intense focus sessions though where I turn off the music and after that, I can't talk to people in the hallway and they think I'm being cold. Outside of exceptions like that, it feels mostly like context switching I suppose, like the systemizing side turns off and the creative/human side turns on, or at least, gains control of the gears, so to speak. The best way I can describe it.
But you still have to do so, either by hand or script.
You got kind of quiet there. :)
Nvidia GPU Driver Updates for Speculative Side Channels
https://jamanetwork.com/journals/jamainternalmedicine/fullar...
Best vegetarian diet plan for weight gain and building muscles
Hello Friends Don't waste your time in Gym or eating powders. try this vegetarian diet plan for weight gain and building muscles ..very fast ..
here is the link --https://youtu.be/uuViO2X3CQA
..
I also try these. .. now yours turn..
I see on the specs page it's 4380 lux at 1 meter, or 4380 candela. No information is offered on total output, but it's possible to estimate from the information given.

Lux is lumens per square meter. Candela is lumens per steradian, the SI unit of solid angle. At one meter, these are equal, unless the beam hasn't converged at 1 meter. Aputure provides the beam angle in degrees, for which it was surprisingly hard to find the conversion. Sure, the units aren't technically comparable, but we know they meant the apex plane angle, at least we do now that I looked up the correct term.

So a right circular cone (which the light produced by a rectangular panel isn't, but we'll pretend) with an apex plane angle of 25 degrees has a solid angle of 0.1489365798 sr, approximately. 4380 lm/sr / 0.1489365798 sr = 29408 lm.

And that can't be right because the power consumption is 30 W, and the theoretical limit of luminous efficacy is 683 lm/W. I'd expect an LED panel like this to be on the order of 100 lm/W for about 3000 lm from 30 W.
functools.lru_cache[1] from the standard library is a decorator that memoizes[2] a function.

https://github.com/osteele/callgraph/blob/master/examples/ca... has some examples of using @lru_cache, together with a decorator (@callgraph) defined in that repo, that helps visualize recursion and memoization.

[1]: https://docs.python.org/3/library/functools.html#functools.l...

[2]: https://en.wikipedia.org/wiki/Memoization
Elon Musk Completely Destroys Jeff Bezos
Thousands of times. I have tried everything. She lies to the counselors/therapists and herself I suspect. She has a deep need to protect this behavior.
Isn't this what IPFS is sort of for?
You may want to give that a go.
https://raw.githubusercontent.com/SamDeepLearning/The-Terrib...
I also build stuff like this for a living and I tend to avoid frameworks :)

I don't care for Gin. I'll take a look at Echo.
For those still running 2.7 because migrating is too hard, consider using my "ppython" version (https://github.com/nascheme/ppython). It is a modified version of 3.6 with extra backwards compatibility features. After running your code through 2to3, it should mostly work with ppython. After fixing all the runtime warnings, your code should work with regular 3.6.
Totally agree!

I think it somewhat comes back to the "Python Paradox": http://www.paulgraham.com/pypar.html

Another part of it is that someone who's incompetent in, e.g. JavaScript, is likely to not make it very far trying to do Clojure. And, again some conjecture, I'd bet that someone who is great at Clojure would write very nice JS.

When I was learning Python back in, 2006 or so, I remember someone stating "You can write Java in any language". This was referring to people who wrote Python code with these huge class hierarchies that inherited from stuff all over the place, when a "Pythonic" solution would have just involved a couple of functions.
"Premonition of love". Oh, there, I translated it.

It's not untranslatable. It's just not a popular culture thing anywhere except Japan.

Sure, it's different from "love at first sight" because you feel you will love them, not that you already do.

Personally, sounds a lot like "lust" or just "interest" to me.
A better response would be honesty: "I've seen this question before on a (puzzle/interview prep/whatever) site. The optimal answer was better than what I initially came up with... I didn't consider that we knew one of the coins was explicitly heavier than the others, I was only thinking that one was a different weight. That's a good reminder to read your specs very closely."

Or something like that.
HiFive1 is a dev kit based on RISC-V you can buy: https://www.sifive.com/products/hifive1/
In a similar vein, old arcade games might debounce their coin detectors with two latches synchronized to, say, HSYNC/128 -- effectively giving a debounce of a few msec.
I think part of this depends on how introverted you are. I'm introverted, so after a long day of hacking, the last thing I want to do is burn more fuel talking to people.
No, there are explicit affirmative action laws too. For example, some federal contracts are set aside for what are known as "8(a) businesses": small businesses owned by disadvantaged groups.
3 Mobile Marketing Stats to Know
As a sysadmin at my company, I have regular questions from my users (C++ developers) about upgrading from Sierra to High Sierra due to Apple's invasive and unavoidable notifications. After the root-exploit balls-up, I forced the two people who'd upgraded back onto plain Sierra. But I know at some point it'll stop giving us the option to ignore.

I am beyond flabbergasted at how much these idiots have managed to break between Sierra and HS. They must literally be high when they say 'this is good, let's ship it'. The OS is abysmally unfinished, and with each of these stupid failures we're going past Vista levels of unfinished. These are tools I use in my daily workflow (thankfully I use Linux instead), and other developers in my company use these tools. At this point, upgrading to HS would be a massive step backwards for us.

I literally cannot believe how sh*t MacOS has become. It's a cesspit of broken Unix with a shiny iOS layer covering it. I absolutely loved Snow Leopard and cannot believe it has evolved (or mutated) into this. I'm beyond pleading and into exasperation.

APPLE, WILL YOU MAKE AN OS WE CAN ACTUALLY USE?!
That depends on environment you are working in. Digital debouncer in FPGA (or PLC for that matter) will involve some kind of digital timer as you cannot easily build simple RC low pass filter in such environment.

In discrete logic debouncer designs with RC-filter that are quite similar to this tube circuit are still widely used and to some extent the modern designs are more similar to this when the schmitt trigger is realized as input of some MCU/FPGA and only external parts is the RC filter in contrast to tradditional discrete logic solutions which usually placed the filter between two schmitt trigger gates.

By the way adding such external RC-filter (or even just series capacitor across the contacts) is quite cheap and quick fix for worn-out rotary encoders on various devices when existing (usually software) debouncing logic stops to be sufficient.
They are saying that people on Hacker News like to believe that the reason for the lack of gender diversity in technology culture is not due to a problem with technology culture, but rather due to a problem in other parts of society (gender norms). People on Hacker News think this because they feel safe and accommodated by technology culture and assume that it must be the same for other women.
My comment is in line with the Bill Gates article and wasn’t meant to incite the response it got. Bill Gates wasn't trolling when he wrote the article and neither was I. The fact that the post and my comment got flagged says something about HN ideology and/or me expressing myself poorly.

The crux of the article was that people, the media, etc always focus on things getting worse while the data shows they’re getting better. I agree with that. In the future, I will be more careful in expressing myself so as not to arouse resentment. I’ll also stop posting about BTC.
Google won't accept inbound mail (from an MTA, not an MUA) that doesn't do STARTTLS? If that's true, I'm both impressed (at their resolve to make the Internet a better place), and concerned that messages from old ISPs that haven't upgraded in a decade won't ever reach my GMail account.
I like that quote. It reminds me of this video: https://www.youtube.com/watch?v=yL9UJVtgPZY
> transistor logic which is relatively high current

Huh? The gate resistance of a FET is hundreds of megaohms, so the input current is measured in nanoamps. That doesn't seem like high current to me.
And now there are "Tier 3" companies that didn't get invited to the slack channel.

It all helps big get bigger and making life harder for smaller companies. Not a great setup for a healthy competition.
I'd imagine the 'almost' here is that VoIP defaults to using SRTP and STUN/TURN (WebRTC) rather than HTTP.
Oh, so just garden variety tech feminism then. So what specifically do we need to do in tech? This is all very vague generalities at this point.
Alifii si uleiuri din PLANTE MEDICINALE
Listicle and clickbait isn't the same thing. That headline probably describes the article very well.
I used to get something like this, except I described it more like a "burning" behind my eyes. My optometrist recommended reading glasses for computer use. During the day, I wear glasses for nearsightedness, and it turns out that using those while working on a computer was causing a lot of eye strain. I found that reading glasses are actually pretty great -- they force your eyes to focus at a very close range, letting your eyes relax. Since I started wearing them, the burning has gone away. Perhaps you could try something similar.
If you're not going to say anything, you could use fewer words to do so.
Why do we do things that aren’t in our long term interests?
As far as I can tell, the RHEL/CentOS kernel has mitigations not only for Meltdown but also Spectre (using the new MSRs).

Am I right in assuming that Red Hat built their own mitigations, independently from upstream?
> Nevertheless they come with enormous empathy

Where? I find the exact opposite to be the case.
What do you mean by small scale? I think requests per second. Our Go-backed API has handled 90k rps without batting an eye. Or do you mean small scale as in team size? It is my understanding that Go was specifically designed to work for large organizations (cough Google cough).

Or do you mean single page JavaScript web sites? At which point Go would be the backing API? I don't see what qualifies Go for "small scale" vs "large scale."

Thanks for any clarification. Cheers!
AdSense ads stopped showing on many websites
https://www.notebookcheck.net/ always tests for PWM and otherwise has the best laptop reviews on the planet. Example of PWM test: https://www.notebookcheck.net/Lenovo-ThinkPad-X1-Carbon-2017...
Fair use is a right, and free speech is a right, but there's no right to have Google host your videos.

>
Freedom of expression is a right that may not be abridged by the government

Key word, the government.
Love this type of thread and great find on the cert stuff. Super cool
Eelo the new mobile operating system, focused on your privacy
I took some time try to make an old codebase to work with python2/3. Some wat moment from the effort:

1. `StringIO.StringIO` is a PITA. There's no equivalent in Python3 (for a good reason), and you must choose between `io.StringIO` (which only support unicode) and `io.BytesIO` (which only support bytes string). A possible solution is to use `six.StringIO` but it's simply bury the problem. It would be a good idea to think about what string you are dealing with before doing any change around StringIO.

2. The `stat` module contains some helper functions to test st_mode. In Python2, the function will happily accept negative numbers but in Python3 an exception will throw:

$ python2 -c 'import stat; print(stat.S_ISDIR(-1))'
False
$ python3 -c 'import stat; print(stat.S_ISDIR(-1))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
OverflowError: can't convert negative value to unsigned int

3. You can do `def foo(a, (b, c), d)` in Python2: https://www.python.org/dev/peps/pep-3113/

4. You can compare slice with int in Python2:

$ python2 -c 'print(slice(1) > 1)'
True
$ python3 -c 'print(slice(1) > 1)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: unorderable types: slice() > int()
Any update on the post-mortem? How long have the binaries been replaced? Is there evidence that malware was injected into the binaries?

Additionally, you should brush up on your code signing implementations. Had you signed it with a trusted code signing cert, consumers could have verified that you produced the binaries...and not a malicious user. Assuming they didnt have access to the private key material of your code signing key.
SF startups appear to be a fascinating way for landlords to extract money from VCs. I wonder if the landlords give away plausible ideas to young hackers to pitch to the VCs? Perhaps landlords run all the incubators?

The employees of startups are working very hard to channel money from one very rich person, to another very rich person, in the vain hope of having an imperceptible chance of becoming a very rich person themselves.
I don't think you went over that medical summary I provided: Fatty acids do not serve as fuel for the brain, because they are bound to albumin in plasma and so do not traverse the blood-brain barrier. In starvation, ketone bodies generated by the liver partly replace glucose as fuel for the brain.
Security Sprint week 7&8: A chat with a security expert
"Liked" and "respected" are not the same thing. You can be one, both, or neither. You are right that the role of a parent is not necessarily to be liked, but it is to be respected.
I'm hoping the EU's General Data Protection Regulation is going to bite Google's arse for this (among many other things).

Its Article 22 pretty much says that you cannot impede the rights of a person based on an automated decision.

Obviously there's exceptions for that rule, which Google is going to cling on as much as possible, but hopefully something comes out of it either way.

https://gdpr-info.eu/art-22-gdpr/
Ten years ago my home page showed up on the first page (top ten) of search results for a Google search for just my first name, or just my last name. I've never been particular famous—there were just no individuals with a web presence, outside of tech.

[But mostly I just came here to practice using an em dash correctly…]
The Guardian also does eg and ie, which, equally, I've never understood.
Putting Apple’s iMac Pro Through the Paces
Software developers are quiet and it shouldn't be like that
> Indexing code points in both UTF-8 and UTF-16 requires reading the whole string up to index location. Substrings are the same as well.

Java's String functions don't index by Unicode code points, though. Java strings are encoded in UCS-2, or at least the API needs to pretend that they are.
Algorithms for Cartographic Visualization (2012) [pdf]
Verilog has some constructs that can't actually be synthesized (i.e. converted into configurations of gates) by tools, as well as coding patterns that can result in problems for synthesis. Unsynthesizable code is still used for things like test harnesses.
Yes, but you can't easily avoid doing linking in the local machine, because the output of linking depends on what system libraries there currently are. Also, it doesn't need _that_ much memory. You're still doing all the CPU-intensive parts on the powerful machine, thus saving time and likely keeping the non-powerful machine from overheating.
> Sounds like you only prefer to read stuff that is pro-Keto.

Sounds like you need to check your assumptions as you have no way of knowing what I prefer to read.

Others have already provided studies to refute your claim, but here's one more: https://www.ncbi.nlm.nih.gov/pubmed/20071648
How a 390-Year-Old Family Business Avoids Layoffs (2013)
I've felt for a long time that Apple have lost interest in their end-user computers. MacOS Server has long seemed like 'if you REALLY want it, here, have fun'. But the tools tended to work. SoftRAID somehow works fine on Windows, why not on Mac.

Can't imagine how much pain you've been through with this. Got enough backups to revert back to Sierra?
Ask HN: What's Your Biggest PR Challenge or Frustration?
Hi Guys,
this is first post ever. I’m a London based publicist and I’m striving to address real communications - and marketing challenges that tech entrepreneurs face.
But for this, I need your help:
The best way for me to stay relevant is to know YOUR biggest challenge in communications and marketing.
So I’m hoping you would like to tell me a few words about you and your situation?
Are you getting noticed by the media?
What is you biggest PR frustration?
Is your work getting enough attention?
What are your biggest hopes and dreams for your business for the next year?
Long or short, big or small, complex or straightforward answers— I’d love to hear them all!
Thank you.
Have a great week
Kristina
Don't discount how much the things that made you a social pariah in public school make you unique and interesting by the time you hit your mid-twenties.

I played a lot of varsity sports which shielded me from much of the abuse, but otherwise was pretty different socially. When I went away to Uni I had a chance to "start fresh" and that same quirky personality, combined with forcing myself to be a little more outgoing (i.e. share my true self), went over great. A big part of it was the natural filtering of the people in my environment; a lot of the "cool" kids peak and become irrelevant after high school.
It's infuriating, but it's also an opportunity to do your little push towards a growth mindset: tell them that then they could practice more so they get better at it.

I'm convinced that the more we all tell kids that practice beats talent by a long shot, the happier our next generation will be. Even if only some people around a kid talk like that I'm convinced it can make a difference, get people into this growth mindset when they're big.

(TED talk about the growth mindset, if the term feels like manager bullshit mumbo jumbo to you: https://www.ted.com/talks/carol_dweck_the_power_of_believing...)
As far as I can tell, it considers only links to Amazon.
Morphdom: Fast and lightweight DOM diffing/patching (no virtual DOM needed)
9 ways the world got a lot better in 2017
I peek at articles all the time without upvoting, and upvote articles without commenting all the time.
You seem to be conveniently ignoring the years of patent and investor material, while simply hand-waving away deceptive marketing materials. Worse, you’re adding nothing here except the truly dubious currency of your personal incredulity.
I think it could be fairly profitable performance wise to write a specialized version of compareTo (simple memcmp) for cases where the result is directly compared to 0, equal or not equal case.

Or to have compareEqualityTo() version.

Current version supports greater and less as well, which is of course useful in many data structures and sorting, but might not represent bulk of the call sites. This feature does not come for free.

This alternative version (memcmp alias) could be written to run faster.

Only benchmarking could tell whether or not it's ultimately worth it.
BadUSB Cable #2