“An idle mind is a devil’s playground,” the scriptures say — and this is exactly true with me as I tend to think of bad thoughts during the times where I don’t really do anything (like sleeping). This is the reason why I want to waste my time doing things rather than doing none (I just had another episode of bad thoughts that makes me want to die).
I’ve just had a short talk with my brother last night, and he motivates me to do things — such as parsing data from the Hummingbird API (which won’t see the light because they don’t have full CORS support in their servers; see Sidenote).
Sidenote: Hummingbird API and CORS
CORS (Cross-Origin Resource Sharing) “is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the resource originated.” [Mozilla Hacks]
In this case, CORS allow me to get my anime data and post it in my personal website pronto. The context: Hummingbird has their API hosted on their website and on Mashape, and I find the former much easier.
Only the one hosted on Mashape has CORS, but I find Mashape difficult to understand at this moment.
As of the moment, the CORS that the former has is restricted to (1) their forums, (2) their community and on (3) localhosts at port 4000, which means that I still won’t be able to access the data and slap it in to my site directly — in short, I need to find a tool that lets me do it or make one.
I really appreciate if there is a simpler way to do this, but for now, I have to learn a lot about these things.