sun.net.inetaddr.ttl=0
, but that didn't seem to help. It seems out of the box a Mac will cache lookups, but you can clean out the cache with the command dscacheutil -flushcache
sun.net.inetaddr.ttl=0
, but that didn't seem to help. It seems out of the box a Mac will cache lookups, but you can clean out the cache with the command dscacheutil -flushcache
We have some git repositories here at Oxford and a gitweb interface to view them. For some of our projects I was seeing:
500 - HEAD ref not found for project
It turns out this was because the HEAD
file ( {git-directoy}/HEAD ) was pointing to ref: refs/heads/master
and these projects didn't have a master branch. Changing the HEAD file to point to the correct branch fixed gitweb.
I was doing a little JavaScript templating with Trimpath today and at one point I was getting a nice error in my console of:
context._MODIFIERS is undefined
Looking through the trimpath code it turned out this was because I was passing in a string rather than an object as my context for the generation of the template. So I was effectively doing:
TrimPath.processDOMTemplate("someNodeId", "some string");
rather than:
TrimPath.processDOMTemplate("someNodeId", {key: "value", otherKey: "value"});
In my case I was getting the error because I forgot to eval some JSON before passing it to trimpath.