HNHacker News
TopNewBestAskShowJobs

onetwotree

731 karma · joined November 6, 2015

submissionscomments
onetwotree··on A blockchain is a specific set of choices suitable for a narrow set of use-cases
Pro-tip: do an "experiment" with blockchain (built in house to keep it cheap) so they can tell their golf buddies they're looking into it. Make sure it's compared to a sane solution, because then they can feel superior for having "insider knowledge" that it's pointless.
onetwotree··on A blockchain is a specific set of choices suitable for a narrow set of use-cases
As part of my job, I often have to convince business folks that they don't need to buy a fucking private blockchain (from IBM of course, because they're old enough to think that no one ever got fired for buying IBM). This is very close to the arguments I make, and adds some excellent, articulate points!
onetwotree··on Many People Taking Antidepressants Discover They Cannot Quit
Having been addicted to prescription pills, and currently being prescribed (and presumably dependent on) antidepressants, I think there are a few points that make the distinction abundantly clear:

1. When I consider stopping antidepressants, I'm not filled with anything like the dread I was when I thought about giving up the addictive pills.

2. I forget to take my antidepressants sometimes. I forget to refill the prescription sometimes.

3. I have never had any desire to take more than the prescribed dose of my antidepressants.

It's an important distinction, and unfortunately one that folks in the recovery community sometimes miss. In my experience the above characterization usually brings it home much better than some heavily medicalized description of addiction vs dependency.

onetwotree··on DragonFFI: C Foreign Function Interface and JIT Using Clang/LLVM
Anyone know what "triadic arguments" means in this context? Is it a typo of variadic?

  Some C features are still not supported by dffi (but will be in future releases):
  
     * C structures with bitfields
     * functions with triadic arguments
onetwotree··on Adderall Risks: Much More Than You Wanted to Know
> I may take you up on that offer when I can muster up the courage. Thank you.

Please do - it's always a pleasure to help someone out of a bad situation that I've been in. And remember, fear is a prison without walls - you just have to make a decision to walk through that fear, and you're free.

onetwotree··on Adderall Risks: Much More Than You Wanted to Know
You sure you're not me? I got into coding seriously in college after I started to take adderall to help study, and ended up making a career of it. I was absolutely terrified of quitting, because I felt like I couldn't do the one thing I was good at without it. I tried quitting and lost jobs over it, several times. It got to a point where I couldn't function as a human without it - I'd just sit in bed and feel sorry for myself. My addiction progressed to needing more than I could convince any doctor to prescribe, so I started getting more in various illegal ways.

I've been off the stuff for about 4 years, and I don't miss it at all. I'm actually a much better programmer without it - I don't get sucked into unimportant details, I have a more realistic sense of what I can and can't accomplish, and I'm more creative. More to the point, I have a life outside of a little bottle of pills now.

I got off of it after talking to some people who'd also gotten off - this helped alleviate my fears that I would have to give up my sweet programming career, and re-framed the problem as a matter of underused and atrophied motivation and willpower. It wasn't easy, but with a lot of love and support I managed to quit for good.

Hit me up if you want to talk - jonathan dot j dot mason, gmail.

onetwotree··on Ruby 2.5.0 Released
Hey they finally fixed the issue with SecureRandom using OpenSSL instead of the OS CSPRNG implementation!

I worked for a company a few years ago that made security software, with Ruby as a primary language, and this caused no end of frustration...

onetwotree··on 30 seconds of code: Curated list of useful JavaScript snippets
I'm with you 100% that this is silly, show-off-y code golf at its worst. The fact that its purporting to generate something a bit sensitive (why else would you use the awkward `crypto.getRandomValues` interface?) is especially troublesome - sensitive code should be clear at all costs.

I spent a bit longer than 30 seconds looking at it though, and I think the 8 is actually significant - according to the RFC,

> "Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively."

The right shift by `c / 4` seems to be taking care of this, at least if JavaScript's shift operator works the way I think it does.

The `1`s are to facilitate the goofy string creation trick.

The fact that there's some discussion around the meaning of the code on HN is a bad thing, of course!

onetwotree··on Machine learning of neural representations of emotion identifies suicidal youth
I am extremely stoked that a huge sample of 17 people have decided to upvote my comment ;-)
onetwotree··on Machine learning of neural representations of emotion identifies suicidal youth
I think that a small sample size is mostly an indicator that one needs to treat the results with far greater caution.

Effect size is very important in this. To continue your grad student murder example, it's completely trivial to determine which plant a student was given, based on whether they are dead or not. It becomes trickier if you measured something a bit less cut-and-dry, such as the incidence of headaches, or variance in a few voxels of a noisy MRI.

