HNHacker News
TopNewBestAskShowJobs

abarrett

25 karma · joined October 18, 2010

submissionscomments
abarrett··on I was in the MAPS MDMA for PTSD study
Resize to around 480px width and you'll see the problem.
abarrett··on Fedora Loves Python
I distro-hopped a lot before somewhat reluctantly giving Fedora a shot. Turns out it's a fantastic distribution for developers because:

  - You don't have to configure everything from scratch
  - Packages are kept relatively up to date
It's not rolling release (unless you use Rawhide) but software is recent enough for it to be a non-issue.

It's also an extremely well-established project with a huge software repository.

abarrett··on Why Don't Computer Scientists Learn Math? (2016)
Provide this legend with the formula. Now how many people understand it?

∈ = is an element of

∀ = for all

∃ = there exists

abarrett··on Practical Color Theory for People Who Code
It's a linear interpolation of RGB values. I'm sure it could be improved on.

http://sass-lang.com/documentation/Sass/Script/Functions.htm...

abarrett··on [dead]
200 mg twice a day for 4 years, that's crazy! I'm surprised that guy got any sleep at all.

I use Modafinil _responsibly_ (I like to think) and for me that means 50 mg, taken early in the morning, only on days that I might need the boost (bad night's sleep, busy day, etc).

abarrett··on XXX TLD Officially Open
For me it is simply: `, a = à. Using Windows. Go keyboard layouts! (United Kingdom Extended, in this case.)
abarrett··on Google Fiber: 151Mbps down / 92Mbps up
Since we're talking hypothetically, the lower boundary would really be the diameter of Earth.

    12,756.2 km / c = 42.5501031 ms
http://www.google.com/search?q=diameter+of+earth+%2F+the+spe...
abarrett··on Short array syntax finally in PHP 5.4
In addition, you only need to specify the first key to create a one-based array. Indexing will carry on from there.

    [1 => [4, 5, 6], [7, 8, 9], [10, 11, 12]]
abarrett··on Short array syntax finally in PHP 5.4
http://www.php.net/manual/en/function.list.php

It's a language construct, not a function.

abarrett··on Firefox 5 is now officially released
> 28 for for me. I assume it is dependant on the width of tabs, not the number.
abarrett··on PHP Hacking aka trying to push PHP internals forwards
Regarding your first point: it seems short syntax for arrays may well make it into PHP 5.4.

http://www.reddit.com/r/PHP/comments/hw8da/php_fork_based_on...

abarrett··on Conway's Game of Life in CoffeeScript
The original version still contains redundancy. It would be:

    cell.live = count == 3 if count != 2