Running Blurb Booksmart in Linux (without Wine)

October 23rd, 2009  |  Published in Technology  |  View Comments

[stextbox id="info"]Update: 2009.12.20. New version of installer released with major bugfixes.[/stextbox]
Blurb Booksmart is a book layouting application from Blurb Inc. that enables budding authors to create books using their own text and images. Think of it as a highly specialized Adobe Illustrator or Microsoft Publisher. After creating your book in the software, you upload it to Blurb’s website where you can then order printed copies of the book.

Officially, Blurb supports Booksmart only on Windows and Mac, however it is a generic Java application, and as such can easily be ran on Linux – with some finagling. You could try and run it through wine, but the layer of emulated Windows on top of the Java makes for an annoyingly sluggish experience. To make it easier for others, I’ve created a little script that will automatically download, convert, and install Booksmart in Linux.

[stextbox id="info"]Note: While, the following instructions are Ubuntu specific, a determined other-distro user could replace the apt calls in the script with calls to the appropriate package management tool.[/stextbox]

[stextbox id="download" big="true"]
Blurb Booksmart Installer
Author: Ramblurr, version: 0.2, updated: December 12, 2009,
Requires Java Version 1.6 or higher, Ubuntu Linux.[download id="1"][/stextbox]

Setting up the Location

After downloading the package, open up a terminal, and then extract the contents of the tarball.

tar zxf Blurb_Booksmart_Installer-0.2.tar.gz

Change to the directory where you want booksmart installed, and copy install.sh to that location.

Example:
cd /home/username/bin/
cp /path/to/Blurb_Booksmart_Installer/install.sh .

Run the Installer

With the terminal still open to the location where you want booksmart installed, execute the install script. Don’t forget to give it executable permissions first.

chmod +x install.sh
./install.sh

It will download all the necessary files to install booksmart 2.5.1. The process might take awhile on a slow internet connection.

Edit the launcher script

Once the script has finished executing, Booksmart should be installed in the current directory. You’ll need to edit the launcher script, so it knows where Booksmart is. The launcher script is booksmart.sh in the tarball.

Open it in an editor and edit the second line to point to the directory you created in step slash booksmart.

Example: BOOKSMART_PATH=/home/username/bin/booksmart

You can put this launcher script anywhere and use it to start bookmark. Don’t forget to give it executable permissions.

By default, Booksmart saves its data in $HOME/My Documents if you don’t like this you can change it by opening Booksmart and running File > Change Data Location.

Booksmart running in Kubuntu

Booksmart running in Kubuntu


Happy Blurbing : )

Parley meets Android in Cairo

April 29th, 2009  |  Published in Code  |  View Comments

I’m exactly three months into my Arabic studies in Cairo, where I’ve been taking time off university studies and Amarok development. I’ve realized that acquiring a large vocabulary as fast as you can manage is a crucial part of studying a language intensively, and thanks to the awesome KDE-Edu folks I’ve been successfully barely keeping up with the hundreds of new words I’m assigned per week with Parley.

The major problem I have with Parley is that I have to be in front of my computer to use it!

I know you’re laughing. That’s like saying a major fault of beer is that you have to drink it to get drunk, after all Parley is a computer program.
You’re right, just because I hardly find the time to actually use the computer doesn’t mean I should lay the blame on Parley. Technically, I should blame the denizens of Cairo and their insane traffic. Seriously, too many of my life’s hours are wasted in the smelly, stuffy, taxis of Cairo (today was particularly bad, pardon the rant).

This past weekend I ignored the towering pile of homework and whipped up a little application for Android devices that groks Parley’s kvtml2 file format, displays lessons, and provides flashcard exercises. My app is really an Android Port of the J2ME mobile application MobVoc. Michael, the MobVoc developer, did most of the hard work for me: parsing kvtml2 files into java data structures. Mad props to Michael; I definitely plan to pass along any contribute any bug fixes/optimizations I make to his code (such as sub-lessons support).

The application – unimaginatively dubbed ParleyDroid for now – is extremely bare-bones. Here is the current feature set

  • Pick a kvtml2 file from the SD card
  • Choose 1 or more lessons to practice
  • View flashcards of the words in the selected lessons.
  • Gesture support in the flashcards: Long Press marks card as known, Fling Left/Right changes to Next/Prev card.
  • Each practice session has a short-term memory: i.e., if you mark a card as known you won’t see it again that session but if you restart the session you will.
  • Arabic Support – if the 2nd language is Arabic, it will be rendered correctly on screen

