Archive

Posts Tagged ‘Visual Studio 2008’

Using FCKEditor to embed Flash content; does not appear in IE

April 3rd, 2009 Patrick No comments

This is because FCKEditor only create a <embed> element to display Flash content which does not work for IE. IE requires the <object> element to embed Flash in a webpage where else <embed> only works for Firefox based browsers. This links shows the way to embed Flash object in HTML.

Changing the JavaScript code in FCKEditor is a bit troublesome (my JavaScript skill is not good enough) So if you are using .NET you can refer to this method I created to wrap the <embed> element with <object> element. This is more of a quick hack so I make no guarantee it will work in your environment. I am using LINQ to XML for this so you will need Visual Studio 2008 + .NET 3.5.

Public Function UpdateEmbedTag(ByVal content As String) As String

    Const embedTag As String = "<embed "
    Const objectTag As String = _
    "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" + _
    "codebase='http://download.macromedia.com/pub/shockwave/cabs/" + _
    "flash/swflash.cab#version=6,0,40,0' id='myMovieName'><embed "
    Const embedCloseTag As String = "</embed>"
    Const objectCloseTag As String = "</embed></object>"

    '<embed type="application/x-shockwave-flash" 
    '  pluginspage="http://www.macromedia.com/go/getflashplayer" 
    '  src="http://localhost:49427/userfiles/Video/test/flash.swf" 
    '  play="true" loop="true" menu="true"></embed>
    '
    'TO
    '
    '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
        '  codebase="http://download.macromedia.com/pub/shockwave/cabs/
        ' flash/swflash.cab#version=6,0,40,0" id="myMovieName">
    '  <param name="movie" value=""/>
    '</object>

    Dim _newContent = "<div>" + content.Replace("&nbsp;", " ") + "</div>"
    _newContent = _newContent.Replace(embedTag, objectTag)
    _newContent = _newContent.Replace(embedCloseTag, objectCloseTag)

    Dim root = XElement.Parse(_newContent)

    Dim embedElementList = root.Descendants("embed")
    Dim flashLocation As String
    Dim height As String
    Dim width As String

    If embedElementList.Count > 0 Then

      For Each embedElement As XElement In embedElementList

         If ((embedElement.Attribute("pluginspage") = _
              "http://www.macromedia.com/go/getflashplayer") _
           Or embedElement.Attribute("type").ToString.Contains("flash")) Then

             flashLocation = embedElement.Attribute("src")
             height = embedElement.Attribute("height")
             width = embedElement.Attribute("width")

             If Not String.IsNullOrEmpty(width) Then _
               embedElement.Parent.Add(New XAttribute("width", width))
             If Not String.IsNullOrEmpty(height) Then _
               embedElement.Parent.Add(New XAttribute("height", height))

             Dim movie = New XElement("param")

             movie.Add(New XAttribute("name", "movie"))
             movie.Add(New XAttribute("value", flashLocation))
             embedElement.Parent.Add(movie)
         End If
      Next

      Return root.ToString

    Else
      Return content
    End If

  End Function

Visual Studio 2008 Trial VPC image updated for holidays season.

December 26th, 2008 Patrick No comments

