Better HN
topnewbestaskshowjobs
Log inSign up

dteoh

32 karma · joined Sep 15, 2010 (16y ago) · 18 submissions

Submissions

1.

Hayao Miyazaki-Inspired Glider Takes Flight in Japan(mentalfloss.com ↗)

1 points · by dteoh · 10y ago · discuss

comment 12y ago · link · parent

You can store the expiry time in the token itself. Then it is up to your server to validate that the token is still live. If you need to mass invalidate every token, you change the signing key.

comment 12y ago · link · parent

> shuffling a deck of cards in O(1)

How? I'm aware of Knuth shuffle which is O(n) but I can't find anything about constant time shuffling.

comment 12y ago · link · parent

> On top of that, what other per-file cross platform encryption options are there?

Boxcryptor is an option, but it is not open source.

comment 12y ago · link · parent

I think the more grammatically correct question sentences would be "kami wa doko desu ka" (as for kami, where is it?) or "doko ga kami ga (ar)imasu ka" (where does kami exist?).

> Which kami I was thinking about is for me to know and you to guess incorrectly.

Well, if you used the kanji then we wouldn't have to guess ;)

comment 12y ago · link · parent

Less computation power required to store new data.

comment 13y ago · link · parent

PG didn't write this article, Olin Shivers did.

comment 13y ago · link · parent

I use Dropbox with Boxcryptor (https://www.boxcryptor.com/). It creates an encrypted drive/folder using a key of your own choosing.

comment 13y ago · link · parent

I set up Gmail on iOS as an Exchange account and server side searching works for me.

comment 14y ago · link · parent

The Apache Harmony project has been discontinued.

comment 14y ago · link · parent

I wonder if they have plans to turn this into a universal app or if we will have to purchase another version for the iPad (not that I'm complaining about paying for a valuable product).

comment 15y ago · link · parent

Enum version:

    public enum Singleton {
        INSTANCE;
    }
Guaranteed against multiple instantiation.

Edit: the class version of the singleton example should also be made final, or I could just extend your class and therefore bypass your singleton restriction.

comment 15y ago · link · parent

The links from the newsletters also prompts for an email address, which is quite annoying.

14.

Amazon password truncation flaw for old accounts(reddit.com ↗)

11 points · by dteoh · 15y ago · 3 comments

comment 15y ago · link · parent

Discussion from yesterday: http://news.ycombinator.com/item?id=2069419

comment 15y ago · link · parent

Didn't Blizzard at one point say no one can charge for addons or put in-game directions to donate or pay for the addon? How did Curse manage to get past this?

comment 16y ago · link · parent

I bought the startup plan some 10 hours ago, sent in an email but never received any follow up.

I've just checked my Appsumo account and see that the startup plan has been downgraded to basic. Will customers after the 1000 mark get anything or are you guys planning to refund?

(I think also think it is wrong of you guys to modify invoices which is supposed to be a record and agreement of a transaction.)

comment 16y ago · link · parent

http://hg.dteoh.com/treasuremap

It's a stand-alone version of Swing appframework 1.03's ResourceMap implementation. I didn't want to use their entire framework and also needed a few extra resource loaders.