HNHacker News
TopNewBestAskShowJobs

richardkiss

43 karma · joined February 19, 2013

Whiz kid. Stand-up comic. Boy wonder. Lazy. http://richardkiss.com/
submissionscomments
richardkiss··on 10 > 64, in QR Codes
I discovered the same thing when I was writing a tool the transmit data to a radio-free (no wifi or Bluetooth) airgapped computer and created a de-facto standard called "qrint". The comment in this file has enough text for a blog post.

https://github.com/Chia-Network/hsms/blob/main/hsms/util/qri...

Anyone who wants to use this, feel free.

richardkiss··on Time-lapse of a single cell transforming into a salamander (2019)
This entertaining video does a good job of, if not explaining, hinting at the mechanisms that make this possible: https://www.youtube.com/watch?v=ydqReeTV_vk
richardkiss··on Sl: a mirror version of ls
This didn't work on Mac OS due to "wc -L" so I whipped up a python version.

https://gist.github.com/richardkiss/4fba0c6bd27eb39a9eb56074...

richardkiss··on Sl: a mirror version of ls
This didn't work on Mac OS due to "wc -L" so I whipped up a python version.
richardkiss··on Is this prime?
The following theorem, originally imparted to me by an algebra professor in the UCLA math department (grad school), may be helpful to you when testing yourself:

Theorem. All numbers < 100 that look prime, are prime EXCEPT 91.

(My addendum)

Where "look prime" means, is not a multiple of 2, 3, 5, 11, nor a perfect square. All these numbers have quick tests for divisibility.

Note that 91 = 7 * 13.

richardkiss··on Instead of elections, let's use lotteries
How about let voters make their choices through an election, but then the winner is chosen through lottery with a weighting towards how the voters voted? So if 40% voted for A and 60% voted for B, A would still win the lottery election 40% of the time.

This could help marginal candidates, since voters wouldn't feel like they're throwing away their votes... any vote COULD win the election.

richardkiss··on Dentists will soon be able to 3D print you a new tooth in minutes
But I need it NOW!!
richardkiss··on The Nth Fibonacci Number in O(log N)
I wrote about this last December:

http://blog.richardkiss.com/?p=398

The matrix math is easier, and the Python code is about a dozen lines.

richardkiss··on Calculating Fibonacci Numbers, Quickly and Exactly
Good catch... fixed it. Thanks!!
richardkiss··on Why Canada and the U.S. Should Merge, Eh?
As a Canadian who has lived in the US for a long time (but who happens to be in Canada at the moment to visit family), I've long thought a European-style union between the two countries would be a good idea.

I think Canadians would like to keep their own laws and culture, because they wouldn't want to give up their health care system, legal system (which for some reason involves much less litigation and fewer lawyers), and much simpler tax law.

Canadians have also mostly settled several of the large culture war issues that divide the US: they're happy with legal abortion, (mostly) illegal guns, and gay marriage, and are not interested in reopening debate on those issues.

But allowing labour visa-free access and unifying financial systems would provide great benefits. Not to mention how much I hated the moronic hoops I had to jump through to get my green card.

richardkiss··on Ask HN: Is it too late to profit from Bitcoin?
21 million BTC divided by 7 billion people yields .003 BTC per human. That's 1 BTC for every 333 people.

There are fewer than 11.5 million addresses in use, so fewer than 11.5 million people have any BTC. There is a lot more growth to come.

richardkiss··on Someone just made a $147,239,214 Bitcoin transfer
The real problem occurs when you want to buy something that costs X, and all the addresses you control have fewer than X coins. You have to join the coins from multiple addresses within the wallet, and this joining provides very strong evidence that the same user controls all these addresses. So if one address is known to belong to a particular user, we now know (more or less) that all addresses belong to that user.

This joining means that even if you've been super careful to never link address A to you because you've done sketchy things with A, if at some point in the future (even distant future) you join A with another address that the someone CAN track, they now know you own A.

richardkiss··on Why mathematicians make great comedy writers
Comic here. Don't feel bad for not being a storyteller. Most storytellers are a lot less interesting than they think they are.
richardkiss··on Why mathematicians make great comedy writers
I wish that were true.

I've performed stand-up comedy for nine years. I have an MA in mathematics from UCLA. And have been programming since I was a kid. My humor is definitely more on the clever side (http://richardkiss.com/).

Unfortunately, stand-up comedy is mostly dominated these by people trying to show how cool and selfish they are. All too often the punch line is a variant of "I'm an edgy and anti-social loser", aka the "I'm a piece of shit" school of comedy (a phrase I coined a few years back).

This is often coupled with a careless (carefree?) towards knowledge and fact, and discussion of mundane or trashy details about the comic's life that requires an audacious quantity of (undeserved) confidence to pull off, lest the audience realize they're being hoodwinked into listening to narcissistic drivel.

When most comics are not clever, the audience who show up are the kind of audiences who are not interested in clever humor. Clever people go to a comedy show and realize it's not aimed at them. This makes it even more difficult to try to do clever humor that requires the audience to think. Unless you're famous (and bring your own audience), live performances tend to be mass-market/lowest-common-denominator.

I find this very frustrating. I wish I could figure out a way to create a business model for comics whose style is not the dominant mode.

richardkiss··on Why mathematicians make great comedy writers
Great book. Tiny audience.
richardkiss··on Just Delete Me
> JustDelete.Me is a directory of urls to delete your account from web services. (Yes, I am aware how terrible that description is. If you’ve got a better one, let me know).

How about a variation of "Helping you delete your web accounts"

richardkiss··on Website Screenshot Of Every Two-letter Domain
Like how lnkvu.com works?
richardkiss··on [Stack Overflow]Design a function f, such that f(f(n)) == -n
f(f(n)) = n^2 is actually easy when you consider it restricted to 32-bit signed integers. Since it's impossible to make it work for any abs(n)>65536 (it's too big), you can reserve all those values as intermediate stopover points for the ones it WILL work for.

f(n)

     = abs(n) + 65536               if n < 65536

     = unsigned32(n & 0xffff) ** 2  if n >= 65536
Cheeky, eh?
richardkiss··on [Stack Overflow]Design a function f, such that f(f(n)) == -n
You can actually use complex numbers to solve this, but using a representation that fits in the regular integers.

https://gist.github.com/richardkiss/5857101

richardkiss··on Show HN: Preview Links Instantly. Feedback welcome.
Not a bad idea. However, by letting sites opt in, economies of scale really kick in... we deliver a few thumbnails many times (on sites where it's especially useful, since they've opted in) instead of creating a bunch randomly scattered about the web.
richardkiss··on Show HN: Preview Links Instantly. Feedback welcome.
Created with phantomjs along with nginx, a tornado server, and some JavaScript. I'd love to hear what you think!
richardkiss··on Switched away from App Engine, couldn't be happier
Me too! http://blog.richardkiss.com/?p=247