Re: How to keep an array ordered when inserting into the middle

I would use a for loop with two different int values used as a counter:
int q = 0;
int insertPosition = 3;
for(int i = 0; i < (origArray.length + 1); i++) {
    if(insertPosition == i) {
        newArray[i] = "put on socks";
    } else {
        newArray[i] = origArray[q];
        q++;
}Edited by: kavon89 on Jan 4, 2009 6:08 PM
messed the code up a bit, now fixed

Here is a screen shot of the photo when it's open in "Paint."
Now here is a screen shot of the frame I inserted in the page where I'd like to place the photo:
Finally, here is a screen shot of what happens when I try to paste the photo in the frame (see how tiny the photo is??):
So what are your thoughts?

Similar Messages

  • Pre-define anchor point & position when inserting into the comp [Globally]

    Where shall I edit the Global preferences to pre-define both the anchor point & position to 0,0 & 0,0 , when inserting anything into the comp.
    Please help!!!

    I have more than 250 animation presets right now for things that I commonly use. I store them in a Dropbox folder and there's an alias in my Documents/Adobe/After Effects CS5.5 and Documents/Adobe/After Effects CS6 folder named User Presets that points to the Dropbox folder where my custom presets are stored. That way, every machine and every version of AE I have active can access the presets I have filed. I also store a spreadsheet in DropBox with the names of these presets and a description of what they do for reference. The presets do everything from setup automated slide shows based on in and out points of layers, add captions to videos, set up composites, and just about every other 'cool' effect or expression I've ever written. It's a huge time saver and now, more than ever, you need to save every second you can on your AE projects so you can have a life, see your family, and pay the bills.
    I'm glad your problem is solved. BTW, Apply your preset once then, for the rest of the session you have a keyboard shortcut that will apply the last animation preset. It's right here:
    Translated: Cmnd/Ctrl + Shirt + Alt/Option + F
    It would help to mark this thread answered if you feel like it is.

  • Video demonstration shows OK by itself but very badly when inserted into the project

    Hello,
    I have a problem with video demonstrations/simulations. When I record them, and convert into mp4 format they look great, but when I insert it into my Captivate Project the quality is too poor. One cannot even read the text Captions properly. I have tried to resize the video window, to load the flv file.. But useless. Can someone give me a hint about what might be wrong???
    Thank you!
    Paloma

    Hello there,
    If I am right, you are inserting the published output (in .mp4) of Video demo into another Captivate project.
    What output are you publishing from another project?
    and is it a multi slide synchronized video or event video in the new project?
    you can also check the quality of every slide under slide properties and increase that to 24 bit to improve the quality.
    If you are publishing .swf, you can also go to edit >preferences>SWF size and quality>make that to custom and uncheck Advanced Project compression and compress SWF file.
    Please check whether that helps.
    Thanks.

  • How to block a sales order when there is a free good item .

    Hello Gurus ,
    How to block a sales order when there is a  free good item  , only the authorised person should have authorisation to release those blocked Sales orders.
    Reason - They want to have a track of free goods given to customer & to avoid the misusing things
    Looking  for your inputs
    Thanks in advance
    Regards
    Venkat

    Hi
    I think you can try with Status Profile in BS02 define and assign for item category TANN.
    In status profile you can block the delivery and also billing unless some changes the object status as released.
    Just try and explore
    regards
    Prashanth

  • How to keep original aspect ratio when cropping in Camera Raw?

    How to keep original aspect ratio when cropping in Camera Raw? Cant figure it out! With shift, the aspect ratio is 1:1. But I didnt set it to 1:1 (I checked "normal").

    The Shift key works once you’ve set your crop ratio.  DSLRs would typically do 2:3 and others sometimes do 3:4.

  • How do I create a DVD with no theme, i.e., it plays what was recorded when inserted in the player?

    How do I create a DVD with no theme, i.e., it plays what was recorded when inserted in the player?  Nothing extra, just the recorded content.

    Hi
    No Menu on DVD
    from. Mishmunken
    How to create a DVD in iDVD6 without menu (there are several options)
    1. Easy. Drop your iMovie in the auto-play box in iDVD's Map View, then set your auto-play item (your movie) to loop continuously.
    Disadvantage. The DVD plays until you hit stop on the remote
    2. Still easy. If you don't want your (auto-play) movie to loop, you can create a black theme by replacing the background of a static theme with a black background and no content in the drop-zone (text needs to be black as well).
    Disadvantage. The menu is still there and will play after the movie. You don't see it, but your disc keeps spinning in the player.
    3. Still quite easy but takes more time. Export the iMovie to DV tape, and then re-import using One-Step DVD.
    Disadvantage. One-Step DVD creation has been known to be not 100% reliable.
    4. (My preferred method) Easy enough but needs 3rd party software. Toast lets you burn your iMovie to DVD without menu - just drag the iMovie project to the Toast Window and click burn.
    Disadvantage. you'll need to spend some extra $$ for the software. In Toast, you just drop the iMovie project on the Window and click Burn.
    5. The "hard way". Post-production with myDVDedit (free-ware)
    Tools necessary. myDVDedit ( www.mydvdedit.com )
    • create a disc image of your iDVD project, then double-click to mount it.
    • Extract the VIDEO_TS and AUDIO_TS folders to a location of your choice. select the VIDEO_TS folder and hit Cmd + I to open the Inspector window
    • Set permissions to "read & write" and include all enclosed items; Ignore the warning.
    • Open the VIDEO_TS folder with myDVDedit. You'll find all items enclosed in your DVD in the left hand panel.
    • Select the menu (usually named VTS Menu) and delete it
    • Choose from the menu File > Test with DVD Player to see if your DVD behaves as planned. If it works save and close myDVDedit.
    • Before burning the folders to Video DVD, set permissions back to "read only", then create a disc image burnable with Disc Utility from a VIDEO_TS folder using Laine D. Lee's DVD Imager.
    //lonestar.utsa.edu/llee/applescript/dvdimager.html
    hope this helps!
    From LynnLU USA
    www.mediasoftmac.com/dvd-creator-articles/convert-mov-video-to-dvd-on-mac.html#1 29
    Yours Bengt W

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • How can I make signature darker when I print the report?

    I need to put my manager's signature on the report. The signature is too light, How can I make it darker when I print the report?
    I used file link and OLE, both did't make it.
    Thanks.

    No way to do it directly in the report. You need to work with signature image file using any graphic software to increase its contrast. The easiest probably would be to use Paintbrush and change the image to black-and-white, then save back as jpeg file.

  • My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad

    My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad

    Using the battery level meter in this manner is comparable to using your car's fuel gauge to calculate miles per gallon. The only thing that matters is the total amount of operating time from full charge to auto-shutdown.
    Use the wall-mount charger that came with the iPad and charge overnight.  Do NOT use an iPod/iPhone charger.  Do NOT use a computer's USB port.  Then, operate it normally until auto shut-down (ignore any low level alerts that may appear).  An irony is that doing that test to determine the total operating time is also the procedure necessary to calibrate the battery level meter.
    I'm not claiming that you do not have a problem.  I am stating, however, that we don't yet know.  If the above test does, in fact, indicate a problem, read this.
    Also, according to Apple:
    Use Your iPad Regularly
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
    Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge.

  • How do I get iTunes back when I get the error message ; the application "I Tunes" unexpectedly quit while trying to restore it's windows. Do you want to restore it's windows?

    how do I get ITunes back when I get the error message :
    The application "ITunes" unexpectedly quit while trying to restore it's windows.  Do you want to restore it's windows?
    I already tried reloading ITunes and it still doesn't startup.

    You didn't mention but are you still running a version of iPhoto older than iPhoto 11?
    If yes, then go to the App Store and purchase the iP 11 app and install it. Back up your photo library first.
    Once iP 11 is installed and has imported all your photos do a restart of the Mac.
    This should resolve most issues with iTunes 10.6 and you should be able to run iTunes and sync up your iOS devices.

  • How do I save "Sent" messages when sending from the ipad

    How do I save "Sent" messages when sending from the ipad2?

    By default sent items should be saved in your Sent folder. For IMAP type accounts you should be able to change that by selecting the account in Settings > Mail, Contacts, Calendars , then selecting 'Account' on the popup for it and then 'Advanced' at the bottom of the next popup

  • How many licenses do you get when you purchase the Adobe Creative suite?

    How many licenses do you get when you purchase the Adobe Creative suite? I'd like to install it on one more computer but do not know if this is allowed.forumnotifierAmy_WongDebbieWoojin

    A single user license (one license) purchase allows for you to install and activate on two machines. 

  • I deleted the picture in iphoto, then emptied my iphoto trash, but the picture is still showing on my computer when i go into my trash under "all images" How do you delete pictures even when you empty the trash and they stay in the computer?

    I deleted the picture in iphoto, then emptied my iphoto trash, but the picture is still showing on my computer when i go into my trash under “all images” How do you delete pictures even when you empty the trash and they stay in the computer?

    Wtih iPhoto 9 when the iPhoto Trash is emptied the files get moved to the Trash bin in the Dock as a second chance to change your mind.  Look in the Dock's Trash bin.
    OT

  • How come now every time i throw something into the recycle bin it asks for my password and when I do it doesn't show in my bin help please!

    How come now every time i throw something into the recycle bin it asks for my password and when I do it doesn't show in my bin help please!

    You're throwing away files that either don't belong to you or are in a folder that doesn't belong to you. Since your user account has Administrator privileges, it just ask you for authentication, else it would forbid the operation.
    To better understand the concept, select one of your files from your home directory and press Control-I. In the info window, check the Sharing & Permissions section at the bottom. Do the same with one of the files that asks for the password.

  • After changing my user id my iPad still brings up my old id when logging into the App Store. How do I fix this?

    After changing my user id my iPad still brings up my old id when logging into the App Store. How do I fix this?

    Did you change the ID in Settings>iTunes & App Store (on the iPad) also?
    Note that any items purchased with your old ID are permanently tied to it and cannot be transferred to the new one.
    ~Lyssa

Maybe you are looking for

  • Can anyone disambiguate all the various product names?

    One thing that bugs me about Oracle is the have such a great love for 1) Giving EVERYTHING its own separate name, 2) Making those names really unhelpful as to what exactly the software does, and 3) assigning version numbers AND release levels AND upd

  • Issue with Target File structure

    Hi Experts ,                           Mine is a proxy to file scenerio. please suggest me on the below req. My target file structure should be as follows. HDR:PARTNER,CHDAT,NEW_TEL,OLD_TEL,PREF_CONTACT_NO,TEL,EXXX_ID 1029382,28.02.2011,0782191829,04

  • Lockdown Quicktime Preferences (QT version 7.6.2 bld 1324)

    Hi, I'm new to Quicktime. I hope that you can help me with this issue. I'm trying to lock down the quicktime player preferences so taht regular users cannot change the original configuration. How can that be accomplished on Vista? Thanks Much appreci

  • Why is ios 7 bit slow in my ipad mini ?

    Recently i updated my ipad mini to ios 7 , its being a bit slow , i dont know why , scrolling the music list is being little bit slow , coming to the home screen through hand gesture is also little bit slow...?

  • Missing Tunnel-Client-Endpoint attribute in AAA accounting from 2821

    I am trying to optimise the detailed accounting records for VPN client connections on our system but have noticed I am not receiving Tunnel-Client-Endpoint (attribute 66) in tunnel start accounting records from the router. The VPN functionality works