News for hackers. Stuff that matters.

richardkiss

Re:'10 > 64, in QR Codes on Tuesday April 02, 2024 @09:03PM (#39912575)
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.

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
Re:Sl: a mirror version of ls on Friday March 30, 2018 @01:58PM (#16718331)
This didn't work on Mac OS due to "wc -L" so I whipped up a python version.

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

Re:Sl: a mirror version of ls on Friday March 30, 2018 @01:55PM (#16718303)
This didn't work on Mac OS due to "wc -L" so I whipped up a python version.
Re:Is this prime? on Tuesday March 08, 2016 @11:05PM (#11250847)
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.

Re:Instead of elections, let's use lotteries on Tuesday May 19, 2015 @08:44PM (#9574039)
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.

But I need it NOW!!
Re:The Nth Fibonacci Number in O(log N) on Wednesday December 17, 2014 @05:10AM (#8761777)
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.

Re:Calculating Fibonacci Numbers, Quickly and Exactly on Saturday December 28, 2013 @03:25AM (#6974422)
Good catch... fixed it. Thanks!!
Re:Why Canada and the U.S. Should Merge, Eh? on Saturday December 07, 2013 @12:58AM (#6865648)
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.

Re:Ask HN: Is it too late to profit from Bitcoin? on Saturday November 23, 2013 @03:00AM (#6785630)
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.

Re:Someone just made a $147,239,214 Bitcoin transfer on Saturday November 23, 2013 @01:01AM (#6785420)
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.

Re:Why mathematicians make great comedy writers on Friday October 18, 2013 @06:30PM (#6574416)
Comic here. Don't feel bad for not being a storyteller. Most storytellers are a lot less interesting than they think they are.
Re:Why mathematicians make great comedy writers on Friday October 18, 2013 @06:30PM (#6574414)
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.

Re:Why mathematicians make great comedy writers on Friday October 18, 2013 @06:14PM (#6574352)
Great book. Tiny audience.
Re:Just Delete Me on Friday August 23, 2013 @04:48PM (#6266166)
> 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"

Re:Website Screenshot Of Every Two-letter Domain on Monday August 05, 2013 @05:05AM (#6159083)
Like how lnkvu.com works?
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?
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

Re:Show HN: Preview Links Instantly. Feedback welcome. on Friday June 21, 2013 @06:02PM (#5921290)
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.
Re:Show HN: Preview Links Instantly. Feedback welcome. on Friday June 21, 2013 @05:38PM (#5921178)
Created with phantomjs along with nginx, a tornado server, and some JavaScript. I'd love to hear what you think!

Older »