Blog posts by Naveed Ahmad2010-01-12T11:44:03.0000000Z/blogs/Naveed-Ahmad/Optimizely WorldConfiguring video settings in EPiServer Relate+/blogs/Naveed-Ahmad/Dates/2010/1/Configuring-video-settings-in-EPiServer-Relate/2010-01-12T11:44:03.0000000Z<p>I have recently worked on a project using standard out-of-box EPiServer Relate+ website and templates. As every module is very well written and integrated, the only missing piece was the video upload settings.</p> <p>It took me a while to find out how to get these settings and update the site so that end user can upload video.  I thought it will be a good idea to write up a small blog post.</p> <p><strong>Steps</strong></p> <p>Step 1. Navigate to http://world.episerver.com/System/Video-Service/ and login with your usual world.episerver.com account</p> <p>Step 2. Select register account as shown below</p> <p><a href="/link/15dc296a214c4e96b691c416a9ebcc0f.jpg"><img title="register_video" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="71" alt="register_video" src="/link/cef2ebeb41524e68809a6d96ec9b5150.jpg" width="384" border="0" /></a> </p> <p>Step 3. The next screen will show your information, make sure all the required fields are there and click 'Next' (I have removed my auto generated email address)</p> <p><a href="/link/d2f47f0bc5e147b6b5a37eb10f15222b.jpg"><img title="video_next" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="111" alt="video_next" src="/link/70fbc7e6aa784d2c9f5957114791562b.jpg" width="383" border="0" /></a> </p> <p>Step 4:  Read and Check the 'Terms & Condition' box. As I am using it for demo purposes, I would select the development license.</p> <p><a href="/link/2ec1004a3e9d46609eebc52e182fdfdd.jpg"><img title="video_confirm" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="215" alt="video_confirm" src="/link/ff6dc689f9fc4243be983eca82f245fb.jpg" width="331" border="0" /></a> </p> <p>Step 5: If your account is successfully created, you would be shown a confirmation page with  <cdnProvider>  settings at the bottom of the page.</p> <p> </p> <p>Step 6: Open your EPiServer Relate+ web.config and find the <cdnProvider> node and replace the <b>accessKey </b>and <b>secretAccessKey </b>values with the actual values generated at the end of the process.</p> <p> </p> <p><strong>Tips</strong></p> <p>Navigate to the actual site and try uploading any video. The video service modules converts well known movie formats like mp4,mpeg into Flash format so it may take a while to upload your video and it will depend upon your system, network traffic and video file size.</p> <p>Secondly, video files may not appear instantly on the page so just be patient.</p>EpiChatty – your personal EPiServer assistant – Gadget/blogs/Naveed-Ahmad/Dates/2009/11/EpiChatty--your-personal-EPiServer-assistant--Gadget/2009-11-18T15:14:18.0000000Z<p>Hi, here is my small contribution to the Gadget competition. Meet EpiChatty, your personal assistant (chat bot) that can give you help and information about EPiServer CMS. It could serve as a help desk assistant to EPiServer CMS editors / administrators / developers / designers and to content editors.</p> <p> </p> <p>The main idea behind this is to have Google Talk client embedded as a gadget on dashboard and run EPiChatty as a console application which can interact with the user and give appropriate response. </p> <p> </p> <p>Google Talk implements Extensible Messaging and Presence Protocol (XMPP) protocol which essentially exchange messages using XML between clients and servers. More information about this protocol can be found <a href="http://xmpp.org/" target="_blank">here</a> and more information about Google Talk API can be found at <a href="http://code.google.com/apis/talk/" target="_blank">here</a> </p> <p> </p> <p>As Google do not provide any C# implementation of XMPP protocol and as I am primarily a C# developer,(not brave enough to try Google’s java based implementation for this <a href="http://code.google.com/appengine/docs/java/xmpp/overview.html" target="_blank">protocol</a>), so I have to look for different options. After bit more research,  I found out that <a href="http://www.ag-software.de/agsxmpp-sdk.html" target="_blank">agsXMPP</a> is an open source SDK / library for the XMPP protocol which is written in managed C# and is dedicated to .NET and Mono technologies. More information about this SDK can be found <a href="http://www.ag-software.de/agsxmpp-sdk.html" target="_blank">here</a> .</p> <p> </p> <p>With all my components in place, I have to learn basics about the new protocol (which I have never used before) and also use the SDK to implement it (easy).  It took a while to do a ‘hello world’ kind of code, as Google server require a different port (5222) than 80 to be open as well so that it could communicate. Once I figured that out with help from support team at <a href="http://www.ag-software.de/agsxmpp-sdk.html" target="_blank">agsXMPP</a>, next thing was to implement the automated behaviour for the asked questions. </p> <p> </p> <p>There are several ways that this could be implemented, but I went for the XML based approach. I have stored questions and answers in a set patterned way so that if user ask ‘what is’ or ‘how to’ or any ‘generic’ question, a patterned would be matched and answer would be returned. The main reason behind this approach was its simplicity and extendibility. </p> <p> </p> <p>Here is the screen shot how the EPiChatty gadget will look like on dashboard</p> <p><a href="/link/01facde39f864d29b9e71ce94b2176b8.jpg"><img title="epichatty_not_signed_in" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="388" alt="epichatty_not_signed_in" src="/link/e8fec63741d64369b60f40b89334cd71.jpg" width="292" border="0" /></a> </p> <p>The gadget view contains embedded Google Talk client and the controller simply returns the view.  The login it will redirect to central Google account services where you could login and then it will return you back to the dashboard.</p> <p><a href="/link/7b15d33b78144464958bf4474be6dc0b.jpg"><img title="epichatty_logged_in" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="407" alt="epichatty_logged_in" src="/link/8c3642610b6d4f3a90467b0e61c4a2cf.jpg" width="301" border="0" /></a> </p> <p> </p> <p>once login you can ask ‘what is’ or ‘how to’ or ‘generic’ questions</p> <p><a href="/link/4b6bd176969b4b07a2dbcbfbc60baeb4.jpg"><img title="epichatty_logged_in2" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="405" alt="epichatty_logged_in2" src="/link/23bcc51227e041bd9855b4d52ae960c5.jpg" width="315" border="0" /></a> </p> <p> </p> <p>Here is the screen shot of the console application showing that EPiChatty is available to chat</p> <p><a href="/link/4530b56b49c04b278624f588a749586c.jpg"><img title="epichatty_console" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="179" alt="epichatty_console" src="/link/97a0740f8f3142cca3ed22fa853e4700.jpg" width="351" border="0" /></a> </p> <p> </p> <p>I have made the EPiChatty as a console application so that it could run separately from the main application as a light weight process in background. In case you want to start chatting and test it out, send an invite to <a href="mailto:epichatty@googlemail.com">epichatty@googlemail.com</a> . I will be hosting it till the end of December 2009 and then EPiChatty will be on long vacations.</p> <p> </p> <p>Source files contain every thing apart from the password for the EPiChatty Google’s account. If you would like to host your own, you can create a new Google account and replace the username and password in console application and run the console application.</p> <p><a href="http://cid-d07e913ed01d978e.skydrive.live.com/self.aspx/.Public/EpiChatty.zip">Source</a></p>