Archive for December, 2009

iText 5.0.0 need java 5 and under AGPL

iText 5.0.0 released on December 7, 2009, and I noticed it has some big changes need you to pay attention to,

  • Changed the license from MPL/LGPL to AGPL
  • iText.jar is now compiled with Java 5
  • Changed the package names from com.lowagie to com.itextpdf
Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

Piwik 0.5 auto update script still reports pclzip_err_bad_format issue

Please visit How to fix pclzip_err_bad_format issue when automatically update Piwik

through my Piwik statics, I noticed many keywords focus on “pclzip_err_bad_format”, then I noticed Piwik 0.5 releases.
When I tried automatically update Piwik, I got the same issue with Piwik 0.45.
And I decided upgrade Piwik manually this time.
using ssh to login my host
download Piwik 0.5
wget http://piwik.org/latest.zip
back up config.ini.php
cp piwik/config/config.ini.php .
use the Piwik 0.5 replace the old version
unzip latest.zip
browser my Piwik website and finish the upgrade.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

PDFCrypt Addition-Drag and Decrypt

I got a email from George yesterday. he said,

Hi,
I found your pdfcrypt program and wrote a CMD file that, if you place it in the same folder as pdfcrypt.exe, will let you drag an encrypted (but non-password protected) PDF onto the .cmd file to make a decrypted copy of the PDF in the same folder as the original. I put it under the GPL, so you can redistribute it with pdfcrypt, or post it on your site, or ignore it completely.
The script is attached with a .txt extension so that it is not flagged as a potential threat. You can look through it to ensure it does nothing but facilitate decrypting.

Thanks for your work pdfcrypt, it is much appreciated!

George

And here is the code he contributed, thanks for George’s kindness.

REM Written by George Tenney 11-29-09

REM Usage: Drop an encrypted, but non-password protected, PDF onto
REM this .cmd file to create a decrypted version in the same folder
REM as the original PDF.

REM This program is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation, either version 3 of the License, or
REM (at your option) any later version.
REM
REM This program is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM To receive a copy of the GNU General Public License
REM see .

@ECHO OFF
REM Set pdfcrypt location
SET PROG=%0
SET PROG=%PROG:~0,-14%pdfcrypt.exe"

REM Check for quotes in filename (i.e., space in path)
SET INFILE=%1
IF ^%INFILE:~0,1% NEQ ^" GOTO :ADDQ
REM ELSE
GOTO :NOADDQ

:ADDQ
REM Add quotes around filenames
SET INFILE="%INFILE%"
SET OUTFILE=%INFILE:~0,-5%_DECRYPT.pdf"
GOTO :RUNNOW

:NOADDQ
REM Don't add quotes around filenames
SET OUTFILE=%INFILE:~0,-5%_DECRYPT.pdf"

:RUNNOW
REM Display Messages
CLS
ECHO.
ECHO.
ECHO Decrypting...
ECHO.
ECHO Input File:
ECHO %INFILE%
ECHO.
ECHO Output File: (WILL BE OVERWRITTEN)
ECHO %OUTFILE%
ECHO.
PAUSE

ECHO.
ECHO.
ECHO This may take a minute, please wait.
ECHO.
ECHO.
ECHO.

REM Run the decryption
%PROG% %INFILE% %OUTFILE% decrypt ""
ECHO.
ECHO.
ECHO Press any key to exit.
PAUSE > NUL

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride