Posted by fordfrog | Filed under Tools
Long time ago I coded web application that generates random words. It supported generating of random words by template. Over this weekend, I rewrote the application completely to offer much wider range of generating possibilities, and also improved overall look of the website. If you wanna see how it ended up, you can click at StartNet Word Generator. If you’d have any useful comments on the website and/or application, just leave it below in comments. I hope you’ll find the application useful, be it for your business or personal needs, or just for fun 🙂
Posted by fordfrog | Filed under Programming
Often it happens to me that I move/rename some file and while doing that, I also change content of the file. When you issue regular
hg diff, the output diff contains whole file with all lines added, which is not very useful in this case.
I wondered whether there is a way to display useful diff for moved/renamed/copied files in Mercurial. The solution was not that obvious (at least for me), but Mercurial really can do this. The command to see the diff for these files is
hg diff --git. This way you will get diff against the last committed original file (the parent) which is more useful in this case than the default output.
In case you want to use git diff format by default, put following either in your global Mercurial configuration file or in your repository .hgrc file:
If you then want to use non-git diff for single run, issue following command instead, which overrides diff.git configuration from configuration file:
hg diff --config diff.git=0