Category: Computers

Alt+e, g, a

This is the “shortcut” sequence of keys in order to get the list of changes in a text document in OpenOffice.org. It works very nicely with MS-Word documents, a useful feature when you are obliged to exchange work with colleagues, mentors, etc. who only use the proprietary word processor.

Part of screenshot of the track list in OOoIMHO, the only problem is the way the list of changes is shown to the end-user in OpenOffice.org: as in other word processor software, changes are underlined in a different color for each contributor and a small hint tells you what happened to the hovered block of text, who did it and when; unlike other word processors, you can’t accept/refuse any change by right-clicking on it (you have to do it from the separate window). I do not find this intuitive and, sometimes, annoying …

Although I really appreciate the list of all the changes (notably for bulk acceptance/refusal), I think the end-user should also have the opportunity to accept/reject a change, once at a time, with a right-click of the mouse or any other means (keyboard shortcut e.g.). This is, I think, especially important when you are not reviewing the last version of a document, when a reviewer ask questions in the text (you can’t neither accept neither reject, you have to manually edit the text) or when you still do some modifications to modified text.

Talking about modifications of modified text, OpenOffice.org doesn’t update the list of changes when you modify your text while this list is open. You have to close the list and then re-open it to see your new changes.

My “dream functionality” would be that, next to the actual list of changes, the end-user would be able to:

  • either right-click to obtain a pop-up menu showing the accept and reject options
  • either use two keyboard shortcuts: one for acceptance of the modification under the cursor

I already looked for such add-on on the web, without success. If anyone finds something interesting, let me know …

GNU tools on MS-Windows

When you are used to work on a computer with GNU/Linux and are obliged to process your files on a MS-Windows system for some time, the GnuWin32 project can come in handy. They provide a lot of command-line tools from the GNU collection (sed, iconv, tar, bzip2, … see the whole list of packages they provide).

This evening, I needed to convert a lot of files from UTF-8 to iso-8859-1 (because it seems no decent Windows text editor can correctly translate text between these two encodings). Apparently, the GnuWin32 project removed the recode tool. But it can be easily replaced by iconv. With iconv, it’s done with:

iconv -c -f utf-8 -t iso-8859-1 utf8file.txt > iso8859file.txt

Photo credit: “In the beginning…it was the command line” by Dick Mooran on Flickr

Two nice schemes about Open Source

I don’t know how I stumble upon this report of a conference (English translation) from Avi Alkalay but I liked 2 schemes he showed.

In this first scheme (left), I like the way it reminds you that “Open” is not only about software, source code. But now that more and more people are aware of the benefits of Open Source software, it’s interesting to also stress the other sides of openness: open standards (like OpenDocument), open hardware, open architecture.
In the second scheme (below) is about the trend from private control / closed access to public control / open access (apparently from Rebecca Henderson; it could be interesting to find this whole presentation from 2004).

There is a third scheme in Avi’s post but there is something I don’t like in it, although it’s visually appealing. Although I understand that proprietary and open innovations should collaborate for the time being, I think that Open Innovation is the model to follow. Moreover, the “speed-to-market” criteria is, imho, better in the Open Innovation model (but maybe I should see Rebecca Henderson’s presentation).

"Word processors" are not meant to be usable

(… at least for large documents)

Two week-ends ago, I spend a whole day trying to apply a consistent style to a thesis. I spent hours trying to be obeyed by a word processor because it would systematically change the style of some element, somewhere in the 100-or-so pages. Including figures was also a nightmare: we had to keep an eye on the (limited) memory of the computer (otherwise we got unexpected screen freeze, a lot of noise from the hard disk (paging), etc). Generating a bibliography was also another daunting task, even with the use of a dedicated reference manager …

Now I don’t know if I have to blame what we call “word processors” or human laziness …
First, these pieces of software are not really “processing words”. Grep, sed, vim, LaTeX, XSLT… actually are processing words, transforming them from a raw text format to something else, possibly transforming the whole text into something more readable on paper.
Second, word processors tend to let people write whatever they want, in whatever style (some word processors even retain the different style of things pasted into the text), in whatever order. In this aspect they resemble mind mapping software. But if a draft of experiment can be written like this, a good thesis needs a good planned underlying structure (imho). And current word processor software doesn’t push you to do this.

In this aspect, LaTeX may have a steep learning curve but it somehow force you to think about the structure before adding text and embroideries. Changing the style is only done in one place and is easy (once you know the command to type). I already used LaTeX for other reports, presentations and thesis and will certainly keep it for my Ph.D. thesis this year.

Performance freeze in Windows Task Manager

