SKITSANOS FOR RIA

Skitsanos

Saturday, July 31, 2010

DB2 Express-C database now 44% lighter

Source: DB2 Express-C Team Blog

The DB2 Express-C database server is downloaded worldwide, but broadband internet is not yet universal. Because of this, we are releasing a light version of DB2 Express-C 9.7.2 for Windows. It's an amazing 44% smaller than the full download.


Unlike the lighter download, the DB2 Express-C (full) includes the Control Center, Full Text Search, Configuration Assistant, and the First Steps wizard. It also has support for non-English languages in its user interface. However, if you don't need these features, you can grab the DB2 Express-C (light) for a quicker download and a simpler installation.

For example, if you are setting up a DB2 database on a Windows server that you plan to administer remotely with Data Studio, then the light version of DB2 Express-C is a great choice.
Download it now:


Administrative tools:
Free books: 

Thursday, July 29, 2010

Open Source Status Dashboard for APIs & SaaS Services

Stashboard is a status dashboard for APIs and software services. It’s similar to the Amazon AWS Status Page or the Google Apps Status Page. Stashboard was originally written by Twilio to provide status information on its Voice and SMS APIs. Stashboard is designed to provide a generic status dashboard for any hosted service or API. The code can be downloaded, customized, and run on any Google App Engine account.

You are able to Track multiple different API or SaaS services, Set custom status messages and icons such as Up/Down, Show historical status for each service, CNAME to http://status.yourapp.com. Stashboard is written in Python and hosted on Google App Engine.

statsboard

Download: Stashboard Website

Friday, July 02, 2010

Using SWFUpload on Vzaar API

One of the ways to upload files on Vzaar is to use SWFUpload library that you can find here. It allows you to upload files from the web page without actually leaving this page. In this article we will explain how to perform file uploading with use of library and PHP.

SWFUpload is a small JavaScript/Flash library to get the best of both worlds. It features the great upload capabilities of Flash and the accessibility and ease of HTML/CSS.

SWFUpload Features

  • Upload multiple files at once by ctrl/shift-selecting in dialog
  • Javascript callbacks on all events
  • Get file information before upload starts
  • Style upload elements with XHTML and css
  • Display information while files are uploading using HTML
  • No page reloads necessary
  • Works on all platforms/browsers that has Flash support.
  • Degrades gracefully to normal HTML upload form if Flash or javascript is unavailable
  • Control filesize before upload starts
  • Only display chosen filetypes in dialog
  • Queue uploads, remove/add files before starting upload

How To

To use SWFUpload you need to have couple of things done. First of all, please make sure you have latest API library files downloaded. You can grab them from here:http://code.google.com/p/vzaar/

For this example you will need SWFupload.swf and actual php script that we are going to review below.

The whole of actions is like this

  • Set Vzaar API credentials
  • Get Upload Signature
  • Define SWFUpload settings object
  • Initialize SWFUpload with settings defined
  • Upload

Let's review step by step all these actions:

Setting Vzaar API credentials

First of all, please make sure you have your API token generated, if you haven't done it yet, you can do it here: http://vzaar.com/settings/api - you need to be logged in to see that page. To set API credentials in your PHP code you need to have token and secret (which is your Vzaar username). So authentication bits will look like this:

PHP code:

require_once 'Vzaar.php'; Vzaar::$useSandbox = false;
Vzaar::$token = "API_TOKEN_GOES_HERE";
Vzaar::$secret = "YOUR_VZAAR_USERNAME";
Vzaar::$enableFlashSupport = true;

Get Upload Signature

To get a signature we need to perform a call getUploadSignature, but because we need it within JavaScript, let's mix it all together with converting signature object into JavaScript JSON representation:

JavaScript code:

<;script type="text/javascript"> var vzaar_signature = <?php echo(json_encode(Vzaar::getUploadSignature()));?>
</script>

Define SWFUpload settings object

The signature object we obtained with inline Vzaar::getUploadSignature() PHP call we can use now to set our SWFUpload settings object:
var settings = {
flash_url : "swfupload.swf",
upload_url: 'http://'+vzaar_signature["vzaar-api"].bucket+'.s3.amazonaws.com/',
post_params: {
"content-type" : "binary/octet-stream",
"acl" : vzaar_signature["vzaar-api"].acl,
"policy" : vzaar_signature["vzaar-api"].policy,
"AWSAccessKeyId" : vzaar_signature["vzaar-api"].accesskeyid,
"signature" : vzaar_signature["vzaar-api"].signature,
"success_action_status" : "201",
"key" : vzaar_signature["vzaar-api"].key
}

Complete code you can see here

Initialize SWFUpload with settings defined

Now all we need is to use our settings object when we initialize SWFUpload:

var swfu = new SWFUpload(settings);

Upload

So, when whole thin is set, all we need to do is wait for a user to click Browse button on SWFUpload and start uploading.

Please keep in mind that this example is only for uploading videos to a storage. To make your video visible within your dashboard you need to implement also video processing call.

When video get's uploaded as result you will have XML 'message' returned to you back, <key/> node of it will be a point of your interest because it will contain long string which looks somewhat like this:
vzaar/vzb/3cb/source/vzb3cb82a5c1c3410ea6c615edbf421d48/${filename}

To process video with Vzaar::processVideo API call you would need to have 4 parameters, like GUID (obtained after uploading file to a storage), title, description and ID for the video profile (aka quality). So to get a GUID from that long string we need a bit of JavaScript:

var arrKey = this.key.split('/'); var guid = arrKey[arrKey.length-2];

This will return you vzb3cb82a5c1c3410ea6c615edbf421d48 which is your GUID. Now you can call processVideo method.

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads