Final Cut Express 4 notes

I rarely use Final Cut Express, usually iMovie does everything I need. Whenever I come back to FCE though, I always forget how to do some of the simplest tasks. A few reminders for myself:

  • To add a transition between clips you need in and out points set first to define where the transition should start/end (on both of the clips between which you are adding the transition)
  • Double-click a clip in the timeline to load it into the viewer to edit it’s properties
  • Overlay videos by dragging each clip to a track in the timeline. You can resize, move and clip each overlaid video in the ‘Motion’ properties tab in the viewer
  • To use the Chroma Key effect to overlay a video, drag the Chroma settings tab out of the viewer, then use the ‘dropper’ to select the background color in the video clip

Maven settings.xml config for default Sonar db server

If you want to set a default Sonar configuration for all your Maven projects to run against, you can add your settings as a profile in the profiles section in your default settings.xml in either your ~/.m2 dir or your maven_install_dir/conf dir (depending which you’re using)

<profiles>
    <profile>
            <id>sonar</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <!-- MySQL -->
                <sonar.jdbc.url>
                    jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8
                </sonar.jdbc.url>
                <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
                <sonar.jdbc.username>your_sonar_db_userid</sonar.jdbc.username>
                <sonar.jdbc.password>your_sonar_pwd</sonar.jdbc.password>
            </properties>
        </profile>
  </profiles>

 

Maven packaging notes

maven-dependency-plugin: Copy dependent jars into a /lib/ dir to be bundled with the package goal (note that you can’t have jars within jars and have them accessible on the classpath, so this just helps package the jars with your distribution):

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>2.6</version>
    <executions>
        <execution>
            <id>copy-dependencies</id>
            <phase>prepare-package</phase>
            <goals>
                <goal>copy-dependencies</goal>
            </goals>

            <configuration>
            <outputDirectory>target/classes/lib</outputDirectory>
            <overWriteIfNewer>true</overWriteIfNewer>
            </configuration>
        </execution>

        <execution>
            <phase>generate-sources</phase>
            <goals>
                <goal>sources</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <verbose>true</verbose>
        <detail>true</detail>
        <outputDirectory>.</outputDirectory>
    </configuration>
</plugin>

 

 

Weblogic JSP precompile on deploy

Add this to weblogic.xml:

    <wls:jsp-descriptor>
      <wls:precompile>true</wls:precompile>
        <wls:precompile-continue>true</wls:precompile-continue>
    </wls:jsp-descriptor>