News for hackers. Stuff that matters.

njonsson

The best high-GI food I have found is Welch's fruit snacks. They are superior to glucose tablets: (1) Can be swallowed whole quickly and easily, or dissolved by saliva. (2) More concentrated, so you can pocket or pack more glucose in less space. (3) Can be compressed in a pocket or backpack without turning to powder that leaks everywhere. A packet of fruit snacks is 17 g of carbohydrate, which is small enough to catch moderate crashes and large enough when doubled to catch major crashes.
Re:Virtual violin produces realistic sounds on Wednesday May 06, 2026 @11:48PM (#48045188)
The sound is more like that of a kayagŭm (a Korean traditional instrument) than violin pizzicato.
Re:Behaviours to avoid in a software architecture role on Tuesday February 02, 2021 @09:37PM (#26009925)
In 2020, the Amazon Principal Engineer community added a ninth tenet. Much effort went into crafting the new tenet, as was the case with the others. The new tenet may be my favorite of them all.

LEAD WITH EMPATHY

Principal Engineers shape an inclusive engineering culture where others are heard, feel respected, and are empowered. We are conscious of how our words and demeanor impact others, especially those with less influence; we take responsibility for that impact, intentional or otherwise. Our work builds productive relationships across teams and disciplines, and across a wide range of life experiences.

Re:Regexes vs. Combinatorial Parsing (2019) on Thursday May 28, 2020 @07:45AM (#23336161)
I got a lot of mileage out of the x modifier, too, until I bumped into the Composed Regex pattern. https://www.martinfowler.com/bliki/ComposedRegex.html
Re:Hash tables on Thursday October 10, 2019 @07:14PM (#21220162)
Nitpick: The talk by Dr Cliff Click is dated February 2007, closer to 13 years ago than six years ago.
Re:Antonio Salieri’s Revenge on Tuesday May 28, 2019 @04:39AM (#20028291)
I’ve performed Jean-Marie Leclair in recital — the violin sonata, op. 9 no. 3 in D major (see https://imslp.org/wiki/12_Violin_Sonatas%2C_Op.9_(Leclair%2C... ). There are beautiful recordings of this piece by Szeryng and Oistrakh.
Re:Transposing Instruments on Tuesday December 25, 2018 @06:25AM (#18757010)
Simpler, yes, in the sense that just one instrument (the soloist) would have to play notes they were not prepared to play. But a concerto (typically a long piece for one or more solo instruments accompanied by orchestra) showcases the solo instrument, both by exposing it and by demanding much from the soloist’s technique and interpretive powers. It’s a shorter order for the orchestra to adapt than for the soloist to do so.
Re:Want to Be More Creative? Take a Walk (2014) on Tuesday September 04, 2018 @05:06PM (#17912809)
“Solvitur ambulando.”
Re:A Competitive Programmer's Handbook on Saturday April 15, 2017 @09:29AM (#14120634)
The size of S is k.
It only applies to procedural knowledge, of course, but there’s a similarity here between “teaching it to a toddler” and writing a program that does it. I often find huge gaps in my domain knowledge and understanding, not while I’m composing a readme up front but while I’m writing code.
Re:What is BuzzFeed, really? on Thursday April 14, 2016 @04:38AM (#11495106)
Unless they chose the ternary path. It’s closer to base e and therefore closer to optimal than binary.
Re:Probability, Paradox, and the Reasonable Person Principle on Sunday January 17, 2016 @06:01AM (#10919109)
Unless I’m mistaken, if Alice pays 9% of $117,000 (i.e., $10,530), then Bob pays 11.7% of $234,000 (i.e., $27,400).

An 18% tax rate would apply to earners of $1,170,000 (i.e., $210,600 in tax).

The high end would be a 63% tax rate applicable to earners of $117 billion (i.e., $73.71 billion in tax).

This calls to mind the office scene in Neal Stephenson’s Snow Crash in which Y.T.’s mother reads a directive from her employer. She self-consciously scrolls through the dull text — aware of her employer’s automated surveillance system as she does so — pausing and returning to an earlier section of the text to create the impression of careful reading.
I’d love to see a permalink feature. If you don’t want to store poster definitions, put them in the URL.
Re:Questions for Donald Knuth on Tuesday May 20, 2014 @07:33PM (#7775837)
DIY biotech. Bespoke pets for the risk-averse, and bespoke personal physiology for the rest.
Re:How This Freelancer Hacked His Hourly Rate on Wednesday November 20, 2013 @10:27AM (#6768515)
It strikes me that an hourly rate that increases over the life of a project might be a way for a freelancer to skew his billable hours toward new development and away from maintenance. It also reflects the fact that the freelancer’s knowledge of a particular client becomes more valuable over time. On the other hand, an increasing hourly rate is a tougher sell to potential clients.
Re:Avoiding Heart Disease on Monday November 04, 2013 @05:46PM (#6671753)
I had an elevated Lp(a) level and was able to reduce it dramatically by taking niacin, under the supervision of my cardiologist. YMMV?
I have to admit that the “OVER!” scene from “Portlandia” came to mind as I read Tom’s post. http://youtu.be/YlGqN3AKOsA

  Plus, in the history of the world, he said, is there one
  thing you can think of that has been hand-made, and on such
  a large scale as software, that was as complex?  [I cannot
  not.]
Yes: musical compositions. The largest software projects are more complex, and take longer to complete, than symphonies. But the failure rate is probably comparable.

There are probably plenty of commercial composers who write music mostly because it’s a job they can do, and they derive a modicum of satisfaction from it. But the composers who have made history — just like the programmers who have made history — do it because they must. If they give it up, they cease to do what they were made to do.

Re:John Resig: JavaScript as a First Language on Wednesday December 21, 2011 @03:22PM (#3378976)
All decent suggestions. I quibble with this, though:

  // Don't do this:
  function getData() { }
  // Do this instead:
  var getData = function() { };
The assignment is righteous, but by omitting the function’s name, you make stack traces more difficult to follow. Better this instead:

  var getData = function getData() { };
Re:Linus: please write good git commit messages on Sunday November 27, 2011 @01:48PM (#3283049)
Making semantic line breaks (such as for bullets) is understandable, but it still feels wrong that we’re otherwise doing the job of `fold`. I started breaking lines in commit messages because it’s convention, but I still believe this is a tooling issue.

This shell script wraps wide commit messages to the width of your console.

    GIT_PAGER="fold -s -w`stty size | awk '{print $2}'` | less" git log $@
Re:Dropbox Easter Egg? on Friday September 30, 2011 @09:13PM (#3059081)
There’s an irreverent wagging tongue in there, too.

   greetings

       to

  AAPL    GOOG

   :)  :P  :)

      MSFT
Was it prophetic of iCloud and Google Drive??
Re:Java's Comb-Over on Friday September 09, 2011 @04:35PM (#2979730)
That’s the most compelling argument I’ve heard for regularly paying down technical debt, and/or for acquiring it with great care. The craftsmanship argument — made by Uncle Bob and others — holds guilty appeal for me as a hacker but strikes me as self-indulgent. What’s compelling about your perspective here is its rational basis in the interest of the product owner. I had not thought of user stories as an abstraction, and therefore a probably leaky abstraction.
Re:H-P's One-Year Plan on Monday August 29, 2011 @05:19PM (#2939068)
An amusing quip, but the comparison only serves to beg the question. McDonald’s is ostensibly in the hamburger business, but the engine room of the company is real estate. See http://money.howstuffworks.com/mcdonalds2.htm.
Re:Warren Buffett: I could end the deficit in 5 minutes. on Friday July 08, 2011 @12:56PM (#2743197)
Successful economic models cannot be divorced from the cultural context in which they arise. American-style Capitalism was born during the Protestant Reformation. This religious movement provided a theological basis for individual property rights and free enterprise, as well as the understanding that actors in such a system must be restrained by conscience and charity toward their fellows.

We cannot expect to solve the problems of human nature via economics or public policy when the philosophical and religious landscape has shifted.

Re:Collect HN: Aprils Fools on Thursday March 31, 2011 @10:46PM (#2394727)
“What’s new in htty v1.3.4: Rails view emulation — PUT and DELETE are sent as POST requests with form data of ‘_method=put’ or ‘_method=delete’.”

http://twitter.com/get_htty/status/53649180652093440

Re:Github reviews as a way to improve code quality? on Friday March 18, 2011 @01:30AM (#2339503)
http://test.rubygems.org addresses all your concerns related to RubyGems, except that it’s an opt-in thing — you must configure RubyGems to run tests upon gem installation, and the results are optionally uploaded for use by the gem author.

A pearl from Perl, of course.

Re:Why pi? on Saturday January 15, 2011 @09:56AM (#2107062)
On a purely superficial note, here are Knuth's recent Google searches, according to the Safari search box dropdown list that flashes by at 2:22:

• google calculator

• wolfram alpha

• williams cutlery

• craig gentry

• "the lost chord"

• acrobat scroll speed

• html bulleted list

• html subscript

• doerr "protocol partition number"

Re:R.I.P. Ruby Hash Rocket Syntax 1993-2010 on Wednesday January 05, 2011 @07:31PM (#2073251)
No, you aren't.

Older »