I was working on an Titanium Appcelerator project yesterday where I needed to download a zip file to a mobile device, then extract its contents. After doing a little research, I found the Titanium Zipfile module out on Github. Ultimately, this is exactly what I needed, but there were some stumbling blocks along the way so I thought I’d document them (and the solutions) here.
First off, the latest Zipfile module (as of this writing) is version 0.1.21. This version is not available as a binary download from the Github repository. Fortunately, this post led me to a download for it.
I found this nice piece of code Dan Tamas posted in an answer to a question about downloading image files. I promptly copied that off to a FileManager.js file to ‘require’ into the app.
As I started testing, it wasn’t working and I didn’t know whether the file wasn’t getting downloaded or wasn’t getting extracted. By default, my simulator run configuration was setup for INFO. Turning to DEBUG revealed that it wasn’t able to locate the zip file. After checking that paths were being set correctly, I found this note at the Github project’s issues tab that applies to the 1.8x SDK codestream.
Replacing the following example code from the documentation:
did in fact solve the issue and everything works great from there.
We’ve recently completed a full Sametime 8.5.2 installation for ourselves and it’s really powerful. Chat, group chat, screen sharing, audio and video calls, instant meeting rooms, web meetings, chat gateways to other IM services, lots of great stuff. We’ll probably do a screencast on it at some point in the near future. As a long-time Skype and Mac user though, I miss Growl integration. If you’ve not used Growl, it’s a notification system that allows many applications to register with it and post notifications through it. For Skype, this takes the form of a little grey bubble that appears in the bottom right corner (for me) of the screen when a new chat comes in. It’s visible for about 2 seconds, can be clicked to take me directly into Skype, and then it goes away.
It’s great for monitoring conversations as they go by without necessarily having to command-tab over to that application all the time.
Anyway, I’d like to see a Sametime implementation of notifications to Growl. Growl has an API they call GNTP (Growl Network Transport Protocol) http://growl.info/documentation/developer/gntp.php#intro, that has many language bindings, including Java with jgntp, http://code.google.com/p/jgntp/ Sametime has a Java API so it shouldn’t be very difficult to build a client plug-in to add Growl capability preferences. I don’t think anyone’s done it yet, so there’s your roadmap and ping me when you’ve got it done