I don’t know if it’s a bug or a feature (*) but the Windows Task Manager doesn’t seem to refresh its graphs when we are moving its window. It’s barely noticeable when you usually move it (**) but you can spot this behaviour when one of your other windows is freezing.

Freezing performance graphs - Windows
(larger screenshot)

(*) I know this post is nearly useless but I’m tired of waiting for this freezing software …
(**) I guess it refreshes its graphs between window movements: a human being can barely notice if Windows stops moving the window for 1/100th of second to refresh

One more Open Source software at ULg

ExamsAfter the promotion of Open Access (see Bernard Rentier’s blog) and a history of publications in Open Access journals (see this last article from the Cyclotron Research Center in PLoS), the University of Liege is slowly slowly publishing Open Source software too.

The last free software published is exams, an assessment management system (for on-line exams, …). They chose the GNU GPL 2, apparently without the possibility to upgrade to version 3 (I don’t know if it’s deliberate or not). And you can download the source code here.

What is even more interesting is that they provide a demonstration website if you want to test it in a nearly real setup (as examiners or students ; only in French). And the demonstration system is hosted by a commercial hosting company (OVH), indicating that it could be possible to use this system on very common platforms (only PHP/MySQL are required).

Now, we can dream of other software from the ULg released as free software, a subversion repository and a users/developers community around exams

P.S.: of course, we already did all that 😉 since we published Gemvid in an Open Access journal (the Journal of Circadian Rhythms) and published it along with a lot of other tools as free software. But I don’t count this as an institutional push towards free software since it was mainly my decision and the development didn’t involved other people.

Vertical badge

vertical number of days without Belgian governmentI was writing the next version of my badge counting the number of days without Belgian government when Laurent added his comment requesting for a vertical version. You can see it on the right.

Since the original release, I also added translation of the sentence in Dutch and German (after all, Belgians are speaking 3 official languages). And I approximately centered the text on the vertical version (I personally prefer the text on the right for the horizontal version but you can easily modify this by yourself).

As usual, here is the HTML code to include this vertical version in your page, blog, etc.:

<img src= "http://www.epot.org/belgov/belgovv.php" alt="belgov counter on epot.org" />

And here is the source code (for both version): belgov-0.3.tar.gz (20kb).

How many days without governement?

Now it’s not a secret anymore: more than 148 days passed since we, Belgians, went to vote (it was on the 10th of June 2007) and we still don’t have any government!

If you want to count the numbers of days without Belgian government, it’s easy: just have a look at Belgian newspapers. Or … have a look at the counter below (in French, Vlaams or German) 😉

belgov counter on epot.org

And if you want the same on your website or blog, it’s very easy, just copy/paste the HTML code below:

<img src="http://www.epot.org/belgov/belgov.php" alt="belgov counter on epot.org" />

Enjoy!

P.S. For those who could be interested, here is the source code: belgov-0.2.tar.gz (6kb). It’s written in PHP and under the GNU GPL (so it’s free!). Each small animal (Lion of Flanders or Rooster of Wallonia) represents 2 days without government. On the last line, there is a small gradation of transparency.

P.P.S. If you want to specifically support the unity of Belgium (because quite a number of politicians and citizens want to split Belgium), Pilok has a “I love Belgium” banner. Here I just wrote a counter of days without government, whatever your opinion is about Belgium.

Edit on Nov. 7th: I added translations in Vlaams and German for the line on the bottom.

OpenSocial, a step further towards a "society of social networks"

Since Thursday, Google Code is hosting the OpenSocial project, a group of APIs allowing the development of common software for a certain number of “social networking” websites (e.g. LinkedIn, MySpace, Ning, Orkut, …).

Before Thursday, every programmer wanting to develop a software for social networks had to learn an API, how to write code and sometimes a new language for each of these networks (when these ones exposed a public API!). Now, OpenSocial gives access to the most common functions of all the participating networks. Currently, the API gives access to:

  • the users profile information
  • the networks and friends information
  • events in the network

One advantage of OpenSocial is that it’s based on existing languages (Javascript, HTML and Flash) where other APIs (the Facebook one, to be clear) impose a new language like FBML. Source code for examples is under a free license as well as all the documentation. OpenSocial promises to open the API source code soon (see the FAQ).

Finally, one slowly achieves a true social networks society (federation) where, whatever website/network you are registered, you’ll be able to use the same applications (who spoke of standardization?). Web 2.0, software are coming!

Now, some questions remain unanswered …

  • One day, one can be registered in a network and access other networks without being registered with them (a bit like gateways allow people using one type of IM can chat with friends using another type of IM).
  • What about security, access to data (from outside) and the public perception about this? (see Bruce Schneier’s opinion on Facebook and data control)

I initially wrote this news in French for LinuxFr (see here).