HNHacker News
TopNewBestAskShowJobs

teaspoon

1,894 karma · joined March 8, 2010

https://tombrow.com
submissionscomments
teaspoon··on ZCode – Harness for GLM-5.2
Good desktop apps in this category can manage agents across any number of remote SSH hosts.
teaspoon··on Codex is now in the ChatGPT mobile app
Why not work the same amount and be at your desk less?
teaspoon··on Act on Press
> But once I committed to the second click, I swear it would beep a fraction of a second earlier than that happened.

There’s a (very) short story about a device exactly like this: https://www.nature.com/articles/436150a

teaspoon··on How many people have ever lived on Earth?
“The silent majority” was originally a euphemism referring to the dead, who outnumber the living. It only got its political meaning in the 19th century.
teaspoon··on Dark mode in a website with CSS
Have you seen this? https://sidemail.io/articles/dark-mode-in-html-email/
teaspoon··on Dark mode in a website with CSS
Yes, you could craft CSS to conditionally load an image based on the media query. This would let a server observe the client's setting.
teaspoon··on Dark mode in a website with CSS
There's a good discussion of "why dark mode" in the article that mine links to: https://web.dev/prefers-color-scheme#why-dark-mode
teaspoon··on Who Expected That? Extreme close-ups create a Klein Bottle.
Are you talking about things like sensor noise and chromatic aberration? It would be interesting to see if downsampling the image beforehand affects the result.

However, it's hard to separate image patterns from camera structure insofar as linear projection is a result of camera structure.

teaspoon··on Parsing Techniques - A Practical Guide
That rule doesn't hold for some languages. For example, a Python lexer needs to remember a stack of indentation levels to know whether a given line's indentation should be tokenized as an INDENT, a DEDENT, or no token at all.
teaspoon··on 1k Rose - How a 3D Rose was made in under 1K of javascript
None of these demo binaries will actually run on my OS, so maybe the extra 768 bytes are a fair tradeoff for abstracting away the platform.
teaspoon··on Set of 5 non-trasitive dice shows some remarkable properties (video)
Stephen Lavelle's Platonic Archetypes of Dice is a Pokemon-style Flash game based on this Rock-Paper-Scissors-like quality of differently distributed dice.

http://www.increpare.com/2009/11/platonic-archetypes-of-dice...

teaspoon··on I don't owe you scala-tools.org
This reminds me of Neil Gaiman's "George R.R. Martin is not your bitch" essay, about reader entitlement:

http://journal.neilgaiman.com/2009/05/entitlement-issues.htm...

teaspoon··on Playing chicken with cat.jpg
Why should I care that the company is Swiss? The point of client-side encryption is that I don't need to worry about who's hosting my data or what jurisdiction they're under.
teaspoon··on Trust is Fragile
I wonder if parent was merely advocating obfuscating sensitive data so that engineers don't accidentally see things like "Downsizing-2012.xls". As long as the obfuscation is reversible, the data is still there for those who need it.

Of course, encryption per se is overkill for that. Something like ROT13 would do the trick.

teaspoon··on Sublime Text 2 Beta released with Auto-complete and Improved UI

  :w !sudo tee %
teaspoon··on Why you should never, ever use two spaces after a period.
The OP says that double-spacing is an obsolete holdover from the typewriter era, where the extra space made monospaced type easier to read. I'll go one further and say that spacing sentences using space characters -- any number of them -- is obsolete.

In the present era, the act of typing is separate from the act of typesetting. The comment I'm typing now may be typeset in Arial in Chrome, typeset in Ubuntu Mono in Emacs, or read aloud by a software program to a blind person. No prescribed number of space characters is going to be appropriate for all cases.

The reading software, not I, should be responsible for locating my sentence breaks and setting appropriate spacing there. Perhaps in the future we'll assist the software by marking up sentence breaks using a special character sequence. Ironically, a double-space would serve that function pretty well.