onetwotree··on Machine learning of neural representations of emotion identifies suicidal youth
17 subjects per group is extremely small.

Looking at it either from a machine learning or statistical point of view, using such a small sample is problematic.

This is the chronic issue with fMRI studies, since administering an fMRI is extremely expensive, and has led to some very difficult to reproduce results in the field.

onetwotree··on Ask HN: Anyone here make a 'comeback' from rock bottom? What is your story?
I got massively addicted to drugs and alcohol in college. Flunked out and bounced around through various stages of homelessness and unemployment, putting my programming skills to use to score a few bucks when I could stay sober long enough, then typically getting fired. I spent most of my 20s falling to deeper and deeper bottoms before I started to take recovery seriously. I finally "got it" by diving head first into 12-step programs (not for everyone, YMMV, etc).

Tomorrow I'll have 3 years clean and sober. I have a sick job (even by HN standards), wonderful relationships, more money than I know what to do with, a credit score that's slowly recovering, friends who actually give a fuck about me, and all that good stuff that I think a lot of us take for granted.

Recovery works, folks.

onetwotree··on Ask HN: Is it me or AI is the new Cloud?
TL;DR; tooling is improving rapidly, and while this AI boom will someday end, we'll be left with tools to incorporate the things that do work in our everyday work.

Working for a "digital innovation lab" where a big part of my job is sorting out things that developers can actually use to make cool products from Gartner report buzzword hell, I have a few thoughts about this.

Historically, AI has seen boom and bust cycles. AI, unlike other buzzword technologies, has a large cultural mythos about it - Asimov didn't write "I, EC2 Instance", after all. Thus, non-technical people have very strong and often unrealistic set of expectations around AI, so every time there are technological advances, people expect that general AI is right around the corner, and are disappointed when it doesn't materialize. Right now, we're experiencing a boom cycle as a result of the emergence of deep learning techniques. After every boom, funding dries up and investors loose interest, but the techniques that really work stick around and become part of a developers everyday toolkit.

Like all "black sorcery" technologies, AI has a ways to go in terms of building convenient tooling. Tensorflow is a huge improvement over writing low level CUDA code, but it's still too low level for folks without a strong background in mathematics and machine learning. That said, it's been improving in usability, documentation, and tooling, and just a couple of weeks I was part of a hackathon where we turned their pet recognition demo[1] into software to detect objects of interest to my company in satellite images.

At an even higher level are a number of startups (such as Clarifai[2]) that offer AI-as-a-service. In Clarifai's case, you can train your own image recognition models and apply them with a few lines in your favorite programming language (yeah, yeah, I'm shilling them a bit, but I really like their product ;-).

So at the end of the day, I think we'll all be building various kinds of AI into our products in the not-so-distant future, but you won't really need to go deep into tensorflow and similarly low level tools to do so.

[1] https://github.com/tensorflow/models/blob/master/object_dete...

[2] https://clarifai.com/developer/quick-start

onetwotree··on Tesla Model S battery degradation data
Thermal regulation is the most important difference, followed by low depth of discharge.

There are also some (rather weak) reports that if you take the individual 18650 cells out of a tesla battery they last significantly longer than the NCA 18650s you can actually buy from Panasonic, which indicates that they might made to better manufacturing tolerances or something, but it's really all about Tesla's treating the batteries much better during use.

onetwotree··on Tesla Model S battery degradation data
I've recently had to become pretty familiar with this subject for work, and your comment is only partially correct.

Li-Ion battery degradation is generally modeled as two (roughly additive) components, called calendar and cycle aging. Calendar aging is what you're talking about in your comment - it's basically determined by the temperature and state of charge. Both of these impact the rate of chemical processes that lead to loss of lithium and active material. This is what happens when the battery is sitting on the shelf.

