Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 222

Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 224

Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/public/lib.urlhandlers.php on line 65

Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 247
Tag - dotclear - JDobbelstein.dev()

Tag - dotclear

Entries feed - Comments feed

Monday, July 26 2010

A port system for DotClear

can't read SVG ? go www.getfirefox.com


(SVG source)

For the ones who favor their command line interface over graphical terminals, here comes a bundle of Makefiles and scripts to easily publish new entries on a DotClear2 blog with XML-RPC enabled.

It is loosely based on *BSD ports and the idea behind static blog generators like jekyll, which in fact I've never used so the comparison might be more about what I think they are and what I'd like to use. Nevertheless, the few features I have aimed for are:

  • automation, otherwise I would not waste whole days on the command line
  • integration with VIM, the text editor
  • pure text files, a very simple and universal way to store data. Moreover ones can manage the whole damned thing with Git.
  • extensible, as in the Unix philosophy where you combine a myriad of small programs to achieve your task

The project is available on GitHub.

Continue reading...

Friday, July 16 2010

First attempt with SVG

can't read SVG ? go www.getfirefox.com


(SVG source)

SVG diagrams are scalable. They should be a perfect fit for this elastic CSS theme. Let's try.

Continue reading...

Sunday, May 2 2010

A new version for the "Deep Blue" DotClear theme

After three whole nights and more than 30 cups of tea, my blog is using a new version of my "deep blue" theme. Key new features are:

  • Elastic CSS, this implies no more bitmap pictures :(
  • Refactoring of DotClear2 template to shift the center of the page to the left. This leaves a small opening for a side image on the right. This is a new proof that my poor CSS skills cannot overcome the xHTML tags and document structure of the original DotClear2 pages.
  • After many thoughts on the right CSS layout, I choose to use a CSS width based on em. Layouts based on page percent width are very tricky when it comes to displaying lines of code because text lines could be wrapped. CSS em attribute should garantee a similar appearance among screens and, let's dream, browsers. New pages width should be almost/at least 80 characters long. This might keep a text layout constant, even if you are zooming in/out, even if you are using different font sizes. Too wide or too big screens will be under-used. I don't care, use the space left to play with tiling window managers. Too small screens will have to go full screen and zoom out. Anyway if you cannot read 80 characters-long-line text, you should use another graphical terminal. (note: in fact, and perhaps due to limitation on the fonts, the length of text lines will never be constant. I've just tried to assure a minimal quality. See the next section for a concrete example)
  • Experimenting the CSS3 property rgba(r,g,b,alpha) to add some eye candy.
  • Experimenting another CSS3 property with the background-size declaration to scale the background image to full page height. Strangely browsers like Opera zoom both text and images, this can lead to unesthetic result.

Continue reading...

Friday, January 15 2010

XML-RPC on DotClear

XML-RPC is a protocol to remotely control a web application. Here is a short demo of XML-RPC to create, view and edit entry on the DotClear2 blog platform from the command line, using a tiny python script.

Continue reading...

- page 1 of 2