Setting CORS (cross-origin resource sharing) on Apache with correct response headers allowing everything through

Once in a while you need to make a cross-domain request from Javascript, this is something the browser very much dislikes. I'm no expert on CORS, and I feel that all the documentation on it is pretty bad. But I thought, "Anybody can google", and so I did.I started off with just adding the Access-Control-Allow-Origin header in my Apache configuration, thinking that it'll solve my problems. I also decided to set it on wildcard, allowing anything to request resources.[code linenumber="false"]# In my virtualhost configHeader set Access-Control-Allow-Origin "*"[/code]Restart server, reload page, an...

Read more

Developers Without Borders – A Collaborative Workflow

As always with projects, the most important thing is functional communication between all parties involved. Usually you sit near or live near the rest of...

Read more

Pixel accurate collision detection with Javascript and Canvas

I’m currently building a game where I need yet again collision detection. I usually go with the easy and somewhat efficient box-model collision detection. The...

Read more

SourceTree for Windows with SSH key files

I’ve generally avoided SSH key pairs, and I’ve been able to do so for quite a while, until now. I’ve used Tortoisegit and Github for...

Read more

Monorun for Windows Phone

When you want to test out a new language or a new development process, monorun is a perfect candidate for porting. The reason is that...

Read more

I’m flying an airplane!

Paulina got me a rather strange gift for my birthday, a small trip in a small airplane. I had initially thought that I was only...

Read more

CPU intensive javascript computations without blocking the single thread

Lately I’ve been working on a javascript heavy application. When the user enters the page, a lot of calculations need to be done before the...

Read more