The last feature is probably the most noteworthy. Android, by default does not support RTL or non-Latin scripts, but with a little Android-trickery-that-deserves-another-blog-post I’m finally able to practice my vocabulary in the back of the taxi or while walking along the Nile.

Binary and Source:
ParleyDroid Source
ParleyDroid Android Binary

Obligatory Screenshots (click for full view):
ParleyDroid Pick File ScreenParleyDroid Lessons Screen
ParleyDroid First Word ScreenParleyDroid Second Word Screen w/ Arabic

The Vodafone G1

January 30th, 2009  |  Published in Technology  |  View Comments

I’m writing this post from my G1 (thanks to the PostBot wordpress application) in Cairo, Egypt using Vodafone Egypt’s 3G service.

Before coming over I was told (by T-mobile) that my phone absolutely would not work, because the G1 only works with the “google network” that T-Mobile has exclusive access to. Without this “google network”, I was told, my phone wouldn’t turn on and was essentially a paper weight (exact words). Yeah right.

I convinced the customer service representative to give me my unlock code (which you are entitled to after 90 days of service), and told her I didn’t want the outrageous international plan (15$/megabyte). Note: it takes 1 or 2 days for the unlock code request to be processed and emailed to you.

Getting my G1 working in Egypt was quite simple. I bought a prepaid sim card from one of the Vodafone shops you’ll find on every street (literally) for 45 L.E. (approx. $6) and a 100 L.E. (approx $17) card for 100 minutes.

After putting the simcard in and powering up the phone, I was greeted with an unlock dialog into which I entered the T-Mobile unlock code. Poof! Instant cellular access. 3G service was slightly more complicated. You have to add a new APN in the mobile network settings.

Instructions for adding the Vodafone Egypt APN

  1. Open Settings > Wireless Controls > Mobile Networks > Access Point Names
  2. Click Menu > Add APN
  3. Enter the following information
    Name: Vodafone Internet
    APN: internet.vodafone.net
    User: internet
    Pass: internet
    APN type: default
  4. Leave every other field at the default setting
  5. Reboot the phone
  6. Enjoy 3G service

My hands are cramping from writing this post on the tiny keyboard. Pardon any spelling/grammar mistakes. My hands are done.

The Twitter Account Jive

January 25th, 2009  |  Published in Life

Short version: @Ramblurr is my new public Tech/FOSS twitter account, please follow it.

I have been on twitter for quite awhile, for several years at least. My original use case for twitter was something like a web/sms based IRC channel for my good friends from my hometown. Twitter is responsible for keeping us close in the years after we parted ways for different colleges. This use case worked great until my online communities (KDE, tech industry, etc) started jumping aboard the twitter boat.

At first I tried to handle both social spheres—online professional, and raucous college student—with the same account. Needless to say one group did not appreciate the drunken tweets or lengthy star wars quotation contests, and the other group did not appreciate my Java vs C++ discussions. Eventually, I made my account private and left the online technology twitter sphere, but now things are changing.

Twitter has risen to prominence in the online community, and I am missing out on this form of social communication with my fellow technology and open source enthusiasts. So, I’ve renamed my private account, and opened my original for public use.

Please feel free to follow @Ramblurr, my public account, without need to fear a flood of inane, hyper-context-sensitive, ramblings between friends.

Android: Now With 100% More Radio

January 24th, 2009  |  Published in Technology  |  View Comments

Last week I mentioned a secret project involving Last.fm. Well today it was finally announced! Since late last November I, and several other open source android developers, have been working together with the official last.fm developers on an Android application that would leverage the full suite of Last.fm features. Today this app was officially released to the Android Market.

Not only does the application bring the full power of last.fm radio to the Android platform, but it also demonstrates the power of open source development in a commercial setting. When last.fm expressed interest around late November in developing an android application to be featured in the Marketplace, Google responded with an enthusiastic thumbs up but included a deadline of mid-January. A month and a half is an incredibly short turnaround time for a fully featured mobile application.

Last.fm contacted several 3rd-party developers who had already began work on their own last.fm android clients, and suggested that we work together and pool our resources. You can take a peek at the results below. I am proud of our product after such a short development cycle, even though there exist several outstanding bugs at launch time. We already have a slew of bug-fixes and feature additions in the tubes for another release.

Keep an eye out for posts announcing the opening of the site where the source code can be found, as well as bugs and feature requests submitted. Due to licensing issues the source code repository and issue tracker will be delayed several days.

(click for full image)