Sponsors

News

Jobping Laurent Kempé MVP JetBrains Academy Member Certified ScrumMaster

Contact

My status

View Laurent Kempé's profile on LinkedIn
XING
twitter
facebook


Xbox 360



Map

Locations of visitors to this page

.NET Dudes

Family

French .NET Dudes

Friends

Jobping

Links

Tech Head Brothers

February 2008 - Posts

NoteToSelf: aspnet_merge.exe, Team City and Web Deployment for Visual Studio 2008

I had to modify the Microsoft.WebDeployment.targets file to be able to compile through Team City the Web Deployment 2008 project !

<!-- Changed KEL ExePath="$(FrameworkSDKDir)bin" -->

    <Target Name="AspNetMerge" Condition="'$(UseMerge)' == 'true'" DependsOnTargets="$(MergeDependsOn)">
        <AspNetMerge
          ExePath="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin"
          ApplicationPath="$(TempBuildDir)"
          KeyFile="$(_FullKeyFile)"
          DelaySign="$(DelaySign)"
          Prefix="$(AssemblyPrefixName)"
          SingleAssemblyName="$(SingleAssemblyName)"
          Debug="$(DebugSymbols)"
          Nologo="$(NoLogo)"
          ContentAssemblyName="$(ContentAssemblyName)"
          ErrorStack="$(ErrorStack)"
          RemoveCompiledFiles="$(DeleteAppCodeCompiledFiles)"
          CopyAttributes="$(CopyAssemblyAttributes)"
          AssemblyInfo="$(AssemblyInfoDll)"
          MergeXmlDocs="$(MergeXmlDocs)"
          ErrorLogFile="$(MergeErrorLogFile)"
          />

        <CreateItem Include="$(TempBuildDir)**\*.*">
            <Output ItemName="PrecompiledOutput" TaskParameter="Include" />
        </CreateItem>
    </Target>

Posted: Feb 29 2008, 06:50 PM by lkempe | with 2 comment(s) |
Filed under:
Nice Resharper 4 feature

Today I am developing for my company innoveo solutions, and hope to be able to tell you on what soon ;-)

I came accross this great new feature of JetBrains ReSharper 4, read more about all features on this page.

I used there:

  • Object and collection initializers
  • Implicitly typed locals and arrays
  • Code Cleanup

I will soon have to tell more about the usage of JetBrains Team City by innoveo solutions and personally!

Silverlight Streaming updated for Mix'08!

First of all it goes from 4Gb to 10Gb, whouah!

Get your free 10 GB hosting space now!

You can manage Video directly from the administration interface now!

Specify the video to upload using the Browse button, then type in a name and click on Upload. The video file must be smaller than 105 MB. This is equivalent to 10 minutes of video playback at a bit rate of 1.4 Mbps. Please wait as the upload may take a few minutes

And more

Silverlight Streaming (progressed to beta) – Use our infrastructure to deliver great experiences

Silverlight™ Streaming by Windows Live is the companion service to Silverlight. We are increasing the free hosting and storage limit to 10 GB and can now stream HQ content at 1400Kbps (see a sample here). During the SLS alpha we saw most scenarios were media driven (i.e. video/audio) – to make it easier for content producers to get their media in front of their users, we have introduced a Video Management scenario which allows media to be uploaded in many formats (Flash, DIVX, MPEG-4, QuickTime, H.264, H.263, WMV1, WMV2, MPEG-1, MPEG-2) and we will transcode the content into a Silverlight™ compatible WMV/VC-1 format. For developers we have introduced a new WebDAV API for Silverlight Streaming which allows for file by file management and Web Folders support - for more information go here.

The updated service and documentation will be available next week.

image_thumb14 image_thumb12

image_thumb32

The new version of Tech Head Brothers will leverage all those new possibilities!

Tech Head Brothers new authoring tool, step 6

Another day another step!

Tonight I wanted to work on the list and on the optimization a bit because I did use to much time the parsing of the whole WordML document.

I also tried the deployment through clickonce and two of my fellow tested it. Thanks to Sébastien Pertus and Grégory Renard (alias Rédo) for the quick test.

Here is the result; left window Word 2007 and right window Internet Explorer after clicking on the preview (Pré-visualisation):

As you can see the rendering is quite the same with pictures, bullet list with bold and link! and subection titles.

The preview is done very fast now and works using LINQ to XML to parse the WordML and doing a projection to Tech Head Brothers well formed XML, then a XSLT is run to produce the HTML.

And is fast again now after the optimization.

