Create and edit PDF documents with LibreOffice

Create PDF files is a very common operation. Modify them is a bit less common but, anyway, a very requested feature.

LibreOffice exports documents as PDF by default. You simply click File -> Export in PDF format.

But, if you want, you can also import a PDF file into Writer to modify it. All you need is an extension called pdf-import. To install it, simply execute following commands in your terminal:

$ sudo apt-get install libreoffice-pdfimport

At the end of the process, you will be able to open PDF files directly with LibreOffice Writer by right clicking on it and selecting “Open with Writer”.

Creare e modificare documenti PDF con LibreOffice

Creare file PDF è un’operazione piuttosto comune. Modificarli, invece, è un po’ meno comune ma, comunque, una funzione molto richiesta.

LibreOffice esporta normalmente documenti in PDF. Dovete semplicemente cliccare su File -> Export in formato PDF.

Ma, se lo desiderate, potete anche importare un PDF in Writer al fine di modificarlo. Tutto ciò di cui avete bisogno è un estensione chiamata pdf-import. Per installarla, eseguite semplicemente i seguenti comandi nel vostro terminale:

$ sudo apt-get install libreoffice-pdfimport

Alla fine del processo, potrete aprire i file PDF direttamente con LibreOffice Writer cliccandovi con il tasto destro e selezionando “Apri con Writer”.

How to install Funambol 10 on Debian Wheezy

In this post we will cover how to install Funambol 10.0.3 on Debian Wheezy server.

First of all, we need to install Java jdk on server:

$ apt-get install default-jdk

Then, let’s create a folder to download and uncompress Funambol (at the moment, at version 10.0.3):

$ mkdir -p /opt/Funambol 
$ cd /opt/Funambol 
$ wget -c http://downloads.sourceforge.net/project/funambol/bundle/v10/funambol-10.0.3-x64.bin 
$ chmod +x funambol-10.0.3-x64.bin 
$ ./funambol-10.0.3-x64.bin

Now, we need a specific user to make Funambol run. So let’s create a group called funambol and a user also called funambol with /opt/Funambol as home folder:

Continua a leggere

Come installare Funambol 10 su Debian Wheezy

In questo articolo vedremo come installare Funambol 10.0.3 su un server Debian Wheezy.

Innanzitutto, dobbiamo installare sul server il Java jdk:

$ apt-get install default-jdk

In seguito, creiamo una cartella in cui scaricare e decomprimere Funambol (al momento, alla versione 10.0.3):

$ mkdir -p /opt/Funambol
$ cd /opt/Funambol
$ wget -c http://downloads.sourceforge.net/project/funambol/bundle/v10/funambol-10.0.3-x64.bin
$ chmod +x funambol-10.0.3-x64.bin
$ ./funambol-10.0.3-x64.bin

Ora, abbiamo bisogno di un utente specifico per far girare Funambol. Così, creiamo un gruppo chiamato funambol ed anche un utente chiamato funambol con /opt/Funambol come cartella home:

Continua a leggere

ReCaptcha in Zend Framework 2 without Zend/Form

The problem

Captcha is a very useful mechanism to avoid automated abuse of your sites and applications. In particular, reCAPTCHA is a Google powered service that offers a free and simple way to implement a captcha protection field in your forms or pages. Zend Framework 2 implements his own components to handle captcha and a specific one to handle reCAPTCHA service. At the moment, the ZF2 documentation is very usefull if you want to integrate a reCAPTCHA in your Zend/Form component, but lacks in describing how to use reCAPTCHA service component alone. Actually Zend/Form is very powerful, but sometimes a developer need to use standard html to implement his own forms and this prevents to use ReCaptcha as Zend/Form element.

The solution

To reach our achievement, we will implement a reCAPTCHA service that can be use all over the project to generate captchas and test them against values inserted by user. This service will be used principally in views and controllers. The following code implementation assumes that you have a working ZF2 project, configured as described in official documentation.

Continua a leggere