Since the existing VPC trial image of Visual Studio 2008 will expires in end of this year, Microsoft has updated the image and posted it online. On top of that, the good folks of Redmond also created images for those wanting to run VS2008 in their Hyper-V environment.

  • VSTS “all-up” Virtual PC/Virtual Server image (6 GB download, expands to 15 GB)
  • TFS “only” Virtual PC/Virtual Server image (3 GB download, expands to 8 GB)
  • VSTS “all-up” Hyper-V image (6 GB download, expands to 15 GB)
  • TFS “only” Hyper-V image (3 GB download, expands to 8 GB)

    Something good to play with if you got nothing to do while clearing your year end leaves. :)

  • Categories: Uncategorized Tags: ,

    Adopting a ALM strategy using VSTS 2008

    November 18th, 2008 Patrick No comments

    Did 2 talks in our annual application lifecycle management event yesterday with the topics on Role of Architects and Improving Application Code Performance.

    Managed to snap some nice photos during Hoong Fai’s session.

    004

    001003

    002  

    Download my slides and materials here!!

    http://cid-732d1d42507315a3.skydrive.live.com/browse.aspx/Public/ALM%7C_20081118

    Categories: Uncategorized Tags: ,

    SharePoint innovations in Visual Studio 2010

    November 15th, 2008 Patrick No comments

    Today there is no build in support for SharePoint found inside Visual Studio 2008 except the SharePoint workflow project. If you want to create studd like Site Definition etc. you need to download the Windows SharePoint Services 3.0 Tools for Visual Studio. It is available for VS2005 as well as VS2008. So in TechEd EMEA 2008, Microsoft announced that Visual Studio 2010 tools for SharePoint will be build in for VS2010.

    Channel 9 did an interview with Reza Chrisaz on what are the new features in VS2010 for SharePoint developers. You can download the video here.  I list down some of Reza’s Key callouts

    image 
    SharePoint project templates build-in for VS2010

    image 
    At last!! Visual designer for SharePoint webparts!!

    image
    Exploring SharePoint artifacts inside Server Explorer

     

    image
    Package Explorer - sort of like the one we have with VseWSS today

    image 
    One of my favourite feature - the feature explorer

     

    image

    Adding Solution to TFS source control with Team Build and nightly build support

    Categories: Uncategorized Tags: , , , ,

    Devtalk event - Visual Basic 9

    November 14th, 2008 Patrick No comments

    Devtalk is basically a rebrand  of Microsoft Malaysia’s D3 event which normally runs on Friday morning. based on popular demand, the topic chosen for this week is VB9 and I was given the opportunity to present what I learnt from Lisa in her TechEd 2008 SEA VB sessions.

    Turn out was very good where 20 person registered but end up we got 21 participants. And best of all they stay on until end of the session which over run for 30 minutes. So what I had presented as new features in Visual Basic 9 and VIsual Studio 2008 such as

    1. New IDE features esp. Intellisense
    2. New language features i.e. LINQ to SQL and LINQ to XML
    3. Refactor! for VB tools by DevExpress

    For audience who want to download my demo and slides you can go to my Live folder here.

    Categories: Uncategorized Tags: ,

    New DevTalk monthly presentation

    October 8th, 2008 Patrick No comments

    image

    Are you looking to increase your knowledge and understanding of Visual Studio Team System(VSTS) 2008? Microsoft invites you to attend devTalks, a series of monthly technical presentation and demos.

    Visual Studio Team System 2008 as an integrated Application Life-cycle Management (ALM) solution comprising tools, processes, and guidance. In this series of technical seminar, you will learn how VSTS It enables members of your team to:

    · Collaborate and communicate more effectively with other team members and business stakeholders

    · Ensure software quality using advanced quality tools at every step of the application life cycle

    · Gain visibility into project activity and priorities to make informed decisions based on real-time data

    Below here is the agenda for the upcoming devTalks event on 14 November 2008, Friday.

    clip_image002

    For more information about the upcoming devTalks events, please visit http://www.microsoft.com/malaysia/events/devseminar.

    Categories: Uncategorized Tags: , ,

    Visual Studio 2008 SP1 is out

    August 12th, 2008 Patrick No comments

    All the goodies like Entity Framework, ASP.NET Dynamic Data and ASP.NET MVC should be available now. I am downloading the bits and checking what is released with this update.

    Download it here.

    Categories: Uncategorized Tags:

    .NET Mamak Prezzo: S+S developer with Visual Studio

    August 5th, 2008 Patrick No comments

    Had a great session this morning with Ervin doing the above mentioned topic.

    Here are the slides.

    Categories: Uncategorized Tags: ,

    Community Launch: Windows Server, Visual Studio & SQL Server 2008

    June 22nd, 2008 Patrick No comments

    clip_image002

    Four Malaysian technical communities, Intel IT Technical Community Malaysia Chapter .NET SIG, ELITE, MIND and SPAN, are coming together to host a community event focusing on technical dives of Microsoft Windows Server 2008â„¢, Visual Studio 2008â„¢, and SQL Server 2008â„¢.

    Date             : 28 June 2008, Saturday

    Venue           : Microsoft Auditorium

                               Microsoft (Malaysia) Sdn Bhd

                               Level 29, Tower 2,

                               Petronas Twin Tower, KL

    Website         : http://www.microsoft.com/malaysia/events/communityheroes/

    Categories: Uncategorized Tags: , , ,

    Heroes happen @Penang this weekend

    June 13th, 2008 Patrick No comments

    heroes_event-header

    My dear ‘ka ki lang’ in Penang, Microsoft is doing a community launch of Windows Server 2008, SQL Server 2008 and Visual Studio 2008 at Intel’s PG12 auditorium tomorrow from 8.30am - 5.30pm.

    More info here

    Categories: Uncategorized Tags: , , ,