Archive for utp

Working with PDF the free and easy way.

Since I got the Apple iPad a while back, I now deal with lots more PDF then I used to.

Very often we would like to do some simple work with PDFs, example: add/remove/swap pages/cover, split large PDF to multiple parts etc.

I tried quite some different freeware to work with PDFs, not as simple and as good as my need, some freeware has difficultly working with large PDFs (file size larger than 100MB or so), some of them do not work well on different/multiple pages resolution, some occupied crazy amount of memory (3GB+ for a 150 pages PDF)..

If you paid for the great Adobe Acrobat, things are a little bit better, their price do worth what it can do, but since my need was way too simple for that price, so it came to my interest to find a free and easier way to get my simple task done.

In the search, I found a program call pdftk, PDF Toolkit at http://www.accesspdf.com/pdftk/ which suits my needs.
First of all, the price is just right, it is free, and it does the simple job I want easily, especially I just love command line (CLI) programs, which I can do batch file processing.

Here is some examples:
To remove page 1,3 and page 301 from a PDF with 350 pages:
>pdftk INPUT.PDF cat 2 output TMP.002.PDF
>pdftk INPUT.PDF cat 4-300 output TMP.004-300.PDF
>pdftk INPUT.PDF cat 302-350 output TMP.302-350.PDF
>pdftk TMP.002.PDF TMP.004-300.PDF TMP.302-350.PDF cat output OUTPUT.PDF

To join all pdf in current directory to one PDF file:
>pdftk *.pdf cat output OUTPUT.PDF

I now use pdftk, imagemagick with a simple PERL script to process comics downloaded from the net.
Why so complicated you may ask, but handling downloaded comic images are a bit more work than you think, first many of these scans are in multiple page (2 page join in 1 image), which I do not like to see that on the iPad.
First the PERL script unzip the images into a tmp folder, using Image:Size, it tries to guess was the image merged from multiple pages (by width/height ratio), if split is needed it is then passed to imagemagick for splitting (left/right split), then resize is done too since we do not need very large image on the iPad, each page is then converted to a single PDF in imagemagick, finally we merge the PDFs into the final output by PDFTK.

Converting a 150 pages comic zip file from merged jpg/png to a single PDF is simple and quick (about 1~2 mins depends on how much work is needed on the resize and crop).

Links
http://www.accesspdf.com/pdftk/

Quick bits – convert daa image file to ISO file.

Quick bits – very good free tools for converting daa image file to iso under win32, daa2iso by Luigi Auriemma.

http://aluigi.altervista.org/mytoolz.htm

We are empty….


We are empty…..

Google stops development on Google Waves

It is not a big surprise to hear that Google make this decision…

IMHO Google Waves never took off at all, but is still sad to see that a project that didn’t made its way..

The idea of collaboration system reminds me of something, back in 2003 when I was in Sydney University, I designed something rather similar to Google Waves in an assignment, it was a collaboration portal based on Macromeida Flash, XML, CGI, mySQL for graphics designer to work collaboratively with sync/async timezone and rich graphical content, mock up and prototype was done, since the task of the project was to demo the idea only, so full function code was never done…

I do love the idea of a good online collaboration tools, if I have the time, I sure would try once more on that never finished prototype..(let me see can I still find that somewhere in the hard drives…)

Anyway, R.I.P Google Waves 2010….

Am going to be busy…..

Job just popup when you are not ready for it….

Well, the need $$ > the need of leisure, go go go busy honey bee!

MircoUSB AB Cable Pinout.

Just a note to me and anyone want it handy.

Pin Name Cable Color Description
1 VCC Red +5 VDC
2 D- White USB Data –
3 D+ Green USB Data +
4
5 GND Black Ground

MicroUSB ab jack from the Phone side.

MicroUSB ab jack from the Cable side.
MicroUSB ab jack from the Cable side.

References:
http://pinoutsguide.com/CellularPhones-Nokia/micro_usb_connector_pinout.shtml

Data from old Weblog moved.

Finally spend a bit of time to code from some XML to SQL and insert them into the current WordPress DB…
The insert wasn’t hard since I only has like 4~500 rows of post, the bad part is I lost the categories..
Anyway, shouldn’t be too hard to correct them, and is also good to renew them too..
🙂

Start development on HTML5 and CSS3.

I started a turn base game based on HTML5 & CSS3.

With new animation and storage, and the help of rich CSS3 I think it should be fun to do some games development which do not demand heavy graphics.

Hope I can learn and exercise more with this development.

iPhone4G, away for the meantime…

Hum…this must be the quickest time I purchase a phone and sold it..

Friend J called, a friend of his is in URGENT need of an iPhone4G, offering “ANY price” for one by tonight….

Ok, just for friend…(The price IS sure attractive, hehe…), so by now, back to the N1!

First photo from iPhone4G

Coffeeeeeeeeee….