Need help creating landscape in AE

Hi, I need to create an animation of a train moving through different landscape scenes. I want the hills to be an actual 3D rendering with the train moving through them but I am unsure how to do this. I am familiar with 3D and can create the hills in my 3D application but how do I get my 3D hill into AE so the train, camera and lights etc. can interact with the hill?
1. How do i get my 3D hill into AE?
2. How do I add the train so it goes around the hills?
3. How do I get the camera and lights etc. to reflect on my 3D hill?

First of all, it would be very helpful to post an example of the kind of look you're going for or a similar shot you're trying to recreate.  In animation there are limitless ways of making things so it really helps to be very specific.  For now I can advise this much...
1.  Render your hills out of your 3D application as an image sequence that supports transperancy if you want to layer them or you want the sky to show up behind them.
2.  If you want the train to go around the hills, it really depends on how you make the train.  Are you also rendering that in a 3D app?
3.  I don't know what you mean by getting the camera to reflect, but when you make a layer 3D, After Effects shows the Material Options settings that allow you to control how your layers react to different lighting setups.

Similar Messages

  • Uber Noob Needs Help Creating website!

    I need help creating my webpage: It has a textbox on it were
    the user enters a URL and it then redirects the end user to that
    URL when they press the GO Button. It also has a check box saying
    "Hide my IP", If the end user clicks this box and then clicks go
    they will be directed to the website they stateted in the Textbox
    but this time it shall mask there IP Address so they can bypass
    proxys and surf anonomosly. Please can someone give me some HTML
    code i could use for this site or a Link to a website that can give
    me the code.

    I assume the application is connecting to Oracle using an application ID/password. If so, check to see if that user has a private synonyn to the table. If so drop it since you have a public synonym.
    Verify that the public synonym is in fact correct. Drop and recreate the public synonym if you cannot select against the synonym name using an ID that can perform select * from inhouse.icltm where rownum = 1. That is if this other user cannot issue select * from icltm where rownum = 1 without an error.
    Check that the application ID has the necessary object privileges on the table.
    Queries you need
    select * from dba_synonyms
    where table_owner = 'INHOUSE'
    and table_name = 'ICLTM'
    You may find both public and private synonms. Either fix or delete. (Some may reference someelses.icltm table if one exists)
    select * from dba_tab_privs
    where table_name = 'ICLTM'
    and owner = 'INHOUSE'
    Note - it is possible to create mixed case or lower case object names in Oracle by using double quotes around the name. Do not do this, but do look to see that this was not done.
    You could also query dba_objects for all object types that have the object_name = 'ICLTM'
    HTH -- Mark D Powell --

  • Aperture Workflow - need help creating workflow for photo management

    Hi -
    I currently shoot with a Canon SD890 (point & shoot) and a Nikon D300 (SLR). My photography is either personal photography or street photography. I may use some of my photography for a web project but that should not be considered right now. I shoot jpegs with the SD890 and RAW with the D300. I need to create a workflow that will allow me to manage all of my photos as well as the RAW vs JPEG aspect. Here are a few initial questions:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives?
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    Thanks for your help!

    jnap818 wrote:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives? I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    No, use a single Library. Aperture will have no problems with the various formats or with various different cameras.
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    Actually those date or event driven batches of images are very logically "Projects" in Aperture. Simply name each group of images as you import into AP as a new Project.
    IMO it is not good to import camera-to-Aperture (or direct to any app other than the Finder). Best is to use a card reader and use the Finder to copy images from the camera card to a folder on the computer hard drive.
    Below is my Referenced-Masters workflow:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and cards are preferable.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive. I label that folder with the Project name suffixed with _masters, that way I can always find the Masters if Aperture forgets where they are.
    • Eject CF.
    • Burn backup copies of the original images to DVDs or to hard drives (optional backup step).
    • Eject backup DVDs/hard drives (optional backup step).
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location."
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive DVDs of originals off site.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    I strongly recommend that every Aperture user spend $35 and work through the tutorial CD Apple Pro Training Series: Aperture 2 (Apple Pro Training Series) by Ben Long, Richard Harrington, and Orlando Luna (Paperback - May 8, 2008), Amazon.com. Note that the value is in working the tutorial, not in using the book as a manual.
    Good luck!
    -Allen Wicks

  • Quick Time VR - need help creating qtvr

    I'm teaching my middle school students web design and flash to create an interactive school map. I want to add 360 qtvr's but I need help - I can't seem to get information on how to create them. Any Los Angeles help possible?

    QuickTime Pro doesn't create VR files. It only presents them.
    http://www.panoramas.dk/quicktime/qtvr/software.html
    A pretty good list of tools at that link.

  • New to Illustrator, need help creating a map?

    Need to create a map of a neighborhood.  New to program any help would be great!

    rdelaroca,
    There are vector maps available for many areas.
    Or you may work on a locked image from Google Maps or something including the important parts/themes/whatever, using the Pen Tool as the primary tool for shapes in general.

  • Need help creating arraylist

    I am trying to help a friend in school with a project and we need some help...
    We need to write a program to estimate how much paint is needed to paint a house. Assuming we know the square feet that a gallon of paint covers, number of coats required, and the dimensions of the wall, window, door, or gable.
    We are using a GUI to enter the data for the different regions.
    We have the GUI created and the hierchy competed. I need some help creating the arraylist to run the program.
    The user will enter a new region by selecting:
    surface type
    width
    height
    then you will be able to add or insert to include this region in the list.
    You will also be able modify, delete, or navigate to existing regions in the list by selecting the appropriate navigigation buttons below:
    ( |< or < or > or >| )
    Classes include:
    PaintEstimatorView
    PainEstimator Model
    Regions:
    Wall
    Door
    Gable
    Window
    And the Approriate Listners
    Each region will have its own height and width which are set when the region is created
    Each region will compute and return its area and the walls and gables will contribute to the surface; windows and doors will reduce the surface.
    each region will calculate its area.
    We need to include a View and Model
    The view will manage the interface and the model will provide the necessary processing.
    responsibilities of the view:
    Instantiate and arrange the windowobjects
    instantiate and initialize the model
    handle user generated events such as button clicks and menu selections by sending message to the model
    represent the model to the user.
    Model:
    Define and manage the applications data(coordinating the activities of several programmer defined classes)
    respond to messages from the view
    We have the GUI completed I just need some help getting the arraylist started to run the program.
    We will need to keep a count and index of all the regions created by the user and you need to be able to shuffle throught them if you need to delete or modify them. You also need to insert windows and doors which will subtract from the total surface area but you have to go back to which ever wall or gable and create the window or door before or after that region.
    If anybody could help it would be greatly appreciated.
    Thanks in adavnce
    Rus

    Sorry, I forgot to add my code last night.
    This is what we have so far.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class TestSwingCommonFeatures extends JFrame {
    private JRadioButton wall, window, gable, door;
    private JButton computegal;
    public TestSwingCommonFeatures() {
    // Create a panel to group three buttons
    JPanel p1 = new JPanel(new GridLayout(2, 2, 5, 5));
    JTextField sqftpergal = new JTextField(8);
         JTextField coats = new JTextField(8);
         JTextField gallonsneeded = new JTextField(8);
         gallonsneeded.setEditable(false);
         p1.add(new JLabel("SQ ft / gallon"));
    p1.add(sqftpergal);
    p1.add(new JLabel("Number of gallons:"));
    p1.add(coats);
    p1.add(new JLabel("Gallons needed:"));
    p1.add(gallonsneeded);
         p1.add(computegal = new JButton("Compute gallons needed"));
         //computegal;
    p1.setBorder(new TitledBorder("Select gallons & coats"));
    // Create a font and a line border
    Font largeFont = new Font("TimesRoman", Font.BOLD, 20);
    Border lineBorder = new LineBorder(Color.BLACK, 2);
    // Create a panel to group two labels
    // panel 2
         JPanel p2 = new JPanel(new GridLayout(4, 2, 5, 5));
    p2.add(wall = new JRadioButton("wall"));
    p2.add(gable = new JRadioButton("gable"));
         p2.add(new JButton("ADD"));
              p2.add(window = new JRadioButton("window"));
              p2.add(door = new JRadioButton("door"));
                   p2.add(new JButton("Remove"));
    p2.add(new JLabel("Width"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Insert"));
         p2.add(new JLabel("Height"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Delete"));
    p2.setBorder(new TitledBorder("Controls"));
    ButtonGroup radiogroup = new ButtonGroup();
    radiogroup.add(wall);
    radiogroup.add(gable);
         radiogroup.add(window);
         radiogroup.add(door);
    //panel 3     
         JPanel p3 = new JPanel(new GridLayout(2, 1, 5, 5));
    p3.setBorder(new TitledBorder("Section Selection"));
         p3.add(new JButton("<|"));
              p3.add(new JButton("<"));
                   p3.add(new JButton(">"));
                        p3.add(new JButton("|>"));
    p3.add(new JLabel("Count"));
    p3.add(new JTextField(4));
         p3.add(new JLabel("Index"));
    p3.add(new JTextField(4));
    // Add two panels to the frame
    setLayout(new GridLayout(3, 1, 5, 5));
    add(p1);
    add(p2);
         add(p3);
    public static void main(String[] args) {
    // Create a frame and set its properties
    JFrame frame = new TestSwingCommonFeatures();
    frame.setTitle("TestSwingCommonFeatures");
    frame.setSize(600, 400);
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    private class UpdateListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Update button was clicked");
    private class NavListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Nav button was clicked");
    // Create a list to store data
    java.util.ArrayList paintList = new java.util.ArrayList();
    This is the GUI for the project that we have come up with. I have to write the arraylist for inside the model.
    I have tried a couple different things but have been unsuccessful getting it to work. All I am looking for is a start of the arraylist I will try to figure out the rest myself.
    Thanks

  • Iscripts - Need help creating a form in one

    I am confused about delimiting in iscripts. I need to create the fiollowing form:
    In iscript named IScript1
    in function: buildform
    buildform has these two inputs, firstname and lastname
    the action of the form is also in iscript1 function getinputs
    iscript getinputs will just print out the firstname and lastname
    Could I get some help with this?
    Thanks, Allen Cunningham

    Your site is running on an Apache server, so it definitely doesn't support ASP. Apache frequently supports PHP, but I couldn't tell from the headers sent by your server whether it's supported on your site.
    I suggest that you contact BT Business support to see if they offer a formmail script. Most hosting companies do. The support pages should describe how to set it up.

  • Need help creating many, many users.

    Hi,
    I need to create around 500,000 users in the iFS schema in the quickest possible way.
    The java API will do about 2 a second, which gives me an overhead of a few days?!?
    Any suggestions would be greatly appreciated.
    Thanks, this list has never let me down yet ;o)
    Paul.
    null

    Paul, we have not tested creating that many users in iFS, so we don't know if you will run into any issues. And I don't have any timed stats for creating users through XML.
    But we believe that using the Java API is the fastest way to create users.
    You will want to create the users in batch, and disconnect between batches, as the JVM memory will increase during the create.
    So you may want to create the users 10,000 at a time, and then disconnect and reconnect to create the next 10,000. Set your java MX setting for the JVM as high as you can (say, 768M), and then measure your memory usage for the first 10,000 users to see close to the MX setting the JVM gets.

  • I need help creat

    I install windows vista in my computer and conect my zen micro 5gb and dont work beacause is not compatible, my language is spanish i need help driver or some to fixed my problem thank you atte. jose campoy (my country is spain)

    ok well i remeberin reading somewhere that the firmware needs upgraded to work with vista but it need to be done in a xp machine maybe try these forums over here http://forums.creative.com/creativel...d?board.id=dap

  • Need help creating script to clear data with user inputs

    Hi experts.
    I need to create a script to clear data in a DEV system from a particular junction.
    Basically, I need the user to enter a CATEGORY, ENTITY and TIME which will then be used to delete all data in a particular table which meetes those criteria.
    I tried to write it in SSIS, but can't get a user input box.
    Also, Stored Procedures are not designed to open input boxes for these entries.
    Therefore, is there a way to do this in BPC script logic?
    I believe that I might be able to write either a Stored Procedure or DTSX package and then pass data from BPC Run Package?
    If this is correct, how would I go about it?
    Also, would it be possible to read the DISTINCT entries for Category, Time and Entity and present as a dropdown list?  (It doesn't matter too much if not, a manual entry would have to do).
    I will admit that I have no experience of script logc, so any docments and/or pointers would be appreciated.
    Thanks

    Thank Karthik, but I can't use the clear for this job.
    Specifically, I need this to delete from the LCK tables whenever data gets stuck, so if anyone can tell me the format to use, I'd be extremely grateful
    (And I appreciate that this is not recommended, but it's a DEV system and we need a way to clear these locks quickly when they occur)
    Edited by: Pie Eyed on Oct 1, 2011 2:54 PM

  • Need help creating URL for getImage

    In the following code example, I get an error when javac compiling. I need help, because I cannot determine what is wrong. "....." denotes extraneous code removed for readability.
    import java.awt.*;
    import java.io.*;
    import java.applet.*;
    import java.net.*;
    public class testapp extends java.applet.Applet implements java.lang.Runnable
    public static void main(String[] argv)
    ����.
    public void init()
    Toolkit toolkit = Toolkit.getDefaultToolkit();
    Image image1 = toolkit.getImage("imageFile.gif");
    Image image2 = toolkit.getImage( new URL("http://java.sun.com/graphics/people.gif"));
    ��
    javac reports:
    unreported exception java.net.MalformedURLException; must be caught or declared to be thrown
    Image image2 = toolkit.getImage( new URL ("http://java.sun.com/graphics/people.gif"));
    ................................................^

    With this recommended code:
    ===================
    try {  Image image2 = toolkit.getImage( new URL  ("http://java.sun.com/graphics/people.gif"));}catch(MalformURLExceptione){System.out.println("Error"); }
    ======================
    it now compiles ok, but when I access the page through the browser, I get "applet not initialized" and the page times out.
    With the lines commented out, the page loads.
    What does this tell us:
    - all we have done is mask a problem that the compiler previously highlighted.
    But what is the problem?
    As far as I can tell, the code is exact copies from the examples posted online.
    Where should System.out.println("Error"); be displayed? I can't find it. There might be a clue in the error message.

  • Need help created state machine that is time based

    I need help with my labview program. My goal is to write a program that allows the user to turn a toggle button on/off. When they do this it will start a loop witch turns on a digital switch for 45 minutes then off for 30 seconds and on and on till the user toggles the switch off. The timing does not have to be precise. I am using the NI 9476 digital output card.
    I have written the code to turn the switch on/off. I know need to add the looped fuction for on 45 minutes/off 30 seconds. I assume the most efficient method would be using a state machine, but I was having trouble figuring it out.
    Attached is the program I have written thus far without the loops.
    Thanks,
    Barrett
    Solved!
    Go to Solution.
    Attachments:
    Test Setup X01.vi ‏16 KB

    I cannot see your code since I don't have 2010 installed. A state machine would be good approach but in order to allow the user to cancel and possibly abort the process at any time your state machine should have a state such as "Check for timeout". In teh loop containing the state machine use a shift register to pass the desired delay value and the start time time for that particular delay. Once the user starts the process set the delay time to your desired time (45 minutes expressed as seconds) and have another shift register that contains the next state to go to after the delay completes. Use a small delay (100ms to 500ms depending on how accurate you want your times to be) to prevent your state machine from free running and then check the delay again. Use the current time and compare it to the start time. If the desired time has passed then go to the next state. You can store the next state in a shift register. No do the same thing for your Off Time state.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Simple Delay in State Machine.vi ‏14 KB

  • Need help creating a Jframe

    Hi guys, need a little help here in creating a Jframe. Its not something I am knowledgeable at all with and I need this done for my Introductory Java class. I have the other parts of the program finished as best as I can get it. I will post the problem and my code so you guys can look at it and maybe help me out. All help is appreciated
    Problem:
    Congratulations, your fame as a Java programmer is spreading, and you have been hired by Intelecom Group to create a special application. Using multiple classes design an online address book to keep track of the names, addresses, phone numbers, and birthdays of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries. This program should load the data from a file, called phoneData.txt.
    User Interface: Using JFrame, create a user interface of your design. Remember, unless notified otherwise, ALL input and output will be via this interface.
    Functionality: The program should be able to do the following:
    a) Search for all of the names and phone numbers by first letter of the last name, (this can be displayed using a message box)
    b) Search for a particular person by last name, displaying their phone number, address, and date of birth.
    c) Display the names of people whose birthday's are in a given month.
    d) Search for a person by their phone number, displaying their name, address, and their relationship (ie. Family, Friend, or Associate
    Code:
    package back_end;
    import java.util.*;
    public class Test_backend
    * @param args
    public static void main(String[] args)
    //Relation_type FRIEND;
    // TODO Auto-generated method stub
    Birthday b1 = new Birthday(9,2,1985);
    Birthday b2 = new Birthday(6,21,1985);
    Birthday b3 = new Birthday(1,2,1990);
    Birthday b4 = new Birthday(1,3,1950);
    Person p1 = new Person ("Sloan", "Mergler", "4 vanderbilt drive",
    "516-551-0829", b1, Relation_type.FRIEND );
    Person p2 = new Person ("Taylor", "Bowne", "21 greywood street",
    "516-944-6812", b2, Relation_type.FRIEND);
    // these are random numbers for birthdays
    Person p3 = new Person ("Daniel", "Py", "21 roger drive apt 2",
    "516-944-7530", b3, Relation_type.FAMILY_MEMBER);
    Person p4 = new Person ("Richard", "Py", "21 roger drive apt 1",
    "516-944-7530", b4, Relation_type.FAMILY_MEMBER);
    Address_book a1 = new Address_book();
    a1.add_to_book(p1);
    a1.add_to_book(p2);
    a1.add_to_book(p3);
    a1.add_to_book(p4);
    System.out.println("This is testing search_by_last_initial");
    Vector vt1a = a1.search_by_last_initial("M");
    Test_backend.printOutVector(vt1a);
    System.out.println("Sloan Mergler should be : ");
    Vector vt1b = a1.search_by_last_initial("P");
    Test_backend.printOutVector(vt1b);
    System.out.println("Daniel Py and Richard Py should be :");
    System.out.println("This is testing search_by_last_Name");
    Person lastname1 = a1.search_by_last_name("Mergler");
    System.out.println(lastname1.first_name + " " + lastname1.last_name +
    " should be Sloan Mergler " );
    Person lastname2 = a1.search_by_last_name("Bowne");
    System.out.println(lastname2.first_name + " " + lastname2.last_name +
    "should be Taylor Bowne" );
    System.out.println("This is testing search_by_birth_month");
    Vector vt3a = a1.search_by_birth_month(1);
    Test_backend.printOutVector(vt3a);
    System.out.println("should be Daniel Py and Richard Py");
    Vector vt3b = a1.search_by_birth_month(6);
    Test_backend.printOutVector(vt3b);
    System.out.println("should be Taylor Bowne");
    System.out.println("This is testing search_by_phone_number");
    Person pt4a = a1.search_by_phone_number("516-944-7530");
    System.out.println(pt4a.first_name + " " + pt4a.last_name +
    " should be Daniel Py");
    Person pt4b = a1.search_by_phone_number("516-551-0829");
    System.out.println(pt4b.first_name + " " + pt4b.last_name +
    " should be Sloan Mergler");
    public static void printOutVector(Vector v1)
    for (int x = 0; x < v1.size(); x++)
    Person p1 = (Person) v1.get(x);
    String s1 = p1.first_name +" " + p1.last_name + "";
    System.out.println(s1);
    return;
    package back_end;
    public enum Relation_type
    FAMILY_MEMBER,
    FRIEND,
    BUSINESS_ASSOCIATE
    package back_end;
    public class Person
    String first_name;
    String last_name;
    String address;
    String phoneNumber;
    Birthday birthday;
    Relation_type relation;
    public Person (String first_name, String last_name, String address, String phoneNumber, Birthday birthday, Relation_type relation)
    this.first_name = first_name;
    this.last_name = last_name;
    this.address = address;
    this.phoneNumber = phoneNumber;
    this.birthday = birthday;
    this.relation = relation;
    // default constructor
    public Person (){}
    package back_end;
    public class Birthday
    int birth_month;
    int birth_day;
    int birth_year;
    Birthday(int birth_month, int birth_day, int birth_year)
    this.birth_month = birth_month;
    this.birth_day = birth_day;
    this.birth_year = birth_year;
    package back_end;
    import java.util.*;
    * This class is the addressbook, it is to keep track of all your associates
    public class Address_book
    int MAX_SIZE = 500;
    public ArrayList book;
    // constructor
    public Address_book()
    this.book = new ArrayList(MAX_SIZE);
    // methods
    public void add_to_book(Person newPerson)
    boolean it_worked = this.book.add(newPerson);
    if (it_worked){ return ;}
    else
    throw new RuntimeException ("Too many items in book, it is filled up");
    * Functionality for this class
    * a) Search for all of the names and phone numbers by first letter of
    * last name (this can be displayed in a message box).
    * b) Search for a particular person by last name, displaying their
    * phone number, address, and date of birth.
    * c) Display the names of people whose birthdays are in a given month.
    * d) Search for a person by phone number, displaying their name,
    * address, and their relationship (ie Family, Friend, or Associate).
    * This method shold work for functionality part a
    * Given a string containing one letter, this function will search through
    * this and try to find all occurances of people whose last name start
    * with the given string and return it in a vector
    public Vector search_by_last_initial (final String last_initial)
    // this is for input error checking
    if (last_initial.length() != 1){
    throw new RuntimeException("Input was not supposed to be that long");
    Vector v1 = new Vector();
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.last_name.startsWith(last_initial))
    v1.add( listed_person);
    return v1;
    * this will work for parth b
    * Given a string, it will search for anyone with last name equal
    * to given string and return the first occurance of a person
    * with that last name
    public Person search_by_last_name ( final String last_name)
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.last_name.equalsIgnoreCase(last_name))
    return listed_person;
    return null;
    * This method should work for part c
    * Given the month, given in the form of an int, it will return a list
    * of people whose Birthdays are in that month
    public Vector search_by_birth_month (final int birth_month)
    // this is for input checking
    if (birth_month > 12 || birth_month < 1)
    throw new RuntimeException("That is not a month");
    // main stuff
    Vector v1 = new Vector();
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.birthday.birth_month == birth_month)
    v1.add( listed_person);
    return v1;
    * This method should satisfy part d
    * Given a phone number in the form 'xxx-xxx-xxxx', this function will
    * return the person with that number
    public Person search_by_phone_number (final String pnumber)
    if (pnumber.length() != 12
    || ! is_It_A_PhoneNumber(pnumber)
    throw new RuntimeException("This phone number is not of right form (ex. xxx-xxx-xxxx)");
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.phoneNumber.equalsIgnoreCase(pnumber))
    return listed_person;
    return null;
    // this function uses the regex features of java which i am not so sure about....
    private boolean is_It_A_PhoneNumber(final String possPnum)
    boolean return_value = true;
    String[] sa1 = possPnum.split("-");
    if (sa1[0].length() != 3 ||
    sa1[1].length() != 3 ||
    sa1[2].length() != 4 ){ return_value = false;}
    return return_value;
    Thanks to anyone who can help me out

    Code:
    package back_end;
    import java.util.*;
    public class Test_backend
    * @param args
    public static void main(String[] args)
    //Relation_type FRIEND;
    // TODO Auto-generated method stub
    Birthday b1 = new Birthday(9,2,1985);
    Birthday b2 = new Birthday(6,21,1985);
    Birthday b3 = new Birthday(1,2,1990);
    Birthday b4 = new Birthday(1,3,1950);
    Person p1 = new Person ("Sloan", "Mergler", "4 vanderbilt drive",
    "516-551-0829", b1, Relation_type.FRIEND );
    Person p2 = new Person ("Taylor", "Bowne", "21 greywood street",
    "516-944-6812", b2, Relation_type.FRIEND);
    // these are random numbers for birthdays
    Person p3 = new Person ("Daniel", "Py", "21 roger drive apt 2",
    "516-944-7530", b3, Relation_type.FAMILY_MEMBER);
    Person p4 = new Person ("Richard", "Py", "21 roger drive apt 1",
    "516-944-7530", b4, Relation_type.FAMILY_MEMBER);
    Address_book a1 = new Address_book();
    a1.add_to_book(p1);
    a1.add_to_book(p2);
    a1.add_to_book(p3);
    a1.add_to_book(p4);
    System.out.println("This is testing search_by_last_initial");
    Vector vt1a = a1.search_by_last_initial("M");
    Test_backend.printOutVector(vt1a);
    System.out.println("Sloan Mergler should be : ");
    Vector vt1b = a1.search_by_last_initial("P");
    Test_backend.printOutVector(vt1b);
    System.out.println("Daniel Py and Richard Py should be :");
    System.out.println("This is testing search_by_last_Name");
    Person lastname1 = a1.search_by_last_name("Mergler");
    System.out.println(lastname1.first_name + " " + lastname1.last_name +
    " should be Sloan Mergler " );
    Person lastname2 = a1.search_by_last_name("Bowne");
    System.out.println(lastname2.first_name + " " + lastname2.last_name +
    "should be Taylor Bowne" );
    System.out.println("This is testing search_by_birth_month");
    Vector vt3a = a1.search_by_birth_month(1);
    Test_backend.printOutVector(vt3a);
    System.out.println("should be Daniel Py and Richard Py");
    Vector vt3b = a1.search_by_birth_month(6);
    Test_backend.printOutVector(vt3b);
    System.out.println("should be Taylor Bowne");
    System.out.println("This is testing search_by_phone_number");
    Person pt4a = a1.search_by_phone_number("516-944-7530");
    System.out.println(pt4a.first_name + " " + pt4a.last_name +
    " should be Daniel Py");
    Person pt4b = a1.search_by_phone_number("516-551-0829");
    System.out.println(pt4b.first_name + " " + pt4b.last_name +
    " should be Sloan Mergler");
    public static void printOutVector(Vector v1)
    for (int x = 0; x < v1.size(); x++)
    Person p1 = (Person) v1.get(x);
    String s1 = p1.first_name +" " + p1.last_name + "";
    System.out.println(s1);
    return;
    package back_end;
    public enum Relation_type
    FAMILY_MEMBER,
    FRIEND,
    BUSINESS_ASSOCIATE
    package back_end;
    public class Person
    String first_name;
    String last_name;
    String address;
    String phoneNumber;
    Birthday birthday;
    Relation_type relation;
    public Person (String first_name, String last_name, String address, String phoneNumber, Birthday birthday, Relation_type relation)
    this.first_name = first_name;
    this.last_name = last_name;
    this.address = address;
    this.phoneNumber = phoneNumber;
    this.birthday = birthday;
    this.relation = relation;
    // default constructor
    public Person (){}
    package back_end;
    public class Birthday
    int birth_month;
    int birth_day;
    int birth_year;
    Birthday(int birth_month, int birth_day, int birth_year)
    this.birth_month = birth_month;
    this.birth_day = birth_day;
    this.birth_year = birth_year;
    package back_end;
    import java.util.*;
    * This class is the addressbook, it is to keep track of all your associates
    public class Address_book
    int MAX_SIZE = 500;
    public ArrayList book;
    // constructor
    public Address_book()
    this.book = new ArrayList(MAX_SIZE);
    // methods
    public void add_to_book(Person newPerson)
    boolean it_worked = this.book.add(newPerson);
    if (it_worked){ return ;}
    else
    throw new RuntimeException ("Too many items in book, it is filled up");
    * Functionality for this class
    * a) Search for all of the names and phone numbers by first letter of
    * last name (this can be displayed in a message box).
    * b) Search for a particular person by last name, displaying their
    * phone number, address, and date of birth.
    * c) Display the names of people whose birthdays are in a given month.
    * d) Search for a person by phone number, displaying their name,
    * address, and their relationship (ie Family, Friend, or Associate).
    * This method shold work for functionality part a
    * Given a string containing one letter, this function will search through
    * this and try to find all occurances of people whose last name start
    * with the given string and return it in a vector
    public Vector search_by_last_initial (final String last_initial)
    // this is for input error checking
    if (last_initial.length() != 1){
    throw new RuntimeException("Input was not supposed to be that long");
    Vector v1 = new Vector();
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.last_name.startsWith(last_initial))
    v1.add( listed_person);
    return v1;
    * this will work for parth b
    * Given a string, it will search for anyone with last name equal
    * to given string and return the first occurance of a person
    * with that last name
    public Person search_by_last_name ( final String last_name)
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.last_name.equalsIgnoreCase(last_name))
    return listed_person;
    return null;
    * This method should work for part c
    * Given the month, given in the form of an int, it will return a list
    * of people whose Birthdays are in that month
    public Vector search_by_birth_month (final int birth_month)
    // this is for input checking
    if (birth_month > 12 || birth_month < 1)
    throw new RuntimeException("That is not a month");
    // main stuff
    Vector v1 = new Vector();
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.birthday.birth_month == birth_month)
    v1.add( listed_person);
    return v1;
    * This method should satisfy part d
    * Given a phone number in the form 'xxx-xxx-xxxx', this function will
    * return the person with that number
    public Person search_by_phone_number (final String pnumber)
    if (pnumber.length() != 12
    || ! is_It_A_PhoneNumber(pnumber)
    throw new RuntimeException("This phone number is not of right form (ex. xxx-xxx-xxxx)");
    final int current_size = this.book.size();
    for ( int x = 0; x < current_size; x++)
    final Person listed_person = (Person) this.book.get(x);
    if (listed_person.phoneNumber.equalsIgnoreCase(pnumber))
    return listed_person;
    return null;
    // this function uses the regex features of java which i am not so sure about....
    private boolean is_It_A_PhoneNumber(final String possPnum)
    boolean return_value = true;
    String[] sa1 = possPnum.split("-");
    if (sa1[0].length() != 3 ||
    sa1[1].length() != 3 ||
    sa1[2].length() != 4 ){ return_value = false;}
    return return_value;
    }

  • Need help creating movies in Snapz Pro and then editing them in FCE

    I'm in the process of creating a series of training videos on a software application that will ultimatley be on a DVD accompanying a book. I'm trying to use SnapZ Pro to capture the video (with audio) and then edit the sound in FCE. I have no clue what settings to use in Snap Z Pro for the best quality and that will be compatible with FCE. I tried a few samples and used the Animation codec (and various audio compressions). The audio tract was fine in FCE when I listened to it alone, but jumpy with lost segments when combined with the video. I'd appreciate some ideas of what settings to use at every step of the process for best results.
    When I tried saving a segment using the Apple Intermediate codec in Snapz Pro, FCE repeatedly crashed when importing the file.
    Any help would be greatly appreciated!
    Thanks!

    FCE is a fixed resolution video editing application. It will only work in DV or HDV. 10fps is not a frame rate used by either of those. The material needs to be in a standard frame resolution and frame rate. The standard for DV is 720x480 at 29.97fps. If you capture at 10fps you're going to have to save the material using the DV NSTC codec, set the frame size to 720x480 and the frame rate to 29.97. You may have pixel aspect ratio issues requiring capture at 720x540, but I don't know enough about SnapzPro to know how that product handles frame resolution and frame rate conversion.

  • I need help :(  Created my own site w/DW

    I am creating a website (see link below) for my uncles
    business. I used DW CS3 as my tool and some use of fireworks for
    the buttons. I created a 3 framed set. The problem I am having is
    with the middle and bottom frames. If you look at my site you will
    see the problem. I cant for the life of me get this to line up :(
    Middle frame is a 3 c 1 r table. Im such a freakin noob, I dont
    know how to fix this. Also I noticed that my graphics are big so
    anyone with 640x480 will have a hard time seeing the site. At this
    point I think thats the least of my worries. If I cant get this
    stuff to line up right I wont be able to add content. I wanted a
    frameset with the TOP being fixed, middle frame growing based on
    content and the bottom adjusting with the middle frame.
    If someone is willing to help or give me pointers, I would
    appreciate anything I can get. At this point I'll pay for some
    assistance :(
    HELP please!
    My project

    Your page has many validation errors:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.myhomeappraised.com%2F
    That's usually the first place to start (fixing the errors).
    If you don't understand the errors, how to fix them, or know
    what
    validation is, you are probably not at a level where you can
    truly
    effectively use Dreamweaver. This is not necessarily a bad
    thing - but
    it is an important thing to realize, accept, and address.
    You will continue to have problems if you continue to use
    Dreamweaver/Fireworks under the assumption that these
    programs create
    web sites for you. You need to learn about the right way to
    create web
    sites so that YOU can be in control of these powerful tools
    as opposed
    to where you are now - suffering at their mercy.
    That said, I suggest a few tutorials on HTML, XHTML, and CSS
    in general:
    A good place to start is
    http://www.w3schools.com/.
    Alec
    Adobe Community Expert

Maybe you are looking for

  • MSI GE70 Apache Pro-061 Custom/modded Bios

    Hello im new on these forums and would just like to know if i could get a custom/modded bios for my laptop. I would really like to lift the restrictions with overclocking on the gtx 860m card. Current bios version: E1759IMS.520; Running windows 8.1 6

  • Rotate images DURING import

    To be able to rotate images DURING import would be a nice feature. I can do this with Apple's Image Capture. They are imported wih the rotation I have requested, and this show in the icons too. I like popping a folder open and view my images in icon

  • Why is the body of text a picture

    Hello Why is the body of text a picture after converting PDF to DOC?

  • PD - If I click on complete button,  its not happining,

    Hi Gurus, We implemented PD, ESS/MSS  with Portal.   As per work flow,  my user uploading the appraisal form, supervisor will give the rating and complete the process.  So,  here if he/she clicks on complete button, status is not going to complete, i

  • Extract the Long Text in txt file

    Hi I want a generic program which can extact the long text for any of the object(Material, Customer, Vendor..) and for n number of records in the upload file format taken by the LSMW for long text. Regards,