Help with inserting a light AE

hey guys, im sorry to be starting a thread about this here, but ive done quite a bit of search through google and on here and havent found anything, maybe i dont know the proper terminology for what im trying to do, youd think this would be relatively easy but i guess its not.
anyway, this is what im trying to do. AE cs4
im trying to recreate a light passing through a hole like how the sun would pass through a hole in the ceiling in real life.
simple right? i cant figure it out, i tried using shine but that doesnt work on 3d layers, so youre looking at the light from the front while the light is passing through the hole at the top.
bonus points if anyone can tell me how i could create a Icosahedron in 3d layers without the use of other 3d software or maybe point my way towards something basic i can import and animate in AE..
thank you

You can fake volumetric light with a masked and blurred solid set to add or screen, with the beam effect blurred, with Trapcode Lux (simulates real light volumetric light from AE lights) or by masking and bluring an adjustment layer with color controls. Give us a screenshot and somebody will probably give you a solution.
As for constructing your Icosahedron the Wkipedia page gave you the solution. It's just a matter of laying out solids that are the right shape, adjusting the anchor point and then rotating and parenting. There's even a perfect layout template. Just download it and then create some solids that are masked and stacked to fit this shape exactly. Set the anchor points to matching edges, rotate, parent, rotate, parent, rotate, parent until your Icosahedron is complete.
There is also a vector graphic on the wikipedia page.

