Archive for September, 2011

Iconia Tab Android 3.2 Update!

Finally the android 3.2 update has arrived, this time the update process was much smoother then with 3.1, with the last one I had to do a restore to original 3.0.1 version and then update clean, now it just worked.

I haven’t yet looked at all the changes but at least they improved the obvious ones, youtube no longer crashes like crazy, and in general the system seems more stable.

Another visible thing is the app compatibly, apps designed for smaller screen now have an option to resize adequately to tablet sizes, it works well enough.

Other than that I don’t see many changes, we’ll see what brings the 4.0 Ice Cream Sandwich release, I hope Acer pushes it too to the current generation of it’s tablets.

, , , ,

No Comments

Static site from template files

Recently while working on a full-blown TurboGears based CMS for our main site it got to me the idea of creating a script to generate a simple static site from a series of Jinja2 templates, simple enough, uh? well at first I looked for a few alternatives but rapidly gave up and ended working on something of my own, as I deemed the task as a mundane and simple thing to do, it was faster creating a script than looking for one and see how it works.

Long story short, it wasn’t really that simple, there are many things to consider, such as paths, if you want to preview the output locally, relative paths will not work very well; I added a switch to my script to transform paths and a function to use on the template, suddenly I found myself adding more things like this, such as a variable for the name of the template so a menu template can check which is the current page and act accordingly.

As far as now is not that complex but a pretty handy script you could easily modify on your own, I posted the code on github:

https://github.com/clsdaniel/templatesite

As next move I would like to add a daemon mode or monitor mode so it will rebuild the output when it detects a change on the files, support for managing other files is also needed, opening the browser to preview after build would be nice, etc.

, ,

No Comments