Hacker Newsnew | past | comments | ask | show | jobs | submit | sanchez_0_lam's commentslogin

Just a simple exploration of a few plotting approaches.


Thanks for clarifying the GDPR error.

Also, to be clear - I don't see Google as inherently bad. My opinion here is just about Google Takeout.


Right, that seems bad. I'll fix this.


Thanks for clarifying the GDPR thing. I'll update the article.

As for the way it works for me - I've tried multiple times and it always fails - but I backup to other cloud.


That seems nice! Will try this approach.


You're right, that it's not the best. It would be better to have an incremental thing. For me it's just the easiest thing to work with.

But, as stated in the blogpost, I'll check gphots-sync in near future.

The problem with that kind of approach is that I need to setup my own infrastructure of some kind to run that sync app on it. With Google Takeout I can just do that to external vendor.


Ok, sorry for that. Will correct this in post.


Ouch, that's bad :D Won't store too long texts.


It is at least compressed to make the most of the limit


base64 is the opposite of compressed. Does it actually apply compression before base64-encoding? Doesn't really look like it by watching the URL.


What gave you that impression? I tried spamming "a" and the URL indeed did not get longer.

Reassuringly:

   function serialize(value) {
        if (value === '') { return ''; }
        const data = new TextEncoder().encode(value);
        const compressed = pako.deflate(data, { level: 9 });
        return Base64.fromUint8Array(compressed, true);
    }


it does get longer. rather than typing in aaaa copy and paste it and copy and paste that to grow exponentially


It’s actually compressed. It uses https://github.com/nodeca/pako and then applies base64. Try entering hundreds of "a" and you’ll see that the base64 doesn’t really get much longer.


Any thoughts how this works under the hood? Like @gurjeet said, every keystroke is a new url. But then how all this is stored? Will it scale? :D


It's stored in your history stack. I spent 15 seconds pressing the back button slowly becoming more and more horrified as I watched my characters disappear one by one.

You can see how it works for yourself by opening your browser devtools, opening the JS console, and typing

    window.location.hash = "test"
You should see a "#test" pop up at the end of your URL. Pressing back will not change the page, but will make that go away.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: