Archive

Archive for September, 2011

Don’t use Java in a nuclear facility

September 29, 2011 1 comment

From the license of Java, Section 3:

… You acknowledge that Licensed Software is not designed or intended for use in the design, construction, operation or maintenance of any nuclear facility. …

Found here.

Update (20130318)
It seems the original text has changed. The new version says: “You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation.

Hmm, I preferred the old one :(

Categories: fun, java Tags: ,

A little help for hyphenating words in LaTeX

September 28, 2011 Leave a comment

Problem
When working with LaTeX, sometimes I’m not sure if a word is correctly hyphenated by LaTeX so I’d like to verify that. As I’m not a native English speaker, it’d be nice to hear the correct pronunciation too.

Solution
I made a little script that addresses the two problems (available here). It’s part of my jabbapylib library. The script relies on dictionary.com.

apt-get: “the following packages have been kept back”

September 27, 2011 9 comments

Problem

You install something with apt-get and it keeps telling you that some “packages have been kept back”. Great! What to do with that?

Solution

After looking at this warning for years, today I got fed up and looked after it on Google. I found the solution here. If you have a package called X kept back, then try to install it with “sudo apt-get install X“. That’s all.

Categories: bash, ubuntu Tags:

Some beautiful conky setups

September 26, 2011 Leave a comment
Categories: ubuntu Tags:

Firefox 7 beta

September 24, 2011 1 comment

Yesterday I tried Firefox 7 beta. After one day of usage I can say that it works well. I could even install my favorite add-ons.

With FF6 I had some problems: from while to while it blocked for several seconds, the CPU was running on 100%, and then everything came back to normal. I tried to clean my ~/.mozilla folder but the problem remained. I think I could have solved it by removing ~/.mozilla completely but then I said to myself: “let’s try FF7 then”. So I closed FF6, renamed ~/.mozilla to ~/.mozilla6.bak and started FF7 that created a new ~/.mozilla folder. No more blockings :)

I’ve never liked the new tab button but there is an easy way to get rid of it. Right click next to it, from the popup choose Customize…, and then drag and drop the new tab button (probably it’ll be on the right side) to the list. Done. This tip is from here.

Powerpoint is dead (HTML5 presentations with landslide)

September 23, 2011 1 comment

Powerpoint is dead. Well, not yet, but for simple presentations you can use the following tool perfectly. This entry is based on Francisco Souza’s excellent post entitled “Creating HTML 5 slide presentations using landslide“. Here I make a short summary.


Landslide is a Python tool for converting marked-up texts to HTML5 slide presentations. The input text can be written in Markdown, reStructuredText, or Textile. A sample slideshow presenting landslide itself is here.

Sample input: 2.md (taken from the landslide project)
Sample output: presentation.html

Installation

sudo pip install landslide

Usage

landslide text.md

If you want to share it on the Internet: “landslide -cr text.md“.

Help: “landslide --help“.

To learn about the customization of the theme, refer to Francisco’s post.

Convert to PDF

landslide file.md -d out.pdf

For this you need Prince XML, which is free for non-commercial use. Unfortunately the output is black and white with additional blank pages for notes. If you know how to have colored PDFs without the extra pages, let me know.

It’d be interesting to replace Prince XML with wkhtmltopdf. I made some tests but the output was not nice. I think it could be tweaked though.

Related stuff

Pandoc is a universal document converter.

If you need to convert files from one markup format into another, pandoc is your swiss-army knife. Need to generate a man page from a markdown file? No problem. LaTeX to Docbook? Sure. HTML to MediaWiki? Yes, that too. Pandoc can read markdown and (subsets of) reStructuredText, textile, HTML, and LaTeX, and it can write plain text, markdown, reStructuredText, HTML, LaTeX, ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, textile, groff man pages, Emacs org-mode, EPUB ebooks, and S5 and Slidy HTML slide shows. PDF output (via LaTeX) is also supported with the included markdown2pdf wrapper script.

Follow

Get every new post delivered to your Inbox.

Join 72 other followers