Multiple initialization

Hi all,
i had a query regarding the multiple initialization as i know that this is use to improve the performance. for ex: if der is 5 year of data v can init by year wise n inprove the loading performance. i want to know whether v can perform multi init to the flat files also n what r the steps to follow while perfroming the process.
Thanks & Regards
KK

Hi,
   You can do that. if you have  a huge data then you can do multiple init with different selections, keep your file in App.server to improve  load performance.
Regards
Sankar

Similar Messages

  • Multiple Initializations

    Hi,
    I am trying to do Multiple Initialization between  2 BW Systems -
    From BW System 1 , i have a DSO with a generated datasource ,which is being initialised in BW System 2.
    I did 1 initialization for the Datasource for the Selection FISCPER = 2007.001 -FISCPER = 2007.012
    Then i did a second init for FISCPER= 2006.012.
    This second init ignored the selection parameter and extracted all the records available in the DSO.
    Is there any bug in 7.0  ??
    Any help would be appropriately rewarded with points !!
    Regards,

    Gaurav pointed correctly. If you are using export DS, you can't migrate that 7.0 Datsource.
    That could be a bug... if it brings all the data in DSO. Typically, load should fail or should give an error message saying multiple Initializations not possible with overlapping Selections.
    Try to use DSO instead of Export DS. which may slove your problem. all the best.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Initialization was a full update

    Hi,
    We are doing multiple initializations in our ODS. The ODS and its datasources are customized. We used the table vbrp in R/3 as a generic datasource via R/3 infoset.
    We have been doing initializations per month.Example April 1,2007 to April 30,2007.We made sure there are no overlapping selections. All our inits are ok from Aug 2005 to May 2007. But when did init for June 2007, i get no data records. the status of the load says "Request was a full update" even if we did an init. we checked rsa3, and it can extract data actually. we had 1000 records. Table vbrp as we checked also has data for June2007.Does anyone know why we got 0 records for June init? thanks...

    Hi,
    Init can be done for a aprticular period.
    Suppose you have a date then you can do init based on that date.
    for month june your selection will be 01062007  to 3106007.
    This will create an init for this period and then the delta will be brough for this period.
    I couldn't find the reason for doing so many inits... as doing it is not helping the cause.If your requirement is to get the delta for a particular time period then you can give that time period insted of creating the init for each individial month.
    creating individual init vs creating init for the whole time period will have the same effect as delta in both the cases will be same.
    Multiple inits are done in the case where you don't want the deltas before a prticular time period so that changes for a  particular time period should be brought in.
    Thanks

  • Downtime for delta initialization

    Hi Gurus,
    I want to find a way to mimize R/3 downtime while initializing the delta loads. All you know that it is very difficult for bussiness to close their R/3 system at any point of time.
    Please share your views on this. Full points will be assigned for good quotes.
    Raj.

    Hi..........
    For non LO datasources............u can do Init with selections...................ie Multiple initialization.........A delta requested after several initializations, contains the sum of all the successful initial selections as a selection condition. This selection condition can then no longer be changed for the delta........
    Check SAP NOTE :786678............
    Also....
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a65dce07211d2acb80000e829fbfe/content.htm
    Re: datasource
    Regards,
    Debjani.......

  • EnvDTE in unmanaged C++

    Hi,
    This is my first question within the Microsoft Forums (which are structured differently to what i am used to), so i hope I'm categorizing (and formatting) this correctly :)
    I just started working with Visual Studio and envDTE. The (Meta / non-VS) project I'm working on shall be written in C++. As a starting Point i found "How to: Add References to Automation Namespaces"
    (i was not allowed to link the article), but when i start a new, unmanaged C++ LibraryProject to try it out, the Code sample (without any further code) produces 43 Errors:
    #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version("8.0")
    Here, IntelliSense tries to open a File named "libid:80...." within the Project Folder
    lcid("0") raw_interfaces_only named_guids
    For the first appearance this line, 5 Errors are reported:
    col1: C4430: missing type specifier
    col1: C2440: 'initializing': cannot convert from const char[2] to int
    col1: C2146: Syntax error: missing ';' before identifier raw_interfaces_only
    col1: IntelliSense: this declaration has no storage class or type specifier
    col11: IntelliSense: (same as error C2146)
    further appereances Show the error: C2374: redefinition; multiple initialization
    I will not continue listing every single error, as obviously something very General is wrong (and the Errors repeat). I will, however, list some Errors that seem to hold interesting further Information:
    According to VS there are Errors in the files dte100.tli:
    -line 43, 49 and 55: error C2664: 'void _com_issue_errorex(HRESULT,IUnknown *,const IID &)' : cannot convert argument 2 from 'EnvDTE100::Debugger5 *const ' to 'IUnknown *'
    and dte100.tlh:
    -line 124: error C2504: 'Debugger4': Baseclass undefined
    Using C#, I was able to use the corresponding Code Snippet without any Problem.
    Can anyone tell me, what I'm doing wrong?
    Regards, Sebastian
    Edit: I just found out, that the code example has linebreaks, that should not be there. Furthermore I found "Trying to access DTE2 from unmanaged DLL" where one can find out that the Import of dte90a is missing.
    I will try to follow the help there for now, but there is no Information about my IntelliSense problem. Therefore, help is still much appreciated.
    Edit 2: My IntelliSense problem seems to have been a bug already in VS2010 (ID: 533526) and VS2012 (ID: 779727). The link to the workaround on the report page of 533526 is dead.

    Hi Sebastian,
    You'll probably want to familiarize yourself with some rudimentary COM and ATL programming techniques. CComPtr is simply ATL's smartpointer class. Various COM automation interfaces are published as typelibraries (those .OLB files you're #importing), which
    generates the interface definitions you use with the smart pointers.
    At the end of the day, you need to create an instance of the DTE object that represents the VS IDE. That means calling CoCreateInstance API, or leverage the ATL library similar to the following:
       int hr = S_OK;
       CComPtr<_DTE> spDTE;
       CComPtr<Window> spWindow;
       hr = spDTE.CoCreateInstance(L"VisualStudio.DTE.12.0");
       hr = spDTE->get_MainWindow(&spWindow);
       hr = spWindow->put_Visible(VARIANT_TRUE);
    Where I've added the following #import statements to my precompiled header (stdafx.h): Note, these will vary depending upon the interfaces you need.
        //The following #import imports DTE
        #import <dte80a.olb> raw_interfaces_only named_guids
        //The following #import imports DTE80
        #import <dte80.olb> raw_interfaces_only named_guids
        //The following #import imports DTE90
        #import <dte90.olb> raw_interfaces_only named_guids
        //The following #import imports DTE90a
        #import <dte90a.olb> raw_interfaces_only named_guids
        //The following #import imports DTE100
        #import <dte100.olb> raw_interfaces_only named_guids
        //The following #import imports VCProjectEngine interfaces
        #import <vcpb2.tlb> raw_interfaces_only named_guids
        //The followign #import imports VCProjectLibrary interfaces
        #import <vcproject.dll> raw_interfaces_only named_guids
        //The following #import imports VCCodeModelLibrary interfaces
        #import <vcpkg.dll> raw_interfaces_only named_guids
        // The following imports the VSLangProj interfaces
        #import <vslangproj.olb> raw_interfaces_only named_guids
    I used the raw_interfaces_only attribute, as I typically prefer to use the ATL classes instead of the compiler generated ones.
    Also, I add the following using namespace statements to my .cpp files (after the #include for stdafx.h. You can figure these out by reviewing the .TLH files generated from the #import statements.
        using namespace EnvDTE;
        using namespace EnvDTE80;
        using namespace VSLangProj;
    Hopefully, that's enough to get you started.
    Sincerely,
    Ed Dore

  • Oracle Access Manager API (ASDK) - ObUserSession / ObConfig Issues

    I am currently working with the ASDK and CoreID 7.0.4. I have gotten my custom Access Gate to the point where I wanted to start testing it out with my applications. I very quickly ran into some issues:
    Im my code I am making a connection to the Access Server in order to obtain an ObSSOCookie to use while making IDXML requests. Everything works perfectly when I am running a single process.
    Once I palce my code in a few processes I immeadiately start getting some issues.
    When running as a single process, "_OBUserSession.getSessionToken()", returns a nice encoded string that can be placed within an HTML header for my IDXML requests.
    When running multiple processes, only the first process gets a nice encoded token. All subsequent processes get a NON encoded string. The NON encoded strings appears to be a valid session token... Its just not encoded.
    Further more... when I print out the properties of the ObUserSession objects, they all come back as valid, logged-in, and authorized.
    I have narrowed things down to the ObConfig.initialize("MYINSTALLDIR") and ObConfig.shutdown() methods as the cause. Basically, if there is more than one active initialization of my Access Gate, it fails to encode session tokens.
    If anyone has some insight or advice I would greatly appreciate it. I am currently looking into the "Maximum Connections" parameter on my Access Gate to see if that has an effect. I am not confident it will... since I do get a valid ObUserSession object... it just failes to encode the token.
    -thanks

    First I too thought this problem could have surfaced due to multiple initialization of same Access Gate (AG). But that doesn't answer how un-encoded token is availed in subsequent calls to getSessionToken().
    I believe you are on the right track and make sure that you set the "max connections" to a value higher than the number of processes invoking the Initialize. If this doesn't work then you should try with initializing AG only once and try.
    Do let me know if you happen to get the solution for this problem.

  • Adora Template Slider Timing

    Hi Guys, I need help finding the right piece of Javascript code to amend in the Adora template to slow the slides down to flip every 5 or 6 seconds (5000 to 6000 milliseconds) as opposed to what I can only assume is currently 3 secs (3000 milliseconds).
    I've used the default BizCatalyst file manager to "edit"  line 624 of jquery.anythingslider.js from 3000 milliseconds to 6000 milliseconds with no affect.
    What am I missing here? Is this not the right line? Does "editing" via BizCatalyst's File Manager not work? I'll admit it's not the most advanced File Manager around (not by a long shot) but surely it should work as it would suggest when you "edit", amend, and "save"?
    I've hunted in these forums and within the other Javascript files and am having no luck.
    I'm assuming the Javascript file in question is jquery.anythingslider.js. I've been through the rest of them and they don't appear to have anything to do with the slideshow. jquery.nivo.slider.pack.js might have something to do with it but... MAN... that coding is a mess. What were youu guys thinking using a Script that messy within a template that people are going to want to customise? Lift your game please - you are Adobe, not some rank amateurs. Finding a piece of code in there is like finding a needle in 100 haystacks.
    Des McKenzie

    Thanks Pat,
    There is indeed a jquery.anythingslider.js file within the "JS" folder but I've tried chamging the delay from 3000 to 6000 even to 20000 but it makes no diff. Also it seems to sit for a disproportionate length of time on first load before the first scroll.
    Code from jquery.anythingslider.js is:
        AnythingSlider v1.5.7.3
        By Chris Coyier: http://css-tricks.com
        with major improvements by Doug Neiner: http://pixelgraphics.us/
        based on work by Remy Sharp: http://jqueryfordesigners.com/
        crazy mods by Rob Garrison (aka Mottie): https://github.com/ProLoser/AnythingSlider
        To use the navigationFormatter function, you must have a function that
        accepts two paramaters, and returns a string of HTML text.
        index = integer index (1 based);
        panel = jQuery wrapped LI item this tab references
        @return = Must return a string of HTML/Text
        navigationFormatter: function(index, panel){
            return "Panel #" + index; // This would have each tab with the text 'Panel #X' where X = index
    (function($) {
        $.anythingSlider = function(el, options) {
            // To avoid scope issues, use 'base' instead of 'this'
            // to reference this class from internal events and functions.
            var base = this;
            // Wraps the ul in the necessary divs and then gives Access to jQuery element
            base.$el = $(el).addClass('anythingBase').wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');
            // Add a reverse reference to the DOM object
            base.$el.data("AnythingSlider", base);
            base.init = function(){
                base.options = $.extend({}, $.anythingSlider.defaults, options);
                if ($.isFunction(base.options.onBeforeInitialize)) { base.$el.bind('before_initialize', base.options.onBeforeInitialize); }
                base.$el.trigger('before_initialize', base);
                // Cache existing DOM elements for later
                // base.$el = original ul
                // for wrap - get parent() then closest in case the ul has "anythingSlider" class
                base.$wrapper = base.$el.parent().closest('div.anythingSlider').addClass('anythingSlider-' + base.options.theme);
                base.$window = base.$el.closest('div.anythingWindow');
                base.$controls = $('<div class="anythingControls"></div>').appendTo( (base.options.appendControlsTo !== null && $(base.options.appendControlsTo).length) ? $(base.options.appendControlsTo) : base.$wrapper); // change so this works in jQuery 1.3.2
                base.win = window;
                base.$win = $(base.win);
                base.$nav = $('<ul class="thumbNav" />').appendTo(base.$controls);
                // Set up a few defaults & get details
                base.timer   = null;  // slideshow timer (setInterval) container
                base.flag    = false; // event flag to prevent multiple calls (used in control click/focusin)
                base.playing = false; // slideshow state
                base.hovered = false; // actively hovering over the slider
                base.panelSize = [];  // will contain dimensions and left position of each panel
                base.currentPage = base.options.startPanel;
                base.adjustLimit = (base.options.infiniteSlides) ? 0 : 1; // adjust page limits for infinite or limited modes
                if (base.options.playRtl) { base.$wrapper.addClass('rtl'); }
                // save some options
                base.original = [ base.options.autoPlay, base.options.buildNavigation, base.options.buildArrows];
                base.updateSlider();
                base.$currentPage = base.$items.eq(base.currentPage);
                base.$lastPage = base.$currentPage;
                // Get index (run time) of this slider on the page
                base.runTimes = $('div.anythingSlider').index(base.$wrapper) + 1;
                base.regex = new RegExp('panel' + base.runTimes + '-(\\d+)', 'i'); // hash tag regex
                // Make sure easing function exists.
                if (!$.isFunction($.easing[base.options.easing])) { base.options.easing = "swing"; }
                // Add theme stylesheet, if it isn't already loaded
                if (base.options.theme !== 'default' && !$('link[href*=' + base.options.theme + ']').length){
                    $('body').append('<link rel="stylesheet" href="' + base.options.themeDirectory.replace(/\{themeName\}/g, base.options.theme) + '" type="text/css" />');
                // If pauseOnHover then add hover effects
                if (base.options.pauseOnHover) {
                    base.$wrapper.hover(function() {
                        if (base.playing) {
                            base.$el.trigger('slideshow_paused', base);
                            base.clearTimer(true);
                    }, function() {
                        if (base.playing) {
                            base.$el.trigger('slideshow_unpaused', base);
                            base.startStop(base.playing, true);
                // If a hash can not be used to trigger the plugin, then go to start panel
                var startPanel = (base.options.hashTags) ? base.gotoHash() || base.options.startPanel : base.options.startPanel;
                base.setCurrentPage(startPanel, false); // added to trigger events for FX code
                // Hide/Show navigation & play/stop controls
                base.slideControls(false);
                base.$wrapper.bind('mouseenter mouseleave', function(e){
                    base.hovered = (e.type === "mouseenter") ? true : false;
                    base.slideControls( base.hovered, false );
                // Add keyboard navigation
                if (base.options.enableKeyboard) {
                    $(document).keyup(function(e){
                        if (base.$wrapper.is('.activeSlider')) {
                            switch (e.which) {
                                case 39: // right arrow
                                    base.goForward();
                                    break;
                                case 37: //left arrow
                                    base.goBack();
                                    break;
                // Binds events
                var triggers = "slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");
                $.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "), function(i,o){
                    if ($.isFunction(base.options[o])){
                        base.$el.bind(triggers[i], base.options[o]);
                if ($.isFunction(base.options.onSlideComplete)){
                    // Added setTimeout (zero time) to ensure animation is complete... see this bug report: http://bugs.jquery.com/ticket/7157
                    base.$el.bind('slide_complete', function(){
                        setTimeout(function(){ base.options.onSlideComplete(base); }, 0);
                base.$el.trigger('initialized', base);
            // called during initialization & to update the slider if a panel is added or deleted
            base.updateSlider = function(){
                // needed for updating the slider
                base.$el.find('li.cloned').remove();
                base.$nav.empty();
                base.$items = base.$el.find('> li');
                base.pages = base.$items.length;
                // Set the dimensions of each panel
                if (base.options.resizeContents) {
                    if (base.options.width) { base.$wrapper.add(base.$items).css('width', base.options.width); }
                    if (base.options.height) { base.$wrapper.add(base.$items).css('height', base.options.height); }
                // Remove navigation & player if there is only one page
                if (base.pages === 1) {
                    base.options.autoPlay = false;
                    base.options.buildNavigation = false;
                    base.options.buildArrows = false;
                    base.$controls.hide();
                    base.$nav.hide();
                    if (base.$forward) { base.$forward.add(base.$back).hide(); }
                } else {
                    base.options.autoPlay = base.original[0];
                    base.options.buildNavigation = base.original[1];
                    base.options.buildArrows = base.original[2];
                    base.$controls.show();
                    base.$nav.show();
                    if (base.$forward) { base.$forward.add(base.$back).show(); }
                // Build navigation tabs
                base.buildNavigation();
                // If autoPlay functionality is included, then initialize the settings
                if (base.options.autoPlay) {
                    base.playing = !base.options.startStopped; // Sets the playing variable to false if startStopped is true
                    base.buildAutoPlay();
                // Build forwards/backwards buttons
                if (base.options.buildArrows) { base.buildNextBackButtons(); }
                // Top and tail the list with 'visible' number of items, top has the last section, and tail has the first
                // This supports the "infinite" scrolling, also ensures any cloned elements don't duplicate an ID
                base.$el.prepend( (base.options.infiniteSlides) ? base.$items.filter(':last').clone().addClass('cloned').removeAttr('id') : $('<li class="cloned" />') );
                base.$el.append( (base.options.infiniteSlides) ? base.$items.filter(':first').clone().addClass('cloned').removeAttr('id') : $('<li class="cloned" />') );
                base.$el.find('li.cloned').each(function(){
                    // replace <a> with <span> in cloned panels to prevent shifting the panels by tabbing - modified so this will work with jQuery 1.3.2
                    $(this).html( $(this).html().replace(/<a/gi, '<span').replace(/\/a>/gi, '/span>') );
                    $(this).find('[id]').removeAttr('id');
                // We just added two items, time to re-cache the list, then get the dimensions of each panel
                base.$items = base.$el.find('> li').addClass('panel');
                base.setDimensions();
                if (!base.options.resizeContents) { base.$win.load(function(){ base.setDimensions(); }); } // set dimensions after all images load
                if (base.currentPage > base.pages) {
                    base.currentPage = base.pages;
                    base.setCurrentPage(base.pages, false);
                base.$nav.find('a').eq(base.currentPage - 1).addClass('cur'); // update current selection
                base.hasEmb = base.$items.find('embed[src*=youtube]').length; // embedded youtube objects exist in the slider
                base.hasSwfo = (typeof(swfobject) !== 'undefined' && swfobject.hasOwnProperty('embedSWF') && $.isFunction(swfobject.embedSWF)) ? true : false; // is swfobject loaded?
                // Initialize YouTube javascript api, if YouTube video is present
                if (base.hasEmb && base.hasSwfo) {
                    base.$items.find('embed[src*=youtube]').each(function(i){
                        // Older IE doesn't have an object - just make sure we are wrapping the correct element
                        var $tar = ($(this).parent()[0].tagName === "OBJECT") ? $(this).parent() : $(this);
                        $tar.wrap('<div id="ytvideo' + i + '"></div>');
                        // use SWFObject if it exists, it replaces the wrapper with the object/embed
                        swfobject.embedSWF($(this).attr('src') + '&enablejsapi=1&version=3&playerapiid=ytvideo' + i, 'ytvideo' + i,
                            $tar.attr('width'), $tar.attr('height'), '10', null, null,
                            { allowScriptAccess: "always", wmode : base.options.addWmodeToObject, allowfullscreen : true },
                            { 'class' : $tar.attr('class'), 'style' : $tar.attr('style') },
                            function(){ if (i >= base.hasEmb - 1) { base.$el.trigger('swf_completed', base); } } // swf callback
                // Fix tabbing through the page
                base.$items.find('a').unbind('focus').bind('focus', function(e){
                    base.$items.find('.focusedLink').removeClass('focusedLink');
                    $(this).addClass('focusedLink');
                    var panel = $(this).closest('.panel');
                    if (!panel.is('.activePage')) {
                        base.gotoPage(base.$items.index(panel));
                        e.preventDefault();
            // Creates the numbered navigation links
            base.buildNavigation = function() {
                if (base.options.buildNavigation && (base.pages > 1)) {
                    base.$items.filter(':not(.cloned)').each(function(i,el) {
                        var index = i + 1,
                            klass = ((index === 1) ? 'first' : '') + ((index === base.pages) ? 'last' : ''),
                            $a = $('<a href="#"></a>').addClass('panel' + index).wrap('<li class=" + klass + " />');
                        base.$nav.append($a.parent()); // use $a.parent() so IE will add <li> instead of only the <a> to the <ul>
                        // If a formatter function is present, use it
                        if ($.isFunction(base.options.navigationFormatter)) {
                            var tmp = base.options.navigationFormatter(index, $(this));
                            $a.html(tmp);
                            // Add formatting to title attribute if text is hidden
                            if (parseInt($a.css('text-indent'),10) < 0) { $a.addClass(base.options.tooltipClass).attr('title', tmp); }
                        } else {
                            $a.text(index);
                        $a.bind(base.options.clickControls, function(e) {
                            if (!base.flag && base.options.enableNavigation) {
                                // prevent running functions twice (once for click, second time for focusin)
                                base.flag = true; setTimeout(function(){ base.flag = false; }, 100);
                                base.gotoPage(index);
                                if (base.options.hashTags) { base.setHash(index); }
                            e.preventDefault();
            // Creates the Forward/Backward buttons
            base.buildNextBackButtons = function() {
                if (base.$forward) { return; }
                base.$forward = $('<span class="arrow forward"><a href="#">' + base.options.forwardText + '</a></span>');
                base.$back = $('<span class="arrow back"><a href="#">' + base.options.backText + '</a></span>');
                // Bind to the forward and back buttons
                base.$back.bind(base.options.clickArrows, function(e) {
                    base.goBack();
                    e.preventDefault();
                base.$forward.bind(base.options.clickArrows, function(e) {
                    base.goForward();
                    e.preventDefault();
                // using tab to get to arrow links will show they have focus (outline is disabled in css)
                base.$back.add(base.$forward).find('a').bind('focusin focusout',function(){
                 $(this).toggleClass('hover');
                // Append elements to page
                base.$wrapper.prepend(base.$forward).prepend(base.$back);
                base.$arrowWidth = base.$forward.width();
            // Creates the Start/Stop button
            base.buildAutoPlay = function(){
                if (base.$startStop) { return; }
                base.$startStop = $("<a href='#' class='start-stop'></a>").html(base.playing ? base.options.stopText : base.options.startText);
                base.$controls.prepend(base.$startStop);
                base.$startStop
                    .bind(base.options.clickSlideshow, function(e) {
                        if (base.options.enablePlay) {
                            base.startStop(!base.playing);
                            if (base.playing) {
                                if (base.options.playRtl) {
                                    base.goBack(true);
                                } else {
                                    base.goForward(true);
                        e.preventDefault();
                    // show button has focus while tabbing
                    .bind('focusin focusout',function(){
                        $(this).toggleClass('hover');
                // Use the same setting, but trigger the start;
                base.startStop(base.playing);
            // Set panel dimensions to either resize content or adjust panel to content
            base.setDimensions = function(){
                var w, h, c, cw, dw, leftEdge = 0, bww = base.$window.width(), winw = base.$win.width();
                base.$items.each(function(i){
                    c = $(this).children('*');
                    if (base.options.resizeContents){
                        // get viewport width & height from options (if set), or css
                        w = parseInt(base.options.width,10) || bww;
                        h = parseInt(base.options.height,10) || base.$window.height();
                        // resize panel
                        $(this).css({ width: w, height: h });
                        // resize panel contents, if solitary (wrapped content or solitary image)
                        if (c.length === 1){
                            c.css({ width: '100%', height: '100%' });
                            if (c[0].tagName === "OBJECT") { c.find('embed').andSelf().attr({ width: '100%', height: '100%' }); }
                    } else {
                        // get panel width & height and save it
                        w = $(this).width(); // if not defined, it will return the width of the ul parent
                        dw = (w >= winw) ? true : false; // width defined from css?
                        if (c.length === 1 && dw){
                            cw = (c.width() >= winw) ? bww : c.width(); // get width of solitary child
                            $(this).css('width', cw); // set width of panel
                            c.css('max-width', cw);   // set max width for all children
                            w = cw;
                        w = (dw) ? base.options.width || bww : w;
                        $(this).css('width', w);
                        h = $(this).outerHeight(); // get height after setting width
                        $(this).css('height', h);
                    base.panelSize[i] = [w,h,leftEdge];
                    leftEdge += w;
                // Set total width of slider, but don't go beyond the set max overall width (limited by Opera)
                base.$el.css('width', (leftEdge < base.options.maxOverallWidth) ? leftEdge : base.options.maxOverallWidth);
            base.gotoPage = function(page, autoplay, callback) {
                if (base.pages === 1) { return; }
                base.$lastPage = base.$items.eq(base.currentPage);
                if (typeof(page) !== "number") {
                    page = base.options.startPage;
                    base.setCurrentPage(base.options.startPage);
                // pause YouTube videos before scrolling or prevent change if playing
                if (base.hasEmb && base.checkVideo(base.playing)) { return; }
                if (page > base.pages + 1 - base.adjustLimit) { page = (!base.options.infiniteSlides && !base.options.stopAtEnd) ? 1 : base.pages; }
                if (page < base.adjustLimit ) { page = (!base.options.infiniteSlides && !base.options.stopAtEnd) ? base.pages : 1; }
                base.$currentPage = base.$items.eq(page);
                base.currentPage = page; // ensure that event has correct target page
                base.$el.trigger('slide_init', base);
                base.slideControls(true, false);
                // When autoplay isn't passed, we stop the timer
                if (autoplay !== true) { autoplay = false; }
                // Stop the slider when we reach the last page, if the option stopAtEnd is set to true
                if (!autoplay || (base.options.stopAtEnd && page === base.pages)) { base.startStop(false); }
                base.$el.trigger('slide_begin', base);
                // resize slider if content size varies
                if (!base.options.resizeContents) {
                    // animating the wrapper resize before the window prevents flickering in Firefox
                    base.$wrapper.filter(':not(:animated)').animate(
                        { width: base.panelSize[page][0], height: base.panelSize[page][1] },
                        { queue: false, duration: base.options.animationTime, easing: base.options.easing }
                // Animate Slider
                base.$window.filter(':not(:animated)').animate(
                    { scrollLeft : base.panelSize[page][2] },
                    { queue: false, duration: base.options.animationTime, easing: base.options.easing, complete: function(){ base.endAnimation(page, callback); } }
            base.endAnimation = function(page, callback){
                if (page === 0) {
                    base.$window.scrollLeft(base.panelSize[base.pages][2]);
                    page = base.pages;
                } else if (page > base.pages) {
                    // reset back to start position
                    base.$window.scrollLeft(base.panelSize[1][2]);
                    page = 1;
                base.setCurrentPage(page, false);
                // Add active panel class
                base.$items.removeClass('activePage').eq(page).addClass('activePage');
                if (!base.hovered) { base.slideControls(false); }
                // continue YouTube video if in current panel
                if (base.hasEmb){
                    var emb = base.$currentPage.find('object[id*=ytvideo], embed[id*=ytvideo]');
                    // player states: unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5).
                    if (emb.length && $.isFunction(emb[0].getPlayerState) && emb[0].getPlayerState() > 0 && emb[0].getPlayerState() !== 5) {
                        emb[0].playVideo();
                base.$el.trigger('slide_complete', base);
                // callback from external slide control: $('#slider').anythingSlider(4, function(slider){ })
                if (typeof callback === 'function') { callback(base); }
                // Continue slideshow after a delay
                if (base.options.autoPlayLocked && !base.playing) {
                    setTimeout(function(){
                        base.startStop(true);
                    // subtract out slide delay as the slideshow waits that additional time.
                    }, base.options.resumeDelay - base.options.delay);
            base.setCurrentPage = function(page, move) {
                if (page > base.pages + 1 - base.adjustLimit) { page = base.pages - base.adjustLimit; }
                if (page < base.adjustLimit ) { page = 1; }
                // Set visual
                if (base.options.buildNavigation){
                    base.$nav.find('.cur').removeClass('cur');
                    base.$nav.find('a').eq(page - 1).addClass('cur');
                // hide/show arrows based on infinite scroll mode
                if (!base.options.infiniteSlides && base.options.stopAtEnd){
                    base.$wrapper.find('span.forward')[ page === base.pages ? 'addClass' : 'removeClass']('disabled');
                    base.$wrapper.find('span.back')[ page === 1 ? 'addClass' : 'removeClass']('disabled');
                    if (page === base.pages && base.playing) { base.startStop(); }
                // Only change left if move does not equal false
                if (!move) {
                    base.$wrapper.css({
                        width: base.panelSize[page][0],
                        height: base.panelSize[page][1]
                    base.$wrapper.scrollLeft(0); // reset in case tabbing changed this scrollLeft
                    base.$window.scrollLeft( base.panelSize[page][2] );
                // Update local variable
                base.currentPage = page;
                // Set current slider as active so keyboard navigation works properly
                if (!base.$wrapper.is('.activeSlider')){
                    $('.activeSlider').removeClass('activeSlider');
                    base.$wrapper.addClass('activeSlider');
            base.goForward = function(autoplay) {
                if (autoplay !== true) { autoplay = false; base.startStop(false); }
                base.gotoPage(base.currentPage + 1, autoplay);
            base.goBack = function(autoplay) {
                if (autoplay !== true) { autoplay = false; base.startStop(false); }
                base.gotoPage(base.currentPage - 1, autoplay);
            // This method tries to find a hash that matches panel-X
            // If found, it tries to find a matching item
            // If that is found as well, then that item starts visible
            base.gotoHash = function(){
                var n = base.win.location.hash.match(base.regex);
                return (n===null) ? '' : parseInt(n[1],10);
            base.setHash = function(n){
                var s = 'panel' + base.runTimes + '-',
                    h = base.win.location.hash;
                if ( typeof h !== 'undefined' ) {
                    base.win.location.hash = (h.indexOf(s) > 0) ? h.replace(base.regex, s + n) : h + "&" + s + n;
            // Slide controls (nav and play/stop button up or down)
            base.slideControls = function(toggle, playing){
                var dir = (toggle) ? 'slideDown' : 'slideUp',
                    t1 = (toggle) ? 0 : base.options.animationTime,
                    t2 = (toggle) ? base.options.animationTime: 0,
                    sign = (toggle) ? 0 : 1; // 0 = visible, 1 = hidden
                if (base.options.toggleControls) {
                    base.$controls.stop(true,true).delay(t1)[dir](base.options.animationTime/2).delay(t2);
                if (base.options.buildArrows && base.options.toggleArrows) {
                    if (!base.hovered && base.playing) { sign = 1; t2 = 0; } // don't animate arrows during slideshow
                    base.$forward.stop(true,true).delay(t1).animate({ right: sign * base.$arrowWidth, opacity: t2 }, base.options.animationTime/2);
                    base.$back.stop(true,true).delay(t1).animate({ left: sign * base.$arrowWidth, opacity: t2 }, base.options.animationTime/2);
            base.clearTimer = function(paused){
                // Clear the timer only if it is set
                if (base.timer) {
                    base.win.clearInterval(base.timer);
                    if (!paused) {
                        base.$el.trigger('slideshow_stop', base);
            // Handles stopping and playing the slideshow
            // Pass startStop(false) to stop and startStop(true) to play
            base.startStop = function(playing, paused) {
                if (playing !== true) { playing = false; } // Default if not supplied is false
                if (playing && !paused) {
                    base.$el.trigger('slideshow_start', base);
                // Update variable
                base.playing = playing;
                // Toggle playing and text
                if (base.options.autoPlay) {
                    base.$startStop.toggleClass('playing', playing).html( playing ? base.options.stopText : base.options.startText );
                    // add button text to title attribute if it is hidden by text-indent
                    if (parseInt(base.$startStop.css('text-indent'),10) < 0) {
                        base.$startStop.addClass(base.options.tooltipClass).attr('title', playing ? 'Stop' : 'Start');
                if (playing){
                    base.clearTimer(true); // Just in case this was triggered twice in a row
                    base.timer = base.win.setInterval(function() {
                        // prevent autoplay if video is playing
                        if (!(base.hasEmb && base.checkVideo(playing))) {
                            if (base.options.playRtl) {
                                base.goBack(true);
                            } else {
                                base.goForward(true);
                    }, base.options.delay);
                } else {
                    base.clearTimer();
            base.checkVideo = function(playing){
                // pause YouTube videos before scrolling?
                var emb, ps, stopAdvance = false;
                base.$items.find('object[id*=ytvideo], embed[id*=ytvideo]').each(function(){ // include embed for IE; if not using SWFObject, old detach/append code needs "object embed" here
                    emb = $(this);
                    if (emb.length && $.isFunction(emb[0].getPlayerState)) {
                        // player states: unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5).
                        ps = emb[0].getPlayerState();
                        // if autoplay, video playing, video is in current panel and resume option are true, then don't advance
                        if (playing && (ps === 1 || ps > 2) && base.$items.index(emb.closest('li.panel')) === base.currentPage && base.options.resumeOnVideoEnd) {
                            stopAdvance = true;
                        } else {
                            // pause video if not autoplaying (if already initialized)
                            if (ps > 0) { emb[0].pauseVideo(); }
                return stopAdvance;
            // Trigger the initialization
            base.init();
        $.anythingSlider.defaults = {
            // Appearance
            width               : null,      // Override the default CSS width
            height              : null,      // Override the default CSS height
            resizeContents      : true,      // If true, solitary images/objects in the panel will expand to fit the viewport
            tooltipClass        : 'tooltip', // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
            theme               : 'default', // Theme name
            themeDirectory      : 'css/theme-{themeName}.css', // Theme directory & filename {themeName} is replaced by the theme value above
            // Navigation
            startPanel          : 1,         // This sets the initial panel
            hashTags            : true,      // Should links change the hashtag in the URL?
            infiniteSlides      : true,      // if false, the slider will not wrap
            enableKeyboard      : true,      // if false, keyboard arrow keys will not work for the current panel.
            buildArrows         : true,      // If true, builds the forwards and backwards buttons
            toggleArrows        : false,     // If true, side navigation arrows will slide out on hovering & hide @ other times
            buildNavigation     : true,      // If true, builds a list of anchor links to link to each panel
            enableNavigation    : true,      // if false, navigation links will still be visible, but not clickable.
            toggleControls      : false,     // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
            appendControlsTo    : null,      // A HTML element (jQuery Object, selector or HTMLNode) to which the controls will be appended if not null
            navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
            forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
            backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
            // Slideshow options
            enablePlay          : true,      // if false, the play/stop button will still be visible, but not clickable.
            autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
            autoPlayLocked      : false,     // If true, user changing slides will not stop the slideshow
            startStopped        : false,     // If autoPlay is on, this can force it to start stopped
            pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
            resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video is complete
            stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.
            playRtl             : false,     // If true, the slideshow will move right-to-left
            startText           : "Start",   // Start button text
            stopText            : "Stop",    // Stop button text
            delay               : 6000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
            resumeDelay         : 15000,     // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
            animationTime       : 600,       // How long the slideshow transition takes (in milliseconds)
            easing              : "swing",   // Anything other than "linear" or "swing" requires the easing plugin
            // Callbacks - removed from options to reduce size - they still work
            // Interactivity
            clickArrows         : "click",         // Event used to activate arrow functionality (e.g. "click" or "mouseenter")
            clickControls       : "click focusin", // Events used to activate navigation control functionality
            clickSlideshow      : "click",         // Event used to activate slideshow play/stop button
            // Misc options
            addWmodeToObject    : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
            maxOverallWidth     : 32766     // Max width (in pixels) of combined sliders (side-to-side); set to 32766 to prevent problems with Opera
        $.fn.anythingSlider = function(options, callback) {
            return this.each(function(i){
                var anySlide = $(this).data('AnythingSlider');
                // initialize the slider but prevent multiple initializations
                if ((typeof(options)).match('object|undefined')){
                    if (!anySlide) {
                        (new $.anythingSlider(this, options));
                    } else {
                        anySlide.updateSlider();
                // If options is a number, process as an external link to page #: $(element).anythingSlider(#)
                } else if (/\d/.test(options) && !isNaN(options) && anySlide) {
                    var page = (typeof(options) === "number") ? options : parseInt($.trim(options),10); // accepts "  2  "
                    // ignore out of bound pages
                    if ( page >= 1 && page <= anySlide.pages ) {
                        anySlide.gotoPage(page, false, callback); // page #, autoplay, one time callback
    })(jQuery);
    /* AnythingSlider works with works with jQuery 1.4+, but you can uncomment the code below to make it
       work with jQuery 1.3.2. You'll have to manually add the code below to the minified copy if needed */
    // Copied from jQuery 1.4.4 to make AnythingSlider backwards compatible to jQuery 1.3.2
    if (typeof jQuery.fn.delay === 'undefined') {
      jQuery.fn.extend({
       delay: function( time, type ) {
        time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; type = type || "fx";
        return this.queue( type, function() { var elem = this; setTimeout(function() { jQuery.dequeue( elem, type ); }, time ); });

  • For Loop Structure

    Hi... are multiple initializations inside the firt part of a for loop allowed in Java?
    for (int i = 0, int j = 0; i < someArray.length; ++i, j = j + 2) {
        //doin' somethin'
    }

    If you find yourself asking a question along the lines of is this possible in java, then why don't you just write some code, compile it and run it.
    If you did that you would find that indeed it is legal.
    If on the other hand you are asking for our opinion on this type of code, then you should phrase the question differently.
    This is probably a sign of bad design... you could probably come up with a better way to do what you require...

  • NiSwitch_InitWithTopology Error 0x80040311

    We are having a problem with our NI MUX boards (2532, 2434, 2576) when niSwitch_InitWithTopology() is called multiple times from the test application.  The test system we are having trouble with is a Windows 7 application using the NI hardware (ie. not LabWindows or LabView)
    The test system supports multiple configurations using the same hardware and allows the configuration to be changed from the application.  When the configuration is changed, all hardware from the previous configuration is released and the system is reinitialized with the new configuration.  The system successfully comes up on the initial configuration, and even allows the first configuration change. On the second configuration change, however, niSwitch_InitWithTopology() fails giving return code 0x80040311, “The client process has been disconnected from the configuration server”.
    To eliminate the new configuration as the problem, we can force the re-initialization with the same configuration and still get the same issue – works properly on the first 2 initializations the fails on all subsequent initializations.  Stopping and restarting the application it will work again for 2 initializations.  The card status in MAX is normal and does not change during this testing.
    We are using the latest NI_SWITCH 4.6.1 drivers.  Here are the calls we are making to both initialize and release the MUX cards:
    When a configuration is initialized:
    BOOL CMuxCard2534:tart( void )
       ViConstString topology = NISWITCH_TOPOLOGY_2534_1_WIRE_8X32_MATRIX;
       status = niSwitch_InitWithTopology(resourceName, topology,VI_FALSE, VI_TRUE, &m_SwitchSession);
       if (status != VI_SUCCESS)               // VI_SUCCESS=0
          SetHWStatus(FAILED);
          SetHwErrorText("NI_SWITCH 2534 not loaded or NI DLL's Not Found.");
          return FALSE;
       SetHWStatus(INSTALLED);
       SetHwErrorText("Running");
      return TRUE;
    When a configuration is released:
    CMuxCard2534::~CMuxCard2534( )
       m_DeviceName.Empty();
       niSwitch_DisconnectAll(m_SwitchSession);
       niSwitch_Disable(m_SwitchSession);
       niSwitch_close(m_SwitchSession);
       m_SwitchSession = VI_NULL;
    We did confirm in our testing that all of the niSwitch calls in the above destructor do return successfully.
    Is there anything else we should be doing to prevent the 0x80040311 return from niSwitch_InitWithTopology() after multiple initializations?

    Hi Frank,
    I was involved with the initial question posted by Bill Hammon, and this problem is not resolved.  One of the things that was not mentioned in the initial post was that this problem was found on a Window 7 test system.  At the time this was our only Windows 7 system (rest were XP) so this wasn't a show stopper.  Now that we are converting the rest of our test stations to Windows 7 we are anxious to get this thread moving again.
    I did check out the thread referenced by EricE above, "Seemingly-Random-Error-with-DAQMx" but It doesn't look like there was a resolution, and I'm not sure if it is the same problem.  In the referenced thread the disconnection from the configuration server occurred randomly.  I can reproduce our problem every time by changing our system configuration as described in the initial post ... so it should be easy to debug!
    The initial post specified the problem as being with the niSwitch API using the InitWithTopology() function for our MUX cards.  As you stated above, the issue is with the test application losing connection with the NI configuration server and is not specific to any of the APIs or cards.  It affects all of our NI cards and we get the same return code (0x80040311) from DAQmx using the GetSysDevNames() function call.
    In the last few days I have done some more analysis of our code when we reconfigure the system.  I did find some potential problems in the destruction of the old configuration where we could be accessing a switch session or task that had already been closed (also removed the niSwitch_Disable as suggested in your first reply).  Even with these issues resolved the problem still occurs.
    Our test application does not explicitly connect to the configuration server.  Is there a way that I CAN explicitly force the connection to the configuration server (or reset the existing connection) to ensure that it is available when I come up on a new configuration?
    One more note ... we are developing our test application using VC++ under Microsoft Visual Studio 2010.  I noticed in your release notes for DAQmx that you only specifically support through Microsoft Visual Studio 2008.  Are there known issues between 2008 and 2010 that could lead to the loss of connection to the configuration server?
    Brian
    ACSS

  • Loading performance help me

    Hi all,
    I had a query regarding the loading performance. v can improve the performance.
    1. first load md before td
    2. packet sizing
    3. multiple initialization.
    4. deleting indices
    can any body help in knowing the rest of the procedures to improve the loading performance.
    thanks & regards
    KK

    Hi,
    when loading transactional data the first time you can activate the number range buffering for your dimensions as well:
    goto se37 and execute function module RSD_CUBE_GET in order to get the number ranges for dimension:
    I_INFOCUBE: <yourcube techname>
    OBJVERS: A  
    I_BYPASS_BUFFER: X
    I_WITH_ATR_NAV    
    Goto to the very right of return table E_T_DIME and get NOBJECT (BIDx) for the number range of your DIMs
    Goto Tx SNRO; enter your BIDx number range in change mode / menu edit / setup buffering / main memory; enter something around 50'000 into no. of numbers to buffer.
    Doing that for dimensions loaded with high number of record will definitively boost your performance.
    Do NOT buffer the DataPackage dimension in any case!!
    You can do the same for master data... (BIMx)
    hope this helps...
    Olivier.

  • EXIT_SAPLEBNF_005 (ZXM06U51) - getting the current purchase order details

    I have a requirement to determine release agent in part based on who owns the budget. That's easy. The hard part is getting the current data (at least so far)...
    I have tried using the MEPO_DOC_* function moduless. They didn't even give me the amount (at least not in all situations).
    I have now tried using the class based interface (IF_PURCHASE_ORDER_MM) - which seems OK at first but has an unwanted side effect: it interferes heavily with the purchase order transaction.
    Currently I am struggling to get rid of the side effects, but there must be an easier way than the path I have started on. I've been looking for some sort of manager class which could be used to retrieve the interface reference without having to initialize it myself via CL_PO_HEADER_HANDLE_MM but haven't found one yet.
    Part of my problem is that the user exit is called twice, so if I buffer the handle transaction ME22N doesn't initialize correctly (initially appears in display mode becuase the first call for some reason is stating that it's transaction ME23N in change mode). If I don't buffer the handle, the switch to change mode doesn't work properly in ME23N. Thank you SAP!
    I've been struggling with this for more than a day now, so it's time to ask the experts to see if anyone can help me get out of this [Catch 22|http://en.wikipedia.org/wiki/Catch-22_%28logic%29|Catch 22 explanation in Wikipedia]-like situation
    FORM po_get_interface_handle
         USING value(pe_purchase_order) TYPE ekko-ebeln
         CHANGING po_purchase_order TYPE REF TO if_purchase_order_mm.
    * 2011-04-19 EX_KKILHAVN (Kjetil Kilhavn, Blue Consulting)
    * Buffer handles to avoid problems with multiple initializations
      TYPES: BEGIN OF buffer_po_handle,
               ebeln     TYPE ekko-ebeln,
               po_handle TYPE REF TO cl_po_header_handle_mm,
             END OF buffer_po_handle.
      STATICS: lt_po_handles_buffer TYPE SORTED TABLE OF buffer_po_handle
                                      WITH UNIQUE KEY ebeln.
      DATA: ls_po_handle         LIKE LINE OF lt_po_handles_buffer[],
            le_transaction_type  TYPE t160-trtyp,
            le_activity_category TYPE char01,
            le_transaction_code  TYPE syst-tcode,
            ls_document          TYPE mepo_document,
            le_result            TYPE mmpur_bool.
      READ TABLE lt_po_handles_buffer[]
           WITH TABLE KEY ebeln = pe_purchase_order
           INTO ls_po_handle.
      IF sy-subrc <> 0.
        ls_po_handle-ebeln = pe_purchase_order.
        CREATE OBJECT ls_po_handle-po_handle
          EXPORTING
            im_po_number = pe_purchase_order
          EXCEPTIONS
            failure      = 1.
        IF sy-subrc               =  0           AND
           ls_po_handle-po_handle IS NOT INITIAL.
          "Check transaction type must handle code being invoked from change transactions
          "and from other transactions (e.g. Business Workflow agent determination)
          CALL METHOD ls_po_handle-po_handle->get_transaction_state
            IMPORTING
              ex_trtyp = le_transaction_type
              ex_aktyp = le_activity_category
              ex_tcode = le_transaction_code.
          IF le_transaction_type IS INITIAL.
            le_transaction_type = 'A'.
          ENDIF.
          IF le_transaction_code IS INITIAL.
            le_transaction_code = 'ME23N'.
          ENDIF.
          ls_po_handle-po_handle->set_state( im_state = cl_po_header_handle_mm=>c_available ).
          MOVE: mmpur_po_process    TO ls_document-process,
               le_transaction_type  TO ls_document-trtyp,
               pe_purchase_order    TO ls_document-doc_key(10),
               mmpur_initiator_call TO ls_document-initiator-initiator.
          ls_po_handle-po_handle->po_initialize( im_document = ls_document ).
          CALL METHOD ls_po_handle-po_handle->po_read
            EXPORTING
              im_tcode     = le_transaction_code
              im_trtyp     = ls_document-trtyp
              im_aktyp     = le_activity_category "ls_document-trtyp
              im_po_number = pe_purchase_order
              im_document  = ls_document
            IMPORTING
              ex_result    = le_result.
          IF le_result = mmpur_yes.
            READ TABLE lt_po_handles_buffer[]
                 WITH TABLE KEY ebeln = ls_po_handle-ebeln
                 TRANSPORTING NO FIELDS.
            INSERT ls_po_handle INTO lt_po_handles_buffer[] INDEX sy-tabix.
          ENDIF.
        ENDIF.
      ENDIF.
      TRY.
          po_purchase_order = ls_po_handle-po_handle.
        CATCH cx_sy_move_cast_error.
      ENDTRY.
    ENDFORM.                    "po_get_interface_handle

    Hi ravi,
    can you please tell me the Tcode  for creation of purchaze order in SRM.
    thank you
    sunny.

  • Multiple computers unable to initialize decks.

    I have something very odd happening. At the University where I teach we have multiple Macs all running Final Cut. First one PowerPC started giving a message that it was "unable to initialize" the deck. I tried two decks and two cameras... nothing. Now I have three machines all giving me the same message. I brought my Computer and Deck from home (Sony DV Cam) which was working. I plugged it into one of the school's computers and zip. I plugged back into my computer... and now it can't initialize. I've tried two brand new firewires (6 to 4 pin) and neither work.
    I've checked all the setting and they are fine.
    I have students trying to turn in final projects and I'm stumped.
    Does anyone have any suggestions as to what might cause this wide spread failure?
    Thanks in advance

    I plugged it into one of the school's computers and zip. I plugged back into my computer... and now it can't initialize.< </div>
    My first conclusion is that your decks at the school have had their FW ports shorted and this is shorting out and destroying your computers' ports one at a time as each one is attached to the decks.
    You bebug this with a simple binary test that will end in a small and relatively inexpensive disaster. If you cannot determine which of the decks (maybe all) have burned out FW ports (might google testing FW, there's probably a simple device for the task), you must locate working FW buses on a computer and then plug in your decks. Buy several cheap FW cards, install them in one machine. Fry them one at a time until you determine where the problem lies.
    bogiesan

  • How to ensure multiple nested classes static readonly initialization orders

    Hello,
    I am emulating the Java Enumeration in a first class class, with static readonly field initialization.
    In an effort to further categorize some instances, I embed them in nested classes. Something like this.
    class A : Enumeration
    public static class CatB
    public static readonly A FirstInstance = new B();
    public static readonly A SecondInstance = new B();
    public static class CatC
    public static readonly A ThirdInstance = new C();
    public static readonly A FourthInstance = new C();
    class B : A
    class C : A
    So far so good.
    One strain of Enumeration has built-in Ordinals, so I initialize them in the static ctor, or I make an effort to.
    static A()
    var values = GetValues().ToList();
    var ordinal = 0;
    values.ForEach(v => v.Ordinal = ++ordinal);
    Also, in places, so far so good.
    However, in a main method, I am referencing one of the enumerated instances, so calls to my GetValues() is returning nulls for that nested class. The other nested class instances are just fine, they return just fine.
    I could post more, but I think this illustrates the idea.
    I am suspicious that a strange static initialization order is jumbled up, as evidenced by nested static ctor debug statements I put in. I get one print and not the other.
    When I switch up which instance I reference in my main, I get the opposite behavior, more or less confirming my suspicions.
    So... Question is, what's the best way to potentially work around this issue? Hopefully without abandoning the Enumeration concern altogether, but that thought is a possibility as well. Or at least do so differently.
    Thank you...

    It is probably necessary to show GetValues() at least. I am getting the correct nested types, so that much we can at least assume.
    protected static IEnumerable<TDerived> GetValues()
    var declaringTypes = GetDeclaringTypes(typeof (TDerived)).ToArray();
    foreach (var declaringType in declaringTypes.Reverse())
    var fis = declaringType.GetFields(PublicStaticDeclaredOnly);
    var values = fis.Select(fi => fi.GetValue(null)).ToArray();
    foreach (var value in values.OfType<TDerived>())
    yield return value;
    Okay, here a bit of explanation.
    Enumeration is declared generically, with TDerived as the derived type. In this case, A.
    GetDeclaringTypes is operating okay. I get types for A, B, and C.
    The fis to values is breaking down, however. When I reference any of the CatB's, I get nulls for those instances. Conversely, same for CatC's when I reference any of those.

  • How to handle multiple SOAP requests for ArrayCollection initialization?

    Hello.
    I want to initialize some ArrayCollection with objects, which receive field values via SOAP requests (in getUdfValuePrj function).
    for (var i:int=0; i < data.length; i++)
      var task:Task=new Task();
      task.laborio = getUdfValuePrj(data[i].id, LABORIOUSNESS);
    tempTaskArray.addItem(task);
    Here is my WebService:
    private function initWebServices(wsdl:String):void
      _udfWs = new WebService();
      _udfWs.wsdl = wsdl;
      _udfWs.getTaskUDFValue.addEventListener("result",
      getTaskUDFValueResult);
      _udfWs.getTaskUDFValue.addEventListener("fault", handleFault);
      _udfWs.loadWSDL();
    The question is, how functions getUdfValuePrj and getTaskUDFValueResult should look like?
    I think that is no good:
    private function getTaskUDFValueResult(event:ResultEvent):String
      _udfValue = event.result as String;
    private function getUdfValuePrj (taskId:String, udfCaption:String):String
      _udfValue = "Loading...";
      _udfWs.getTaskUDFValue (taskId,udfCaption);
      while (_udfValue == "Loading...")
      return _udfValue;

    There is no any ideas, or may be you don't understand me?

  • Multiple programs will not initialize G5

    Dual 2.3 G5 (June 2005) - Mac has been on or asleep for a few days. Went to open up GarageBand and received an OSX terminiated application message. Ran Disk Utility. Everything OK. Tried to restart, but the computer did not shut down - only the blank blue screen with all the icons reappearing. Same thing at shut down. Did power off and reboot a couple of times.
    Activity Monitor will not run, nor Software Update. A few apps here and there will run, but so far, Safari only flashes for a second, Logic Pro, Ableton Live will not initialize. Can not add a user in the Systems Preference - when I try to hit one of the tabs in Accounts, System Preferences shuts down.
    Removed all peripherals with exception of track ball and Bluetooth.
    Just trying to postpone the inevitable, I suppose. Thanks for your help.
    Dual 2.3 G5 5.5 RAM, 1.66 Intel Mini, MacBook 2.0, iMac 24", PowerBook G4 15"   Mac OS X (10.4.9)  
    Dual 2.3 G5 5.5 RAM, 1.66 Intel Mini, MacBook 2.0, 1.42 Mini, PowerBook G4 15"   Mac OS X (10.4.9)  
      Mac OS X (10.4.9)  

    The inevitable would be:
    SuperDuper
    Disk Warrior
    Applejack
    2 backup sets
    an emergency boot drive
    If Safe Boot doesn't work, often trying to use fsck won't, so I use fsck first if not alternate boot to the emergency drive (Firewire).
    Cleaning out all the temp and cache files can help, at first.
    Have your test user account setup ahead of time and tested, along with a routine for backups and what to do when there is a failure.
    Why does it happen? bad sector on the disk? bad RAM? software conflict? UPS didn't kick in when needed during a dip in power?
    Doing a backup + erase + restore on a regular basis can also keep a system running more smoothly. And keep your boot drive with 40% or more free space, and upgrade your drives regularly (use old drives for backups).
    Filesystems don't take kindly to freezes or trying to "plow through" a problem, and just bury the cause or underlying corrupt file or directory. Postponing insures it will be worse than it would have been.

Maybe you are looking for