Cycle aging, on the other hand, happens when you charge or discharge the battery and is driven mostly by the actual volume change in the anode and cathode when they get lithiated (it's quite significant, up to 15% or so in some materials). This introduces mechanical stress, which can break the protective film that forms between the electrodes and electrolyte and allow chemical degradation to proceed at a faster rate. The degree of mechanical stress is mostly determined by the depth of discharge, although rate of charge and discharge is also believed to be important. Cycle degradation is also impacted by the temperature at which the battery is cycled, in a similar way to calendar aging.

With high temperature variance (low temperatures will wreck your batteries too, and I can't recommend keeping them at 5C), calendar aging is the dominant mode. This is absolutely the case with cell phone batteries. However, electric vehicles, especially higher end ones like the Tesla, have an active cooling system that keeps the battery at a constant temperature, even when the car is "off". This is why many EVB warranties will be voided if you let them run out of charge for more than 14 days - at that point, the cooling system isn't working and your poor battery is at the mercy of the elements.

Under closely controlled temperatures, cycle aging is the most important factor, and it's dominated by depth of discharge. If you drain the battery as far as it will allow you every day, it's going to be hosed. If you only go down to about 80% of the allowed charge every other day, it'll last for quite a while. These numbers are roughly correlated, obviously, with the mileage on the car, but the relationship is not simple, and I'd caution against considering mileage to be a good determinant of battery degradation.

Some good sources if you want to learn more:

A fairly simple model of degradation (ignores charge/discharge rate): https://www.researchgate.net/publication/303890624_Modeling_...

A thesis on the subject, goes into great detail and has an excellent bibliography: http://webfiles.portal.chalmers.se/et/Lic/JensGroot.pdf

onetwotree··on Show HN: A Set of Dice That Follows the Gambler's Fallacy
Video games, especially competitive ones, do this to limit the effect of randomness on the outcome of the game, while still keeping the sequence of random events unpredictable enough to "feel" random and preventing simple exploits.

DoTA2 uses a simple distribution based on the number of "rolls" since the last successful one - P(N) = P0 * N, where P0 is the base probability and N is the number of rolls since the last successful one[1].

It keeps both "hot" and "cold" streaks from being too much of an issue, although that doesn't stop players from cursing the RNG gods when they lose.

[1] http://dota2.gamepedia.com/Random_distribution

onetwotree··on SF to prohibit employers from asking for salary history to close gender wage gap
So refuse it. Tax documents are private.
onetwotree··on SF to prohibit employers from asking for salary history to close gender wage gap
1 ) Banning past salary inquiries allows more rapid increases in salary, thus accelerating a trend induced by other factors of a shrinking gender gap. This is also why you should always refuse to reveal your past salary.

2 ) Assertive behavior like refusing to reveal past salary is viewed (consciously or unconsciously) as a positive trait in men and a negative one in women. This puts women at a disadvantage during salary negotiations generally, and specifically when asked to provide information that will prevent them from entering a position with a higher salary.

onetwotree··on Ask HN: How to not bring emotion from work back home?
People have been dealing with problems like this for thousands of years. The solution, developed in almost every culture, has been some form of spiritual practice.

I view spirituality as the technology of human existence, and take a pragmatic and heterodox approach. The key is practice and action - you don't get anything out of simple belief.

Steer clear of spiritual ideas that feed your ego, and gravitate toward ones that emphasize humility, service and acceptance. It works well for me, but as always YMMV.

onetwotree··on Lime: model agnostic interpretability for machine learning
Story time: I was playing with the kaggle lending club dataset and getting really high accuracy (high 90s) predicting default with an out of the box sklearn model. Just for fun I ran it through LIME and discovered that every single default was strongly predicted by the "recoveries" feature. I looked into the data dictionary (yeah, I should have done so first...) and discovered that this feature indicates the amount of debt recovered by collections agencies...
onetwotree··on A comment left on Slashdot
Basically this. I was going to contrast a couple of (heavily anonymized) employees we just hired - a smart but inexperienced twenty something and a smart and very experienced 40 something, when I just remembered that I'd run into the 20 something at the office on a Sunday.

I was just there to show the new office and some of our toys to my girlfriend, he was there because he was really excited about the job and just wanted to really kill it.

Twenty year olds generally haven't figured out what really matters in life, especially when it comes to work life balance. That's a valuable asset to most companies.

I told the kid to go home and have some fun, but I don't think he did. Later that day the 40-year old posted a picture in slack of him flying a drone with his kids, and just looking happy as a clam in mud.

onetwotree··on Hackers Have Stolen Millions of Dollars in Bitcoin Using Only Phone Numbers
Only if you're in the ALL REGULATION BAD|GOOD camp. It's more nuanced than that for most of us.
onetwotree··on Neurodiversity
That sounds really awful. You've followed the recipe, gotten the killer career, the fat stacks, and the hot wife, and there you are, still miserable.

Please try your best not to read this as being condescending - I have a weakness for making valiant, often vain attempts at reaching out to and helping people who are miserable, because I've been there myself.

There's good news, and bad news.

The bad news is that the things that are supposed to make us happy are cultural constructs, illusions and soporifics that for whatever reason, fail completely to bring any happiness or meaning to the lives of people like you and me. We're born, we try feverishly and frantically to grab onto the happiness and meaning that seem to come so easily to others, and when we die it's a stillbirth - we've never really lived.

The good news (which may also sound kind of bad, depending on how you feel about certain things), is that humans throughout history have run up against this, and some of them have sat down and tried to solve the problem. Like all the best solutions, theirs were counter-intuitive, paradoxical to the ignorant, and easily mocked by those who had no need for them. These were of course the philosophers, mystics, and many of those who we think of today as religious figures. What they discovered was essentially the technology of human happiness.

