Posts tagged 'coding'
Mercurial: hg --config option
Friday, 24th April 2009 by Toby
Incredibly short and simple, but I just couldn’t find anything about the proper usage of the hg --config option for Mercurial and now that I’ve worked it out I might save someone else forty-five seconds of life by posting it here.
Let’s say, like me, you’re stuck behind an authenticated HTTP proxy and have the host and username set up in your ~/.hgrc file, but don’t want to store your password in that file, your hg clone line should be:
hg clone --config http_proxy.passwd=[_password_] http://[_respository-URL_]/ [_working-copy-name_]
In other words, it’s section.name=value, to use the same terms as man hgrc.
Comments
Any mug can have a blog
Sunday, 1st February 2009 by Toby
Modern frameworks have become so advanced and easy to use. I just rewrote this blog in Django, to include the features that I want – which is not many – and it took me most of one morning, which was actually less time than it took to get Habari running on my server. Thanks to Django, any mug can have a custom-made blog inside of a few hours.
Read more
Safari doesn’t display valid XSLT and XML!!
Wednesday, 27th February 2008 by Toby
Actually, it’s not Safari’s fault. This has happened to me, and has sat in the too-hard basket for a few weeks, but finally I decided to fix the problem. It’s actually really easy.
Read more
Toby's First Law
Saturday, 9th February 2008 by Toby
If a section of code does not work, but after looking at it you’ve come to the conclusion that it simply has to work, it’s more likely that it’s a different section causing the problem and the bit you’ve been staring at the past three hours is fine.
Read more