teaspoon··on How should a startup founder value her time?
Because the subject of the sentence is "a startup founder", not "Jason Cohen".
teaspoon··on The only brain teaser I use in interviews
Is there an objective metric according to which guessing only positives is a less rigorous strategy than guessing both positives and negatives? Given no prior knowledge about the space of possible rules?
teaspoon··on The only brain teaser I use in interviews
You're claiming that you can infer, just from a triple that I guess, whether I am attempting to confirm or refute the "ascending even numbers" hypothesis. But if I guess (2,4,6) and learn that it doesn't adhere, that's as much a refutation as if I guess (1,2,3) and learn that it does adhere. (2,4,6) looks like an attempted confirmation to you only because you have prior knowledge that the rule is not more specific than "ascending even numbers".
teaspoon··on The limited world of iOS's auto-renewable subscriptions
Instapaper offers an optional $1/month subscription. It's a voluntary way to support future development.

http://techcrunch.com/2010/10/04/instapaper-subscriptions/

teaspoon··on The limited world of iOS's auto-renewable subscriptions
I'm currently appealing a similar rejection of an auto-renewing subscription app. Here's the rejection:

We found that the Purchasability Type for one or more of your In-App Purchase products was inappropriately set, which is not in compliance with the App Store Review Guidelines.

Your In-App Purchase is currently an Auto-Renewable Subscription. However, it would be more appropriate to use the Non-Renewing Subscription In-App Purchase type. Auto-Renewable Subscriptions are intended for periodical apps, such as magazines and newspapers. Non-Renewing Subscriptions should be used for products that are not appropriate for Auto-Renewable Subscriptions.

Nothing in Apple's documentation hints that Auto-Renewable Subscriptions are more appropriate for one class of app than for another, so I was hoping that my reviewer was acting on some subjective, high-level guideline that I could argue on. However, it's beginning to look as if there is a specific, unwritten policy against non-periodical apps.

teaspoon··on Never create Ruby strings longer than 23 characters
I thought so too, but appending to a single string does even worse than reduce(:+):

  add 2  0.390000   0.000000   0.390000 (  0.390529)
  +=  2  0.540000   0.000000   0.540000 (  0.537450)

  add 3  0.530000   0.000000   0.530000 (  0.534131)
  +=  3  0.760000   0.000000   0.760000 (  0.752280)

  add 4  0.660000   0.000000   0.660000 (  0.668154)
  +=  4  0.960000   0.000000   0.960000 (  0.954727)
Code: https://gist.github.com/1562994
teaspoon··on Why Attacking Application Exceptions is Important
Couldn't a system with N supervisor-actor relationships be rewritten as a single process with N try/catch statements, where the catch block simply logs the exception and jumps back to the start of the try block?

I haven't used Erlang, so the two patterns seem roughly equivalent. I've even heard exception handling referred to as "happy path programming" by way of contrast to return value handling.

teaspoon··on Why do we pay sales commissions?
In the common case, selling someone $50,000 of licenses is a $50,000 win for the company.

That actually sounds like a very uncommon case. Even fully client-side software has variable costs in the form of support costs.

Support costs aren't relevant to your parent's example, but they do imply another misalignment of incentives. If a salesperson's commission is based on revenue alone, she'll just as soon sell to a costly, high-maintenance customer as to a profitable, low-maintenance one.

teaspoon··on Never create Ruby strings longer than 23 characters
Ruby strings are mutable, so you need to be able to free s->data without freeing the RString itself.
teaspoon··on Never create Ruby strings longer than 23 characters
I was curious, so I benchmarked this with Ruby MRI. join('') beat reduce(:+) even on two strings, but is twice as fast only on four or more strings.

   $ ruby -v
   ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
   $ ruby benchmark.rb
         user     system      total        real
   add  2  0.390000   0.000000   0.390000 (  0.385910)
   join 2  0.300000   0.000000   0.300000 (  0.305812)

   add  3  0.530000   0.000000   0.530000 (  0.527388)
   join 3  0.320000   0.010000   0.330000 (  0.329390)

   add  4  0.720000   0.000000   0.720000 (  0.720500)
   join 4  0.350000   0.000000   0.350000 (  0.353237)
Code: https://gist.github.com/1562617
teaspoon··on Online Pawn Shops Lend Cash Fast
That's a non-error:

http://public.wsu.edu/~brians/errors/nonerrors.html#lend

teaspoon··on Silly Python riddle

  """
teaspoon··on Why I Told CBS Corporation To Sue Me Without Wearing A Shirt
Just so you know, bipolar people are knowingly irrational from time to time and rarely kill people.
teaspoon··on $150K and up for Software Devs in Austin
All else equal, yes. More demand means a higher price -- i.e., less compensation for the same talent.
Page 1 of 7Next →