No stop in StartupShutdown, Unique prefix

Hi all,
I am porting my second PlugIn from CS6 to CC2014. The formal syntactic changes are made, but the PlugIn causes a crash of InDesign.
So I took my newly successfully ported PlugIn, removed all unused c-files, and added some of the c-files of the second PlugIn. I tried to make the new PlugIn ready to show the "About..." alert at first.
This succeeds only in that case when I use the prefix number of my first PlugIn. I am nearly sure that there is nothing left from the first PlugIn in the source/resource of the new one. But when I apply the unique prefix for the second PlugIn, nothing happens whe I select "About" in the menu.
There is a second mysterious thing: When I set a breakpoint inside the "StartupShutdown" function, it doesn't stop there. The breakpoint at the line with      "CREATE_PMINTERFACE(MyStartupShutdown, kMyStartupShutdownImpl)"
works.
Has anybody a helping idea for me?
Thanks, kb_alfa

Hi again,
I was indeed the content of my resource file that didn't belong to the rest of my project. Now the debugger stops inside the StartupShutdown, and also the prefix is now the correct one.
I let this post here as I think that it proably helps others they make the same mistake.
Cheers!

Similar Messages

  • Stop Itunes adding numeric prefix to song filename when burning playlist?

    Hello, does anyone know how to get Itunes to stop automatically adding nummeric prefixes to the song filenames when burning a playlist? For example, if I have a playlist where the 3rd song is "Boom Boom Pow", Itunes will name this song "03 Boom Boom Pow.m4a" For various reasons I really don't want the number "03" added. I can't find how to make Itunes not do this? I just want the filename to be "Boom Boom Pow.m4a"
    thanx

    I am posting this question in the ITunes forum instead.

  • Applescript - Add prefixes in file name to an array

    I have a little script I am working on and I am stuck on this feature.
    If I have a folder full of files with prefixes like
    sm_test.png
    sm_test2.png
    med_test.png
    med_test2.png
    lg_test.png
    lg_test2.png
    I would like to add each unique prefix to an array without any duplicates.
    {"sm", "med", "lg"}

    Thank you so much Niel! Since you helped me with my other post. I have one last questions and I swear I will leave you alone. Basically I am trying to combine the two.
    I have the script creating folders based on the prefixs then I need to move the files to their folders and remove the prefix. It seems to work when there is only one prefix but breaks when there is more then one.
    set the_array to {}
    tell application "Finder"
              try
                        set theLocation to the selection as alias
              on error
                        set theLocation to (folder of the front window as alias)
              end try
              repeat with this_file in (get files of theLocation)
                        set the_name to name of this_file
                        set the_prefix to items 1 thru ((offset of "_" in the_name) - 1) of the_name as string
                        if the_array does not contain the_prefix then set the_array to the_array & the_prefix
              end repeat
              repeat with e in the_array
                        if not (exists folder e of theLocation) then make new folder at theLocation with properties {name:e}
              end repeat
              set this_list to every file of theLocation
              set AppleScript's text item delimiters to {"_"}
              repeat with i in this_list
                        repeat with ee in the_array
                                  if (name of i) begins with ee then
      move i to folder ee of theLocation
                                  end if
                        end repeat
                        set name of (the result) to text item 2 of (get name of (the result)) as string
              end repeat
    end tell

  • Setting namespace prefix with JAXB

    I'm trying to build and use a JAXB application.
    1. Generate the Java source files by submitting the XML Schema with Namespace to the binding compiler.
    2. Compile the Java source code.
    3. Marshal the data to new XML documents(valid XML document).
    But namespace prefix of XML Schema doesn't equal namespace prefix of new XML document.
    The prefix of new XML Schema is "heo". But, the prefix of new XML document set as "ns1" at discretion.
    Is there any way to solve namespace prefix setting?
    Thank you for your help.

    Why is java the only one doing this?
    I know prefixes are arbitrary, but when groups/individuals design XML docs, the instinct is to specify unique prefixes and to expect them coming in and out of other systems.
    When joe-developer emails an API to a buddy, she's got to include a lot more info every time, not just "cool:news" vs. "bad:news" but "cool:news" and "xmlns:cool=uri-foobar-smyte" and ...
    Sooo much simpler to handle the xml when its not only declared correctly, but you can expect specific prefixes. Less lines in writing tests, less lines in parsing out namespace declarations in order to expand them to uris and then map those to the random prefixes... blah.
    If you are concerned about dropping uri's then THAT should be the exception to the rule, then you write tests to lookup the namespace-uri.
    I suppose sun's xml stack is kind of a lesson to teach us developers to handle xml the orthodox way, using random prefixes, thanks for that.
    Classic: look at the amount of code it takes to parse xml in java. Then add on complexity (weirdness) in terms of random prefixes .... then compare that to .net/python/ruby/php/perl/c/c++ ... sun is all alone on this one and about 10x more verbose.
    At least honor the xml prefixes declared and developers round the world will appreciate the boost in productivity.
    Word!
    -jhn

  • Is there a administration team in SAP to allocate the workflow prefix NO.

    If we want to implement SAP Business workflow in our own application, how do we know which prefix number should be used? Is there a administration team in SAP internally to allocate the workflow prefix number?

    Hi Ya Wang,
        You have to do all workflow customizing settings in the system before you are going to start workflow development or run the workflow in the very beging stage.
        After u completed the workflow customizing, system will allocate unique prefix number to each system. we need not bother about those things.
        To do those Setting we have to go to the Transaction <b>SWU3</b> and do all customizing there itself.
        Please let me know that still u r NOT clear.
    Thanks & Regards,
    S. Manikanda.
    Note:-  Pls don't forget to reward the points to me.

  • New Dial plan & Voice policies not taking effect with Polycom CX 600 Desktop Phone in production deployment, Worked fine in Testing

    Hi,
    We are in the process of Migrating Cisco CUCM & Voice Gateway (From another vendor to Cisco).
    The requirement is all internal calls between Cisco IP Phones & Lync to be flown through CUCM. Means internal extension to extension. Remaining all calls like Mobile, National, International, Toll Free, Emergency, Shared numbers calling to be routed
    to Cisco Voice Gateway.
    We created the test dial plan, Voice policies, Route and assigned it to couple of user from Lync (2 extensions) and from Cisco side we have taken 2 IP Phones which is pointed to new CUCM. We tested all below scenarios,everything was working fine.
    Lync to Lync Call using internal Extension number – Routed through Cisco new CUCM
    Lync to Cisco Call using internal Extension number – Routed through Cisco new CUCM
    Cisco to Lync Call using internal Extension number – Routed through Cisco new CUCM
    Lync to Hotline Numbers (66XX, 68XX Numbers) – Routed through Cisco Gateway
    Lync to Shared Numbers starting with 600 (Verified the number 600535353) - Routed through Cisco Gateway
    Lync to Emergency numbers & Toll Free Numbers (Not verified the emergency Number as we decided to do it at end) - Routed through Cisco Gateway
    Lync to Landline Numbers – Any 7 digit numbers - Routed through Cisco Gateway
    Lync to National Numbers – Starting with 3,4,6,7,8 followed by 7 digits - Routed through Cisco Gateway
    Lync to Mobile Phones – Starting with 05 contains exactly 10 digits - Routed through Cisco Gateway
    Lync to International Numbers – Starting 00 contains at least 11 digits - Routed through Cisco Gateway
    All Incoming calls – From Landline, Mobiles, International Numbers - Routed through Cisco Gateway
    Call Transfer – To another Lync Extension, Cisco Extension, Landline, Mobiles, International Number
    Conference – with another Lync Extension, Cisco Extension, Landline, Mobiles, International Number
    Call Forwarding – To another Number, Voice mail
    Response Groups
    Click to call – As if user try to place a call by directly click the number from Outlook, Websites will be in E.164 format
    Dial in meeting – Conference calls are works fine
    But when we roll out to the production we are facing issues listed below
    1) The phones we used during testing are working which is using same dial plan, Voice policy, Route, PSTN Usage. But from production most of the phones are not working (using the same dial plan, voice policy, Route). Also Problem is only with external calls
    as the internal calls are working fine between Cisco & Lync even in production (Routed through CUCM) NOTE: All incoming calls are working fine (From international, local, national, extension)
    2) How long its going to take for Lync to push the new voice policies, Dial plans to the Phones?
    3) Is there a way to forcefully update the policies, dial plans to the Phone?
    4) Also the environment is using over 100 dial plans, so I just copied and pasted the Normalization rules that we tested and working fine.  Most of the dial plans are assigned to individual users as every dial plan contains a normalization rule for
    international calling with Unique Prefix (Example: User John international Normalization rules says #1234#00#CountrycodePhonenumber, means if John has to place the international call he need to dial #1234# followed by 00 and then country code, then actual
    phone number). In this case how long its take for the users / phones to get updated with new dial plans? 
    6) Is it recommended to use multiple dial plans ? What are the best practices?
    5) Also calls are working fine one & failing on subsequent tries. Means when I dial first 1 or 2 times. Call fails, but when I try 3rd time and subsequently it works. After some again there will be failure during 1 or 2 attempts. Why is it so?
    6) After updating the dial policies, voice Route, Voice policies If i reboot all the phones from Switch, Will the changes take effect immediately?
    7) Also when some one calling from mobile or external number to Lync extensions they cant here any Dial tones or caller tunes? Its working fine when they call Cisco Extensions. Also to Lync its working if we dial in E.164 Format, if we dial like 023XXXXX
    format its not working. Any guess about this issue?
    Waiting for some one to help, 
    Best regards
    Krishna
    Thanks & Regards Krishnakumar B

    Hi,
    1.  As all incoming call worked normally, please double check outgoing ports for Lync FE Server and Mediation Server.
    You can refer to the link of “Ports and protocols for internal servers in Lync Server 2013” below:
    http://technet.microsoft.com/en-us/library/gg398833.aspx
    2.  When an administrator makes a change to Lync Server (for example, when an administrator creates a new voice policy or changes the Address Book server configuration settings) that change is recorded in the Central Management store.
    In turn, the change must then be replicated to all the computers running Lync Server services or server roles.
    So it may not replication completely immediately.
    3.  You can run the following cmdlet with Lync Server Management Shell on FE server to
    forcibly replicate information to a computer: Invoke-CsManagementStoreReplication
    4.  As you used over 100 dial plans, it may be the issue of multiple dial plans. Would you please tell us why you created different dial plan for individual user with unique prefix?
    5.  Multiple dial plans and undue normalization rules may cause call fail. You can double check the normalization rule.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Download files from application server - unknown file name

    Hello everybody,
    I am working on a report allowing users to download XML files from the application server. All these XML files are created by the SAP system and their names can be found in a table. I can simply use OPEN DATASET for these files, put all file content to a buffer and send them to the GUI with CALL METHOD cl_gui_frontend_services=>gui_download.
    The problem is now that some files are touched by an external document management system. These files are moved to another directory and timestamped. The first is no problem since the folder name is always the same and can be replaced before the OPEN DATASET statement. But additionally, the file gets a timestamp, when the filename was xyz.xml before, it now gets xyz.xml.01012008123456123456. As I cannot try all possible values (mircoseconds!), I need a way to search for the right filename on the application server. Is there a function module for this available?
    It can always be stated that the former name (xyz.xml) is still a unique prefix, so I don't have to worry that xyz.xml.* will return multiple files.
    Thanks in advance for any suggestions.
    Christoph

    HI!
    I copy the function GET_DIRECTORY_FILE. In the eyelash of tables create one structures:
    DIR_FILES           LIKE                  ZDIR_FILES
    The single structure has component NAME (char 250).
    I code of the function that I use is:
    FUNCTION zget_directory_file.
    ""Interfase local
    *"  IMPORTING
    *"     REFERENCE(NAME_OF_DIR) TYPE  CHAR120
    *"     REFERENCE(NAME_OF_FILE) TYPE  CHAR120 OPTIONAL
    *"     REFERENCE(SP_CS) TYPE  CHAR120 OPTIONAL
    *"  TABLES
    *"      DIR_FILES STRUCTURE  ZDIR_FILES
      DATA: a_dir_name TYPE  char120,
            a_generic_name TYPE  char120,
            a_must_cs TYPE  char120.
      a_dir_name      = name_of_dir.
      a_generic_name  = name_of_file.
      a_must_cs       = sp_cs.
      DATA: errcnt(2) TYPE p VALUE 0.
      IF a_dir_name IS INITIAL.
       MESSAGE e220.     " 'Place cursor on valid line !'.
      ENDIF.
      CALL 'C_DIR_READ_FINISH'             " just to be sure
          ID 'ERRNO'  FIELD file_list-errno
          ID 'ERRMSG' FIELD file_list-errmsg.
      CALL 'C_DIR_READ_START' ID 'DIR'    FIELD a_dir_name
                              ID 'FILE'   FIELD a_generic_name
                              ID 'ERRNO'  FIELD file-errno
                              ID 'ERRMSG' FIELD file-errmsg.
      IF sy-subrc <> 0.
        sy-subrc = 4.
        EXIT.
      ENDIF.
      file-dirname = a_dir_name.
      DO.
        CLEAR file.
        file-name = '*.zip'.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD file-type
          ID 'NAME'   FIELD file-name
          ID 'LEN'    FIELD file-len
          ID 'OWNER'  FIELD file-owner
          ID 'MTIME'  FIELD file-mtime
          ID 'MODE'   FIELD file-mode
          ID 'ERRNO'  FIELD file-errno
          ID 'ERRMSG' FIELD file-errmsg.
        file-dirname = a_dir_name.
        MOVE sy-subrc TO file-subrc.
        CASE sy-subrc.
          WHEN 0.
            CLEAR: file-errno, file-errmsg.
            CASE file-type(1).
              WHEN 'F'.                 " normal file.
                PERFORM filename_useable USING file-name file-useable.
              WHEN 'f'.                 " normal file.
                PERFORM filename_useable USING file-name file-useable.
              WHEN OTHERS.              " directory, device, fifo, socket,...
                MOVE sap_no  TO file-useable.
            ENDCASE.
            IF file-len = 0.
              MOVE sap_no TO file-useable.
            ENDIF.
          WHEN 1.                     " end of directory
            EXIT.
          WHEN 4.                     " filename too long
            MOVE sap_no TO file-useable.
          WHEN OTHERS.
            ADD 1 TO errcnt.
            IF errcnt > 90.
              EXIT.
            ENDIF.
            IF sy-subrc = 5.
              MOVE: '???' TO file-type,
                    '???' TO file-owner,
                    '???' TO file-mode.
            ELSE.
            ULINE.
            WRITE: / 'C_DIR_READ_NEXT', 'SUBRC', SY-SUBRC.
            ENDIF.
            MOVE sap_no TO file-useable.
        ENDCASE.
       PERFORM p6_to_date_time_tz(rstr0400) USING file-mtime
                                                  file-mod_time
                                                  file-mod_date.
      * Does the filename contains the requested pattern?
      * Then store it, else forget it.
       MOVE-CORRESPONDING file TO file_list.
       APPEND file_list.
        MOVE file-name TO dir_files-name.
        APPEND dir_files.
       IF a_must_cs = no_cs.
         MOVE-CORRESPONDING file TO file_list.
         APPEND file_list.
       ELSE.
         IF file-name CS a_must_cs.
           MOVE-CORRESPONDING file TO file_list.
           APPEND file_list.
         ENDIF.
       ENDIF.
      ENDDO.
    ENDFUNCTION.
    *&      Form  filename_useable
          text
         -->A_NAME     text
         -->A_USEABLE  text
    FORM filename_useable USING a_name a_useable.
    *--================--
      DATA l_name(75).
      l_name = a_name.
      IF l_name(4) = 'core'.
        a_useable = sap_no.
      ELSE.
        a_useable = sap_yes.
      ENDIF.
    ENDFORM.                    "FILENAME_USEABLE
    With this I obtain all the archives XML of that route in a table
    DATA: zfiles LIKE STANDARD TABLE OF zdir_files WITH HEADER LINE.
    CALL FUNCTION 'ZGET_DIRECTORY_FILE'
      EXPORTING
        name_of_dir = dsn
      TABLES
        dir_files   = zfiles.
    IF sy-subrc = 0.
      LOOP AT zfiles .
        IF  zfiles-name+0(2) = 'O_' AND
            zfiles-name+2(3) = sy-mandt AND
            zfiles-name+5(1) = '_' AND
           zfiles-name+22(4) = '.xml'.
          file = zfiles-name.
    endloop.
    endif.
    I hope this helps you.
    Regards.

  • How to change hostname on NetWeaver  2004s NW (Win2k3 + MSSQL)

    Hi,
    I'm a Virtualization expert @SAP IT. I was aked to provide a solution for hostname change process for cloned virtual machines. Here, i'm posting my solution but use it on your own risk and sideeffects can appear too (applicable to NW 2004s - don't know about side effects till now).
    1. Change your hostname to a new one  (newsid for clonned) and stop SAP services with prefix SAPXYZ_AB
    2. open the c:\Windows\System32\drivers\etc\hosts file and add your previous hostname at the end of 127.0.0.1 line:
        127.0.0.1       localhost      youroldhostname
    3. Use sql enterprise manager (or other SQL tool) in order to connect NW's database.
    4. NW's database is a database with a SAP systemID - XYZ and locate J2EE_CONFIGENTRY table
    5. Open a query window and check the following SQL Query for previous appearances of your hostname
    SELECT     *
    FROM        J2EE_CONFIGENTRY
    WHERE     (UPPER(VSTR) = 'YOUROLDHOSTNAME-WITH-CAPITAL-LETTERS')
    6. If this query returns results - run the following SQL update command
    UPDATE    J2EE_CONFIGENTRY
    SET              VSTR = 'NEWHOSTNAME'
    WHERE     (UPPER(VSTR) = 'YOUROLDHOSTNAME-WITH-CAPITAL-LETTERS')
    7. if step 5 failed try to run query w/oout where statement
    Best regards,
    Boris Mikhailovski
    System & Software engineer
    Message was edited by:
            Boris Mikhailovski

    > I'm a Virtualization expert @SAP IT. I was aked to provide a solution for hostname change process for cloned virtual machines. Here, i'm posting my solution but use it on your own risk and sideeffects can appear too (applicable to NW 2004s - don't know about side effects till now).
    Just as addition:
    "Officially" it's not supported to rename instances, this is especially true for Java instances:
    Note 757692 - Changing the hostname for J2EE Engine 6.40/7.0 installation
    <...>
    This note should be applied only when the hostname of a machine where the j2ee engine was already installed has changed. It does not replace the SAP official system copy procedure and MUST NOT be used for copying of an instance to another host and/or with different SID.
    <...>
    Markus

  • Multiple image files with the same name

    I have about 150 images that have been imported into a single lightroom folder that have the same name. These images are from a single event, so Id like to keep them together. The source files are in two different folders on my drive, but they all exist in one folder on lightroom. (for instance, I have two different images, both named CR-0917, both with different retouching). Initially, Lightroom allowed me to do all of my editing on all of the files in one place, even though the names were the same. I have since moved the source folders and files to a different location on my hard drive, but I can't update the files within the folder in lightroom, because lightroom chooses one source, so it gets about half the images right, and half wrong. I spent a ton of time retouching these images and I dont want to have to go back and redo it.
    Is there a way to manually update the source information for each image, without Lightroom automatically using all of the images from a single folder? Or does anyone have any other ideas of what I can do? Please help...

    I am puzzled about how this problem initially arised, too.
    For the issue with several cameras I recommend the following:
    1. If the camera lets you, specify a unique prefix so that each photo will have a unique name directly from camera.
    E.g. Nikon lets you change their default prefix "DSC" to something else. As I even do not want to have recurring filenames after 10'000 shots I choose "yFL" as prefix, where y=number from 0..9, F=starting letter of ther first name of the camera owner, L=last name. Or other 2 digits that point to the camera model.
    For current decade it is even nice to take y=1 for 2011 and so on. As I do roughly 10'000 shutters per year that fits about nicely. [Ok, as of 2020 I will use letters, too. 2046 I have to devise something else hoping that I will still be shooting photos with my same husband.]
    2. If the camera does not facilitate such, as Canon: rename upon LR-import by putting a short prefix in front of the originial filename, e.g. yS90_, yG12_
    I only want from a filename that it be unique in my household and that I have a rough idea where in sequence of time it may belong.
    So if I get pictures from friends I put a prefix for them, too, while importing. Leaving the rest of their original filename is good for further communication about the pic.
    I think usually LR takes more properties into account than just filename when deciding about duplicate, such as camera serial no., capture time etc.
    Anybody who knows for sure?

  • Keyword tags text box poorly designed, crashes PSE 8

    I was very interested to see that PSE 8 allows you to enter keyword tags using a text box, as other programs do, promising much faster tagging with large sets of tags.  But the feature has serious bugs rendering it unusable.
    After trying the keyword-tags text box for less than a minute on my large catalog with 426 tags, PSE 8 crashed.    Even with a fresh catalog and the default tag categories, it will crash after using the text box about 40 times.   (See below for a recipe.)
    Another bug concerns tags with commas in them, e.g. "Truckee, CA" (I have a couple hundred such Place tags).  If you type "Tru" in the text box, select the tag with the mouse, and hit enter, PSE 8 will create two new tags, Truckee and CA, in the Other category, and apply them to the photo.
    A design misfeature: After you select and apply a tag with the text box, it loses the keyboard focus.  So to select another tag for the same photo, you have to move your hand to the mouse and click in the text box again.  Partially defeats the whole purpose.
    Recipe for reproducing the bug:
    1. Create a new catalog.
    2. Import 50 photos.
    3. Select the next photo.
    4. In the keyword tag text box, type "p" and then enter.
    5. Go to step 3.
    On the 40th or 41st photo, my PSE 8 reliably crashes (Vista 32, 4 GB of memory).   If after step 1 you use the Keyword Tags > + > From File command to load a tag heirarchy of 210 tags (see the attached file), it will crash after just 9 photos.   And with 426 tags, it crashes after 5 photos.
    Interestingly, on my Vista 64 system (unsupported by Adobe, 8 core x 2.7 GHz), PSE 8 doesn't crash, but the text box gets unusably slow very quickly.  WIth 210 keyword tags in the catalog, it soon takes about 12 seconds to find a tag after you type a unique prefix.   That time gradually gets longer the more you use the text box.  With 426 tags, it takes almost 20 seconds to apply a tag using the text box.
    On both systems, it's clear what the nature of the bug is: Each time you use the text box, the process's memory grows by many megabytes.  I believe my Vista 64 system doesn't crash (at least not immediately) because it provides 3.5 GB of memory for use by PSE 8, while Vista 32 only provides about 1.5 GB.
    I'm getting a sinking feelilng...

    Is the white triangle to the left of "Keyword Tags" pointing down or pointing to the right?  See this screen shot:
    Click on the white triangle -- does that make a difference?
    If not, try deleting the Organizer's preferences:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#Delete_the_Organizers_prefe rences

  • N: 1 relationships in Value Mapping 3.0

    Hi,
    in our Value Mapping we need to process n:1 relationships between values. E.g. 2 different codes for reason-for-rejection in the sending system need to be mapped to 1 value in the receiving system.
    As we see now, and this is also mentioned somewhere in this forum, this doesn't work. Is this correct?
    As suggested in this forum one option would be to add the sending value in the receiving value and use mapping to trim the value. So e.g.
    Agency: SystemX                    Agency: SystemY
    Scheme: Augru                      Scheme: Augru
    Value                              Value
    A1                                 B
    A2                                 B
    would become
    A1                                 A1_B
    A2                                 A2_B
    Of course, this would work, but just one-way (from SystemX to SystemY). From SystemY to SystemX this would not work, since only value B is available at that time. If you apply the same logic, so implement another value, this would eventually mean:
    Agency: SystemX                    Agency: SystemY
    Scheme: Augru                      Scheme: Augru
    Value                              Value
    A1                                 A1_B
    A2                                 A2_B
    C_A1                               C_B
    D_A2                               D_B
    So you end up with a lot of values to maintain.
    Another option would be to use different Value Mapping scheme's, but this would influence the reusability of the mapping.
    Any suggestions?
    Thanks a lot!

    When you have an n:1 mapping and want to use this in both directions, you need a logic, how the values are determined, if you have several entries to choose.
    In your example:
    A1 -> B
    A2 -> B
    If you come from the other side, what value should B have?
    For the default value you could use a unique prefix (eg: 1_) and add that prefix to the value before calling the value mapping.
    Let us assume, you have maintained the table like this:
    A1 -> 1_B
    A2 -> 2_B
    A3 -> 1_C
    A4 -> 1_D
    A5 -> 2_D
    A6 -> 3_D
    so you have B ->A1, C -> A3, D -> A4
    Regards
    Stefan

  • Hierarchy problem in awm

    Hi,
    i have the below hierarchy in my date dimeniosn: year-->quarter-->month-->week-->day.. and my measure is count. i have datas as below:
    2012-->Q3-->month 8-->week 1-->01, i have count as 6
    2013-->Q3-->month 8-->week 1-->01 , i have count as 7
    ie., i have two different years having same quarter,month,week and day. when the cube is populated, i see that am not able to see data under year 2013.
    I see that this happens since i have same quarter,month,week getting repeated in both the years. should i have quarter prefixed with year to fix this?? is this the only way??
    for example, consider the below simple example with hierarchy: city-->streetname-->doornumber
    i have the below data:
    chicago-->east-west street-->door 45
    sanjose--> east-west street-->door23
    when i populate the cube with this data, i should get the proper hierarchy as above in the cube.. but it is not happening since the streetname hierarchy is not unique.
    can any one pls help me on this??

    The member names need to be unique in OLAP. So, for example, you cannot have member "Q3" report up into both 2012 and 2013. The standard solution is to concanate the member names in some way. E.g.
    2012-->2012_Q3-->2012_Q3_month_8-->2012_Q3_month_8_week_1-->2012_Q3_month_8_week_1_01
    There are, of course, many ways to create unique member names and you can certainly do something more elegant than this. But however you do it, the member names must be unique and each unique member name must have only one parent in a hierarchy. The same holds for your geography dimension example.
    There is another solution, which is to have separate YEAR, QUARTER, MONTH, and DAY dimensions instead of a single unified TIME dimension. But you should only do this if you have to since adding three more dimensions to your cube is significantly more expensive that adding unique prefixes to member names. The only reason you would have to do this is if you want to break out your report by the separate levels. e.g. give me the sum of Q3, month 8 data over all days and years. This is not common.

  • How to reconcile services?

    To support a large number of Solaris 10 machines, I need a way
    to establish an initial configuration of services, and to modify that
    configuration from time to time. Taking the inetd restarter as an
    example, I used to keep copies of /etc/inet/inetd.conf in a central
    location, installing them on each machine in a Jumpstart finish
    script. Commenting out lines in the file would disable those
    services.
    This no longer works in build 69. It's possible to convert an
    netd.conf file into services that run under the inetd restarter,
    but commented out lines don't disable the corresponding
    service. What I'm thinking of for Solaris 10, is to run `inetadm'
    to get a file containing the current set of inetd services. The
    output shows the enabled/disabled status in the first column.
    Then, I'd create a second file, starting with a copy of the first one,
    but with the first column modified to show the desired status.
    A script could then compare the two files, and and issue `inetadm'
    commands to change the status of services to match the desired
    status.
    Is this a reasonable approach? Does anything like this facility
    already exist, or is planned? I'd also need to do the same thing
    for services that run under the default restarter. The objective
    is to be able to specify a set of enabled services for each
    machine, and ensure that the machine is running with only those
    services enabled. We have a procedure now that makes those
    types of adjustments periodically , or on request.
    I also want to take properties into account, particularly for inetd
    services. I notice that inetd no longer looks at /etc/default/inetd.
    I've been enabling TCP wrappers from that file. Now, I have to do
    it by changing properties of inetd or of services that run under it.
    There is also the issue of locally-installed services. I've taken the
    approach of writing manifests for them, an installing them in the
    Jumpstart finish script. Is this a reasonable approach? I still have
    the problem of enabling or disabling those services, as required.

    Are there any services that should not be disabled
    initially, but can be disabled later?Services ending with "-upgrade" tend to disable themselves after running on first boot. Depending on whether you need SVM or not, you may be able to disable the various "meta" services.
    I'm also going to install manifests for
    locally-installed services
    into /var/svc/manifest/site in the Jumpstart finish
    script. I have
    one that ensures that a specific NFS mount has
    succeeded,
    for example. Is there a similar place for
    locally-installed
    methods? I've been using /lib/svc/method .We haven't reserved a location for site methods, as they can be placed anywhere in the filesystem. (I'll think about making a site directory in /lib/svc.) If you name your methods with some unique prefix, you'll be fine. (At home, where I play the role of hobbyist admin, I put such methods in /etc/[my_domainname], or in /opt/[my_domainname], depending on when they're needed in boot.
    - Stephen

  • How to add b tags in your XML when changing style to Bold

    I'm currently checking if there is an easier way to automatically add <b> tags when changing font style to Bold in your xml. I'm not sure how to override the format  of a structured application automatically in FM. Do I need to create a script for this? Or is there any configuration that can be made to make this work automatically?

    Most of the discussion on this thread has dealt with the relevance of the Bold button on FrameMaker's Text Formatting toolbar to structured documents.
    While someone made the suggestion to create a <b> element and then insert text within the new element, I don't think anyone has yet commented on how easy it is to wrap an element (<b> or another element) around existing content. You can do so with the Element Catalog. Simply select the content to be wrapped and double-click the tag of the new element (e.g., b) in the Element Catalog. Or click the tag in the Element Catalog and then the Wrap button at the bottom of the Catalog.
    If you prefer to use the keyboard, you can use what is called Smart Insert in FM 11 and quick keys in earlier versions. The first three buttons at the bottom of the Element Catalog window are Insert, Wrap, and Change. You don't need to have the Catalog open to use Smart Insert. I mentioned the buttons only because that order is pretty easy to remember--1. Insert, 2. Wrap, 3. Change. The keyboard shortcuts Ctrl-1, Ctrl-2, and Ctrl-3 bring up the Smart Insert or Quick Keys to Insert, Wrap, or Change an element. With Smart Insert, a pop-up menu appears that shows the available elements. You can use the up and down arrow keys to navigate to the one you want, or type a unique prefix. Then press Enter to perform the operation (or Esc to cancel). With Quick Keys, the left side of the status bar at the bottom of the document window or Structure View (whichever is current) will prompt for the element tag with I: for Insert, W: for Wrap or C: for Change. Again, use the arrow keys or a prefix to display the desired element tag and then press Enter.
    So, to create a new <b> element to hold an existing string, select the string, type Ctrl-2 b, and press Enter.
    That said, I will close with an observation on the use of format overrides in structured documents. While automatic formatting based on element structure is the heart of structured FM, the software was deliberately designed in recognition that as a practical matter it is sometimes necessary for an author to create formatting that the document's element definitions simply do not provide. It therefore allows the user to tweak the formatting (for example, by deliberating making some content bold without using the element structure to do so). Users should understand the difference between element-based formatting and format overrides and use the latter with care if at all.
         --Lynne

  • Different questions regarding FMS 3.5

    Hi,
    I'm a newby to FMS and I have several questions ;-).
    I'm planning an livestream. To get as much viewer as possible my plan ist to stream with 3 different bitrates. This works great ;-). But within my tests a few problems/ideas came up...
    1. FMS is not recording the stream. I used Auto-DVR as well as manual start stop. I also prefixed mp4: ... any ideas? Is it perhaps because it is not the "interactive" one?
    2. Is there a _simple_ possibility to to enable something like "autoquality" (between the 3 streams) on the client side? So that the best solution for the local connection is chosen?
    3. Is there a simple possibility to get viewerstats?
    Thanks a lot for your help

    Hi,
    1. You can record the livestream on the server by creating a custom application and doing a server side record. Your main.asc would be something like this :
    var pubCount = 0;
    application.onConnect=function(clientObj){
              trace("          on connect ");
              return true;
    application.onDisconnect=function(clientObj){
              trace("          on disconnect ");
    application.onPublish = function(clientObj,streamObj){
      trace("          in application publish : " + streamObj.name);
      if(pubCount <= 1)
           streamObj.record("record");
      else
           streamObj.record("append");
      pubCount++;
    application.onUnpublish = function(clientObj,streamObj){
    trace("on unpublish : " + streamObj.type + ":" + streamObj.name);
    streamObj.record(false);
    2. You can do this by using dynamic streaming. You'll find more information here : http://www.adobe.com/devnet/adobe-media-server/articles/dynstream_advanced_pt1.html
    3. You can get various viewer stats using admin APIs. Full reference of the APIs available here : http://help.adobe.com/en_US/FlashMediaServer/3.5_Server_Management_ASD/flashmediaserver_3. 5_administrationapi.pdf. getAppStats() may be particularly useful.
    Hope this helps. Please let me know if you have any other queries.
    Thanks,
    Apurva

Maybe you are looking for