2011

Automatic HTML numbered headings

       248 words, 2 minutes

Quoting W3C, “(…)A heading element briefly describes the topic of the section it introduces. Heading information may be used by user agents, for example, to construct a table of contents for a document automatically(…)”. When write a bunch of HTML text, I usually use heading elements to separate chapters and sections. The thing is, by default, those headings aren’t numbered. And when the article is quite long, this may lead to a “where am I” sensation. Here’s a quick way to automatically generate numbered heading elements from standard HTML and CSS code.

Continue reading...


Add a Table of Contents in WordPress articles

       79 words, 1 minutes

I use to have TOCs in articles when this site ran DokuWiki. But by default, WP doesn’t provide this ability. After a few Googling, I found the Table of Contents Plus plugin. I choose this one for two main reasons: it can automatically insert a TOC in WP since “X or more headings are present” ; it has various looks embedded to match your theme. You can have a look at a rendered example here .

Continue reading...


Create a better HTML website

       1583 words, 8 minutes

We’ve recently seen how to create your corporate HTML website with only a few static pages. In fact, you may use this technics to create any website. If you already read the previous article, you might remember that there is a small issue with dynamic content. As every pages where simple modified copies of each other, any modification in the common content has to be duplicated in every pages. This time, we’re gonna see how to solve this issue by using a include feature. This will require a bit a programming ; but I’ll try to use as much as possible and to explain far enough so that anyone can use it.

Continue reading...


Restore Aperture library in Desktop Background

       137 words, 1 minutes

Once in a while, I reinstall OSX. I have both a SSD for the system and a SATA drive for /Users. This way, I can recover my personal files in only a few seconds. The problem is, when I do that, the Aperture library disappears from the desktop background selection. I found a tweak on the Internet which states that you have to go to Aperture’s preferences, in the “Previews” section and unset/reset “Share previews with iLife and iWork”, restarting Aperture between switch.

Continue reading...


Change user shell on Mac OS X

       50 words, 1 minutes

I am used to using ksh on my *BSD box. I have configured a tweaked .profile with colors and aliases. I already used it with the default bash. But today, I want to switch to ksh on the Mac too. And that’s quite simple: # chsh -s /bin/ksh That’s All!

Continue reading...


6 / 24