Please please help trouble with exported quality

please please help me> i have been searching the net for over 3 hrs for a solution and whatever I have found has been a little too technical for me . I am uploading video to i movie from a disk. the file types on the disk are mp4. I am then editing the clips on iMovie '09 when I go to export the movie I am chosing to export movie as a "large" 960x540
.mov file. The quality ***...it is blurry and grainy and unusable. Someone in another forum told me to run the mp4 movie in quicktime and tell them what movie inspector says about the clip. Movie inspector says:
Formatt: Apple MPEG4 Decompressor, 640 × 480, Millions
FPS: 29.97
Playing FPS: 30
Data size 129 MB
Data Rate: 1504.39 kbits/s
Size 640 x 480
I am dying over here any help please? and thank you all so much

once I share to the media browser where does it go? cant find it.
It's "hidden" in your user folder Movies>iMovie Projects. Right-click (Control-click) on the name of your Project and select "Show Package Contents". In the folder named Movies you will see your exported file. It could be either a .m4v or .mov file, or possibly another type, depending on whether standard definition or high definition and the size option chosen when exported. If you are producing a DVD, you drag the file from iDVD's Media-Movies pane onto the Theme background.
Also, when sharing to the media browser I can only save it as "medium" quality...the other choices arent available?
Then AppleMan's earlier advice will be correct (as always) - he recommended using the Medium setting based on your QuickTime details. It appears that your original MP4 video has an aspect ratio of 4:3, unless your Project settings are incorrect. You set the dimensions (standard 4:3, widescreen 16:9 or iPhone 3:2) of the project in File>Project Properties then selecting the General tab.
In iMovie '09, I've mainly worked with AVCHD video which produces .MTS files that are converted to AIC (Apple Intermediate Codec) on import. This is high definition footage which iMovie can import as 1920 x 1080 or 960 x 540 (both widescreen 16:9). Hence, on export I can share at Large (960 x 540) or HD (1280 x 720). I'm not sure why you are only seeing a Medium option - could be due to the aspect ratio or maybe it's standard definition in MP4 format (just guessing!). If other options are greyed out, have you tried ticking the boxes - that activates each option for me.
John

