Nikola 5.1 released.
Nikola , my static blog/site generator. Details, changelog, etc, at Nikola's siteNikola 5.1 released.
Nikola , my static blog/site generator. Details, changelog, etc, at Nikola's siteCreating a Theme for Nikola From Scratch (almost)
There is some documentation about creating themes for Nikola, but maybe a tutorial is also a useful way to explain it. So, here it is. I'll explain how to create a theme (almost) from scratch. Alternatively, you can take an existing theme and modify only parts of it via inheritance, but that's for another document.
I will try to create a theme that looks like Vinicius Massuchetto's Monospace Theme.
Nikola Feature-by-request: tag cloud!
I asked for feature requests for Nikola my static site generator. I got some. One was from long-time user Kay Hayen, so I just couldn't say no.
He asked for tag clouds. Look:
Cute, isn't it? And it's real, actual tag data from this very site. With links!
How it's done:
Nikola generates a JSON file that has the cloud data (tag name, size, link), and that's processed by JQuery and tagCanvas and ... well, it works.
You have to add jquery.tagcanvas.min.js somewhere and embed a whole pile of raw HTML (see here for details) but hey, it works.
Hope you are happy, Kay, you made me code javascript, dude ;-)
It's probably rather "easy" to make it use any of these instead of tagCanvas if anyone is so inclined.
New in Nikola: slideshows (work in progress)
This is nowhere near ready for release, but why not show it?
Nikola can now turn this:
.. slides:: /galleries/london-paris-2012/P1000198.JPG /galleries/london-paris-2012/2P1000235.JPG /galleries/london-paris-2012/3_P1000298.JPG
Into this (which will not look good in RSS):
Missing:
This is based on slidejs which seemed neat, but I am not 100% sure it's the way to go (it seems to look bad if the images are not all the same width, for example).
Why Use Something Else?
I wrote a static site generator, called Nikola a while ago, and it's starting to get some adoption and contributions.
I think it's a fairly nice piece of code, to be honest, and it pretty much does everything I need. On the other hand, it's fun to code with.
So, if you are using another static site generator, or are researching into it, or just have opinions about it... what's missing? What should it have that it doesn't have now?
No feature too small, no idea too crazy, please share! I promise to make a good effort to implement any that seem like a good idea :-)
New in Nikola Master: Interactive Console
Inspired by Django's interactive console, I added one to Nikola, so that if you want to play with its internals, you can do it easily. Here's an example session:
$ nikola init pepe A new site with some sample data has been created at pepe. See README.txt in that folder for more information. $ cd pepe $ nikola console Scanning posts . . done! You can now access your configuration as conf and your site engine as SITE >>> [p.title('en') for p in SITE.timeline] [u'Listings Demo', u'Nikola: it generates static', u'Welcome to Nikola', u'A reStructuredText Primer', u'A reStructuredText Reference', u'Sample Nikola Config File', u'The Nikola Handbook', u'Theming Nikola']
Have fun!
Son Saqueadores, no Idiotas.
Ayer estaba pensando acerca del saqueo aniversario del otro día. No me sorprende que haya saqueos a supermercados el 20/21 de diciembre porque bueno, habrá quien quiera conmemorar, organiza un saqueo con los amigos, esas cosas.
Pero hay algunas cosas que no entiendo.
Hasta donde sé, robar un supermercado no es un delito federal. Es una cosa que la maneja la policía de la provincia. Entonces, el que no hizo nada mientras saqueaban en Villa Gobernador Gálvez fue el gobierno de Santa Fe ¿no?
O sea, un gobierno opositor al gobierno nacional es el que le da las órdenes a los policías que miraban mientras se robaban las cosas. ¿O acaso esperan que haya gendarmes cerca de cada supermercado del país y vayan corriendo a reprimir? ¿Si eso pasara, no sería un atentado contra la autonomía de las provincias?
FELICITACIONES SEÑOR CHORRO. Una de mis molestias constantes con el chorro promedio es la falta de ambición. SI vas a robar, la pena es la misma no importa lo que robes, mas allá de cierto punto. Robar $1000 o $2000000 es más o menos lo mismo.
Si tenés hambre, robate 1 (una) bandeja de churrascos y un LCD. El churrasco es para morfar esta noche, el LCD lo vendés y comés un mes (aunque habría que analizar el precio de reventa de un LCD comparado con, digamos, 25 kilos de lomo).
Pretender que haya una "nobleza" en el tipo que está choreando un super es cosa de locos. Como decía Olmedo, si lo vamos a hacer, vamos a hacerlo bien. Si vas a chorear, choreá bien, choreá con ganas, y sé un excelente chorro.
En fin, que como casi siempre, las cosas que la gente opina no me cierran mucho.
Windows is *HARD*
I am on vacation, by the sea. So, I don't have my usual internet connectivity. I decided to buy a 3G modem and decided purely based on price, ending up with a ZTE modem provided by Claro.
On Windows, it works well enough:
I tried it on windows first because I assumed it would work on my wife's computer, and I could do an ad-hoc wifi network so I could connect mine. Well, no.
So I tried it on Ubuntu. It does work too:
And yes, I can do an ad-hoc connection and provide service to everyone else. Plus I don't have an unclosable window laying around all the time.
Walking or Running in The Rain
I always am amazed by people suggesting that walking in the rain keeps you dryer than running. Just saw an answer to this. Check it out, it's nice:
I have also seen it debunked experimentally, by MythBusters. But let's try a different approach: intuitive math. Intuitive math is tricky because it usually is wrong, but hey, it's fun.
Apparently, we all agree that how wet you get correlates to your speed. Otherwise, the question is pointless because the answer is "walk or run, but take an umbrella", while true, is cheating, right?
So, for those slower-is-better proponents: go and walk very, very, very slowly. You may notice that you end completely soaked before you finish walking. If you didn't, you are still walking too fast.
On the other hand, if you were to go at 1000000 km/h we all agree you would only get some drops in your frontside, right? Which would not soak you. Right? And most importantly, is constant regardless of your speed, because it's just the average amount of water contained in a man-shaped prism from point A to point B, and you get that water in your front if you go slow anyway.
Assuming the speed/soakiness curve is roughly monotonous, it's clear that the maximum soakiness is when you go slowest.
If it's not monotonous, then the question is roughly unanswerable, since it would involve there is an optimal speed and it's worse to go either faster or slower than that, which means the answer is something like "jog" which is not what you want.
So, go fast, go dry.
Nikola Wordpress Importer Improvements
Thanks to having users trying to actually import data from wordpress, the wordpress importer plugin for Nikola, my static site generator got a couple of new features.
It will try to maintain your URLs via redirects
If your post was in /2012/1/2/a-post/ and now it will be in /posts/a-post.html it will create a redirect from the former to the latter.
url_map for comment migration
It will create a CSV file containing the old,new full URLs so that you can move your disqus threads to the right places.
Also, master works with docutils 0.10 which broke in the last release.
For these reasons, there will be a 5.0.1 release today or tomorrow.
PS: if you want to see a few sites using Nikola, now you can.
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!