Similar Messages

  • Need help with INSERT and WITH clause

    I wrote sql statement which correctly work, but how i use this statment with INSERT query? NEED HELP. when i wrote insert i see error "ORA 32034: unsupported use of with clause"
    with t1 as(
    select a.budat,a.monat as period,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    c.wrbtr,
    c.matnr,
    c.menge,
    a.monat,
    c.zuonr
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='D'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,t2 as(
    select a.BUKRS,a.BELNR, a.GJAHR,t1.vtweg,t1.budat,t1.monat from t1, ldw_v1.bkpf a
    where t1.zuonr=a.xblnr and a.blart='WL' and bukrs='8431'
    ,tcogs as (
    select t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    sum(bseg.wrbtr) as COGS,bseg.matnr,bseg.kunnr,sum(bseg.menge) as QUANTITY
    from t2, ldw_v1.bseg
    where t2.bukrs=bseg.bukrs and t2.belnr=bseg.BELNR and t2.gjahr=bseg.gjahr and BSEG.KOART='S'
    group by t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    bseg.matnr,bseg.kunnr
    ,t3 as
    select a.budat,a.monat,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    case when c.shkzg='S' then c.wrbtr*(-1)
    else c.wrbtr end as NTS,
    c.matnr,c.kunnr,
    c.menge*(-1) as Quantity
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='S'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,trevenue as (
    select t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,
    sum(t3.NTS) as NTS,t3.matnr,t3.kunnr,sum(t3.QUANTITY) as QUANTITY
    from t3
    group by t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,t3.matnr,t3.kunnr
    select NVL(tr.budat,tc.budat) as budat,
    NVL(tr.monat,tc.monat) as monat,
    NVL(tr.vtweg,tc.vtweg) as vtweg,
    NVL(tr.gjahr, tc.gjahr) as gjahr,
    tr.hkont as NTS_hkont,
    tc.hkont as COGS_hkont,
    NVL(tr.prctr,tc.prctr) as prctr,
    NVL(tr.MATNR, tc.MATNR) as matnr,
    NVL(tr.kunnr, tc.kunnr) as kunnr,
    NVL(tr.Quantity, tc.Quantity) as Quantity,
    tr.NTS as NTS,
    tc.COGS as COGS
    from trevenue TR full outer join tcogs TC
    on TR.BUDAT=TC.BUDAT and TR.MONAT=TC.MONAT and TR.GJAHR=TC.GJAHR
    and TR.MATNR=TC.MATNR and TR.KUNNR=TC.KUNNR and TR.QUANTITY=TC.QUANTITY
    and TR.VTWEG=TC.VTWEG and TR.PRCTR=TC.PRCTR
    Edited by: user13566113 on 25.03.2011 5:26

    Without seeing what you tried it is hard to say what you did wrong, but this is how it would work
    SQL> create table t ( n number );
    Table created.
    SQL> insert into t
      2  with test_data as
      3    (select 1 x from dual union all
      4     select 2 x from dual union all
      5     select 3 x from dual union all
      6     select 4 x from dual)
      7  select x from test_data;
    4 rows created.
    SQL>

  • Need Help with Inserting Timeline Markers

    Friends,
    I have not use my premiere element 3.2 since 2008 and forgot some of the procedures. now, I need help with the insertion of Timeline Markers. I did what the Help Page showed me. But the markers were not effective in the resulting DVD, or, even when viewing the video in the editing page as if thye were not there! Here is what I did:.
    1)  Click the Timeline button.
    2)  Click in an empty space in a video or audio track in the Timeline to make the Timeline active and deselect any clips.
    3)  Move the current-time indicator in the Timeline to the frame where I need the marker.
    4)  Click the Add Marker icon in the Timeline to place the Marker 5 times where I want them.
    5)  Verified that each Timeline Marker is present at the intended place.
    6)  Burned DVD
    7)  Can NOT jump to any of the intended Marker in the Resulting DVD during playback.
    The question is "What did I do wrong or didn't do?" It seems that I did the same before and worked! Please advise!
    Also, what are the significance of the Red line just below the Timeline and the yellow bars inside the video and audio frames. But after preforming Timeline/Render Work Area, they were all gone? What purposes do they serve and what is the significance of Rendering? Thank you for your help!
    I repeat the process and did a Rendering before making the DVD also. It did not help!
    Andy Lim

    Steve,
    Long time no talk! You used to help me out many times when the PE-1 through PE-3 came out. I was HOPING you would still be around and you are! You came through again this time! Many thanks to you.
    I use the Add DVD Scene button to insert the Markers. They are Green. Made a DVD and the markers work OK although ythey are "effective" during play back using the editing window.
    While that problem was solved, will you come back and answer the other two questions concerning Rendering and the Red/Yellow lines? I would appreciate it very much!
    Andy Lim
    ~~~~~~~~~~~~~~~~

  • Help with inserting values -- ORA-00984 error

    Hello!
    This time we have a problem with inserting values and we really can't find what's wrong!
    The table was created as such
    CREATE TABLE PASSAGER
    (NO_PERSONNE INTEGER,
    NO_PASSAGER INTEGER NOT NULL,
    NO_PASSEPORT INTEGER NOT NULL,
    NATIONALITE VARCHAR2(30) NOT NULL,
    LIEU_EMISSION VARCHAR2(30) NOT NULL,
    DATE_EMISSION DATE NOT NULL,
    NO_TEL INTEGER,
    NO_CC INTEGER,
    NO_VENTE INTEGER NOT NULL,
    CONSTRAINT PK_PASSAGER PRIMARY KEY (NO_PERSONNE),
    CONSTRAINT FK_PASSAGER_PERSONNE FOREIGN KEY (NO_PERSONNE) REFERENCES PERSONNE (NO_PERSONNE),
    CONSTRAINT FK_PASSAGER_VENTE FOREIGN KEY (NO_VENTE) REFERENCES VENTE (NO_VENTE));
    We created a sequence..
    CREATE SEQUENCE NOPASS_SEQ
    START WITH 1
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    for inserting the values, we did...
    INSERT INTO PASSAGER VALUES (500,NOPASS_SEQ.NEXTVAL, WT456789,'CANADIENNE', 'CANADA', to_date('2007/10/12','YYYY/MM/DD'),5142348756,5157981500126734,1);
    but it won't work, it's our last table and all the other worked perfectly!
    Thanks a ton!

    In your table creation, you got third column as
    NO_PASSEPORT INTEGER NOT NULL,
    where as you are passing varchar values (see bold)
    INSERT INTO PASSAGER VALUES (500,NOPASS_SEQ.NEXTVAL, WT456789,+'CANADIENNE', 'CANADA', to_date('2007/10/12','YYYY/MM/DD'),5142348756,5157981500126734,1);
    Should be like this I suppose
    INSERT INTO PASSAGER VALUES (500,NOPASS_SEQ.NEXTVAL, *456789*,'CANADIENNE', 'CANADA', to_date('2007/10/12','YYYY/MM/DD'),5142348756,5157981500126734,1);

  • Help with inserting image! it's not showing..

    Hi. I'm a very beginner, and really struggling with basics. Please can someone help me?!
    All I'm trying to do is insert a logo to the bottom of the page (or whereever really!) I've inserted the file onto the page which shows fine in dreamweaver, but it doesn't seem to 'put' and when I check page online it just shows as the image name.
    You're prob saying 'duhhh' in your head right now! but I am used to photoshop and illustrator, I'm finding dreamweaver so complicated!
    You can see what i mean on my about page - www.sarahray.co.uk/about.htm (at the bottom underneath the writing it says AOI logo. Thats what I'm trying to put.)
    Any help MUCH appreciated! xx

    Hi
    The file path is pointing to your hard drive not to the location on your server/site -
    <p class="style3"><img src="file:///Macintosh HD/Users/sarahray/Downloads/AOIMembersLog
    OI_Logo_Member_black.jpg" width="280" height="108" alt="AOI logo" longdesc="http://www.theaoi.com" /></p>
    PZ

  • Help with blinking ink light on printer

    I have a office jet printer and my computer states my printer is out of ink. I replaced the ink cartridges and the printer continue to blink on the ink lights and when I try to send something to the printer it keeps saying the printer is out of ink. I have tried turning it off and tried taking the cartridges out. I just don't know what else to try? Any ideas

    Hi @Cluelesst ,
    Welcome to the HP forum.
    I understand you are having a problem with your 6100 and ink cartridges. I would like to help you with this.
    Try going through the following document.
    An 'Ink Cartridge Problem' Error Message Displays on the Computer
    I know you said it says the ink is empty, but it still could be misinterpreting the error from the printer.
    Please let me know if that document works for you.
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Can someone help with my 3D Lighting woes??

    I'm having a tough time getting the lighting the way I want it in Acrobat Extended Pro.
    First off,  whenever I try to import a 3D file, with "Lights From File" selected, it ALWAYS defaults to "Headlamp" in acrobat, with "Lights From File" grayed out. How can I avoid these automatically added lighting styles?
    Second, All the lighting styles in Acrobat produce ULTRA BRIGHT speculars!  Is there any way to edit the brightness/specular?  3D reviewer seems to only give me the option to move my lights. 
    Thanks!

    Hello,
    Actually the option Light from file only works when importing U3D files (using U3D path.. not PRC).
    Right now support of light from file for other CAD software is not yet supported by APEX.
    I have opened an improvment request.
    We are working on this for a future version of APEX, but nothing has been scheduled yet and I am not able to provide a date or version for the implementation of the fix
    Hope it helps
    Best Regards
    William Gallego
    A3D QE Team

  • Need help with inserting 10MB CLOB

    Hi,
    I have an urgent issue and desperately need some help.
    There are several files on a FTP server that I need to insert their contents into a CLOB type column. One of the files has more than 10MB contents. What I've been doing is after connection is made to the FTP server, read in the contents in a file line by line into a String, then execute a SQL INSERT statement to insert a new record into the target table.
    +//.... make connection, read in files and parse into a String variable called fileContents+
    String psInsert = "Insert into FileTrack (Name, Contents) values";
    PreparedStatment ps = conn.prepareStatement(psInsert "(?,?)");+
    ps.setString(1, "some name");
    ps.setObject(2, fileContents);
    ps.executeUpdate();
    The above works fine for all other smaller files, except the 10MB one. The error I got was SQLCODE: -302, SQLSTATE: 22001, which is about not enough space issue. So I increased the CLOB column size and made sure it doesn't exceed the initial CLOB size setting and the database has plenty of space for storing this 10MB file. Still, I got the same error.
    Then I tried the following:
    ps.setObject(2, fileContents, java.sql.Types.CLOB);
    Failed with same error...
    Then I tried this:
    FileInputStream inputStream = new FileInputStream(fileContents);
    ps.setAsciiStream(2, inputStream, (int)()fileContents.length()));
    Still failed with the same error....
    Then I changed to ps.setCharStream()... still failed....
    What other options do I have to insert the 10MB contents? Can someone please help?
    Thanks heaps in advance!!

    we're still trying to upload that CLOB. Takes a while over this 2400bps modem ;)

  • Need help with inserting rows in ResultSet and JTable

    hello Guru!
    i have inserted a row in my result set and i want that my table shows this row promptly after i have inserted it in my result set...
    but when i use following code for my resultset:
    rs.moveToInsertRow();
    rs.updateInt(1,nr);
    rs.updateString(2, name);
    rs.insertRow();
    Record are inserted in resultset and database but not shown in my JTable??
    Anyone a Clue to without reexecuting the query how can i display inserted row in JTable
    http://download-west.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/resltse7.h
    I have refrered the following links but still clue less help Guruuuuuuu
    i m really in trobble??????

    i am just near by the Solution using the Database Metadata
    by couldn't get the ideaaaa
    ==================================================
    http://download-west.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/resltse7.htm
    Seeing Database Changes Made Internally and Externally
    This section discusses the ability of a result set to see the following:
    its own changes (DELETE, UPDATE, or INSERT operations within the result set), referred to as internal changes
    changes made from elsewhere (either from your own transaction outside the result set, or from other committed transactions), referred to as external changes
    Near the end of the section is a summary table.
    Note:
    External changes are referred to as "other's changes" in the Sun Microsystems JDBC 2.0 specification.
    Seeing Internal Changes
    The ability of an updatable result set to see its own changes depends on both the result set type and the kind of change (UPDATE, DELETE, or INSERT). This is discussed at various points throughout the "Updating Result Sets" section beginning on , and is summarized as follows:
    Internal DELETE operations are visible for scrollable result sets (scroll-sensitive or scroll-insensitive), but are not visible for forward-only result sets.
    After you delete a row in a scrollable result set, the preceding row becomes the new current row, and subsequent row numbers are updated accordingly.
    Internal UPDATE operations are always visible, regardless of the result set type (forward-only, scroll-sensitive, or scroll-insensitive).
    Internal INSERT operations are never visible, regardless of the result set type (neither forward-only, scroll-sensitive, nor scroll-insensitive).
    An internal change being "visible" essentially means that a subsequent getXXX() call will see the data changed by a preceding updateXXX() call on the same data item.
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean ownDeletesAreVisible(int) throws SQLException
    boolean ownUpdatesAreVisible(int) throws SQLException
    boolean ownInsertsAreVisible(int) throws SQLException
    Note:
    When you make an internal change that causes a trigger to execute, the trigger changes are effectively external changes. However, if the trigger affects data in the row you are updating, you will see those changes for any scrollable/updatable result set, because an implicit row refetch occurs after the update.
    Seeing External Changes
    Only a scroll-sensitive result set can see external changes to the underlying database, and it can only see the changes from external UPDATE operations. Changes from external DELETE or INSERT operations are never visible.
    Note:
    Any discussion of seeing changes from outside the enclosing transaction presumes the transaction itself has an isolation level setting that allows the changes to be visible.
    For implementation details of scroll-sensitive result sets, including exactly how and how soon external updates become visible, see "Oracle Implementation of Scroll-Sensitive Result Sets".
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean othersDeletesAreVisible(int) throws SQLException
    boolean othersUpdatesAreVisible(int) throws SQLException
    boolean othersInsertsAreVisible(int) throws SQLException
    Note:
    Explicit use of the refreshRow() method, described in "Refetching Rows", is distinct from this discussion of visibility. For example, even though external updates are "invisible" to a scroll-insensitive result set, you can explicitly refetch rows in a scroll-insensitive/updatable result set and retrieve external changes that have been made. "Visibility" refers only to the fact that the scroll-insensitive/updatable result set would not see such changes automatically and implicitly.
    Visibility versus Detection of External Changes
    Regarding changes made to the underlying database by external sources, there are two similar but distinct concepts with respect to visibility of the changes from your local result set:
    visibility of changes
    detection of changes
    A change being "visible" means that when you look at a row in the result set, you can see new data values from changes made by external sources to the corresponding row in the database.
    A change being "detected", however, means that the result set is aware that this is a new value since the result set was first populated.
    With Oracle8i release 8.1.6 and higher, even when an Oracle result set sees new data (as with an external UPDATE in a scroll-sensitive result set), it has no awareness that this data has changed since the result set was populated. Such changes are not "detected".
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean deletesAreDetected(int) throws SQLException
    boolean updatesAreDetected(int) throws SQLException
    boolean insertsAreDetected(int) throws SQLException
    It follows, then, that result set methods specified by JDBC 2.0 to detect changes--rowDeleted(), rowUpdated(), and rowInserted()--will always return false with the 8.1.6 Oracle JDBC drivers. There is no use in calling them.
    Summary of Visibility of Internal and External Changes
    Table 12-1 summarizes the discussion in the preceding sections regarding whether a result set object in the Oracle JDBC implementation can see changes made internally through the result set itself, and changes made externally to the underlying database from elsewhere in your transaction or from other committed transactions.
    Table 12-1 Visibility of Internal and External Changes for Oracle JDBC
    Result Set Type Can See Internal DELETE? Can See Internal UPDATE? Can See Internal INSERT? Can See External DELETE? Can See External UPDATE? Can See External INSERT?
    forward-only
    no
    yes
    no
    no
    no
    no
    scroll-sensitive
    yes
    yes
    no
    no
    yes
    no
    scroll-insensitive
    yes
    yes
    no
    no
    no
    no
    For implementation details of scroll-sensitive result sets, including exactly how and how soon external updates become visible, see "Oracle Implementation of Scroll-Sensitive Result Sets".
    Notes:
    Remember that explicit use of the refreshRow() method, described in "Refetching Rows", is distinct from the concept of "visibility" of external changes. This is discussed in "Seeing External Changes".
    Remember that even when external changes are "visible", as with UPDATE operations underlying a scroll-sensitive result set, they are not "detected". The result set rowDeleted(), rowUpdated(), and rowInserted() methods always return false. This is further discussed in "Visibility versus Detection of External Changes".
    Oracle Implementation of Scroll-Sensitive Result Sets
    The Oracle implementation of scroll-sensitive result sets involves the concept of a window, with a window size that is based on the fetch size. The window size affects how often rows are updated in the result set.
    Once you establish a current row by moving to a specified row (as described in "Positioning in a Scrollable Result Set"), the window consists of the N rows in the result set starting with that row, where N is the fetch size being used by the result set (see "Fetch Size"). Note that there is no current row, and therefore no window, when a result set is first created. The default position is before the first row, which is not a valid current row.
    As you move from row to row, the window remains unchanged as long as the current row stays within that window. However, once you move to a new current row outside the window, you redefine the window to be the N rows starting with the new current row.
    Whenever the window is redefined, the N rows in the database corresponding to the rows in the new window are automatically refetched through an implicit call to the refreshRow() method (described in "Refetching Rows"), thereby updating the data throughout the new window.
    So external updates are not instantaneously visible in a scroll-sensitive result set; they are only visible after the automatic refetches just described.
    For a sample application that demonstrates the functionality of a scroll-sensitive result set, see "Scroll-Sensitive Result Set--ResultSet5.java".
    Note:
    Because this kind of refetching is not a highly efficient or optimized methodology, there are significant performance concerns. Consider carefully before using scroll-sensitive result sets as currently implemented. There is also a significant tradeoff between sensitivity and performance. The most sensitive result set is one with a fetch size of 1, which would result in the new current row being refetched every time you move between rows. However, this would have a significant impact on the performance of your application.
    how can i implement this using
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean deletesAreDetected(int) throws SQLException
    boolean updatesAreDetected(int) throws SQLException
    boolean insertsAreDetected(int) throws SQLException

  • Help with inserting records conditionally in another table

    I need some help on this task please. I have a table with some records like so
    Table1
    Column1   Column2   Column3      Colum4
    1                 Name1    Lastname1     1,2
    2                 Name2    Lastname2     3
    3                  Name3    Lastname3     NULL
    4                  Name4    Lastname4     1,3
    So the last column, Column4 has the number of the column that the values got changed. So the values on the first row on the Columns 1 and 2 got changed. So I have to insert those values in another table and the same for the other records.
    Table2
    Column1   Column2    Column3      
    1                Name1     NULL
    2                 NULL      Lastname2
    4                 NULL      Lastname4
    Any ideas on how to accomplish this? Any ideas would be much appreciated.

    Hi
    Try below, Next time please POST DDL & DML
    select 1 Column1, 'Name1' Column2, 'Lastname1'Column3, '1,2' Colum4 into #temp union all
    select 2 , 'Name2', 'Lastname2', '3' union all
    select 3 , 'Name3' , 'Lastname3', NULL union all
    select 4, 'Name4', 'Lastname4', '1,3'union all
    select 5, 'Name4', 'Lastname4', '1'
    select 1 Column1 ,'Name1' Column2, NULL Column3 into #temp1 union all
    select 2 ,NULL ,'Lastname2' union all
    select 4, NULL, 'Lastname4'
    select Column1, Column2, Column3, Colum4 ,C2,C1 from #temp a
    --(select Column1, Column2, Column3, case when Colum4 like '%,%' OR Colum4 IS null then Colum4 else Colum4+',' end as Colum4 from #temp) a
    outer apply (select COALESCE(Column2,Column3) From #temp1 where column1 = parsename(replace(a.colum4,',','.'),1)) a1(C1)
    outer apply (select COALESCE(Column2,Column3) From #temp1 where column1 = parsename(replace(a.colum4,',','.'),2)) a2(C2)
    You can also use split function
    http://sqlperformance.com/2012/07/t-sql-queries/split-strings
    select a.*,COALESCE(a2.Column2,a2.Column3) From #temp a
    cross apply dbo.Split(Colum4,',') a1
    left outer join #temp1 a2 on a1.item=a2.Column1
    Thanks
    Saravana Kumar C

  • Help with insertion into an array

    I'm trying to create a method that inserts a number at an index of an array, but throws an exception if the index is out of range or if there is already an element stored at that index of the array.
    void insert (R x, int i) with x being the number inserted, and i the index. Any help is greatly appreciated.

    BigDaddyLoveHandles wrote:
    sethaw wrote:
    1. Create a new array that is big enough to hold all the numbers from the old array plus the new element.
    2. Copy the values from the old array to the correct position in the new array. You may want to use 2 different for loops, one to copy the values before the new element and one to copy the values after the new element.
    3. Set the array variable that is pointing to the old array to be the new array that you just created.Why not attempt to do 1, then 2, then 3? The code you posted in reply #3 was worthless, I hope you can see this: it assigned the value x to every position in the array!And there are curly braces missing!!! :)
    I hate when people omit the braces...lazy bastages.

  • Help with inserting/removing integer from a specific index

    I have an IntList that I am adding methods to and an IntListTest driver that allows me to add those options to test. I am having difficulty adding the two methods:
    public void removeAt() - removes the value at a specified location at given index with consideration of the size of the list when user enters a valid position
    public void insertAt(int index, int newValue) - inserts integer and puts it in the specified index of list however...i also have to take into consideration the size of the list as the user enters a valid position
    I started on the insertAt(int index, int newValue) method:
    // **Inserts an element to the list at a specified position
    public void insertAt(int index, int newValue)
    IntNode newnode = new IntNode(newValue, null);
    for (int index =0; index < count; index++)
    if(list[index] == newValue) //error occurs, brackets pertain to arrays, correct?
    //if list is empty, this will be the only node in it
    if (list == null)
    list = newnode;
    else
    //temp point directed to the last thing on list, but want to be
    //able to insert any where, specified location
    IntNode temp = list;
    while (temp.next != null)
    temp = temp.next;
    //link new node into list and insert
    temp.next = newnode;
    count++;
    }First off, how do I write the method so that the user specifies a value at a given index and is located...From what I understand, this portion of the insertAt method is stating that the temp point will go directly to the last index:
    //temp point directed to the last thing on list, but want to be
    //able to insert any where, specified location
    IntNode temp = list;
    while (temp.next != null)
    temp = temp.next;Here's where I am having complications, because I don't know where to go from here. I want the method to be able to insert at any specified index rather than just the last...I will use the insertAt method as an example for my removeAt method, so hopefully I can get input from anyone willing to help...Thanks - using textpad editor with java 1.5 compiler
    Onip28

    Thanks for the reply - this is an assignment and I'm dealing with linked structures, I apologize for not specifying that. I have to add a total of six methods to the IntList class (e.g...public int length, String toSting, void removeLast, void search(int input), and the two mentioned - void insertAt(int index, int newValue), and void removeAt(int index)). I figured out the first two, but have had no luck with the remaining one. Here is a sample of that code -
    // FILE:  IntList.java
    // Purpose: Defines a class that represents a list of integers
    //Assignment 3 - methods to fill in, declare any variables where necessary
    public class IntList
        private IntNode list;          //first node in list
        private int currentSize;
        public int count;
        String [] elements;
        //  Constructor.  Initially list is empty.
        public IntList()
         list = null;
        //   Adds given integer to list of list.
        public void addToFront(int val)
         list = new IntNode(val,list);
         count++;
        //   Adds given integer to end of list.
        public void addToEnd(int val)
         IntNode newnode = new IntNode(val,null);
         //if list is empty, this will be the only node in it
         if (list == null)
             list = newnode;
         else
              //make temp point to last thing in list
              IntNode temp = list;
              while (temp.next != null)
                  temp = temp.next;
              //link new node into list
              temp.next = newnode;
             count++;
        //   Removes the first node from the list.
        //   If the list is empty, does nothing.
        public void removeFirst()
         if (list != null)
             list = list.next;
             count--;
         // **returns the number of elements in the list
         public int length()
              return count;
        // **returns a String containing the print value of the list.
         public String toString()
         StringBuffer result = new StringBuffer("{ ");
                     for (int i=0; i < currentSize; i++) {
                                 if (i > 0)
                                     result.append(", ");
                         result.append(elements);
         result.append(" }");
              return result.toString();
         // **removes the last element of the list. If the list is empty, does nothing.
         //public void removeLast()
    //Come back to this...
         // **searches all occurrences of a value user enters in the list.
         //public void search(int input)
    //Come back to this...
         // **Inserts an element to the list at a specified position
         public void insertAt(int index, int newValue)
         IntNode newnode = new IntNode(newValue, null);
         for (int index =0; index < count; index++)
              if(list[index] == newValue)     //error occurs, brackets pertain to arrays, correct?
    //if list is empty, this will be the only node in it
         if (list == null)
         list = newnode;
         else
    //temp point directed to the last thing on list, but want to be
    //able to insert any where, specified location
         IntNode temp = list;
              while (temp.next != null)
              temp = temp.next;
    //link new node into list and insert
              temp.next = newnode;
              count++;
         // **Deletes an element from the list at a specified position
         public void removeAt(int index)
    //Come back to this...
    // Prints the list elements from first to last.
    public void print()
         System.out.println("---------------------");
         System.out.print("List elements: ");
         IntNode temp = list;
         while (temp != null)
              System.out.print(temp.val + " ");
              temp = temp.next;
         System.out.println("\n---------------------\n");
    // An inner class that represents a node in the integer list.
    // The public variables are accessed by the IntList class.
    private class IntNode
         public int val; //value stored in node
         public IntNode next; //link to next node in list
    // Constructor; sets up the node given a value and IntNode reference
         public IntNode(int val, IntNode next)
         this.val = val;
         this.next = next;
    But as stated, my problem is merely the portion where the the I make adjustments to the "next values" in the associated nodes...
    //temp point directed to the last thing on list, but want to be
    //able to insert any where, specified location
         IntNode temp = list;
              while (temp.next != null)
                  temp = temp.next;I apologize if I am not answering your question correctly but I'm trying to make sense of all this, but need some suggestions/input/advice...Thx.
    Regards, Onip28

  • Help with inserting pages into a PDF form

    Hi everyone,
    I used LiveCycle Designer ES for the first time to make a fillable PDF form.  The form works splendidly, but the users wish to insert PDF pages to the end of the form before submitting (using Acrobat).
    I can't figure out how to allow this to happen.
    I open the form I made in Acrobat 9.0 and the Insert Pages tab is greyed out.
    I went back to LC and set form options to "Allow all changs except extract" and this seems to have done nothing.
    When I look at the security settings in Adobe and click on Permissions Details, I see two different things.  In Docmuent Security, the security method is set as Password Security and if I open Show Details It says changing the Document is allowed.
    But in the Document Restrictions Summary, changing the Document is set at Not allowed.
    Probably a newbie question, but I am stumped.
    Thanks,
    Becky

    Hey there,
    If you've created a dynamic form, then the PDF document is no loger an acroform, it's an XFA form. I might be wrong, but I'm fairly certain that XFA forms can't have their pages extracted or have pages added via Acrobat.
    If that is the case (I'm fairly certain it is) then you have a few options:
    1) Redesign the form in Acrobat, losing the dynamic functionality.
    2) Create the form in Livecycle, and include the hidden subform that is shown on submit or button press (this would require you to know what the users want added, it would also require that the thing they're adding is always the same)
    3) Install a virtual printer, get them to fill out the dynamic form, then 'print' the via the dynamic printer.
    Personally, I'd go with option 3. A virtual printer is a program that prints the current document to a file, instead of an actual printer. 'Cute PDF Writer' is a virtual printer that is able to 'print' any document to a new pdf document. The new form will not be dynamic, and the fields are made read-only (hense why they should fill it out before printing it), but you will be able to insert pages.
    If you would like feel free to send me a message with any questions regarding cutepdf writer.
    - Scott
    P.S. CutePDF Writer also has the advantage of being free, well-supported, and just plain awesome. =P I would suggest getting it, even if you don't need it to resolve this issue. I use it all the time.

  • Help with inserting drop down menu/pricing in Muse site

    I know this is not a feature available directly in Muse, but are there other sites where I could get code to insert? View this website , the box on the right side where you can select from 3 dropdown menus and you get an updated price at the top. I don't care so much about the add to care function, I just want to have the dropdown/pricing.

    The HTML code for a drop-down menu is as follows:
    <select>
       <option>Item 1: $9.95</option>
       <option>Item 2: $19.95</option>
       <option>Item 3: $29.95</option>
    </select>
    You can add this code by clicking Option-> Insert HTML...
    Here is a good tutorial for drop-down menus.
    http://www.echoecho.com/htmlforms11.htm
    Hope this helps,
    Julia

  • Help with inserting counter code

    hi friends, i want to put an invisible counter on my website but i cant seem to do it. i got the counter code from statcounter and i also downloaded a trial version of bbedit. in bbedit when i do a search for the code i have to replace bbedit comes up with nothing on the search, im not html savy in the slightest...can somebody walk me through this step by step.

    If you want to insert the code by hand, just open each page.html file and scroll to the end. You will see a <body><html> tag. Just copy and paste your code before the <body> tag and the save.
    But if you want an easy and automatic way to do this for your pages...just download iComment 3.0. Launch it and paste your StatCounter code in the appropriate window. Then point iComment to your Sites folder and click Go. It will place the StatCounter code on every page in your site.
    If you don't want to do the Haloscan commenting, you can just leave that blank in iComment.
    James
    http://www.dirtdoog.com/

Maybe you are looking for

  • Is there any plist file that show the list of all OD joined computers?

    I am trying to find out if there is anyway to remove previously join computer from OD Master instead of using Workgroup Manager to remove. I am getting "Unable to add server" error after re-building a client server when I try to add it to the OD Mast

  • Inserting double-byte (Japanese) characters

    I am trying to insert a < 30 character Japanese string into a table with a column of type VARCHAR2(30), but I get the Exception: ORA-01401: inserted value too large for column which is fairly self explanatory....... I'm using the thin driver against

  • Rendering issues

    I am currently rendering a 2 minute movie in professional quality, but nothing seems to be happening at all- if I switch to best performance it is rendered in about 3 minutes- am I doing something wrong- I know it takes longer, but there's longer and

  • I need to transfer my Whatsapp messages from my old iPhone4 to my new iPhone5. iCloud did not succeed synchronising in iTunes... Any ideas anyone? Thanks

    I've just been upgraded to an iPhone5. When activating the new device everything was going smoothly, even the syncing in iTunes (I had previously edited a playlist to go in the new handset). A few things did not transfer as planned, such is messages

  • Lost emails visualization order

    I downloaded emails on the PC (with Outlook Express). Having not realized that it was not checked the option to leave a copy of messages on the server, when finished the operation the emails from the phone (iPhone 3GS) was gone. Looking mail, I found