Similar Messages

  • Trouble With Exporting Quality with iMovie HD

    Hi,
    Im a first time user of iMovie HD and was having trouble with the qqaulity of my footage when im exporting or sharing it out to quicktime in a dv file.
    When i connect my camera to a TV and watch the footage it seems a lot clearer in comparison to when i 'share' it out of iMovie HD. It seems to lose a lot of its quality. Does anyone have any suggestions? I obviously want to get the best quality i can, can anyone help???

    Don't worry, it's a bit on illusion!
    The quality that you see in iMovie is not representative of the quality you will see on your TV from the final DVD. This shoulkd be almost indistinguishable from what you see on your TV from the camera.
    This is intentional, in that the quality is reduced (as far as what you see is concerned) in order to save 'extra labour' in the Mac's processor.

  • Please! help me with this wrong code, where is mistake

    please! help me with this wrong code, where is mistake?
    import java.util.Stack;
    public class KnightsTour {
    Vars locs[];
    private int size, max=1, d=0, board[][];
    public KnightsTour(int x,int y, int newSize)
         size=newSize;
         locs=new Vars[size*size+1];
         for(int n=1;n<=size*size;n++)
              locs[n]=new Vars();
         board=new int[size+1][size+1];
         for(int n=1;n<=size;n++)
              for(int n2=1;n2<=size;n2++)
                   board[n][n2]=0;
         locs[max].x=x;
         locs[max].y=y;
         locs[max].d=1;
         board[x][y]=max;
         max++;
    class Vars{
         int x;
         int y;
         int d;
    public void GO()
         int n=0;
         while(max<=size*size)
              n++;
              d++;
              if(d>8)
                   max--;
                   board[locs[max].x][locs[max].y]=0;
                   d=locs[max].d+1;
              move();
         printBoard();
    public void move()
         int x=locs[max-1].x, y=locs[max-1].y;
         switch(d)
         case 1:x--;y-=2;break;
         case 2:x++;y-=2;break;
         case 3:x+=2;y--;break;
         case 4:x+=2;y++;break;
         case 5:x++;y+=2;break;
         case 6:x--;y+=2;break;
         case 7:x-=2;y++;break;
         case 8:x-=2;y--;break;
         //System.out.println(" X: "+x+" Y: "+y+" |"+max);
         if((x<1)||(x>size)||(y<1)||(y>size)){}
         else if(board[x][y]!=0){}
         else
              locs[max].x=x;
              locs[max].y=y;
              locs[max].d=d;
              board[x][y]=max;
              max++;
              d=0;
              //printBoard();
    public void printBoard()
         for(int n=1;n<=size;n++)
              for(int n2=1;n2<=size;n2++)
                   if(board[n2][n]<10)
                        System.out.print(board[n2][n]+" ");
                   else
                        System.out.print(board[n2][n]+" ");
              System.out.println();
         //System.out.println();
         System.out.println();
         public static void main (String[]args){
              KnightsTour k = new KnightsTour(1,1,8);
         }

    public class KnightsTour {
        Vars locs[];
        private int size,  max = 1,  d = 0,  board[][];
        public static void main (String[] args) {
            KnightsTour k = new KnightsTour (1, 1, 8);
            k.GO ();
        public KnightsTour (int x, int y, int newSize) {
            size = newSize;
            locs = new Vars[size * size + 1];
            for (int n = 1; n <= size * size; n++) {
                locs[n] = new Vars ();
            board = new int[size + 1][size + 1];
            for (int n = 1; n <= size; n++) {
                for (int n2 = 1; n2 <= size; n2++) {
                    board[n][n2] = 0;
            locs[max].x = x;
            locs[max].y = y;
            locs[max].d = 1;
            board[x][y] = max;
            max++;
        class Vars {
            int x;
            int y;
            int d;
        public void GO () {
            int n = 0;
            while (max <= size * size) {
                n++;
                d++;
                if (d > 8) {
                    max--;
                    board[locs[max].x][locs[max].y] = 0;
                    d = locs[max].d + 1;
                move ();
            printBoard ();
        public void move () {
            int x = locs[max - 1].x, y = locs[max - 1].y;
            switch (d) {
                case 1:
                    x--;
                    y -= 2;
                    break;
                case 2:
                    x++;
                    y -= 2;
                    break;
                case 3:
                    x += 2;
                    y--;
                    break;
                case 4:
                    x += 2;
                    y++;
                    break;
                case 5:
                    x++;
                    y += 2;
                    break;
                case 6:
                    x--;
                    y += 2;
                    break;
                case 7:
                    x -= 2;
                    y++;
                    break;
                case 8:
                    x -= 2;
                    y--;
                    break;
    //System.out.println(" X: "x" Y: "y" |"+max);
            if ((x < 1) || (x > size) || (y < 1) || (y > size)) {
            } else if (board[x][y] != 0) {
            } else {
                locs[max].x = x;
                locs[max].y = y;
                locs[max].d = d;
                board[x][y] = max;
                max++;
                d = 0;
    //printBoard();
        public void printBoard () {
            for (int n = 1; n <= size; n++) {
                for (int n2 = 1; n2 <= size; n2++) {
                    if (board[n2][n] < 10) {
                        System.out.print (board[n2][n] + " ");
                    } else {
                        System.out.print (board[n2][n] + " ");
                System.out.println ();
    //System.out.println();
            System.out.println ();
    }formatting ftw.
    If you call GO () you get in an infinite loop. max gets decreased, and it loops while max is smaller then or equal to size * size. Is your looping logic correct ?

  • HT1494 hi....i  cant continuously play my music with my ipod nano....i tried a lot with the settings for wake time but still it is pausing the music path.Please anybody help me with this issue

    hi....i  cant continuously play my music with my ipod nano....i tried a lot with the settings for wake time but still it is pausing the music path.Please anybody help me with this issue

    Is this your problem?
    iPod nano (6th generation): Music stops when display turns off
    B-rock

  • Trouble with export and import

    I am having trouble with export and import
    here is what I did...
    exp "'/ as sysdba'" PARFILE=parfile.txt
    PAFILE
    TABLES=user1.Table1
    file=Table1_1006.dmp
    LOG=Table1_1006.log
    query="where to_char(processeddate,'YYYYMMDDHHMISS') between to_char(to_timestamp('1911-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS'),'YYYYMMDDHHMISS') and to_char(to_timestamp('2011-10-06 16:46:26','YYYY-MM-DD HH24:MI:SS'),'YYYYMMDDHHMISS')"here is my log from export
    set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    Current user changed to user1
    . . exporting table               Table1   16019049 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.Then I started importing
    /database2/rdbm15> imp "'/ as sysdba'" file=Table1_1006.dmp fromuser=user1 touser=user1 tables=Table1 log=imp_Table1_1006.log
    Import: Release 10.2.0.5.0 - Production on Thu Oct 6 19:57:01 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    . importing user1's objects into user1
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLE "Table1" ("APPROVALTRACEID" VARCHAR2(64), "REQUESTOR"
    "EID" VARCHAR2(9), "EID" VARCHAR2(9), "FIRSTNAME" VARCHAR2(32), "LASTNAME" V"
    "ARCHAR2(32), "MIDDLEINITIAL" VARCHAR2(8), "TIER" VARCHAR2(3), "JOBTITLE" VA"
    "RCHAR2(64), "JOBCODE" VARCHAR2(10), "EMPLOYEETYPE" VARCHAR2(2), "CONTRACTOR"
    "TYPE" VARCHAR2(2), "EMPLOYEESTATUS" VARCHAR2(2), "COSTCENTER" VARCHAR2(10),"
    " "COSTCENTERDESCRIPTION" VARCHAR2(50), "CONTRACTENDINGDATE" VARCHAR2(8), "A"
    "CCOUNTSTATUS" VARCHAR2(2), "LOGINID" VARCHAR2(70), "APPLICATIONGROUP" VARCH"
    "AR2(50), "APPLICATIONNAME" VARCHAR2(50), "APPLICATIONID" VARCHAR2(12), "LEV"
    "EL1" VARCHAR2(512), "LEVEL2" VARCHAR2(512), "LEVEL3" VARCHAR2(512), "LEVEL4"
    "" VARCHAR2(512), "LEVEL5" VARCHAR2(512), "PROFILECODE" VARCHAR2(50), "PROCE"
    "SSEDDATE" DATE, "APPROVERMANAGEREID" VARCHAR2(9), "APPROVERMANAGERDELEGATEE"
    "ID" VARCHAR2(9), "APPROVERT4MANAGEREEID" VARCHAR2(9), "APPROVERT4MANAGERDEL"
    "EGATEEID" VARCHAR2(9), "APPROVERAPPOWNEREID" VARCHAR2(9), "APPROVERAPPOWNER"
    "DELEGATEEID" VARCHAR2(9), "PERFORMEREID" VARCHAR2(9), "NATIONALID" VARCHAR2"
    "(30), "COUNTRYCODE" VARCHAR2(9), "PASSPORTID" VARCHAR2(20), "DATEOFBIRTH" V"
    "ARCHAR2(15), "CITYOFBIRTH" VARCHAR2(15), "VENDORNAME" VARCHAR2(50), "VENDOR"
    "MANAGERNAME" VARCHAR2(50), "VENDORMANAGERID" VARCHAR2(9), "VENDORADDRESS1" "
    "VARCHAR2(100), "VENDORADDRESS2" VARCHAR2(100), "VENDORSTATEPROVINCE" VARCHA"
    "R2(15), "VENDORCOUNTRYCODE" VARCHAR2(9), "VENDORZIPPOSTALCODE" VARCHAR2(9))"
    "  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 4076863488 "
    "NEXT 1048576 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)            "
    "                   LOGGING NOCOMPRESS"
    Import terminated successfully with warnings.but I did not get rows to database2
    [server1]database2
    /database2/rdbm15> sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Thu Oct 6 19:59:17 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select count(*) from user1.Table1;
      COUNT(*)
             0
    SQL> exit
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - ProductionEdited by: user3636719 on Oct 6, 2011 5:23 PM

    user3636719 wrote:
    Thanks for the reply...
    Old EXP IMP doesnt have capability to append the row, since you're using 10g use datapump instead. use option TABLE_EXISTS_ACTION=APPENDso my import should be like this
    imp "'/ as sysdba'" file=Table1_1006.dmp fromuser=user1 touser=user1 tables=Table1 log=imp_Table1_1006.log TABLE_EXISTS_ACTION=APPEND
    Did you look up the command line syntax and control options for imp?
    You should make it a habit that whenever anyone - especially a stranger on the web - gives you a bit of code or references a command or init parm or any some such, the VERY FIRST thin you should ALWAYS do is look it up for yourself and see exactly where and how it is used and what it means. That is how you grow beyond having to be spoon fed every little thing and become more self-sufficient.
    If you had, you would have seen that there is no TABLE_EXISTS_ACTION option for imp and seen that it is an option for impdp. And realized that exp and imp are NOT the same thing as expdp and impdp.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Help Needed Badly. Troubles with exporting video...

    Hello, I created this account pretty much just for this problem, and I'm running under a very tight timeline so please if someone could give me an answer it would be very much appreciated. I have spent 8 hours over the past two nights as well as 4 hours today reworking, trying different things and combing the online community for any others experiencing these problems and/or solutions, so I am extremely stressed and tired if you could bare with me. So here it is:
    I am editing and compiling a theatre production into a movie. I shot the show three times using a Canon HV30, imported the footage on a school computer (iMac, using iMovie '06), exported it in quicktime onto an external HD, brought it onto my computer (which, stupidly, has no firewire). The total file size was 7 hours of footage (85GB), and as a result my HD has about 300MB left on it, and has been excruciatingly slow. I have finished editing the movie, and I am now attempting to share it. All of the sources I have read tell me to share it in Media Browser, which will be accessible from iDVD. I attempted this many times, however I received multiple different error messages, only after watching it 'working' for 4 hours. Some have said that there was no virtual memory left (even after emptying the cache), some said that there wasn't enough HD space left, the exporting had encountered an error, error messages -50, -49, -48, and -47, and the most prominent one that I have been receiving told me that there had been a "parameter error" or something.
    After researching online, I found that the '-50' error messages had to do with exporting to a MSDOS HD, which made sense because I was attempting to export to my iPod (formatted in Windows). My latest efforts have been trying to export it onto my HD, which is formatted for OSX, and has 350GB left on it. And yet, all of the problems persist (including error -50...?) any help would be greatly, greatly appreciated, as the DVD was due two days ago.
    -Sean

    +"Alright, so I moved over the footage and deleted it off the internal..."+
    Did you move the Events using iMovie? If not, the project pointers become invalid, and you would get the error you did. While moving the event using iMovie, you don't need to "delete" anything!
    Couple of options for you to recover from this.
    A> (Slower) Move the Events back to the internal HD, and use iM to move the Event to the Ext HD.
    B> (Faster, but convoluted) Create an alias for the specific Event folder (now on your ext HD/iMovie Events folder) under your local HD's iM Events folder. IM will now be able to "see" the files on the internal HD, even though they're stored on the Ext HD.
    From the Help File: "To keep an item at its original location and put an alias for it in a new folder, hold down the Command and Option keys while you drag the item."
    Sorry you're having to jump through hoops to get this working...

  • Please to help rookie with quad core on P35 Neo 2 (MS-7345)

    I bought a home built computer (specs below) for my sons almost a year ago and have had nothing but trouble with it.  After I finally realized that the graphics card was over-heating it worked better for a bit after replacing Radeon 9600 with some crappy one.  Then I reinstalled XP and seem to have lost drivers for some of the functions of the MB like sound and networking.  Presently it is an impressive looking paperweight with fantastic specs.
    It does boot to XP and has internet connection now that I stuck in a NIC card.
    I was foolish enough to install and run microsoft genuine advantage and, because it didn't pass, have to read about it every boot and login.  So I'd like to reinstall XP again.
    I do have System info for Windows (SIW) installed. 
    I bought system so sons could play Call of Duty 4.  When I try to launch COD it gives message:
    "Error during initialization:
    Miles sound system initialization failed.
    Make sure you have your sound card's latest drivers and DirectX installed."
    I have installed latest DirectX but do not know what to do about sound card as it is function of MB, I think.
    Any help would be greatly appreciated as to next steps or what further info I would need to gather to solve.
    Thank you!
    Chip
    Specs:
    -Intel Quad Core CPU Q6600 clocked @ 3.0 GHz x 4, passed 24 hrs Prime95, 100% stable
    -Copper Heatpipe CPU Cooler for better cooling than stock heatsink
    -MSI P35 Neo 2 motherboard with Intel P35 Chipset w/ Intel ICH9R Chip, Copper Heat-pipes to keep both the chipset and power converter cool, Socket 775, FSB 1600/1333/1066/800-MHz, and,
    -Dual 16x PCI-Express video, (4) memory slots for up to 8 Gigs of Dual Channel DDR2-1066 memory, (5) SATA connectors, (2) external e'Sata ports, up to (12) USB ports, CrossFire Support
    -2-Gigs of CORSAIR XMS2 memory with with DHX Technology DDR2-6400 (800-MHz) for best Vista performance.
    -Seagate 1TB, 32-Meg Cache, 7200 RPM hard drive with perpendicular recording technology for great performance
    -HP 20x Dual Layer DVD / CD-RW Burner to handle all your burning needs
    -Gigabyte 10/100/1000 Fast Ethernet Port to connect to your High-Speed Internet
    -(8) 2.0-USB ports to connect digital cameras, printers, MP3 players, etc… (6) in the rear and two on the front
    -7.1 HD Surround Sound Audio
    -Dual boot of XP and Vista, along with Photoshop and Office included .
    -Sigma "La Vie", black gaming case that has a side window and Blue LED fans to show off the parts. Along with a 680W power supply 30-Amp 12V rails, 6-pin PCI-E power connector give this plenty of juice for any video card.

    Thank you again for that page.  I had looked (in vain) for this because I did not receive the MSI cd with this computer.
    http://www.msi.com/index.php?func=downloaddetail&type=driver&maincat_no=1&prod_no=1213
    I dl'd all of the files and began to install from the bottom up.  The "Intel INF Drivers for 3/4/5 Chipsets" went fine but in the 'read me' for "Intel Matrix Storage Manager Driver" it says that if none of the supported RAID or SCSI controllers are present in the Device Manager/IDE ATA/ATAPI controllers then your computer is not in RAID, SCSI or AHCI modes and these drivers are not applicable.  Does that makes sense considering the type of hard drive?  Do hard drives have drivers? (apologies if this does not make sense)
    Also, the "Realtek PCI-E Ethernet Drivers" only contains dll, system and a security catalog file.  I do not know what to do with these to install.

  • Please somebody help me with this

    1.1 modify the application so that:
    i) Information about any foreign key constraints for the selected table is displayed eg as
    additional labels in the table editor window, or in a separate dialog window.
    You can choose how you wish to display this information.
    ii) An Update button is added for each text field in the display, which will attempt to update the corresponding field in the database table, from the current data in the textfield. The following code will retrieve the current value from a JTextField object:
    String newValue = textfieldName.getText();
    The following code will convert the string to a number:
    int newNumber = Integer.parseInt(newValue);
    Remember, an attempt to update a row in a table may fail if eg it tries to alter a
    foreign key to a value not currently recorded for any corresponding primary key
    that the foreign key refers to.
    An attempt to set a foreign key field to 'null' should always be successful.
    If the update attempt fails, the value in the displayed text field should revert to its
    original state, to maintain consistency with the database.
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import oracle.jdbc.driver.*;
    * class JdbcCW
    * demonstration of Java client connecting to an Oracle DBMS
    * @author put your name here
    * @date December 2002
    public class JdbcCW extends JFrame{
    static String url = "jdbc:oracle:thin:@localhost:1521:orcl";
    static String initialquery = "select table_name from user_tables";
    static String nullstring = "null";
    private String user;
    private String pass;
    private Connection conn;
    private Statement stmt;
    private ResultSet results;
    private JComboBox tableChooser;
    private JButton editButton;
    private JButton exitButton;
    private JButton detailsButton;
    private JPanel panel1;
    private JPanel panel2;
    private String selectedTable;
    private Container cp;
    public static void main(String[] args) throws SQLException {
    JdbcCW demo = new JdbcCW();
    demo.show();
    * JdbcCW constructor method
    public JdbcCW() throws SQLException {
    super("Java/Oracle coursework");
    addWindowListener (new WindowAdapter() {
    public void windowClosing (WindowEvent evt) {
    System.exit(0);
    try {
    user =
    JOptionPane.showInputDialog("enter oracle username eg ops$c9999999");
    pass = JOptionPane.showInputDialog("enter oracle password eg 29feb80");
    if ( user.length() == 0 || pass.length() == 0)
    throw new Exception("no user name and/or password");
    DriverManager.registerDriver (new OracleDriver());
    conn = DriverManager.getConnection(url, user, pass);
    if (conn != null)
    System.out.println("Connected");
    catch (Exception e ) {
    e.printStackTrace();
    System.exit(0); // problems - abandon ship
    // now we can access tables in the database
    stmt = conn.createStatement();
    results = stmt.executeQuery(initialquery);
    boolean anyRecords = results.next();
    if ( ! anyRecords ) {
    JOptionPane.showMessageDialog (this, "No Tables in the database");
    System.exit(0);
    tableChooser = new JComboBox();
    do
    tableChooser.addItem(results.getString(1));
    while (results.next() ) ;
    selectedTable = (String) tableChooser.getSelectedItem();
    tableChooser.addActionListener (new ActionListener () {
    public void actionPerformed (ActionEvent evt) {
         changeTable();
    editButton = new JButton("Edit");
    editButton.addActionListener(new ActionListener () {
    public void actionPerformed(ActionEvent evt) {
         runEdit();
    exitButton = new JButton("Exit");
    exitButton.addActionListener(new ActionListener () {
    public void actionPerformed(ActionEvent evt) {
    System.exit(0);
    panel1 = new JPanel(); // panels have flow layout
    JLabel label1 = new JLabel("Choose Table");
    panel1.add(label1);
    panel1.add(tableChooser);
    panel2 = new JPanel();
    panel2.add(editButton);
    panel2.add(exitButton);
    cp = getContentPane();
    cp.add(panel1,BorderLayout.NORTH);
    cp.add(panel2,BorderLayout.SOUTH);
    setSize(300,200);
    setLocation(100,100);
    private void changeTable() {
    selectedTable = (String) tableChooser.getSelectedItem();
    * method runEdit runs a query to determine the structure of the
    * selected table in order to customise the table editor window
    private void runEdit() {
    System.out.println("Selected Table " + selectedTable);
    String query = "select column_name,data_type from user_tab_columns " +
         "where table_name = '" + selectedTable + "'";
    try {
         results = stmt.executeQuery(query);
    } catch (java.sql.SQLException e) {
         System.out.println("SQL Exception on query " + query);
         return;
    JdbcEdit tableEditor = new JdbcEdit(this,selectedTable,results);
    tableEditor.show();
    public ResultSet makeQuery(String query) {
         ResultSet results;
         try {
         results = stmt.executeQuery(query);
         } catch (SQLException e) {
         System.out.println("Query Failed " + query);
         return null;
         return results;
    } // end class JdbcGen
    * class JdbcEdit
    * oracle table editing dialog window
    * @author put your name here as well
    * @date December 2002
    class JdbcEdit extends JDialog {
    private JdbcCW parent;
    private Container cp;
    private Vector columnNames;
    private Vector dataTypes;
    private Vector editFields;
    private Vector rows;
    private int noOfColumns;
    private int currentRow = 0;
    * JdbcEdit constructor method
    * the parameter true makes the dialog window modal -
    * the parent frame is inactive as long as this window is displayed
    public JdbcEdit (JdbcCW parent, String tableName, ResultSet results) {
         super(parent,"table editor " + tableName, true);
         this.parent = parent;
    columnNames = new Vector();
    dataTypes = new Vector();
         editFields = new Vector();
         JPanel mainPanel = new JPanel();
         mainPanel.setLayout(new BoxLayout(mainPanel,BoxLayout.Y_AXIS));
    // boxLayout - components are added to mainPanel in a vertical stack
         try {
         boolean anyRecords = results.next();
         if ( ! anyRecords ) {
              JOptionPane.showMessageDialog (this, "No Detail for " +
                             tableName+ " in the database");
              return;
         do {
              String columnName = results.getString(1);
              String dataType = results.getString(2);
              System.out.println("Row " + columnName + " Type " + dataType);
              JPanel editPanel = new JPanel();
              JLabel colNameLabel = new JLabel(columnName);
              JTextField dataField = new JTextField(20);
              editPanel.add(colNameLabel);
              editPanel.add(dataField);
    // this would be a good place to add an Update button
              mainPanel.add(editPanel);
    // now store the columnName, dataType and data text field
    // in vectors so other methods can access them
    // at this point in time the text field is empty
              columnNames.add(columnName);
              dataTypes.add(dataType);
         editFields.add(dataField);
         }while (results.next() ) ;
         } catch (java.sql.SQLException e) {
         System.out.println("SQL Exception on query ");
         return;
    // get the data from the Oracle table and put the first
    // row of data in the text fields in the dialog window
         populateData(tableName);
    // find out which column(s) are part of the primary key and make these
    // textfields non-editable so the values can't be changed
    findPKConstraints(tableName);
    // this would be a good place to discover any foreign key constraints
         JPanel buttonsPanel = new JPanel();
         JButton exitButton = new JButton("Exit");
         exitButton.addActionListener(new ActionListener () {
         public void actionPerformed(ActionEvent evt) {
              closeWindow();
         JButton nextButton = new JButton("Next");
         nextButton.addActionListener(new ActionListener () {
         public void actionPerformed(ActionEvent evt) {
              showRow(true);
         JButton prevButton = new JButton("Prev");
         prevButton.addActionListener(new ActionListener () {
         public void actionPerformed(ActionEvent evt) {
              showRow(false);
         buttonsPanel.add(exitButton);
         buttonsPanel.add(nextButton);
         buttonsPanel.add(prevButton);
    cp = getContentPane();
         cp.add(mainPanel,BorderLayout.CENTER);
         cp.add(buttonsPanel,BorderLayout.SOUTH);
         pack();
    private void closeWindow() {
         dispose();
    private void populateData(String tableName) {
    int noOfColumns;
    // have to access the Statement object in the parent frame
         ResultSet tableData = parent.makeQuery("select * from " + tableName);
         try {
         boolean anyRecords = tableData.next();
         if ( ! anyRecords ) {
              JOptionPane.showMessageDialog (this, "No data in " +
                             tableName);
              return;
         rows = new Vector();
    noOfColumns = columnNames.size();
         do {
              String [] row = new String[noOfColumns];
              for (int i = 0; i < noOfColumns; i++) {        
              row[i] = tableData.getString(i+1);
              rows.add(row);
         } while (tableData.next() ) ;
         } catch (java.sql.SQLException e) {
         System.out.println("SQL Exception on query ");
         return;
    // Put the first row of data from the table into the test fields;
         String [] rowData = (String[]) rows.get(0);
         for (int i = 0; i < noOfColumns; i++) {
    // get the reference to a text field in the dialog window
    JTextField textField = (JTextField) editFields.get(i);
    // vector editFields holds a reference to each JTextField
    // in the visible dialog window
    // hence the next line of code puts the data retrieved from
    // the table into the relevant text field in the GUI interface
         textField.setText(rowData);
    // method showRow updates the textfields in the GUI interface
    // with the next row of data from the table ( if next is true)
    // or with the previous row of data from the table ( if next is false)
    private void showRow(boolean next) {
    if ( rows == null ) {
    System.out.println("table is empty");
         getToolkit().beep();
         return;
         if (next && currentRow < rows.size() - 1) {
         currentRow++;
         } else if (!next && currentRow > 0) {
         currentRow--;
         } else {
         System.out.println("No Next/Prev row " + currentRow);
         getToolkit().beep();
         return;
         String [] rowData = (String[]) rows.get(currentRow);
    int noOfAttributes = dataTypes.size();
         for (int i = 0; i < noOfAttributes; i++) {
         JTextField textField = (JTextField) editFields.get(i);
         textField.setText(rowData[i]);
    private void findPKConstraints(String tableName){
         String PK_ConstraintName = "none";
         String pkquery =
    "select owner,constraint_name from user_constraints " +
         "where table_name = '" + tableName + "' and constraint_type = 'P'";
    // have to access the Statement object in the parent frame
         ResultSet results = parent.makeQuery(pkquery);
         try {
         boolean anyRecords = results.next();
         if ( ! anyRecords ) {
              // if none just return - but print a debug message
              System.out.println("No primary key constraint found");
              return;
         } else {
              // There should only be one
              System.out.println("Owner = " + results.getString(1) +
                        " name = " + results.getString(2));
              PK_ConstraintName = results.getString(2);
              // Now find out which columns
              pkquery =
    "select Column_name, position from user_cons_columns"
              + " where constraint_name = '" + PK_ConstraintName
              + "'";
    // have to access the Statement object in the parent frame
              results = parent.makeQuery(pkquery);
              anyRecords = results.next();
              if ( ! anyRecords ) {
              // if none just return - but there must be at least one
              System.out.println("no columns found");
              return;
              } else {
              do {
                   System.out.println
    ("Name " + results.getString(1) +
                   " position " + results.getString(2))
                   int position = Integer.parseInt(results.getString(2));
                   JTextField primarykey =
    (JTextField)editFields.get(position - 1);
                   primarykey.setEditable(false);
              } while (results.next());
         } catch (java.sql.SQLException e) {
         System.out.println("SQL Exception on query " + pkquery);
         return;

    You're pretty optimistic if you think anyone is going to answer that. There are three very good reasons not to (each is good enough by themselves!).
    1. IT'S YOUR HOMEWORK, IT DOESN'T EVEN LOOK AS THOUGH YOU'VE TRIED. WE HELP WITH PROBLEMS, NOT PROVIDE SOLUTIONS, ESPECIALLY FOR HOMEWORK.
    2. Format your code. Use [ code] and [ /code] (without the spaces). And if you've used 'i' as an index variable, [ i] will result in switching to italics mode. Use 'j' as your index variable.
    3. Don't post your whole program, only the parts you're having trouble with (mostly not relevant for this question, as you don't seem to have trouble with any particular area)

  • Please people help me with this project ( the bag of fruits)

    hey everyone, i have a assignment that due next Monday and i have some troubles solving it its about a bag of fruits where we can put items grab items get items and so on. this site where the applet for this application is exist http://courses.cs.vt.edu/~csonline/SE/Lessons/OOP/index.html this is my code
    public class Bag{
    String fruits[];
    int bagSize;
    public Bag () //constructor
    String[] newFruits = new String[8];
    bagSize=0;
    private boolean isEmpty () {
    if (bagSize == 0) {
    return
    true;
    return false;
    private boolean isFull(){
    if ( bagSize== fruits.length-1){
    return true;
    return false;
    private int totalItems () {
    return bagSize;
    private boolean emptyBag (){
    return bagSize ==0 ;
    private boolean hasItem ( Object item ) {
    for ( int i =0 ; i<= bagSize-1 ; i++)
    if ( i == 0)
    return false;
    return true;
         public boolean putItem(String pItem){
         if(isFull() == true)
         return
         false;
         else
         fruits[bagSize] = pItem;
         return true;
    i will appreciate any help from you, thanks

    madridimoot wrote:
    my problem is that i have some missing methods like grabItem , putItem, getItem. and when i run the program it told me out of boundYes I can see from your code that you're having trouble with array indexes; if bagSize == 0 your bag is empty and where your bagSize == 8 (the size of the array) your bag is full. You have to add another fruit item at index position bagSize (and increment it afterwards). Deleting an element is a bit more trouble when you want to use an array. Also your method emptyBag() is redundant because it's functionally equivalent to the isEmpty() method. An array is quite a clumsy data structure for a bag of things. A List would've been better.
    kind regards,
    Jos

  • Trouble with Exported .pdf Files

    I created three 20"x30" one-page documents (with iPhoto-sourced images) which saved as 24.7 MB, 19.4 MB, and 10.7 MB files, respectively. I needed to send JPEG files to my service provider for high-resolution prints. Since Pages '08 doesn't have a JPEG-export option, I exported each of them as .pdf files. My plan was to open the .pdf files in Photoshop and save them down as .jpg files. The same path had worked fine with a fourth Pages '08 layout of a 2.25"x3.75" document. With the three 20"x30" files, however, I ran into trouble.
    My laptop didn't have enough memory to open the exported .pdf files in Photoshop Elements without suffering some image gray-out. I didn't think that was a problem until we discovered that my service provider couldn't open the files at all (running the current Photoshop on a souped-up system). Arghhh.
    I switched to a service provider who can print straight from the .pdf files, but that also brought trouble. Though I could open the files easily in Acrobat 5.0, and they looked great, the service provider (running the current full version of Acrobat) could not open them; all he got was what looked like a blank page.
    I don't think the trouble is related to file size, as the business-card document which sailed through without trouble saved as an 11.2 MB Pages file.
    Could it be sheet size? That's the only thing I can figure. And why would the files open in Acrobat 5.0 without trouble, but not in the current Acrobat (or Acrobat Professional, which we also tried)?
    I ended up "printing" the Pages files as "Save PDF to iPhoto," then exporting the iPhoto image as a maximum-resolution JPEG. The only trouble with that route was that the best I could get was a 200 dpi. When I went through Photoshop (instead of iPhoto) with the business card file, I ended up with a 300 dpi file.
    Am I missing something obvious here? Any help would be appreciated.

    Hi,
    I don't know if this is the correct answer, but you can open a PDF in Preview and save the document as a JPEG and JPEG-2000. I know that Leopard will also have some neat functionality about this as well. You might also want to look at printing as a postscript file rather than a PDF and then open in Photoshop. I talked with a FEDEX/Kinkos employee yesterday about my book at he stated that Macs use 1.5 while Adobe's Acrobat is 1.7. Leopard should also fix this, but it may not help right now.
    HTH

  • More trouble with exporting for web

    Alright,
    Sorry to say but I am still having trouble converting/exporting my film trailer to the website for PC users to be able to access it.
    I converted it to a quicktime movie film from FCP, which plays beautifully but apparently PC users can't see it still.
    I have tried exporting to Compressor and tried every format there (mobile devices, web and so on...) they all came out pretty blurry.
    Does anybody have a full proof plan for converting/exporting for website viewing (PC and Mac compatible)?????
    P.S. It may help some of you to see the problem on the page http://www.inthelandofsmiles.com/Site/Film_Trailer.html
    THANKS IN ADVANCE!

    I will second the Flash suggestion. Great a .flv file and play it on your site with a flv player. Some are more difficult than others to use.
    NOTHING is fool proof with this kind of stuff. Flash has the highest install rate on all computers and is as close as you can get to fool proof. You can also put a link on you site to download the latest flash player. The other plus is that it tends to have the best results with low file sizes. This is what YouTube and similar sites use to play their video.
    PS. I highly suggest this flv player... It's free for non-commercial use and almost free for other uses...
    http://www.jeroenwijering.com/?item=JWFLVPlayer

  • Having trouble with sound quality

    I have had this iPod Touch 2nd Generation for almost 2 years now, and I'm starting to have some troubles with it. The headphone sound quality is now starting to deteriorate. Unless the headphones are plugged in a specific way, either one bud goes out, or the sound quality goes down, as there is a lot of static and crackling, and I've had experiences with it actually shocking my ears while I'm listening.
    I have tried a new pair of headphones, and this does nothing.
    My iPod is obviously beyond the manufacturer's warranty, and it's up-to-date with the latest update. Is there anything I can do?

    Sounds like your headphone jack may need replacing.
    Check out the new remodeled MacOSG website! 24-hour Apple-related news & support.
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • Please Help: Trouble with nested CASE statement and comparing dates

    Please tell me why the query below is always returning the bold null even when the start_date of OLD is greater than or equal to the start_date of NEW.
    What I want to do is get the difference of the start_dates of two statuses ( Start_date of OLD - Start_date of NEW) if
    1. end_date of NEW is not null
    2. start_date of OLD is greater than start_date of NEW
    else return null.
    select id,
    case when max(end_date) keep (dense_rank last order by decode(request_wflow_status,'New',1,0),start_date) is null then
    null
    else
              case when max(decode(status,'OLD',start_date,null)) > max(decode(status,'NEW',start_date,null))
              then max(decode(status,'OLD',start_date,null)) - max(decode(status,'NEW',start_date,null))
    else
    null
    end
    end result
    from cc_request_status where id =1
    group by id;

    Avinash,
    Thank you for your help.. Here is a more description of my problem..
    Here is a sample of data I have for a table with four columns (id,status,start_date,end_date)
    What I need to do is to get difference of the start dates of the maximum available dates, if data is valid. The pseducode is as follows:
    IF end_date of New status is null
    THEN return null
    ELSE
    IF start_date of old >= start_date of new
    THEN return (start_date of old - start_date of new)
    ELSE return null
    I used the following query but always return the bold null
    select id,
    (case when max(end_date) keep (dense_rank last order by decode(status,'new',1,0),start_date) is null then
    null
    else
              (case when max(decode(status,'old',start_date,null)) >=
              max(decode(status,'new',start_date,null))
              then max(decode(status,'old',start_date,null)) - max(decode(status,'new',start_date,null))
    else
    null
    end)
    end) result
    from tbl where id =1
    Based on the below sample, I expected to get the following result; 14-Mar-07 - 16-Feb-07 which is the difference of the maximum start_dates of the two statuses. However the query is not working.. Please help me.. Thank you..
    Id    Status    start_date      end_date
    1     new      03-Feb-07      07-Feb-07
    1     new      16-Feb-07      21-Feb-07
    1     old      '10-Mar-07      12-Mar-07
    1     old      '14-Mar-07      16-Mar-07

  • Please Help, trouble with j2sdk 1.4.2

    Hello anyone,
    Im only a rookie with java so,
    can some one please help me on why Java 2 SDK 1.4.2 cant preview my class files
    i have made very simple programs and compiled them by javac and after i type java (file name).class its come up with an error msg.
    the code is...
    import java.util.*;
    public class ExampleProgram
    public static void main(String[] args)
    System.out.println("Testing Java");

    Hello Mike and BBQ Frito
    thanx for all your help it works now
    all i had to do was type SET CLASSPATH and then type the file without .class
    thanx again bye
    andy

  • Please help me with export settings and format

    I'll try to explain my problem the best I can. I recently captured some footage from old VHS tapes to use in a Christmas video. I imported one of the MPGs that I captured to AE and applied a grain removal plus a couple other lighting effects to the video to improve the quality as well as I could. When I went to export it (through the render que) I found myself confronted with a huge amount of format options and after doing some reading online thought a Quicktime .MOV file with Photo JPEG compression would give me a reasonable size video but after doing the math (an a bit of the rendering) realized that my 2 hour video, that was originally only around 6GB was being converted into a .MOV file that was around 80GB, which is too large for my HDD. Now, I would love to go out and purchase a 1TB SSD right now but I can't currently afford it. I need to end up with a file as close to the original file size as possible but with the grain removed, and the highest quality (for the file size) and just need to know the best settings to use to accomplish that. I looked around for several hours and couldn't find a quick and easy answer like "just export a MPEG 2 file" with ..... settings. The file is going to be imported into Premiere for final edit with several others that are probably going to need the same adjustments. It will then be exported to a 1080p BluRay (with an HD photo slideshow). Also I am using Production Premium CS4, if that makes any difference.
    Any quick tips about the grain removal effect would be greatly appreciated as well. I'm currently using a removal amount of .8 with the effect running 6 passes. I also changed the texture setting under "fine tuning" to .4.  It's a little blury but MUCH better than grainy, and about as good as I can expect from a 25 year old VHS. If you've used this effect before and know a couple little tweaks I could apply to make the video a little sharper (without the grain) that would be amazing.
    Thanks in advance.

    The file size is defined by bitrate. The winners among production codecs regard to 'quality / render time / file size' ratio, DNxHD and ProRes, utilise almost identical bitrate: up to 440 Mbps while encoding with 4:4:4 colour subsampling and up to 220 Mbps while encoding to 4:2:2. Do some math, and you'll end up with 90-200 GB/hour.
    So, the only option to save on disk space is to utilise highly compressed codec like H.264. With target bitrate set to 100 Mbps (you can set the bitrate in the Export Settings dialog) the quality loss might look affordable (don't remember if you can encode to Level 5 on CS4 though).
    If you eventually choose H.264 (working with which on CS4 might in turn result in a nightmare), do not export to H.264 from AE directly. Export to H.264 via AME...

Maybe you are looking for