Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Monthly Archives: June 2011

cmake-fedora 0.6.0 released!

This version revises the macro about translation and add Zanata support!

It also fixed the release_on_fedora target.

See the RELEASE-NOTES.txt for detailed change.

Comparing “Send to Kindle” and “Later on Kindle”

I frequently visit sites that show source codes of programming language, so I compare the Send to Kindle and Later on Kindle, and see how they handle <pre> in this article.

Well, I admit it’s not a full scale test, so my test is bias.
Anyway, according what I saw:

  • On document selection, source field: Send to Kindle shows the host name of the site, while later on kindle shows, well “lateronkindle@gmail.com”
  • For normal <pre> tag display:
    • On Send to Kindle every lines seem to be joined together, like:

    • On Later on Kindle: lines are split like:
  • For “tabled” <pre> tag display (last code block):
    • On Send to Kindle, still every lines joined together, yet all the content is displayed:

    • On Later on Kindle, lines are separated, but truncate at right margin, you can only rely on either rotate to landscape view or use smaller fonts and margins.

To sum up, Later on Kindle generally better showing the pages with source code, but not good on long lines.

Use GMail in Google Chrome as default mail client in KDE and GNOME2

Yes, I do have both boxes. I also got GNOME3, but I haven’t tested the mail stuff yet.

For KDE:

System-Settings->Default Application->Email Client,
Choose "Use a different email client" and the command line
(From Gmail as the KDE default email client):



/opt/google/chrome/google-chrome https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=%t&su=%s&%u

For GNOME2:

If you use nothing but default browser, simply install gnome-gmail (it’s in Fedora).
If not, thing is a bit harder, as Gnome only fill %s when it’s stand-alone, (i.e. url %s is valid while url=%s isn’t’).

So you need some small script (assume it’s called gmail-chrome.sh) like:


#!/bin/sh
/opt/google/chrome/google-chrome "--app=https://mail.google.com/mail?extsrc=mailto&url=$1"

Then go to System->Preference->Default application->Email Reader
Choose "Custom" and the command line:


/path/to/gmail-chrome.sh %s

Use



xdg-open "mailto:test@test?Subject=Hi"

To see whether it work correctly.