Posts about Writing (old posts, page 6)
Thinking about this blog.
I suppose it happens to everyone once in a while, and it has happened to me often in the past, but I am thinking if I should keep on writing this blog, or if some large change is needed.
Here are some random things from my head:
Almost noone reads it. Really. It has less than 40 subscribers. That's pathetic for a blog that has content for over 7 years :-)
Maybe I should post in spanish, or at least bilingually.
Maybe I should write more features. When I write a longish piece and announce it, there is a respectable traffic surge.
On the other hand, I enjoy writing it. And it's really very little effort (specially now, with BartleBlog ;-)
Maybe it should be more focused in one area, make it a python programming blog, or a tutorials blog, or something like that.
-
But I am not a focused person. I am a generalist. This week I have worked in the following things:
VoIP
Django
PyQt
Linux sysadmining
Firewall/Proxy integration with windows clients
Consulting in the most generic sense, sitting with a company's IT staff and thinking about their situation.
Learning PyGame
And this was in 5 days of work. If I listed what I have done this year, it would take me 500 items. I am broad, how could my blog be narrow?
Maybe it's just not interesting? Or badly done?
Is it too nerdy? Is it not nerdy enough?
I have had a blog with a small readership for 7 years, why is it bothering me now?
If I stop, it doesn't matter, I can always pick it up again later when I feel like writing.
So, there. You, the 40 guys, comment on it if you want ;-)
An experiment
I stumboed onto a site where you write and they are supposed to share the advertising revenue with you.
So, I decided to do an experiment. I created an account and am posting there using a character.
This character is the most annoying, cranky, acid guy I can be. It's my evil side. For example, my first post was about how everything on the site is garbage. My second one is a specious argument about how noone is special.
Let's see where it leads...
BartleBlog change: Mako Templates
Since the very beginning, BartleBlog has been using CherryTemplate for its output formatting needs. I like it, because it's very simple.
However, it had grown rather cumbersome.
Specifically, most pages in a blog are sort of a page template with a body template inside (the main content).
To do that on CherryTemplate, I used a two-pass approach: generate the body, then pass it as parameter to the page template.
Which is a pain in some cases because you end basically having to do a rendering function for each kind of page, or some crazy-evil function (what I did).
Exploring the different python template engines, I ran into Mako and decided to give it a whirl. It looks good.
The approach is a bit different, it is much more powerful, but you can still use it simply if you can.
And the main feature was template inheritance. Using that, no more inner and outer templates, baby!
Oh, and performance is better:
Cherry real 31m44.732s user 21m18.336s sys 2m7.628s Mako real 24m54.472s user 19m9.508s sys 1m56.375s
This is for completely rerendering the whole 7 years, 574 posts, 40 static articles, 14 category blog, and there is tons of optimizations to be done.
BTW: this is how you rerender the whole blog:
New Bartleblog Feature: Menu Editor
Took a while to implement, but BartleBlog finally got a functional menu editor:
Right now, it only works with the mootools-based menu gadget, but I will start working on the yahoo menu version in a moment.
The only thing not working is the preview button, because it needs more support on the backend side.