17 September 2015

Safari Extensions

I was trying Omniweb the other day on a very standard page (from the Emacs lisp tutorial by Xah Lee at http://www.ergoemacs.org/emacs/elisp.html) and I was shocked to see adverts in a box on the right side of the screen.

Safari and its extensions had got me used to a web without adverts invasions, without irrelevant contents, and with much less energy use when I'm unhooked.

I guess other browsers have similar features but after a bit of hesitation, I quit Omniweb and reverted to Safari.

The extensions I use are the following:

Adblock blocks ads on all websites.
Adblock Plus seems to block even more stuff
Directlinks makes indirect links on Google and Facebook direct
Ghostery stops tracking engines and shows you which were going to track you
StartPage HTTPS enables the StartPage search engine, through HTTPS
ClicktoFlash prevents Flash contents from loading automatically
ClicktoPlugin does the same for various plugins
Facebook Cleaner removes a lot of cruft from Facebook pages
Facebook improved improves on that experience
Clea.nr YouTube removes a lot of cruft on YouTube

That's pretty much it.

The site specific plugins are only icing on the experience since Adblock and Adblock Plus do most of the heavy work. Directlinks and Ghostery are important too, to keep sites from tracking you against your will.

Here is a good piece on ad blocking, via Daring Fireball:

"Welcome to the Block Party"

06 January 2013

Free vs. Proprietary software

2012 was the year when I bought the most proprietary software licenses.

Such purchases were mostly prompted by special needs that seemingly could not be answered by available free software.

I bought a license for Infix (PDF editor), for Abbyy FineReader Express and Readiris (Japanese and English OCR), for Antidote (French spelling and grammar checker), for Pdiff (visual comparison for PDF files), for Kaleidoscope (visual comparison for image files) and for Transform (XSL transformation).

Antidote from Druide is the software that I use the most often, after OmegaT. I could not work without it.

Infix from Inceni comes as a very distant second. I use it on some PDF files that I need to translate as PDF. I export the contents to Infix export format and translate that file in OmegaT thanks to the Infix XML filter that was developed a while ago. Infix does not come without problems (crashes, clunky user interface), but it works most of the time.

Abbyy and Readiris were bought when I needed to OCR a few important files, sometimes PDF, sometimes plain images. I then translated the exported files with OmegaT.

I bought Kaleidoscope from Black pixel because I needed to compare a set of multipage PDF documents. Kaleidoscope does not support PDF, but I thought I'd be able to easily convert the files to a compatible image format. That was not the case. Even though my machine is quite powerful, I could not find a practical way (free software or not) to convert two 400 pages PDF files into a single image file with a good enough resolution to process the file set in Kaleidoscope.

Then I bought Pdiff from Csci. Since there was no trial version, I asked the developers to try it on my file set and send me an excerpt of the result. What they sent me was very satisfying, but was made in the "pro" version that had an Export to PDF feature for reports, while the "lite" version had nothing like that. I bought the lite version anyway, but its report function was nowhere close to what the pro version offered at a priced that did not justify a purchase (999€). There is no way to export the report in the lite to anything useful and there is even no way to copy it for conversion to a different format.

Eventually, I did the comparison with diffpdf a free software from Mark Summerfield. diffpdf has a problem: it does the comparison page by page but does not notice when data is spread on 2 pages. To fix that, you have to manually add white pages in places where you want diffpdf to do a dummy comparison so that most of the pages are kept in sync. This is slightly cumbersome but took only about 1 hour to complete on the 400 pages x 2 pages set. The resulting comparison report in PDF was easy to read and exactly what I needed to proceed with my work.

Transform is from Neil Lang, an individual developer. I was being lazy and I wanted something more than what XSLPalette offered so I checked the App Store and found Transform. I paid the license, installed it, tried it, send a request for feature to the developer who promptly answered by telling me that the feature was already there, but "hidden" from the eyes of the user. After playing with it a bit I decided to use xsltproc on the command line to proceed with my work.

I learned 3 things:

1) Free software ended up being good enough for what I needed and I wasted money on software I did not really need.

2) Good proprietary software does not come in "lite" and "pro" versions. Either it does what you need it to do, and it does it well, or it is not worth bothering.

3) There is a business selling software output when users don't want to buy a license to a software they'll use only once every few months. I could see myself spending a few (dozen ?) euros on a nicely output PDF comparison report, or on some nicely OCRed files.

27 October 2011

Oracle JDK7 for OSX

You remember when Apple said they would not maintain Java anymore ? That was just 12 months ago:

Java is dead! Long live Java? (on this blog)

I just noticed that Oracle released a new preview edition of JDK7 for OSX yesterday (b215).


I installed it and after changing my Java preferences (search for "Java Preferences" in SpotLight), I tried the preview version of OmegaT.

The result ?

54443: Info: OmegaT-2.5.0_1 (Thu Oct 27 15:05:55 JST 2011) Locale en_US
54443: Info: Java: Oracle Corporation ver. 1.7.0-ea, executed from '/Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home/jre' (LOG_STARTUP_INFO)

It works !

No crash yet so I think I'll finish the current job with that new version of Java.

Be extra cautious though when you use preview versions of software. A bug can bite you in the middle of a job...

Update (a few hours later)
It works, but there are a few issues that make it not practical to work with this preview right now. I've reverted to Java 1.6 until Oracle delivers something closer to a release candidate :-)

Detailed information is here:


Update (a few days later)
Apple has just released a new update for Java 1.6 for Snow Leopard and Lion. Check software Update. The JDK7 port just released a new build: b217.

New fun to come with OmegaT 2.5...

OmegaT 2.5, the preview version that you can get from:


includes a really nice new feature that, unfortunately, is not yet available for Mac users...

(Nov. 10 update: the latest version of the plugin works fine on Mac now)

If it is not, then you can rightly ask why bother mentioning it here at all ? Well, the answer is simple. It is kind of available, but because of an user interface design issue, the buttons that make it run are not available on Mac... This is going to be fixed real soon. In the meanwhile, get ready for...

A scripting interface to OmegaT's internals.

See the announcement here:


People who know what they are doing can already check this Java documentation page:

Scripting for the Java Platform

According to the scripting plugin source code, the possible languages for use in OmegaT are:

  • JavaScript
  • Jacl
  • NetRexx
  • Java
  • BML
  • VBScript
  • JScript
  • PerlScript
  • Perl
  • JPython
  • Jython
  • LotusScript
  • XSLT
  • Pnuts
  • BeanBasic
  • BeanShell
  • Ruby
  • JudoScript
  • Groovy
  • ObjectScript
  • Prolog
  • Rexx

There are already plenty of exchanges on the OmegaT mailing list regarding the scripting extension. Check this thread for example:


We'll have an announcement here when the feature works on Mac...

Dennis Ritchie and John McCarthy too...

A few days after Jobs, Dennis Ritchie and John McCarthy passed away too, but that did not trigger international interest.

Dennis Ritchie is called the "father of C", C as in "C language". Everyone who's done a little bit of programming knows about the importance of C in the computing world.


A few days after Ritchie, John McCarthy, the "father of Lisp" passed away too. Lisp is the language that was mostly used for artificial intelligence works "back then".


Lisp is 11 years older than C. Lisp was born in 1958 and C in 1969. But both languages are still commonly used in computing today...

Of course, both languages can be used on Macs. If you install the developer's tools that come with your DVD, you have access to a C compiler. Lisp, being a family of languages, requires to make a few choices (either get an ANSI standardized Lisp, or a Scheme, or a new Lisp like Clojure, that runs in Java etc.)

As for introductory books, "Land of Lisp" by Conrad Barski, M.D., from No Starch Press has been very well reviewed.


"Practical COmmon Lisp" by Peter Seibel from Apress is really nice too and sparked a renewed interest in the language. Plus, the PDF is freely available.


As for C, well, there are so many books about C programming that the only one I can think of is Kerninghan and Ritchie's "The C Programming Language, Second Edition" from Prentice Hall.


Objective-C is a strict super-set of C and is mostly known for being the language behind OSX applications.

A good introduction I found is "Programming in Objective-C" by Stephen G Kochan, from Pearson Education.


Of course, you can find plenty of free tutorial that can get you started in both languages.

Programming is fun and if it is not already the case, you should really give it a try.

06 October 2011

Steve Jobs passed away

It's going to be analyzed all over the world. Daringfireball linked to Job's Commencement Address in 2005. Here it is:

'You've got to find what you love,' Jobs says

19 May 2011

Virtaal running on Mac ! Part II

After the previous post, it appeared that Virtaal has problems with my configuration. Some testing and a few mails later here is a new announcement from the Virtaal team:

From: Dwayne Bailey
Date: 19 mai 2011 08:40:17 UTC+09:00
To: translate-devel@lists.sourceforge.net
Subject: [Translate-devel] Mac builds for Virtaal 0.7.0 rc1

You can get Mac OS X builds for Virtaal 0.7.0 rc1 here:

Fixes since the beta 5 for Mac:
* The build uses its own Python (should solve your problem JC)
* Spell checking works - like Windows builds we download the spell checkers
* TM server is now running

* We get a solid hang with some keyboard shortcuts e.g. Ctrl-W to close
the translation file.  Navigation seems to work
* The installer is massive 43M, we'll put it on diet when we've got
stable builds
* The keyboard shortcuts are still mapped to Linux/Windows and haven't
been remapped to Mac
* Doesn't seem to work at all on 10.5 (Leopard) - well it does start but
you can't open anything
* Pango is still messing up Arabic

Basically Virtaal launches properly now. Welcome to the world of Mac Virtaal !

(Update: rc1-1 still had problems but rc1-2 worked fine. Check the snapshots located here to get the latest file: http://translate.sourceforge.net/snapshots/)