ashishware.com
ashishware.com RSS Feed
 

Using the PowerPoint to Silverlight exporter

While exploring the web for XAML tools and utilities, I came across this nice ‘PowerPoint to Silverlight Exporter’ utility.This nice little tool can be downloaded  here : http://www.codeplex.com/pptx2silverlight. When I ran it , I was surprised by its simple user interface. I quickly created a sample PowerPoint presentation for testing. In my presentation, I added slides containing:

  • Screenshot of my website.
  • Different fonts.
  • Clipart

My presentation looked something like this:

Sample presentation created using PowerPoint.

Then, in the ‘PowerPoint to Silverlight Exporter’ , I uploaded this presentation file and clicked on the link to convert. I was surprised to see an IE window open, containing my presentation hosted inside Silverlight Plugin.

PowerPoint to Silverlight Converter UI.

The utility seems to have a small builtin webserver for running the Silverlight application it generates. The Silverlight application exported by it, contained thumbnail view, navigation buttons and  a fullscreen button.

The exported Silverlight application.

The exported Silverlight application.

I was curious to find the physical location of the output on my disk, so checked the configuration file of the utility located in ‘C:\Program Files\HCL\PPTConverter’.  It showed me this:

<add key=”BaseAddress” value=”C:\PPT2SilverlightData” />

Exploring this location, I found the files generated after exporting test.ppt where stored in  ‘C:\PPT2SilverlightData\CustomWebServer\MyWebServerRoot\Test.ppt’ folder.

Though this utility is interesting, it seems to be converting individual slides to images. It does not actually convert elements of the presentation to XAML objects.  I think this would be too much to ask for. But if it ever happens, I can use PowerPoint to create cool Silverlight applications ;-)

Rewarded, after a long time !

Yesterday I received a complimentary copy of Fusion Charts Developer edition for blogging about Fusion Charts Free. You can read my new article on creating self-updating animated charts using Fusion Charts Free and ASP.NET. Felt so good, can’t remember when something like this happened for the last time.

Thank you Fusion Charts !

Center aligning image inside <DIV> tag

Say, you want to center align an image, inside a <DIV>. Looks like a small thing,doesn’t it ? I recently faced this problem, so I googled for a solution. This turns out to be a classic problem of web page designing. The most convenient way I discovered to solve this was to use TABLE inside the DIV.

<table>
<tr>
<td style=”width:25px;height:25px” valign=”middle” align=”center”>
<img src=”myimage” />
</td>
<tr>
</table>

It looks like center alignment is only supported for TDs in most browsers. I found a couple of solutions on the Internet, but I thought they were too lengthy and complicated for simple task like mine.

Resizing image using Javascript in IE and FireFox

A couple of weeks ago, I wrote the following code to resize an image with javascript:

imgnode.style.width= parseInt(imgnode.style.width) + 20;
imgnode.style.height = parseInt(imgnode.style.width) + 20;

This works perfect in IE. But does not work at all in FireFox. Then I changed it to:

var width = parseInt(imgnode.style.width);
var height = parseInt(imgnode.style.height);
width = width – 20;
height = height – 20;
imgnode.style.width= width + “px”;
imgnode.style.height = height + “px”;

This works great in FireFox and IE.

Some Nice Free Video Convertion/Editing Tools

  • FFMPEG : is the big daddy of open source video encoding. Don’t be surprised to find many video converting software using this under the hood. It can convert video and audio from almost any to any format. To use ffmpeg in its ‘raw’ form, you need to be comfortable working with commandline options (something Windows users hate very much) If you don’t understand what I am saying have a look at this : http://www.ffmpeg.org/ffmpeg-doc.html .If you are looking for commandline tool which you can use in your applications, you sure should seriously consider FFMPEG.

  • MEncoder : Another FFMPEG like tool. It is related to the famous MPlayer project. It can encode/decode all formats that MPlayer can open. MEncoder comes bundled with MPlayer and can be downloaded here . Here is some cool techy documentation for MPlayer http://www4.mplayerhq.hu/DOCS/HTML/en/encoding-guide.html. But you should be able to use the search engine to discover how to perform common tasks with this. I found some interesting stuff on DVD ripping and creating VCDs and DVDs on their site. VLCPlayer:This is basically a neat media player. But it can convert video from one format to another. It has very basic UI for conversion. Not so great for serious work, but can be handy. It can also be used to stream videos. I had written about its video streaming capability in one of my older articles.

  • VirtualDubb : Another nice little tool ! The good thing about it is its availability for multiple OS and small size. VirtualDubb can be used to edit videos and add logos/text, subtitles and transitions to them. The UI is not really intuitive, but if you play around with it, you will realize that it is quite powerful. At the first glance you might think, there is not a whole lot which this tool can do.
    But with a little creativity and technique this tool can be quite useful for simple video editing needs. People who own an ipod or PSP might find some features interesting.

  • Microsoft Windows Media Encoder : as the name suggests this is Microsoft’s entry in field of video encoding. The media encoder is capable of converting videos from one format to another, and works
    well with windows specific media formats (WMV,WMA). It is also capable of streaming video and audio. If your video editing needs revolve around WMV/WMAs, you should have a look at this tool. This, however, is not a full-fledged windows video editor like Windows Movie Maker.

  • 3GP Video converter :If you recently bought a budget mobile phone, then you may experience the need to convert your videos to 3GP format. This is a great tool which I have used many times to convert videos for my Motorola mobile phone. It is mainly useful to convert videos to QVGA or QCIF 3GP files. If you are looking for small program to convert your video clips for your iPod,PSP or mobile phone this is a nice tool to check out.

Now I don’t want to spook people reading this post, but there are some legal aspects related to usage of these tools. If you are planning to use any of above tools in your commercial products you should read this: http://ffmpeg.mplayerhq.hu/legal.html. Though these tools are open source, using them in commercial products might cost you !

Popular Posts

  • None found

Recent Comments

Meta