Archive for May, 2010
Refresh Current Page in JavaScript
It’s more annoying than it sounds. You could do the classic:
window.location = window.location; //refresh lol!
But you’ll get screwed if there is a fragment, like, say, http://example.com/index.html#section1. The page won’t refresh. Or rather, it will, but browsers won’t send a request to the server if the url contains a fragment. It will just try to navigate [...]
May 9, 2010
Posted in: javascript, web development
2 Comments
Subversion, Apache, nginx and “Entity Too Large”
tl;dr: add client_max_body_size 10m; to your nginx vhost.
This one took me a while to track down. My brother uses my subversion repository, and he was trying to commit a 1MB flash file. The TortoiseSVN error he got back was:
This was a bit perplexing. I figured it was some sort of mod_dav setting I had [...]
May 4, 2010
Posted in: apache, nginx, subversion
No Comments
Seven CSS Tricks No One Should Ever Have to Memorize
CSS is kinda cool, or at least it would be if everybody used the same browser. Instead, they don’t, so doing stuff with CSS is mostly impossible. There are few super annoying hacks and tricks that I use every six months but can never remember, and then end up scouring the internet looking for an [...]
May 1, 2010
Posted in: web development
2 Comments