I should stop to point out here that I'm not suggesting that you can fix your ASD stuff. What I am suggesting that it's not the proximate cause of your unhappiness. Sure, being excluded and lonely may be the result of your condition, but lots of people have that experience for other reasons and go on to lead happy lives. It's your reaction to your situation that's causing you pain.

I don't want to be prescriptive about where to start, but as intellectually appealing as philosophy might be, the bullshit to insight ratio is extremely high compared to what people generally refer to as spirituality or religion. Approaching the technology of happiness through Plato is a bit like trying to learn how to program by reading Turing's papers on computing - everything you need is theoretically there, but it's going to require a herculean effort before you can make software. It's better to revisit it once you have something that works in your life.

I'm not saying you have to believe in god, jesus, or magic. Some religious traditions leave these out entirely - for example in Buddhism offers an accessible path involving reincarnation, Bodhisattvas (saints), and miracles, and an alternative one in the Zen and Theravada traditions in which these things are taken as symbols rather than the signified. Buddhism is, to the best of my knowledge, the only religion in which this bifurcation is explicitly acknowledged, although some Christian and Muslim Neoplatonists constructed similar arguments that never became part of the broader doctrine.

Another commenter has suggested psychedelics. I've had earth shattering spiritual experiences on them, and I've also had less intense but much clearer and more lasting ones in the more traditional pursuit of understanding. YMMV.

Finally, if by some (figurative) miracle you've made it this far, it's important to note that learning about this stuff does nothing. You have to practice it, engage in it, and be changed by it. This is deeply fucking uncomfortable process, and it takes time. Best of luck.

onetwotree··on Working remotely, coworking spaces, and mental health
Working remotely killed my mental health. Even with Slack, Hangouts, and all the rest, I became lonely, had difficulty focusing on work, and generally became significantly less happy and productive. I tried a coworking space, and while I made some great friends there, it still wasn't doing it for me.

I've been back at an office job for about 3 months now and it's been a huge improvement. I love being in an office with a team of people all working on the same thing, solving problems together, and socializing.

Obviously, different things work for different people, but I wish I hadn't bought into the remote work idea as wholeheartedly as I did. It's important to be aware of what you get out of onsite work in addition to the drawbacks.

onetwotree··on Software Engineering Internship Amazon Interview Experience
I think you made the right choice. I live in Madison and have some friends and coworkers who work or have worked for Epic. The burnout is epic (pun definitely intended).

I think the only ones who really like their jobs are a barista and a cook.

onetwotree··on Ask HN: I will quit my job as a PM to join a coding bootcamp. Am I crazy?
I joined the lab after it had been up and running for about 6 months, so I'm not sure what setting one up looks like.

However, I can tell you that probably the most important thing we had going for us in terms of getting of the ground is my boss, our VP of Innovation. He's been with the company for a many years, and is generally very well regarded. He also works tirelessly to promote the lab and get the rest of the company involved.

We also have an HR manager, herself a long time company woman, and that's been essential for recruiting talented engineers and inters, as well as helping guys like me with the transition from startup land to an old school corporation.

Other than that, we're all full time engineers, plus interns from the local university, especially in the summer.

onetwotree··on Deleting the golang subreddit
Unsubscribe to the default subs, subscribe to the ones that interest you. My reddit experience was more or less untouched by the election shitshow.
onetwotree··on Deleting the golang subreddit
This seems like an extremely silly move.

Reddit can broadly be partitioned into a small number of very popular "front page" subs, such as /r/TIL, /r/AskReddit, and /r/news, where drama and toxicity abound, and a vast number of topical subs (such as /r/golang), where discussion is focused on a specific topic, and generally friendly, civil, and useful.

I'm not a fan of the front page myself, although usually for reasons unrelated to the recent drama. But with a nicely curated set of subreddit subscriptions, I find the site to be a nice collection of news and discussion that interests me.

Hopefully the golang community shows some maturity and doesn't throw out the baby with the bathwater.

onetwotree··on Show HN: Dply – Free temporary Linux servers
Looks like they already do that according to the FAQ.
onetwotree··on Ask HN: I will quit my job as a PM to join a coding bootcamp. Am I crazy?
If you're interested in working with cool tech like blockchain and AI, but are tired of startup culture, a good option might be one of the "Digital Innovation Lab" organizations that more traditional companies are putting together. I just started working for one, and it's pretty great - I have stability, sane hours, solid compensation, and a healthy culture, but I also get to work with a bunch of really smart people on cool technologies.
Page 1 of 7Next →