Better HN
topnewbestaskshowjobs
Log inSign up

chadscira

273 karma · joined Aug 24, 2012 (14y ago) · 228 submissions

hnchat:KgFSVAzP8f0I8GMEOQ7U

https://github.com/icodeforlove

Submissions

comment 9y ago · link · parent

Yea but when using promises with async/await its very beautiful.

    await asyncFuncOne();
    await asyncFuncTwo();
No more weird water-falling, and finally proper exception handling. The only gotcha is the fact that we cant awaits at the root of a module, and we need to wrap it in a async function.

comment 9y ago · link · parent

If they don't have X-Frame-Options the attacker can also just use a 1x1 iframe on a popular website or shitty ad network to trigger that page to load

comment 9y ago · link · parent

I don't know if I agree with this.

Even with paper ballot we still have to trust the people/devices counting the votes.

As an American citizen theres no website I can go to and check my vote. How do I know it was even counted, or properly registered.

comment 9y ago · link · parent

Yeah, but its a pain in the butt to iterate when doing that, especially when you just want to dump off clipboard, or drag & drop.

Also wanted an excuse to play with a few browser features :P.

comment 9y ago · link · parent

This was made to make playing with Data URI's much easier.

I find myself often needing a quick way to generate a Data URI when playing with files on jsfiddle, or codepen (due to CORS). So I thought it would be nice to have a website that locally stores those files.

This was thrown together in a couple of hours (using react/mobx), and inspired by [0] "The XSS Game By Google post". It turned out that quite a few people didn't know that you could use URI's for things that were not images.

If you have any suggestions feel free to voice them :)

- [0] https://news.ycombinator.com/item?id=13021869

6.

Show HN: ICanHazData – Data URI Swiss Army Knife(icanhazdata.com ↗)

257 points · by chadscira · 9y ago · 5 comments

comment 10y ago · link · parent

I made this because I was getting upset with the lack of a solid solution that did everything.

It locally stores the files as well, click on the hamburger menu to see them.

- drag & drop

- manual upload

- paste

- custom file creation

- local storage

8.

Show HN: Data URI Generator(icanhazdata.com ↗)

4 points · by chadscira · 10y ago · 2 comments

comment 10y ago · link · parent

Oh, awesome. Hopefully they drastically reduce it.

comment 10y ago · link · parent

They are charging us too much for time!

We need the gates foundation to donate a billion, that should get us 31 years on the clock.

comment 10y ago · link · parent

Awe, hey we end up with more than a empty hole! What about all of the dead code!

comment 10y ago · link · parent

Also those jobs wont be around that long. Every year we have quite a bit of progress on Self-Driving Cars.

comment 10y ago · link · parent

Seems like in chrome you can go much higher!

Here is a example of 5M

    data:text/html,<script>window.location='data:text/html,<!--'+new Array(5000001).join('a')+'!--><script>document.documentElement.innerHTML=window.location.protocol+\':\'+String(window.location).length;</'+'script>';</script>
I tried 110Mb and it actually worked as well! I'm not sure about the real limit.

You can store MASSIVE amounts of data in these things. It also seems to eventually break the url display and reverts to about:blank. It still retains protocol integrity though.

comment 10y ago · link · parent

I did

    data:text/javascript;base64,YWxlcnQoMSk=
I didn't know you could do stuff like this (not for XSS)

    data:text/html,<script>alert(window.location)</script>
Cool, you can store a whole website in a URL now.

comment 10y ago · link · parent

We currently just rent a few big boxes on OVH, and manage them via Rancher.

You should checkout ranchers channel for some videos: https://www.youtube.com/channel/UCh5Xtp82q8wjijP8npkVTBA

It's mind-blowing that they offer this for free, considering the impact it has.

12345
8