Live data from Hacker News

What Anime CLI?

github.com

1–10 of 62 posts

Re: What Anime CLI?

#4

This is insane tech

I used to think that about Shazam. I had no reasonable idea about how it worked, so much so it really felt like magic (there's a quote to be put here, which I can't find the author here. HN help me).

My 2c of an advice: uncover the magic, learn the innerworkings of such methods. It is a much stronger and more powerful feeling than the "wow" effect you're having right now.

Re: What Anime CLI?

#6
post #4

This is insane tech

I used to think that about Shazam. I had no reasonable idea about how it worked, so much so it really felt like magic (there's a quote to be put here, which I can't find the author here. HN help me). My 2c of an advice: uncover the magic, learn the innerworkings of such methods. It is a much stronger and more powerful feeling than the "wow" effect you're having right now.

> so much so it really felt like magic (there's a quote to be put here, which I can't find the author here. HN help me).

"Any sufficiently advanced technology is indistinguishable from magic."

Arthur C. Clarke

:)

Re: What Anime CLI?

#7
The message

>NOTE: MAKE SURE THAT YOUR LINKS ENDS WITH .IMAGE_FORMAT AND DOESN'T HAVE ANY & CHARS AFTER BECAUSE THIS SYMBOL IS RESERVED BY GOLANG

Makes me a bit uncomfortable with it. Shouldn't input sanitization be one of the first things to consider when doing user-facing applications?

Re: What Anime CLI?

#9
post #2

Find the anime scene by image using your terminal This application is basically a wrapper around trace.moe

had to dig into the repo to come to the same conclusion. My first thought was, wow for your first go app you really implemented image recognition for all ever available anime? And soon realised it must just link to a web service which already does this or he has his own webservice somewhere with much more cpu power than a tiny cli app.

Re: What Anime CLI?

#10

The message >NOTE: MAKE SURE THAT YOUR LINKS ENDS WITH .IMAGE_FORMAT AND DOESN'T HAVE ANY & CHARS AFTER BECAUSE THIS SYMBOL IS RESERVED BY GOLANG Makes me a bit uncomfortable with it. Shouldn't input sanitization be one of the first things to consider when doing user-facing applications?

The file names are ingested as a string so there is no way they’re being interpreted by the Go runtime (and in fact, Go being a AOT compiles language rather than a dynamic one means it wouldn’t be possible for file names to conflict like described in the readme).

This suggests to me that the author is misunderstanding why ‘&’ causes POSIX shells to do weird things.

I think what’s happening is the author tried a web URI that had an ampersand in, Bash then background the process and the author panicked thinking the Go runtime was parsing the ampersand rather than his or her $SHELL.

Post reply on HN