Files changed (26)
-After :strike:`almost` more than four hours of *grueling* work, my blogging platform codenamed "blaag_" works.
-I created blaag since I've been thinking about blogging, but didn't like the blogging platforms I found, because they were made of bloat with a little functionality hidden deep within. I did, however, like the idea behind hgblog_ - especially that it's based around generating the blog from rst_ using Mercurial_ hooks, allowing blogging from the comfort of Emacs. In the end, I decided to roll my own.
-The code for blaag and the entries for this instance of blaag coexists at Bitbucket, so you can view the source code and the source for the entries themselves there.
-I guess documentation should be somewhere up top as well. Suggestions on what color scheme I should use are welcome! (assuming the Disqus integration works)
- * A good editor: I prefer Emacs_, you might like something else, but trust me on this - it’ll be a humongous project that forces you to use a full IDE. If you stay clear of large web frameworks, you might never need it. I started out using PyDev since I was used to Eclipse, but now I just don’t think its worth the complexity and overhead.
- * virtualenv_: I use my virtualenvs for more than just Python these days, and setting a new environment up is the first thing I do when starting a new project.
- * pylint_: Not only does it tell you what you might want to fix in your code, it tells you if your code gets better or worse. The more unsure you are, the more you should use pylint.
- * ipython_: While REPL is nice, iPython is truly awesome for testing and prototyping. For me, its gradually replacing bash as well.
-Finally, I’d like to point anyone starting out with Python to the excellent introduction set up by Mir Nazim at `his site`_.
-When I took a look at the python.org_ `Py3k poll`_, I saw that Mercurial was on the top list of things people wanted ported (though far behind the likes of Django). Now, I don't know why others want to tie into Mercurial from code, but if a little performance overhead from using the CLI isn't critical - such as when writing hooks_, or just integrating version control in some tool_ or another, you might want to consider hgapi_.
-hgapi uses only the command line interface, and was created to be able to release autohook_ under a more permissive license than the GPL - and it's tested against both Python 2.7 and Python 3.2. It now supports most (for a given computation of 'most') operations in Mercurial, and as a bonus there are no open feature requests - so if there is something you miss, this is the time to request it!
- (document.getElementsByTagName('head') || document.getElementsByTagName('body')).appendChild(dsq);
- <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
- <p class="fineprint">Page created using <a href='https://bitbucket.org/haard/blaag'>blaag</a> and abusing <a href='http://docutils.sourceforge.fnet/' target='_blank'>docutils</a>. <a href="/rss.xml">RSS Feed</a> generated using <a href='http://www.dalkescientific.com/Python/PyRSS2Gen.html'>PyRSS2Gen</a><br/> Copyright Fredrik Håård <fredrik at the server named haard dot se>.
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- (document.getElementsByTagName('HEAD') || document.getElementsByTagName('BODY')).appendChild(s);