Add it to the URL when you're looking at the diff of a pull request, and the diff will ignore whitespace changes.
It can make big ugly diff look really obvious and neat.
Use with care.
Wednesday, February 26, 2014
Wednesday, February 19, 2014
Access your AngularJS services with a handy JS console script
angular.element(document)
.injector()
.invoke(function($window, Todos, Account) {
$window.MyNS = {
Todos: Todos,
Account: Account
}
});
Now you have access to MyNS.Todos and MyNS.Account in the console!
.injector()
.invoke(function($window, Todos, Account) {
$window.MyNS = {
Todos: Todos,
Account: Account
}
});
Now you have access to MyNS.Todos and MyNS.Account in the console!
Sunday, February 9, 2014
Magento 403 Forbidden at /.html
The Magento installation I've been working on has a somewhat unique property - many of the products don't have names. Magento normally uses the names to generate rewrite URLs, so that causes a weird quirk: The first product with no name gets a url like store.example.com/.html
Apache2 has an explicit DENY for files beginning with '.ht' that can be overridden in your .htaccess:
Apache2 has an explicit DENY for files beginning with '.ht' that can be overridden in your .htaccess:
###########################################
## Fixing /.html
<Files ~ "^\.html">
Order allow,deny
Allow from all
Satisfy any
</Files>
HTH someone else!
Subscribe to:
Posts (Atom)