Hachi Hachi Sushi
Salmon Sushi at Hachi Hachi Bistro, mall Taman Anggrek. Each sushi costs 9k IDR, but the size of it justifies the price.
Unakyu Sushi, also at Hachi Hachi. See more photos at my Flickr page.
Filed under: Food, Photographs | 2 Comments
Tags: Food, hachi hachi bistro, japanese food, Photo, photograph, salmon, sushi
Concatenating PDFs from CLI
The widely known and easiest way to combine PDF documents from the command line is to use pdftk:
$ pdftk file1.pdf [file2.pdf ...] cat output dest.pdf
pdftk can do a lot more than just pdf concatenation. It can also split pages, rotate pages, apply watermarks and even repair broken PDFs. The downside is it removes outlines or bookmarks from the output document. So if you need the bookmarks intact you can’t use pdftk.
If you only need simple concatenation with bookmarks, use iText. iText is a powerful Java library for PDF generation and manipulation. Thankfully we don’t need to write our own Java code since hidden underneath is a simple PDF concatenation tool:
$ java com.lowagie.tools.ConcatPdf f1.pdf [f2.pdf ...] \ dest.pdf
Besides ConcatPdf, iText also has other tools such as SplitPdf and HandoutPdf.
iText in Ubuntu How To
To install iText in Ubuntu/Debian, from Synaptic install the package “libitext-java”. If you prefer the command line:
$ sudo apt-get install libitext-java
Before using iText like the above example you need to set up the CLASSPATH:
$ export CLASSPATH=$CLASSPATH:/usr/share/java/itext.jar
Or you can also set the CLASSPATH directly:
$ java -cp /usr/share/java/itext.jar \ com.lowagie.tools.ConcatPdf f1.pdf [f2.pdf ...] dest.pdf
Filed under: Information Technology, Ubuntu | Leave a Comment
Tags: cli, command line, concatenation, iText, java, linux, PDF, pdftk, Ubuntu
Google’s “new approach” on China
Read at The Official Google Blog. This is significant.
Filed under: Information Technology, Internet | Leave a Comment
Tags: cencorship, china, Google, human rights
Espresso Con Panna
Espresso con Panna at Highlander Coffee.
Filed under: Coffee, Photographs | 3 Comments
Tags: cafe, Coffee, cream, espresso, espresso con panna, highlander, photograph, Singapore
ODF Templating using Appy pod
The last time I tried to produce ODF text document from Python, I hack Django templating to load an ODT file as a template. Long story short: Don’t try this at home. The fact that the application is still running in-production is very much a miracle.
Last week I suddenly stumble upon Appy pod. Oh if only I had found you sooner! Pod uses OpenOffice’s track changes feature to insert template placeholders and notes for conditionals and loops. This makes templates to be very simple to create. Aside from ODF, pod can also call OpenOffice in headless mode to generate the result PDF format.
Of course there are some limitations. You can’t put a word by word conditional, you need to use a paragraph. You can’t loop more than one row in a table. Also if there are errors, the error messages will be displayed as notes in the output document. While this simplifies debugging, it won’t look professional when it is seen by the user.
I you ever need to generate ODF documents from Python, do give pod a try!
Filed under: Information Technology, Python | 1 Comment
Tags: odf, pod, Python, template
Latte
Irish Creme Latte at Highlander Coffee. Isn’t it lovely to get latte art on your coffee.
Hi readers, long time no see. As you may deduce from my previous posts, I am now living and working in Singapore. I hope to resume my posting on this blog now that the Internet here is much reliable than back home.
Filed under: Coffee, Personal | Leave a Comment
Tags: cafe, Coffee, espresso, highlander, latte, Photo, photograph
Temple Photo
Filed under: Photographs | 1 Comment
Tags: Buddhist, Photo, photograph, Singapore, Temple
Temple, and Chrome for Linux
Another photo from my FZ-28. Buddha Tooth Relic Temple in Chinatown, Singapore. See more photos on my Flickr page.
By the way sorry if its old news but Google Chrome for Linux (development build) is now available. Although its a dev build, it feels stable enough to be used as your default browser. You can download a .deb package from the Chromium dev channel. The window title/border does look a bit out of place, but you can tell it to use your default system default (like Metacity on Gnome).
Filed under: Information Technology, Internet, Photographs | Leave a Comment
Tags: Buddhist, Chrome, Google, Photo, photograph, Singapore, Temple
Things to do in Singapore
Interesting things to do in Singapore, but probably aren’t mentioned elsewhere:
- Have a cup of cappuccino or latte at Highlander Coffee (S$ 3.90).
- For Catholics, attend holy mass in the Cathedral of the Good Shepherd. Not to be mistaken with the St Andrew’s Cathedral in front of City Hall station which is an Anglican Church.
- Eat Soup Kambing at Upper Boon Keng Food Center (S$5.5). The location is a 10 minutes walk from Kallang MRT.
- Eat Subway, just because we don’t have them in Jakarta :)
- Try Botak Jones western food.
Meanwhile, things to avoid:
- Long John Silvers. Save your money. If you want fast food, go to Burger King.
Filed under: Food, Personal | 8 Comments
Tags: Singapore, travel, visit
Recent Entries
Categories
- 2007 resolutions (1)
- Binus (1)
- Books (23)
- Busway (3)
- Coffee (13)
- Comics (1)
- Cute (4)
- Django (7)
- Eclipse (1)
- Economy & Business (4)
- Food (48)
- Gadget (14)
- Gnome (20)
- Humor (12)
- Indonesiana (58)
- Information Technology (73)
- Internet (35)
- Jakarta (12)
- mass (1)
- Music (1)
- Personal (69)
- Photographs (58)
- Python (5)
- Rant (16)
- TV/Movies (10)
- Ubuntu (56)
- Uncategorized (7)
- wiki-hopping (4)
- Work (1)
Archives
- January 2010
- December 2009
- November 2009
- August 2009
- June 2009
- April 2009
- March 2009
- January 2009
- December 2008
- November 2008
- September 2008
- August 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006









