Livet er vidunderligt RSS 2.0
# Monday, 26 September 2011

public interface IService
{
    void DoIt(out string a);
}

[TestMethod]
public void Test()
{
    var service = new Mock<IService>();
    var a = "output value";
    service.Setup(s => s.DoIt(out a));

    string b;
    service.Object.DoIt(out b);
    Assert.AreEqual("output value", b);
}


[TestMethod]
public void TestForOutParameterInMoq()
{
    //Arrange
    var _mockParameterManager = new Mock<IParameterManager>();

    Mock<IParameter> mockParameter = new Mock<IParameter>();
    //Parameter affectation should be useless but is not. It's really used by Moq 
    IParameter parameter = mockParameter.Object;

    //Mock method used in UpperParameterManager
    _mockParameterManager.Setup(x => x.OutMethod(out parameter));

    //Act with the real instance
    UpperParameterManager.UpperOutMethod(out parameter);

    //Assert that method used on the out parameter of inner out method are really called
    mockParameter.Verify(x => x.FunctionCalledInOutMethodAfterInnerOutMethod(), Times.Once());

}

[TestMethod]
public void TestForOutParameterInMoq1()
{
    var mock = new Mock<IFoo>();
    // out arguments
    var outString = "ack"; // TryParse will return true, and the out argument will return "ack", lazy evaluated
    mock.Setup(foo => foo.TryParse("ping", out outString)).Returns(true);
    // ref arguments
    var instance = new Bar1(); // Only matches if the ref argument to the invocation is the same instance
    mock.Setup(foo => foo.Submit(ref instance)).Returns(true);
}

