Resource interpreted as stylesheet but transferred with MIME type text/html (seems not related with web server)

i’d like to start by understanding the problem Browsers make HTTP requests to servers. The server then makes an HTTP response. Both requests and responses consist of a bunch of headers and a (sometimes optional) body with some content in it. If there is a body, then one of the headers is the Content-Type which describes what … Read more

Disable same origin policy in Chrome

Close chrome (or chromium) and restart with the –disable-web-security argument. I just tested this and verified that I can access the contents of an iframe with src=”http://google.com” embedded in a page served from “localhost” (tested under chromium 5 / ubuntu). For me the exact command was: Note : Kill all chrome instances before running command The browser … Read more

What’s the difference between console.dir and console.log?

In Firefox, these function behave quite differently: log only prints out a toString representation, whereas dir prints out a navigable tree. In Chrome, log already prints out a tree — most of the time. However, Chrome’s log still stringifies certain classes of objects, even if they have properties. Perhaps the clearest example of a difference is a regular expression: You can also see a clear difference … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)