So the next steps will be:

  1. Projection of hyperlink
  2. Projection of picture
  3. Projection of numbered list and bullet list
  4. Fixing bugs found by Sébastien and Rédo
  5. Picture caption
  6. Giving the possibility to insert source code (but got an idea how to do it now).
  7. Projection of the source code
  8. Adding the possibility to the author to post the article directly from Word to Tech Head Brothers web site using secured web services made out of WCF

See you in the next post about my trip to a better community publishing tool for my portal Tech Head Brothers using Word 2007, WordML, C#, LINQ, VSTO 3...

Tech Head Brothers new authoring tool, step 5

Tonight my goal was to be able to view a picture into the web browser!

It is really cool to be able to copy a picture into Word, click on preview and see it in the HTML rendered out of my XML coming from WordML. So cool.

So the next steps will be:

  1. Projection of hyperlink
  2. Projection of picture
  3. Projection of numbered list and bullet list
  4. Giving the possibility to insert source code
  5. Projection of the source code
  6. Adding the possibility to the author to post the article directly from Word to Tech Head Brothers web site using secured web services made out of WCF
Tech Head Brothers new authoring tool, step 4

I took some time this evening to work a bit on the new version of the publishing tool for Tech Head Brothers.

Tonight goal was to be able to have a first preview of the HTML rendering in offline mode.

In this scenario an author launch the Tech Head Brothers Word 2007 template, write the content of his article, then click on preview ("pré-visualisation" on the picture) ribbon button. This is a full offline scenario.

Behind the scene, the C# code associated with the Word 2007 template will do a projection of WordML to my own XML document format using a predefined XML Schema. This projection is done using LINQ to XML. Then it will make a XSLT transformation on that projection result, save the result as a html file and launch Internet Explorer to see the result, as you can see on the picture:

I am still missing some projection code for hyperlink, list, pictures and source code. But it is a very good start after 3-4 evening of work.

So the next steps will be:

  1. Projection of hyperlink
  2. Projection of picture
  3. Projection of numbered list and bullet list
  4. Giving the possibility to insert source code
  5. Projection of the source code
  6. Adding the possibility to the author to post the article directly from Word to Tech Head Brothers web site using secured web services made out of WCF

I really like LINQ (hidden message to a friend at MS ;)

Tech Head Brothers new authoring tool, step 3

I started working on the GUI defining the Ribbon.

Now it was time to work on the mapping of the WordML to my XML Schema.

Here is a first result of a Word document in which I extract the different section, title and paragraph that are injected in a well formed XML document using my XML Schema.

Not bad after only some hours of work!

It is leveraging LINQ to XML to parse the WordML and build my targeted XML Document.

Aurel, Redo: What do you think?

Tech Head Brothers new authoring tool, step 2

Today I had the time to go on a bit with the new version of Tech Head Brothers, as you can see on the picture.

I decided to use my last article as a test case for the tool.

I went from the Ribbon (Visual Editor) to Ribbon (XML), it is not anymore grahical edition of the Ribbon but I can do more than what I was able to do in the Visual Editor.

I started to implement some parsing logic, I first made a trial with an idea of Sébastien Ros and Fabien Reinle but finally got back to LINQ to XML to parse the WordML.

The general idea is to output a well formed XML document out of the WordML document.

The architecture I decided to use at the moment is to have special Word styles mapped to some part of my target XML structure. Doing so I can easily parse the WordML like this to get all pagaraph with Heading1 style:

var sections = 
    from p in styledPara
    where p.Elements(w + "pPr").Elements(w + "pStyle").First().Attribute(w + "val").Value == "Heading1"
    select p;
ReSharper 4 EAP started tonight

You might get access to the early bits on the following page.

Read more about it on the ReSharper 4.0 EAP Notes page:

C# 3.0 support 

  • Implicitly typed locals and arrays
  • Extension Methods support
  • Object and collection initializers
  • Automatic properties
  • Anonymous types
  • Lambdas

New and updated features

  • External Annotations
  • Code Cleanup
  • Plenty of new analyses
  • Complete Statement
  • Completion with CamelHumps
  • Refactorings
  • Recent Edits
  • To-do items on identifiers and string literals
  • Support for solutions using different targets
  • Project References
  • Live Templates Editor
  • Dozens of other features

A general overview of the ReSharper 4.0 Roadmap!

Just started to install it!

Vista SP1 installed

After some cleanup on my C: drive to get back to the 7Gb minimum free space needed, an update to the latest drivers of ATI and finally a backup with Acronis True Image Workstation, I was ready to install the Windows Vista SP1.

The installation took a bit more than 1h and was successful!

Update: Take care it really needs 7Gb on the C: drive to install!

Posted: Feb 15 2008, 10:20 AM by lkempe | with 14 comment(s)
Filed under:
More Posts Next page »