[TestMethod]
public void TestForOutParameterInMoq3()
{
    var mock = new Mock<IFoo>();
    mock.Setup(foo => foo.DoSomething("ping")).Returns(true);  
    // out arguments
    var outString = "ack";
    // TryParse will return true, and the out argument will return "ack", lazy evaluated
    mock.Setup(foo => foo.TryParse("ping", out outString)).Returns(true);
  
    // ref arguments
    var instance = new Bar1();
    // Only matches if the ref argument to the invocation is the same instance
    mock.Setup(foo => foo.Submit(ref instance)).Returns(true);  
   
    // access invocation arguments when returning a value
    mock.Setup(x => x.DoSomething(It.IsAny<string>())).Returns((string s) => s.ToLower()); // Multiple parameters overloads available  
    // throwing when invoked
    mock.Setup(foo => foo.DoSomething("reset")).Throws<InvalidOperationException>();
    mock.Setup(foo => foo.DoSomething("")).Throws(new ArgumentException("command");  
    // lazy evaluating return value
    mock.Setup(foo => foo.GetCount()).Returns(() => count);  
    // returning different values on each invocation var mock = new Mock<IFoo>();
    var calls = 0; mock.Setup(foo => foo.GetCountThing()).Returns(() => calls).Callback(() => calls++);
    // returns 0 on first invocation, 1 on the next, and so on
    Console.WriteLine(mock.Object.GetCountThing());

}

Monday, 26 September 2011 22:45:57 (Romance Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Software Development
# Saturday, 11 June 2011

Avid recommends installing the 1.1 Update for all users of the 1.0 version of Avid Studio. Once installed, the Avid Studio 1.1 Update cannot be uninstalled separately, but only with a complete uninstall of the full Avid Studio installation.

http://cdnexpress.pinnaclesys.com/SupportFiles/Avid_Studio/Update.exe

This is a summarized fix list:
General:

  • Many performance and stability improvements
  • Improved memory efficiency
  • Fixed several localization issues

Library:

  • Corrected several issues with information displayed for certain media items
  • Correctly reset view filter when adding a new view tab
  • Fixed some issues with scene detection

Movie editor:

  • Corrected issues with VST plug-ins
  • Improved behavior when adding clips to a locked track
  • Effects can be previewed from the library
  • Effect indicator now displayed properly on clip for Stabilize effect
  • Corrected issues in Fractal Cloud Effect
  • Fixed problem when using Pan and Zoom effect on a clip on top of a visible background
  • Corrected issues when using some MP4 files in projects
  • Corrected frame rate issues when using some 1080/30p video
  • Improved behavior in timeline navigator

Title Editing:

  • Fixed issue with unwanted cursor jumps when entering text
  • Improvements to title editing user interface behavior

Disc editing:

  • Menus: Main button now correctly hidden on first menu
  • Menus: Fixed issue with incorrect button highlights on DVDs
  • Menu Designer: Fixed issue with inconsistent layer names
  • Menu Designer: Fixed problem when undoing creation or move of a button
  • Menu Designer: Improved context Help information
  • Fixed issues causing chapter playback failures on dual-layer DVDs
  • Use user-supplied name as DVD/BD image name instead of project name
  • DVD simulation: correctly start playback from selected menu

Import:

  • Fixed issues with ‘Ignore Duplicates’ mode
  • Show proper thumbnails for DVD chapters when selecting DVD in Importer

Export:

  • Corrected export size calculation for Blu-Ray discs
  • Fixed quality issues with AVCHD encoding
  • Fixed several issues with DivX file export

SmartMovie:

  • Improvements to movie and clip duration calculations
Saturday, 11 June 2011 20:33:02 (Romance Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Video redigering
# Friday, 03 June 2011

I’ve been trying to create a 3.3hr long Blu-ray disc image using Avid studio. I’ve tried multiple formats and even making the content into an HD video file and re-inserting it into Avid so it would only have to export one timeline. Every time I check the disc image the picture starts to pixelate during any movement at around ten minutes and stays that way for the rest of the movie. I have tried with H264 and Mpeg2 and all the HD formats and resolutions. Same result every time.

Does anyone know what’s causing this and what I can do to fix it?

Friday, 03 June 2011 18:53:00 (Romance Daylight Time, UTC+02:00)  #    Comments [1] - Trackback
Video redigering
# Friday, 27 May 2011
Chokoladekage med kokos

Energi pr.stk: 1381 KJ (330 kcal)
Energifordeling pr. 100 g.
Protein: 5%
Kulhydrat: 63%
Fedt: 42%

  1. 1Til en lille bradepande:
  2. 2Tænd ovnen på 175 grader.
  3. 3Pisk smør, sukker og vanilje med en elpisker, til det er hvidt og luftigt.
  4. 4Rør æggene i dejen et ad gangen.
  5. 5Bland kakao med hvedemel og bagepulver, sigt det i dejen, og rør godt rundt.
  6. 6Hak chokoladen, og vend den i dejen til sidst.
  7. 7Beklæd en lille bradepandeform med bagepapir, og smør den med lidt fedtstof (fx smør eller solsikkeolie).
  8. 8Hæld dejen i formen, og bag chokoladekagen 40-45 min.
  9. 9Afkøl kagen på en bagerist.
Friday, 27 May 2011 21:40:00 (Romance Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Mad/Kager
# Sunday, 15 May 2011

How to use Picture in Picture with Avid Studio

Adding a Picture-In-Picture (PIP) effect is a little different in Avid Studio than in previous Pinnacle Studio versions. The PIP effect is found in the Effects Editor. To access it either double-click on the clip that you want to apply the effect to or right-click on the clip and select “Open Effect Editor”.

Note: Remember Avid Studio uses a top-down overlay priority system. So track 1 overlays track 2, etc. Make sure to add the PIP effect to the track that you want on top.

Once in the Effects Editor select 2D-3D. Then select Studio PIP, or if you want a PIP window with a different shape you can select MultiShape PIP.

Once you select the PIP effect you then have the option to adjust the settings. The Default is a Top Right position PIP window with no shadow. There are other presets to change the PIP location such as Top Left, Bottom Left, Centered, etc. Additionally you can change the following settings:

1. Position

2. Size

3. Cropping

4. Video (Transparency)

5. Border

6. Shadow

As with other Effects the Picture-In-Picture effect is keyframable to allow for maximum utility.

Sunday, 15 May 2011 15:38:36 (Romance Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Video redigering
# Tuesday, 03 May 2011

For more information regarding AVID Studio, read the information below.

All this content is summarised on the website: All about AVID Studio.

There is a bug in Avid Studio software that enables the Red Giants plugins does not show if the program is installed on the Danish, Norwegian, Swedish or Finnish.

At present there is no solution other than to install the program in English.

Tuesday, 03 May 2011 18:46:49 (Romance Daylight Time, UTC+02:00)  #    Comments [1] - Trackback
Video redigering
# Friday, 11 February 2011

After working with Privotal Tacker for some time the demands raised and a new tool was need, now I am using VersionOne that at the moment covers it all.

VersionOne

Privotal Tacker was excellent as starter of and agile project.

Pivotal Tracker

To manage your development process, use Pivotal Tracker, an agile planning tool that can be used on all of your projects. 

Friday, 11 February 2011 15:58:40 (Romance Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Software Development
# Wednesday, 09 February 2011
# Saturday, 29 January 2011
Married with one from china, in Denmark or China ?
Saturday, 29 January 2011 15:24:15 (Romance Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Love
# Sunday, 31 October 2010

I had the same problem and got it to work.

I first did the following:-

>Start>Settings>Control Panel>Administrative Tools>Services<

and stopp the ‘Nero Update Service’.
(This service might be renamed on some systems to
@C:\Programme\Nero\Update\NASvc.exe,-200)

Once the service is stopped open your internet browser and do the following:

1.) –> enter to the address field http://install10.nero.com/update10/content.xml
2.) –> refresh the Web Browser by holding the “SHIFT key” and using the “refresh page” function
3.) –> enter to the address field http://install10.nero.com/update10/content.md5
4.) –> again refresh the Web Browser by holding the “SHIFT key” and using the “refresh page” function
5.) –> restart Nero ControlCenter and check for updates again

The update should work as far as updates are available now.

Used internet explorer to to it (probably not important that it has to be that, just that sometime I've had to use it for things so tried it for that)

It allowed me to do a check for updates again.

I disabled the backitup agent

choose to update the control center by itself first. It installed. rebooted the computer.

Rechecked for updates, (disabled the agent again, as I forgot to stop it from launching at start up)

select backitup and let it go for a few minutes (about 2-3) and it downloads.

Sunday, 31 October 2010 12:24:19 (Romance Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Software Development
Archive
<2011 September>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2017
Christian R. Glinnum
Sign In
Statistics
Total Posts: 128
This Year: 0
This Month: 0
This Week: 0
Comments: 16
Themes
All Content © 2017, Christian R. Glinnum
DasBlog theme 'Business' created by Christoph De Baene (delarou)