HNHacker News
TopNewBestAskShowJobs

jdnier

2,542 karma · joined January 8, 2009

submissionscomments
jdnier··on PyPy.js: A fast, compliant Python implementation for the web
"If we ship Python inside of Firefox, no one is going to use it because it's not available in Chrome, it's not available in Internet Explorer." Oh yeah? Try me.
jdnier··on You’re Worrying About the Wrong Bees
Wild bees live adjacent to cultivated fields. From the cited letter in Nature: "Our second finding was that the insecticide seed coating correlated with reduced nesting of the solitary bee O. bicornis. To investigate this we placed three trap nests containing 27 O. bicornis cocoons (ExtendedData Fig. 1) adjacent to each of the 16 fields before the beginning of oilseed rape flowering and monitored if emerging females started to build brood cells. In six of the eight control fields, but in none of the fields treated with the insecticide seed coating, females started to build brood cells (Wilcoxon test Z 5 2.84, P 5 0.0045; Fig. 2b). Although the reasons why the bees failed to build brood cells when exposed to the insecticide treatment remain unclear, a reduced capacity to navigate[8,9,20,21] is a possible explanation."
jdnier··on You’re Worrying About the Wrong Bees
"Honey bees weren’t affected by the [neonicotinoid] seed treatments. But wild bees were affected, and in a big way.... In this study, no mason bees (Osmia bicornis) began brood cells in the seed treated fields. None."
jdnier··on Curated free-to-use space photography
Here we have a "curator" saying these photos are from "Source: NASA", but with no additional details provided. No original source or URL, no captions, no detail on cropping or manipulation, just a collection of "the best ones" he's found somewhere on the Internet. Nice to look at but lacking all context.
jdnier··on UW scientists, biotech firm may have cure for colorblindness
I wonder how overwhelming it might be to suddenly see vivid reds and greens for the first time, especially for an adult, and not be able to turn it off.
jdnier··on [dead]
Much larger in scale, alfalfa is also exported, often to Asia. "The water used to irrigate just alfalfa and hay — 7 trillion gallons per year — exceeds the irrigation needs of all the vegetables, berries, and fruit orchards combined." (Center for Science in the Public Interest; http://www.cspinet.org/EatingGreen/pdf/arguments4.pdf)
jdnier··on [dead]
On the theme of the impact of animal agriculture, here's a much deeper exploration of those impacts and a dizzying list of statistics and sources: http://www.cowspiracy.com/facts/
jdnier··on YAPF – A formatter for Python files
I think of it as indicating the function name and parameter list are a unit (it's foo(object), not foo (object)). I've always liked that style.

When I see people write

    'some %s %s text ' %('x', 'y')
my first thought is "% is not not a function".

I'm reminded also of (and agree with) the Crockford convention in JavaScript recommending a space in

    function () {...}
but not in

    function foo(object) {...}
But conventions are are a choice made; most times it's easier to adopt them and move on.
jdnier··on Rosetta Is Tailing a Warming Comet
This is the best gallery of photos I've seen. One close up views the comet from only 6 miles away.
jdnier··on Uprooting the Leading Causes of Death (2012)
An hour-long video summarizing the effectiveness of plant-based diets, which can prevent, treat, or reverse 14 of the top-15 causes of death in the US (just not accidents).
jdnier··on Show HN: Essential React, a minimal skeleton for building React apps using ES6
"ohmygodthelistgoeson"!
jdnier··on First detailed microscopy evidence of bacteria at the lower size limit of life
Life is endlessly surprising: "The diverse bacteria were found in groundwater and are thought to be quite common. They're also quite odd, which isn't a surprise given the cells are close to and in some cases smaller than several estimates for the lower size limit of life. This is the smallest a cell can be and still accommodate enough material to sustain life. The bacterial cells have densely packed spirals that are probably DNA, a very small number of ribosomes, hair-like appendages, and a stripped-down metabolism that likely requires them to rely on other bacteria for many of life's necessities."
jdnier··on The billionaire’s typewriter
"If they some­times act as if they dis­cov­ered ty­pog­ra­phy like it was the Higgs bo­son, we can for­give their ex­cess of en­thu­si­asm."
jdnier··on TXL: a language for text structural transformation, analysis and verification
It looks reasonable in Chrome on Linux... until I looked at the source, which is littered with <FONT FACE="Comic Sans MS"> tags.
jdnier··on Fast Non-Standard Data Structures for Python (2013)
From 2013, but it's a big list.
jdnier··on Undeveloped Film from a Soldier in WWII Discovered and Processed
It pains me to see him unwrapping paper-backed rolls of film in room light, then using a strobe to document the appearance of the the roll (before developing). The fogging you see at the top and bottom edges of some rolls is from light leaking around the edges of loosely-rolled spools; it happens even with modern 120 roll film. There's a good chance he's fogging some of the rolls due to his handling.
jdnier··on Inside the World’s Most Advanced Coffee Laboratory
“I realize why my cab driver seemed so proud to drop me off at the aging-but-impressive all-brick main building of Cenicafe... ‘Welcome,’ he said, ‘to the NASA of Colombia.’”
jdnier··on I Owe It All to Community College
No, not really. http://www.merriam-webster.com/dictionary/irregardless
jdnier··on The Tale of Studio Ghibli
The Studio Ghibli film Spirited Away (2001) overtook Titanic and is still the highest grossing film in Japan.[1] Another Ghibli film, Howl's Moving Castle, also passed Mononoke on that list.

[1] http://en.wikipedia.org/wiki/List_of_highest-grossing_films_...

jdnier··on Iterstuff is the cut-down single-blade version of Python itertools
"The atend and peek properties of the Lookahead class enable a whole set of simple recipes for working with generators."
jdnier··on Iterstuff is the cut-down single-blade version of Python itertools
The docs make a nice tutorial on various itertools functions and how iterstuff enhances them.
jdnier··on PostgreSQL 9.4 Released
A great book, full of interesting ideas and implications of software development carried on over millennia.
jdnier··on Adult-onset diabetes, obesity cured in lab mice, scientists report
From the paper's abstract (published by Nature Medicine, 08 December 2014):

"These preclinical studies suggest that, so far, this unimolecular, polypharmaceutical strategy has potential to be the most effective pharmacological approach to reversing obesity and related metabolic disorders."

jdnier··on Donald Knuth's 20th Annual Christmas Tree Lecture: (3/2)-ary Trees [video]
At one point in the video he suggests (with a laugh) the name imagin-ary to go along with binary, ternary, n-ary, etc.
jdnier··on Free Python Books
What a huge list! There are many new titles coming in 2015.
jdnier··on PostgreSQL’s New LATERAL Join Type
Here's another explanation from the Postgres docs with additional examples: http://www.postgresql.org/docs/9.3/static/queries-table-expr...
jdnier··on Regulex – JavaScript Regular Expression Visualizer
My favorite large regex for testing sites like this (Regulex link was very long, so here's a tinyurl):

http://tinyurl.com/ovmvphg

Original paper: http://www.cs.sfu.ca/~cameron/REX.html

jdnier··on Dateparser: Python parser for human readable dates
Except that arrow is simple-minded when trying to parse date strings (compared to dateparser or delorean[1]). By default, it only tries to match a few patterns. You'll see a lot of this:

    arrow.parser.ParserError: Could not match input to any of
    ['YYYY-MM-DD', 'YYYY-MM', 'YYYY'] on '01-06-17'
Here's a list of (US English–centric) test dates that dateparser ((ddp.get_date_data(date)['date_obj']).date()) and delorean (delorean.parse(date, dayfirst=False, yearfirst=False).date) both parse correctly, nearly all of which arrow fails on:

    01-06-2017
    01-06-17
    2017-01-06

    01/06/2017
    01/06/17
    2017/01/06

    Jan 6, 2017
    Jan 6 2017

    2017, Jan 6
    2017 Jan 6

    2017, January 6
    2017 January 6

    January 6, 2017
    January 6 2017


    January 6nd, 2017
    January 6rd, 2017
    January 6st, 2017
    January 6th, 2017

    January 6nd 2017
    January 6rd 2017
    January 6st 2017
    January 6th 2017


    2017, January 6nd
    2017, January 6rd
    2017, January 6st
    2017, January 6th

    2017 January 6nd
    2017 January 6rd
    2017 January 6st
    2017 January 6th


    01//06/2017
    01//06//2017
    01--06-2017
    01--06--2017

    01/06-2017
    01-06/2017
I like Delorean's API better than arrow's (strictly personal preference) but think dateparser's language detection is interesting.

[1] http://delorean.readthedocs.org/en/latest/quickstart.html

jdnier··on Global Fishing Watch – Technology to Illuminate Global Fishing Activity
"Global Fishing Watch is the product of a technology partnership between SkyTruth, Oceana, and Google that is designed to show all of the trackable fishing activity in the ocean."
jdnier··on Building Web Applications with Django and AngularJS
It's a veritable book.
← PreviousPage 9 of 13Next →