Monday, October 28, 2019

Cookbook Authors Discuss Jewish Cuisine


By BY FLORENCE FABRICANT from NYT Food https://ift.tt/32Wiy9D
via IFTTT

Flavored Salts From Momofuku


By BY FLORENCE FABRICANT from NYT Food https://ift.tt/2WkjEJK
via IFTTT

The Baltic States Get Their Culinary Due


By BY FLORENCE FABRICANT from NYT Food https://ift.tt/2NjKJsH
via IFTTT

New top story on Hacker News: Ask HN: I just wrote an O(N) diffing algorithm – what am I missing?

Ask HN: I just wrote an O(N) diffing algorithm – what am I missing?
7 by keithwhor | 5 comments on Hacker News.
Hey folks, I've been building a rendering engine for a code editor the past couple of days. Rendering huge chunks of highlighted syntax can get laggy. It's not worth switching to React at this stage, so I wanted to just write a quick diff algorithm that would selectively update only changed lines. I found this article: https://ift.tt/2lIuVkG With a link to this paper, the initial Git diff implementation: https://ift.tt/1GF9uI8 I couldn't find the PDF to start with, but read "edit graph" and immediately thought — why don't I just use a hashtable to store lines from LEFT_TEXT and references to where they are, then iterate over RIGHT_TEXT and return matches one by one, also making sure that I keep track of the last match to prevent jumbling? The algorithm I produced is only a few lines and seems accurate. It's O(N) time complexity, whereas the paper above gives a best case of O(ND) where D is minimum edit distance. function lineDiff (left, right) { left = left.split('\n'); right = right.split('\n'); let lookup = {}; // Store line numbers from LEFT in a lookup table left.forEach(function (line, i) { lookup[line] = lookup[line] || []; lookup[line].push(i); }); // Last line we matched var minLine = -1; return right.map(function (line) { lookup[line] = lookup[line] || []; var lineNumber = -1; if (lookup[line].length) { lineNumber = lookup[line].shift(); // Make sure we're looking ahead if (lineNumber > minLine) { minLine = lineNumber; } else { lineNumber = -1 } } return { value: line, from: lineNumber }; }); } RunKit link: https://ift.tt/2MTFXmv What am I missing? I can't find other references to doing diffing like this. Everything just links back to that one paper.

In Praise of ‘Human Scum’


By Michelle Goldberg from NYT Opinion https://ift.tt/32WnaMS
via IFTTT

2 Photos of Tense White House Moments: Note the Differences


By BY ANNIE KARNI from NYT U.S. https://ift.tt/34aLqes
via IFTTT

A Chocolate Bar With a Golden Blockchain Token


By BY FLORENCE FABRICANT from NYT Food https://ift.tt/31WXWg6
via IFTTT

In Praise of ‘Human Scum’


By BY MICHELLE GOLDBERG from NYT Opinion https://ift.tt/32WnaMS
via IFTTT

Sotheby’s Has a Wine Label of Its Own


By BY FLORENCE FABRICANT from NYT Food https://ift.tt/2Jvazsn
via IFTTT

No, the Nationals Are Not Cursed by an Early Plan to Celebrate


By BY JAMES WAGNER from NYT Sports https://ift.tt/2NoxSVW
via IFTTT

Iraqi Antigovernment Protests Grow, Part Battle Lines and Carnival


By BY ALISSA J. RUBIN from NYT World https://ift.tt/34aQBLC
via IFTTT

With California Ablaze, Firefighters Strain to Keep Up


By BY TIM ARANGO, THOMAS FULLER, JOSE A. DEL REAL AND JACK HEALY from NYT U.S. https://ift.tt/2Nil2IQ
via IFTTT

His Mind Fading, a Former Football Star Wonders but Cannot Know


By BY MICHAEL POWELL from NYT Sports https://ift.tt/2ou8YvQ
via IFTTT

FOX NEWS: Christie Brinkley’s ex Peter Cook, 60, engaged to Alba Jancou, 21


Christie Brinkley’s ex Peter Cook, 60, engaged to Alba Jancou, 21



Christie Brinkley‘s ex-husband Peter Cook is engaged to marry 21-year-old Alba Jancou, Page Six has exclusively learned.

via FOX NEWS https://ift.tt/2Nh0UXA

FOX NEWS: Kelly Clarkson, John Legend rework 'Baby, It's Cold Outside' lyrics


Kelly Clarkson, John Legend rework 'Baby, It's Cold Outside' lyrics



"The Voice" coaches Kelly Clarkson and John Legend are collaborating on a classic Christmas tune -- with a twist.

via FOX NEWS https://ift.tt/2PswIvw

FOX NEWS: Iconic Celebrity Halloween Costumes: A Look Back


Iconic Celebrity Halloween Costumes: A Look Back



From Kim Kardashian to Bruce Willis, here's a look at some of the most iconic Halloween costumes previously worn by celebrities.

via FOX NEWS https://ift.tt/2PrQhUo

FOX NEWS: Dolly Parton wanted Miley Cyrus cast as Jolene before Julianne Hough landed ‘Heartstrings’ gig


Dolly Parton wanted Miley Cyrus cast as Jolene before Julianne Hough landed ‘Heartstrings’ gig



Dolly Parton was bummed out she wasn’t able to snatch up one particular actress to portray her very specific depiction of Jolene when the legendary singer was materializing her new Netflix anthology series, “Heartstrings.”

via FOX NEWS https://ift.tt/2BMJ5dI

New top story on Hacker News: Ancestral home of modern humans is in Botswana, study finds

Ancestral home of modern humans is in Botswana, study finds
8 by jajag | 0 comments on Hacker News.


FOX NEWS: Mother admits hitting child over dirty diaper, reports say; infant later died


Mother admits hitting child over dirty diaper, reports say; infant later died



A Georgia woman has been charged with killing her one year old child, telling investigators she hit her son because she was angry that he had soiled his diaper, according to local reports.

via FOX NEWS https://ift.tt/36nkuu6

FOX NEWS: Missouri fentanyl dealer left client dying of overdose in casino before ODing in another: prosecutors


Missouri fentanyl dealer left client dying of overdose in casino before ODing in another: prosecutors



A Missouri fentanyl dealer was found overdosing in the bathroom of a casino right after leaving a client who was fatally overdosing in another casino, prosecutors said Monday.   

via FOX NEWS https://ift.tt/2opuBxb

FOX NEWS: Judge reopens Covington Catholic High student's defamation suit against Washington Post


Judge reopens Covington Catholic High student's defamation suit against Washington Post



A federal judge in Kentucky partially reopened Nicholas Sandmann's lawsuit against The Washington Post, which was initially dismissed in July.

via FOX NEWS https://ift.tt/369LTzD

FOX NEWS: Cornell student, 18, found dead in gorge after frat party, reports say


Cornell student, 18, found dead in gorge after frat party, reports say



A top Ivy League student was found dead Saturday afternoon in a New York gorge after he left a fraternity party and disappeared Thursday night, according to reports.

via FOX NEWS https://ift.tt/2BSOkZa

FOX BIZ NEWS: Richard Branson: Space travel costs will fall from $250,000 a pop


Richard Branson: Space travel costs will fall from $250,000 a pop



Sir Richard Branson compares space travel costs to crossing the Atlantic 100 years ago.

via FOX BUSINESS NEWS https://ift.tt/36hyk18