Add addChildElement in a cycle...

Hi...
I need to create a SOAPMessage which include all element from Query Class. Currently there the vector size = 3; but I only got the last one element from the Query Class.
Could someone help me? please.
This is the SOAPMessage
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header/><soap-env:Body><GIFTSET><ACCTNBR>0</ACCTNBR><ACCTNBR>67321059</ACCTNBR><NAME>BROCK+CHLOE DAVIDSON       </NAME><ADDRLINE1>114 FALCONRIDGE DR         </ADDRLINE1><ADDRLINE1>                           </ADDRLINE1><CITY>KITCHENER    </CITY><STATE>ON</STATE><ZIPCODE>N2K4K3</ZIPCODE><COUNTRY/></GIFTSET></soap-env:Body></soap-env:Envelope>This is the code:
public SOAPMessage getXmlMessage(String magabbr, String acctnbr, String zipcod, String email)
throws SOAPException{
     String s = new String();
     MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
              SOAPPart soapPart =     message.getSOAPPart();
              SOAPEnvelope envelope = soapPart.getEnvelope();
              SOAPBody body =         envelope.getBody();
             //Populate the body
             //Create the main element and namespace
             SOAPElement bodyElement =
                       body.addChildElement(envelope.createName("GIFTSET"));
     try {
          Properties props = new Properties();
          Vector queryVector = null;
          GiftSetDeliver giftSetDeliver = new GiftSetDeliver();
          queryVector = giftSetDeliver.getGiftSet("chp", "66724527","","");
          String myString = Integer.toString(queryVector.size());
             //Add content
for (int k=0;k< queryVector.size();k++)
          Query query = (Query) queryVector.elementAt(k);
          //Add content: AccountNumber
          bodyElement.addChildElement("ACCTNBR").addTextNode(query.getAccountNumber());
          //Add content: getName
          bodyElement.addChildElement("NAME").addTextNode(query.getName());
          //Add content: getAddress1
          bodyElement.addChildElement("ADDRLINE1").addTextNode(query.getAddress1());
          //Add content: getAddress2
          bodyElement.addChildElement("ADDRLINE1").addTextNode(query.getAddress2());
          //Add content: getCity
          bodyElement.addChildElement("CITY").addTextNode(query.getCity());
          //Add content: getState
          bodyElement.addChildElement("STATE").addTextNode(query.getState());
          //Add content: getZipCode
          bodyElement.addChildElement("ZIPCODE").addTextNode(query.getZipCode());
          //Add content: getCountry
          bodyElement.addChildElement("COUNTRY").addTextNode(query.getCountry());
          //Add content: getMatchCode
          bodyElement.addChildElement("MATCHCODE").addTextNode(query.getMatchCode());
          //Add content: getStartIssue
          bodyElement.addChildElement("STARTISS").addTextNode(query.getStartIssue());
          //Add content: getLastIssue
          bodyElement.addChildElement("LASTISS").addTextNode(query.getLastIssue());
          //Add content: getExpireIssue
          bodyElement.addChildElement("EXPISS").addTextNode(query.getExpireIssue());
          //Add content: getEMailAddress
          bodyElement.addChildElement("EMAIL").addTextNode(query.getEMailAddress());
          //Add content: getUsername
          bodyElement.addChildElement("EUNAME").addTextNode(query.getUsername());
          //Add content: getPassword
          bodyElement.addChildElement("EPWORD").addTextNode(query.getPassword());
          //Add content: EMAILAUTH
          bodyElement.addChildElement("EMAILAUTH").addTextNode((new Boolean(query.getEMailAuthorized())).toString());
          //Add content: getPermissn0
          bodyElement.addChildElement("OPTIN1").addTextNode(query.getPermissn0());
          //Add content: getPermissn1
          bodyElement.addChildElement("OPTIN2").addTextNode(query.getPermissn1());
          //Add content: getPermissn2
          bodyElement.addChildElement("OPTIN3").addTextNode(query.getPermissn2());
          //Add content: getAccountStatus
          bodyElement.addChildElement("STATUS").addTextNode(query.getAccountStatus());
          //Add content: getBillkey
          bodyElement.addChildElement("BILLKEY").addTextNode(query.getBillkey());
          //Add content: getSourcecode
          bodyElement.addChildElement("SOURCECODE").addTextNode(query.getSourcecode());
          //Add content: getSpecProdCode
          bodyElement.addChildElement("SPECPRODCD").addTextNode(query.getSpecProdCode());
          //Add content: getPromoKey
          bodyElement.addChildElement("RENEWWALKEY").addTextNode(query.getPromoKey());
             //Save the message
             message.saveChanges();
             //Check the input
             System.out.println("\nREQUEST:\n");
             System.out.println();
            FileOutputStream sentFile = new FileOutputStream("zxtodo.msg");
            message.writeTo(sentFile);
            sentFile.close();
             } catch(Exception e) {
                 System.out.println(e.getMessage());
return message;
}//end getXmlMessage...

Is it because you are overwriting your messagefile everytime, until you loop for the last element in the Vector? Im quite new to java myself so apologies if this isnt the case.

Similar Messages

  • Change or Add Cycles in a Maintenance Plan (IP02)

    good afternoon all,
    we have an issue with a number of maintenance plans that were setup as 1 year cycles, and now we want to run them as monthly. Is there a way to either change the yearly cycle to monthly, or add a new monthly cycle?
    SAP ECC6
    Release 731 sp level 0007.
    Thanks.

    Greetings Santosh,
    You are correct, the key word here is "approximately", as the Cycle Modification Factor has only two decimals of precision, you will need to input 0,08 to reflect the appropriate factor of 1/12=0,08(3) - so that will mean your cycle is 360*0,08=28,8 and not 30 days, which is why I did not propose this route. But if it's not an issue, then yes, that's another way to do this
    EDIT: Which reminds me, after switching the cycle to monthly, consider if you require Time or Key Date scheduling on the Maintenance Plan scheduling parameters, as for SAP 1 Month = 30 Days with the former, but with the latter the scheduling is always for the same day of each month.

  • Mysterious CPU cycles being eaten!

    This is new. It started about a week ago. I've noticed that while browsing certain sites, some with heavy Flash content and some without, my CPU activity shoots up. For the most part, I expect this. If I'm running a Flash game in Chrome or FF, I can see the Flash add-on eating up cycles in AM. What boggles me is that even after closing the application, the CPU is still chugging away. More so, with general browsing (non-Flash material), I still see my CPU usage flying up. It will sit at app. 50%/core and stay there indefinitely. AM shows nothing close to using this amount (at most, 2-3%). My only solution, so far, has been a reboot.
    Any thoughts?
    MBP 1st Gen C2D 2.16
    3GB Mem
    128GB SSD
    Latest SL build...

    Was iavd anti-virus process. Did not show up in AM. Used Peekaboo to locate it.

  • How to count the number of cycles in sine wave

    Hi,
    I am new to Labview.  I have labview 8.2 version and my dataacquisition is NIDAQPAD6015.  I could write a program to generate a sine wave of desired frequency through simulate signal. My question is how do i measure the number of cycles for this sine wave as soon as I run the program. Hope my question  is clear.
    Ravi Mokirala

    To find the offset (which in this case is the Y value midpoint around which the sine wave is symetrical):
    Capture more than one cycle.  Find the min and max values.  Subtract Min from Max and divide by 2.  Then subtract this result from the Max value (or add the result to the Min value).  This is the offset.
    To count the number of cycles where the offset is unknown, just use the first data point value as a reference.  If the next data point is more positive, then count the number of times that the first data point is repeated and the next data point is more positive.  Of course with DBL data type, you probably would not get the exact same value as the first data point, so you need to use In Range with a very tiny limit.  It all depends on your signal amplitude, frequency, and sampling rate.
    Example:  Lets say your first data point value is 0.5 and the 2nd point is 0.55.  You need to look for another value that is between 0.48 and 0.52.  Then read the very next data point value.  If it is greater than the previous value, add one to the cycle count.  If it is less than, you are at half a cycle, do not add to the count.
    - tbob
    Inventor of the WORM Global

  • HRESS Pay Statement - Add new Column in Overview and Selection table

    Hello,
    I want to add a column in the "Overview and selection" table for a pay statement service. I want to add field called "off-cycle reason" (OCCAT field from pay result).
    Is there any work around to do the same?
    I feel we may need to implement a BADi to do so.
    Thanks,
    Bhushan

    Hi Bhsuan,
    Please refer to the below link.
    http://scn.sap.com/thread/1486215
    The badi XSS_REM_INTERFACE needs to be implemented.
    Regards,
    Ananth

  • SAP Cloud SDK : Creation of Form using Business Object Error

    Hi Experts,
    I have created custom business object with object based screen and i want to create form for this custom business object.
    I have tried using this.
    Step 1. Right Click on Business Object and select Create Form option.
    Step 2. Enter the require information and click on Next 
    Step 3.  Select the element from the business object you need to display in the form
    Step 4. Select the default language English and Next and Finish it,
    After finish it the form open in adobe reader automatically but i am getting error as shown below.
    and In the solution explorer i can see this.
    Can anyone help me why it display the error while open the newly created form.
    What are the software i need to install or add-ons in my system to open the from or remove this error.
    I have installed the Adobe Life Cycle Designer For SAP Business ByDesign 135.0XXX, Adobe Reader X(10.1.3) , SAP Business ByDesgin Add-In Adobe Life Cycle designer.
    Kindly any software missing or any add-ons require to be install or upgrade?
    Many Thanks,
    Mithun

    Hello Alessandro,
    I have solved the multiple line display in the table.
    I have issue to display the no of character in the table.
    I have Create custom business object and create the form i am using the TectCollection type in table level in businessobject node.
    Case 1. This is my Entry1 in the business object and it display as shown below.
    Here in the table "Undefined Text" is my 1000+ character text.
    When i click on preview button the data display under the PDF as shown below.
    Here the above screen we can see that the data comes perfectly in the PDF without missing data in table level.(Please i have not rename the columns name).
    Case 2.  When i Create new entry 2 and enter the multiple lines into the table as shown below.
    Here in the above screen we can see that i have multiple row under the table.
    When i click on preview button the PDF display with all the line under the table but the data is missing under the third column as shown below.
    Here above screen display the same result but the in the yellow highlighted part full data not display as previous case 1.
    Why the full data display in Case 1 and not in Case 2?
    Is there any configuration to display data ?
    Also i can not change the property of the page in form to "Allow Page Break with Content" this option is disable.
    Kindly suggest me what is wrong in this PDF design.
    Regards,
    Mithun

  • Any new ideas or suggestions for flattening layer effects without changing appearance

    Hello all,
    I've been doing a lot of looking around for ideas on how to make my work flow more simple. I regularly run into an issue with layer effects when they are flattened and have been unable to find any good solutions but was wondering if any new developments have come up with the newer versions of Photoshop that I am somehow overlooking?
    My main issue is that when I flatten layers in sections or groups (i.e. flatten only 2 or more layers together in a larger composition but not the entire compostion), layer effects with blending modes often flatten strangely. I particularly notice this with drop shadows as I often use a color other than black, usually a very dark shade of the color that is applied to the element the shadow is overlapping. To me it gives it a much more realistic and natural look. When I flatten a layer I notice that it appears the multiply mode is stripped from drop shadow FX unless they are flattened with the nackground element, so if I used a dark blue for example, once flattened the shadow is now a distinct blue shade that appears to be in normal blending mode. I can set that drop shadow layer to multiply to restore it but then I have to keep the drop shadow element on it's own layer seperate from the body of the other flattened content otherwise it inherits the multipoy mode as well of course, which still leaves me with an unwanted layer to deal with.
    My curreny solutions range from hiding all other layers and merging visible, which works from some things but not the aforementioned drop shadow issue, I will also keep things that just don't co-operate on their own seperate layer, like the drop shadow and just leave them be if I can. In cases where that isn't an option I will even hide all other layers and comp the portion of the PSD  that needs flattened to a seperate TIFF or PNG and import back into the PSD. Sometimes this will work around the issue and make everything interact as desired. It's a lenghty affair though that involves mental acrobatics every time to devise a suitable workaround that I can use for my purposes.
    The reason I need to do this often is because I work for a web development company as the designer. Once the design is done sometimes I will do the slicing and prepping for web (not an issue when I do this because I can leave everything as a PSD). When other team members like the web developer need access to the graphics files though, they use Fireworks which means I need a layered PNG so they can slice as needed with the software they are familiar with while maintining transparency where needed.
    I know some will say just to use Fireworks then but that isn't a desireable solution to me because I find Fireworks very limiting on the advanced Fx and graphic manipulation. I agree that Fireworks can be very capable and can do very nice things when you're thinking of the design of the entire site in general, but it usually can't do the advanced fx and manipulation I like to use for the "eye candy" portions of the site, especially when you are using mutiple Fx on a layer with their own blending modes. I find it more of a hassle to build a general site in Fireworks and import elements from Phoroshop. Keeping track of proper sizing and constantly loading placeholder background images to photoshop for reference isn't for me!
    I have a pretty decent understanding of how the layer flattening works and how the blending modes function (like the fact you can't have mutiple blending modes on a single layer, thus many of the issues with layer Fx blending modes). I am using CS5.5 Design premium and am hoping there have been some advances in working with this type of thing. I know that if I could flatten the drop shadow layer with the layer it overlaps that would solve the issue nicely but this is seldom possible on websites where you have fluid areas that need to change size and the image element with the drop shadow may not always be in the same place on the site background.
    It would be awesome if, since you have the ability to apply blending modes to individual layer effects, if Photoshop could have a setting to somehow flatten the layer effects and layer in it's own self containted process and then place the flattened layer within the the PSD as if you imported a transparent image like a TIFF or PNG. This is basically what I do on the extreme side of tihngs manually when needed. It would be great if there was a way to automate that type of functionality.
    Does anyone know of any new or good method to deal with this type of thing? Sorry about the long post, I was trying to be as detailed as possible as I know it's sometimes easy to misunderstand what someone is asking with this type of question. Thanks to everyone for taking the time to read/respond!

    Hi Noel,
    Thanks for the reply. The reason I need to do things this way is because of the workflow at my company. I need to be able to convert my photoshop PSD files in Fireworks and have the layers behave predictably. Trying to open a PSD file as is in Fireworks, while keeping the layer flexibility intact usually creates all kinds of chaos, ranging from Fireworks flat out ignoring some layer effects to drastically changing them. I assume because Fireworks way of intrepreting some setting numerically is different than Photoshop and because Fireworks doesn't even have some of the effect properties at all.
    The web developers need to have layered PNG files so they can slice re-slice and move elements around as needed white they develop a website. They need to maintain transparency on the seperate elements of the website mockup so that they can reuse and move elements around as needed. At times I end up doing the CSS layout on a site and in those cases it doesn't matter becuase I can work straight from the PSD and export elements straight to PNG files etc as needed. It's when I need to provide the development team with a Fireworks PNG version of the website mockup that I have these issues.
    For example and to clarify, I may have a website interface designed that has several fancy buttons or a header element with drop shadows on them or that overlap a background element in some way. If I am doing the coding on the site I can simply hide all other layers than the releveant ones, flatten visible to maintain transparency, save for web etc and I have the element complete with a nice drop shadow ready to drop into the code. If the developers are doing the slicing and layout though, they don't know how to use Photoshop (and aren't going to be learning anytime soon) but they do use Fireworks... so they want the site in fireworks, complete with the ability to hide background elements or other parts of the site that may be in the way of making the proper PNG for that button or other element that maintains transparency AND keeps the drop shadow, the proper color and transparency as well.
    What typically happens if I don't flatten each element of the site design before importing into Fireworks is that it will look very different in Fireworks, but being web developers (lol!) they don't notice or maybe even care that something looks weird or appears to be missing a shadow or other effect. Then once the site goes live, the client DOES notice it and I end up scrambling to fix the issue. That usually means going back to the PSD in a rush and trying to flatten all the elements anyway to convert to a nice Fireworks PNG so they can recapture their slices, or taking the slice they used on the website and pasting it into the PSD original so I can make a direct match and converting the element myself after the fact.
    In order to avoid these work flow issues and embarrassments I have taken to flattening each individual element (i.e. a button and all of it's effects) of website GUI to ensure Fireworks can't fiddle with it on import. I can then give the web developers a PNG they can slice easily but with all the important elements still completely seperate from one another. If they hide the layer that is the shopping cart button for example, they are going to be hiding the button and it's drop shadow or glow or any other effects. That way it can't be messed up by Fireworks or a developer. With buttons in particular I can't just include a portion of the background where the drop shadow would be becuase that button could end up anywhere on the site in the end. One of the features our business offers clients is a fair amount of flexibility on the CMS side of things to move elements around and create new sections of the site so I need to keep most elements as felxible as possible, preferrably without giving up quality of the artwork.
    I feel like I have a fairly solid understanding of why the layer effects act the way they do and how they interact, even if I don't understand fully the math that makes them do what they do. I guess I was hoping that the increasing power in the CS suites, especially in 5 and 5.5 might have made some new work around possible, or that they might have added some feature buried in the menus somewhere because it's not that practicle for many users. I have several ways to work around these issues now, but they are manual and cumbersome, I was hoping there might have been an action script or feature to automate some of this.
    I think a really cool thing to be able to do would be to be able to select some layers and have Photoshop copy them and paste them into a new document with their layer styles and all intact, flatten that document with transparency intact and then put the new flattened file back into the original document in the same location on the artboard as a new layer. This is essentially what I do when I hide all the other layers, merge visible and save as a TIFF or PNG and then copy that new file back into my full PSD document. I still experience some color shifting this way but usually not as drastic as when I try to merge directly in the full PSD. OR if that can't work, even better would be to somehow have the effects be able to "float" with the actual photoshop layer, almost like sub layers of that layer, so that each one could have it's own blending mode (and individual masks for each... that would be awesome!) and you could flatten them together somehow when needed and maintain color tones etc. Don't know if this could work though since I don't know what the limitations of the math process that combines the layers are. I would imagine some of it it would be possible, if not worth their time, since smart objects open in their own document window when you edit. I would imagine that some code work on the back end might be able to be applied using a similar method to give extra flexbility of some layer effects in Photoshop. I would love it, I know that!
    Hopefully there is at least as faster way if not an ideal work around. It defintely adds to the development cycle of a website to have to go through this step. It's also at a point in the development cycle where the site has been approved and there can be added pressure about why they development team still has to wait on a design that has already been OK'd and should be ready to slice. I have gained understanding with my boss about this and it's worked out OK for the most part, but it would certainly make him happier if I could eliminate that extra step, or reduce the time needed. On a complicated website I might lose half a day of work or more sorting out the various site elements and figuring out how much I can flatten and how and what order to break effects off their layers to maintain appearance. I have tried Fireworks several times as a native solution, but ultimately I feel very restricted by Fireworks and often can't do what I had in mind, although it has gotten better. Also on a psychological level, Fireworks "working with basic shapes" method of desigining a website tends to steer me down that mental path for some reason and I always end up with sites that look much less fluid and organi, much more boxy than when I design in Photoshop. One of our companies selling points is that we design sites that break away from the boxy and simpler web 2.0 look so Fireworks is not really a consideration for me at this point. Thanks again for the help and any respones!

  • What is the impact of a listening script?

    In a hosted environment, small things could add up — whether CPU cycles or bandwidth. 
    I have a script that opens 3 files upon InDesign launching and closes them upon Quit.   Is there any overhead to be worried about? 
    Thanks

    Hi,
    actually the VM Manager has no function in the HA of the VM servers itself. So in generall it would not have an impact.
    However if you want to manage a 24x7 server it is recommended to have the VM Manager also running in a high availability.
    Otherwise, what will you do if someone accidentally stopped a guest?
    I personally would not install the manager into a guest itself, if it can be avoided, since this does not really provide full HA.
    There is a good whitepaper, how to install the VM Manager in a failover cluster mode...:
    Using Oracle Clusterware to Protect Oracle VM Manager (PDF)
    http://www.oracle.com/us/026995.pdf?ssSourceSiteId=otnen
    Regards
    Sebastian

  • Need a Firefox script to loop through a set of web pages

    Hi all,
    I was wondering if anyone had come across a script for this purpose?
    I need to power on a PC of mine, have it automatically start Firefox on startup (easy so far) then load a "loop" of predefined internal web pages that it keeps up on-screen for, say 5 seconds each webpage (5 pages in total that it would flick through)
    Is it also possible to script or force Firefox to open in Full screen mode?
    Thanks in advance,
    Chris

    Sounds more like you want a slide show, the only difference is if any of those web pages change. Quick check of addons: '''slide show seconds'''
    '''[http://example.com Tab Slideshow]''' (13.3 KB) :: Add-ons for Firefox
    -- Cycles through tabs as a slideshow. A minimalist extension that offers a configurable time to automatically switch to and display the next tab (and wrap around from the last to the first tab). The slideshow can be customized to auto-refresh tabs, as well as go into slideshow immediately when you open the browser. Extension offers a configurable time to automatically switch to and display the next tab (and wrap around from the last to the first tab).
    Quick HOW TO: To start and stop the slideshow, find the "Start Tab Slideshow" menu item under the "Tools" menu (or with Firefox 4 on recent Windows versions, the orange Firefox app button). To change delay and refresh settings, go to the Add-ons Manager, find the extension in the list, and click the Options button (or "Preferences" on a Mac).
    When in full screen, you can start/pause the slideshow by pressing ALT+T, and then T. (ALT+T: Open "Tools" menu; T: Start Tab Slideshow)
    https://addons.mozilla.org/firefox/addon/tab-slideshow/

  • KEU5 - More senders - trading partyner "VBUND" - COPA

    HELLO,
    Generally i need help how to add  more senders in cycles (KEU5).
    I need this information  because I need to have the information in COPA about
    intercompany transaction.
    All intercompany transakcion creating in FI have the field "trading partner" - VBUND.
    In CO I see this field in cost center (table COSP) I know that in the table COSS - secondary totals record  I don't have VBUND. I  manage this by creating some substitution (I hope ) put for example new oders to each record with VBUND, but I still need more senders in transaction KEU5 for example cost center and order  to transfer information about VBUND into COPA? Could I add more senders in
    cycles into COPA?? how??
    Thank you in advance.
    Best Regards

    Hi Izabella,
    what do you mean when you say "Could I add more senders in cycles into COPA?? how??".
    Possible sender characteristics in KEU5 are cost center / order. You can add other CO objects (eg WBS elements) as sender objects (SAPNET note 605281).
    If want to have more cost centers / orders in your KEU5 cycle, (with different receiver characteristics) add allocation segments with the combination of sender/receiver, or (if the receiver remains the same) add a group of these objects in the sender selection in the existing segment(s) of your cycle.
    BR Christian

  • Timing beats for music video - workflow best practices?

    Hi all,
    I am currently working on a short video that needs to be timed to music. Obviously in some respects, a tool like Final Cut or Premier would be more suited to the task in certain ways, but for reasons of the technical specification of the output, it has to be done in After Effects.
    So I am trying to nail down a good workflow for timing various elements of the project to the beat of the soundtrack. What I'm doing so far is, I have expanded the waveform of the soundtrack so I can get some rough visual on where obvious changes happen. See the screenshot to the left. I placed a marker on the exact frame where the drum kick happens, where I would want to do something cool with the video.
    This is obviously of limited utility, because although the beat does coincide with one of the peaks of the waveform, it's not apparent from looking at it which one it would be. It's also not quite possible to ascertain the exact frame on which the beat happens using this method, as each peak is several frames long and includes several elements of the audio.
    So the next thing I tried is simply listening to the track with RAM-preview, and pressing the * key to place markers on the soundtrack on the beat. Maybe some of you are better at rhythm games than I could hope to be, but I find that while this lets me put down a lot of markers quickly, it's very inexact.
    Which, alright, is to be expected - I might not get every marker on the exact frame on the first try, but I can go back and slide them a few frames, right? But the problem here is with scrubbing audio, and with visual feedback with the playhead. When you RAM preview, the playhead does not update on every frame - it updates only every seven or eight frames or so. Which means that if I watch the timeline to see if my markers are in the right place, I can't tell when the playhead passes over them.
    So instead, I hold down the Ctrl button and scrub. This kinda works, but the playback of the audio is quite choppy and discontiguous. As such it's hard to get a sense of each frame as part of the song, and even if I do hear a beat it's hard to recognize it as such (this technique works better in Final Cut somehow, for some reason it manages to scrub while sounding less discontiguous). So then what I do is I stop on a frame I think might possibly be the beat, and I hold Ctrl and Left Click on the playhead, which loops a short segment (five frames?) of the audio. Then I do the same for a few frames before and afterward, just to make sure I targeted the right frame. Now, finally, I have the marker in the right place for a single beat.
    There's got to be a better way.
    I wonder if anyone who has been faced with this problem has figured out a more effective workflow? I am thinking there might be a separate piece of software I might use that lets me go through the audio and place markers better - and then allows me to somehow export marker data to After Effects? Or maybe another workflow I haven't thought of.
    Your thoughts?

    Cutting music accurately to beats is usually a simple matter of math. Most music, especially music with a strong beat, runs at a specific number of beats per minute. That's usually easy to figure out. There are times when you have a tempos shift or a fermata, acc. or ret. or other change they are usually for a short duration and pretty easy to fix. Figure out the tempo and you're about 90% there.
    Another tool, and one that I use quite often is Sound Keys from Trapcode. This is much more versatile than using the built in Convert audio to keyframes.
    If I have a fairly long segment that has a bunch of beats quick beats I will sometimes create a small solid, add hue and saturation to the small solid set to colorize, add this expression to colorize hue - index * 140, trim the length of the layer to the length of the beat, then duplicate the layer for as many beats as I want to cover, sequence the layers, and then use that layer sequence as a guide. The setup looks like this:
    You could also use a loopOut expression on rotation to rotate a small layer say 45º on every beat. For example, if you had a beat every 20 frames set 3 hold keyframes, one at the first frame for 0º, one at frame 20 for 40º then put one at frame 40 for 0º and simply add the expression loopOut("cycle") to rotation. Now the little cube would snap to a different angle on every beat.
    These tricks will help you with some fast cuts right to the beat but let me give you some advice on cutting to music that I learned 42 years ago (yes, I am an old guy) when I was learning to edit to music at my first job in film. My mentor had been in the business since 1952, had worked as an editor on a ton of feature films and a zillion commercials. He told me that if you precisely match the beat, which was pretty easy to find and mark with a wax pencil on mag stock, your cuts will look out of sync. The problem with that precision is that the eye and the ear are not precisely in sync. The lead or lag time depends on the shot, where the shot is taking your eye, where the cut moves your eye, and the mood the music is creating. The best technique is to listen to the music and place markers as you tap out the beat. In the old days I did this by tapping a wax pencil on the mag stock as it ran through the Steenbeck or Moviola, today I do it by tapping the * key, then I cut and adjust the cut point letting the shot dictate when the music and beat line up emotionally. You'll get a better result and your work will go much faster than fussing around trying to precisely match the beat with every cut. I have shifted cuts as many as 4 or 5 frames ahead or behind to beat to get sequence to feel right.
    I do use the two techniques I listed above to cut short segments of very tight cuts and they help save time, but setting your comp resolution to auto and your comp Zoom factor to 25%, ram preview to "From current time," and just cutting to the beat by feel will give you a much more pleasing and emotional response to your sequence than precisely and mathematically exactly matching the beat. The final piece of advice I can give you about cutting music is to make the first cut, then walk away for at least a half hour, then come back and look at what you have done. You'll instantly see where you need to make adjustments and it will take you less than half the time to cut your sequence.

  • Sloppy 4K performance

    On this Adobe video:   https://www.youtube.com/watch?v=UrxEx8ICqME
    the user is getting responsive play and real-time effects with 4K footage on a laptop, using Thunderbolt storage.
    I have a different system, still very powerful, and I'm not getting nearly the same response.  I'm getting dropped frames unless I dip down to 1/16 resolution (Playback) with 4K XDCam AVC/MP4 footage.  My audio is choppy unless I turn off my video track.
    My 8 cores are maxing out at 100% as I play the footage at any resolution above 1/8.  These are clips in a Sequence that matches the footage with no effects applied.  I also get dropped frames in the Source player; not just the Program.
    For comparison, I can load the same clips in VLC, and it will play them smoothly, and my 8 cores are running at between 20 and 85 percent at FULL resolution (There is no option to downsample.); the audio is not choppy. 
    This begs the question of why Pr is adding that extra CPU overhead just to play back un-effected clips?  It can't be drawing the timeline.  Every player has a timeline to draw.
    I feel like taking a giant step back, and considering transcoding to ProRes to get acceptable performance.  But, the hitch there is that AME won't accept my MXF clips for transcoding.  I appear to be stuck with poor performance in Pr, unless somebody has an idea if I'm doing anything wrong, or if my system is just too archaic for 4K.
    Here's my system.  It's not puny.  My CPU is "mature," but strong.
    MacPro3,1 - 8 x 3GHz - 32G RAM - Quadro 4000 for Mac (latest drivers) - 10.8.5 - Pr CC 7.2.1 (4)
    RAID5 - 8 SAS drives - ATTO 6G/s - over 2GB/s read speeds (This is not a bottleneck.)
    Thanks,
    Jim Curtis

    Single disk, eh?  The sustained bit rate for this footage is 240 Mb/s, so you're getting good throughput on your disk. 
    I take it that your i5 is a single quad core.  I'm not a hardware guru, but it appears my 8 x 3 GHz in multiproc mode should add up to more cycles per second than yours.  If that's so, then I think that, in addition to the superior performance in Prelude and VLC, would definitely rule out my CPU.  If you have a dual quad core, then never mind.
    Seems pretty clear - to me at least - that the problem lies in the way this codec is handled in Pr for Mac.
    I had similar playback issues with the only 4K RED RAW project I've done to date.  Pr CS6 was able to play that footage without dropping frames at 1/4 resolution, but not any higher.  I haven't tried it with Pr 7.x.  Maybe I should restore that footage for comparison.
    I've submitted a bug report, and sent the link to this thread. 
    Thanks for helping me with this, Jim.  Hopefully, Adobe will pick up on this shortly and fix it.

  • Would you think these are signs of a dead iPod battery?

    I don't feel like posting the entire thing, graphics, links, and all here, you can read about my recent iPod escapade here.
    http://www.xanga.com/imac_insomniac
    Sorry to direct you all elsewhere to read the entire dealie, but... um,... please PLEASE help? Does this really sound like a fried battery problem? or what other problem do you think this is?

    Xx1Dustin1Xx wrote:
    No. Your iPhone is not defective. The only issue is that your battery is not fully conditioned. To condition your battery, simply recharge the iPhone to 100% and remove the USB cord and let it drain to 0% and then recharge it back to 100%. This completes 1 Charge Cycle. If the battery still drains, repeat the process until the battery is fully conditioned, but I don't recommend that you discharge it more than 2 times after the first calibration. You might destroy your battery's health.
    No you will not destroy your battery's health by discharging it more than 2 times. Whoever told you that is wrong. The only thing it will do is add up the charge cycles faster. Lithium Ion batteries do not hold memory like the NiCd batteries used to and can take a full charge or small charge the same. No where on the site you quoted does it say you might destroy your battery's health after 2 full cycle charges. I wish people like you would stop pushing bad information like that.

  • Versioning of Documents

    Hello
    I am migrating documents from a Document Management system(Livelink) to EP.
    There every document has versions associated to it.
    How can I migrate this into EP?
    If I have documents with multiple versions attached to it then what exactly needs to be done to put all these documents into EP.
    Is there any API to do it?
    Please suggest.
    Raj

    First, this is a Knowledge Management & Collaboration topic; that's the better place to ask such questions.
    Apart from that, yes the KMC cmstore repository manager does support versioning and it can be accessed programmatically through the Repository Framework. You could for example extract all versions for a given namespace identifier and then submit them one by one looping through a check-out, add/modify, check-in cycle for each document starting with the oldest one in the list.
    helmut

  • Add Header and Footer in Live Cycle ES2

    Hi,
    We are quite new to the use of live cycle pdf generation. Can anyone help us with information as to how we can add header and footers to our pdf files using livecycle ES2.
    And further, we would like to know whether header and footer adding is available in the trial version of Livecycle ES2?

    Hi,
    Thanks for the reply.
    We have another newly raised problem in the header and footer adding from Livecycle ES2. According to the PDF that you referred in the previous reply, we can add graphics to the PDF header, but we are unable to find a DDX tag that would enable us to add a image URL.
    Can you please help us again on the above?
    Purnima

Maybe you are looking for

  • How to set up use of DVI port to external VGA monitor

    How do I set up a powerpoint on an external screen using the DVI port to VGA.  To make the powerpoint show on the computer screen as well as the external screen, what do I need to do on the MacBook Pro?

  • Running Permission Scripts for App-V packages in VDI environment

    Hi We use App-V 5.0 SP1 in VDI environment. We have a major problem with packages' permissions Our users don't have administrative privileges on their machines. As the option for "Security Descriptors" is discontinued, the only way to give permission

  • Ordered of item master show wrong Data

    Dear All i have problem in Ordered field of item master data ,because in some items it shows quantity but no open PO or A/R Reserve or Production Order or Inventory Transfer request and even Inventory status report show nothing ,you can find image of

  • Pages on a PC

    If I am going to send a Pages document to a PC user - what can I do to ensure that he can open it at his end knowing that he wont have Pages as an app? Cheers John

  • Yosemite runs pretty slow

    Can someone tell me what's going on with my mac book pro? It runs pretty slow (internet, programs, boot) I ran etrecheck but have no clue what it means? Any help? EtreCheck version: 2.1.8 (121) Report generated 17. Februar 2015 01:07:26 MEZ Download