Jan 21, 2012

Convert JPEG files to pdf

Trên Ubuntu 11.10

sudo apt-get install imagemagick: Đã có sẵn, không cần cài.

Danh sách file:

scan-_0000_Layer 8.jpg
scan-_0001_Layer 7.jpg
scan-_0002_Layer 6.jpg
scan-_0003_Layer 5.jpg
scan-_0004_Layer 4.jpg
scan-_0005_Layer 3.jpg
scan-_0006_Layer 2.jpg
scan-_0007_Layer 1.jpg

Convert lần 1:
convert scan-_000* output.pdf
thất bại vì thứ tự ngược, đánh số từ 7 tới 0 chứ không phải từ 0 tới 7.

Rốt cuộc, đành phải chạy bằng tay:
convert scan-_0007_Layer\ 1.jpg scan-_0006_Layer\ 2.jpg scan-_0005_Layer\ 3.jpg scan-_0004_Layer\ 4.jpg scan-_0003_Layer\ 5.jpg scan-_0002_Layer\ 6.jpg scan-_0001_Layer\ 7.jpg scan-_0000_Layer\ 8.jpg output2.pdf

Thực ra nếu trong tên file không có space thì chạy luôn:
convert `ls -r1 *jpg` output3.pdf

Chuyện linh tinh, note lại cho vui :)

Jan 17, 2012

How to report bugs effective (diet version)

Đây là cách viết bug report đơn giản và hiệu quả.

1. Summary: Sơ lược về lỗi
2. What did you do? Anh/chị đã làm thế nào mà lỗi xảy ra (tức là cách
tái hiện lỗi)
3. What happened? Lỗi xảy ra như thế nào? (chạy sai)
4. What should have happened? (Lẽ ra chương trình phải chạy thế này)
5. Và evidence (log, screenshot...) nếu có.

Tham khảo:

Fwd: [tdf-announce] The Document Foundation announces LibreOffice 3.4.5

---------- Forwarded message ----------
From: Florian Effenberger <floeff@documentfoundation.org>
Date: Mon, Jan 16, 2012 at 18:25
Subject: [tdf-announce] The Document Foundation announces LibreOffice 3.4.5
To: announce@documentfoundation.org

The Internet, January 16, 2012 - The Document Foundation (TDF)
announces LibreOffice 3.4.5, a new improved version of the
award-winning free office suite for Windows, Mac and Linux, solving a
number of bugs and further improving the stability of the program.

LibreOffice 3.4.5 represents the best choice for a free office suite
for every user, including conservative corporate users who were still
deploying LibreOffice 3.4.4.

In 2011, LibreOffice has won InfoWorld's BOSSIE Award 2011 as Best of
Open Source Software, and the Open World Forum Experiment Award of
Most-Popular Software. The awards are a demonstration of the key
improvements brought to the legacy code by a small army of close to
400 TDF developers.

LibreOffice 3.4.5 is available for immediate download from the
following link: http://www.libreoffice.org/download/. Extensions for
LibreOffice are available from the following link:

Change logs are available at
(fixed in and
(fixed in

Short link to The Document Foundation blog: http://bit.ly/wvyAdX

About The Document Foundation (TDF)

The Document Foundation is an open, independent, self-governing,
meritocratic organization, which builds on ten years of dedicated work
by the OpenOffice.org Community. TDF was created in the belief that
the culture born of an independent foundation brings out the best in
corporate and volunteer contributors, and will deliver the best free
office suite. TDF is open to any individual who agrees with its core
values and contributes to its activities, and warmly welcomes
corporate participation, e.g. by sponsoring individuals to work as
equals alongside other contributors in the community. As of September
30, 2011, TDF has 136 members and over a thousand volunteers and
contributors worldwide.

Media Contacts

Florian Effenberger (based near Munich, Germany, UTC+1)
       Phone: +49 8341 99660880 - Mobile: +49 151 14424108
       E-mail: floeff@documentfoundation.org - Skype: floeff

Olivier Hallot (based in Rio de Janeiro, Brazil, UTC-3)
       Mobile: +55 21 88228812 - E-mail: olivier.hallot@documentfoundation.org

Charles H. Schulz (based in Paris, France, UTC+1)
       Mobile: +33 6 98655424 - E-mail: charles.schulz@documentfoundation.org

Italo Vignoli (based in Milan, Italy, UTC+1)
       SIP Phone: +39 02 320621813 - Mobile: +39 348 5653829
       E-mail: italo.vignoli@documentfoundation.org - Skype: italovignoli
       GTalk: italo.vignoli@gmail.com

Unsubscribe instructions: E-mail to announce+help@documentfoundation.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
List archive: http://listarchives.documentfoundation.org/www/announce/

Best Regards,
Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng )
vuhung16plus{remove}@gmail.dot.com , YIM: vuhung16 , Skype:
vuhung16plus, twitter: vuhung, MSN: vuhung16.